@swc-react/accordion 0.40.1 → 0.40.2

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.
package/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import type { EventName } from '@lit-labs/react';
1
+ import type { EventName } from '@lit/react';
2
2
  import { Accordion as SpAccordion } from '@spectrum-web-components/accordion';
3
3
  import { AccordionItem as SpAccordionItem } from '@spectrum-web-components/accordion';
4
4
  import '@spectrum-web-components/accordion/sp-accordion-item.js';
5
5
  import '@spectrum-web-components/accordion/sp-accordion.js';
6
- export declare const Accordion: import("@lit-labs/react").ReactWebComponent<SpAccordion, {}>;
7
- export declare const AccordionItem: import("@lit-labs/react").ReactWebComponent<SpAccordionItem, {
6
+ export declare const Accordion: import("@lit/react").ReactWebComponent<SpAccordion, {}>;
7
+ export declare const AccordionItem: import("@lit/react").ReactWebComponent<SpAccordionItem, {
8
8
  spAccordionItemToggle: EventName<CustomEvent<any>>;
9
9
  }>;
10
10
  export declare type AccordionType = EventTarget & SpAccordion;
package/index.dev.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  import * as React from "react";
3
- import { createComponent } from "@lit-labs/react";
3
+ import { createComponent } from "@lit/react";
4
4
  import { Accordion as SpAccordion } from "@spectrum-web-components/accordion";
5
5
  import { AccordionItem as SpAccordionItem } from "@spectrum-web-components/accordion";
6
6
  import "@spectrum-web-components/accordion/sp-accordion-item.js";
package/index.dev.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["index.ts"],
4
- "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Accordion as SpAccordion } from '@spectrum-web-components/accordion';\nimport { AccordionItem as SpAccordionItem } from '@spectrum-web-components/accordion';\n\nimport '@spectrum-web-components/accordion/sp-accordion-item.js';\nimport '@spectrum-web-components/accordion/sp-accordion.js';\n\nexport const Accordion = createComponent({\n displayName: 'Accordion',\n elementClass: SpAccordion,\n react: React,\n tagName: 'sp-accordion',\n events: {},\n});\nexport const AccordionItem = createComponent({\n displayName: 'AccordionItem',\n elementClass: SpAccordionItem,\n react: React,\n tagName: 'sp-accordion-item',\n events: {\n spAccordionItemToggle:\n 'sp-accordion-item-toggle' as EventName<CustomEvent>, // Announce that an accordion item has been toggled while allowing the event to be cancelled.\n },\n});\n\nexport type AccordionType = EventTarget & SpAccordion;\nexport type AccordionItemType = EventTarget & SpAccordionItem;\n"],
4
+ "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit/react';\nimport type { EventName } from '@lit/react';\nimport { Accordion as SpAccordion } from '@spectrum-web-components/accordion';\nimport { AccordionItem as SpAccordionItem } from '@spectrum-web-components/accordion';\n\nimport '@spectrum-web-components/accordion/sp-accordion-item.js';\nimport '@spectrum-web-components/accordion/sp-accordion.js';\n\nexport const Accordion = createComponent({\n displayName: 'Accordion',\n elementClass: SpAccordion,\n react: React,\n tagName: 'sp-accordion',\n events: {},\n});\nexport const AccordionItem = createComponent({\n displayName: 'AccordionItem',\n elementClass: SpAccordionItem,\n react: React,\n tagName: 'sp-accordion-item',\n events: {\n spAccordionItemToggle:\n 'sp-accordion-item-toggle' as EventName<CustomEvent>, // Announce that an accordion item has been toggled while allowing the event to be cancelled.\n },\n});\n\nexport type AccordionType = EventTarget & SpAccordion;\nexport type AccordionItemType = EventTarget & SpAccordionItem;\n"],
5
5
  "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,aAAa,mBAAmB;AACzC,SAAS,iBAAiB,uBAAuB;AAEjD,OAAO;AACP,OAAO;AAEA,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,gBAAgB,gBAAgB;AAAA,EACzC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,uBACI;AAAA;AAAA,EACR;AACJ,CAAC;",
6
6
  "names": []
