@swc-react/menu 0.40.0 → 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,4 +1,4 @@
1
- import type { EventName } from '@lit-labs/react';
1
+ import type { EventName } from '@lit/react';
2
2
  import { Menu as SpMenu } from '@spectrum-web-components/menu';
3
3
  import { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';
4
4
  import { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';
@@ -7,16 +7,16 @@ import '@spectrum-web-components/menu/sp-menu-divider.js';
7
7
  import '@spectrum-web-components/menu/sp-menu-group.js';
8
8
  import '@spectrum-web-components/menu/sp-menu-item.js';
9
9
  import '@spectrum-web-components/menu/sp-menu.js';
10
- export declare const Menu: import("@lit-labs/react").ReactWebComponent<SpMenu, {
10
+ export declare const Menu: import("@lit/react").ReactWebComponent<SpMenu, {
11
11
  change: EventName<Event>;
12
12
  close: EventName<Event>;
13
13
  }>;
14
- export declare const MenuDivider: import("@lit-labs/react").ReactWebComponent<SpMenuDivider, {}>;
15
- export declare const MenuGroup: import("@lit-labs/react").ReactWebComponent<SpMenuGroup, {
14
+ export declare const MenuDivider: import("@lit/react").ReactWebComponent<SpMenuDivider, {}>;
15
+ export declare const MenuGroup: import("@lit/react").ReactWebComponent<SpMenuGroup, {
16
16
  change: EventName<Event>;
17
17
  close: EventName<Event>;
18
18
  }>;
19
- export declare const MenuItem: import("@lit-labs/react").ReactWebComponent<SpMenuItem, {
19
+ export declare const MenuItem: import("@lit/react").ReactWebComponent<SpMenuItem, {
20
20
  spMenuItemAdded: EventName<Event>;
21
21
  }>;
22
22
  export declare type MenuType = EventTarget & SpMenu;
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 { Menu as SpMenu } from "@spectrum-web-components/menu";
5
5
  import { MenuDivider as SpMenuDivider } from "@spectrum-web-components/menu";
6
6
  import { MenuGroup as SpMenuGroup } from "@spectrum-web-components/menu";
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 { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\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 { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
5
5
  "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,QAAQ,cAAc;AAC/B,SAAS,eAAe,qBAAqB;AAC7C,SAAS,aAAa,mBAAmB;AACzC,SAAS,YAAY,kBAAkB;AAEvC,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,OAAO,gBAAgB;AAAA,EAChC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,cAAc,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,WAAW,gBAAgB;AAAA,EACpC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,iBAAiB;AAAA;AAAA,EACrB;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{Menu as n}from"@spectrum-web-components/menu";import{MenuDivider as p}from"@spectrum-web-components/menu";import{MenuGroup as a}from"@spectrum-web-components/menu";import{MenuItem as m}from"@spectrum-web-components/menu";import"@spectrum-web-components/menu/sp-menu-divider.js";import"@spectrum-web-components/menu/sp-menu-group.js";import"@spectrum-web-components/menu/sp-menu-item.js";import"@spectrum-web-components/menu/sp-menu.js";export const Menu=t({displayName:"Menu",elementClass:n,react:e,tagName:"sp-menu",events:{change:"change",close:"close"}}),MenuDivider=t({displayName:"MenuDivider",elementClass:p,react:e,tagName:"sp-menu-divider",events:{}}),MenuGroup=t({displayName:"MenuGroup",elementClass:a,react:e,tagName:"sp-menu-group",events:{change:"change",close:"close"}}),MenuItem=t({displayName:"MenuItem",elementClass:m,react:e,tagName:"sp-menu-item",events:{spMenuItemAdded:"sp-menu-item-added"}});
1
+ "use strict";import*as e from"react";import{createComponent as t}from"@lit/react";import{Menu as n}from"@spectrum-web-components/menu";import{MenuDivider as p}from"@spectrum-web-components/menu";import{MenuGroup as a}from"@spectrum-web-components/menu";import{MenuItem as m}from"@spectrum-web-components/menu";import"@spectrum-web-components/menu/sp-menu-divider.js";import"@spectrum-web-components/menu/sp-menu-group.js";import"@spectrum-web-components/menu/sp-menu-item.js";import"@spectrum-web-components/menu/sp-menu.js";export const Menu=t({displayName:"Menu",elementClass:n,react:e,tagName:"sp-menu",events:{change:"change",close:"close"}}),MenuDivider=t({displayName:"MenuDivider",elementClass:p,react:e,tagName:"sp-menu-divider",events:{}}),MenuGroup=t({displayName:"MenuGroup",elementClass:a,react:e,tagName:"sp-menu-group",events:{change:"change",close:"close"}}),MenuItem=t({displayName:"MenuItem",elementClass:m,react:e,tagName:"sp-menu-item",events:{spMenuItemAdded:"sp-menu-item-added"}});
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 { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
5
- "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,QAAQC,MAAc,gCAC/B,OAAS,eAAeC,MAAqB,gCAC7C,OAAS,aAAaC,MAAmB,gCACzC,OAAS,YAAYC,MAAkB,gCAEvC,MAAO,mDACP,MAAO,iDACP,MAAO,gDACP,MAAO,2CAEA,aAAM,KAAOJ,EAAgB,CAChC,YAAa,OACb,aAAcC,EACd,MAAOF,EACP,QAAS,UACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,YAAcC,EAAgB,CACvC,YAAa,cACb,aAAcE,EACd,MAAOH,EACP,QAAS,kBACT,OAAQ,CAAC,CACb,CAAC,EACY,UAAYC,EAAgB,CACrC,YAAa,YACb,aAAcG,EACd,MAAOJ,EACP,QAAS,gBACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,SAAWC,EAAgB,CACpC,YAAa,WACb,aAAcI,EACd,MAAOL,EACP,QAAS,eACT,OAAQ,CACJ,gBAAiB,oBACrB,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 { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
5
+ "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,aAEhC,OAAS,QAAQC,MAAc,gCAC/B,OAAS,eAAeC,MAAqB,gCAC7C,OAAS,aAAaC,MAAmB,gCACzC,OAAS,YAAYC,MAAkB,gCAEvC,MAAO,mDACP,MAAO,iDACP,MAAO,gDACP,MAAO,2CAEA,aAAM,KAAOJ,EAAgB,CAChC,YAAa,OACb,aAAcC,EACd,MAAOF,EACP,QAAS,UACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,YAAcC,EAAgB,CACvC,YAAa,cACb,aAAcE,EACd,MAAOH,EACP,QAAS,kBACT,OAAQ,CAAC,CACb,CAAC,EACY,UAAYC,EAAgB,CACrC,YAAa,YACb,aAAcG,EACd,MAAOJ,EACP,QAAS,gBACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,SAAWC,EAAgB,CACpC,YAAa,WACb,aAAcI,EACd,MAAOL,EACP,QAAS,eACT,OAAQ,CACJ,gBAAiB,oBACrB,CACJ,CAAC",
6
6
  "names": ["React", "createComponent", "SpMenu", "SpMenuDivider", "SpMenuGroup", "SpMenuItem"]
7
7
  }