@loadsmart/miranda-react
Advanced tools
Comparing version 1.18.4 to 1.19.0
@@ -16,3 +16,3 @@ import * as React from 'react'; | ||
} | ||
declare const RadioGroup: React.ForwardRefExoticComponent<Partial<Omit<React.HTMLAttributes<WCRadioGroup>, "onChange"> & Omit<WCRadioGroup, "children" | "style" | "className" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & { | ||
declare const RadioGroup: React.ForwardRefExoticComponent<Partial<Omit<React.HTMLAttributes<WCRadioGroup>, "onChange"> & Omit<WCRadioGroup, "children" | "style" | "className" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & { | ||
onChange: (e: CustomEvent<RadioGroupChangeEventDetail>) => void; | ||
@@ -19,0 +19,0 @@ } & { |
@@ -5,2 +5,3 @@ export * from './components/Banner'; | ||
export * from './components/Checkbox'; | ||
export * from './components/Dialog'; | ||
export * from './components/Field'; | ||
@@ -7,0 +8,0 @@ export * from './components/Layout'; |
@@ -1,2 +0,2 @@ | ||
"use strict";var e=require("react/jsx-runtime"),n=require("react"),r=require("@loadsmart/miranda-wc");function t(e){var n=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return e[r]}})}})),n.default=e,Object.freeze(n)}var i=t(n);function s(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(r[t[i]]=e[t[i]])}return r} | ||
"use strict";var n=require("react/jsx-runtime"),e=require("react"),i=require("@loadsmart/miranda-wc");function t(n){var e=Object.create(null);return n&&Object.keys(n).forEach((function(i){if("default"!==i){var t=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(e,i,t.get?t:{enumerable:!0,get:function(){return n[i]}})}})),e.default=n,Object.freeze(e)}var r=t(e);function s(n,e){var i={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(i[t]=n[t]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(t=Object.getOwnPropertySymbols(n);r<t.length;r++)e.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(n,t[r])&&(i[t[r]]=n[t[r]])}return i} | ||
/** | ||
@@ -6,3 +6,3 @@ * @license | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/const a=new Set(["children","localName","ref","style","className"]),l=new WeakMap,o=(e,n,r,t,i)=>{const s=null==i?void 0:i[n];void 0!==s?r!==t&&((e,n,r)=>{let t=l.get(e);void 0===t&&l.set(e,t=new Map);let i=t.get(n);void 0!==r?void 0===i?(t.set(n,i={handleEvent:r}),e.addEventListener(n,i)):i.handleEvent=r:void 0!==i&&(t.delete(n),e.removeEventListener(n,i))})(e,s,r):e[n]=r},c=(e,r,t,i,l)=>{const c=new Set(Object.keys(null!=i?i:{}));class d extends n.Component{constructor(){super(...arguments),this._element=null}_updateElement(e){if(null!==this._element)for(const n in this._elementProps)o(this._element,n,this.props[n],e?e[n]:void 0,i)}componentDidMount(){this._updateElement()}componentDidUpdate(e){this._updateElement(e)}render(){const e=this.props,{__forwardedRef:i}=e,l=s(e,["__forwardedRef"]);void 0!==this._ref&&this._userRef===i||(this._ref=e=>{null===this._element&&(this._element=e),null!==i&&((e,n)=>{"function"==typeof e?e(n):e.current=n})(i,e),this._userRef=i}),this._elementProps={};const o={ref:this._ref};for(const[e,n]of Object.entries(l))c.has(e)||!a.has(e)&&!(e in HTMLElement.prototype)&&e in t.prototype?this._elementProps[e]=n:o["className"===e?"class":e]=n;return n.createElement(r,o)}}d.displayName=null!=l?l:t.name;const u=n.forwardRef(((e,r)=>n.createElement(d,Object.assign(Object.assign({},e),{__forwardedRef:r}),e.children)));return u.displayName=d.displayName,u},d=c(0,"m-banner-action-primary",r.BannerActionPrimary);function u(n){const{leading:r,trailing:t,children:i}=n,a=s(n,["leading","trailing","children"]);return e.jsxs(d,Object.assign({},a,{children:[null!=r&&e.jsx("span",Object.assign({slot:"leading"},{children:r})),i,null!=t&&e.jsx("span",Object.assign({slot:"trailing"},{children:t}))]}))}function g(n){var r=s(n,[]);return e.jsx("m-banner-actions",Object.assign({},r))}u.displayName="BannerActionPrimary",g.displayName="BannerActions";const h=c(0,"m-banner-action-secondary",r.BannerActionSecondary);function p(n){const{leading:r,trailing:t,children:i}=n,a=s(n,["leading","trailing","children"]);return e.jsxs(h,Object.assign({},a,{children:[null!=r&&e.jsx("span",Object.assign({slot:"leading"},{children:r})),i,null!=t&&e.jsx("span",Object.assign({slot:"trailing"},{children:t}))]}))}function b(n){var r=s(n,[]);return e.jsx("m-banner-description",Object.assign({},r))}function j(n){var r=s(n,[]);return e.jsx("m-banner-icon",Object.assign({},r))}function f(n){var r=s(n,[]);return e.jsx("m-banner-title",Object.assign({},r))}p.displayName="BannerActionSecondary",b.displayName="BannerDescription",j.displayName="BannerIcon",f.displayName="BannerTitle";const m=c(0,"m-banner",r.Banner,{onDismiss:"m-dismiss"},"WiredBanner");function x(n){return e.jsx(m,Object.assign({},n))}x.displayName="Banner",x.ActionPrimary=u,x.Actions=g,x.ActionSecondary=p,x.Description=b,x.Icon=j,x.Title=f;const O=c(0,"m-button",r.Button);const v=c(0,"m-card",r.Card);function y(n){var{children:r}=n,t=s(n,["children"]);return e.jsx(v,Object.assign({},t,{children:r}))}y.Title=function(n){var{children:r,leading:t}=n,i=s(n,["children","leading"]);return e.jsxs("m-card-title",Object.assign({},i,{slot:"title"},{children:[null!=t&&e.jsx("span",Object.assign({slot:"leading"},{children:t})),r]}))},y.Subtitle=function(n){var{children:r}=n,t=s(n,["children"]);return e.jsx("m-card-subtitle",Object.assign({},t,{slot:"subtitle"},{children:r}))},y.Body=function(n){var{children:r}=n,t=s(n,["children"]);return e.jsx("m-card-body",Object.assign({slot:"body"},t,{children:r}))};const P=c(0,"m-checkbox",r.Checkbox,{onChange:"m-change"},"WiredCheckbox");const w=c(0,"m-field",r.Field);function B(n){var{children:r}=n,t=s(n,["children"]);return e.jsx(w,Object.assign({},t,{children:r}))}B.Label=function(n){var{children:r}=n,t=s(n,["children"]);return e.jsx("m-field-label",Object.assign({},t,{slot:"label"},{children:r}))},B.Hint=function(n){var{children:r,leading:t}=n,i=s(n,["children","leading"]);return e.jsxs("m-field-hint",Object.assign({},i,{slot:"hint"},{children:[null!=t&&e.jsx("span",Object.assign({slot:"leading"},{children:t})),r]}))};const S=c(0,"m-box",r.Box);function C(n){var{padding:t=r.defaultBoxProps.padding,backgroundColor:i,borderRadius:a=r.defaultBoxProps.borderRadius,borderWidth:l=r.defaultBoxProps.borderWidth,borderColor:o=r.defaultBoxProps.borderColor,textAlign:c=r.defaultBoxProps.textAlign,children:d}=n,u=s(n,["padding","backgroundColor","borderRadius","borderWidth","borderColor","textAlign","children"]);const g={padding:t,"background-color":i,"border-radius":a,"border-width":l,"border-color":o,"text-align":c};return e.jsx(S,Object.assign({},g,u,{children:d}))}const G=c(0,"m-group",r.Group);function _(n){var{gap:t=r.defaultGroupProps.gap,align:i=r.defaultGroupProps.align,justify:a=r.defaultGroupProps.justify,children:l}=n,o=s(n,["gap","align","justify","children"]);return e.jsx(G,Object.assign({gap:t,align:i,justify:a},o,{children:l}))}const k=c(0,"m-stack",r.Stack);function W(n){var{gap:t=r.defaultStackProps.gap,align:i=r.defaultStackProps.align,justify:a=r.defaultStackProps.justify,children:l}=n,o=s(n,["gap","align","justify","children"]);return e.jsx(k,Object.assign({gap:t,align:i,justify:a},o,{children:l}))}const R=c(0,"m-grid",r.Grid);function T(n){var{gap:t=r.defaultGridProps.gap,rowGap:i,columnGap:a,minColumnWidth:l=r.defaultGridProps.minColumnWidth,children:o}=n,c=s(n,["gap","rowGap","columnGap","minColumnWidth","children"]);const d={gap:t,"row-gap":i,"column-gap":a,"min-column-width":l};return e.jsx(R,Object.assign({},d,c,{children:o}))}function E(n){var{gap:t=r.defaultSidebarProps.gap,sideWidth:i=r.defaultSidebarProps.sideWidth,minContentWidth:a=r.defaultSidebarProps.minContentWidth,reversed:l=r.defaultSidebarProps.reversed,children:o}=n,c=s(n,["gap","sideWidth","minContentWidth","reversed","children"]);const d=Object.assign({gap:t,"side-width":i,"min-content-width":a},l&&{reversed:l});return e.jsx("m-sidebar",Object.assign({},d,c,{children:o}))}E.Side=function(n){var{children:r}=n,t=s(n,["children"]);return e.jsx(C,Object.assign({slot:"sidebar"},t,{children:r}))},E.Content=function(n){var{children:r}=n,t=s(n,["children"]);return e.jsx(C,Object.assign({slot:"content"},t,{children:r}))};const N=c(0,"m-switcher",r.Switcher);function A(n){var{gap:t=r.defaultSwitcherProps.gap,rowGap:i,columnGap:a,threshold:l=r.defaultSwitcherProps.threshold,limit:o,children:c}=n,d=s(n,["gap","rowGap","columnGap","threshold","limit","children"]);const u={gap:t,"row-gap":i,"column-gap":a,threshold:l,limit:o};return e.jsx(N,Object.assign({},u,d,{children:c}))}const D=()=>null;D.Box=C,D.Group=_,D.Stack=W,D.Grid=T,D.Sidebar=E,D.Switcher=A;const L=c(0,"m-progress-bar",r.ProgressBar);const F=c(0,"m-progress-bar-countdown",r.ProgressBarCountdown);const I=c(0,"m-radio-group",r.RadioGroup,{onChange:"m-change"}),M=c(0,"m-radio",r.Radio);const q=c(0,"m-tag",r.Tag);const H=c(0,"m-text",r.Text);const z=c(0,"m-text-field",r.TextField,{onInput:"input",onChange:"change",onClear:"m-clear"});const U=c(0,"m-toggle",r.Toggle);function J(n){const{children:r,leading:t}=n,i=s(n,["children","leading"]);return e.jsxs(U,Object.assign({},i,{children:[null!=t&&e.jsx("span",Object.assign({slot:"leading"},{children:t})),r]}))}const K=c(0,"m-toggle-group",r.ToggleGroup,{onChange:"m-change"});exports.Banner=x,exports.Box=C,exports.Button=function(n){const{leading:r,trailing:t,children:i}=n,a=s(n,["leading","trailing","children"]);return e.jsxs(O,Object.assign({},a,{children:[null!=r&&e.jsx("span",Object.assign({slot:"leading"},{children:r})),i,null!=t&&e.jsx("span",Object.assign({slot:"trailing"},{children:t}))]}))},exports.Card=y,exports.Checkbox=function(n){const{children:r,leading:t}=n,i=s(n,["children","leading"]);return e.jsxs(P,Object.assign({},i,{children:[null!=t&&e.jsx("span",Object.assign({slot:"leading"},{children:t})),r]}))},exports.Field=B,exports.Grid=T,exports.Group=_,exports.Layout=D,exports.ProgressBar=function(n){return e.jsx(L,Object.assign({},n))},exports.ProgressBarCountdown=function(n){return e.jsx(F,Object.assign({},n))},exports.Radio=function(n){const{children:r,leading:t}=n,i=s(n,["children","leading"]);return e.jsxs(M,Object.assign({},i,{children:[null!=t&&e.jsx("span",Object.assign({slot:"leading"},{children:t})),r]}))},exports.RadioGroup=I,exports.Sidebar=E,exports.Stack=W,exports.Switcher=A,exports.Tag=function(n){const{leading:r,children:t}=n,i=s(n,["leading","children"]);return e.jsxs(q,Object.assign({},i,{children:[null!=r&&e.jsx("span",Object.assign({slot:"leading"},{children:r})),t]}))},exports.Text=function(n){var{children:r}=n,t=s(n,["children"]);return e.jsx(H,Object.assign({},t,{children:r}))},exports.TextField=function(n){var{leading:r,trailing:t}=n,i=s(n,["leading","trailing"]);return e.jsxs(z,Object.assign({},i,{children:[null!=r&&e.jsx("div",Object.assign({slot:"leading"},{children:r})),null!=t&&e.jsx("div",Object.assign({slot:"trailing"},{children:t}))]}))},exports.Toggle=J,exports.ToggleGroup=function(n){const{value:r,options:t,children:a,disabled:l}=n,o=s(n,["value","options","children","disabled"]),c=i.useRef(null);return i.useEffect((function(){null!=c.current&&(c.current.value=r)}),[r]),e.jsx(K,Object.assign({ref:c,disabled:l},o,{children:null!=a?a:(t||[]).map((function(n){const{label:r,value:t}=n,i=s(n,["label","value"]);return e.jsx(J,Object.assign({},i,{disabled:Boolean(l||n.disabled),value:t},{children:r}),t)}))}))}; | ||
*/const o=new Set(["children","localName","ref","style","className"]),a=new WeakMap,l=(n,e,i,t,r)=>{const s=null==r?void 0:r[e];void 0!==s?i!==t&&((n,e,i)=>{let t=a.get(n);void 0===t&&a.set(n,t=new Map);let r=t.get(e);void 0!==i?void 0===r?(t.set(e,r={handleEvent:i}),n.addEventListener(e,r)):r.handleEvent=i:void 0!==r&&(t.delete(e),n.removeEventListener(e,r))})(n,s,i):n[e]=i},c=(n,i,t,r,a)=>{const c=new Set(Object.keys(null!=r?r:{}));class d extends e.Component{constructor(){super(...arguments),this._element=null}_updateElement(n){if(null!==this._element)for(const e in this._elementProps)l(this._element,e,this.props[e],n?n[e]:void 0,r)}componentDidMount(){this._updateElement()}componentDidUpdate(n){this._updateElement(n)}render(){const n=this.props,{__forwardedRef:r}=n,a=s(n,["__forwardedRef"]);void 0!==this._ref&&this._userRef===r||(this._ref=n=>{null===this._element&&(this._element=n),null!==r&&((n,e)=>{"function"==typeof n?n(e):n.current=e})(r,n),this._userRef=r}),this._elementProps={};const l={ref:this._ref};for(const[n,e]of Object.entries(a))c.has(n)||!o.has(n)&&!(n in HTMLElement.prototype)&&n in t.prototype?this._elementProps[n]=e:l["className"===n?"class":n]=e;return e.createElement(i,l)}}d.displayName=null!=a?a:t.name;const g=e.forwardRef(((n,i)=>e.createElement(d,Object.assign(Object.assign({},n),{__forwardedRef:i}),n.children)));return g.displayName=d.displayName,g},d=c(0,"m-banner-action-primary",i.BannerActionPrimary);function g(e){const{leading:i,trailing:t,children:r}=e,o=s(e,["leading","trailing","children"]);return n.jsxs(d,Object.assign({},o,{children:[null!=i&&n.jsx("span",Object.assign({slot:"leading"},{children:i})),r,null!=t&&n.jsx("span",Object.assign({slot:"trailing"},{children:t}))]}))}function u(e){var i=s(e,[]);return n.jsx("m-banner-actions",Object.assign({},i))}g.displayName="BannerActionPrimary",u.displayName="BannerActions";const h=c(0,"m-banner-action-secondary",i.BannerActionSecondary);function p(e){const{leading:i,trailing:t,children:r}=e,o=s(e,["leading","trailing","children"]);return n.jsxs(h,Object.assign({},o,{children:[null!=i&&n.jsx("span",Object.assign({slot:"leading"},{children:i})),r,null!=t&&n.jsx("span",Object.assign({slot:"trailing"},{children:t}))]}))}function j(e){var i=s(e,[]);return n.jsx("m-banner-description",Object.assign({},i))}function b(e){var i=s(e,[]);return n.jsx("m-banner-icon",Object.assign({},i))}function m(e){var i=s(e,[]);return n.jsx("m-banner-title",Object.assign({},i))}p.displayName="BannerActionSecondary",j.displayName="BannerDescription",b.displayName="BannerIcon",m.displayName="BannerTitle";const f=c(0,"m-banner",i.Banner,{onDismiss:"m-dismiss"},"WiredBanner");function x(e){return n.jsx(f,Object.assign({},e))}x.displayName="Banner",x.ActionPrimary=g,x.Actions=u,x.ActionSecondary=p,x.Description=j,x.Icon=b,x.Title=m;const O=c(0,"m-button",i.Button);const y=c(0,"m-card",i.Card);function v(e){var{children:i}=e,t=s(e,["children"]);return n.jsx(y,Object.assign({},t,{children:i}))}v.Title=function(e){var{children:i,leading:t}=e,r=s(e,["children","leading"]);return n.jsxs("m-card-title",Object.assign({},r,{slot:"title"},{children:[null!=t&&n.jsx("span",Object.assign({slot:"leading"},{children:t})),i]}))},v.Subtitle=function(e){var{children:i}=e,t=s(e,["children"]);return n.jsx("m-card-subtitle",Object.assign({},t,{slot:"subtitle"},{children:i}))},v.Body=function(e){var{children:i}=e,t=s(e,["children"]);return n.jsx("m-card-body",Object.assign({slot:"body"},t,{children:i}))};const P=c(0,"m-checkbox",i.Checkbox,{onChange:"m-change"},"WiredCheckbox");const S=c(0,"m-dialog-action-primary",i.DialogActionPrimary,{},"WiredDialogActionPrimary");const w=c(0,"m-dialog-action-secondary",i.DialogActionSecondary,{},"WiredDialogActionSecondary");const A=c(0,"m-dialog-action-tertiary",i.DialogActionTertiary,{},"WiredDialogActionTertiary");const C=c(0,"m-dialog-actions",i.DialogActions,{},"WiredDialogActions");const B=c(0,"m-dialog-body",i.DialogBody,{},"WiredDialogActions");const D=c(0,"m-dialog-close",i.DialogClose,{onClose:"m-close"},"WiredDialogClose");const G=c(0,"m-dialog-footer",i.DialogFooter,{},"WiredDialogFooter");const _=c(0,"m-dialog-header",i.DialogHeader,{},"WiredDialogHeader");const W=c(0,"m-dialog",i.Dialog,{onClose:"m-close",onOpening:"m-opening",onOpened:"m-opened",onClosing:"m-closing",onClosed:"m-closed"},"WiredDialog");function T(e){return n.jsx(W,Object.assign({},e))}T.ActionPrimary=function(e){const{leading:i,trailing:t,children:r}=e,o=s(e,["leading","trailing","children"]);return n.jsxs(S,Object.assign({},o,{children:[null!=i&&n.jsx("span",Object.assign({slot:"leading"},{children:i})),r,null!=t&&n.jsx("span",Object.assign({slot:"trailing"},{children:t}))]}))},T.ActionSecondary=function(e){const{leading:i,trailing:t,children:r}=e,o=s(e,["leading","trailing","children"]);return n.jsxs(w,Object.assign({},o,{children:[null!=i&&n.jsx("span",Object.assign({slot:"leading"},{children:i})),r,null!=t&&n.jsx("span",Object.assign({slot:"trailing"},{children:t}))]}))},T.ActionTertiary=function(e){const{leading:i,trailing:t,children:r}=e,o=s(e,["leading","trailing","children"]);return n.jsxs(A,Object.assign({},o,{children:[null!=i&&n.jsx("span",Object.assign({slot:"leading"},{children:i})),r,null!=t&&n.jsx("span",Object.assign({slot:"trailing"},{children:t}))]}))},T.Actions=function(e){var i=s(e,[]);return n.jsx(C,Object.assign({},i))},T.Body=function(e){var i=s(e,[]);return n.jsx(B,Object.assign({},i))},T.Footer=function(e){var i=s(e,[]);return n.jsx(G,Object.assign({},i))},T.Close=function(e){return n.jsx(D,Object.assign({},e))},T.Header=function(e){var i=s(e,[]);return n.jsx(_,Object.assign({},i))};const k=c(0,"m-field",i.Field);function R(e){var{children:i}=e,t=s(e,["children"]);return n.jsx(k,Object.assign({},t,{children:i}))}R.Label=function(e){var{children:i}=e,t=s(e,["children"]);return n.jsx("m-field-label",Object.assign({},t,{slot:"label"},{children:i}))},R.Hint=function(e){var{children:i,leading:t}=e,r=s(e,["children","leading"]);return n.jsxs("m-field-hint",Object.assign({},r,{slot:"hint"},{children:[null!=t&&n.jsx("span",Object.assign({slot:"leading"},{children:t})),i]}))};const E=c(0,"m-box",i.Box);function N(e){var{padding:t=i.defaultBoxProps.padding,backgroundColor:r,borderRadius:o=i.defaultBoxProps.borderRadius,borderWidth:a=i.defaultBoxProps.borderWidth,borderColor:l=i.defaultBoxProps.borderColor,textAlign:c=i.defaultBoxProps.textAlign,children:d}=e,g=s(e,["padding","backgroundColor","borderRadius","borderWidth","borderColor","textAlign","children"]);const u={padding:t,"background-color":r,"border-radius":o,"border-width":a,"border-color":l,"text-align":c};return n.jsx(E,Object.assign({},u,g,{children:d}))}const I=c(0,"m-group",i.Group);function L(e){var{gap:t=i.defaultGroupProps.gap,align:r=i.defaultGroupProps.align,justify:o=i.defaultGroupProps.justify,children:a}=e,l=s(e,["gap","align","justify","children"]);return n.jsx(I,Object.assign({gap:t,align:r,justify:o},l,{children:a}))}const F=c(0,"m-stack",i.Stack);function H(e){var{gap:t=i.defaultStackProps.gap,align:r=i.defaultStackProps.align,justify:o=i.defaultStackProps.justify,children:a}=e,l=s(e,["gap","align","justify","children"]);return n.jsx(F,Object.assign({gap:t,align:r,justify:o},l,{children:a}))}const M=c(0,"m-grid",i.Grid);function q(e){var{gap:t=i.defaultGridProps.gap,rowGap:r,columnGap:o,minColumnWidth:a=i.defaultGridProps.minColumnWidth,children:l}=e,c=s(e,["gap","rowGap","columnGap","minColumnWidth","children"]);const d={gap:t,"row-gap":r,"column-gap":o,"min-column-width":a};return n.jsx(M,Object.assign({},d,c,{children:l}))}function V(e){var{gap:t=i.defaultSidebarProps.gap,sideWidth:r=i.defaultSidebarProps.sideWidth,minContentWidth:o=i.defaultSidebarProps.minContentWidth,reversed:a=i.defaultSidebarProps.reversed,children:l}=e,c=s(e,["gap","sideWidth","minContentWidth","reversed","children"]);const d=Object.assign({gap:t,"side-width":r,"min-content-width":o},a&&{reversed:a});return n.jsx("m-sidebar",Object.assign({},d,c,{children:l}))}V.Side=function(e){var{children:i}=e,t=s(e,["children"]);return n.jsx(N,Object.assign({slot:"sidebar"},t,{children:i}))},V.Content=function(e){var{children:i}=e,t=s(e,["children"]);return n.jsx(N,Object.assign({slot:"content"},t,{children:i}))};const Z=c(0,"m-switcher",i.Switcher);function z(e){var{gap:t=i.defaultSwitcherProps.gap,rowGap:r,columnGap:o,threshold:a=i.defaultSwitcherProps.threshold,limit:l,children:c}=e,d=s(e,["gap","rowGap","columnGap","threshold","limit","children"]);const g={gap:t,"row-gap":r,"column-gap":o,threshold:a,limit:l};return n.jsx(Z,Object.assign({},g,d,{children:c}))}const U=()=>null;U.Box=N,U.Group=L,U.Stack=H,U.Grid=q,U.Sidebar=V,U.Switcher=z;const J=c(0,"m-progress-bar",i.ProgressBar);const K=c(0,"m-progress-bar-countdown",i.ProgressBarCountdown);const Q=c(0,"m-radio-group",i.RadioGroup,{onChange:"m-change"}),X=c(0,"m-radio",i.Radio);const Y=c(0,"m-tag",i.Tag);const $=c(0,"m-text",i.Text);const nn=c(0,"m-text-field",i.TextField,{onInput:"input",onChange:"change",onClear:"m-clear"});const en=c(0,"m-toggle",i.Toggle);function tn(e){const{children:i,leading:t}=e,r=s(e,["children","leading"]);return n.jsxs(en,Object.assign({},r,{children:[null!=t&&n.jsx("span",Object.assign({slot:"leading"},{children:t})),i]}))}const rn=c(0,"m-toggle-group",i.ToggleGroup,{onChange:"m-change"});Object.defineProperty(exports,"DIALOG_SIZES",{enumerable:!0,get:function(){return i.DIALOG_SIZES}}),Object.defineProperty(exports,"DIALOG_VARIANTS",{enumerable:!0,get:function(){return i.DIALOG_VARIANTS}}),exports.Banner=x,exports.Box=N,exports.Button=function(e){const{leading:i,trailing:t,children:r}=e,o=s(e,["leading","trailing","children"]);return n.jsxs(O,Object.assign({},o,{children:[null!=i&&n.jsx("span",Object.assign({slot:"leading"},{children:i})),r,null!=t&&n.jsx("span",Object.assign({slot:"trailing"},{children:t}))]}))},exports.Card=v,exports.Checkbox=function(e){const{children:i,leading:t}=e,r=s(e,["children","leading"]);return n.jsxs(P,Object.assign({},r,{children:[null!=t&&n.jsx("span",Object.assign({slot:"leading"},{children:t})),i]}))},exports.Dialog=T,exports.Field=R,exports.Grid=q,exports.Group=L,exports.Layout=U,exports.ProgressBar=function(e){return n.jsx(J,Object.assign({},e))},exports.ProgressBarCountdown=function(e){return n.jsx(K,Object.assign({},e))},exports.Radio=function(e){const{children:i,leading:t}=e,r=s(e,["children","leading"]);return n.jsxs(X,Object.assign({},r,{children:[null!=t&&n.jsx("span",Object.assign({slot:"leading"},{children:t})),i]}))},exports.RadioGroup=Q,exports.Sidebar=V,exports.Stack=H,exports.Switcher=z,exports.Tag=function(e){const{leading:i,children:t}=e,r=s(e,["leading","children"]);return n.jsxs(Y,Object.assign({},r,{children:[null!=i&&n.jsx("span",Object.assign({slot:"leading"},{children:i})),t]}))},exports.Text=function(e){var{children:i}=e,t=s(e,["children"]);return n.jsx($,Object.assign({},t,{children:i}))},exports.TextField=function(e){var{leading:i,trailing:t}=e,r=s(e,["leading","trailing"]);return n.jsxs(nn,Object.assign({},r,{children:[null!=i&&n.jsx("div",Object.assign({slot:"leading"},{children:i})),null!=t&&n.jsx("div",Object.assign({slot:"trailing"},{children:t}))]}))},exports.Toggle=tn,exports.ToggleGroup=function(e){const{value:i,options:t,children:o,disabled:a}=e,l=s(e,["value","options","children","disabled"]),c=r.useRef(null);return r.useEffect((function(){null!=c.current&&(c.current.value=i)}),[i]),n.jsx(rn,Object.assign({ref:c,disabled:a},l,{children:null!=o?o:(t||[]).map((function(e){const{label:i,value:t}=e,r=s(e,["label","value"]);return n.jsx(tn,Object.assign({},r,{disabled:Boolean(a||e.disabled),value:t},{children:i}),t)}))}))}; | ||
//# sourceMappingURL=index.js.map |
@@ -41,5 +41,5 @@ /** | ||
*/ | ||
export declare const createComponent: <I extends HTMLElement, E extends Events = {}>(React: typeof import("react"), tagName: string, elementClass: Constructor<I>, events?: E | undefined, displayName?: string) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<Partial<Omit<HTMLAttributes<I>, keyof E> & Omit<I, keyof E | Exclude<"children", keyof E> | Exclude<"style", keyof E> | Exclude<"className", keyof E> | Exclude<"defaultChecked", keyof E> | Exclude<"defaultValue", keyof E> | Exclude<"suppressContentEditableWarning", keyof E> | Exclude<"suppressHydrationWarning", keyof E> | Exclude<"accessKey", keyof E> | Exclude<"contentEditable", keyof E> | Exclude<"contextMenu", keyof E> | Exclude<"dir", keyof E> | Exclude<"draggable", keyof E> | Exclude<"hidden", keyof E> | Exclude<"id", keyof E> | Exclude<"lang", keyof E> | Exclude<"nonce", keyof E> | Exclude<"placeholder", keyof E> | Exclude<"slot", keyof E> | Exclude<"spellCheck", keyof E> | Exclude<"tabIndex", keyof E> | Exclude<"title", keyof E> | Exclude<"translate", keyof E> | Exclude<"radioGroup", keyof E> | Exclude<"role", keyof E> | Exclude<"about", keyof E> | Exclude<"datatype", keyof E> | Exclude<"inlist", keyof E> | Exclude<"prefix", keyof E> | Exclude<"property", keyof E> | Exclude<"resource", keyof E> | Exclude<"typeof", keyof E> | Exclude<"vocab", keyof E> | Exclude<"autoCapitalize", keyof E> | Exclude<"autoCorrect", keyof E> | Exclude<"autoSave", keyof E> | Exclude<"color", keyof E> | Exclude<"itemProp", keyof E> | Exclude<"itemScope", keyof E> | Exclude<"itemType", keyof E> | Exclude<"itemID", keyof E> | Exclude<"itemRef", keyof E> | Exclude<"results", keyof E> | Exclude<"security", keyof E> | Exclude<"unselectable", keyof E> | Exclude<"inputMode", keyof E> | Exclude<"is", keyof E> | Exclude<"aria-activedescendant", keyof E> | Exclude<"aria-atomic", keyof E> | Exclude<"aria-autocomplete", keyof E> | Exclude<"aria-busy", keyof E> | Exclude<"aria-checked", keyof E> | Exclude<"aria-colcount", keyof E> | Exclude<"aria-colindex", keyof E> | Exclude<"aria-colspan", keyof E> | Exclude<"aria-controls", keyof E> | Exclude<"aria-current", keyof E> | Exclude<"aria-describedby", keyof E> | Exclude<"aria-details", keyof E> | Exclude<"aria-disabled", keyof E> | Exclude<"aria-dropeffect", keyof E> | Exclude<"aria-errormessage", keyof E> | Exclude<"aria-expanded", keyof E> | Exclude<"aria-flowto", keyof E> | Exclude<"aria-grabbed", keyof E> | Exclude<"aria-haspopup", keyof E> | Exclude<"aria-hidden", keyof E> | Exclude<"aria-invalid", keyof E> | Exclude<"aria-keyshortcuts", keyof E> | Exclude<"aria-label", keyof E> | Exclude<"aria-labelledby", keyof E> | Exclude<"aria-level", keyof E> | Exclude<"aria-live", keyof E> | Exclude<"aria-modal", keyof E> | Exclude<"aria-multiline", keyof E> | Exclude<"aria-multiselectable", keyof E> | Exclude<"aria-orientation", keyof E> | Exclude<"aria-owns", keyof E> | Exclude<"aria-placeholder", keyof E> | Exclude<"aria-posinset", keyof E> | Exclude<"aria-pressed", keyof E> | Exclude<"aria-readonly", keyof E> | Exclude<"aria-relevant", keyof E> | Exclude<"aria-required", keyof E> | Exclude<"aria-roledescription", keyof E> | Exclude<"aria-rowcount", keyof E> | Exclude<"aria-rowindex", keyof E> | Exclude<"aria-rowspan", keyof E> | Exclude<"aria-selected", keyof E> | Exclude<"aria-setsize", keyof E> | Exclude<"aria-sort", keyof E> | Exclude<"aria-valuemax", keyof E> | Exclude<"aria-valuemin", keyof E> | Exclude<"aria-valuenow", keyof E> | Exclude<"aria-valuetext", keyof E> | Exclude<"dangerouslySetInnerHTML", keyof E> | Exclude<"onCopy", keyof E> | Exclude<"onCopyCapture", keyof E> | Exclude<"onCut", keyof E> | Exclude<"onCutCapture", keyof E> | Exclude<"onPaste", keyof E> | Exclude<"onPasteCapture", keyof E> | Exclude<"onCompositionEnd", keyof E> | Exclude<"onCompositionEndCapture", keyof E> | Exclude<"onCompositionStart", keyof E> | Exclude<"onCompositionStartCapture", keyof E> | Exclude<"onCompositionUpdate", keyof E> | Exclude<"onCompositionUpdateCapture", keyof E> | Exclude<"onFocus", keyof E> | Exclude<"onFocusCapture", keyof E> | Exclude<"onBlur", keyof E> | Exclude<"onBlurCapture", keyof E> | Exclude<"onChange", keyof E> | Exclude<"onChangeCapture", keyof E> | Exclude<"onBeforeInput", keyof E> | Exclude<"onBeforeInputCapture", keyof E> | Exclude<"onInput", keyof E> | Exclude<"onInputCapture", keyof E> | Exclude<"onReset", keyof E> | Exclude<"onResetCapture", keyof E> | Exclude<"onSubmit", keyof E> | Exclude<"onSubmitCapture", keyof E> | Exclude<"onInvalid", keyof E> | Exclude<"onInvalidCapture", keyof E> | Exclude<"onLoad", keyof E> | Exclude<"onLoadCapture", keyof E> | Exclude<"onError", keyof E> | Exclude<"onErrorCapture", keyof E> | Exclude<"onKeyDown", keyof E> | Exclude<"onKeyDownCapture", keyof E> | Exclude<"onKeyPress", keyof E> | Exclude<"onKeyPressCapture", keyof E> | Exclude<"onKeyUp", keyof E> | Exclude<"onKeyUpCapture", keyof E> | Exclude<"onAbort", keyof E> | Exclude<"onAbortCapture", keyof E> | Exclude<"onCanPlay", keyof E> | Exclude<"onCanPlayCapture", keyof E> | Exclude<"onCanPlayThrough", keyof E> | Exclude<"onCanPlayThroughCapture", keyof E> | Exclude<"onDurationChange", keyof E> | Exclude<"onDurationChangeCapture", keyof E> | Exclude<"onEmptied", keyof E> | Exclude<"onEmptiedCapture", keyof E> | Exclude<"onEncrypted", keyof E> | Exclude<"onEncryptedCapture", keyof E> | Exclude<"onEnded", keyof E> | Exclude<"onEndedCapture", keyof E> | Exclude<"onLoadedData", keyof E> | Exclude<"onLoadedDataCapture", keyof E> | Exclude<"onLoadedMetadata", keyof E> | Exclude<"onLoadedMetadataCapture", keyof E> | Exclude<"onLoadStart", keyof E> | Exclude<"onLoadStartCapture", keyof E> | Exclude<"onPause", keyof E> | Exclude<"onPauseCapture", keyof E> | Exclude<"onPlay", keyof E> | Exclude<"onPlayCapture", keyof E> | Exclude<"onPlaying", keyof E> | Exclude<"onPlayingCapture", keyof E> | Exclude<"onProgress", keyof E> | Exclude<"onProgressCapture", keyof E> | Exclude<"onRateChange", keyof E> | Exclude<"onRateChangeCapture", keyof E> | Exclude<"onResize", keyof E> | Exclude<"onResizeCapture", keyof E> | Exclude<"onSeeked", keyof E> | Exclude<"onSeekedCapture", keyof E> | Exclude<"onSeeking", keyof E> | Exclude<"onSeekingCapture", keyof E> | Exclude<"onStalled", keyof E> | Exclude<"onStalledCapture", keyof E> | Exclude<"onSuspend", keyof E> | Exclude<"onSuspendCapture", keyof E> | Exclude<"onTimeUpdate", keyof E> | Exclude<"onTimeUpdateCapture", keyof E> | Exclude<"onVolumeChange", keyof E> | Exclude<"onVolumeChangeCapture", keyof E> | Exclude<"onWaiting", keyof E> | Exclude<"onWaitingCapture", keyof E> | Exclude<"onAuxClick", keyof E> | Exclude<"onAuxClickCapture", keyof E> | Exclude<"onClick", keyof E> | Exclude<"onClickCapture", keyof E> | Exclude<"onContextMenu", keyof E> | Exclude<"onContextMenuCapture", keyof E> | Exclude<"onDoubleClick", keyof E> | Exclude<"onDoubleClickCapture", keyof E> | Exclude<"onDrag", keyof E> | Exclude<"onDragCapture", keyof E> | Exclude<"onDragEnd", keyof E> | Exclude<"onDragEndCapture", keyof E> | Exclude<"onDragEnter", keyof E> | Exclude<"onDragEnterCapture", keyof E> | Exclude<"onDragExit", keyof E> | Exclude<"onDragExitCapture", keyof E> | Exclude<"onDragLeave", keyof E> | Exclude<"onDragLeaveCapture", keyof E> | Exclude<"onDragOver", keyof E> | Exclude<"onDragOverCapture", keyof E> | Exclude<"onDragStart", keyof E> | Exclude<"onDragStartCapture", keyof E> | Exclude<"onDrop", keyof E> | Exclude<"onDropCapture", keyof E> | Exclude<"onMouseDown", keyof E> | Exclude<"onMouseDownCapture", keyof E> | Exclude<"onMouseEnter", keyof E> | Exclude<"onMouseLeave", keyof E> | Exclude<"onMouseMove", keyof E> | Exclude<"onMouseMoveCapture", keyof E> | Exclude<"onMouseOut", keyof E> | Exclude<"onMouseOutCapture", keyof E> | Exclude<"onMouseOver", keyof E> | Exclude<"onMouseOverCapture", keyof E> | Exclude<"onMouseUp", keyof E> | Exclude<"onMouseUpCapture", keyof E> | Exclude<"onSelect", keyof E> | Exclude<"onSelectCapture", keyof E> | Exclude<"onTouchCancel", keyof E> | Exclude<"onTouchCancelCapture", keyof E> | Exclude<"onTouchEnd", keyof E> | Exclude<"onTouchEndCapture", keyof E> | Exclude<"onTouchMove", keyof E> | Exclude<"onTouchMoveCapture", keyof E> | Exclude<"onTouchStart", keyof E> | Exclude<"onTouchStartCapture", keyof E> | Exclude<"onPointerDown", keyof E> | Exclude<"onPointerDownCapture", keyof E> | Exclude<"onPointerMove", keyof E> | Exclude<"onPointerMoveCapture", keyof E> | Exclude<"onPointerUp", keyof E> | Exclude<"onPointerUpCapture", keyof E> | Exclude<"onPointerCancel", keyof E> | Exclude<"onPointerCancelCapture", keyof E> | Exclude<"onPointerEnter", keyof E> | Exclude<"onPointerEnterCapture", keyof E> | Exclude<"onPointerLeave", keyof E> | Exclude<"onPointerLeaveCapture", keyof E> | Exclude<"onPointerOver", keyof E> | Exclude<"onPointerOverCapture", keyof E> | Exclude<"onPointerOut", keyof E> | Exclude<"onPointerOutCapture", keyof E> | Exclude<"onGotPointerCapture", keyof E> | Exclude<"onGotPointerCaptureCapture", keyof E> | Exclude<"onLostPointerCapture", keyof E> | Exclude<"onLostPointerCaptureCapture", keyof E> | Exclude<"onScroll", keyof E> | Exclude<"onScrollCapture", keyof E> | Exclude<"onWheel", keyof E> | Exclude<"onWheelCapture", keyof E> | Exclude<"onAnimationStart", keyof E> | Exclude<"onAnimationStartCapture", keyof E> | Exclude<"onAnimationEnd", keyof E> | Exclude<"onAnimationEndCapture", keyof E> | Exclude<"onAnimationIteration", keyof E> | Exclude<"onAnimationIterationCapture", keyof E> | Exclude<"onTransitionEnd", keyof E> | Exclude<"onTransitionEndCapture", keyof E>> & EventProps<E> & { | ||
export declare const createComponent: <I extends HTMLElement, E extends Events = {}>(React: typeof import("react"), tagName: string, elementClass: Constructor<I>, events?: E | undefined, displayName?: string) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<Partial<Omit<HTMLAttributes<I>, keyof E> & Omit<I, keyof E | Exclude<"children", keyof E> | Exclude<"style", keyof E> | Exclude<"className", keyof E> | Exclude<"defaultChecked", keyof E> | Exclude<"defaultValue", keyof E> | Exclude<"suppressContentEditableWarning", keyof E> | Exclude<"suppressHydrationWarning", keyof E> | Exclude<"accessKey", keyof E> | Exclude<"autoFocus", keyof E> | Exclude<"contentEditable", keyof E> | Exclude<"contextMenu", keyof E> | Exclude<"dir", keyof E> | Exclude<"draggable", keyof E> | Exclude<"hidden", keyof E> | Exclude<"id", keyof E> | Exclude<"lang", keyof E> | Exclude<"nonce", keyof E> | Exclude<"placeholder", keyof E> | Exclude<"slot", keyof E> | Exclude<"spellCheck", keyof E> | Exclude<"tabIndex", keyof E> | Exclude<"title", keyof E> | Exclude<"translate", keyof E> | Exclude<"radioGroup", keyof E> | Exclude<"role", keyof E> | Exclude<"about", keyof E> | Exclude<"content", keyof E> | Exclude<"datatype", keyof E> | Exclude<"inlist", keyof E> | Exclude<"prefix", keyof E> | Exclude<"property", keyof E> | Exclude<"rel", keyof E> | Exclude<"resource", keyof E> | Exclude<"rev", keyof E> | Exclude<"typeof", keyof E> | Exclude<"vocab", keyof E> | Exclude<"autoCapitalize", keyof E> | Exclude<"autoCorrect", keyof E> | Exclude<"autoSave", keyof E> | Exclude<"color", keyof E> | Exclude<"itemProp", keyof E> | Exclude<"itemScope", keyof E> | Exclude<"itemType", keyof E> | Exclude<"itemID", keyof E> | Exclude<"itemRef", keyof E> | Exclude<"results", keyof E> | Exclude<"security", keyof E> | Exclude<"unselectable", keyof E> | Exclude<"inputMode", keyof E> | Exclude<"is", keyof E> | Exclude<"aria-activedescendant", keyof E> | Exclude<"aria-atomic", keyof E> | Exclude<"aria-autocomplete", keyof E> | Exclude<"aria-busy", keyof E> | Exclude<"aria-checked", keyof E> | Exclude<"aria-colcount", keyof E> | Exclude<"aria-colindex", keyof E> | Exclude<"aria-colspan", keyof E> | Exclude<"aria-controls", keyof E> | Exclude<"aria-current", keyof E> | Exclude<"aria-describedby", keyof E> | Exclude<"aria-details", keyof E> | Exclude<"aria-disabled", keyof E> | Exclude<"aria-dropeffect", keyof E> | Exclude<"aria-errormessage", keyof E> | Exclude<"aria-expanded", keyof E> | Exclude<"aria-flowto", keyof E> | Exclude<"aria-grabbed", keyof E> | Exclude<"aria-haspopup", keyof E> | Exclude<"aria-hidden", keyof E> | Exclude<"aria-invalid", keyof E> | Exclude<"aria-keyshortcuts", keyof E> | Exclude<"aria-label", keyof E> | Exclude<"aria-labelledby", keyof E> | Exclude<"aria-level", keyof E> | Exclude<"aria-live", keyof E> | Exclude<"aria-modal", keyof E> | Exclude<"aria-multiline", keyof E> | Exclude<"aria-multiselectable", keyof E> | Exclude<"aria-orientation", keyof E> | Exclude<"aria-owns", keyof E> | Exclude<"aria-placeholder", keyof E> | Exclude<"aria-posinset", keyof E> | Exclude<"aria-pressed", keyof E> | Exclude<"aria-readonly", keyof E> | Exclude<"aria-relevant", keyof E> | Exclude<"aria-required", keyof E> | Exclude<"aria-roledescription", keyof E> | Exclude<"aria-rowcount", keyof E> | Exclude<"aria-rowindex", keyof E> | Exclude<"aria-rowspan", keyof E> | Exclude<"aria-selected", keyof E> | Exclude<"aria-setsize", keyof E> | Exclude<"aria-sort", keyof E> | Exclude<"aria-valuemax", keyof E> | Exclude<"aria-valuemin", keyof E> | Exclude<"aria-valuenow", keyof E> | Exclude<"aria-valuetext", keyof E> | Exclude<"dangerouslySetInnerHTML", keyof E> | Exclude<"onCopy", keyof E> | Exclude<"onCopyCapture", keyof E> | Exclude<"onCut", keyof E> | Exclude<"onCutCapture", keyof E> | Exclude<"onPaste", keyof E> | Exclude<"onPasteCapture", keyof E> | Exclude<"onCompositionEnd", keyof E> | Exclude<"onCompositionEndCapture", keyof E> | Exclude<"onCompositionStart", keyof E> | Exclude<"onCompositionStartCapture", keyof E> | Exclude<"onCompositionUpdate", keyof E> | Exclude<"onCompositionUpdateCapture", keyof E> | Exclude<"onFocus", keyof E> | Exclude<"onFocusCapture", keyof E> | Exclude<"onBlur", keyof E> | Exclude<"onBlurCapture", keyof E> | Exclude<"onChange", keyof E> | Exclude<"onChangeCapture", keyof E> | Exclude<"onBeforeInput", keyof E> | Exclude<"onBeforeInputCapture", keyof E> | Exclude<"onInput", keyof E> | Exclude<"onInputCapture", keyof E> | Exclude<"onReset", keyof E> | Exclude<"onResetCapture", keyof E> | Exclude<"onSubmit", keyof E> | Exclude<"onSubmitCapture", keyof E> | Exclude<"onInvalid", keyof E> | Exclude<"onInvalidCapture", keyof E> | Exclude<"onLoad", keyof E> | Exclude<"onLoadCapture", keyof E> | Exclude<"onError", keyof E> | Exclude<"onErrorCapture", keyof E> | Exclude<"onKeyDown", keyof E> | Exclude<"onKeyDownCapture", keyof E> | Exclude<"onKeyPress", keyof E> | Exclude<"onKeyPressCapture", keyof E> | Exclude<"onKeyUp", keyof E> | Exclude<"onKeyUpCapture", keyof E> | Exclude<"onAbort", keyof E> | Exclude<"onAbortCapture", keyof E> | Exclude<"onCanPlay", keyof E> | Exclude<"onCanPlayCapture", keyof E> | Exclude<"onCanPlayThrough", keyof E> | Exclude<"onCanPlayThroughCapture", keyof E> | Exclude<"onDurationChange", keyof E> | Exclude<"onDurationChangeCapture", keyof E> | Exclude<"onEmptied", keyof E> | Exclude<"onEmptiedCapture", keyof E> | Exclude<"onEncrypted", keyof E> | Exclude<"onEncryptedCapture", keyof E> | Exclude<"onEnded", keyof E> | Exclude<"onEndedCapture", keyof E> | Exclude<"onLoadedData", keyof E> | Exclude<"onLoadedDataCapture", keyof E> | Exclude<"onLoadedMetadata", keyof E> | Exclude<"onLoadedMetadataCapture", keyof E> | Exclude<"onLoadStart", keyof E> | Exclude<"onLoadStartCapture", keyof E> | Exclude<"onPause", keyof E> | Exclude<"onPauseCapture", keyof E> | Exclude<"onPlay", keyof E> | Exclude<"onPlayCapture", keyof E> | Exclude<"onPlaying", keyof E> | Exclude<"onPlayingCapture", keyof E> | Exclude<"onProgress", keyof E> | Exclude<"onProgressCapture", keyof E> | Exclude<"onRateChange", keyof E> | Exclude<"onRateChangeCapture", keyof E> | Exclude<"onResize", keyof E> | Exclude<"onResizeCapture", keyof E> | Exclude<"onSeeked", keyof E> | Exclude<"onSeekedCapture", keyof E> | Exclude<"onSeeking", keyof E> | Exclude<"onSeekingCapture", keyof E> | Exclude<"onStalled", keyof E> | Exclude<"onStalledCapture", keyof E> | Exclude<"onSuspend", keyof E> | Exclude<"onSuspendCapture", keyof E> | Exclude<"onTimeUpdate", keyof E> | Exclude<"onTimeUpdateCapture", keyof E> | Exclude<"onVolumeChange", keyof E> | Exclude<"onVolumeChangeCapture", keyof E> | Exclude<"onWaiting", keyof E> | Exclude<"onWaitingCapture", keyof E> | Exclude<"onAuxClick", keyof E> | Exclude<"onAuxClickCapture", keyof E> | Exclude<"onClick", keyof E> | Exclude<"onClickCapture", keyof E> | Exclude<"onContextMenu", keyof E> | Exclude<"onContextMenuCapture", keyof E> | Exclude<"onDoubleClick", keyof E> | Exclude<"onDoubleClickCapture", keyof E> | Exclude<"onDrag", keyof E> | Exclude<"onDragCapture", keyof E> | Exclude<"onDragEnd", keyof E> | Exclude<"onDragEndCapture", keyof E> | Exclude<"onDragEnter", keyof E> | Exclude<"onDragEnterCapture", keyof E> | Exclude<"onDragExit", keyof E> | Exclude<"onDragExitCapture", keyof E> | Exclude<"onDragLeave", keyof E> | Exclude<"onDragLeaveCapture", keyof E> | Exclude<"onDragOver", keyof E> | Exclude<"onDragOverCapture", keyof E> | Exclude<"onDragStart", keyof E> | Exclude<"onDragStartCapture", keyof E> | Exclude<"onDrop", keyof E> | Exclude<"onDropCapture", keyof E> | Exclude<"onMouseDown", keyof E> | Exclude<"onMouseDownCapture", keyof E> | Exclude<"onMouseEnter", keyof E> | Exclude<"onMouseLeave", keyof E> | Exclude<"onMouseMove", keyof E> | Exclude<"onMouseMoveCapture", keyof E> | Exclude<"onMouseOut", keyof E> | Exclude<"onMouseOutCapture", keyof E> | Exclude<"onMouseOver", keyof E> | Exclude<"onMouseOverCapture", keyof E> | Exclude<"onMouseUp", keyof E> | Exclude<"onMouseUpCapture", keyof E> | Exclude<"onSelect", keyof E> | Exclude<"onSelectCapture", keyof E> | Exclude<"onTouchCancel", keyof E> | Exclude<"onTouchCancelCapture", keyof E> | Exclude<"onTouchEnd", keyof E> | Exclude<"onTouchEndCapture", keyof E> | Exclude<"onTouchMove", keyof E> | Exclude<"onTouchMoveCapture", keyof E> | Exclude<"onTouchStart", keyof E> | Exclude<"onTouchStartCapture", keyof E> | Exclude<"onPointerDown", keyof E> | Exclude<"onPointerDownCapture", keyof E> | Exclude<"onPointerMove", keyof E> | Exclude<"onPointerMoveCapture", keyof E> | Exclude<"onPointerUp", keyof E> | Exclude<"onPointerUpCapture", keyof E> | Exclude<"onPointerCancel", keyof E> | Exclude<"onPointerCancelCapture", keyof E> | Exclude<"onPointerEnter", keyof E> | Exclude<"onPointerEnterCapture", keyof E> | Exclude<"onPointerLeave", keyof E> | Exclude<"onPointerLeaveCapture", keyof E> | Exclude<"onPointerOver", keyof E> | Exclude<"onPointerOverCapture", keyof E> | Exclude<"onPointerOut", keyof E> | Exclude<"onPointerOutCapture", keyof E> | Exclude<"onGotPointerCapture", keyof E> | Exclude<"onGotPointerCaptureCapture", keyof E> | Exclude<"onLostPointerCapture", keyof E> | Exclude<"onLostPointerCaptureCapture", keyof E> | Exclude<"onScroll", keyof E> | Exclude<"onScrollCapture", keyof E> | Exclude<"onWheel", keyof E> | Exclude<"onWheelCapture", keyof E> | Exclude<"onAnimationStart", keyof E> | Exclude<"onAnimationStartCapture", keyof E> | Exclude<"onAnimationEnd", keyof E> | Exclude<"onAnimationEndCapture", keyof E> | Exclude<"onAnimationIteration", keyof E> | Exclude<"onAnimationIterationCapture", keyof E> | Exclude<"onTransitionEnd", keyof E> | Exclude<"onTransitionEndCapture", keyof E>> & EventProps<E> & { | ||
children?: ReactNode; | ||
}>> & import("react").RefAttributes<unknown>>; | ||
export {}; |
{ | ||
"name": "@loadsmart/miranda-react", | ||
"version": "1.18.4", | ||
"version": "1.19.0", | ||
"description": "React component library based on Miranda Web Components", | ||
@@ -30,3 +30,4 @@ "main": "dist/index.js", | ||
"@testing-library/user-event": "^14.4.3", | ||
"@types/react": "^18.0.27", | ||
"@types/react": "^18.2.5", | ||
"@types/react-dom": "^18.2.4", | ||
"babel-jest": "^29.3.1", | ||
@@ -33,0 +34,0 @@ "chance": "^1.1.9", |
Sorry, the diff of this file is not supported yet
98961
96
1021
16