@vaadin/react-components 25.1.0-alpha9 → 25.1.0-beta1

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/Message.js CHANGED
@@ -1,2 +1,2 @@
1
- export*from"@vaadin/message-list/vaadin-message.js";import{Message as e}from"@vaadin/message-list/vaadin-message.js";import*as t from"react";import{createComponent as s}from"./utils/createComponent.js";var o={},r=s({elementClass:e,events:o,react:t,tagName:"vaadin-message"});export{r as Message,e as MessageElement};
1
+ export*from"@vaadin/message-list/vaadin-message.js";import{Message as e}from"@vaadin/message-list/vaadin-message.js";import*as t from"react";import{createComponent as a}from"./utils/createComponent.js";var s={onAttachmentClick:"attachment-click"},p=a({elementClass:e,events:s,react:t,tagName:"vaadin-message"});export{p as Message,e as MessageElement};
2
2
  //# sourceMappingURL=Message.js.map
package/Message.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["src/Message.ts", "src/generated/Message.ts"],
4
- "sourcesContent": ["export * from \"@vaadin/message-list/vaadin-message.js\";\nexport * from './generated/Message.js';\n", "import type {} from \"@lit/react\";\nimport { Message as MessageElement, } from \"@vaadin/message-list/vaadin-message.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MessageElement, };\nexport type MessageEventMap = Readonly<{}>;\nconst events = {} as MessageEventMap;\nexport type MessageProps = WebComponentProps<MessageElement, MessageEventMap>;\nexport const Message = createComponent({\n elementClass: MessageElement, events, react: React, tagName: \"vaadin-message\"\n});\n"],
5
- "mappings": "AAAA,WAAc,yCCCd,OAAS,WAAWA,MAAuB,yCAC3C,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAGxD,IAAMC,EAAS,CAAC,EAEHC,EAAUC,EAAgB,CACnC,aAAcC,EAAgB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,gBACjE,CAAC",
4
+ "sourcesContent": ["export * from \"@vaadin/message-list/vaadin-message.js\";\nexport * from './generated/Message.js';\n", "import type { EventName } from \"@lit/react\";\nimport { Message as MessageElement, type MessageEventMap as _MessageEventMap, } from \"@vaadin/message-list/vaadin-message.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MessageElement, };\nexport type MessageEventMap = Readonly<{\n onAttachmentClick: EventName<_MessageEventMap[\"attachment-click\"]>;\n}>;\nconst events = { onAttachmentClick: \"attachment-click\" } as MessageEventMap;\nexport type MessageProps = WebComponentProps<MessageElement, MessageEventMap>;\nexport const Message = createComponent({\n elementClass: MessageElement, events, react: React, tagName: \"vaadin-message\"\n});\n"],
5
+ "mappings": "AAAA,WAAc,yCCCd,OAAS,WAAWA,MAAiE,yCACrF,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAKxD,IAAMC,EAAS,CAAE,kBAAmB,kBAAmB,EAE1CC,EAAUC,EAAgB,CACnC,aAAcC,EAAgB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,gBACjE,CAAC",
6
6
  "names": ["MessageElement", "React", "createComponent", "events", "Message", "createComponent", "MessageElement", "React"]
7
7
  }
package/MessageList.js CHANGED
@@ -1,2 +1,2 @@
1
- export*from"@vaadin/message-list/vaadin-message-list.js";import{MessageList as e}from"@vaadin/message-list/vaadin-message-list.js";import*as t from"react";import{createComponent as s}from"./utils/createComponent.js";var o={},r=s({elementClass:e,events:o,react:t,tagName:"vaadin-message-list"});export{r as MessageList,e as MessageListElement};
1
+ export*from"@vaadin/message-list/vaadin-message-list.js";import{MessageList as e}from"@vaadin/message-list/vaadin-message-list.js";import*as t from"react";import{createComponent as s}from"./utils/createComponent.js";var a={onAttachmentClick:"attachment-click"},p=s({elementClass:e,events:a,react:t,tagName:"vaadin-message-list"});export{p as MessageList,e as MessageListElement};
2
2
  //# sourceMappingURL=MessageList.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["src/MessageList.ts", "src/generated/MessageList.ts"],
