@swc-react/button 1.5.0 → 1.7.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 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 { Button as SpButton } from '@spectrum-web-components/button';\nimport { ClearButton as SpClearButton } from '@spectrum-web-components/button';\nimport { CloseButton as SpCloseButton } from '@spectrum-web-components/button';\n\nimport '@spectrum-web-components/button/sp-button.js';\nimport '@spectrum-web-components/button/sp-clear-button.js';\nimport '@spectrum-web-components/button/sp-close-button.js';\n\nexport const Button = createComponent({\n displayName: 'Button',\n elementClass: SpButton,\n react: React,\n tagName: 'sp-button',\n events: {},\n});\nexport const ClearButton = createComponent({\n displayName: 'ClearButton',\n elementClass: SpClearButton,\n react: React,\n tagName: 'sp-clear-button',\n events: {},\n});\nexport const CloseButton = createComponent({\n displayName: 'CloseButton',\n elementClass: SpCloseButton,\n react: React,\n tagName: 'sp-close-button',\n events: {},\n});\n\nexport type ButtonType = EventTarget & SpButton;\nexport type ClearButtonType = EventTarget & SpClearButton;\nexport type CloseButtonType = EventTarget & SpCloseButton;\n"],
5
- "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,SAAS,UAAU,gBAAgB;AACnC,SAAS,eAAe,qBAAqB;AAC7C,SAAS,eAAe,qBAAqB;AAE7C,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,SAAS,gBAAgB;AAAA,EAClC,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;AACM,aAAM,cAAc,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;",
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 { Button as SpButton } from '@spectrum-web-components/button';\nimport { ClearButton as SpClearButton } from '@spectrum-web-components/button';\nimport { CloseButton as SpCloseButton } from '@spectrum-web-components/button';\n\nimport '@spectrum-web-components/button/sp-button.js';\nimport '@spectrum-web-components/button/sp-clear-button.js';\nimport '@spectrum-web-components/button/sp-close-button.js';\n\nexport const Button = createComponent({\n displayName: 'Button',\n elementClass: SpButton,\n react: React,\n tagName: 'sp-button',\n events: {},\n});\nexport const ClearButton = createComponent({\n displayName: 'ClearButton',\n elementClass: SpClearButton,\n react: React,\n tagName: 'sp-clear-button',\n events: {},\n});\nexport const CloseButton = createComponent({\n displayName: 'CloseButton',\n elementClass: SpCloseButton,\n react: React,\n tagName: 'sp-close-button',\n events: {},\n});\n\nexport type ButtonType = EventTarget & SpButton;\nexport type ClearButtonType = EventTarget & SpClearButton;\nexport type CloseButtonType = EventTarget & SpCloseButton;\n"],
5
+ "mappings": ";AAWA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,SAAS,UAAU,gBAAgB;AACnC,SAAS,eAAe,qBAAqB;AAC7C,SAAS,eAAe,qBAAqB;AAE7C,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,SAAS,gBAAgB;AAAA,EAClC,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;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 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 { Button as SpButton } from '@spectrum-web-components/button';\nimport { ClearButton as SpClearButton } from '@spectrum-web-components/button';\nimport { CloseButton as SpCloseButton } from '@spectrum-web-components/button';\n\nimport '@spectrum-web-components/button/sp-button.js';\nimport '@spectrum-web-components/button/sp-clear-button.js';\nimport '@spectrum-web-components/button/sp-close-button.js';\n\nexport const Button = createComponent({\n displayName: 'Button',\n elementClass: SpButton,\n react: React,\n tagName: 'sp-button',\n events: {},\n});\nexport const ClearButton = createComponent({\n displayName: 'ClearButton',\n elementClass: SpClearButton,\n react: React,\n tagName: 'sp-clear-button',\n events: {},\n});\nexport const CloseButton = createComponent({\n displayName: 'CloseButton',\n elementClass: SpCloseButton,\n react: React,\n tagName: 'sp-close-button',\n events: {},\n});\n\nexport type ButtonType = EventTarget & SpButton;\nexport type ClearButtonType = EventTarget & SpClearButton;\nexport type CloseButtonType = EventTarget & SpCloseButton;\n"],
5
- "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,aAChC,OAAS,UAAUC,MAAgB,kCACnC,OAAS,eAAeC,MAAqB,kCAC7C,OAAS,eAAeC,MAAqB,kCAE7C,MAAO,+CACP,MAAO,qDACP,MAAO,qDAEA,aAAM,OAASH,EAAgB,CAClC,YAAa,SACb,aAAcC,EACd,MAAOF,EACP,QAAS,YACT,OAAQ,CAAC,CACb,CAAC,EACY,YAAcC,EAAgB,CACvC,YAAa,cACb,aAAcE,EACd,MAAOH,EACP,QAAS,kBACT,OAAQ,CAAC,CACb,CAAC,EACY,YAAcC,EAAgB,CACvC,YAAa,cACb,aAAcG,EACd,MAAOJ,EACP,QAAS,kBACT,OAAQ,CAAC,CACb,CAAC",
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 { Button as SpButton } from '@spectrum-web-components/button';\nimport { ClearButton as SpClearButton } from '@spectrum-web-components/button';\nimport { CloseButton as SpCloseButton } from '@spectrum-web-components/button';\n\nimport '@spectrum-web-components/button/sp-button.js';\nimport '@spectrum-web-components/button/sp-clear-button.js';\nimport '@spectrum-web-components/button/sp-close-button.js';\n\nexport const Button = createComponent({\n displayName: 'Button',\n elementClass: SpButton,\n react: React,\n tagName: 'sp-button',\n events: {},\n});\nexport const ClearButton = createComponent({\n displayName: 'ClearButton',\n elementClass: SpClearButton,\n react: React,\n tagName: 'sp-clear-button',\n events: {},\n});\nexport const CloseButton = createComponent({\n displayName: 'CloseButton',\n elementClass: SpCloseButton,\n react: React,\n tagName: 'sp-close-button',\n events: {},\n});\n\nexport type ButtonType = EventTarget & SpButton;\nexport type ClearButtonType = EventTarget & SpClearButton;\nexport type CloseButtonType = EventTarget & SpCloseButton;\n"],
5
+ "mappings": "aAWA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,aAChC,OAAS,UAAUC,MAAgB,kCACnC,OAAS,eAAeC,MAAqB,kCAC7C,OAAS,eAAeC,MAAqB,kCAE7C,MAAO,+CACP,MAAO,qDACP,MAAO,qDAEA,aAAM,OAASH,EAAgB,CAClC,YAAa,SACb,aAAcC,EACd,MAAOF,EACP,QAAS,YACT,OAAQ,CAAC,CACb,CAAC,EACY,YAAcC,EAAgB,CACvC,YAAa,cACb,aAAcE,EACd,MAAOH,EACP,QAAS,kBACT,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", "SpButton", "SpClearButton", "SpCloseButton"]
7
7
  }
