@swc-react/sidenav 1.7.0 → 1.8.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 { SideNav as SpSideNav } from '@spectrum-web-components/sidenav';\nimport { SideNavHeading as SpSideNavHeading } from '@spectrum-web-components/sidenav';\nimport { SideNavItem as SpSideNavItem } from '@spectrum-web-components/sidenav';\n\nimport '@spectrum-web-components/sidenav/sp-sidenav-heading.js';\nimport '@spectrum-web-components/sidenav/sp-sidenav-item.js';\nimport '@spectrum-web-components/sidenav/sp-sidenav.js';\n\nexport const SideNav = createComponent({\n displayName: 'SideNav',\n elementClass: SpSideNav,\n react: React,\n tagName: 'sp-sidenav',\n events: {\n change: 'change' as EventName<Event>, // Announces a change in the `value` property of the navigation element. This change can be \"canceled\" via `event.preventDefault()`.\n },\n});\nexport const SideNavHeading = createComponent({\n displayName: 'SideNavHeading',\n elementClass: SpSideNavHeading,\n react: React,\n tagName: 'sp-sidenav-heading',\n events: {},\n});\nexport const SideNavItem = createComponent({\n displayName: 'SideNavItem',\n elementClass: SpSideNavItem,\n react: React,\n tagName: 'sp-sidenav-item',\n events: {},\n});\n\nexport type SideNavType = EventTarget & SpSideNav;\nexport type SideNavHeadingType = EventTarget & SpSideNavHeading;\nexport type SideNavItemType = EventTarget & SpSideNavItem;\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 { SideNav as SpSideNav } from '@spectrum-web-components/sidenav';\nimport { SideNavHeading as SpSideNavHeading } from '@spectrum-web-components/sidenav';\nimport { SideNavItem as SpSideNavItem } from '@spectrum-web-components/sidenav';\n\nimport '@spectrum-web-components/sidenav/sp-sidenav-heading.js';\nimport '@spectrum-web-components/sidenav/sp-sidenav-item.js';\nimport '@spectrum-web-components/sidenav/sp-sidenav.js';\n\nexport const SideNav = createComponent({\n displayName: 'SideNav',\n elementClass: SpSideNav,\n react: React,\n tagName: 'sp-sidenav',\n events: {\n change: 'change' as EventName<Event>, // Announces a change in the `value` property of the navigation element. This change can be \"canceled\" via `event.preventDefault()`.\n },\n});\nexport const SideNavHeading = createComponent({\n displayName: 'SideNavHeading',\n elementClass: SpSideNavHeading,\n react: React,\n tagName: 'sp-sidenav-heading',\n events: {},\n});\nexport const SideNavItem = createComponent({\n displayName: 'SideNavItem',\n elementClass: SpSideNavItem,\n react: React,\n tagName: 'sp-sidenav-item',\n events: {},\n});\n\nexport type SideNavType = EventTarget & SpSideNav;\nexport type SideNavHeadingType = EventTarget & SpSideNavHeading;\nexport type SideNavItemType = EventTarget & SpSideNavItem;\n"],
5
5
  "mappings": ";AAWA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,WAAW,iBAAiB;AACrC,SAAS,kBAAkB,wBAAwB;AACnD,SAAS,eAAe,qBAAqB;AAE7C,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,UAAU,gBAAgB;AAAA,EACnC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,EACZ;AACJ,CAAC;AACM,aAAM,iBAAiB,gBAAgB;AAAA,EAC1C,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,cAAc,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,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 { SideNav as SpSideNav } from '@spectrum-web-components/sidenav';\nimport { SideNavHeading as SpSideNavHeading } from '@spectrum-web-components/sidenav';\nimport { SideNavItem as SpSideNavItem } from '@spectrum-web-components/sidenav';\n\nimport '@spectrum-web-components/sidenav/sp-sidenav-heading.js';\nimport '@spectrum-web-components/sidenav/sp-sidenav-item.js';\nimport '@spectrum-web-components/sidenav/sp-sidenav.js';\n\nexport const SideNav = createComponent({\n displayName: 'SideNav',\n elementClass: SpSideNav,\n react: React,\n tagName: 'sp-sidenav',\n events: {\n change: 'change' as EventName<Event>, // Announces a change in the `value` property of the navigation element. This change can be \"canceled\" via `event.preventDefault()`.\n },\n});\nexport const SideNavHeading = createComponent({\n displayName: 'SideNavHeading',\n elementClass: SpSideNavHeading,\n react: React,\n tagName: 'sp-sidenav-heading',\n events: {},\n});\nexport const SideNavItem = createComponent({\n displayName: 'SideNavItem',\n elementClass: SpSideNavItem,\n react: React,\n tagName: 'sp-sidenav-item',\n events: {},\n});\n\nexport type SideNavType = EventTarget & SpSideNav;\nexport type SideNavHeadingType = EventTarget & SpSideNavHeading;\nexport type SideNavItemType = EventTarget & SpSideNavItem;\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 { SideNav as SpSideNav } from '@spectrum-web-components/sidenav';\nimport { SideNavHeading as SpSideNavHeading } from '@spectrum-web-components/sidenav';\nimport { SideNavItem as SpSideNavItem } from '@spectrum-web-components/sidenav';\n\nimport '@spectrum-web-components/sidenav/sp-sidenav-heading.js';\nimport '@spectrum-web-components/sidenav/sp-sidenav-item.js';\nimport '@spectrum-web-components/sidenav/sp-sidenav.js';\n\nexport const SideNav = createComponent({\n displayName: 'SideNav',\n elementClass: SpSideNav,\n react: React,\n tagName: 'sp-sidenav',\n events: {\n change: 'change' as EventName<Event>, // Announces a change in the `value` property of the navigation element. This change can be \"canceled\" via `event.preventDefault()`.\n },\n});\nexport const SideNavHeading = createComponent({\n displayName: 'SideNavHeading',\n elementClass: SpSideNavHeading,\n react: React,\n tagName: 'sp-sidenav-heading',\n events: {},\n});\nexport const SideNavItem = createComponent({\n displayName: 'SideNavItem',\n elementClass: SpSideNavItem,\n react: React,\n tagName: 'sp-sidenav-item',\n events: {},\n});\n\nexport type SideNavType = EventTarget & SpSideNav;\nexport type SideNavHeadingType = EventTarget & SpSideNavHeading;\nexport type SideNavItemType = EventTarget & SpSideNavItem;\n"],
5
5
  "mappings": "aAWA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,aAEhC,OAAS,WAAWC,MAAiB,mCACrC,OAAS,kBAAkBC,MAAwB,mCACnD,OAAS,eAAeC,MAAqB,mCAE7C,MAAO,yDACP,MAAO,sDACP,MAAO,iDAEA,aAAM,QAAUH,EAAgB,CACnC,YAAa,UACb,aAAcC,EACd,MAAOF,EACP,QAAS,aACT,OAAQ,CACJ,OAAQ,QACZ,CACJ,CAAC,EACY,eAAiBC,EAAgB,CAC1C,YAAa,iBACb,aAAcE,EACd,MAAOH,EACP,QAAS,qBACT,OAAQ,CAAC,CACb,CAAC,EACY,YAAcC,EAAgB,CACvC,YAAa,cACb,aAAcG,EACd,MAAOJ,EACP,QAAS,kBACT,OAAQ,CAAC,CACb,CAAC",
6
6
  "names": ["React", "createComponent", "SpSideNav", "SpSideNavHeading", "SpSideNavItem"]
7
7
  }
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 { SideNav as SpSideNav } from './index.dev.js'\nimport { SideNavHeading as SpSideNavHeading } from './index.dev.js'\nimport { SideNavItem as SpSideNavItem } from './index.dev.js'\n\nexport const SideNav = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNav,\n ComponentProps<typeof SpSideNav>\n >\n>(() => import('./index.dev.js').then(({ SideNav }) => SideNav), { ssr: false });\nexport const SideNavHeading = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNavHeading,\n ComponentProps<typeof SpSideNavHeading>\n >\n>(() => import('./index.dev.js').then(({ SideNavHeading }) => SideNavHeading), {\n ssr: false,\n});\nexport const SideNavItem = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNavItem,\n ComponentProps<typeof SpSideNavItem>\n >\n>(() => import('./index.dev.js').then(({ SideNavItem }) => SideNavItem), {\n ssr: false,\n});\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 { SideNav as SpSideNav } from './index.dev.js'\nimport { SideNavHeading as SpSideNavHeading } from './index.dev.js'\nimport { SideNavItem as SpSideNavItem } from './index.dev.js'\n\nexport const SideNav = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNav,\n ComponentProps<typeof SpSideNav>\n >\n>(() => import('./index.dev.js').then(({ SideNav }) => SideNav), { ssr: false });\nexport const SideNavHeading = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNavHeading,\n ComponentProps<typeof SpSideNavHeading>\n >\n>(() => import('./index.dev.js').then(({ SideNavHeading }) => SideNavHeading), {\n ssr: false,\n});\nexport const SideNavItem = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNavItem,\n ComponentProps<typeof SpSideNavItem>\n >\n>(() => import('./index.dev.js').then(({ SideNavItem }) => SideNavItem), {\n ssr: false,\n});\n"],
5
5
  "mappings": ";AAYA,OAAO,aAAa;AAMb,aAAM,UAAU,QAKrB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,SAAAA,SAAQ,MAAMA,QAAO,GAAG,EAAE,KAAK,MAAM,CAAC;AACxE,aAAM,iBAAiB,QAK5B,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,gBAAAC,gBAAe,MAAMA,eAAc,GAAG;AAAA,EAC3E,KAAK;AACT,CAAC;AACM,aAAM,cAAc,QAKzB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,aAAAC,aAAY,MAAMA,YAAW,GAAG;AAAA,EACrE,KAAK;AACT,CAAC;",
6
6
  "names": ["SideNav", "SideNavHeading", "SideNavItem"]
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 { SideNav as SpSideNav } from './index.js';\nimport { SideNavHeading as SpSideNavHeading } from './index.js';\nimport { SideNavItem as SpSideNavItem } from './index.js';\n\nexport const SideNav = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNav,\n ComponentProps<typeof SpSideNav>\n >\n>(() => import('./index.js').then(({ SideNav }) => SideNav), { ssr: false });\nexport const SideNavHeading = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNavHeading,\n ComponentProps<typeof SpSideNavHeading>\n >\n>(() => import('./index.js').then(({ SideNavHeading }) => SideNavHeading), {\n ssr: false,\n});\nexport const SideNavItem = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNavItem,\n ComponentProps<typeof SpSideNavItem>\n >\n>(() => import('./index.js').then(({ SideNavItem }) => SideNavItem), {\n ssr: false,\n});\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 { SideNav as SpSideNav } from './index.js';\nimport { SideNavHeading as SpSideNavHeading } from './index.js';\nimport { SideNavItem as SpSideNavItem } from './index.js';\n\nexport const SideNav = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNav,\n ComponentProps<typeof SpSideNav>\n >\n>(() => import('./index.js').then(({ SideNav }) => SideNav), { ssr: false });\nexport const SideNavHeading = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNavHeading,\n ComponentProps<typeof SpSideNavHeading>\n >\n>(() => import('./index.js').then(({ SideNavHeading }) => SideNavHeading), {\n ssr: false,\n});\nexport const SideNavItem = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpSideNavItem,\n ComponentProps<typeof SpSideNavItem>\n >\n>(() => import('./index.js').then(({ SideNavItem }) => SideNavItem), {\n ssr: false,\n});\n"],
5
5
  "mappings": "aAYA,OAAOA,MAAa,eAMb,aAAM,QAAUA,EAKrB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,QAAAC,CAAQ,IAAMA,CAAO,EAAG,CAAE,IAAK,EAAM,CAAC,EAC9D,eAAiBD,EAK5B,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,eAAAE,CAAe,IAAMA,CAAc,EAAG,CACvE,IAAK,EACT,CAAC,EACY,YAAcF,EAKzB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,YAAAG,CAAY,IAAMA,CAAW,EAAG,CACjE,IAAK,EACT,CAAC",
6
6
  "names": ["dynamic", "SideNav", "SideNavHeading", "SideNavItem"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/sidenav",
3
- "version": "1.7.0",
3
+ "version": "1.8.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/sidenav": "^1.7.0"
29
+ "@spectrum-web-components/sidenav": "^1.8.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "next": "~13.4 || ~14"