4
- "sourcesContent": ["export * from \"@vaadin/message-list/vaadin-message-list.js\";\nexport * from './generated/MessageList.js';\n", "import type {} from \"@lit/react\";\nimport { MessageList as MessageListElement, } from \"@vaadin/message-list/vaadin-message-list.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MessageListElement, };\nexport type MessageListEventMap = Readonly<{}>;\nconst events = {} as MessageListEventMap;\nexport type MessageListProps = WebComponentProps<MessageListElement, MessageListEventMap>;\nexport const MessageList = createComponent({\n elementClass: MessageListElement, events, react: React, tagName: \"vaadin-message-list\"\n});\n"],
5
- "mappings": "AAAA,WAAc,8CCCd,OAAS,eAAeA,MAA2B,8CACnD,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAGxD,IAAMC,EAAS,CAAC,EAEHC,EAAcC,EAAgB,CACvC,aAAcC,EAAoB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,qBACrE,CAAC",
4
+ "sourcesContent": ["export * from \"@vaadin/message-list/vaadin-message-list.js\";\nexport * from './generated/MessageList.js';\n", "import type { EventName } from \"@lit/react\";\nimport { MessageList as MessageListElement, type MessageListEventMap as _MessageListEventMap, } from \"@vaadin/message-list/vaadin-message-list.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MessageListElement, };\nexport type MessageListEventMap = Readonly<{\n onAttachmentClick: EventName<_MessageListEventMap[\"attachment-click\"]>;\n}>;\nconst events = { onAttachmentClick: \"attachment-click\" } as MessageListEventMap;\nexport type MessageListProps = WebComponentProps<MessageListElement, MessageListEventMap>;\nexport const MessageList = createComponent({\n elementClass: MessageListElement, events, react: React, tagName: \"vaadin-message-list\"\n});\n"],
5
+ "mappings": "AAAA,WAAc,8CCCd,OAAS,eAAeA,MAA6E,8CACrG,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAKxD,IAAMC,EAAS,CAAE,kBAAmB,kBAAmB,EAE1CC,EAAcC,EAAgB,CACvC,aAAcC,EAAoB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,qBACrE,CAAC",
6
6
  "names": ["MessageListElement", "React", "createComponent", "events", "MessageList", "createComponent", "MessageListElement", "React"]
7
7
  }
@@ -1,9 +1,14 @@
1
- import { Message as MessageElement } from "@vaadin/message-list/vaadin-message.js";
1
+ import type { EventName } from "@lit/react";
2
+ import { Message as MessageElement, type MessageEventMap as _MessageEventMap } from "@vaadin/message-list/vaadin-message.js";
2
3
  import * as React from "react";
3
4
  import { type WebComponentProps } from "../utils/createComponent.js";
4
5
  export * from "@vaadin/message-list/vaadin-message.js";
5
6
  export { MessageElement, };
6
- export type MessageEventMap = Readonly<{}>;
7
+ export type MessageEventMap = Readonly<{
8
+ onAttachmentClick: EventName<_MessageEventMap["attachment-click"]>;
9
+ }>;
7
10
  export type MessageProps = WebComponentProps<MessageElement, MessageEventMap>;
8
- export declare const Message: (props: Partial<import("../utils/createComponent.js").ThemedWebComponentProps<MessageElement, Readonly<{}>>> & React.RefAttributes<MessageElement>) => React.ReactElement | null;
11
+ export declare const Message: (props: Partial<import("../utils/createComponent.js").ThemedWebComponentProps<MessageElement, Readonly<{
12
+ onAttachmentClick: EventName<_MessageEventMap["attachment-click"]>;
13
+ }>>> & React.RefAttributes<MessageElement>) => React.ReactElement | null;
9
14
  //# sourceMappingURL=Message.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../src/generated/Message.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAG,MAAM,wCAAwC,CAAC;AACpF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,wCAAwC,CAAC;AACvD,OAAO,EAAE,cAAc,GAAG,CAAC;AAC3B,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;AAC9E,eAAO,MAAM,OAAO,kLAElB,CAAC"}
