@vaadin/react-components 24.4.0-rc2 → 24.5.0-alpha2

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/Popover.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ import { type ComponentType, type HTMLAttributes, type ReactNode } from 'react';
2
+ import { type PopoverElement, type PopoverProps as _PopoverProps } from './generated/Popover.js';
3
+ import type { ReactSimpleRendererProps } from './renderers/useSimpleRenderer.js';
4
+ export * from './generated/Popover.js';
5
+ export type PopoverReactRendererProps = ReactSimpleRendererProps<PopoverElement>;
6
+ type OmittedPopoverHTMLAttributes = Omit<HTMLAttributes<PopoverElement>, 'id' | 'className' | 'dangerouslySetInnerHTML' | 'slot'>;
7
+ export type PopoverProps = Partial<Omit<_PopoverProps, 'children' | 'renderer' | keyof OmittedPopoverHTMLAttributes>> & Readonly<{
8
+ children?: ReactNode | ComponentType<PopoverReactRendererProps>;
9
+ renderer?: ComponentType<PopoverReactRendererProps> | null;
10
+ }>;
11
+ declare const ForwardedPopover: import("react").ForwardRefExoticComponent<Partial<Omit<Partial<import("./utils/createComponent.js").ThemedWebComponentProps<PopoverElement, Readonly<{
12
+ onOpenedChanged: import("@lit/react").EventName<import("@vaadin/popover/src/vaadin-popover.js").PopoverOpenedChangedEvent>;
13
+ }>>>, "accessKey" | "dir" | "draggable" | "hidden" | "lang" | "title" | "translate" | "prefix" | "role" | "children" | "style" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "autoFocus" | "contextMenu" | "spellCheck" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "renderer">> & Readonly<{
14
+ children?: ReactNode | ComponentType<PopoverReactRendererProps>;
15
+ renderer?: ComponentType<Readonly<{
16
+ original: PopoverElement;
17
+ }>> | null | undefined;
18
+ }> & import("react").RefAttributes<PopoverElement>>;
19
+ export { ForwardedPopover as Popover };
20
+ //# sourceMappingURL=Popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["src/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,cAAc,EAGnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAuB,KAAK,cAAc,EAAE,KAAK,YAAY,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEtH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAEjF,cAAc,wBAAwB,CAAC;AAEvC,MAAM,MAAM,yBAAyB,GAAG,wBAAwB,CAAC,cAAc,CAAC,CAAC;AAEjF,KAAK,4BAA4B,GAAG,IAAI,CACtC,cAAc,CAAC,cAAc,CAAC,EAC9B,IAAI,GAAG,WAAW,GAAG,yBAAyB,GAAG,MAAM,CACxD,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,CAChC,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,4BAA4B,CAAC,CAClF,GACC,QAAQ,CAAC;IACP,QAAQ,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAChE,QAAQ,CAAC,EAAE,aAAa,CAAC,yBAAyB,CAAC,GAAG,IAAI,CAAC;CAC5D,CAAC,CAAC;AAeL,QAAA,MAAM,gBAAgB;;;eAjBP,SAAS,GAAG,cAAc,yBAAyB,CAAC;;;;mDAiBvB,CAAC;AAE7C,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}
package/Popover.js ADDED
@@ -0,0 +1,2 @@
1
+ export*from"@vaadin/popover/vaadin-popover.js";import{forwardRef as d}from"react";import{Popover as a}from"@vaadin/popover/vaadin-popover.js";import*as P from"react";import{createComponent as m}from"./utils/createComponent.js";var v={onOpenedChanged:"opened-changed"},o=m({elementClass:a,events:v,react:P,tagName:"vaadin-popover"});import{useSimpleOrChildrenRenderer as s}from"./renderers/useSimpleOrChildrenRenderer.js";import{jsx as i}from"react/jsx-runtime";function l({children:r,...e},p){let[t,n]=s(e.renderer,r);return i(o,{...e,ref:p,renderer:n,children:t})}var u=d(l);export{u as Popover,a as PopoverElement};
2
+ //# sourceMappingURL=Popover.js.map
package/Popover.js.map ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["src/Popover.tsx", "src/generated/Popover.ts"],
4
+ "sourcesContent": ["export * from \"@vaadin/popover/vaadin-popover.js\";\nimport {\n type ComponentType,\n type ForwardedRef,\n type HTMLAttributes,\n forwardRef,\n type ReactElement,\n type ReactNode,\n} from 'react';\nimport { Popover as _Popover, type PopoverElement, type PopoverProps as _PopoverProps } from './generated/Popover.js';\nimport { useSimpleOrChildrenRenderer } from './renderers/useSimpleOrChildrenRenderer.js';\nimport type { ReactSimpleRendererProps } from './renderers/useSimpleRenderer.js';\n\nexport * from './generated/Popover.js';\n\nexport type PopoverReactRendererProps = ReactSimpleRendererProps<PopoverElement>;\n\ntype OmittedPopoverHTMLAttributes = Omit<\n HTMLAttributes<PopoverElement>,\n 'id' | 'className' | 'dangerouslySetInnerHTML' | 'slot'\n>;\n\nexport type PopoverProps = Partial<\n Omit<_PopoverProps, 'children' | 'renderer' | keyof OmittedPopoverHTMLAttributes>\n> &\n Readonly<{\n children?: ReactNode | ComponentType<PopoverReactRendererProps>;\n renderer?: ComponentType<PopoverReactRendererProps> | null;\n }>;\n\nfunction Popover(\n { children, ...props }: PopoverProps,\n ref: ForwardedRef<PopoverElement>,\n): ReactElement | null {\n const [portals, renderer] = useSimpleOrChildrenRenderer(props.renderer, children);\n\n return (\n <_Popover {...props} ref={ref} renderer={renderer}>\n {portals}\n </_Popover>\n );\n}\n\nconst ForwardedPopover = forwardRef(Popover);\n\nexport { ForwardedPopover as Popover };\n", "import type { EventName } from \"@lit/react\";\nimport { Popover as PopoverElement, type PopoverEventMap as _PopoverEventMap, } from \"@vaadin/popover/vaadin-popover.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { PopoverElement, };\nexport type PopoverEventMap = Readonly<{\n onOpenedChanged: EventName<_PopoverEventMap[\"opened-changed\"]>;\n}>;\nconst events = { onOpenedChanged: \"opened-changed\" } as PopoverEventMap;\nexport type PopoverProps = WebComponentProps<PopoverElement, PopoverEventMap>;\nexport const Popover = createComponent({\n elementClass: PopoverElement, events, react: React, tagName: \"vaadin-popover\"\n});\n"],
5
+ "mappings": "AAAA,WAAc,oCACd,OAIE,cAAAA,MAGK,QCPP,OAAS,WAAWC,MAAiE,oCACrF,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAKxD,IAAMC,EAAS,CAAE,gBAAiB,gBAAiB,EAEtCC,EAAUC,EAAgB,CACnC,aAAcC,EAAgB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,gBACjE,CAAC,EDFD,OAAS,+BAAAC,MAAmC,6CA2BxC,cAAAC,MAAA,oBAPJ,SAASC,EACP,CAAE,SAAAC,EAAU,GAAGC,CAAM,EACrBC,EACqB,CACrB,GAAM,CAACC,EAASC,CAAQ,EAAIP,EAA4BI,EAAM,SAAUD,CAAQ,EAEhF,OACEF,EAACC,EAAA,CAAU,GAAGE,EAAO,IAAKC,EAAK,SAAUE,EACtC,SAAAD,EACH,CAEJ,CAEA,IAAME,EAAmBC,EAAWP,CAAO",
6
+ "names": ["forwardRef", "PopoverElement", "React", "createComponent", "events", "Popover", "createComponent", "PopoverElement", "React", "useSimpleOrChildrenRenderer", "jsx", "Popover", "children", "props", "ref", "portals", "renderer", "ForwardedPopover", "forwardRef"]
7
+ }
@@ -0,0 +1,14 @@
1
+ import type { EventName } from "@lit/react";
2
+ import { Popover as PopoverElement, type PopoverEventMap as _PopoverEventMap } from "@vaadin/popover/vaadin-popover.js";
3
+ import * as React from "react";
4
+ import { type WebComponentProps } from "../utils/createComponent.js";
5
+ export * from "@vaadin/popover/vaadin-popover.js";
6
+ export { PopoverElement, };
7
+ export type PopoverEventMap = Readonly<{
8
+ onOpenedChanged: EventName<_PopoverEventMap["opened-changed"]>;
9
+ }>;
10
+ export type PopoverProps = WebComponentProps<PopoverElement, PopoverEventMap>;
11
+ export declare const Popover: (props: Partial<import("../utils/createComponent.js").ThemedWebComponentProps<PopoverElement, Readonly<{
12
+ onOpenedChanged: EventName<_PopoverEventMap["opened-changed"]>;
13
+ }>>> & React.RefAttributes<PopoverElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
14
+ //# sourceMappingURL=Popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../src/generated/Popover.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,mCAAmC,CAAC;AACzH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,mCAAmC,CAAC;AAClD,OAAO,EAAE,cAAc,GAAG,CAAC;AAC3B,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACnC,eAAe,EAAE,SAAS,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC,CAAC;CAClE,CAAC,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;AAC9E,eAAO,MAAM,OAAO;qBAJC,UAAU,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;wHAMhE,CAAC"}
package/index.d.ts CHANGED
@@ -48,6 +48,7 @@ export * from "./MultiSelectComboBox.js";
48
48
  export * from "./Notification.js";
49
49
  export * from "./NumberField.js";
50
50
  export * from "./PasswordField.js";
51
+ export * from "./Popover.js";
51
52
  export * from "./ProgressBar.js";
52
53
  export * from "./RadioButton.js";
53
54
  export * from "./RadioGroup.js";
package/index.js CHANGED
@@ -48,6 +48,7 @@ export * from "./MultiSelectComboBox.js";
48
48
  export * from "./Notification.js";
49
49
  export * from "./NumberField.js";
50
50
  export * from "./PasswordField.js";
51
+ export * from "./Popover.js";
51
52
  export * from "./ProgressBar.js";
52
53
  export * from "./RadioButton.js";
53
54
  export * from "./RadioGroup.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/react-components",
3
- "version": "24.4.0-rc2",
3
+ "version": "24.5.0-alpha2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -27,63 +27,64 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@lit/react": "^1.0.0",
30
- "@vaadin/a11y-base": "24.4.0-rc2",
31
- "@vaadin/accordion": "24.4.0-rc2",
32
- "@vaadin/app-layout": "24.4.0-rc2",
33
- "@vaadin/avatar": "24.4.0-rc2",
34
- "@vaadin/avatar-group": "24.4.0-rc2",
35
- "@vaadin/button": "24.4.0-rc2",
36
- "@vaadin/checkbox": "24.4.0-rc2",
37
- "@vaadin/checkbox-group": "24.4.0-rc2",
38
- "@vaadin/combo-box": "24.4.0-rc2",
39
- "@vaadin/component-base": "24.4.0-rc2",
40
- "@vaadin/confirm-dialog": "24.4.0-rc2",
41
- "@vaadin/context-menu": "24.4.0-rc2",
42
- "@vaadin/custom-field": "24.4.0-rc2",
43
- "@vaadin/date-picker": "24.4.0-rc2",
44
- "@vaadin/date-time-picker": "24.4.0-rc2",
45
- "@vaadin/details": "24.4.0-rc2",
46
- "@vaadin/dialog": "24.4.0-rc2",
47
- "@vaadin/email-field": "24.4.0-rc2",
48
- "@vaadin/field-base": "24.4.0-rc2",
49
- "@vaadin/field-highlighter": "24.4.0-rc2",
50
- "@vaadin/form-layout": "24.4.0-rc2",
51
- "@vaadin/grid": "24.4.0-rc2",
52
- "@vaadin/horizontal-layout": "24.4.0-rc2",
53
- "@vaadin/icon": "24.4.0-rc2",
54
- "@vaadin/icons": "24.4.0-rc2",
55
- "@vaadin/input-container": "24.4.0-rc2",
56
- "@vaadin/integer-field": "24.4.0-rc2",
57
- "@vaadin/item": "24.4.0-rc2",
58
- "@vaadin/list-box": "24.4.0-rc2",
59
- "@vaadin/lit-renderer": "24.4.0-rc2",
60
- "@vaadin/login": "24.4.0-rc2",
61
- "@vaadin/menu-bar": "24.4.0-rc2",
62
- "@vaadin/message-input": "24.4.0-rc2",
63
- "@vaadin/message-list": "24.4.0-rc2",
64
- "@vaadin/multi-select-combo-box": "24.4.0-rc2",
65
- "@vaadin/notification": "24.4.0-rc2",
66
- "@vaadin/number-field": "24.4.0-rc2",
67
- "@vaadin/overlay": "24.4.0-rc2",
68
- "@vaadin/password-field": "24.4.0-rc2",
69
- "@vaadin/progress-bar": "24.4.0-rc2",
70
- "@vaadin/radio-group": "24.4.0-rc2",
71
- "@vaadin/scroller": "24.4.0-rc2",
72
- "@vaadin/select": "24.4.0-rc2",
73
- "@vaadin/side-nav": "24.4.0-rc2",
74
- "@vaadin/split-layout": "24.4.0-rc2",
75
- "@vaadin/tabs": "24.4.0-rc2",
76
- "@vaadin/tabsheet": "24.4.0-rc2",
77
- "@vaadin/text-area": "24.4.0-rc2",
78
- "@vaadin/text-field": "24.4.0-rc2",
79
- "@vaadin/time-picker": "24.4.0-rc2",
80
- "@vaadin/tooltip": "24.4.0-rc2",
81
- "@vaadin/upload": "24.4.0-rc2",
82
- "@vaadin/vaadin-lumo-styles": "24.4.0-rc2",
83
- "@vaadin/vaadin-material-styles": "24.4.0-rc2",
84
- "@vaadin/vaadin-themable-mixin": "24.4.0-rc2",
85
- "@vaadin/vertical-layout": "24.4.0-rc2",
86
- "@vaadin/virtual-list": "24.4.0-rc2"
30
+ "@vaadin/a11y-base": "24.5.0-alpha2",
31
+ "@vaadin/accordion": "24.5.0-alpha2",
32
+ "@vaadin/app-layout": "24.5.0-alpha2",
33
+ "@vaadin/avatar": "24.5.0-alpha2",
34
+ "@vaadin/avatar-group": "24.5.0-alpha2",
35
+ "@vaadin/button": "24.5.0-alpha2",
36
+ "@vaadin/checkbox": "24.5.0-alpha2",
37
+ "@vaadin/checkbox-group": "24.5.0-alpha2",
38
+ "@vaadin/combo-box": "24.5.0-alpha2",
39
+ "@vaadin/component-base": "24.5.0-alpha2",
40
+ "@vaadin/confirm-dialog": "24.5.0-alpha2",
41
+ "@vaadin/context-menu": "24.5.0-alpha2",
42
+ "@vaadin/custom-field": "24.5.0-alpha2",
43
+ "@vaadin/date-picker": "24.5.0-alpha2",
44
+ "@vaadin/date-time-picker": "24.5.0-alpha2",
45
+ "@vaadin/details": "24.5.0-alpha2",
46
+ "@vaadin/dialog": "24.5.0-alpha2",
47
+ "@vaadin/email-field": "24.5.0-alpha2",
48
+ "@vaadin/field-base": "24.5.0-alpha2",
49
+ "@vaadin/field-highlighter": "24.5.0-alpha2",
50
+ "@vaadin/form-layout": "24.5.0-alpha2",
51
+ "@vaadin/grid": "24.5.0-alpha2",
52
+ "@vaadin/horizontal-layout": "24.5.0-alpha2",
53
+ "@vaadin/icon": "24.5.0-alpha2",
54
+ "@vaadin/icons": "24.5.0-alpha2",
55
+ "@vaadin/input-container": "24.5.0-alpha2",
56
+ "@vaadin/integer-field": "24.5.0-alpha2",
57
+ "@vaadin/item": "24.5.0-alpha2",
58
+ "@vaadin/list-box": "24.5.0-alpha2",
59
+ "@vaadin/lit-renderer": "24.5.0-alpha2",
60
+ "@vaadin/login": "24.5.0-alpha2",
61
+ "@vaadin/menu-bar": "24.5.0-alpha2",
62
+ "@vaadin/message-input": "24.5.0-alpha2",
63
+ "@vaadin/message-list": "24.5.0-alpha2",
64
+ "@vaadin/multi-select-combo-box": "24.5.0-alpha2",
65
+ "@vaadin/notification": "24.5.0-alpha2",
66
+ "@vaadin/number-field": "24.5.0-alpha2",
67
+ "@vaadin/overlay": "24.5.0-alpha2",
68
+ "@vaadin/password-field": "24.5.0-alpha2",
69
+ "@vaadin/popover": "24.5.0-alpha2",
70
+ "@vaadin/progress-bar": "24.5.0-alpha2",
71
+ "@vaadin/radio-group": "24.5.0-alpha2",
72
+ "@vaadin/scroller": "24.5.0-alpha2",
73
+ "@vaadin/select": "24.5.0-alpha2",
74
+ "@vaadin/side-nav": "24.5.0-alpha2",
75
+ "@vaadin/split-layout": "24.5.0-alpha2",
76
+ "@vaadin/tabs": "24.5.0-alpha2",
77
+ "@vaadin/tabsheet": "24.5.0-alpha2",
78
+ "@vaadin/text-area": "24.5.0-alpha2",
79
+ "@vaadin/text-field": "24.5.0-alpha2",
80
+ "@vaadin/time-picker": "24.5.0-alpha2",
81
+ "@vaadin/tooltip": "24.5.0-alpha2",
82
+ "@vaadin/upload": "24.5.0-alpha2",
83
+ "@vaadin/vaadin-lumo-styles": "24.5.0-alpha2",
84
+ "@vaadin/vaadin-material-styles": "24.5.0-alpha2",
85
+ "@vaadin/vaadin-themable-mixin": "24.5.0-alpha2",
86
+ "@vaadin/vertical-layout": "24.5.0-alpha2",
87
+ "@vaadin/virtual-list": "24.5.0-alpha2"
87
88
  },
