@swc-react/menu 1.7.0 → 1.9.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.dev.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["index.ts"],
4
- "sourcesContent": ["/*\nCopyright 2025 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*/\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 focus: 'focus' as EventName<FocusEvent>,\n blur: 'blur' as EventName<FocusEvent>,\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": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\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 focus: 'focus' as EventName<FocusEvent>,\n blur: 'blur' as EventName<FocusEvent>,\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": ";AAWA,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,OAAO;AAAA,IACP,MAAM;AAAA,IACN,iBAAiB;AAAA;AAAA,EACrB;AACJ,CAAC;",
6
6
  "names": []
7
7
  }
package/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["index.ts"],
4
- "sourcesContent": ["/*\nCopyright 2025 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*/\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 focus: 'focus' as EventName<FocusEvent>,\n blur: 'blur' as EventName<FocusEvent>,\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": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\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 focus: 'focus' as EventName<FocusEvent>,\n blur: 'blur' as EventName<FocusEvent>,\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": "aAWA,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,MAAO,QACP,KAAM,OACN,gBAAiB,oBACrB,CACJ,CAAC",
6
6
  "names": ["React", "createComponent", "SpMenu", "SpMenuDivider", "SpMenuGroup", "SpMenuItem"]
7
7
  }
package/next.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export declare const Menu: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("menu/src/Menu.js").Menu>, "size" | "label" | "renderOptions" | "change" | "close" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "render" | "selected" | "value" | "handleKeydown" | "isLTR" | "hasVisibleFocusInTree" | "closeDescendentOverlays" | "ignore" | "selects" | "valueSeparator" | "selectedItems" | "menuSlot" | "focusedItemIndex" | "focusInItemIndex" | "shouldSupportDragAndSelect" | "focusInItem" | "childItems" | "childRole" | "focusOnFirstSelectedItem" | "handleSubmenuClosed" | "getNeighboringFocusableElement" | "handleSubmenuOpened" | "selectOrToggleItem" | "updateSelectedItemIndex"> & {
1
+ export declare const Menu: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("menu/src/Menu.js").Menu>, "size" | "label" | "renderOptions" | "change" | "close" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "render" | "selected" | "value" | "handleKeydown" | "isLTR" | "hasVisibleFocusInTree" | "closeDescendentOverlays" | "ignore" | "selects" | "valueSeparator" | "selectedItems" | "menuSlot" | "isScrolling" | "focusedItemIndex" | "focusInItemIndex" | "shouldSupportDragAndSelect" | "focusInItem" | "childItems" | "childRole" | "focusOnFirstSelectedItem" | "handleSubmenuClosed" | "getNeighboringFocusableElement" | "handleSubmenuOpened" | "selectOrToggleItem" | "updateSelectedItemIndex"> & {
2
2
  change?: ((e: Event) => void) | undefined;
3
3
  close?: ((e: Event) => void) | undefined;
4
4
  } & Partial<Omit<import("menu/src/Menu.js").Menu, keyof HTMLElement>> & import("react").RefAttributes<import("menu/src/Menu.js").Menu>>;
5
5
  export declare const MenuDivider: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("menu/src/MenuDivider.js").MenuDivider>, "size" | "renderOptions" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "isLTR" | "hasVisibleFocusInTree"> & {} & Partial<Omit<import("menu/src/MenuDivider.js").MenuDivider, keyof HTMLElement>> & import("react").RefAttributes<import("menu/src/MenuDivider.js").MenuDivider>>;
6
- export declare const MenuGroup: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("menu/src/MenuGroup.js").MenuGroup>, "size" | "label" | "renderOptions" | "change" | "close" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "render" | "selected" | "value" | "handleKeydown" | "isLTR" | "hasVisibleFocusInTree" | "closeDescendentOverlays" | "ignore" | "selects" | "valueSeparator" | "selectedItems" | "menuSlot" | "focusedItemIndex" | "focusInItemIndex" | "shouldSupportDragAndSelect" | "focusInItem" | "childItems" | "childRole" | "focusOnFirstSelectedItem" | "handleSubmenuClosed" | "getNeighboringFocusableElement" | "handleSubmenuOpened" | "selectOrToggleItem" | "updateSelectedItemIndex"> & {
6
+ export declare const MenuGroup: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("menu/src/MenuGroup.js").MenuGroup>, "size" | "label" | "renderOptions" | "change" | "close" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "render" | "selected" | "value" | "handleKeydown" | "isLTR" | "hasVisibleFocusInTree" | "closeDescendentOverlays" | "ignore" | "selects" | "valueSeparator" | "selectedItems" | "menuSlot" | "isScrolling" | "focusedItemIndex" | "focusInItemIndex" | "shouldSupportDragAndSelect" | "focusInItem" | "childItems" | "childRole" | "focusOnFirstSelectedItem" | "handleSubmenuClosed" | "getNeighboringFocusableElement" | "handleSubmenuOpened" | "selectOrToggleItem" | "updateSelectedItemIndex"> & {
7
7
  change?: ((e: Event) => void) | undefined;
8
8
  close?: ((e: Event) => void) | undefined;
9
9
  } & Partial<Omit<import("menu/src/MenuGroup.js").MenuGroup, keyof HTMLElement>> & import("react").RefAttributes<import("menu/src/MenuGroup.js").MenuGroup>>;
package/next.dev.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["next.ts"],
4
- "sourcesContent": ["/*\nCopyright 2025 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*/\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Menu as SpMenu } from './index.dev.js'\nimport { MenuDivider as SpMenuDivider } from './index.dev.js'\nimport { MenuGroup as SpMenuGroup } from './index.dev.js'\nimport { MenuItem as SpMenuItem } from './index.dev.js'\n\nexport const Menu = dynamic<\n JSX.LibraryManagedAttributes<typeof SpMenu, ComponentProps<typeof SpMenu>>\n>(() => import('./index.dev.js').then(({ Menu }) => Menu), { ssr: false });\nexport const MenuDivider = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuDivider,\n ComponentProps<typeof SpMenuDivider>\n >\n>(() => import('./index.dev.js').then(({ MenuDivider }) => MenuDivider), {\n ssr: false,\n});\nexport const MenuGroup = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuGroup,\n ComponentProps<typeof SpMenuGroup>\n >\n>(() => import('./index.dev.js').then(({ MenuGroup }) => MenuGroup), {\n ssr: false,\n});\nexport const MenuItem = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuItem,\n ComponentProps<typeof SpMenuItem>\n >\n>(() => import('./index.dev.js').then(({ MenuItem }) => MenuItem), { ssr: false });\n"],
4
+ "sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Menu as SpMenu } from './index.dev.js'\nimport { MenuDivider as SpMenuDivider } from './index.dev.js'\nimport { MenuGroup as SpMenuGroup } from './index.dev.js'\nimport { MenuItem as SpMenuItem } from './index.dev.js'\n\nexport const Menu = dynamic<\n JSX.LibraryManagedAttributes<typeof SpMenu, ComponentProps<typeof SpMenu>>\n>(() => import('./index.dev.js').then(({ Menu }) => Menu), { ssr: false });\nexport const MenuDivider = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuDivider,\n ComponentProps<typeof SpMenuDivider>\n >\n>(() => import('./index.dev.js').then(({ MenuDivider }) => MenuDivider), {\n ssr: false,\n});\nexport const MenuGroup = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuGroup,\n ComponentProps<typeof SpMenuGroup>\n >\n>(() => import('./index.dev.js').then(({ MenuGroup }) => MenuGroup), {\n ssr: false,\n});\nexport const MenuItem = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuItem,\n ComponentProps<typeof SpMenuItem>\n >\n>(() => import('./index.dev.js').then(({ MenuItem }) => MenuItem), { ssr: false });\n"],
5
5
  "mappings": ";AAYA,OAAO,aAAa;AAOb,aAAM,OAAO,QAElB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,MAAAA,MAAK,MAAMA,KAAI,GAAG,EAAE,KAAK,MAAM,CAAC;AAClE,aAAM,cAAc,QAKzB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,aAAAC,aAAY,MAAMA,YAAW,GAAG;AAAA,EACrE,KAAK;AACT,CAAC;AACM,aAAM,YAAY,QAKvB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,WAAAC,WAAU,MAAMA,UAAS,GAAG;AAAA,EACjE,KAAK;AACT,CAAC;AACM,aAAM,WAAW,QAKtB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,UAAAC,UAAS,MAAMA,SAAQ,GAAG,EAAE,KAAK,MAAM,CAAC;",
6
6
  "names": ["Menu", "MenuDivider", "MenuGroup", "MenuItem"]
7
7
  }