package/next.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export declare const Button: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("button/src").Button>, "type" | "size" | "download" | "label" | "href" | "target" | "rel" | "disabled" | "slotHasContent" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "active" | "staticColor" | "pending" | "pendingLabel" | "variant" | "treatment" | "quiet" | "noWrap" | "pendingStateController" | "focusElement" | "renderAnchor" | "selfManageFocusElement" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree" | "manageTextObservedSlot"> & {} & Partial<Omit<import("button/src").Button, keyof HTMLElement>> & import("react").RefAttributes<import("button/src").Button>>;
2
- export declare const ClearButton: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("button/src").ClearButton>, "type" | "size" | "download" | "label" | "href" | "target" | "rel" | "disabled" | "slotHasContent" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "active" | "variant" | "focusElement" | "renderAnchor" | "selfManageFocusElement" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree" | "manageTextObservedSlot"> & {} & Partial<Omit<import("button/src").ClearButton, keyof HTMLElement>> & import("react").RefAttributes<import("button/src").ClearButton>>;
3
- export declare const CloseButton: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("button/src").CloseButton>, "type" | "size" | "download" | "label" | "href" | "target" | "rel" | "disabled" | "slotHasContent" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "active" | "staticColor" | "variant" | "focusElement" | "renderAnchor" | "selfManageFocusElement" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree" | "manageTextObservedSlot"> & {} & Partial<Omit<import("button/src").CloseButton, keyof HTMLElement>> & import("react").RefAttributes<import("button/src").CloseButton>>;
1
+ export declare const Button: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("button/src/Button.js").Button>, "type" | "size" | "download" | "label" | "href" | "target" | "rel" | "disabled" | "slotHasContent" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "active" | "staticColor" | "pending" | "pendingLabel" | "variant" | "treatment" | "quiet" | "noWrap" | "pendingStateController" | "focusElement" | "renderAnchor" | "selfManageFocusElement" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree" | "manageTextObservedSlot"> & {} & Partial<Omit<import("button/src/Button.js").Button, keyof HTMLElement>> & import("react").RefAttributes<import("button/src/Button.js").Button>>;
2
+ export declare const ClearButton: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("button/src/ClearButton.js").ClearButton>, "type" | "size" | "download" | "label" | "href" | "target" | "rel" | "disabled" | "slotHasContent" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "active" | "variant" | "focusElement" | "renderAnchor" | "selfManageFocusElement" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree" | "manageTextObservedSlot"> & {} & Partial<Omit<import("button/src/ClearButton.js").ClearButton, keyof HTMLElement>> & import("react").RefAttributes<import("button/src/ClearButton.js").ClearButton>>;
3
+ export declare const CloseButton: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("button/src/CloseButton.js").CloseButton>, "type" | "size" | "download" | "label" | "href" | "target" | "rel" | "disabled" | "slotHasContent" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "active" | "staticColor" | "variant" | "focusElement" | "renderAnchor" | "selfManageFocusElement" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree" | "manageTextObservedSlot"> & {} & Partial<Omit<import("button/src/CloseButton.js").CloseButton, keyof HTMLElement>> & import("react").RefAttributes<import("button/src/CloseButton.js").CloseButton>>;
package/next.dev.js CHANGED
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  import dynamic from "next/dynamic";
3
- export const Button = dynamic(() => import(".").then(({ Button: Button2 }) => Button2), { ssr: false });
4
- export const ClearButton = dynamic(() => import(".").then(({ ClearButton: ClearButton2 }) => ClearButton2), { ssr: false });
5
- export const CloseButton = dynamic(() => import(".").then(({ CloseButton: CloseButton2 }) => CloseButton2), { ssr: false });
3
+ export const Button = dynamic(() => import("./index.dev.js").then(({ Button: Button2 }) => Button2), { ssr: false });
4
+ export const ClearButton = dynamic(() => import("./index.dev.js").then(({ ClearButton: ClearButton2 }) => ClearButton2), {
5
+ ssr: false
6
+ });
7
+ export const CloseButton = dynamic(() => import("./index.dev.js").then(({ CloseButton: CloseButton2 }) => CloseButton2), {
8
+ ssr: false
9
+ });
6
10
  //# sourceMappingURL=next.dev.js.map
