@swc-react/icon 1.0.0 → 1.0.1

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
@@ -2,7 +2,6 @@ import type { EventName } from '@lit/react';
2
2
  import { Icon as SpIcon } from '@spectrum-web-components/icon';
3
3
  import '@spectrum-web-components/icon/sp-icon.js';
4
4
  export declare const Icon: import("@lit/react").ReactWebComponent<SpIcon, {
5
- spSystemContext: EventName<CustomEvent<any>>;
6
5
  error: EventName<Event>;
7
6
  }>;
8
7
  export type IconType = EventTarget & SpIcon;
package/index.dev.js CHANGED
@@ -9,7 +9,6 @@ export const Icon = createComponent({
9
9
  react: React,
10
10
  tagName: "sp-icon",
11
11
  events: {
12
- spSystemContext: "sp-system-context",
13
12
  error: "error"
14
13
  }
15
14
  });
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/react';\nimport type { EventName } from '@lit/react';\nimport { Icon as SpIcon } from '@spectrum-web-components/icon';\n\nimport '@spectrum-web-components/icon/sp-icon.js';\n\nexport const Icon = createComponent({\n displayName: 'Icon',\n elementClass: SpIcon,\n react: React,\n tagName: 'sp-icon',\n events: {\n spSystemContext: 'sp-system-context' as EventName<CustomEvent>,\n error: 'error' as EventName<Event>,\n },\n});\n\nexport type IconType = EventTarget & SpIcon;\n"],
5
- "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,QAAQ,cAAc;AAE/B,OAAO;AAEA,aAAM,OAAO,gBAAgB;AAAA,EAChC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,iBAAiB;AAAA,IACjB,OAAO;AAAA,EACX;AACJ,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 { Icon as SpIcon } from '@spectrum-web-components/icon';\n\nimport '@spectrum-web-components/icon/sp-icon.js';\n\nexport const Icon = createComponent({\n displayName: 'Icon',\n elementClass: SpIcon,\n react: React,\n tagName: 'sp-icon',\n events: {\n error: 'error' as EventName<Event>,\n },\n});\n\nexport type IconType = EventTarget & SpIcon;\n"],
5
+ "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,QAAQ,cAAc;AAE/B,OAAO;AAEA,aAAM,OAAO,gBAAgB;AAAA,EAChC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,OAAO;AAAA,EACX;AACJ,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 t}from"@lit/react";import{Icon as o}from"@spectrum-web-components/icon";import"@spectrum-web-components/icon/sp-icon.js";export const Icon=t({displayName:"Icon",elementClass:o,react:e,tagName:"sp-icon",events:{spSystemContext:"sp-system-context",error:"error"}});
1
+ "use strict";import*as e from"react";import{createComponent as t}from"@lit/react";import{Icon as o}from"@spectrum-web-components/icon";import"@spectrum-web-components/icon/sp-icon.js";export const Icon=t({displayName:"Icon",elementClass:o,react:e,tagName:"sp-icon",events:{error:"error"}});
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/react';\nimport type { EventName } from '@lit/react';\nimport { Icon as SpIcon } from '@spectrum-web-components/icon';\n\nimport '@spectrum-web-components/icon/sp-icon.js';\n\nexport const Icon = createComponent({\n displayName: 'Icon',\n elementClass: SpIcon,\n react: React,\n tagName: 'sp-icon',\n events: {\n spSystemContext: 'sp-system-context' as EventName<CustomEvent>,\n error: 'error' as EventName<Event>,\n },\n});\n\nexport type IconType = EventTarget & SpIcon;\n"],
5
- "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,aAEhC,OAAS,QAAQC,MAAc,gCAE/B,MAAO,2CAEA,aAAM,KAAOD,EAAgB,CAChC,YAAa,OACb,aAAcC,EACd,MAAOF,EACP,QAAS,UACT,OAAQ,CACJ,gBAAiB,oBACjB,MAAO,OACX,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 { Icon as SpIcon } from '@spectrum-web-components/icon';\n\nimport '@spectrum-web-components/icon/sp-icon.js';\n\nexport const Icon = createComponent({\n displayName: 'Icon',\n elementClass: SpIcon,\n react: React,\n tagName: 'sp-icon',\n events: {\n error: 'error' as EventName<Event>,\n },\n});\n\nexport type IconType = EventTarget & SpIcon;\n"],
5
+ "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,aAEhC,OAAS,QAAQC,MAAc,gCAE/B,MAAO,2CAEA,aAAM,KAAOD,EAAgB,CAChC,YAAa,OACb,aAAcC,EACd,MAAOF,EACP,QAAS,UACT,OAAQ,CACJ,MAAO,OACX,CACJ,CAAC",
6
6
  "names": ["React", "createComponent", "SpIcon"]
7
7
  }
package/next.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- export declare const Icon: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("icon/src").Icon>, "size" | "name" | "label" | "error" | "spectrumVersion" | "src" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "spSystemContext" | "firstUpdated" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree"> & {
2
- spSystemContext?: ((e: CustomEvent<any>) => void) | undefined;
1
+ export declare const Icon: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("icon/src").Icon>, "size" | "name" | "label" | "error" | "spectrumVersion" | "src" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "firstUpdated" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree"> & {
3
2
  error?: ((e: Event) => void) | undefined;
4
3
  } & Partial<Omit<import("icon/src").Icon, keyof HTMLElement>> & import("react").RefAttributes<import("icon/src").Icon>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/icon",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,7 +30,7 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@lit/react": "^1.0.2",
33
- "@spectrum-web-components/icon": "^1.0.0"
33
+ "@spectrum-web-components/icon": "^1.0.1"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "next": "~13.4 || ~14"
@@ -40,5 +40,5 @@
40
40
  "optional": true
41
41
  }
42
42
  },
43
- "gitHead": "9b39f167b025114114ca2dcc24d1d8364e01ac3d"
43
+ "gitHead": "81da9cd3d98797da48274be5a5bda0099388c10d"
44
44
  }