1
+ {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../src/generated/Message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,KAAK,eAAe,IAAI,gBAAgB,EAAG,MAAM,wCAAwC,CAAC;AAC9H,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,wCAAwC,CAAC;AACvD,OAAO,EAAE,cAAc,GAAG,CAAC;AAC3B,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACnC,iBAAiB,EAAE,SAAS,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC,CAAC;CACtE,CAAC,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;AAC9E,eAAO,MAAM,OAAO;uBAJG,SAAS,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;wEAMpE,CAAC"}
@@ -1,9 +1,14 @@
1
- import { MessageList as MessageListElement } from "@vaadin/message-list/vaadin-message-list.js";
1
+ import type { EventName } from "@lit/react";
2
+ import { MessageList as MessageListElement, type MessageListEventMap as _MessageListEventMap } from "@vaadin/message-list/vaadin-message-list.js";
2
3
  import * as React from "react";
3
4
  import { type WebComponentProps } from "../utils/createComponent.js";
4
5
  export * from "@vaadin/message-list/vaadin-message-list.js";
5
6
  export { MessageListElement, };
6
- export type MessageListEventMap = Readonly<{}>;
7
+ export type MessageListEventMap = Readonly<{
8
+ onAttachmentClick: EventName<_MessageListEventMap["attachment-click"]>;
9
+ }>;
7
10
  export type MessageListProps = WebComponentProps<MessageListElement, MessageListEventMap>;
8
- export declare const MessageList: (props: Partial<import("../utils/createComponent.js").ThemedWebComponentProps<MessageListElement, Readonly<{}>>> & React.RefAttributes<MessageListElement>) => React.ReactElement | null;
11
+ export declare const MessageList: (props: Partial<import("../utils/createComponent.js").ThemedWebComponentProps<MessageListElement, Readonly<{
12
+ onAttachmentClick: EventName<_MessageListEventMap["attachment-click"]>;
13
+ }>>> & React.RefAttributes<MessageListElement>) => React.ReactElement | null;
9
14
  //# sourceMappingURL=MessageList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../src/generated/MessageList.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAAG,MAAM,6CAA6C,CAAC;AACjG,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,kBAAkB,GAAG,CAAC;AAC/B,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,CAAC;AAC1F,eAAO,MAAM,WAAW,0LAEtB,CAAC"}
1
+ {"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../src/generated/MessageList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAAE,KAAK,mBAAmB,IAAI,oBAAoB,EAAG,MAAM,6CAA6C,CAAC;AACnJ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,kBAAkB,GAAG,CAAC;AAC/B,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACvC,iBAAiB,EAAE,SAAS,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,CAAC,CAAC;CAC1E,CAAC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,CAAC;AAC1F,eAAO,MAAM,WAAW;uBAJD,SAAS,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,CAAC;4EAMxE,CAAC"}
package/index.d.ts CHANGED
@@ -44,8 +44,8 @@ export * from "./LoginOverlay.js";
44
44
  export * from "./Markdown.js";
45
45
  export * from "./MasterDetailLayout.js";
46
46
  export * from "./MenuBar.js";
47
- export * from "./Message.js";
48
47
  export * from "./MessageInput.js";
48
+ export * from "./Message.js";
49
49
  export * from "./MessageList.js";
50
50
  export * from "./MultiSelectComboBox.js";
51
51
  export * from "./Notification.js";
package/index.js CHANGED
@@ -44,8 +44,8 @@ export * from "./LoginOverlay.js";
44
44
  export * from "./Markdown.js";
45
45
  export * from "./MasterDetailLayout.js";
46
46
  export * from "./MenuBar.js";
47
- export * from "./Message.js";
48
47
  export * from "./MessageInput.js";
48
+ export * from "./Message.js";
49
49
  export * from "./MessageList.js";
50
50
  export * from "./MultiSelectComboBox.js";
51
51
  export * from "./Notification.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/react-components",
3
- "version": "25.1.0-alpha9",
3
+ "version": "25.1.0-beta1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -27,68 +27,68 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@lit/react": "^1.0.7",
30
- "@vaadin/a11y-base": "25.1.0-alpha9",
31
- "@vaadin/accordion": "25.1.0-alpha9",
32
- "@vaadin/app-layout": "25.1.0-alpha9",
33
- "@vaadin/avatar": "25.1.0-alpha9",
34
- "@vaadin/avatar-group": "25.1.0-alpha9",
35
- "@vaadin/badge": "25.1.0-alpha9",
36
- "@vaadin/button": "25.1.0-alpha9",
37
- "@vaadin/card": "25.1.0-alpha9",
38
- "@vaadin/checkbox": "25.1.0-alpha9",
39
- "@vaadin/checkbox-group": "25.1.0-alpha9",
40
- "@vaadin/combo-box": "25.1.0-alpha9",
41
- "@vaadin/component-base": "25.1.0-alpha9",
42
- "@vaadin/confirm-dialog": "25.1.0-alpha9",
43
- "@vaadin/context-menu": "25.1.0-alpha9",
44
- "@vaadin/custom-field": "25.1.0-alpha9",
45
- "@vaadin/date-picker": "25.1.0-alpha9",
46
- "@vaadin/date-time-picker": "25.1.0-alpha9",
47
- "@vaadin/details": "25.1.0-alpha9",
48
- "@vaadin/dialog": "25.1.0-alpha9",
49
- "@vaadin/email-field": "25.1.0-alpha9",
50
- "@vaadin/field-base": "25.1.0-alpha9",
51
- "@vaadin/field-highlighter": "25.1.0-alpha9",
52
- "@vaadin/form-layout": "25.1.0-alpha9",
53
- "@vaadin/grid": "25.1.0-alpha9",
54
- "@vaadin/horizontal-layout": "25.1.0-alpha9",
55
- "@vaadin/icon": "25.1.0-alpha9",
56
- "@vaadin/icons": "25.1.0-alpha9",
57
- "@vaadin/input-container": "25.1.0-alpha9",
58
- "@vaadin/integer-field": "25.1.0-alpha9",
59
- "@vaadin/item": "25.1.0-alpha9",
60
- "@vaadin/list-box": "25.1.0-alpha9",
61
- "@vaadin/lit-renderer": "25.1.0-alpha9",
62
- "@vaadin/login": "25.1.0-alpha9",
63
- "@vaadin/markdown": "25.1.0-alpha9",
64
- "@vaadin/master-detail-layout": "25.1.0-alpha9",
65
- "@vaadin/menu-bar": "25.1.0-alpha9",
66
- "@vaadin/message-input": "25.1.0-alpha9",
67
- "@vaadin/message-list": "25.1.0-alpha9",
68
- "@vaadin/multi-select-combo-box": "25.1.0-alpha9",
69
- "@vaadin/notification": "25.1.0-alpha9",
70
- "@vaadin/number-field": "25.1.0-alpha9",
71
- "@vaadin/overlay": "25.1.0-alpha9",
72
- "@vaadin/password-field": "25.1.0-alpha9",
73
- "@vaadin/popover": "25.1.0-alpha9",
74
- "@vaadin/progress-bar": "25.1.0-alpha9",
75
- "@vaadin/radio-group": "25.1.0-alpha9",
76
- "@vaadin/scroller": "25.1.0-alpha9",
77
- "@vaadin/select": "25.1.0-alpha9",
78
- "@vaadin/side-nav": "25.1.0-alpha9",
79
- "@vaadin/slider": "25.1.0-alpha9",
80
- "@vaadin/split-layout": "25.1.0-alpha9",
81
- "@vaadin/tabs": "25.1.0-alpha9",
82
- "@vaadin/tabsheet": "25.1.0-alpha9",
83
- "@vaadin/text-area": "25.1.0-alpha9",
84
- "@vaadin/text-field": "25.1.0-alpha9",
85
- "@vaadin/time-picker": "25.1.0-alpha9",
86
- "@vaadin/tooltip": "25.1.0-alpha9",
87
- "@vaadin/upload": "25.1.0-alpha9",
88
- "@vaadin/vaadin-lumo-styles": "25.1.0-alpha9",
89
- "@vaadin/vaadin-themable-mixin": "25.1.0-alpha9",
90
- "@vaadin/vertical-layout": "25.1.0-alpha9",
91
- "@vaadin/virtual-list": "25.1.0-alpha9"
30
+ "@vaadin/a11y-base": "25.1.0-beta1",
31
+ "@vaadin/accordion": "25.1.0-beta1",
32
+ "@vaadin/app-layout": "25.1.0-beta1",
33
+ "@vaadin/avatar": "25.1.0-beta1",
34
+ "@vaadin/avatar-group": "25.1.0-beta1",
35
+ "@vaadin/badge": "25.1.0-beta1",
36
+ "@vaadin/button": "25.1.0-beta1",
37
+ "@vaadin/card": "25.1.0-beta1",
38
+ "@vaadin/checkbox": "25.1.0-beta1",
39
+ "@vaadin/checkbox-group": "25.1.0-beta1",
40
+ "@vaadin/combo-box": "25.1.0-beta1",
41
+ "@vaadin/component-base": "25.1.0-beta1",
42
+ "@vaadin/confirm-dialog": "25.1.0-beta1",
43
+ "@vaadin/context-menu": "25.1.0-beta1",
44
+ "@vaadin/custom-field": "25.1.0-beta1",
45
+ "@vaadin/date-picker": "25.1.0-beta1",
46
+ "@vaadin/date-time-picker": "25.1.0-beta1",
47
+ "@vaadin/details": "25.1.0-beta1",
48
+ "@vaadin/dialog": "25.1.0-beta1",
49
+ "@vaadin/email-field": "25.1.0-beta1",
50
+ "@vaadin/field-base": "25.1.0-beta1",
51
+ "@vaadin/field-highlighter": "25.1.0-beta1",
52
+ "@vaadin/form-layout": "25.1.0-beta1",
53
+ "@vaadin/grid": "25.1.0-beta1",
54
+ "@vaadin/horizontal-layout": "25.1.0-beta1",
55
+ "@vaadin/icon": "25.1.0-beta1",
56
+ "@vaadin/icons": "25.1.0-beta1",
57
+ "@vaadin/input-container": "25.1.0-beta1",
58
+ "@vaadin/integer-field": "25.1.0-beta1",
59
+ "@vaadin/item": "25.1.0-beta1",
60
+ "@vaadin/list-box": "25.1.0-beta1",
61
+ "@vaadin/lit-renderer": "25.1.0-beta1",
62
+ "@vaadin/login": "25.1.0-beta1",
63
+ "@vaadin/markdown": "25.1.0-beta1",
64
+ "@vaadin/master-detail-layout": "25.1.0-beta1",
65
+ "@vaadin/menu-bar": "25.1.0-beta1",
66
+ "@vaadin/message-input": "25.1.0-beta1",
67
+ "@vaadin/message-list": "25.1.0-beta1",
68
+ "@vaadin/multi-select-combo-box": "25.1.0-beta1",
69
+ "@vaadin/notification": "25.1.0-beta1",
70
+ "@vaadin/number-field": "25.1.0-beta1",
71
+ "@vaadin/overlay": "25.1.0-beta1",
72
+ "@vaadin/password-field": "25.1.0-beta1",
73
+ "@vaadin/popover": "25.1.0-beta1",
74
+ "@vaadin/progress-bar": "25.1.0-beta1",
75
+ "@vaadin/radio-group": "25.1.0-beta1",
76
+ "@vaadin/scroller": "25.1.0-beta1",
77
+ "@vaadin/select": "25.1.0-beta1",
78
+ "@vaadin/side-nav": "25.1.0-beta1",
79
+ "@vaadin/slider": "25.1.0-beta1",
80
+ "@vaadin/split-layout": "25.1.0-beta1",
81
+ "@vaadin/tabs": "25.1.0-beta1",
82
+ "@vaadin/tabsheet": "25.1.0-beta1",
83
+ "@vaadin/text-area": "25.1.0-beta1",
84
+ "@vaadin/text-field": "25.1.0-beta1",
85
+ "@vaadin/time-picker": "25.1.0-beta1",
86
+ "@vaadin/tooltip": "25.1.0-beta1",
87
+ "@vaadin/upload": "25.1.0-beta1",
88
+ "@vaadin/vaadin-lumo-styles": "25.1.0-beta1",
89
+ "@vaadin/vaadin-themable-mixin": "25.1.0-beta1",
90
+ "@vaadin/vertical-layout": "25.1.0-beta1",
91
+ "@vaadin/virtual-list": "25.1.0-beta1"
92
92
  },
