@vaadin/react-components 25.3.0-alpha4 → 25.3.0-alpha6

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.
@@ -0,0 +1,2 @@
1
+ export * from './generated/SelectItem.js';
2
+ //# sourceMappingURL=SelectItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectItem.d.ts","sourceRoot":"","sources":["src/SelectItem.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
package/SelectItem.js ADDED
@@ -0,0 +1,2 @@
1
+ export*from"@vaadin/select/vaadin-select-item.js";import{SelectItem as e}from"@vaadin/select/vaadin-select-item.js";import*as t from"react";import{createComponent as o}from"./utils/createComponent.js";var m={},n=o({elementClass:e,events:m,react:t,tagName:"vaadin-select-item"});export{n as SelectItem,e as SelectItemElement};
2
+ //# sourceMappingURL=SelectItem.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["src/SelectItem.ts", "src/generated/SelectItem.ts"],
4
+ "sourcesContent": ["export * from \"@vaadin/select/vaadin-select-item.js\";\nexport * from './generated/SelectItem.js';\n", "import type {} from \"@lit/react\";\nimport { SelectItem as SelectItemElement, } from \"@vaadin/select/vaadin-select-item.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { SelectItemElement, };\nexport type SelectItemEventMap = Readonly<{}>;\nconst events = {} as SelectItemEventMap;\nexport type SelectItemProps = WebComponentProps<SelectItemElement, SelectItemEventMap>;\nexport const SelectItem = createComponent({\n elementClass: SelectItemElement, events, react: React, tagName: \"vaadin-select-item\"\n});\n"],
5
+ "mappings": "AAAA,WAAc,uCCCd,OAAS,cAAcA,MAA0B,uCACjD,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAGxD,IAAMC,EAAS,CAAC,EAEHC,EAAaC,EAAgB,CACtC,aAAcC,EAAmB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,oBACpE,CAAC",
6
+ "names": ["SelectItemElement", "React", "createComponent", "events", "SelectItem", "createComponent", "SelectItemElement", "React"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from './generated/SelectListBox.js';
2
+ //# sourceMappingURL=SelectListBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectListBox.d.ts","sourceRoot":"","sources":["src/SelectListBox.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export*from"@vaadin/select/vaadin-select-list-box.js";import{SelectListBox as e}from"@vaadin/select/vaadin-select-list-box.js";import*as t from"react";import{createComponent as o}from"./utils/createComponent.js";var p={},m=o({elementClass:e,events:p,react:t,tagName:"vaadin-select-list-box"});export{m as SelectListBox,e as SelectListBoxElement};
2
+ //# sourceMappingURL=SelectListBox.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["src/SelectListBox.ts", "src/generated/SelectListBox.ts"],
4
+ "sourcesContent": ["export * from \"@vaadin/select/vaadin-select-list-box.js\";\nexport * from './generated/SelectListBox.js';\n", "import type {} from \"@lit/react\";\nimport { SelectListBox as SelectListBoxElement, } from \"@vaadin/select/vaadin-select-list-box.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { SelectListBoxElement, };\nexport type SelectListBoxEventMap = Readonly<{}>;\nconst events = {} as SelectListBoxEventMap;\nexport type SelectListBoxProps = WebComponentProps<SelectListBoxElement, SelectListBoxEventMap>;\nexport const SelectListBox = createComponent({\n elementClass: SelectListBoxElement, events, react: React, tagName: \"vaadin-select-list-box\"\n});\n"],
5
+ "mappings": "AAAA,WAAc,2CCCd,OAAS,iBAAiBA,MAA6B,2CACvD,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAGxD,IAAMC,EAAS,CAAC,EAEHC,EAAgBC,EAAgB,CACzC,aAAcC,EAAsB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,wBACvE,CAAC",
6
+ "names": ["SelectListBoxElement", "React", "createComponent", "events", "SelectListBox", "createComponent", "SelectListBoxElement", "React"]
7
+ }
package/Switch.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './generated/Switch.js';
2
+ //# sourceMappingURL=Switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["src/Switch.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
package/Switch.js ADDED
@@ -0,0 +1,2 @@
1
+ export*from"@vaadin/switch/vaadin-switch.js";import{Switch as e}from"@vaadin/switch/vaadin-switch.js";import*as t from"react";import{createComponent as a}from"./utils/createComponent.js";var n={onChange:"change",onCheckedChanged:"checked-changed",onInvalidChanged:"invalid-changed",onValidated:"validated"},h=a({elementClass:e,events:n,react:t,tagName:"vaadin-switch"});export{h as Switch,e as SwitchElement};
2
+ //# sourceMappingURL=Switch.js.map
package/Switch.js.map ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["src/Switch.ts", "src/generated/Switch.ts"],
4
+ "sourcesContent": ["export * from \"@vaadin/switch/vaadin-switch.js\";\nexport * from './generated/Switch.js';\n", "import type { EventName } from \"@lit/react\";\nimport { Switch as SwitchElement, type SwitchEventMap as _SwitchEventMap, } from \"@vaadin/switch/vaadin-switch.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { SwitchElement, };\nexport type SwitchEventMap = Readonly<{\n onChange: EventName<_SwitchEventMap[\"change\"]>;\n onCheckedChanged: EventName<_SwitchEventMap[\"checked-changed\"]>;\n onInvalidChanged: EventName<_SwitchEventMap[\"invalid-changed\"]>;\n onValidated: EventName<_SwitchEventMap[\"validated\"]>;\n}>;\nconst events = { onChange: \"change\", onCheckedChanged: \"checked-changed\", onInvalidChanged: \"invalid-changed\", onValidated: \"validated\" } as SwitchEventMap;\nexport type SwitchProps = WebComponentProps<SwitchElement, SwitchEventMap>;\nexport const Switch = createComponent({\n elementClass: SwitchElement, events, react: React, tagName: \"vaadin-switch\"\n});\n"],
5
+ "mappings": "AAAA,WAAc,kCCCd,OAAS,UAAUA,MAA8D,kCACjF,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAQxD,IAAMC,EAAS,CAAE,SAAU,SAAU,iBAAkB,kBAAmB,iBAAkB,kBAAmB,YAAa,WAAY,EAE3HC,EAASC,EAAgB,CAClC,aAAcC,EAAe,OAAAH,EAAQ,MAAOI,EAAO,QAAS,eAChE,CAAC",
6
+ "names": ["SwitchElement", "React", "createComponent", "events", "Switch", "createComponent", "SwitchElement", "React"]
7
+ }
@@ -0,0 +1,9 @@
1
+ import { SelectItem as SelectItemElement } from "@vaadin/select/vaadin-select-item.js";
2
+ import * as React from "react";
3
+ import { type WebComponentProps } from "../utils/createComponent.js";
4
+ export * from "@vaadin/select/vaadin-select-item.js";
5
+ export { SelectItemElement, };
6
+ export type SelectItemEventMap = Readonly<{}>;
7
+ export type SelectItemProps = WebComponentProps<SelectItemElement, SelectItemEventMap>;
8
+ export declare const SelectItem: (props: Partial<import("../utils/createComponent.js").ThemedWebComponentProps<SelectItemElement, Readonly<{}>>> & React.RefAttributes<SelectItemElement>) => React.ReactElement | null;
9
+ //# sourceMappingURL=SelectItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectItem.d.ts","sourceRoot":"","sources":["../src/generated/SelectItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAG,MAAM,sCAAsC,CAAC;AACxF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,sCAAsC,CAAC;AACrD,OAAO,EAAE,iBAAiB,GAAG,CAAC;AAC9B,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;AAE9C,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAAC;AACvF,eAAO,MAAM,UAAU,wLAErB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { SelectListBox as SelectListBoxElement } from "@vaadin/select/vaadin-select-list-box.js";
2
+ import * as React from "react";
3
+ import { type WebComponentProps } from "../utils/createComponent.js";
4
+ export * from "@vaadin/select/vaadin-select-list-box.js";
5
+ export { SelectListBoxElement, };
6
+ export type SelectListBoxEventMap = Readonly<{}>;
7
+ export type SelectListBoxProps = WebComponentProps<SelectListBoxElement, SelectListBoxEventMap>;
8
+ export declare const SelectListBox: (props: Partial<import("../utils/createComponent.js").ThemedWebComponentProps<SelectListBoxElement, Readonly<{}>>> & React.RefAttributes<SelectListBoxElement>) => React.ReactElement | null;
9
+ //# sourceMappingURL=SelectListBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectListBox.d.ts","sourceRoot":"","sources":["../src/generated/SelectListBox.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAG,MAAM,0CAA0C,CAAC;AAClG,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,oBAAoB,GAAG,CAAC;AACjC,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,oBAAoB,EAAE,qBAAqB,CAAC,CAAC;AAChG,eAAO,MAAM,aAAa,8LAExB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { EventName } from "@lit/react";
2
+ import { Switch as SwitchElement, type SwitchEventMap as _SwitchEventMap } from "@vaadin/switch/vaadin-switch.js";
3
+ import * as React from "react";
4
+ import { type WebComponentProps } from "../utils/createComponent.js";
5
+ export * from "@vaadin/switch/vaadin-switch.js";
6
+ export { SwitchElement, };
7
+ export type SwitchEventMap = Readonly<{
8
+ onChange: EventName<_SwitchEventMap["change"]>;
9
+ onCheckedChanged: EventName<_SwitchEventMap["checked-changed"]>;
10
+ onInvalidChanged: EventName<_SwitchEventMap["invalid-changed"]>;
11
+ onValidated: EventName<_SwitchEventMap["validated"]>;
12
+ }>;
13
+ export type SwitchProps = WebComponentProps<SwitchElement, SwitchEventMap>;
14
+ export declare const Switch: (props: Partial<Omit<React.HTMLAttributes<SwitchElement>, "autofocus" | "onChange" | "name" | "disabled" | "focusElement" | "onCheckedChanged" | "onInvalidChanged" | "onValidated" | "readonly" | "checked" | "helperText" | "errorMessage" | "accessibleName" | "accessibleNameRef" | "inputElement" | "value" | "clear" | "label" | "invalid" | "manualValidation" | "required" | "validate" | "checkValidity"> & {
15
+ readonly onChange?: ((e: import("@vaadin/switch/vaadin-switch.js").SwitchChangeEvent) => void) | undefined;
16
+ readonly onCheckedChanged?: ((e: import("@vaadin/switch/vaadin-switch.js").SwitchCheckedChangedEvent) => void) | undefined;
17
+ readonly onInvalidChanged?: ((e: import("@vaadin/switch/vaadin-switch.js").SwitchInvalidChangedEvent) => void) | undefined;
18
+ readonly onValidated?: ((e: import("@vaadin/switch/vaadin-switch.js").SwitchValidatedEvent) => void) | undefined;
19
+ } & Partial<Omit<SwitchElement, keyof HTMLElement>> & {
20
+ autofocus?: boolean;
21
+ }> & React.RefAttributes<SwitchElement>) => React.ReactElement | null;
22
+ //# sourceMappingURL=Switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../src/generated/Switch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,KAAK,cAAc,IAAI,eAAe,EAAG,MAAM,iCAAiC,CAAC;AACnH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,aAAa,GAAG,CAAC;AAC1B,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC;IAClC,QAAQ,EAAE,SAAS,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/C,gBAAgB,EAAE,SAAS,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAChE,gBAAgB,EAAE,SAAS,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAChE,WAAW,EAAE,SAAS,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC;CACxD,CAAC,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;AAC3E,eAAO,MAAM,MAAM;;;;;;;qEAEjB,CAAC"}
package/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export * from "./AccordionHeading.js";
2
2
  export * from "./AccordionPanel.js";
