@swc-react/button 1.12.0-next.20260216143330 → 1.12.0-next.20260218162159
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 +1 -1
- package/index.dev.js.map +2 -2
- package/index.js +1 -1
- package/index.js.map +3 -3
- package/next.d.ts +3 -3
- package/next.dev.js.map +2 -2
- package/next.js.map +2 -2
- package/package.json +39 -39
package/index.dev.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import * as React from "react";
|
|
3
2
|
import { createComponent } from "@lit/react";
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import { Button as SpButton } from "@spectrum-web-components/button";
|
|
5
5
|
import { ClearButton as SpClearButton } from "@spectrum-web-components/button";
|
|
6
6
|
import { CloseButton as SpCloseButton } from "@spectrum-web-components/button";
|
package/index.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["/**\n * Copyright 2026 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 { createComponent } from '@lit/react';\nimport * as React from 'react';\n\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,SAAS,uBAAuB;AAChC,YAAY,WAAW;AAEvB,SAAS,UAAU,gBAAgB;AACnC,SAAS,eAAe,qBAAqB;AAC7C,SAAS,eAAe,qBAAqB;AAE7C,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,SAAS,gBAAgB;AAAA,EACpC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACX,CAAC;AACM,aAAM,cAAc,gBAAgB;AAAA,EACzC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACX,CAAC;AACM,aAAM,cAAc,gBAAgB;AAAA,EACzC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACX,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import
|
|
1
|
+
"use strict";import{createComponent as t}from"@lit/react";import*as e from"react";import{Button as o}from"@spectrum-web-components/button";import{ClearButton as n}from"@spectrum-web-components/button";import{CloseButton as a}from"@spectrum-web-components/button";import"@spectrum-web-components/button/sp-button.js";import"@spectrum-web-components/button/sp-clear-button.js";import"@spectrum-web-components/button/sp-close-button.js";export const Button=t({displayName:"Button",elementClass:o,react:e,tagName:"sp-button",events:{}}),ClearButton=t({displayName:"ClearButton",elementClass:n,react:e,tagName:"sp-clear-button",events:{}}),CloseButton=t({displayName:"CloseButton",elementClass:a,react:e,tagName:"sp-close-button",events:{}});
|
|
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": ["
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["/**\n * Copyright 2026 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 { createComponent } from '@lit/react';\nimport * as React from 'react';\n\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,OAAS,mBAAAA,MAAuB,aAChC,UAAYC,MAAW,QAEvB,OAAS,UAAUC,MAAgB,kCACnC,OAAS,eAAeC,MAAqB,kCAC7C,OAAS,eAAeC,MAAqB,kCAE7C,MAAO,+CACP,MAAO,qDACP,MAAO,qDAEA,aAAM,OAASJ,EAAgB,CACpC,YAAa,SACb,aAAcE,EACd,MAAOD,EACP,QAAS,YACT,OAAQ,CAAC,CACX,CAAC,EACY,YAAcD,EAAgB,CACzC,YAAa,cACb,aAAcG,EACd,MAAOF,EACP,QAAS,kBACT,OAAQ,CAAC,CACX,CAAC,EACY,YAAcD,EAAgB,CACzC,YAAa,cACb,aAAcI,EACd,MAAOH,EACP,QAAS,kBACT,OAAQ,CAAC,CACX,CAAC",
|
|
6
|
+
"names": ["createComponent", "React", "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.js").Button>, "
|
|
2
|
-
export declare const ClearButton: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("button/src/ClearButton.js").ClearButton>, "
|
|
3
|
-
export declare const CloseButton: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("button/src/CloseButton.js").CloseButton>, "
|
|
1
|
+
export declare const Button: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("button/src/Button.js").Button>, "type" | "staticColor" | "pending" | "disabled" | "pendingLabel" | "label" | "download" | "href" | "target" | "rel" | "active" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "variant" | "treatment" | "quiet" | "noWrap" | "size" | "pendingStateController" | "focusElement" | "renderAnchor" | "selfManageFocusElement" | "renderOptions" | "hasVisibleFocusInTree" | "slotHasContent" | "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" | "staticColor" | "disabled" | "label" | "download" | "href" | "target" | "rel" | "active" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "variant" | "quiet" | "size" | "focusElement" | "renderAnchor" | "selfManageFocusElement" | "renderOptions" | "hasVisibleFocusInTree" | "slotHasContent" | "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" | "staticColor" | "disabled" | "label" | "download" | "href" | "target" | "rel" | "active" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "variant" | "size" | "focusElement" | "renderAnchor" | "selfManageFocusElement" | "renderOptions" | "hasVisibleFocusInTree" | "slotHasContent" | "manageTextObservedSlot"> & {} & Partial<Omit<import("button/src/CloseButton.js").CloseButton, keyof HTMLElement>> & import("react").RefAttributes<import("button/src/CloseButton.js").CloseButton>>;
|
package/next.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["next.ts"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["/**\n * Copyright 2026 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 dynamic from 'next/dynamic';\nimport { ComponentProps } from 'react';\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<typeof SpButton, ComponentProps<typeof SpButton>>\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": ";AAWA,OAAO,aAAa;AAOb,aAAM,SAAS,QAEpB,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,EACvE,KAAK;AACP,CAAC;AACM,aAAM,cAAc,QAKzB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,aAAAC,aAAY,MAAMA,YAAW,GAAG;AAAA,EACvE,KAAK;AACP,CAAC;",
|
|
6
6
|
"names": ["Button", "ClearButton", "CloseButton"]
|
|
7
7
|
}
|
package/next.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["next.ts"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["/**\n * Copyright 2026 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 dynamic from 'next/dynamic';\nimport { ComponentProps } from 'react';\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<typeof SpButton, ComponentProps<typeof SpButton>>\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": "aAWA,OAAOA,MAAa,eAOb,aAAM,OAASA,EAEpB,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,CACnE,IAAK,EACP,CAAC,EACY,YAAcF,EAKzB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,YAAAG,CAAY,IAAMA,CAAW,EAAG,CACnE,IAAK,EACP,CAAC",
|
|
6
6
|
"names": ["dynamic", "Button", "ClearButton", "CloseButton"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
"name": "@swc-react/button",
|
|
3
|
+
"version": "1.12.0-next.20260218162159",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"description": "React and Next.js wrapper of the @spectrum-web-components/button component",
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"author": "Adobe",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/adobe/spectrum-web-components.git"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"development": "./index.dev.js",
|
|
18
|
+
"default": "./index.js"
|
|
6
19
|
},
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
"Spectrum Web Components",
|
|
29
|
-
"@spectrum-web-components/button"
|
|
30
|
-
],
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@lit/react": "^1.0.8",
|
|
33
|
-
"@spectrum-web-components/button": "1.12.0-next.20260216143330"
|
|
34
|
-
},
|
|
35
|
-
"peerDependencies": {
|
|
36
|
-
"next": "~13.4 || ~14"
|
|
37
|
-
},
|
|
38
|
-
"peerDependenciesMeta": {
|
|
39
|
-
"next": {
|
|
40
|
-
"optional": true
|
|
41
|
-
}
|
|
20
|
+
"./next.js": {
|
|
21
|
+
"development": "./next.dev.js",
|
|
22
|
+
"default": "./next.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": ["**/*.d.ts", "**/*.js", "**/*.js.map"],
|
|
26
|
+
"keywords": [
|
|
27
|
+
"React",
|
|
28
|
+
"Spectrum Web Components",
|
|
29
|
+
"@spectrum-web-components/button"
|
|
30
|
+
],
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@lit/react": "^1.0.8",
|
|
33
|
+
"@spectrum-web-components/button": "1.12.0-next.20260218162159"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"next": "~13.4 || ~14"
|
|
37
|
+
},
|
|
38
|
+
"peerDependenciesMeta": {
|
|
39
|
+
"next": {
|
|
40
|
+
"optional": true
|
|
42
41
|
}
|
|
42
|
+
}
|
|
43
43
|
}
|