7
7
  }
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";import*as o from"react";import{createComponent as e}from"@lit-labs/react";import{Accordion as t}from"@spectrum-web-components/accordion";import{AccordionItem as c}from"@spectrum-web-components/accordion";import"@spectrum-web-components/accordion/sp-accordion-item.js";import"@spectrum-web-components/accordion/sp-accordion.js";export const Accordion=e({displayName:"Accordion",elementClass:t,react:o,tagName:"sp-accordion",events:{}}),AccordionItem=e({displayName:"AccordionItem",elementClass:c,react:o,tagName:"sp-accordion-item",events:{spAccordionItemToggle:"sp-accordion-item-toggle"}});
1
+ "use strict";import*as o from"react";import{createComponent as e}from"@lit/react";import{Accordion as t}from"@spectrum-web-components/accordion";import{AccordionItem as c}from"@spectrum-web-components/accordion";import"@spectrum-web-components/accordion/sp-accordion-item.js";import"@spectrum-web-components/accordion/sp-accordion.js";export const Accordion=e({displayName:"Accordion",elementClass:t,react:o,tagName:"sp-accordion",events:{}}),AccordionItem=e({displayName:"AccordionItem",elementClass:c,react:o,tagName:"sp-accordion-item",events:{spAccordionItemToggle:"sp-accordion-item-toggle"}});
2
2
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["index.ts"],
4
- "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Accordion as SpAccordion } from '@spectrum-web-components/accordion';\nimport { AccordionItem as SpAccordionItem } from '@spectrum-web-components/accordion';\n\nimport '@spectrum-web-components/accordion/sp-accordion-item.js';\nimport '@spectrum-web-components/accordion/sp-accordion.js';\n\nexport const Accordion = createComponent({\n displayName: 'Accordion',\n elementClass: SpAccordion,\n react: React,\n tagName: 'sp-accordion',\n events: {},\n});\nexport const AccordionItem = createComponent({\n displayName: 'AccordionItem',\n elementClass: SpAccordionItem,\n react: React,\n tagName: 'sp-accordion-item',\n events: {\n spAccordionItemToggle:\n 'sp-accordion-item-toggle' as EventName<CustomEvent>, // Announce that an accordion item has been toggled while allowing the event to be cancelled.\n },\n});\n\nexport type AccordionType = EventTarget & SpAccordion;\nexport type AccordionItemType = EventTarget & SpAccordionItem;\n"],
5
- "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,aAAaC,MAAmB,qCACzC,OAAS,iBAAiBC,MAAuB,qCAEjD,MAAO,0DACP,MAAO,qDAEA,aAAM,UAAYF,EAAgB,CACrC,YAAa,YACb,aAAcC,EACd,MAAOF,EACP,QAAS,eACT,OAAQ,CAAC,CACb,CAAC,EACY,cAAgBC,EAAgB,CACzC,YAAa,gBACb,aAAcE,EACd,MAAOH,EACP,QAAS,oBACT,OAAQ,CACJ,sBACI,0BACR,CACJ,CAAC",
4
+ "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit/react';\nimport type { EventName } from '@lit/react';\nimport { Accordion as SpAccordion } from '@spectrum-web-components/accordion';\nimport { AccordionItem as SpAccordionItem } from '@spectrum-web-components/accordion';\n\nimport '@spectrum-web-components/accordion/sp-accordion-item.js';\nimport '@spectrum-web-components/accordion/sp-accordion.js';\n\nexport const Accordion = createComponent({\n displayName: 'Accordion',\n elementClass: SpAccordion,\n react: React,\n tagName: 'sp-accordion',\n events: {},\n});\nexport const AccordionItem = createComponent({\n displayName: 'AccordionItem',\n elementClass: SpAccordionItem,\n react: React,\n tagName: 'sp-accordion-item',\n events: {\n spAccordionItemToggle:\n 'sp-accordion-item-toggle' as EventName<CustomEvent>, // Announce that an accordion item has been toggled while allowing the event to be cancelled.\n },\n});\n\nexport type AccordionType = EventTarget & SpAccordion;\nexport type AccordionItemType = EventTarget & SpAccordionItem;\n"],
5
+ "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,aAEhC,OAAS,aAAaC,MAAmB,qCACzC,OAAS,iBAAiBC,MAAuB,qCAEjD,MAAO,0DACP,MAAO,qDAEA,aAAM,UAAYF,EAAgB,CACrC,YAAa,YACb,aAAcC,EACd,MAAOF,EACP,QAAS,eACT,OAAQ,CAAC,CACb,CAAC,EACY,cAAgBC,EAAgB,CACzC,YAAa,gBACb,aAAcE,EACd,MAAOH,EACP,QAAS,oBACT,OAAQ,CACJ,sBACI,0BACR,CACJ,CAAC",
6
6
  "names": ["React", "createComponent", "SpAccordion", "SpAccordionItem"]
7
7
  }