3
+ export * from "./AppLayout.js";
3
4
  export * from "./Accordion.js";
4
5
  export * from "./DrawerToggle.js";
5
- export * from "./AppLayout.js";
6
6
  export * from "./Avatar.js";
7
7
  export * from "./AvatarGroup.js";
8
8
  export * from "./Badge.js";
@@ -22,8 +22,8 @@ export * from "./DetailsSummary.js";
22
22
  export * from "./Details.js";
23
23
  export * from "./Dialog.js";
24
24
  export * from "./EmailField.js";
25
- export * from "./FormItem.js";
26
25
  export * from "./FormLayout.js";
26
+ export * from "./FormItem.js";
27
27
  export * from "./FormRow.js";
28
28
  export * from "./GridColumnGroup.js";
29
29
  export * from "./GridColumn.js";
@@ -58,12 +58,15 @@ export * from "./ProgressBar.js";
58
58
  export * from "./RadioButton.js";
59
59
  export * from "./RadioGroup.js";
60
60
  export * from "./Scroller.js";
61
+ export * from "./SelectItem.js";
62
+ export * from "./SelectListBox.js";
61
63
  export * from "./Select.js";
62
64
  export * from "./SideNavItem.js";
63
65
  export * from "./SideNav.js";
64
66
  export * from "./RangeSlider.js";