93
93
  "author": "Vaadin Ltd.",
94
94
  "license": "Apache-2.0",
@@ -1,2 +1,2 @@
1
- import{createComponent as n}from"@lit/react";window.Vaadin??={},window.Vaadin.registrations??=[],window.Vaadin.registrations.push({is:"@vaadin/react-components",version:"25.1.0-alpha9"});function s(e){const{elementClass:t}=e;return n("_properties"in t?{...e,elementClass:{name:t.name,prototype:{...t._properties,hidden:Boolean}}}:e)}export{s as createComponent};
1
+ import{createComponent as n}from"@lit/react";window.Vaadin??={},window.Vaadin.registrations??=[],window.Vaadin.registrations.push({is:"@vaadin/react-components",version:"25.1.0-beta1"});function s(e){const{elementClass:t}=e;return n("_properties"in t?{...e,elementClass:{name:t.name,prototype:{...t._properties,hidden:Boolean}}}:e)}export{s as createComponent};
2
2
  //# sourceMappingURL=createComponent.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/utils/createComponent.ts"],
4
- "sourcesContent": ["import { createComponent as _createComponent, type EventName } from '@lit/react';\nimport type { ThemePropertyMixinClass } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';\nimport type React from 'react';\nimport type { RefAttributes } from 'react';\n\ndeclare const __VERSION__: string;\n\ndeclare global {\n interface VaadinRegistration {\n is: string;\n version: string;\n }\n\n interface Vaadin {\n registrations?: VaadinRegistration[];\n }\n\n interface Window {\n // @ts-expect-error: Different declaration from one of the dependencies.\n Vaadin?: Vaadin;\n }\n}\n\nwindow.Vaadin ??= {};\nwindow.Vaadin.registrations ??= [];\nwindow.Vaadin.registrations.push({\n is: '@vaadin/react-components',\n version: /* updated-by-script */ '25.1.0-alpha9',\n});\n\n// TODO: Remove when types from @lit-labs/react are exported\nexport type EventNames = Record<string, EventName | string>;\ntype Constructor<T> = { new (): T; name: string };\ntype PolymerConstructor<T> = Constructor<T> & { _properties: Record<string, unknown> };\ntype Options<I extends HTMLElement, E extends EventNames = {}> = Readonly<{\n displayName?: string;\n elementClass: Constructor<I> | PolymerConstructor<I>;\n events?: E;\n react: typeof window.React;\n tagName: string;\n}>;\n\n// A map of expected event listener types based on EventNames.\ntype EventListeners<R extends EventNames> = {\n [K in keyof R]?: R[K] extends EventName ? (e: R[K]['__eventType']) => void : (e: Event) => void;\n};\n\n// Props derived from custom element class. Currently has limitations of making\n// all properties optional and also surfaces life cycle methods in autocomplete.\n// TODO: LoginOverlay has \"autofocus\" property, so we add it back manually.\ntype ElementProps<I> = Partial<Omit<I, keyof HTMLElement>> & { autofocus?: boolean };\n\n// Acceptable props to the React component.\ntype ComponentProps<I, E extends EventNames = {}> = Omit<\n React.HTMLAttributes<I>,\n // Prefer type of provided event handler props or those on element over\n // built-in HTMLAttributes\n keyof E | keyof ElementProps<I>\n> &\n EventListeners<E> &\n ElementProps<I>;\n\nexport type ThemedWebComponentProps<\n I extends ThemePropertyMixinClass & HTMLElement,\n E extends EventNames = {},\n> = ComponentProps<I, E> & {\n /**\n * Attribute that can be used by the component to apply built-in style variants,\n * or to propagate its value to the sub-components in Shadow DOM.\n *\n * @see ThemePropertyMixinClass#_theme\n */\n theme?: string;\n};\n\ntype AllWebComponentProps<I extends HTMLElement, E extends EventNames = {}> = I extends ThemePropertyMixinClass\n ? ThemedWebComponentProps<I, E>\n : ComponentProps<I, E>;\n\nexport type WebComponentProps<I extends HTMLElement, E extends EventNames = {}> = Partial<AllWebComponentProps<I, E>>;\n\n// We need a separate declaration here; otherwise, the TypeScript fails into the\n// endless loop trying to resolve the typings.\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>(\n options: Options<I, E>,\n): (props: WebComponentProps<I, E> & RefAttributes<I>) => React.ReactElement | null;\n\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>(options: Options<I, E>): any {\n const { elementClass } = options;\n\n return _createComponent(\n '_properties' in elementClass\n ? {\n ...options,\n // TODO: improve or remove the Polymer workaround\n // 'createComponent' relies on key presence on the custom element class,\n // but Polymer defines properties on the prototype when the first element\n // is created. Workaround: pass a mock object with properties in\n // the prototype.\n elementClass: {\n // @ts-expect-error: it is a specific workaround for Polymer classes.\n name: elementClass.name,\n prototype: { ...elementClass._properties, hidden: Boolean },\n },\n }\n : options,\n );\n}\n"],
5
- "mappings": "AAAA,OAAS,mBAAmBA,MAAwC,aAuBpE,OAAO,SAAW,CAAC,EACnB,OAAO,OAAO,gBAAkB,CAAC,EACjC,OAAO,OAAO,cAAc,KAAK,CAC/B,GAAI,2BACJ,QAAiC,eACnC,CAAC,EA2DM,SAASC,EAAkEC,EAA6B,CAC7G,KAAM,CAAE,aAAAC,CAAa,EAAID,EAEzB,OAAOF,EACL,gBAAiBG,EACb,CACE,GAAGD,EAMH,aAAc,CAEZ,KAAMC,EAAa,KACnB,UAAW,CAAE,GAAGA,EAAa,YAAa,OAAQ,OAAQ,CAC5D,CACF,EACAD,CACN,CACF",
4
+ "sourcesContent": ["import { createComponent as _createComponent, type EventName } from '@lit/react';\nimport type { ThemePropertyMixinClass } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';\nimport type React from 'react';\nimport type { RefAttributes } from 'react';\n\ndeclare const __VERSION__: string;\n\ndeclare global {\n interface VaadinRegistration {\n is: string;\n version: string;\n }\n\n interface Vaadin {\n registrations?: VaadinRegistration[];\n }\n\n interface Window {\n // @ts-expect-error: Different declaration from one of the dependencies.\n Vaadin?: Vaadin;\n }\n}\n\nwindow.Vaadin ??= {};\nwindow.Vaadin.registrations ??= [];\nwindow.Vaadin.registrations.push({\n is: '@vaadin/react-components',\n version: /* updated-by-script */ '25.1.0-beta1',\n});\n\n// TODO: Remove when types from @lit-labs/react are exported\nexport type EventNames = Record<string, EventName | string>;\ntype Constructor<T> = { new (): T; name: string };\ntype PolymerConstructor<T> = Constructor<T> & { _properties: Record<string, unknown> };\ntype Options<I extends HTMLElement, E extends EventNames = {}> = Readonly<{\n displayName?: string;\n elementClass: Constructor<I> | PolymerConstructor<I>;\n events?: E;\n react: typeof window.React;\n tagName: string;\n}>;\n\n// A map of expected event listener types based on EventNames.\ntype EventListeners<R extends EventNames> = {\n [K in keyof R]?: R[K] extends EventName ? (e: R[K]['__eventType']) => void : (e: Event) => void;\n};\n\n// Props derived from custom element class. Currently has limitations of making\n// all properties optional and also surfaces life cycle methods in autocomplete.\n// TODO: LoginOverlay has \"autofocus\" property, so we add it back manually.\ntype ElementProps<I> = Partial<Omit<I, keyof HTMLElement>> & { autofocus?: boolean };\n\n// Acceptable props to the React component.\ntype ComponentProps<I, E extends EventNames = {}> = Omit<\n React.HTMLAttributes<I>,\n // Prefer type of provided event handler props or those on element over\n // built-in HTMLAttributes\n keyof E | keyof ElementProps<I>\n> &\n EventListeners<E> &\n ElementProps<I>;\n\nexport type ThemedWebComponentProps<\n I extends ThemePropertyMixinClass & HTMLElement,\n E extends EventNames = {},\n> = ComponentProps<I, E> & {\n /**\n * Attribute that can be used by the component to apply built-in style variants,\n * or to propagate its value to the sub-components in Shadow DOM.\n *\n * @see ThemePropertyMixinClass#_theme\n */\n theme?: string;\n};\n\ntype AllWebComponentProps<I extends HTMLElement, E extends EventNames = {}> = I extends ThemePropertyMixinClass\n ? ThemedWebComponentProps<I, E>\n : ComponentProps<I, E>;\n\nexport type WebComponentProps<I extends HTMLElement, E extends EventNames = {}> = Partial<AllWebComponentProps<I, E>>;\n\n// We need a separate declaration here; otherwise, the TypeScript fails into the\n// endless loop trying to resolve the typings.\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>(\n options: Options<I, E>,\n): (props: WebComponentProps<I, E> & RefAttributes<I>) => React.ReactElement | null;\n\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>(options: Options<I, E>): any {\n const { elementClass } = options;\n\n return _createComponent(\n '_properties' in elementClass\n ? {\n ...options,\n // TODO: improve or remove the Polymer workaround\n // 'createComponent' relies on key presence on the custom element class,\n // but Polymer defines properties on the prototype when the first element\n // is created. Workaround: pass a mock object with properties in\n // the prototype.\n elementClass: {\n // @ts-expect-error: it is a specific workaround for Polymer classes.\n name: elementClass.name,\n prototype: { ...elementClass._properties, hidden: Boolean },\n },\n }\n : options,\n );\n}\n"],
5
+ "mappings": "AAAA,OAAS,mBAAmBA,MAAwC,aAuBpE,OAAO,SAAW,CAAC,EACnB,OAAO,OAAO,gBAAkB,CAAC,EACjC,OAAO,OAAO,cAAc,KAAK,CAC/B,GAAI,2BACJ,QAAiC,cACnC,CAAC,EA2DM,SAASC,EAAkEC,EAA6B,CAC7G,KAAM,CAAE,aAAAC,CAAa,EAAID,EAEzB,OAAOF,EACL,gBAAiBG,EACb,CACE,GAAGD,EAMH,aAAc,CAEZ,KAAMC,EAAa,KACnB,UAAW,CAAE,GAAGA,EAAa,YAAa,OAAQ,OAAQ,CAC5D,CACF,EACAD,CACN,CACF",
6
6
  "names": ["_createComponent", "createComponent", "options", "elementClass"]
7
7
  }