@swc-react/action-menu 0.16.2 → 0.31.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.
package/index.d.ts CHANGED
@@ -1,9 +1,6 @@
1
1
  import type { EventName } from '@lit-labs/react';
2
2
  import { ActionMenu as SpActionMenu } from '@spectrum-web-components/action-menu';
3
- import '@spectrum-web-components/action-menu/sp-action-menu.js';
4
3
  export declare const ActionMenu: import("@lit-labs/react").ReactWebComponent<SpActionMenu, {
5
4
  change: EventName<Event>;
6
- spOpened: EventName<Event>;
7
- spClosed: EventName<Event>;
8
5
  }>;
9
6
  export declare type ActionMenuType = EventTarget & SpActionMenu;
package/index.dev.js CHANGED
@@ -2,19 +2,13 @@
2
2
  import * as React from "react";
3
3
  import { createComponent } from "@lit-labs/react";
4
4
  import { ActionMenu as SpActionMenu } from "@spectrum-web-components/action-menu";
5
- import "@spectrum-web-components/action-menu/sp-action-menu.js";
6
5
  export const ActionMenu = createComponent({
7
6
  displayName: "ActionMenu",
8
7
  elementClass: SpActionMenu,
9
8
  react: React,
10
9
  tagName: "sp-action-menu",
11
10
  events: {
12
- change: "change",
13
- // Announces that the `value` of the element has changed
14
- spOpened: "sp-opened",
15
- // Announces that the overlay has been opened
16
- spClosed: "sp-closed"
17
- // Announces that the overlay has been closed
11
+ change: "change"
18
12
  }
19
13
  });
20
14
  //# sourceMappingURL=index.dev.js.map
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 { ActionMenu as SpActionMenu } from '@spectrum-web-components/action-menu';\n\nimport '@spectrum-web-components/action-menu/sp-action-menu.js';\n\nexport const ActionMenu = createComponent({\n displayName: 'ActionMenu',\n elementClass: SpActionMenu,\n react: React,\n tagName: 'sp-action-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n spOpened: 'sp-opened' as EventName<Event>, // Announces that the overlay has been opened\n spClosed: 'sp-closed' as EventName<Event>, // Announces that the overlay has been closed\n },\n});\n\nexport type ActionMenuType = EventTarget & SpActionMenu;\n"],
5
- "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,cAAc,oBAAoB;AAE3C,OAAO;AAEA,aAAM,aAAa,gBAAgB;AAAA,EACtC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,UAAU;AAAA;AAAA,IACV,UAAU;AAAA;AAAA,EACd;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-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { ActionMenu as SpActionMenu } from '@spectrum-web-components/action-menu';\n\nexport const ActionMenu = createComponent({\n displayName: 'ActionMenu',\n elementClass: SpActionMenu,\n react: React,\n tagName: 'sp-action-menu',\n events: {\n change: 'change' as EventName<Event>,\n },\n});\n\nexport type ActionMenuType = EventTarget & SpActionMenu;\n"],
5
+ "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,cAAc,oBAAoB;AAEpC,aAAM,aAAa,gBAAgB;AAAA,EACtC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA,EACZ;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-labs/react";import{ActionMenu as n}from"@spectrum-web-components/action-menu";import"@spectrum-web-components/action-menu/sp-action-menu.js";export const ActionMenu=t({displayName:"ActionMenu",elementClass:n,react:e,tagName:"sp-action-menu",events:{change:"change",spOpened:"sp-opened",spClosed:"sp-closed"}});
1
+ "use strict";import*as e from"react";import{createComponent as t}from"@lit-labs/react";import{ActionMenu as n}from"@spectrum-web-components/action-menu";export const ActionMenu=t({displayName:"ActionMenu",elementClass:n,react:e,tagName:"sp-action-menu",events:{change:"change"}});
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 { ActionMenu as SpActionMenu } from '@spectrum-web-components/action-menu';\n\nimport '@spectrum-web-components/action-menu/sp-action-menu.js';\n\nexport const ActionMenu = createComponent({\n displayName: 'ActionMenu',\n elementClass: SpActionMenu,\n react: React,\n tagName: 'sp-action-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n spOpened: 'sp-opened' as EventName<Event>, // Announces that the overlay has been opened\n spClosed: 'sp-closed' as EventName<Event>, // Announces that the overlay has been closed\n },\n});\n\nexport type ActionMenuType = EventTarget & SpActionMenu;\n"],
5
- "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,cAAcC,MAAoB,uCAE3C,MAAO,yDAEA,aAAM,WAAaD,EAAgB,CACtC,YAAa,aACb,aAAcC,EACd,MAAOF,EACP,QAAS,iBACT,OAAQ,CACJ,OAAQ,SACR,SAAU,YACV,SAAU,WACd,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-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { ActionMenu as SpActionMenu } from '@spectrum-web-components/action-menu';\n\nexport const ActionMenu = createComponent({\n displayName: 'ActionMenu',\n elementClass: SpActionMenu,\n react: React,\n tagName: 'sp-action-menu',\n events: {\n change: 'change' as EventName<Event>,\n },\n});\n\nexport type ActionMenuType = EventTarget & SpActionMenu;\n"],
5
+ "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,cAAcC,MAAoB,uCAEpC,aAAM,WAAaD,EAAgB,CACtC,YAAa,aACb,aAAcC,EACd,MAAOF,EACP,QAAS,iBACT,OAAQ,CACJ,OAAQ,QACZ,CACJ,CAAC",
6
6
  "names": ["React", "createComponent", "SpActionMenu"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/action-menu",
3
- "version": "0.16.2",
3
+ "version": "0.31.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "dependencies": {
22
22
  "@lit-labs/react": "^1.1.1",
23
- "@spectrum-web-components/action-menu": "0.16.2"
23
+ "@spectrum-web-components/action-menu": "0.31.0"
24
24
  },
25
- "gitHead": "277bf58bb0fe4c2efaf0fc49391b3fe35af1890b"
25
+ "gitHead": "a30eeed27948a9a372b792b751f968c54337ab9e"
26
26
  }