65
67
  export * from "./Slider.js";
66
68
  export * from "./SplitLayout.js";
69
+ export * from "./Switch.js";
67
70
  export * from "./Tab.js";
68
71
  export * from "./Tabs.js";
69
72
  export * from "./TabSheet.js";
@@ -72,8 +75,8 @@ export * from "./TextField.js";
72
75
  export * from "./TimePicker.js";
73
76
  export * from "./Tooltip.js";
74
77
  export * from "./UploadButton.js";
75
- export * from "./UploadDropZone.js";
76
78
  export * from "./UploadFileList.js";
79
+ export * from "./UploadDropZone.js";
77
80
  export * from "./Upload.js";
78
81
  export * from "./VerticalLayout.js";
79
82
  export * from "./VirtualList.js";
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  export * from "./AccordionHeading.js";
2
2
  export * from "./AccordionPanel.js";
3
+ export * from "./AppLayout.js";
3
4
  export * from "./Accordion.js";
4
5
  export * from "./DrawerToggle.js";
5
- export * from "./AppLayout.js";
6
6
  export * from "./Avatar.js";
7
7
  export * from "./AvatarGroup.js";
8
8
  export * from "./Badge.js";
@@ -22,8 +22,8 @@ export * from "./DetailsSummary.js";
22
22
  export * from "./Details.js";