package/next.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["next.ts"],
4
- "sourcesContent": ["/*\nCopyright 2025 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*/\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Menu as SpMenu } from './index.js';\nimport { MenuDivider as SpMenuDivider } from './index.js';\nimport { MenuGroup as SpMenuGroup } from './index.js';\nimport { MenuItem as SpMenuItem } from './index.js';\n\nexport const Menu = dynamic<\n JSX.LibraryManagedAttributes<typeof SpMenu, ComponentProps<typeof SpMenu>>\n>(() => import('./index.js').then(({ Menu }) => Menu), { ssr: false });\nexport const MenuDivider = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuDivider,\n ComponentProps<typeof SpMenuDivider>\n >\n>(() => import('./index.js').then(({ MenuDivider }) => MenuDivider), {\n ssr: false,\n});\nexport const MenuGroup = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuGroup,\n ComponentProps<typeof SpMenuGroup>\n >\n>(() => import('./index.js').then(({ MenuGroup }) => MenuGroup), {\n ssr: false,\n});\nexport const MenuItem = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuItem,\n ComponentProps<typeof SpMenuItem>\n >\n>(() => import('./index.js').then(({ MenuItem }) => MenuItem), { ssr: false });\n"],
4
+ "sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Menu as SpMenu } from './index.js';\nimport { MenuDivider as SpMenuDivider } from './index.js';\nimport { MenuGroup as SpMenuGroup } from './index.js';\nimport { MenuItem as SpMenuItem } from './index.js';\n\nexport const Menu = dynamic<\n JSX.LibraryManagedAttributes<typeof SpMenu, ComponentProps<typeof SpMenu>>\n>(() => import('./index.js').then(({ Menu }) => Menu), { ssr: false });\nexport const MenuDivider = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuDivider,\n ComponentProps<typeof SpMenuDivider>\n >\n>(() => import('./index.js').then(({ MenuDivider }) => MenuDivider), {\n ssr: false,\n});\nexport const MenuGroup = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuGroup,\n ComponentProps<typeof SpMenuGroup>\n >\n>(() => import('./index.js').then(({ MenuGroup }) => MenuGroup), {\n ssr: false,\n});\nexport const MenuItem = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpMenuItem,\n ComponentProps<typeof SpMenuItem>\n >\n>(() => import('./index.js').then(({ MenuItem }) => MenuItem), { ssr: false });\n"],
5
5
  "mappings": "aAYA,OAAOA,MAAa,eAOb,aAAM,KAAOA,EAElB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,KAAAC,CAAK,IAAMA,CAAI,EAAG,CAAE,IAAK,EAAM,CAAC,EACxD,YAAcD,EAKzB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,YAAAE,CAAY,IAAMA,CAAW,EAAG,CACjE,IAAK,EACT,CAAC,EACY,UAAYF,EAKvB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,UAAAG,CAAU,IAAMA,CAAS,EAAG,CAC7D,IAAK,EACT,CAAC,EACY,SAAWH,EAKtB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,SAAAI,CAAS,IAAMA,CAAQ,EAAG,CAAE,IAAK,EAAM,CAAC",
6
6
  "names": ["dynamic", "Menu", "MenuDivider", "MenuGroup", "MenuItem"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/menu",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@lit/react": "^1.0.2",
29
- "@spectrum-web-components/menu": "^1.7.0"
29
+ "@spectrum-web-components/menu": "^1.9.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "next": "~13.4 || ~14"