@vaadin/react-components 24.4.6 → 24.5.0-alpha10
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/ConfirmDialog.js +1 -1
- package/ConfirmDialog.js.map +2 -2
- package/Dialog.d.ts +1 -0
- package/Dialog.d.ts.map +1 -1
- package/Dialog.js +1 -1
- package/Dialog.js.map +2 -2
- package/Notification.js +1 -1
- package/Notification.js.map +2 -2
- package/Popover.d.ts +19 -0
- package/Popover.d.ts.map +1 -0
- package/Popover.js +2 -0
- package/Popover.js.map +7 -0
- package/css/lumo/Globals.css +6 -0
- package/css/lumo/mixins/Overlay.css +3 -1
- package/css/lumo/utilities/Transition.module.css +18 -3
- package/generated/ConfirmDialog.d.ts +2 -0
- package/generated/ConfirmDialog.d.ts.map +1 -1
- package/generated/Dialog.d.ts +2 -0
- package/generated/Dialog.d.ts.map +1 -1
- package/generated/Notification.d.ts +2 -0
- package/generated/Notification.d.ts.map +1 -1
- package/generated/Popover.d.ts +16 -0
- package/generated/Popover.d.ts.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +65 -59
- package/utils/createComponent.js +1 -1
- package/utils/createComponent.js.map +2 -2
package/ConfirmDialog.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export*from"@vaadin/confirm-dialog/vaadin-confirm-dialog.js";import{ConfirmDialog as e}from"@vaadin/confirm-dialog/vaadin-confirm-dialog.js";import*as
|
|
1
|
+
export*from"@vaadin/confirm-dialog/vaadin-confirm-dialog.js";import{ConfirmDialog as e}from"@vaadin/confirm-dialog/vaadin-confirm-dialog.js";import*as n from"react";import{createComponent as t}from"./utils/createComponent.js";var i={onClosed:"closed",onCancel:"cancel",onConfirm:"confirm",onReject:"reject",onOpenedChanged:"opened-changed"},o=t({elementClass:e,events:i,react:n,tagName:"vaadin-confirm-dialog"});var f=o;export{f as ConfirmDialog,e as ConfirmDialogElement};
|
|
2
2
|
//# sourceMappingURL=ConfirmDialog.js.map
|
package/ConfirmDialog.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["src/ConfirmDialog.ts", "src/generated/ConfirmDialog.ts"],
|
|
4
|
-
"sourcesContent": ["export * from \"@vaadin/confirm-dialog/vaadin-confirm-dialog.js\";\nimport type { HTMLAttributes, ReactElement, RefAttributes } from 'react';\nimport {\n ConfirmDialogElement,\n ConfirmDialog as _ConfirmDialog,\n type ConfirmDialogProps as _ConfirmDialogProps,\n} from './generated/ConfirmDialog.js';\n\nexport * from './generated/ConfirmDialog.js';\n\ntype OmittedConfirmDialogHTMLAttributes = Omit<\n HTMLAttributes<ConfirmDialogElement>,\n 'id' | 'className' | 'dangerouslySetInnerHTML' | 'slot' | 'children' | 'aria-label'\n>;\n\nexport type ConfirmDialogProps = Partial<Omit<_ConfirmDialogProps, keyof OmittedConfirmDialogHTMLAttributes>>;\n\nexport const ConfirmDialog = _ConfirmDialog as (\n props: ConfirmDialogProps & RefAttributes<ConfirmDialogElement>,\n) => ReactElement | null;\n", "import type { EventName } from \"@lit/react\";\nimport { ConfirmDialog as ConfirmDialogElement, type ConfirmDialogEventMap as _ConfirmDialogEventMap, } from \"@vaadin/confirm-dialog/vaadin-confirm-dialog.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { ConfirmDialogElement, };\nexport type ConfirmDialogEventMap = Readonly<{\n onCancel: EventName<_ConfirmDialogEventMap[\"cancel\"]>;\n onConfirm: EventName<_ConfirmDialogEventMap[\"confirm\"]>;\n onReject: EventName<_ConfirmDialogEventMap[\"reject\"]>;\n onOpenedChanged: EventName<_ConfirmDialogEventMap[\"opened-changed\"]>;\n}>;\nconst events = { onCancel: \"cancel\", onConfirm: \"confirm\", onReject: \"reject\", onOpenedChanged: \"opened-changed\" } as ConfirmDialogEventMap;\nexport type ConfirmDialogProps = WebComponentProps<ConfirmDialogElement, ConfirmDialogEventMap>;\nexport const ConfirmDialog = createComponent({\n elementClass: ConfirmDialogElement, events, react: React, tagName: \"vaadin-confirm-dialog\"\n});\n"],
|
|
5
|
-
"mappings": "AAAA,WAAc,kDCCd,OAAS,iBAAiBA,MAAmF,kDAC7G,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,
|
|
4
|
+
"sourcesContent": ["export * from \"@vaadin/confirm-dialog/vaadin-confirm-dialog.js\";\nimport type { HTMLAttributes, ReactElement, RefAttributes } from 'react';\nimport {\n ConfirmDialogElement,\n ConfirmDialog as _ConfirmDialog,\n type ConfirmDialogProps as _ConfirmDialogProps,\n} from './generated/ConfirmDialog.js';\n\nexport * from './generated/ConfirmDialog.js';\n\ntype OmittedConfirmDialogHTMLAttributes = Omit<\n HTMLAttributes<ConfirmDialogElement>,\n 'id' | 'className' | 'dangerouslySetInnerHTML' | 'slot' | 'children' | 'aria-label'\n>;\n\nexport type ConfirmDialogProps = Partial<Omit<_ConfirmDialogProps, keyof OmittedConfirmDialogHTMLAttributes>>;\n\nexport const ConfirmDialog = _ConfirmDialog as (\n props: ConfirmDialogProps & RefAttributes<ConfirmDialogElement>,\n) => ReactElement | null;\n", "import type { EventName } from \"@lit/react\";\nimport { ConfirmDialog as ConfirmDialogElement, type ConfirmDialogEventMap as _ConfirmDialogEventMap, } from \"@vaadin/confirm-dialog/vaadin-confirm-dialog.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { ConfirmDialogElement, };\nexport type ConfirmDialogEventMap = Readonly<{\n onClosed: EventName<_ConfirmDialogEventMap[\"closed\"]>;\n onCancel: EventName<_ConfirmDialogEventMap[\"cancel\"]>;\n onConfirm: EventName<_ConfirmDialogEventMap[\"confirm\"]>;\n onReject: EventName<_ConfirmDialogEventMap[\"reject\"]>;\n onOpenedChanged: EventName<_ConfirmDialogEventMap[\"opened-changed\"]>;\n}>;\nconst events = { onClosed: \"closed\", onCancel: \"cancel\", onConfirm: \"confirm\", onReject: \"reject\", onOpenedChanged: \"opened-changed\" } as ConfirmDialogEventMap;\nexport type ConfirmDialogProps = WebComponentProps<ConfirmDialogElement, ConfirmDialogEventMap>;\nexport const ConfirmDialog = createComponent({\n elementClass: ConfirmDialogElement, events, react: React, tagName: \"vaadin-confirm-dialog\"\n});\n"],
|
|
5
|
+
"mappings": "AAAA,WAAc,kDCCd,OAAS,iBAAiBA,MAAmF,kDAC7G,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BASxD,IAAMC,EAAS,CAAE,SAAU,SAAU,SAAU,SAAU,UAAW,UAAW,SAAU,SAAU,gBAAiB,gBAAiB,EAExHC,EAAgBC,EAAgB,CACzC,aAAcC,EAAsB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,uBACvE,CAAC,EDCM,IAAMC,EAAgBA",
|
|
6
6
|
"names": ["ConfirmDialogElement", "React", "createComponent", "events", "ConfirmDialog", "createComponent", "ConfirmDialogElement", "React", "ConfirmDialog"]
|
|
7
7
|
}
|
package/Dialog.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export type DialogProps = Partial<Omit<_DialogProps, 'children' | 'footerRendere
|
|
|
13
13
|
renderer?: ComponentType<DialogReactRendererProps> | null;
|
|
14
14
|
}>;
|
|
15
15
|
declare const ForwardedDialog: import("react").ForwardRefExoticComponent<Partial<Omit<Partial<import("./utils/createComponent.js").ThemedWebComponentProps<DialogElement, Readonly<{
|
|
16
|
+
onClosed: import("@lit/react").EventName<import("@vaadin/dialog").DialogEventMap["closed"]>;
|
|
16
17
|
onResize: import("@lit/react").EventName<import("@vaadin/dialog").DialogEventMap["resize"]>;
|
|
17
18
|
onOpenedChanged: import("@lit/react").EventName<import("@vaadin/dialog").DialogEventMap["opened-changed"]>;
|
|
18
19
|
}>>>, "accessKey" | "dir" | "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-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" | "headerRenderer" | "footerRenderer">> & Readonly<{
|
package/Dialog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["src/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,cAAc,EAGnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAqB,KAAK,aAAa,EAAE,KAAK,WAAW,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEhH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAEjF,cAAc,uBAAuB,CAAC;AAEtC,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,CAAC,aAAa,CAAC,CAAC;AAE/E,KAAK,2BAA2B,GAAG,IAAI,CACrC,cAAc,CAAC,aAAa,CAAC,EAC7B,IAAI,GAAG,WAAW,GAAG,yBAAyB,GAAG,MAAM,GAAG,YAAY,GAAG,WAAW,CACrF,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,OAAO,CAC/B,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,UAAU,GAAG,MAAM,2BAA2B,CAAC,CACtH,GACC,QAAQ,CAAC;IACP,QAAQ,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC,wBAAwB,CAAC,CAAC;IAC/D,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,cAAc,CAAC,EAAE,aAAa,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC;IAChE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,cAAc,CAAC,EAAE,aAAa,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC;IAChE,QAAQ,CAAC,EAAE,aAAa,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC;CAC3D,CAAC,CAAC;AAmBL,QAAA,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["src/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,cAAc,EAGnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAqB,KAAK,aAAa,EAAE,KAAK,WAAW,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEhH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAEjF,cAAc,uBAAuB,CAAC;AAEtC,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,CAAC,aAAa,CAAC,CAAC;AAE/E,KAAK,2BAA2B,GAAG,IAAI,CACrC,cAAc,CAAC,aAAa,CAAC,EAC7B,IAAI,GAAG,WAAW,GAAG,yBAAyB,GAAG,MAAM,GAAG,YAAY,GAAG,WAAW,CACrF,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,OAAO,CAC/B,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,UAAU,GAAG,MAAM,2BAA2B,CAAC,CACtH,GACC,QAAQ,CAAC;IACP,QAAQ,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC,wBAAwB,CAAC,CAAC;IAC/D,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,cAAc,CAAC,EAAE,aAAa,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC;IAChE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,cAAc,CAAC,EAAE,aAAa,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC;IAChE,QAAQ,CAAC,EAAE,aAAa,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC;CAC3D,CAAC,CAAC;AAmBL,QAAA,MAAM,eAAe;;;;;eAzBN,SAAS,GAAG,aAAa,CAAC,wBAAwB,CAAC;aACrD,SAAS;qBACD,aAAa,CAAC,wBAAwB,CAAC,GAAG,IAAI;aACtD,SAAS;qBACD,aAAa,CAAC,wBAAwB,CAAC,GAAG,IAAI;eACpD,aAAa,CAAC,wBAAwB,CAAC,GAAG,IAAI;kDAoBnB,CAAC;AAE3C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
|
package/Dialog.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export*from"@vaadin/dialog/vaadin-dialog.js";import{forwardRef as f}from"react";import{Dialog as R}from"@vaadin/dialog/vaadin-dialog.js";import*as D from"react";import{createComponent as c}from"./utils/createComponent.js";var y={onResize:"resize",onOpenedChanged:"opened-changed"},
|
|
1
|
+
export*from"@vaadin/dialog/vaadin-dialog.js";import{forwardRef as f}from"react";import{Dialog as R}from"@vaadin/dialog/vaadin-dialog.js";import*as D from"react";import{createComponent as c}from"./utils/createComponent.js";var y={onClosed:"closed",onResize:"resize",onOpenedChanged:"opened-changed"},r=c({elementClass:R,events:y,react:D,tagName:"vaadin-dialog"});import{useSimpleOrChildrenRenderer as o}from"./renderers/useSimpleOrChildrenRenderer.js";import{jsxs as P}from"react/jsx-runtime";function E({children:t,footer:a,header:n,...e},l){let[p,i]=o(e.footerRenderer,a),[d,s]=o(e.headerRenderer,n),[m,g]=o(e.renderer,t);return P(r,{...e,ref:l,footerRenderer:i,headerRenderer:s,renderer:g,children:[d,p,m]})}var T=f(E);export{T as Dialog,R as DialogElement};
|
|
2
2
|
//# sourceMappingURL=Dialog.js.map
|
package/Dialog.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["src/Dialog.tsx", "src/generated/Dialog.ts"],
|
|
4
|
-
"sourcesContent": ["export * from \"@vaadin/dialog/vaadin-dialog.js\";\nimport {\n type ComponentType,\n type ForwardedRef,\n type HTMLAttributes,\n forwardRef,\n type ReactElement,\n type ReactNode,\n} from 'react';\nimport { Dialog as _Dialog, type DialogElement, type DialogProps as _DialogProps } from './generated/Dialog.js';\nimport { useSimpleOrChildrenRenderer } from './renderers/useSimpleOrChildrenRenderer.js';\nimport type { ReactSimpleRendererProps } from './renderers/useSimpleRenderer.js';\n\nexport * from './generated/Dialog.js';\n\nexport type DialogReactRendererProps = ReactSimpleRendererProps<DialogElement>;\n\ntype OmittedDialogHTMLAttributes = Omit<\n HTMLAttributes<DialogElement>,\n 'id' | 'className' | 'dangerouslySetInnerHTML' | 'slot' | 'aria-label' | 'draggable'\n>;\n\nexport type DialogProps = Partial<\n Omit<_DialogProps, 'children' | 'footerRenderer' | 'headerRenderer' | 'renderer' | keyof OmittedDialogHTMLAttributes>\n> &\n Readonly<{\n children?: ReactNode | ComponentType<DialogReactRendererProps>;\n footer?: ReactNode;\n footerRenderer?: ComponentType<DialogReactRendererProps> | null;\n header?: ReactNode;\n headerRenderer?: ComponentType<DialogReactRendererProps> | null;\n renderer?: ComponentType<DialogReactRendererProps> | null;\n }>;\n\nfunction Dialog(\n { children, footer, header, ...props }: DialogProps,\n ref: ForwardedRef<DialogElement>,\n): ReactElement | null {\n const [footerPortals, footerRenderer] = useSimpleOrChildrenRenderer(props.footerRenderer, footer);\n const [headerPortals, headerRenderer] = useSimpleOrChildrenRenderer(props.headerRenderer, header);\n const [portals, renderer] = useSimpleOrChildrenRenderer(props.renderer, children);\n\n return (\n <_Dialog {...props} ref={ref} footerRenderer={footerRenderer} headerRenderer={headerRenderer} renderer={renderer}>\n {headerPortals}\n {footerPortals}\n {portals}\n </_Dialog>\n );\n}\n\nconst ForwardedDialog = forwardRef(Dialog);\n\nexport { ForwardedDialog as Dialog };\n", "import type { EventName } from \"@lit/react\";\nimport { Dialog as DialogElement, type DialogEventMap as _DialogEventMap, } from \"@vaadin/dialog/vaadin-dialog.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { DialogElement, };\nexport type DialogEventMap = Readonly<{\n onResize: EventName<_DialogEventMap[\"resize\"]>;\n onOpenedChanged: EventName<_DialogEventMap[\"opened-changed\"]>;\n}>;\nconst events = { onResize: \"resize\", onOpenedChanged: \"opened-changed\" } as DialogEventMap;\nexport type DialogProps = WebComponentProps<DialogElement, DialogEventMap>;\nexport const Dialog = createComponent({\n elementClass: DialogElement, events, react: React, tagName: \"vaadin-dialog\"\n});\n"],
|
|
5
|
-
"mappings": "AAAA,WAAc,kCACd,OAIE,cAAAA,MAGK,QCPP,OAAS,UAAUC,MAA8D,kCACjF,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,
|
|
4
|
+
"sourcesContent": ["export * from \"@vaadin/dialog/vaadin-dialog.js\";\nimport {\n type ComponentType,\n type ForwardedRef,\n type HTMLAttributes,\n forwardRef,\n type ReactElement,\n type ReactNode,\n} from 'react';\nimport { Dialog as _Dialog, type DialogElement, type DialogProps as _DialogProps } from './generated/Dialog.js';\nimport { useSimpleOrChildrenRenderer } from './renderers/useSimpleOrChildrenRenderer.js';\nimport type { ReactSimpleRendererProps } from './renderers/useSimpleRenderer.js';\n\nexport * from './generated/Dialog.js';\n\nexport type DialogReactRendererProps = ReactSimpleRendererProps<DialogElement>;\n\ntype OmittedDialogHTMLAttributes = Omit<\n HTMLAttributes<DialogElement>,\n 'id' | 'className' | 'dangerouslySetInnerHTML' | 'slot' | 'aria-label' | 'draggable'\n>;\n\nexport type DialogProps = Partial<\n Omit<_DialogProps, 'children' | 'footerRenderer' | 'headerRenderer' | 'renderer' | keyof OmittedDialogHTMLAttributes>\n> &\n Readonly<{\n children?: ReactNode | ComponentType<DialogReactRendererProps>;\n footer?: ReactNode;\n footerRenderer?: ComponentType<DialogReactRendererProps> | null;\n header?: ReactNode;\n headerRenderer?: ComponentType<DialogReactRendererProps> | null;\n renderer?: ComponentType<DialogReactRendererProps> | null;\n }>;\n\nfunction Dialog(\n { children, footer, header, ...props }: DialogProps,\n ref: ForwardedRef<DialogElement>,\n): ReactElement | null {\n const [footerPortals, footerRenderer] = useSimpleOrChildrenRenderer(props.footerRenderer, footer);\n const [headerPortals, headerRenderer] = useSimpleOrChildrenRenderer(props.headerRenderer, header);\n const [portals, renderer] = useSimpleOrChildrenRenderer(props.renderer, children);\n\n return (\n <_Dialog {...props} ref={ref} footerRenderer={footerRenderer} headerRenderer={headerRenderer} renderer={renderer}>\n {headerPortals}\n {footerPortals}\n {portals}\n </_Dialog>\n );\n}\n\nconst ForwardedDialog = forwardRef(Dialog);\n\nexport { ForwardedDialog as Dialog };\n", "import type { EventName } from \"@lit/react\";\nimport { Dialog as DialogElement, type DialogEventMap as _DialogEventMap, } from \"@vaadin/dialog/vaadin-dialog.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { DialogElement, };\nexport type DialogEventMap = Readonly<{\n onClosed: EventName<_DialogEventMap[\"closed\"]>;\n onResize: EventName<_DialogEventMap[\"resize\"]>;\n onOpenedChanged: EventName<_DialogEventMap[\"opened-changed\"]>;\n}>;\nconst events = { onClosed: \"closed\", onResize: \"resize\", onOpenedChanged: \"opened-changed\" } as DialogEventMap;\nexport type DialogProps = WebComponentProps<DialogElement, DialogEventMap>;\nexport const Dialog = createComponent({\n elementClass: DialogElement, events, react: React, tagName: \"vaadin-dialog\"\n});\n"],
|
|
5
|
+
"mappings": "AAAA,WAAc,kCACd,OAIE,cAAAA,MAGK,QCPP,OAAS,UAAUC,MAA8D,kCACjF,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAOxD,IAAMC,EAAS,CAAE,SAAU,SAAU,SAAU,SAAU,gBAAiB,gBAAiB,EAE9EC,EAASC,EAAgB,CAClC,aAAcC,EAAe,OAAAH,EAAQ,MAAOI,EAAO,QAAS,eAChE,CAAC,EDJD,OAAS,+BAAAC,MAAmC,6CAiCxC,eAAAC,MAAA,oBATJ,SAASC,EACP,CAAE,SAAAC,EAAU,OAAAC,EAAQ,OAAAC,EAAQ,GAAGC,CAAM,EACrCC,EACqB,CACrB,GAAM,CAACC,EAAeC,CAAc,EAAIT,EAA4BM,EAAM,eAAgBF,CAAM,EAC1F,CAACM,EAAeC,CAAc,EAAIX,EAA4BM,EAAM,eAAgBD,CAAM,EAC1F,CAACO,EAASC,CAAQ,EAAIb,EAA4BM,EAAM,SAAUH,CAAQ,EAEhF,OACEF,EAACC,EAAA,CAAS,GAAGI,EAAO,IAAKC,EAAK,eAAgBE,EAAgB,eAAgBE,EAAgB,SAAUE,EACrG,UAAAH,EACAF,EACAI,GACH,CAEJ,CAEA,IAAME,EAAkBC,EAAWb,CAAM",
|
|
6
6
|
"names": ["forwardRef", "DialogElement", "React", "createComponent", "events", "Dialog", "createComponent", "DialogElement", "React", "useSimpleOrChildrenRenderer", "jsxs", "Dialog", "children", "footer", "header", "props", "ref", "footerPortals", "footerRenderer", "headerPortals", "headerRenderer", "portals", "renderer", "ForwardedDialog", "forwardRef"]
|
|
7
7
|
}
|
package/Notification.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export*from"@vaadin/notification/vaadin-notification.js";import{forwardRef as s}from"react";import{Notification as t}from"@vaadin/notification/vaadin-notification.js";import*as p from"react";import{createComponent as c}from"./utils/createComponent.js";var f={onOpenedChanged:"opened-changed"},o=c({elementClass:t,events:f,react:p,tagName:"vaadin-notification"});import{useSimpleOrChildrenRenderer as m}from"./renderers/useSimpleOrChildrenRenderer.js";import{jsx as l}from"react/jsx-runtime";function d({children:i,...e},n){let[r,a]=m(e.renderer,i);return l(o,{...e,ref:n,renderer:a,children:r})}var N=s(d);N.show=t.show;export{N as Notification,t as NotificationElement};
|
|
1
|
+
export*from"@vaadin/notification/vaadin-notification.js";import{forwardRef as s}from"react";import{Notification as t}from"@vaadin/notification/vaadin-notification.js";import*as p from"react";import{createComponent as c}from"./utils/createComponent.js";var f={onClosed:"closed",onOpenedChanged:"opened-changed"},o=c({elementClass:t,events:f,react:p,tagName:"vaadin-notification"});import{useSimpleOrChildrenRenderer as m}from"./renderers/useSimpleOrChildrenRenderer.js";import{jsx as l}from"react/jsx-runtime";function d({children:i,...e},n){let[r,a]=m(e.renderer,i);return l(o,{...e,ref:n,renderer:a,children:r})}var N=s(d);N.show=t.show;export{N as Notification,t as NotificationElement};
|
|
2
2
|
//# sourceMappingURL=Notification.js.map
|
package/Notification.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["src/Notification.tsx", "src/generated/Notification.ts"],
|
|
4
|
-
"sourcesContent": ["export * from \"@vaadin/notification/vaadin-notification.js\";\nimport {\n type ComponentType,\n type ForwardedRef,\n forwardRef,\n type ForwardRefExoticComponent,\n type HTMLAttributes,\n type ReactElement,\n type ReactNode,\n type RefAttributes,\n} from 'react';\nimport {\n Notification as _Notification,\n NotificationElement,\n type NotificationProps as _NotificationProps,\n type ShowOptions,\n} from './generated/Notification.js';\nimport { useSimpleOrChildrenRenderer } from './renderers/useSimpleOrChildrenRenderer.js';\nimport type { ReactSimpleRendererProps } from './renderers/useSimpleRenderer.js';\n\nexport * from './generated/Notification.js';\n\nexport type NotificationReactRendererProps = ReactSimpleRendererProps<NotificationElement>;\n\ntype OmittedNotificationHTMLAttributes = Omit<\n HTMLAttributes<NotificationElement>,\n 'id' | 'className' | 'dangerouslySetInnerHTML' | 'slot'\n>;\n\nexport type NotificationProps = Partial<\n Omit<_NotificationProps, 'children' | 'renderer' | keyof OmittedNotificationHTMLAttributes>\n> &\n Readonly<{\n children?: ReactNode | ComponentType<NotificationReactRendererProps>;\n renderer?: ComponentType<NotificationReactRendererProps>;\n }>;\n\nfunction Notification(\n { children, ...props }: NotificationProps,\n ref: ForwardedRef<NotificationElement>,\n): ReactElement | null {\n const [portals, renderer] = useSimpleOrChildrenRenderer(props.renderer, children);\n\n return (\n <_Notification {...props} ref={ref} renderer={renderer}>\n {portals}\n </_Notification>\n );\n}\n\nexport type NotificationFunction = ForwardRefExoticComponent<NotificationProps & RefAttributes<NotificationElement>> & {\n show(contents: string, options?: ShowOptions): NotificationElement;\n};\n\nconst ForwardedNotification = forwardRef(Notification) as NotificationFunction;\nForwardedNotification.show = NotificationElement.show;\n\nexport { ForwardedNotification as Notification };\n", "import type { EventName } from \"@lit/react\";\nimport { Notification as NotificationElement, type NotificationEventMap as _NotificationEventMap, } from \"@vaadin/notification/vaadin-notification.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { NotificationElement, };\nexport type NotificationEventMap = Readonly<{\n onOpenedChanged: EventName<_NotificationEventMap[\"opened-changed\"]>;\n}>;\nconst events = { onOpenedChanged: \"opened-changed\" } as NotificationEventMap;\nexport type NotificationProps = WebComponentProps<NotificationElement, NotificationEventMap>;\nexport const Notification = createComponent({\n elementClass: NotificationElement, events, react: React, tagName: \"vaadin-notification\"\n});\n"],
|
|
5
|
-
"mappings": "AAAA,WAAc,8CACd,OAGE,cAAAA,MAMK,QCTP,OAAS,gBAAgBC,MAAgF,8CACzG,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,
|
|
4
|
+
"sourcesContent": ["export * from \"@vaadin/notification/vaadin-notification.js\";\nimport {\n type ComponentType,\n type ForwardedRef,\n forwardRef,\n type ForwardRefExoticComponent,\n type HTMLAttributes,\n type ReactElement,\n type ReactNode,\n type RefAttributes,\n} from 'react';\nimport {\n Notification as _Notification,\n NotificationElement,\n type NotificationProps as _NotificationProps,\n type ShowOptions,\n} from './generated/Notification.js';\nimport { useSimpleOrChildrenRenderer } from './renderers/useSimpleOrChildrenRenderer.js';\nimport type { ReactSimpleRendererProps } from './renderers/useSimpleRenderer.js';\n\nexport * from './generated/Notification.js';\n\nexport type NotificationReactRendererProps = ReactSimpleRendererProps<NotificationElement>;\n\ntype OmittedNotificationHTMLAttributes = Omit<\n HTMLAttributes<NotificationElement>,\n 'id' | 'className' | 'dangerouslySetInnerHTML' | 'slot'\n>;\n\nexport type NotificationProps = Partial<\n Omit<_NotificationProps, 'children' | 'renderer' | keyof OmittedNotificationHTMLAttributes>\n> &\n Readonly<{\n children?: ReactNode | ComponentType<NotificationReactRendererProps>;\n renderer?: ComponentType<NotificationReactRendererProps>;\n }>;\n\nfunction Notification(\n { children, ...props }: NotificationProps,\n ref: ForwardedRef<NotificationElement>,\n): ReactElement | null {\n const [portals, renderer] = useSimpleOrChildrenRenderer(props.renderer, children);\n\n return (\n <_Notification {...props} ref={ref} renderer={renderer}>\n {portals}\n </_Notification>\n );\n}\n\nexport type NotificationFunction = ForwardRefExoticComponent<NotificationProps & RefAttributes<NotificationElement>> & {\n show(contents: string, options?: ShowOptions): NotificationElement;\n};\n\nconst ForwardedNotification = forwardRef(Notification) as NotificationFunction;\nForwardedNotification.show = NotificationElement.show;\n\nexport { ForwardedNotification as Notification };\n", "import type { EventName } from \"@lit/react\";\nimport { Notification as NotificationElement, type NotificationEventMap as _NotificationEventMap, } from \"@vaadin/notification/vaadin-notification.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { NotificationElement, };\nexport type NotificationEventMap = Readonly<{\n onClosed: EventName<_NotificationEventMap[\"closed\"]>;\n onOpenedChanged: EventName<_NotificationEventMap[\"opened-changed\"]>;\n}>;\nconst events = { onClosed: \"closed\", onOpenedChanged: \"opened-changed\" } as NotificationEventMap;\nexport type NotificationProps = WebComponentProps<NotificationElement, NotificationEventMap>;\nexport const Notification = createComponent({\n elementClass: NotificationElement, events, react: React, tagName: \"vaadin-notification\"\n});\n"],
|
|
5
|
+
"mappings": "AAAA,WAAc,8CACd,OAGE,cAAAA,MAMK,QCTP,OAAS,gBAAgBC,MAAgF,8CACzG,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAMxD,IAAMC,EAAS,CAAE,SAAU,SAAU,gBAAiB,gBAAiB,EAE1DC,EAAeC,EAAgB,CACxC,aAAcC,EAAqB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,qBACtE,CAAC,EDID,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,CAAe,GAAGE,EAAO,IAAKC,EAAK,SAAUE,EAC3C,SAAAD,EACH,CAEJ,CAMA,IAAME,EAAwBC,EAAWP,CAAY,EACrDM,EAAsB,KAAOE,EAAoB",
|
|
6
6
|
"names": ["forwardRef", "NotificationElement", "React", "createComponent", "events", "Notification", "createComponent", "NotificationElement", "React", "useSimpleOrChildrenRenderer", "jsx", "Notification", "children", "props", "ref", "portals", "renderer", "ForwardedNotification", "forwardRef", "NotificationElement"]
|
|
7
7
|
}
|
package/Popover.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
onClosed: import("@lit/react").EventName<import("@vaadin/popover").PopoverEventMap["closed"]>;
|
|
13
|
+
onOpenedChanged: import("@lit/react").EventName<import("@vaadin/popover").PopoverEventMap["opened-changed"]>;
|
|
14
|
+
}>>>, "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<{
|
|
15
|
+
children?: ReactNode | ComponentType<PopoverReactRendererProps>;
|
|
16
|
+
renderer?: ComponentType<PopoverReactRendererProps> | null;
|
|
17
|
+
}> & import("react").RefAttributes<PopoverElement>>;
|
|
18
|
+
export { ForwardedPopover as Popover };
|
|
19
|
+
//# sourceMappingURL=Popover.d.ts.map
|
package/Popover.d.ts.map
ADDED
|
@@ -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,CAAC,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,4BAA4B,CAAC,CAAC,GACnH,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;AAYL,QAAA,MAAM,gBAAgB;;;;eAdP,SAAS,GAAG,aAAa,CAAC,yBAAyB,CAAC;eACpD,aAAa,CAAC,yBAAyB,CAAC,GAAG,IAAI;mDAalB,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={onClosed:"closed",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 M=d(l);export{M 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<Omit<_PopoverProps, 'children' | 'renderer' | keyof OmittedPopoverHTMLAttributes>> &\n Readonly<{\n children?: ReactNode | ComponentType<PopoverReactRendererProps>;\n renderer?: ComponentType<PopoverReactRendererProps> | null;\n }>;\n\nfunction Popover({ children, ...props }: PopoverProps, ref: ForwardedRef<PopoverElement>): 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 onClosed: EventName<_PopoverEventMap[\"closed\"]>;\n onOpenedChanged: EventName<_PopoverEventMap[\"opened-changed\"]>;\n}>;\nconst events = { onClosed: \"closed\", 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,6BAMxD,IAAMC,EAAS,CAAE,SAAU,SAAU,gBAAiB,gBAAiB,EAE1DC,EAAUC,EAAgB,CACnC,aAAcC,EAAgB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,gBACjE,CAAC,EDHD,OAAS,+BAAAC,MAAmC,6CAsBxC,cAAAC,MAAA,oBAJJ,SAASC,EAAQ,CAAE,SAAAC,EAAU,GAAGC,CAAM,EAAiBC,EAAwD,CAC7G,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
|
+
}
|
package/css/lumo/Globals.css
CHANGED
|
@@ -33,6 +33,8 @@
|
|
|
33
33
|
--vaadin-checkbox-label-font-size: var(--lumo-font-size-m);
|
|
34
34
|
--vaadin-checkbox-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs) var(--lumo-space-xs);
|
|
35
35
|
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
36
|
+
--vaadin-checkbox-disabled-checkmark-color: var(--lumo-contrast-30pct);
|
|
37
|
+
--vaadin-checkbox-disabled-background: var(--lumo-contrast-10pct);
|
|
36
38
|
/* Radio button */
|
|
37
39
|
--vaadin-radio-button-background: var(--lumo-contrast-20pct);
|
|
38
40
|
--vaadin-radio-button-background-hover: var(--lumo-contrast-30pct);
|
|
@@ -43,6 +45,8 @@
|
|
|
43
45
|
--vaadin-radio-button-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs)
|
|
44
46
|
var(--lumo-space-xs);
|
|
45
47
|
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
48
|
+
--vaadin-radio-button-disabled-background: var(--lumo-contrast-10pct);
|
|
49
|
+
--vaadin-radio-button-disabled-dot-color: var(--lumo-contrast-30pct);
|
|
46
50
|
--vaadin-selection-color: var(--lumo-primary-color);
|
|
47
51
|
--vaadin-selection-color-text: var(--lumo-primary-text-color);
|
|
48
52
|
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
@@ -69,6 +73,8 @@
|
|
|
69
73
|
--vaadin-input-field-icon-size: var(--lumo-icon-size-m);
|
|
70
74
|
--vaadin-input-field-invalid-background: var(--lumo-error-color-10pct);
|
|
71
75
|
--vaadin-input-field-invalid-hover-highlight: var(--lumo-error-color-50pct);
|
|
76
|
+
--vaadin-input-field-disabled-background: var(--lumo-contrast-5pct);
|
|
77
|
+
--vaadin-input-field-disabled-value-color: var(--lumo-disabled-text-color);
|
|
72
78
|
--vaadin-input-field-height: var(--lumo-size-m);
|
|
73
79
|
--vaadin-input-field-hover-highlight: var(--lumo-contrast-50pct);
|
|
74
80
|
--vaadin-input-field-placeholder-color: var(--lumo-secondary-text-color);
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
background-color: var(--lumo-base-color);
|
|
16
16
|
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
17
17
|
border-radius: var(--lumo-border-radius-m);
|
|
18
|
-
box-shadow:
|
|
18
|
+
box-shadow:
|
|
19
|
+
0 0 0 1px var(--lumo-shade-5pct),
|
|
20
|
+
var(--lumo-box-shadow-m);
|
|
19
21
|
color: var(--lumo-body-text-color);
|
|
20
22
|
font-family: var(--lumo-font-family);
|
|
21
23
|
font-size: var(--lumo-font-size-m);
|
|
@@ -8,11 +8,26 @@
|
|
|
8
8
|
transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
9
9
|
}
|
|
10
10
|
.transition {
|
|
11
|
-
transition:
|
|
12
|
-
|
|
11
|
+
transition:
|
|
12
|
+
color,
|
|
13
|
+
background-color,
|
|
14
|
+
border-color,
|
|
15
|
+
text-decoration-color,
|
|
16
|
+
fill,
|
|
17
|
+
stroke,
|
|
18
|
+
opacity,
|
|
19
|
+
box-shadow,
|
|
20
|
+
transform,
|
|
21
|
+
filter,
|
|
22
|
+
backdrop-filter 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
13
23
|
}
|
|
14
24
|
.transition-colors {
|
|
15
|
-
transition:
|
|
25
|
+
transition:
|
|
26
|
+
color,
|
|
27
|
+
background-color,
|
|
28
|
+
border-color,
|
|
29
|
+
text-decoration-color,
|
|
30
|
+
fill,
|
|
16
31
|
stroke 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
17
32
|
}
|
|
18
33
|
.transition-opacity {
|
|
@@ -5,6 +5,7 @@ import { type WebComponentProps } from "../utils/createComponent.js";
|
|
|
5
5
|
export * from "@vaadin/confirm-dialog/vaadin-confirm-dialog.js";
|
|
6
6
|
export { ConfirmDialogElement, };
|
|
7
7
|
export type ConfirmDialogEventMap = Readonly<{
|
|
8
|
+
onClosed: EventName<_ConfirmDialogEventMap["closed"]>;
|
|
8
9
|
onCancel: EventName<_ConfirmDialogEventMap["cancel"]>;
|
|
9
10
|
onConfirm: EventName<_ConfirmDialogEventMap["confirm"]>;
|
|
10
11
|
onReject: EventName<_ConfirmDialogEventMap["reject"]>;
|
|
@@ -12,6 +13,7 @@ export type ConfirmDialogEventMap = Readonly<{
|
|
|
12
13
|
}>;
|
|
13
14
|
export type ConfirmDialogProps = WebComponentProps<ConfirmDialogElement, ConfirmDialogEventMap>;
|
|
14
15
|
export declare const ConfirmDialog: (props: Partial<import("../utils/createComponent.js").ThemedWebComponentProps<ConfirmDialogElement, Readonly<{
|
|
16
|
+
onClosed: EventName<_ConfirmDialogEventMap["closed"]>;
|
|
15
17
|
onCancel: EventName<_ConfirmDialogEventMap["cancel"]>;
|
|
16
18
|
onConfirm: EventName<_ConfirmDialogEventMap["confirm"]>;
|
|
17
19
|
onReject: EventName<_ConfirmDialogEventMap["reject"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../src/generated/ConfirmDialog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,KAAK,qBAAqB,IAAI,sBAAsB,EAAG,MAAM,iDAAiD,CAAC;AAC/J,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,iDAAiD,CAAC;AAChE,OAAO,EAAE,oBAAoB,GAAG,CAAC;AACjC,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IACzC,QAAQ,EAAE,SAAS,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACtD,SAAS,EAAE,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC,CAAC;IACxD,QAAQ,EAAE,SAAS,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACtD,eAAe,EAAE,SAAS,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAAC;CACxE,CAAC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,oBAAoB,EAAE,qBAAqB,CAAC,CAAC;AAChG,eAAO,MAAM,aAAa;
|
|
1
|
+
{"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../src/generated/ConfirmDialog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,KAAK,qBAAqB,IAAI,sBAAsB,EAAG,MAAM,iDAAiD,CAAC;AAC/J,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,iDAAiD,CAAC;AAChE,OAAO,EAAE,oBAAoB,GAAG,CAAC;AACjC,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IACzC,QAAQ,EAAE,SAAS,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACtD,QAAQ,EAAE,SAAS,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACtD,SAAS,EAAE,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC,CAAC;IACxD,QAAQ,EAAE,SAAS,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACtD,eAAe,EAAE,SAAS,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAAC;CACxE,CAAC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,oBAAoB,EAAE,qBAAqB,CAAC,CAAC;AAChG,eAAO,MAAM,aAAa;cARZ,SAAS,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC;cAC3C,SAAS,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC;eAC1C,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC;cAC7C,SAAS,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC;qBACpC,SAAS,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;8EAMtE,CAAC"}
|
package/generated/Dialog.d.ts
CHANGED
|
@@ -5,11 +5,13 @@ import { type WebComponentProps } from "../utils/createComponent.js";
|
|
|
5
5
|
export * from "@vaadin/dialog/vaadin-dialog.js";
|
|
6
6
|
export { DialogElement, };
|
|
7
7
|
export type DialogEventMap = Readonly<{
|
|
8
|
+
onClosed: EventName<_DialogEventMap["closed"]>;
|
|
8
9
|
onResize: EventName<_DialogEventMap["resize"]>;
|
|
9
10
|
onOpenedChanged: EventName<_DialogEventMap["opened-changed"]>;
|
|
10
11
|
}>;
|
|
11
12
|
export type DialogProps = WebComponentProps<DialogElement, DialogEventMap>;
|
|
12
13
|
export declare const Dialog: (props: Partial<import("../utils/createComponent.js").ThemedWebComponentProps<DialogElement, Readonly<{
|
|
14
|
+
onClosed: EventName<_DialogEventMap["closed"]>;
|
|
13
15
|
onResize: EventName<_DialogEventMap["resize"]>;
|
|
14
16
|
onOpenedChanged: EventName<_DialogEventMap["opened-changed"]>;
|
|
15
17
|
}>>> & React.RefAttributes<DialogElement>) => React.ReactElement | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../src/generated/Dialog.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,eAAe,EAAE,SAAS,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC,CAAC;CACjE,CAAC,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;AAC3E,eAAO,MAAM,MAAM;
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../src/generated/Dialog.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,QAAQ,EAAE,SAAS,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/C,eAAe,EAAE,SAAS,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC,CAAC;CACjE,CAAC,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;AAC3E,eAAO,MAAM,MAAM;cANL,SAAS,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;cACpC,SAAS,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;qBAC7B,SAAS,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC;uEAM/D,CAAC"}
|
|
@@ -5,10 +5,12 @@ import { type WebComponentProps } from "../utils/createComponent.js";
|
|
|
5
5
|
export * from "@vaadin/notification/vaadin-notification.js";
|
|
6
6
|
export { NotificationElement, };
|
|
7
7
|
export type NotificationEventMap = Readonly<{
|
|
8
|
+
onClosed: EventName<_NotificationEventMap["closed"]>;
|
|
8
9
|
onOpenedChanged: EventName<_NotificationEventMap["opened-changed"]>;
|
|
9
10
|
}>;
|
|
10
11
|
export type NotificationProps = WebComponentProps<NotificationElement, NotificationEventMap>;
|
|
11
12
|
export declare const Notification: (props: Partial<import("../utils/createComponent.js").ThemedWebComponentProps<NotificationElement, Readonly<{
|
|
13
|
+
onClosed: EventName<_NotificationEventMap["closed"]>;
|
|
12
14
|
onOpenedChanged: EventName<_NotificationEventMap["opened-changed"]>;
|
|
13
15
|
}>>> & React.RefAttributes<NotificationElement>) => React.ReactElement | null;
|
|
14
16
|
//# sourceMappingURL=Notification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../src/generated/Notification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,KAAK,oBAAoB,IAAI,qBAAqB,EAAG,MAAM,6CAA6C,CAAC;AACvJ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,mBAAmB,GAAG,CAAC;AAChC,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC;IACxC,eAAe,EAAE,SAAS,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC,CAAC;CACvE,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAAC;AAC7F,eAAO,MAAM,YAAY;
|
|
1
|
+
{"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../src/generated/Notification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,KAAK,oBAAoB,IAAI,qBAAqB,EAAG,MAAM,6CAA6C,CAAC;AACvJ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,mBAAmB,GAAG,CAAC;AAChC,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC;IACxC,QAAQ,EAAE,SAAS,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACrD,eAAe,EAAE,SAAS,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC,CAAC;CACvE,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAAC;AAC7F,eAAO,MAAM,YAAY;cALX,SAAS,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC;qBACnC,SAAS,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;6EAMrE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
onClosed: EventName<_PopoverEventMap["closed"]>;
|
|
9
|
+
onOpenedChanged: EventName<_PopoverEventMap["opened-changed"]>;
|
|
10
|
+
}>;
|
|
11
|
+
export type PopoverProps = WebComponentProps<PopoverElement, PopoverEventMap>;
|
|
12
|
+
export declare const Popover: (props: Partial<import("../utils/createComponent.js").ThemedWebComponentProps<PopoverElement, Readonly<{
|
|
13
|
+
onClosed: EventName<_PopoverEventMap["closed"]>;
|
|
14
|
+
onOpenedChanged: EventName<_PopoverEventMap["opened-changed"]>;
|
|
15
|
+
}>>> & React.RefAttributes<PopoverElement>) => React.ReactElement | null;
|
|
16
|
+
//# 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,QAAQ,EAAE,SAAS,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChD,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;cALN,SAAS,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;qBAC9B,SAAS,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;wEAMhE,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.
|
|
3
|
+
"version": "24.5.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,64 +26,65 @@
|
|
|
26
26
|
"version": "tsx ../../scripts/package-json-version.ts"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@lit/react": "^1.0.
|
|
30
|
-
"@vaadin/a11y-base": "24.
|
|
31
|
-
"@vaadin/accordion": "24.
|
|
32
|
-
"@vaadin/app-layout": "24.
|
|
33
|
-
"@vaadin/avatar": "24.
|
|
34
|
-
"@vaadin/avatar-group": "24.
|
|
35
|
-
"@vaadin/button": "24.
|
|
36
|
-
"@vaadin/checkbox": "24.
|
|
37
|
-
"@vaadin/checkbox-group": "24.
|
|
38
|
-
"@vaadin/combo-box": "24.
|
|
39
|
-
"@vaadin/component-base": "24.
|
|
40
|
-
"@vaadin/confirm-dialog": "24.
|
|
41
|
-
"@vaadin/context-menu": "24.
|
|
42
|
-
"@vaadin/custom-field": "24.
|
|
43
|
-
"@vaadin/date-picker": "24.
|
|
44
|
-
"@vaadin/date-time-picker": "24.
|
|
45
|
-
"@vaadin/details": "24.
|
|
46
|
-
"@vaadin/dialog": "24.
|
|
47
|
-
"@vaadin/email-field": "24.
|
|
48
|
-
"@vaadin/field-base": "24.
|
|
49
|
-
"@vaadin/field-highlighter": "24.
|
|
50
|
-
"@vaadin/form-layout": "24.
|
|
51
|
-
"@vaadin/grid": "24.
|
|
52
|
-
"@vaadin/horizontal-layout": "24.
|
|
53
|
-
"@vaadin/icon": "24.
|
|
54
|
-
"@vaadin/icons": "24.
|
|
55
|
-
"@vaadin/input-container": "24.
|
|
56
|
-
"@vaadin/integer-field": "24.
|
|
57
|
-
"@vaadin/item": "24.
|
|
58
|
-
"@vaadin/list-box": "24.
|
|
59
|
-
"@vaadin/lit-renderer": "24.
|
|
60
|
-
"@vaadin/login": "24.
|
|
61
|
-
"@vaadin/menu-bar": "24.
|
|
62
|
-
"@vaadin/message-input": "24.
|
|
63
|
-
"@vaadin/message-list": "24.
|
|
64
|
-
"@vaadin/multi-select-combo-box": "24.
|
|
65
|
-
"@vaadin/notification": "24.
|
|
66
|
-
"@vaadin/number-field": "24.
|
|
67
|
-
"@vaadin/overlay": "24.
|
|
68
|
-
"@vaadin/password-field": "24.
|
|
69
|
-
"@vaadin/
|
|
70
|
-
"@vaadin/
|
|
71
|
-
"@vaadin/
|
|
72
|
-
"@vaadin/
|
|
73
|
-
"@vaadin/
|
|
74
|
-
"@vaadin/
|
|
75
|
-
"@vaadin/
|
|
76
|
-
"@vaadin/
|
|
77
|
-
"@vaadin/
|
|
78
|
-
"@vaadin/text-
|
|
79
|
-
"@vaadin/
|
|
80
|
-
"@vaadin/
|
|
81
|
-
"@vaadin/
|
|
82
|
-
"@vaadin/
|
|
83
|
-
"@vaadin/vaadin-
|
|
84
|
-
"@vaadin/vaadin-
|
|
85
|
-
"@vaadin/
|
|
86
|
-
"@vaadin/
|
|
29
|
+
"@lit/react": "^1.0.5",
|
|
30
|
+
"@vaadin/a11y-base": "24.5.0-alpha10",
|
|
31
|
+
"@vaadin/accordion": "24.5.0-alpha10",
|
|
32
|
+
"@vaadin/app-layout": "24.5.0-alpha10",
|
|
33
|
+
"@vaadin/avatar": "24.5.0-alpha10",
|
|
34
|
+
"@vaadin/avatar-group": "24.5.0-alpha10",
|
|
35
|
+
"@vaadin/button": "24.5.0-alpha10",
|
|
36
|
+
"@vaadin/checkbox": "24.5.0-alpha10",
|
|
37
|
+
"@vaadin/checkbox-group": "24.5.0-alpha10",
|
|
38
|
+
"@vaadin/combo-box": "24.5.0-alpha10",
|
|
39
|
+
"@vaadin/component-base": "24.5.0-alpha10",
|
|
40
|
+
"@vaadin/confirm-dialog": "24.5.0-alpha10",
|
|
41
|
+
"@vaadin/context-menu": "24.5.0-alpha10",
|
|
42
|
+
"@vaadin/custom-field": "24.5.0-alpha10",
|
|
43
|
+
"@vaadin/date-picker": "24.5.0-alpha10",
|
|
44
|
+
"@vaadin/date-time-picker": "24.5.0-alpha10",
|
|
45
|
+
"@vaadin/details": "24.5.0-alpha10",
|
|
46
|
+
"@vaadin/dialog": "24.5.0-alpha10",
|
|
47
|
+
"@vaadin/email-field": "24.5.0-alpha10",
|
|
48
|
+
"@vaadin/field-base": "24.5.0-alpha10",
|
|
49
|
+
"@vaadin/field-highlighter": "24.5.0-alpha10",
|
|
50
|
+
"@vaadin/form-layout": "24.5.0-alpha10",
|
|
51
|
+
"@vaadin/grid": "24.5.0-alpha10",
|
|
52
|
+
"@vaadin/horizontal-layout": "24.5.0-alpha10",
|
|
53
|
+
"@vaadin/icon": "24.5.0-alpha10",
|
|
54
|
+
"@vaadin/icons": "24.5.0-alpha10",
|
|
55
|
+
"@vaadin/input-container": "24.5.0-alpha10",
|
|
56
|
+
"@vaadin/integer-field": "24.5.0-alpha10",
|
|
57
|
+
"@vaadin/item": "24.5.0-alpha10",
|
|
58
|
+
"@vaadin/list-box": "24.5.0-alpha10",
|
|
59
|
+
"@vaadin/lit-renderer": "24.5.0-alpha10",
|
|
60
|
+
"@vaadin/login": "24.5.0-alpha10",
|
|
61
|
+
"@vaadin/menu-bar": "24.5.0-alpha10",
|
|
62
|
+
"@vaadin/message-input": "24.5.0-alpha10",
|
|
63
|
+
"@vaadin/message-list": "24.5.0-alpha10",
|
|
64
|
+
"@vaadin/multi-select-combo-box": "24.5.0-alpha10",
|
|
65
|
+
"@vaadin/notification": "24.5.0-alpha10",
|
|
66
|
+
"@vaadin/number-field": "24.5.0-alpha10",
|
|
67
|
+
"@vaadin/overlay": "24.5.0-alpha10",
|
|
68
|
+
"@vaadin/password-field": "24.5.0-alpha10",
|
|
69
|
+
"@vaadin/popover": "24.5.0-alpha10",
|
|
70
|
+
"@vaadin/progress-bar": "24.5.0-alpha10",
|
|
71
|
+
"@vaadin/radio-group": "24.5.0-alpha10",
|
|
72
|
+
"@vaadin/scroller": "24.5.0-alpha10",
|
|
73
|
+
"@vaadin/select": "24.5.0-alpha10",
|
|
74
|
+
"@vaadin/side-nav": "24.5.0-alpha10",
|
|
75
|
+
"@vaadin/split-layout": "24.5.0-alpha10",
|
|
76
|
+
"@vaadin/tabs": "24.5.0-alpha10",
|
|
77
|
+
"@vaadin/tabsheet": "24.5.0-alpha10",
|
|
78
|
+
"@vaadin/text-area": "24.5.0-alpha10",
|
|
79
|
+
"@vaadin/text-field": "24.5.0-alpha10",
|
|
80
|
+
"@vaadin/time-picker": "24.5.0-alpha10",
|
|
81
|
+
"@vaadin/tooltip": "24.5.0-alpha10",
|
|
82
|
+
"@vaadin/upload": "24.5.0-alpha10",
|
|
83
|
+
"@vaadin/vaadin-lumo-styles": "24.5.0-alpha10",
|
|
84
|
+
"@vaadin/vaadin-material-styles": "24.5.0-alpha10",
|
|
85
|
+
"@vaadin/vaadin-themable-mixin": "24.5.0-alpha10",
|
|
86
|
+
"@vaadin/vertical-layout": "24.5.0-alpha10",
|
|
87
|
+
"@vaadin/virtual-list": "24.5.0-alpha10"
|
|
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",
|
package/utils/createComponent.js
CHANGED
|
@@ -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.
|
|
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-alpha10"});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.
|
|
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,
|
|
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-alpha10',\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,gBACnC,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
|
}
|