23
23
  export * from "./Dialog.js";
24
24
  export * from "./EmailField.js";
25
- export * from "./FormItem.js";
26
25
  export * from "./FormLayout.js";
26
+ export * from "./FormItem.js";
27
27
  export * from "./FormRow.js";
28
28
  export * from "./GridColumnGroup.js";
29
29
  export * from "./GridColumn.js";
@@ -58,12 +58,15 @@ export * from "./ProgressBar.js";
58
58
  export * from "./RadioButton.js";
59
59
  export * from "./RadioGroup.js";
60
60
  export * from "./Scroller.js";
61
+ export * from "./SelectItem.js";
62
+ export * from "./SelectListBox.js";
61
63
  export * from "./Select.js";
62
64
  export * from "./SideNavItem.js";
63
65
  export * from "./SideNav.js";
64
66
  export * from "./RangeSlider.js";
65
67
  export * from "./Slider.js";
66
68
  export * from "./SplitLayout.js";
69
+ export * from "./Switch.js";
67
70
  export * from "./Tab.js";
68
71
  export * from "./Tabs.js";
69
72
  export * from "./TabSheet.js";
@@ -72,8 +75,8 @@ export * from "./TextField.js";
72
75
  export * from "./TimePicker.js";
73
76
  export * from "./Tooltip.js";
