@swc-react/picker 1.12.0-next.20260218162159 → 1.12.0-testing.20260223092154
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 +0 -7
- package/index.dev.js +0 -14
- package/index.dev.js.map +2 -2
- package/index.js +1 -1
- package/index.js.map +3 -3
- package/next.d.ts +1 -6
- package/next.dev.js +0 -3
- package/next.dev.js.map +3 -3
- package/next.js +1 -1
- package/next.js.map +3 -3
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -10,19 +10,12 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import type { EventName } from '@lit/react';
|
|
13
|
-
import { PickerBase as SpPickerBase } from '@spectrum-web-components/picker';
|
|
14
13
|
import { Picker as SpPicker } from '@spectrum-web-components/picker';
|
|
15
14
|
import '@spectrum-web-components/picker/sp-picker.js';
|
|
16
|
-
export declare const PickerBase: import("@lit/react").ReactWebComponent<SpPickerBase, {
|
|
17
|
-
change: EventName<Event>;
|
|
18
|
-
scroll: EventName<Event>;
|
|
19
|
-
spOpened: EventName<Event>;
|
|
20
|
-
}>;
|
|
21
15
|
export declare const Picker: import("@lit/react").ReactWebComponent<SpPicker, {
|
|
22
16
|
change: EventName<Event>;
|
|
23
17
|
scroll: EventName<Event>;
|
|
24
18
|
spOpened: EventName<Event>;
|
|
25
19
|
spClosed: EventName<Event>;
|
|
26
20
|
}>;
|
|
27
|
-
export type PickerBaseType = EventTarget & SpPickerBase;
|
|
28
21
|
export type PickerType = EventTarget & SpPicker;
|
package/index.dev.js
CHANGED
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { createComponent } from "@lit/react";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { PickerBase as SpPickerBase } from "@spectrum-web-components/picker";
|
|
5
4
|
import { Picker as SpPicker } from "@spectrum-web-components/picker";
|
|
6
5
|
import "@spectrum-web-components/picker/sp-picker.js";
|
|
7
|
-
export const PickerBase = createComponent({
|
|
8
|
-
displayName: "PickerBase",
|
|
9
|
-
elementClass: SpPickerBase,
|
|
10
|
-
react: React,
|
|
11
|
-
tagName: "sp-picker",
|
|
12
|
-
events: {
|
|
13
|
-
change: "change",
|
|
14
|
-
// Announces that the `value` of the element has changed
|
|
15
|
-
scroll: "scroll",
|
|
16
|
-
spOpened: "sp-opened"
|
|
17
|
-
// Announces that the overlay has been opened
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
6
|
export const Picker = createComponent({
|
|
21
7
|
displayName: "Picker",
|
|
22
8
|
elementClass: SpPicker,
|
package/index.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
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 type { EventName } from '@lit/react';\nimport { createComponent } from '@lit/react';\nimport * as React from 'react';\n\nimport {
|
|
5
|
-
"mappings": ";AAYA,SAAS,uBAAuB;AAChC,YAAY,WAAW;AAEvB,SAAS,
|
|
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 type { EventName } from '@lit/react';\nimport { createComponent } from '@lit/react';\nimport * as React from 'react';\n\nimport { Picker as SpPicker } from '@spectrum-web-components/picker';\n\nimport '@spectrum-web-components/picker/sp-picker.js';\n\nexport const Picker = createComponent({\n displayName: 'Picker',\n elementClass: SpPicker,\n react: React,\n tagName: 'sp-picker',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n scroll: 'scroll' as EventName<Event>,\n spOpened: 'sp-opened' as EventName<Event>, // Announces that the overlay has been opened\n spClosed: 'sp-closed' as EventName<Event>, // Announces that the overlay has been closed\n },\n});\n\nexport type PickerType = EventTarget & SpPicker;\n"],
|
|
5
|
+
"mappings": ";AAYA,SAAS,uBAAuB;AAChC,YAAY,WAAW;AAEvB,SAAS,UAAU,gBAAgB;AAEnC,OAAO;AAEA,aAAM,SAAS,gBAAgB;AAAA,EACpC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACN,QAAQ;AAAA;AAAA,IACR,QAAQ;AAAA,IACR,UAAU;AAAA;AAAA,IACV,UAAU;AAAA;AAAA,EACZ;AACF,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{createComponent as e}from"@lit/react";import*as t from"react";import{
|
|
1
|
+
"use strict";import{createComponent as e}from"@lit/react";import*as t from"react";import{Picker as r}from"@spectrum-web-components/picker";import"@spectrum-web-components/picker/sp-picker.js";export const Picker=e({displayName:"Picker",elementClass:r,react:t,tagName:"sp-picker",events:{change:"change",scroll:"scroll",spOpened:"sp-opened",spClosed:"sp-closed"}});
|
|
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": ["/**\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 type { EventName } from '@lit/react';\nimport { createComponent } from '@lit/react';\nimport * as React from 'react';\n\nimport {
|
|
5
|
-
"mappings": "aAYA,OAAS,mBAAAA,MAAuB,aAChC,UAAYC,MAAW,QAEvB,OAAS,
|
|
6
|
-
"names": ["createComponent", "React", "
|
|
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 type { EventName } from '@lit/react';\nimport { createComponent } from '@lit/react';\nimport * as React from 'react';\n\nimport { Picker as SpPicker } from '@spectrum-web-components/picker';\n\nimport '@spectrum-web-components/picker/sp-picker.js';\n\nexport const Picker = createComponent({\n displayName: 'Picker',\n elementClass: SpPicker,\n react: React,\n tagName: 'sp-picker',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n scroll: 'scroll' as EventName<Event>,\n spOpened: 'sp-opened' as EventName<Event>, // Announces that the overlay has been opened\n spClosed: 'sp-closed' as EventName<Event>, // Announces that the overlay has been closed\n },\n});\n\nexport type PickerType = EventTarget & SpPicker;\n"],
|
|
5
|
+
"mappings": "aAYA,OAAS,mBAAAA,MAAuB,aAChC,UAAYC,MAAW,QAEvB,OAAS,UAAUC,MAAgB,kCAEnC,MAAO,+CAEA,aAAM,OAASF,EAAgB,CACpC,YAAa,SACb,aAAcE,EACd,MAAOD,EACP,QAAS,YACT,OAAQ,CACN,OAAQ,SACR,OAAQ,SACR,SAAU,YACV,SAAU,WACZ,CACF,CAAC",
|
|
6
|
+
"names": ["createComponent", "React", "SpPicker"]
|
|
7
7
|
}
|
package/next.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
change?: ((e: Event) => void) | undefined;
|
|
3
|
-
scroll?: ((e: Event) => void) | undefined;
|
|
4
|
-
spOpened?: ((e: Event) => void) | undefined;
|
|
5
|
-
} & Partial<Omit<import("picker/src/Picker.js").PickerBase, keyof HTMLElement>> & import("react").RefAttributes<import("picker/src/Picker.js").PickerBase>>;
|
|
6
|
-
export declare const Picker: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("picker/src/Picker.js").Picker>, "button" | "label" | "change" | "close" | "invalid" | "scroll" | "toggle" | "disabled" | "open" | "size" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "focusElement" | "placement" | "strategy" | "handleSlottableRequest" | "focused" | "value" | "overlayElement" | "selfManageFocusElement" | "renderOptions" | "hasVisibleFocusInTree" | "selects" | "handleButtonFocus" | "appliedLabel" | "icons" | "forcePopover" | "pending" | "pendingLabel" | "readonly" | "labelAlignment" | "optionsMenu" | "quiet" | "selectedItem" | "isMobile" | "isTouchDevice" | "dependencyManager" | "_selectedItem" | "forceFocusVisible" | "handleButtonClick" | "handleButtonBlur" | "handleHelperFocus" | "handleFocus" | "handleChange" | "_selectedItemContent" | "applyFocusElementLabel" | "willManageSelection" | "bindEvents" | "spOpened" | "spClosed"> & {
|
|
1
|
+
export declare const Picker: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("picker/src/Picker.js").Picker>, "button" | "label" | "change" | "close" | "invalid" | "scroll" | "toggle" | "disabled" | "open" | "size" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "focusElement" | "placement" | "strategy" | "handleSlottableRequest" | "focused" | "value" | "overlayElement" | "selfManageFocusElement" | "renderOptions" | "hasVisibleFocusInTree" | "selects" | "handleButtonFocus" | "readonly" | "pending" | "forcePopover" | "optionsMenu" | "appliedLabel" | "icons" | "pendingLabel" | "labelAlignment" | "quiet" | "selectedItem" | "_selectedItem" | "forceFocusVisible" | "handleButtonClick" | "handleButtonBlur" | "handleHelperFocus" | "handleFocus" | "handleChange" | "_selectedItemContent" | "applyFocusElementLabel" | "willManageSelection" | "isMobile" | "isTouchDevice" | "dependencyManager" | "bindEvents" | "spOpened" | "spClosed"> & {
|
|
7
2
|
change?: ((e: Event) => void) | undefined;
|
|
8
3
|
scroll?: ((e: Event) => void) | undefined;
|
|
9
4
|
spOpened?: ((e: Event) => void) | undefined;
|
package/next.dev.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import dynamic from "next/dynamic";
|
|
3
|
-
export const PickerBase = dynamic(() => import("./index.dev.js").then(({ PickerBase: PickerBase2 }) => PickerBase2), {
|
|
4
|
-
ssr: false
|
|
5
|
-
});
|
|
6
3
|
export const Picker = dynamic(() => import("./index.dev.js").then(({ Picker: Picker2 }) => Picker2), { ssr: false });
|
|
7
4
|
//# 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": ["/**\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 {
|
|
5
|
-
"mappings": ";AAWA,OAAO,aAAa;
|
|
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 dynamic from 'next/dynamic';\nimport { ComponentProps } from 'react';\n\nimport { Picker as SpPicker } from './index.dev.js'\n\nexport const Picker = dynamic<\n JSX.LibraryManagedAttributes<typeof SpPicker, ComponentProps<typeof SpPicker>>\n>(() => import('./index.dev.js').then(({ Picker }) => Picker), { ssr: false });\n"],
|
|
5
|
+
"mappings": ";AAWA,OAAO,aAAa;AAKb,aAAM,SAAS,QAEpB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,QAAAA,QAAO,MAAMA,OAAM,GAAG,EAAE,KAAK,MAAM,CAAC;",
|
|
6
|
+
"names": ["Picker"]
|
|
7
7
|
}
|
package/next.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import
|
|
1
|
+
"use strict";import o from"next/dynamic";export const Picker=o(()=>import("./index.js").then(({Picker:r})=>r),{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": ["/**\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 {
|
|
5
|
-
"mappings": "aAWA,OAAOA,MAAa,
|
|
6
|
-
"names": ["dynamic", "
|
|
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 { Picker as SpPicker } from './index.js';\n\nexport const Picker = dynamic<\n JSX.LibraryManagedAttributes<typeof SpPicker, ComponentProps<typeof SpPicker>>\n>(() => import('./index.js').then(({ Picker }) => Picker), { ssr: false });\n"],
|
|
5
|
+
"mappings": "aAWA,OAAOA,MAAa,eAKb,aAAM,OAASA,EAEpB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,OAAAC,CAAO,IAAMA,CAAM,EAAG,CAAE,IAAK,EAAM,CAAC",
|
|
6
|
+
"names": ["dynamic", "Picker"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/picker",
|
|
3
|
-
"version": "1.12.0-
|
|
3
|
+
"version": "1.12.0-testing.20260223092154",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@lit/react": "^1.0.8",
|
|
33
|
-
"@spectrum-web-components/picker": "1.12.0-
|
|
33
|
+
"@spectrum-web-components/picker": "1.12.0-testing.20260223092154"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"next": "~13.4 || ~14"
|