<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calcite Design System with React and TypeScript in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1073134#M73644</link>
    <description>&lt;P&gt;That's a bit harsh, I would say. The JSAPI documentation for example does a pretty good job. For this &lt;STRONG&gt;Beta&lt;/STRONG&gt; product there is room for improvement though.&lt;BR /&gt;Please take a look &lt;A href="https://github.com/Esri/calcite-components/issues/2336" target="_self"&gt;here&lt;/A&gt;. You don't need the loader. There's a new separate &lt;A href="https://www.npmjs.com/package/@esri/calcite-components-react" target="_self"&gt;package&lt;/A&gt; for this.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jun 2021 11:18:40 GMT</pubDate>
    <dc:creator>esride-nik</dc:creator>
    <dc:date>2021-06-28T11:18:40Z</dc:date>
    <item>
      <title>Calcite Design System with React and TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1069340#M73526</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;I've been struggling to integrate &lt;A title="Calcite Design System" href="https://developers.arcgis.com/calcite-design-system/framework-examples/react/" target="_self"&gt;Calcite Design System&lt;/A&gt;&amp;nbsp;in a React project with TypeScript. I followed the instructions,&amp;nbsp;&lt;SPAN&gt;"calcite-components" is imported in my entry file, as well as the CSS&lt;/SPAN&gt;&amp;nbsp;and the components are working, but I don't get any typings. I see red squiggly lines in VS Code all over the place and the error message says "&lt;SPAN&gt;Property 'calcite-&amp;lt;element&amp;gt;' does not exist on type 'JSX.IntrinsicElements'."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="esridenik_1-1623936982005.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16201iF98CA9CDE52E5231/image-size/medium?v=v2&amp;amp;px=400" role="button" title="esridenik_1-1623936982005.png" alt="esridenik_1-1623936982005.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Things I tried (with no success):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;adding "components.d.ts" under tsconfig "files", as described for "preact.d.ts" in the instructions for "&lt;A href="https://developers.arcgis.com/calcite-design-system/framework-examples/preact/" target="_self"&gt;Preact with TypeScript&lt;/A&gt;"&lt;/LI&gt;&lt;LI&gt;adding the "calcite-components/dist/types/" directory under tsconfig "typeRoots"&lt;/LI&gt;&lt;LI&gt;adding&amp;nbsp;"components.d.ts" as reference path (error msg: use import instead of triple slash) and/or reference types (msg: "&lt;SPAN&gt;Cannot find type definition file")&lt;/SPAN&gt; in my React component&lt;/LI&gt;&lt;LI&gt;messing with the imports, e.g. trying to somehow import the exported stuff from "components.d.ts" (like the namespace "Components" and trying to do something with the interfaces in it or somehow getting a grip on the exported "LocalJSX as JSX")&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My basic understanding is that there's a mapping from the calcite tags to the interfaces. The same thing btw happens in "preact.d.ts", as far as I can see. But somehow, in my React project, TypeScript doesn't see the JSX tags from "components.d.ts".&lt;BR /&gt;And then there's Stencil underneath, and I found an issue related to what I see:&amp;nbsp;&lt;A href="https://github.com/ionic-team/stencil/issues/1090" target="_blank" rel="noopener"&gt;https://github.com/ionic-team/stencil/issues/1090&lt;/A&gt;. Tried the suggested fixes, but no luck.&lt;BR /&gt;&lt;BR /&gt;Final notice: My calcite components are working, but I can only connect the events by dom. Is that intended?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Nik&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2786"&gt;@JuliePowell&lt;/a&gt;&amp;nbsp;Do you know someone who can help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 13:50:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1069340#M73526</guid>
      <dc:creator>esride-nik</dc:creator>
      <dc:date>2021-06-17T13:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite Design System with React and TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1069568#M73528</link>
      <description>&lt;P&gt;Hi Nik,&lt;/P&gt;&lt;P&gt;I will try and get you some help; I don't know the answer to this one. Stay tuned...&lt;/P&gt;&lt;P&gt;Julie&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 20:19:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1069568#M73528</guid>
      <dc:creator>JuliePowell</dc:creator>
      <dc:date>2021-06-17T20:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite Design System with React and TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1070870#M73575</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2786"&gt;@JuliePowell&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I found a Github issue about&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/485728"&gt;@paulcpederson&lt;/a&gt;&amp;nbsp;implementing this for Preact and it turns out, my problem was solved a week ago, yay&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;BR /&gt;This is the link: &lt;A title="create types for using calcite components with react + typescript #2336" href="https://github.com/Esri/calcite-components/issues/2336" target="_self"&gt;https://github.com/Esri/calcite-components/issues/2336&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 13:48:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1070870#M73575</guid>
      <dc:creator>esride-nik</dc:creator>
      <dc:date>2021-06-24T13:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite Design System with React and TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1073125#M73642</link>
      <description>&lt;P&gt;ESRI documentation in this matter, as always on every matter, is absolute garbage. For the life of me I can't even Loader to work with React, Typesript and this new component system to work. I have followed everything to the letter but when I try to import the loader (&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CalciteLoader&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;bla bla lba&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;calcite-components-react")&lt;/SPAN&gt;&lt;SPAN&gt; I just get some bs like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Property '"label"' is missing in type '{ text: string; }' but required in type 'CalciteLoader'.  TS2741&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 10:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1073125#M73642</guid>
      <dc:creator>JaniYlikorpi</dc:creator>
      <dc:date>2021-06-28T10:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite Design System with React and TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1073134#M73644</link>
      <description>&lt;P&gt;That's a bit harsh, I would say. The JSAPI documentation for example does a pretty good job. For this &lt;STRONG&gt;Beta&lt;/STRONG&gt; product there is room for improvement though.&lt;BR /&gt;Please take a look &lt;A href="https://github.com/Esri/calcite-components/issues/2336" target="_self"&gt;here&lt;/A&gt;. You don't need the loader. There's a new separate &lt;A href="https://www.npmjs.com/package/@esri/calcite-components-react" target="_self"&gt;package&lt;/A&gt; for this.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 11:18:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1073134#M73644</guid>
      <dc:creator>esride-nik</dc:creator>
      <dc:date>2021-06-28T11:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite Design System with React and TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1073138#M73645</link>
      <description>&lt;P&gt;I was trying to use the calcite-components-react. I was not trying to use loader as in component loader. I was trying to use Loader animation component as in CaliciteLoader (formelly known simply as Loader). I was using the Loader which was the "previous version" of the component but it started to fail (animation stuck inside some other components) and I was trying to "upgrade" but didn't want to fight with this new one and decided to go with MUI because I wasn't using Calicite for anything else anyway... So again, not the component loader - the loader animation web component&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 11:32:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1073138#M73645</guid>
      <dc:creator>JaniYlikorpi</dc:creator>
      <dc:date>2021-06-28T11:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite Design System with React and TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1073144#M73646</link>
      <description>&lt;P&gt;Oh I see. Sorry to hear that. Quick test:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;CalciteLoader active text="loading" label="labelling"&amp;gt;&amp;lt;/CalciteLoader&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;works for me. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But I don't know, maybe in your case, something's not right when the components are deeply nested..?&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;So if you think you've found a bug you might be able to help the devs by filing an issue on GitHub.&amp;nbsp; After all, it's a Beta product and I'm hoping for a stable UI lib in the end that better integrates with the look &amp;amp; feel of the default JSAPI widgets.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 28 Jun 2021 12:12:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1073144#M73646</guid>
      <dc:creator>esride-nik</dc:creator>
      <dc:date>2021-06-28T12:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite Design System with React and TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1073151#M73647</link>
      <description>&lt;P&gt;Not quite sure but I don't believe documentation mentioned label been mandatory prop. But maybe next time I'll get it to work. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 12:33:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-design-system-with-react-and-typescript/m-p/1073151#M73647</guid>
      <dc:creator>JaniYlikorpi</dc:creator>
      <dc:date>2021-06-28T12:33:52Z</dc:date>
    </item>
  </channel>
</rss>