74
77
  export * from "./UploadButton.js";
75
- export * from "./UploadDropZone.js";
76
78
  export * from "./UploadFileList.js";
79
+ export * from "./UploadDropZone.js";
77
80
  export * from "./Upload.js";
78
81
  export * from "./VerticalLayout.js";
79
82
  export * from "./VirtualList.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/react-components",
3
- "version": "25.3.0-alpha4",
3
+ "version": "25.3.0-alpha6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -27,69 +27,70 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@lit/react": "^1.0.7",
30
- "@vaadin/a11y-base": "25.3.0-alpha4",
31
- "@vaadin/accordion": "25.3.0-alpha4",
32
- "@vaadin/app-layout": "25.3.0-alpha4",
33
- "@vaadin/avatar": "25.3.0-alpha4",
34
- "@vaadin/avatar-group": "25.3.0-alpha4",
35
- "@vaadin/badge": "25.3.0-alpha4",
36
- "@vaadin/breadcrumbs": "25.3.0-alpha4",
37
- "@vaadin/button": "25.3.0-alpha4",
38
- "@vaadin/card": "25.3.0-alpha4",
39
- "@vaadin/checkbox": "25.3.0-alpha4",
40
- "@vaadin/checkbox-group": "25.3.0-alpha4",
41
- "@vaadin/combo-box": "25.3.0-alpha4",
42
- "@vaadin/component-base": "25.3.0-alpha4",
43
- "@vaadin/confirm-dialog": "25.3.0-alpha4",
44
- "@vaadin/context-menu": "25.3.0-alpha4",
45
- "@vaadin/custom-field": "25.3.0-alpha4",
46
- "@vaadin/date-picker": "25.3.0-alpha4",
47
- "@vaadin/date-time-picker": "25.3.0-alpha4",
48
- "@vaadin/details": "25.3.0-alpha4",
49
- "@vaadin/dialog": "25.3.0-alpha4",
50
- "@vaadin/email-field": "25.3.0-alpha4",
51
- "@vaadin/field-base": "25.3.0-alpha4",
52
- "@vaadin/field-highlighter": "25.3.0-alpha4",
53
- "@vaadin/form-layout": "25.3.0-alpha4",
54
- "@vaadin/grid": "25.3.0-alpha4",
55
- "@vaadin/horizontal-layout": "25.3.0-alpha4",
56
- "@vaadin/icon": "25.3.0-alpha4",
57
- "@vaadin/icons": "25.3.0-alpha4",
58
- "@vaadin/input-container": "25.3.0-alpha4",
59
- "@vaadin/integer-field": "25.3.0-alpha4",
60
- "@vaadin/item": "25.3.0-alpha4",
61
- "@vaadin/list-box": "25.3.0-alpha4",
62
- "@vaadin/lit-renderer": "25.3.0-alpha4",
63
- "@vaadin/login": "25.3.0-alpha4",
64
- "@vaadin/markdown": "25.3.0-alpha4",
65
- "@vaadin/master-detail-layout": "25.3.0-alpha4",
66
- "@vaadin/menu-bar": "25.3.0-alpha4",
67
- "@vaadin/message-input": "25.3.0-alpha4",
68
- "@vaadin/message-list": "25.3.0-alpha4",
69
- "@vaadin/multi-select-combo-box": "25.3.0-alpha4",
70
- "@vaadin/notification": "25.3.0-alpha4",
71
- "@vaadin/number-field": "25.3.0-alpha4",
72
- "@vaadin/overlay": "25.3.0-alpha4",
73
- "@vaadin/password-field": "25.3.0-alpha4",
74
- "@vaadin/popover": "25.3.0-alpha4",
75
- "@vaadin/progress-bar": "25.3.0-alpha4",
76
- "@vaadin/radio-group": "25.3.0-alpha4",
77
- "@vaadin/scroller": "25.3.0-alpha4",
78
- "@vaadin/select": "25.3.0-alpha4",
79
- "@vaadin/side-nav": "25.3.0-alpha4",
80
- "@vaadin/slider": "25.3.0-alpha4",
81
- "@vaadin/split-layout": "25.3.0-alpha4",
82
- "@vaadin/tabs": "25.3.0-alpha4",
83
- "@vaadin/tabsheet": "25.3.0-alpha4",
84
- "@vaadin/text-area": "25.3.0-alpha4",
85
- "@vaadin/text-field": "25.3.0-alpha4",
86
- "@vaadin/time-picker": "25.3.0-alpha4",
87
- "@vaadin/tooltip": "25.3.0-alpha4",
88
- "@vaadin/upload": "25.3.0-alpha4",
89
- "@vaadin/vaadin-lumo-styles": "25.3.0-alpha4",
90
- "@vaadin/vaadin-themable-mixin": "25.3.0-alpha4",
91
- "@vaadin/vertical-layout": "25.3.0-alpha4",
92
- "@vaadin/virtual-list": "25.3.0-alpha4"
30
+ "@vaadin/a11y-base": "25.3.0-alpha6",
31
+ "@vaadin/accordion": "25.3.0-alpha6",
32
+ "@vaadin/app-layout": "25.3.0-alpha6",
33
+ "@vaadin/avatar": "25.3.0-alpha6",
34
+ "@vaadin/avatar-group": "25.3.0-alpha6",
35
+ "@vaadin/badge": "25.3.0-alpha6",
36
+ "@vaadin/breadcrumbs": "25.3.0-alpha6",
37
+ "@vaadin/button": "25.3.0-alpha6",
38
+ "@vaadin/card": "25.3.0-alpha6",
39
+ "@vaadin/checkbox": "25.3.0-alpha6",
40
+ "@vaadin/checkbox-group": "25.3.0-alpha6",
41
+ "@vaadin/combo-box": "25.3.0-alpha6",
42
+ "@vaadin/component-base": "25.3.0-alpha6",
43
+ "@vaadin/confirm-dialog": "25.3.0-alpha6",
44
+ "@vaadin/context-menu": "25.3.0-alpha6",
45
+ "@vaadin/custom-field": "25.3.0-alpha6",
46
+ "@vaadin/date-picker": "25.3.0-alpha6",
47
+ "@vaadin/date-time-picker": "25.3.0-alpha6",
48
+ "@vaadin/details": "25.3.0-alpha6",
49
+ "@vaadin/dialog": "25.3.0-alpha6",
50
+ "@vaadin/email-field": "25.3.0-alpha6",
51
+ "@vaadin/field-base": "25.3.0-alpha6",
52
+ "@vaadin/field-highlighter": "25.3.0-alpha6",
53
+ "@vaadin/form-layout": "25.3.0-alpha6",
54
+ "@vaadin/grid": "25.3.0-alpha6",
55
+ "@vaadin/horizontal-layout": "25.3.0-alpha6",
56
+ "@vaadin/icon": "25.3.0-alpha6",
57
+ "@vaadin/icons": "25.3.0-alpha6",
58
+ "@vaadin/input-container": "25.3.0-alpha6",
59
+ "@vaadin/integer-field": "25.3.0-alpha6",
60
+ "@vaadin/item": "25.3.0-alpha6",
61
+ "@vaadin/list-box": "25.3.0-alpha6",
62
+ "@vaadin/lit-renderer": "25.3.0-alpha6",
63
+ "@vaadin/login": "25.3.0-alpha6",
64
+ "@vaadin/markdown": "25.3.0-alpha6",
65
+ "@vaadin/master-detail-layout": "25.3.0-alpha6",
66
+ "@vaadin/menu-bar": "25.3.0-alpha6",
67
+ "@vaadin/message-input": "25.3.0-alpha6",
68
+ "@vaadin/message-list": "25.3.0-alpha6",
69
+ "@vaadin/multi-select-combo-box": "25.3.0-alpha6",
70
+ "@vaadin/notification": "25.3.0-alpha6",
71
+ "@vaadin/number-field": "25.3.0-alpha6",
72
+ "@vaadin/overlay": "25.3.0-alpha6",
73
+ "@vaadin/password-field": "25.3.0-alpha6",
74
+ "@vaadin/popover": "25.3.0-alpha6",
75
+ "@vaadin/progress-bar": "25.3.0-alpha6",
76
+ "@vaadin/radio-group": "25.3.0-alpha6",
77
+ "@vaadin/scroller": "25.3.0-alpha6",
78
+ "@vaadin/select": "25.3.0-alpha6",
79
+ "@vaadin/side-nav": "25.3.0-alpha6",
80
+ "@vaadin/slider": "25.3.0-alpha6",
81
+ "@vaadin/split-layout": "25.3.0-alpha6",
82
+ "@vaadin/switch": "25.3.0-alpha6",
83
+ "@vaadin/tabs": "25.3.0-alpha6",
84
+ "@vaadin/tabsheet": "25.3.0-alpha6",
85
+ "@vaadin/text-area": "25.3.0-alpha6",
86
+ "@vaadin/text-field": "25.3.0-alpha6",
87
+ "@vaadin/time-picker": "25.3.0-alpha6",
88
+ "@vaadin/tooltip": "25.3.0-alpha6",
89
+ "@vaadin/upload": "25.3.0-alpha6",
90
+ "@vaadin/vaadin-lumo-styles": "25.3.0-alpha6",
91
+ "@vaadin/vaadin-themable-mixin": "25.3.0-alpha6",
92
+ "@vaadin/vertical-layout": "25.3.0-alpha6",
93
+ "@vaadin/virtual-list": "25.3.0-alpha6"
93
94
  },