package/next.dev.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["next.ts"],
4
- "sourcesContent": ["/*\nCopyright 2023 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 { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Button as SpButton } from '.';\nimport { ClearButton as SpClearButton } from '.';\nimport { CloseButton as SpCloseButton } from '.';\n\nexport const Button = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpButton,\n ComponentProps<typeof SpButton>\n >\n>(() => import('.').then(({ Button }) => Button), { ssr: false });\nexport const ClearButton = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpClearButton,\n ComponentProps<typeof SpClearButton>\n >\n>(() => import('.').then(({ ClearButton }) => ClearButton), { ssr: false });\nexport const CloseButton = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpCloseButton,\n ComponentProps<typeof SpCloseButton>\n >\n>(() => import('.').then(({ CloseButton }) => CloseButton), { ssr: false });\n"],
5
- "mappings": ";AAaA,OAAO,aAAa;AAMb,aAAM,SAAS,QAKpB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,QAAAA,QAAO,MAAMA,OAAM,GAAG,EAAE,KAAK,MAAM,CAAC;AACzD,aAAM,cAAc,QAKzB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,aAAAC,aAAY,MAAMA,YAAW,GAAG,EAAE,KAAK,MAAM,CAAC;AACnE,aAAM,cAAc,QAKzB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,aAAAC,aAAY,MAAMA,YAAW,GAAG,EAAE,KAAK,MAAM,CAAC;",
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 { Button as SpButton } from './index.dev.js'\nimport { ClearButton as SpClearButton } from './index.dev.js'\nimport { CloseButton as SpCloseButton } from './index.dev.js'\n\nexport const Button = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpButton,\n ComponentProps<typeof SpButton>\n >\n>(() => import('./index.dev.js').then(({ Button }) => Button), { ssr: false });\nexport const ClearButton = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpClearButton,\n ComponentProps<typeof SpClearButton>\n >\n>(() => import('./index.dev.js').then(({ ClearButton }) => ClearButton), {\n ssr: false,\n});\nexport const CloseButton = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpCloseButton,\n ComponentProps<typeof SpCloseButton>\n >\n>(() => import('./index.dev.js').then(({ CloseButton }) => CloseButton), {\n ssr: false,\n});\n"],
5
+ "mappings": ";AAYA,OAAO,aAAa;AAMb,aAAM,SAAS,QAKpB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,QAAAA,QAAO,MAAMA,OAAM,GAAG,EAAE,KAAK,MAAM,CAAC;AACtE,aAAM,cAAc,QAKzB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,aAAAC,aAAY,MAAMA,YAAW,GAAG;AAAA,EACrE,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": ["Button", "ClearButton", "CloseButton"]
7
7
  }
