@swc-react/tabs 0.31.1-react.2 → 0.31.1-react.21

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
@@ -3,6 +3,10 @@ import { Tab as SpTab } from '@spectrum-web-components/tabs';
3
3
  import { TabPanel as SpTabPanel } from '@spectrum-web-components/tabs';
4
4
  import { Tabs as SpTabs } from '@spectrum-web-components/tabs';
5
5
  import { TabsOverflow as SpTabsOverflow } from '@spectrum-web-components/tabs';
6
+ import '@spectrum-web-components/tabs/sp-tab-panel.js';
7
+ import '@spectrum-web-components/tabs/sp-tab.js';
8
+ import '@spectrum-web-components/tabs/sp-tabs-overflow.js';
9
+ import '@spectrum-web-components/tabs/sp-tabs.js';
6
10
  export declare const Tab: import("@lit-labs/react").ReactWebComponent<SpTab, {}>;
7
11
  export declare const TabPanel: import("@lit-labs/react").ReactWebComponent<SpTabPanel, {}>;
8
12
  export declare const Tabs: import("@lit-labs/react").ReactWebComponent<SpTabs, {
package/index.dev.js CHANGED
@@ -5,6 +5,10 @@ import { Tab as SpTab } from "@spectrum-web-components/tabs";
5
5
  import { TabPanel as SpTabPanel } from "@spectrum-web-components/tabs";
6
6
  import { Tabs as SpTabs } from "@spectrum-web-components/tabs";
7
7
  import { TabsOverflow as SpTabsOverflow } from "@spectrum-web-components/tabs";
8
+ import "@spectrum-web-components/tabs/sp-tab-panel.js";
9
+ import "@spectrum-web-components/tabs/sp-tab.js";
10
+ import "@spectrum-web-components/tabs/sp-tabs-overflow.js";
11
+ import "@spectrum-web-components/tabs/sp-tabs.js";
8
12
  export const Tab = createComponent({
9
13
  displayName: "Tab",
10
14
  elementClass: SpTab,
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 { Tab as SpTab } from '@spectrum-web-components/tabs';\nimport { TabPanel as SpTabPanel } from '@spectrum-web-components/tabs';\nimport { Tabs as SpTabs } from '@spectrum-web-components/tabs';\nimport { TabsOverflow as SpTabsOverflow } from '@spectrum-web-components/tabs';\n\nexport const Tab = createComponent({\n displayName: 'Tab',\n elementClass: SpTab,\n react: React,\n tagName: 'sp-tab',\n events: {},\n});\nexport const TabPanel = createComponent({\n displayName: 'TabPanel',\n elementClass: SpTabPanel,\n react: React,\n tagName: 'sp-tab-panel',\n events: {},\n});\nexport const Tabs = createComponent({\n displayName: 'Tabs',\n elementClass: SpTabs,\n react: React,\n tagName: 'sp-tabs',\n events: {\n change: 'change' as EventName<Event>, // The selected Tab child has changed.\n },\n});\nexport const TabsOverflow = createComponent({\n displayName: 'TabsOverflow',\n elementClass: SpTabsOverflow,\n react: React,\n tagName: 'sp-tabs-overflow',\n events: {},\n});\n\nexport type TabType = EventTarget & SpTab;\nexport type TabPanelType = EventTarget & SpTabPanel;\nexport type TabsType = EventTarget & SpTabs;\nexport type TabsOverflowType = EventTarget & SpTabsOverflow;\n"],
5
- "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,OAAO,aAAa;AAC7B,SAAS,YAAY,kBAAkB;AACvC,SAAS,QAAQ,cAAc;AAC/B,SAAS,gBAAgB,sBAAsB;AAExC,aAAM,MAAM,gBAAgB;AAAA,EAC/B,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,WAAW,gBAAgB;AAAA,EACpC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,OAAO,gBAAgB;AAAA,EAChC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,EACZ;AACJ,CAAC;AACM,aAAM,eAAe,gBAAgB;AAAA,EACxC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,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-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Tab as SpTab } from '@spectrum-web-components/tabs';\nimport { TabPanel as SpTabPanel } from '@spectrum-web-components/tabs';\nimport { Tabs as SpTabs } from '@spectrum-web-components/tabs';\nimport { TabsOverflow as SpTabsOverflow } from '@spectrum-web-components/tabs';\n\nimport '@spectrum-web-components/tabs/sp-tab-panel.js';\nimport '@spectrum-web-components/tabs/sp-tab.js';\nimport '@spectrum-web-components/tabs/sp-tabs-overflow.js';\nimport '@spectrum-web-components/tabs/sp-tabs.js';\n\nexport const Tab = createComponent({\n displayName: 'Tab',\n elementClass: SpTab,\n react: React,\n tagName: 'sp-tab',\n events: {},\n});\nexport const TabPanel = createComponent({\n displayName: 'TabPanel',\n elementClass: SpTabPanel,\n react: React,\n tagName: 'sp-tab-panel',\n events: {},\n});\nexport const Tabs = createComponent({\n displayName: 'Tabs',\n elementClass: SpTabs,\n react: React,\n tagName: 'sp-tabs',\n events: {\n change: 'change' as EventName<Event>, // The selected Tab child has changed.\n },\n});\nexport const TabsOverflow = createComponent({\n displayName: 'TabsOverflow',\n elementClass: SpTabsOverflow,\n react: React,\n tagName: 'sp-tabs-overflow',\n events: {},\n});\n\nexport type TabType = EventTarget & SpTab;\nexport type TabPanelType = EventTarget & SpTabPanel;\nexport type TabsType = EventTarget & SpTabs;\nexport type TabsOverflowType = EventTarget & SpTabsOverflow;\n"],
5
+ "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,OAAO,aAAa;AAC7B,SAAS,YAAY,kBAAkB;AACvC,SAAS,QAAQ,cAAc;AAC/B,SAAS,gBAAgB,sBAAsB;AAE/C,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,MAAM,gBAAgB;AAAA,EAC/B,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,WAAW,gBAAgB;AAAA,EACpC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,OAAO,gBAAgB;AAAA,EAChC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,EACZ;AACJ,CAAC;AACM,aAAM,eAAe,gBAAgB;AAAA,EACxC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;",
6
6
  "names": []
7
7
  }
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";import*as e from"react";import{createComponent as a}from"@lit-labs/react";import{Tab as t}from"@spectrum-web-components/tabs";import{TabPanel as s}from"@spectrum-web-components/tabs";import{Tabs as p}from"@spectrum-web-components/tabs";import{TabsOverflow as r}from"@spectrum-web-components/tabs";export const Tab=a({displayName:"Tab",elementClass:t,react:e,tagName:"sp-tab",events:{}}),TabPanel=a({displayName:"TabPanel",elementClass:s,react:e,tagName:"sp-tab-panel",events:{}}),Tabs=a({displayName:"Tabs",elementClass:p,react:e,tagName:"sp-tabs",events:{change:"change"}}),TabsOverflow=a({displayName:"TabsOverflow",elementClass:r,react:e,tagName:"sp-tabs-overflow",events:{}});
1
+ "use strict";import*as e from"react";import{createComponent as a}from"@lit-labs/react";import{Tab as t}from"@spectrum-web-components/tabs";import{TabPanel as p}from"@spectrum-web-components/tabs";import{Tabs as s}from"@spectrum-web-components/tabs";import{TabsOverflow as r}from"@spectrum-web-components/tabs";import"@spectrum-web-components/tabs/sp-tab-panel.js";import"@spectrum-web-components/tabs/sp-tab.js";import"@spectrum-web-components/tabs/sp-tabs-overflow.js";import"@spectrum-web-components/tabs/sp-tabs.js";export const Tab=a({displayName:"Tab",elementClass:t,react:e,tagName:"sp-tab",events:{}}),TabPanel=a({displayName:"TabPanel",elementClass:p,react:e,tagName:"sp-tab-panel",events:{}}),Tabs=a({displayName:"Tabs",elementClass:s,react:e,tagName:"sp-tabs",events:{change:"change"}}),TabsOverflow=a({displayName:"TabsOverflow",elementClass:r,react:e,tagName:"sp-tabs-overflow",events:{}});
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 { Tab as SpTab } from '@spectrum-web-components/tabs';\nimport { TabPanel as SpTabPanel } from '@spectrum-web-components/tabs';\nimport { Tabs as SpTabs } from '@spectrum-web-components/tabs';\nimport { TabsOverflow as SpTabsOverflow } from '@spectrum-web-components/tabs';\n\nexport const Tab = createComponent({\n displayName: 'Tab',\n elementClass: SpTab,\n react: React,\n tagName: 'sp-tab',\n events: {},\n});\nexport const TabPanel = createComponent({\n displayName: 'TabPanel',\n elementClass: SpTabPanel,\n react: React,\n tagName: 'sp-tab-panel',\n events: {},\n});\nexport const Tabs = createComponent({\n displayName: 'Tabs',\n elementClass: SpTabs,\n react: React,\n tagName: 'sp-tabs',\n events: {\n change: 'change' as EventName<Event>, // The selected Tab child has changed.\n },\n});\nexport const TabsOverflow = createComponent({\n displayName: 'TabsOverflow',\n elementClass: SpTabsOverflow,\n react: React,\n tagName: 'sp-tabs-overflow',\n events: {},\n});\n\nexport type TabType = EventTarget & SpTab;\nexport type TabPanelType = EventTarget & SpTabPanel;\nexport type TabsType = EventTarget & SpTabs;\nexport type TabsOverflowType = EventTarget & SpTabsOverflow;\n"],
5
- "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,OAAOC,MAAa,gCAC7B,OAAS,YAAYC,MAAkB,gCACvC,OAAS,QAAQC,MAAc,gCAC/B,OAAS,gBAAgBC,MAAsB,gCAExC,aAAM,IAAMJ,EAAgB,CAC/B,YAAa,MACb,aAAcC,EACd,MAAOF,EACP,QAAS,SACT,OAAQ,CAAC,CACb,CAAC,EACY,SAAWC,EAAgB,CACpC,YAAa,WACb,aAAcE,EACd,MAAOH,EACP,QAAS,eACT,OAAQ,CAAC,CACb,CAAC,EACY,KAAOC,EAAgB,CAChC,YAAa,OACb,aAAcG,EACd,MAAOJ,EACP,QAAS,UACT,OAAQ,CACJ,OAAQ,QACZ,CACJ,CAAC,EACY,aAAeC,EAAgB,CACxC,YAAa,eACb,aAAcI,EACd,MAAOL,EACP,QAAS,mBACT,OAAQ,CAAC,CACb,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-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Tab as SpTab } from '@spectrum-web-components/tabs';\nimport { TabPanel as SpTabPanel } from '@spectrum-web-components/tabs';\nimport { Tabs as SpTabs } from '@spectrum-web-components/tabs';\nimport { TabsOverflow as SpTabsOverflow } from '@spectrum-web-components/tabs';\n\nimport '@spectrum-web-components/tabs/sp-tab-panel.js';\nimport '@spectrum-web-components/tabs/sp-tab.js';\nimport '@spectrum-web-components/tabs/sp-tabs-overflow.js';\nimport '@spectrum-web-components/tabs/sp-tabs.js';\n\nexport const Tab = createComponent({\n displayName: 'Tab',\n elementClass: SpTab,\n react: React,\n tagName: 'sp-tab',\n events: {},\n});\nexport const TabPanel = createComponent({\n displayName: 'TabPanel',\n elementClass: SpTabPanel,\n react: React,\n tagName: 'sp-tab-panel',\n events: {},\n});\nexport const Tabs = createComponent({\n displayName: 'Tabs',\n elementClass: SpTabs,\n react: React,\n tagName: 'sp-tabs',\n events: {\n change: 'change' as EventName<Event>, // The selected Tab child has changed.\n },\n});\nexport const TabsOverflow = createComponent({\n displayName: 'TabsOverflow',\n elementClass: SpTabsOverflow,\n react: React,\n tagName: 'sp-tabs-overflow',\n events: {},\n});\n\nexport type TabType = EventTarget & SpTab;\nexport type TabPanelType = EventTarget & SpTabPanel;\nexport type TabsType = EventTarget & SpTabs;\nexport type TabsOverflowType = EventTarget & SpTabsOverflow;\n"],
5
+ "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,OAAOC,MAAa,gCAC7B,OAAS,YAAYC,MAAkB,gCACvC,OAAS,QAAQC,MAAc,gCAC/B,OAAS,gBAAgBC,MAAsB,gCAE/C,MAAO,gDACP,MAAO,0CACP,MAAO,oDACP,MAAO,2CAEA,aAAM,IAAMJ,EAAgB,CAC/B,YAAa,MACb,aAAcC,EACd,MAAOF,EACP,QAAS,SACT,OAAQ,CAAC,CACb,CAAC,EACY,SAAWC,EAAgB,CACpC,YAAa,WACb,aAAcE,EACd,MAAOH,EACP,QAAS,eACT,OAAQ,CAAC,CACb,CAAC,EACY,KAAOC,EAAgB,CAChC,YAAa,OACb,aAAcG,EACd,MAAOJ,EACP,QAAS,UACT,OAAQ,CACJ,OAAQ,QACZ,CACJ,CAAC,EACY,aAAeC,EAAgB,CACxC,YAAa,eACb,aAAcI,EACd,MAAOL,EACP,QAAS,mBACT,OAAQ,CAAC,CACb,CAAC",
6
6
  "names": ["React", "createComponent", "SpTab", "SpTabPanel", "SpTabs", "SpTabsOverflow"]
7
7
  }
package/next.d.ts CHANGED
@@ -263,8 +263,8 @@ export declare const Tab: import("react").ComponentType<Partial<{
263
263
  readonly attributes: NamedNodeMap;
264
264
  readonly localName: string;
265
265
  label: string;
266
- animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
267
266
  readonly renderOptions: import("lit-html").RenderOptions;
267
+ animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
268
268
  blur: () => void;
269
269
  click: () => void;
270
270
  focus: (options?: FocusOptions | undefined) => void;
@@ -852,8 +852,8 @@ export declare const TabPanel: import("react").ComponentType<Partial<{
852
852
  } & {
853
853
  readonly attributes: NamedNodeMap;
854
854
  readonly localName: string;
855
- animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
856
855
  readonly renderOptions: import("lit-html").RenderOptions;
856
+ animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
857
857
  blur: () => void;
858
858
  click: () => void;
859
859
  focus: (options?: FocusOptions | undefined) => void;
@@ -1436,8 +1436,8 @@ export declare const Tabs: import("react").ComponentType<Partial<{
1436
1436
  readonly localName: string;
1437
1437
  size: import("@spectrum-web-components/base").ElementSize;
1438
1438
  label: string;
1439
- animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
1440
1439
  readonly renderOptions: import("lit-html").RenderOptions;
1440
+ animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
1441
1441
  blur: () => void;
1442
1442
  click: () => void;
1443
1443
  focus: (options?: FocusOptions | undefined) => void;
@@ -2033,8 +2033,8 @@ export declare const TabsOverflow: import("react").ComponentType<Partial<{
2033
2033
  readonly attributes: NamedNodeMap;
2034
2034
  readonly localName: string;
2035
2035
  size: import("@spectrum-web-components/base").ElementSize;
2036
- animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
2037
2036
  readonly renderOptions: import("lit-html").RenderOptions;
2037
+ animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
2038
2038
  blur: () => void;
2039
2039
  click: () => void;
2040
2040
  focus: (options?: FocusOptions | undefined) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/tabs",
3
- "version": "0.31.1-react.2+971de948d",
3
+ "version": "0.31.1-react.21+44f0b1df9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,15 +30,15 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@lit-labs/react": "^1.1.1",
33
- "@spectrum-web-components/tabs": "^0.31.1-react.1+86ddafa4c"
33
+ "@spectrum-web-components/tabs": "^0.31.1-react.21+44f0b1df9"
34
34
  },
35
35
  "peerDependencies": {
36
- "next": "^13.4.1 || latest"
36
+ "next": "~13.4"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "next": {
40
40
  "optional": true
41
41
  }
42
42
  },
43
- "gitHead": "971de948df12f7082f13ab5dd5e638d456ebbb94"
43
+ "gitHead": "44f0b1df9e1ea77d9e931629a63918ceee2744c2"
44
44
  }