94
95
  "author": "Vaadin Ltd.",
95
96
  "license": "Apache-2.0",
@@ -372,6 +373,14 @@
372
373
  "types": "./Select.d.ts",
373
374
  "default": "./Select.js"
374
375
  },
376
+ "./SelectItem.js": {
377
+ "types": "./SelectItem.d.ts",
378
+ "default": "./SelectItem.js"
379
+ },
380
+ "./SelectListBox.js": {
381
+ "types": "./SelectListBox.d.ts",
382
+ "default": "./SelectListBox.js"
383
+ },
375
384
  "./SideNav.js": {
376
385
  "types": "./SideNav.d.ts",
377
386
  "default": "./SideNav.js"
@@ -388,6 +397,10 @@
388
397
  "types": "./SplitLayout.d.ts",
389
398
  "default": "./SplitLayout.js"
390
399
  },
400
+ "./Switch.js": {
401
+ "types": "./Switch.d.ts",
402
+ "default": "./Switch.js"
403
+ },
391
404
  "./Tab.js": {
392
405
  "types": "./Tab.d.ts",
393
406
  "default": "./Tab.js"
@@ -502,10 +515,13 @@
502
515
  "./RangeSlider": "./RangeSlider.js",
503
516
  "./Scroller": "./Scroller.js",
504
517
  "./Select": "./Select.js",
518
+ "./SelectItem": "./SelectItem.js",
519
+ "./SelectListBox": "./SelectListBox.js",
505
520
  "./SideNav": "./SideNav.js",
506
521
  "./SideNavItem": "./SideNavItem.js",
507
522
  "./Slider": "./Slider.js",
508
523
  "./SplitLayout": "./SplitLayout.js",
524
+ "./Switch": "./Switch.js",
509
525
  "./Tab": "./Tab.js",
510
526
  "./Tabs": "./Tabs.js",
511
527
  "./TabSheet": "./TabSheet.js",
@@ -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.3.0-alpha4"});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.3.0-alpha6"});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.3.0-alpha4',\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"],
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.3.0-alpha6',\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
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",
6
6
  "names": ["_createComponent", "createComponent", "options", "elementClass"]
7
7
  }