package/next.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";import o from"next/dynamic";export const Button=o(()=>import(".").then(({Button:t})=>t),{ssr:!1}),ClearButton=o(()=>import(".").then(({ClearButton:t})=>t),{ssr:!1}),CloseButton=o(()=>import(".").then(({CloseButton:t})=>t),{ssr:!1});
1
+ "use strict";import o from"next/dynamic";export const Button=o(()=>import("./index.js").then(({Button:t})=>t),{ssr:!1}),ClearButton=o(()=>import("./index.js").then(({ClearButton:t})=>t),{ssr:!1}),CloseButton=o(()=>import("./index.js").then(({CloseButton:t})=>t),{ssr:!1});
2
2
  //# sourceMappingURL=next.js.map
package/next.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["next.ts"],
4
- "sourcesContent": ["/*\nCopyright 2023 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 { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Button as SpButton } from '.';\nimport { ClearButton as SpClearButton } from '.';\nimport { CloseButton as SpCloseButton } from '.';\n\nexport const Button = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpButton,\n ComponentProps<typeof SpButton>\n >\n>(() => import('.').then(({ Button }) => Button), { ssr: false });\nexport const ClearButton = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpClearButton,\n ComponentProps<typeof SpClearButton>\n >\n>(() => import('.').then(({ ClearButton }) => ClearButton), { ssr: false });\nexport const CloseButton = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpCloseButton,\n ComponentProps<typeof SpCloseButton>\n >\n>(() => import('.').then(({ CloseButton }) => CloseButton), { ssr: false });\n"],
5
- "mappings": "aAaA,OAAOA,MAAa,eAMb,aAAM,OAASA,EAKpB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,OAAAC,CAAO,IAAMA,CAAM,EAAG,CAAE,IAAK,EAAM,CAAC,EACnD,YAAcD,EAKzB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,YAAAE,CAAY,IAAMA,CAAW,EAAG,CAAE,IAAK,EAAM,CAAC,EAC7D,YAAcF,EAKzB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,YAAAG,CAAY,IAAMA,CAAW,EAAG,CAAE,IAAK,EAAM,CAAC",
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 { Button as SpButton } from './index.js';\nimport { ClearButton as SpClearButton } from './index.js';\nimport { CloseButton as SpCloseButton } from './index.js';\n\nexport const Button = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpButton,\n ComponentProps<typeof SpButton>\n >\n>(() => import('./index.js').then(({ Button }) => Button), { ssr: false });\nexport const ClearButton = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpClearButton,\n ComponentProps<typeof SpClearButton>\n >\n>(() => import('./index.js').then(({ ClearButton }) => ClearButton), {\n ssr: false,\n});\nexport const CloseButton = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpCloseButton,\n ComponentProps<typeof SpCloseButton>\n >\n>(() => import('./index.js').then(({ CloseButton }) => CloseButton), {\n ssr: false,\n});\n"],
5
+ "mappings": "aAYA,OAAOA,MAAa,eAMb,aAAM,OAASA,EAKpB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,OAAAC,CAAO,IAAMA,CAAM,EAAG,CAAE,IAAK,EAAM,CAAC,EAC5D,YAAcD,EAKzB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,YAAAE,CAAY,IAAMA,CAAW,EAAG,CACjE,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", "Button", "ClearButton", "CloseButton"]
7
7
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@swc-react/button",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "description": "React and Next.js wrapper of the @spectrum-web-components/button component",
8
8
  "license": "Apache-2.0",
9
- "author": "",
9
+ "author": "Adobe",
10
10
  "type": "module",
11
11
  "exports": {
12
12
  ".": {
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@lit/react": "^1.0.2",
29
- "@spectrum-web-components/button": "^1.5.0"
29
+ "@spectrum-web-components/button": "^1.7.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "next": "~13.4 || ~14"