88
89
  "author": "Vaadin Ltd.",
89
90
  "license": "Apache-2.0",
@@ -318,6 +319,10 @@
318
319
  "types": "./PasswordField.d.ts",
319
320
  "default": "./PasswordField.js"
320
321
  },
322
+ "./Popover.js": {
323
+ "types": "./Popover.d.ts",
324
+ "default": "./Popover.js"
325
+ },
321
326
  "./ProgressBar.js": {
322
327
  "types": "./ProgressBar.d.ts",
323
328
  "default": "./ProgressBar.js"
@@ -440,6 +445,7 @@
440
445
  "./Notification": "./Notification.js",
441
446
  "./NumberField": "./NumberField.js",
442
447
  "./PasswordField": "./PasswordField.js",
448
+ "./Popover": "./Popover.js",
443
449
  "./ProgressBar": "./ProgressBar.js",
444
450
  "./RadioButton": "./RadioButton.js",
445
451
  "./RadioGroup": "./RadioGroup.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:"24.4.0-rc2"});function r(e){const{elementClass:t}=e;return n("_properties"in t?{...e,elementClass:{name:t.name,prototype:{...t._properties,hidden:Boolean}}}:e)}export{r as createComponent};
1
+ import{createComponent as n}from"@lit/react";window.Vaadin??={},window.Vaadin.registrations??=[],window.Vaadin.registrations.push({is:"@vaadin/react-components",version:"24.5.0-alpha2"});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 */ '24.4.0-rc2',\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,YACnC,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 */ '24.5.0-alpha2',\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",
6
6
  "names": ["_createComponent", "createComponent", "options", "elementClass"]
7
7
  }