@swc-react/dialog 0.11.12 → 0.11.14
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 +5 -0
- package/index.dev.js +11 -0
- package/index.dev.js.map +2 -2
- package/index.js +1 -1
- package/index.js.map +3 -3
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { EventName } from '@lit-labs/react';
|
|
2
2
|
import { Dialog as SpDialog } from '@spectrum-web-components/dialog';
|
|
3
|
+
import { DialogBase as SpDialogBase } from '@spectrum-web-components/dialog';
|
|
3
4
|
import { DialogWrapper as SpDialogWrapper } from '@spectrum-web-components/dialog';
|
|
4
5
|
import '@spectrum-web-components/dialog/sp-dialog-base.js';
|
|
5
6
|
import '@spectrum-web-components/dialog/sp-dialog-wrapper.js';
|
|
@@ -7,6 +8,9 @@ import '@spectrum-web-components/dialog/sp-dialog.js';
|
|
|
7
8
|
export declare const Dialog: import("@lit-labs/react").ReactWebComponent<SpDialog, {
|
|
8
9
|
close: EventName<Event>;
|
|
9
10
|
}>;
|
|
11
|
+
export declare const DialogBase: import("@lit-labs/react").ReactWebComponent<SpDialogBase, {
|
|
12
|
+
close: EventName<Event>;
|
|
13
|
+
}>;
|
|
10
14
|
export declare const DialogWrapper: import("@lit-labs/react").ReactWebComponent<SpDialogWrapper, {
|
|
11
15
|
close: EventName<Event>;
|
|
12
16
|
secondary: EventName<Event>;
|
|
@@ -14,4 +18,5 @@ export declare const DialogWrapper: import("@lit-labs/react").ReactWebComponent<
|
|
|
14
18
|
confirm: EventName<Event>;
|
|
15
19
|
}>;
|
|
16
20
|
export declare type DialogType = EventTarget & SpDialog;
|
|
21
|
+
export declare type DialogBaseType = EventTarget & SpDialogBase;
|
|
17
22
|
export declare type DialogWrapperType = EventTarget & SpDialogWrapper;
|
package/index.dev.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { createComponent } from "@lit-labs/react";
|
|
4
4
|
import { Dialog as SpDialog } from "@spectrum-web-components/dialog";
|
|
5
|
+
import { DialogBase as SpDialogBase } from "@spectrum-web-components/dialog";
|
|
5
6
|
import { DialogWrapper as SpDialogWrapper } from "@spectrum-web-components/dialog";
|
|
6
7
|
import "@spectrum-web-components/dialog/sp-dialog-base.js";
|
|
7
8
|
import "@spectrum-web-components/dialog/sp-dialog-wrapper.js";
|
|
@@ -16,6 +17,16 @@ export const Dialog = createComponent({
|
|
|
16
17
|
// Announces that the dialog has been closed.
|
|
17
18
|
}
|
|
18
19
|
});
|
|
20
|
+
export const DialogBase = createComponent({
|
|
21
|
+
displayName: "DialogBase",
|
|
22
|
+
elementClass: SpDialogBase,
|
|
23
|
+
react: React,
|
|
24
|
+
tagName: "sp-dialog-base",
|
|
25
|
+
events: {
|
|
26
|
+
close: "close"
|
|
27
|
+
// Announces that the dialog has been closed.
|
|
28
|
+
}
|
|
29
|
+
});
|
|
19
30
|
export const DialogWrapper = createComponent({
|
|
20
31
|
displayName: "DialogWrapper",
|
|
21
32
|
elementClass: SpDialogWrapper,
|
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-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Dialog as SpDialog } from '@spectrum-web-components/dialog';\nimport { DialogWrapper as SpDialogWrapper } from '@spectrum-web-components/dialog';\n\nimport '@spectrum-web-components/dialog/sp-dialog-base.js';\nimport '@spectrum-web-components/dialog/sp-dialog-wrapper.js';\nimport '@spectrum-web-components/dialog/sp-dialog.js';\n\nexport const Dialog = createComponent({\n displayName: 'Dialog',\n elementClass: SpDialog,\n react: React,\n tagName: 'sp-dialog',\n events: {\n close: 'close' as EventName<Event>, // Announces that the dialog has been closed.\n },\n});\nexport const DialogWrapper = createComponent({\n displayName: 'DialogWrapper',\n elementClass: SpDialogWrapper,\n react: React,\n tagName: 'sp-dialog-wrapper',\n events: {\n close: 'close' as EventName<Event>, // Announces that the dialog has been closed.\n secondary: 'secondary' as EventName<Event>, // Announces that the \"secondary\" button has been clicked.\n cancel: 'cancel' as EventName<Event>, // Announces that the \"cancel\" button has been clicked.\n confirm: 'confirm' as EventName<Event>, // Announces that the \"confirm\" button has been clicked.\n },\n});\n\nexport type DialogType = EventTarget & SpDialog;\nexport type DialogWrapperType = EventTarget & SpDialogWrapper;\n"],
|
|
5
|
-
"mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,UAAU,gBAAgB;AACnC,SAAS,iBAAiB,uBAAuB;AAEjD,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,SAAS,gBAAgB;AAAA,EAClC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,OAAO;AAAA;AAAA,EACX;AACJ,CAAC;AACM,aAAM,gBAAgB,gBAAgB;AAAA,EACzC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,OAAO;AAAA;AAAA,IACP,WAAW;AAAA;AAAA,IACX,QAAQ;AAAA;AAAA,IACR,SAAS;AAAA;AAAA,EACb;AACJ,CAAC;",
|
|
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-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Dialog as SpDialog } from '@spectrum-web-components/dialog';\nimport { DialogBase as SpDialogBase } from '@spectrum-web-components/dialog';\nimport { DialogWrapper as SpDialogWrapper } from '@spectrum-web-components/dialog';\n\nimport '@spectrum-web-components/dialog/sp-dialog-base.js';\nimport '@spectrum-web-components/dialog/sp-dialog-wrapper.js';\nimport '@spectrum-web-components/dialog/sp-dialog.js';\n\nexport const Dialog = createComponent({\n displayName: 'Dialog',\n elementClass: SpDialog,\n react: React,\n tagName: 'sp-dialog',\n events: {\n close: 'close' as EventName<Event>, // Announces that the dialog has been closed.\n },\n});\nexport const DialogBase = createComponent({\n displayName: 'DialogBase',\n elementClass: SpDialogBase,\n react: React,\n tagName: 'sp-dialog-base',\n events: {\n close: 'close' as EventName<Event>, // Announces that the dialog has been closed.\n },\n});\nexport const DialogWrapper = createComponent({\n displayName: 'DialogWrapper',\n elementClass: SpDialogWrapper,\n react: React,\n tagName: 'sp-dialog-wrapper',\n events: {\n close: 'close' as EventName<Event>, // Announces that the dialog has been closed.\n secondary: 'secondary' as EventName<Event>, // Announces that the \"secondary\" button has been clicked.\n cancel: 'cancel' as EventName<Event>, // Announces that the \"cancel\" button has been clicked.\n confirm: 'confirm' as EventName<Event>, // Announces that the \"confirm\" button has been clicked.\n },\n});\n\nexport type DialogType = EventTarget & SpDialog;\nexport type DialogBaseType = EventTarget & SpDialogBase;\nexport type DialogWrapperType = EventTarget & SpDialogWrapper;\n"],
|
|
5
|
+
"mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,UAAU,gBAAgB;AACnC,SAAS,cAAc,oBAAoB;AAC3C,SAAS,iBAAiB,uBAAuB;AAEjD,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,SAAS,gBAAgB;AAAA,EAClC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,OAAO;AAAA;AAAA,EACX;AACJ,CAAC;AACM,aAAM,aAAa,gBAAgB;AAAA,EACtC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,OAAO;AAAA;AAAA,EACX;AACJ,CAAC;AACM,aAAM,gBAAgB,gBAAgB;AAAA,EACzC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,OAAO;AAAA;AAAA,IACP,WAAW;AAAA;AAAA,IACX,QAAQ;AAAA;AAAA,IACR,SAAS;AAAA;AAAA,EACb;AACJ,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import*as e from"react";import{createComponent as a}from"@lit-labs/react";import{Dialog as t}from"@spectrum-web-components/dialog";import{
|
|
1
|
+
"use strict";import*as e from"react";import{createComponent as a}from"@lit-labs/react";import{Dialog as t}from"@spectrum-web-components/dialog";import{DialogBase as o}from"@spectrum-web-components/dialog";import{DialogWrapper as p}from"@spectrum-web-components/dialog";import"@spectrum-web-components/dialog/sp-dialog-base.js";import"@spectrum-web-components/dialog/sp-dialog-wrapper.js";import"@spectrum-web-components/dialog/sp-dialog.js";export const Dialog=a({displayName:"Dialog",elementClass:t,react:e,tagName:"sp-dialog",events:{close:"close"}}),DialogBase=a({displayName:"DialogBase",elementClass:o,react:e,tagName:"sp-dialog-base",events:{close:"close"}}),DialogWrapper=a({displayName:"DialogWrapper",elementClass:p,react:e,tagName:"sp-dialog-wrapper",events:{close:"close",secondary:"secondary",cancel:"cancel",confirm:"confirm"}});
|
|
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": ["/*\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-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Dialog as SpDialog } from '@spectrum-web-components/dialog';\nimport { DialogWrapper as SpDialogWrapper } from '@spectrum-web-components/dialog';\n\nimport '@spectrum-web-components/dialog/sp-dialog-base.js';\nimport '@spectrum-web-components/dialog/sp-dialog-wrapper.js';\nimport '@spectrum-web-components/dialog/sp-dialog.js';\n\nexport const Dialog = createComponent({\n displayName: 'Dialog',\n elementClass: SpDialog,\n react: React,\n tagName: 'sp-dialog',\n events: {\n close: 'close' as EventName<Event>, // Announces that the dialog has been closed.\n },\n});\nexport const DialogWrapper = createComponent({\n displayName: 'DialogWrapper',\n elementClass: SpDialogWrapper,\n react: React,\n tagName: 'sp-dialog-wrapper',\n events: {\n close: 'close' as EventName<Event>, // Announces that the dialog has been closed.\n secondary: 'secondary' as EventName<Event>, // Announces that the \"secondary\" button has been clicked.\n cancel: 'cancel' as EventName<Event>, // Announces that the \"cancel\" button has been clicked.\n confirm: 'confirm' as EventName<Event>, // Announces that the \"confirm\" button has been clicked.\n },\n});\n\nexport type DialogType = EventTarget & SpDialog;\nexport type DialogWrapperType = EventTarget & SpDialogWrapper;\n"],
|
|
5
|
-
"mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,UAAUC,MAAgB,kCACnC,OAAS,iBAAiBC,MAAuB,kCAEjD,MAAO,oDACP,MAAO,uDACP,MAAO,+CAEA,aAAM,
|
|
6
|
-
"names": ["React", "createComponent", "SpDialog", "SpDialogWrapper"]
|
|
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-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Dialog as SpDialog } from '@spectrum-web-components/dialog';\nimport { DialogBase as SpDialogBase } from '@spectrum-web-components/dialog';\nimport { DialogWrapper as SpDialogWrapper } from '@spectrum-web-components/dialog';\n\nimport '@spectrum-web-components/dialog/sp-dialog-base.js';\nimport '@spectrum-web-components/dialog/sp-dialog-wrapper.js';\nimport '@spectrum-web-components/dialog/sp-dialog.js';\n\nexport const Dialog = createComponent({\n displayName: 'Dialog',\n elementClass: SpDialog,\n react: React,\n tagName: 'sp-dialog',\n events: {\n close: 'close' as EventName<Event>, // Announces that the dialog has been closed.\n },\n});\nexport const DialogBase = createComponent({\n displayName: 'DialogBase',\n elementClass: SpDialogBase,\n react: React,\n tagName: 'sp-dialog-base',\n events: {\n close: 'close' as EventName<Event>, // Announces that the dialog has been closed.\n },\n});\nexport const DialogWrapper = createComponent({\n displayName: 'DialogWrapper',\n elementClass: SpDialogWrapper,\n react: React,\n tagName: 'sp-dialog-wrapper',\n events: {\n close: 'close' as EventName<Event>, // Announces that the dialog has been closed.\n secondary: 'secondary' as EventName<Event>, // Announces that the \"secondary\" button has been clicked.\n cancel: 'cancel' as EventName<Event>, // Announces that the \"cancel\" button has been clicked.\n confirm: 'confirm' as EventName<Event>, // Announces that the \"confirm\" button has been clicked.\n },\n});\n\nexport type DialogType = EventTarget & SpDialog;\nexport type DialogBaseType = EventTarget & SpDialogBase;\nexport type DialogWrapperType = EventTarget & SpDialogWrapper;\n"],
|
|
5
|
+
"mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,UAAUC,MAAgB,kCACnC,OAAS,cAAcC,MAAoB,kCAC3C,OAAS,iBAAiBC,MAAuB,kCAEjD,MAAO,oDACP,MAAO,uDACP,MAAO,+CAEA,aAAM,OAASH,EAAgB,CAClC,YAAa,SACb,aAAcC,EACd,MAAOF,EACP,QAAS,YACT,OAAQ,CACJ,MAAO,OACX,CACJ,CAAC,EACY,WAAaC,EAAgB,CACtC,YAAa,aACb,aAAcE,EACd,MAAOH,EACP,QAAS,iBACT,OAAQ,CACJ,MAAO,OACX,CACJ,CAAC,EACY,cAAgBC,EAAgB,CACzC,YAAa,gBACb,aAAcG,EACd,MAAOJ,EACP,QAAS,oBACT,OAAQ,CACJ,MAAO,QACP,UAAW,YACX,OAAQ,SACR,QAAS,SACb,CACJ,CAAC",
|
|
6
|
+
"names": ["React", "createComponent", "SpDialog", "SpDialogBase", "SpDialogWrapper"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/dialog",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.14",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@lit-labs/react": "^1.1.1",
|
|
23
|
-
"@spectrum-web-components/dialog": "0.11.
|
|
23
|
+
"@spectrum-web-components/dialog": "0.11.14"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "1e25ee121f3bc838dbb99bac62f3c95857570f7a"
|
|
26
26
|
}
|