@vmscloud/moz-ui-components-react 0.1.51 → 0.1.53
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/dist/avatar.d.ts +1 -1
- package/dist/collapsible.d.ts +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/locale/{MozLocaleContext.d.ts → MozComponentLocaleContext.d.ts} +4 -4
- package/dist/locale/index.d.ts +1 -1
- package/dist/popover.d.ts +5 -5
- package/dist/scroll-area.d.ts +1 -1
- package/dist/split-pane.d.ts +1 -1
- package/dist/tooltip.d.ts +4 -4
- package/package.json +11 -10
package/dist/avatar.d.ts
CHANGED
|
@@ -24,4 +24,4 @@ export interface AvatarProps {
|
|
|
24
24
|
children?: ReactNode;
|
|
25
25
|
[attr: string]: unknown;
|
|
26
26
|
}
|
|
27
|
-
export declare function Avatar({ className, style, onLoadingStatusChange, children, ...rest }: AvatarProps): import("react
|
|
27
|
+
export declare function Avatar({ className, style, onLoadingStatusChange, children, ...rest }: AvatarProps): import("react").JSX.Element;
|
package/dist/collapsible.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface CollapsibleProps {
|
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
[attr: string]: unknown;
|
|
14
14
|
}
|
|
15
|
-
export declare function Collapsible({ open: openProp, defaultOpen, onOpenChange, disabled, asChild, className, style, children, ...rest }: CollapsibleProps): import("react
|
|
15
|
+
export declare function Collapsible({ open: openProp, defaultOpen, onOpenChange, disabled, asChild, className, style, children, ...rest }: CollapsibleProps): import("react").JSX.Element;
|
|
16
16
|
export interface CollapsibleTriggerProps {
|
|
17
17
|
/** true 면 래퍼 없이 children 을 그대로 트리거로 쓴다 */
|
|
18
18
|
asChild?: boolean;
|
|
@@ -23,7 +23,7 @@ export interface CollapsibleTriggerProps {
|
|
|
23
23
|
children?: ReactNode;
|
|
24
24
|
[attr: string]: unknown;
|
|
25
25
|
}
|
|
26
|
-
export declare function CollapsibleTrigger({ asChild, disabled: disabledProp, className, style, onClick, children, ...rest }: CollapsibleTriggerProps): import("react
|
|
26
|
+
export declare function CollapsibleTrigger({ asChild, disabled: disabledProp, className, style, onClick, children, ...rest }: CollapsibleTriggerProps): import("react").JSX.Element;
|
|
27
27
|
export interface CollapsibleContentProps {
|
|
28
28
|
/** 닫혀도 DOM 에 남긴다(`hidden`). 기본은 Radix Presence 와 같이 언마운트다. */
|
|
29
29
|
forceMount?: boolean;
|
|
@@ -34,4 +34,4 @@ export interface CollapsibleContentProps {
|
|
|
34
34
|
children?: ReactNode;
|
|
35
35
|
[attr: string]: unknown;
|
|
36
36
|
}
|
|
37
|
-
export declare function CollapsibleContent({ forceMount, className, style, onHeightChange, children, ...rest }: CollapsibleContentProps): import("react
|
|
37
|
+
export declare function CollapsibleContent({ forceMount, className, style, onHeightChange, children, ...rest }: CollapsibleContentProps): import("react").JSX.Element;
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var Ce=Object.defineProperty;var Ee=(o,e,n)=>e in o?Ce(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n;var K=(o,e,n)=>Ee(o,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),Pe=require("react-dom"),me=require("react-dom/client"),u=require("@vmscloud/moz-ui-components-core"),O=require("react/jsx-runtime"),W=new Set;let F=null;function G(o){W.add(o),F==null&&(F=setTimeout(()=>{F=null;const e=Array.from(W);W.clear();for(const n of e)n.unmount()},0))}class Q{constructor(){K(this,"contextWrapper",null);K(this,"roots",new Set)}setContextWrapper(e){this.contextWrapper=e}mountInstance(e,n,s){const r=me.createRoot(e);this.roots.add(r);const l=c=>{const a=t.createElement(n,c);r.render(this.contextWrapper?this.contextWrapper(a):a)};return l(s),{update:c=>l(c),destroy:()=>{this.roots.delete(r),G(r)}}}unmountAll(){for(const e of this.roots)G(e);this.roots.clear()}get size(){return this.roots.size}}const q=t.createContext(u.koKR),H=t.createContext(null);function be({locale:o=u.koKR,contextWrapper:e,children:n}){return t.createElement(q.Provider,{value:o},t.createElement(H.Provider,{value:e??null},n))}function Z(){return t.useContext(q)}function ee(){return t.useContext(H)}const D=t.createContext(null);function Se({children:o}){const e=t.useRef();e.current||(e.current=u.createValidator());const n={validate:e.current.validate,initValidator:e.current.initValidator};return t.createElement(D.Provider,{value:e.current},typeof o=="function"?o(n):o)}function Te(){return t.useContext(D)}function U(o){return o.startsWith("update:")?"on"+o.slice(7).charAt(0).toUpperCase()+o.slice(8)+"Change":"on"+o.charAt(0).toUpperCase()+o.slice(1)}function ye(o,e){if(Object.is(o,e))return!0;if(typeof o!="object"||typeof e!="object"||o===null||e===null)return!1;const n=Object.keys(o),s=Object.keys(e);return n.length!==s.length?!1:n.every(r=>Object.is(o[r],e[r]))}function X(o,e){const n=Object.keys(o),s=Object.keys(e);if(n.length!==s.length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(e,r)||!Object.is(o[r],e[r]))return!1;return!0}function f(o){const e=o.models??{},n=new Set([...o.props,...Object.keys(e),...Object.values(e).map(r=>r.prop),...(o.slots??[]).map(r=>r==="default"?"children":r),...(o.emits??[]).map(U),...Object.keys(e).map(r=>U(`update:${r}`)),...Object.values(e).map(r=>U(r.event)),"children","className","style","id","key","ref","slots"]),s=t.forwardRef((r,l)=>{const c=t.useRef(null),a=t.useRef(void 0),C=t.useRef(void 0),[S,T]=t.useState(()=>new Map);if(!C.current){const m={};Object.defineProperty(m,"el",{get:()=>{var d;return((d=a.current)==null?void 0:d.el)??null},enumerable:!0}),C.current=m}const i=t.useRef();i.current||(i.current=new Q);const E=ee();i.current.setContextWrapper(E);const p=Z(),y=t.useContext(D),x=t.useRef(r);x.current=r;const g=((m,...d)=>{const v=U(String(m)),R=x.current[v];typeof R=="function"&&R(...d)}),P=()=>{const m=x.current,d={};for(const v of Object.keys(m))n.has(v)||(d[v]=m[v]);for(const v of o.props)d[v]=m[v];for(const v of Object.keys(e))d[e[v].prop]=m[v];return m.className!=null&&(d.class=m.className),m.style!=null&&(d.style=m.style),m.id!=null&&(d.id=m.id),d};t.useLayoutEffect(()=>{const m=i.current,d={};for(const b of o.slots??[]){const M=b==="default"?"children":b;x.current[M]!=null&&(d[b]=(h,z)=>{const I=({scope:L})=>{const w=x.current[M];return(typeof w=="function"?w(L):w)??null},_=m.mountInstance(h,I,{scope:z});return{update:L=>_.update({scope:L}),dispose:_.destroy}})}const v=b=>{const M=x.current.slots;if(!(M==null||M[b]==null))return(h,z)=>{const I=h.getAttribute("data-moz-slot-id")??b;return T(_=>new Map(_).set(I,{name:b,el:h,scope:z})),{update:_=>T(L=>{const w=L.get(I);return!w||ye(w.scope,_)?L:new Map(L).set(I,{...w,scope:_})}),dispose:()=>T(_=>{if(!_.has(I))return _;const L=new Map(_);return L.delete(I),L})}}};a.current=o.core(c.current,P(),g,{slots:d,slotResolver:v,locale:p,validator:y??void 0,providedKeys:Object.keys(x.current)});const R=a.current.api;if(R)for(const b of Object.keys(R))b!=="el"&&(C.current[b]=R[b]);return()=>{var b;(b=a.current)==null||b.destroy(),m.unmountAll(),a.current=void 0}},[]);const A=()=>{const m=x.current,d={};for(const R of o.slots??[]){const b=R==="default"?"children":R;d[b]=m[b]}const v=m.slots;return d.__dynamicSlotKeys=v?Object.keys(v).sort().join("\0"):"",d},k=t.useRef(null);t.useEffect(()=>{const m=a.current;if(!m)return;const d=P(),v=A(),R=k.current;R&&R.locale===p&&X(R.props,d)&&X(R.slots,v)||(k.current={props:d,slots:v,locale:p},(!R||R.locale!==p)&&m.setLocale(p),m.update(d,{replace:!0,sync:o.syncUpdate}))}),t.useImperativeHandle(l,()=>C.current,[]);const j=r.slots,B=Array.from(S,([m,d])=>{const v=j==null?void 0:j[d.name],R=(typeof v=="function"?v(d.scope):v)??null;return Pe.createPortal(R,d.el,m)});return t.createElement(t.Fragment,null,t.createElement("div",{ref:c,style:{display:"contents"}}),...B)});return s.displayName=o.name,s}const ve=f(u.SPLITPANE_SPEC),te=o=>null,xe=({horizontal:o,children:e})=>{const n=t.Children.toArray(e).filter(l=>t.isValidElement(l)&&l.type===te),s=n.map(l=>({size:l.props.size,minSize:l.props.minSize,maxSize:l.props.maxSize,hidden:l.props.hidden})),r={};return n.forEach((l,c)=>{r[`pane-${c}`]=l.props.children}),O.jsx(ve,{panes:s,horizontal:o,...r})},ge=f(u.TOOLTIP_SPEC),$=new Set,oe=200,Re=100,ne=t.createContext({delayDuration:oe,disableHoverableContent:!1});function he({delayDuration:o=oe,disableHoverableContent:e=!1,children:n}){const s=t.useMemo(()=>({delayDuration:o,disableHoverableContent:e}),[o,e]);return O.jsx(ne.Provider,{value:s,children:n})}const re=t.createContext(null);function se(o){const e=t.useContext(re);if(!e)throw new Error(`${o} 는 <Tooltip> 안에서만 쓸 수 있습니다.`);return e}function Ae({open:o,defaultOpen:e=!1,onOpenChange:n,delayDuration:s,disableHoverableContent:r,children:l}){const c=t.useContext(ne),a=s??c.delayDuration,C=!(r??c.disableHoverableContent),[S,T]=t.useState(e),i=o!==void 0,E=i?!!o:S,[p,y]=t.useState(null),x=`moz-tooltip-${t.useId()}`,g=t.useRef(null),P=t.useRef(null),A=t.useRef(n);A.current=n;const k=t.useCallback(()=>{g.current&&clearTimeout(g.current),P.current&&clearTimeout(P.current),g.current=null,P.current=null},[]),j=t.useCallback(h=>{var z;i||T(h),(z=A.current)==null||z.call(A,h)},[i]),B=t.useCallback(()=>{k(),j(!0)},[k,j]),m=t.useCallback(()=>{if(P.current&&(clearTimeout(P.current),P.current=null),!g.current){if(a<=0){j(!0);return}g.current=setTimeout(()=>{g.current=null,j(!0)},a)}},[a,j]),d=t.useCallback(()=>{k(),j(!1)},[k,j]),v=t.useCallback(()=>{if(g.current&&(clearTimeout(g.current),g.current=null),!C){j(!1);return}P.current||(P.current=setTimeout(()=>{P.current=null,j(!1)},Re))},[C,j]),R=t.useCallback(()=>{P.current&&(clearTimeout(P.current),P.current=null)},[]);t.useEffect(()=>k,[k]);const b=t.useRef(d);b.current=d,t.useEffect(()=>{if(!E)return;const h=()=>b.current();for(const I of Array.from($))I();$.add(h);const z=I=>{I.key==="Escape"&&b.current()};return document.addEventListener("keydown",z),()=>{$.delete(h),document.removeEventListener("keydown",z)}},[E]);const M=t.useMemo(()=>({open:E,contentId:x,anchor:p,setAnchor:y,hoverable:C,openNow:B,openDelayed:m,closeNow:d,closeSoon:v,cancelClose:R}),[E,x,p,C,B,m,d,v,R]);return O.jsx(re.Provider,{value:M,children:l})}function N(o,e){return n=>{typeof o=="function"&&o(n),e()}}function J(o,e){o&&(typeof o=="function"?o(e):o.current=e)}function ke({asChild:o=!1,children:e}){const n=se("TooltipTrigger"),{open:s,contentId:r,setAnchor:l,openNow:c,openDelayed:a,closeNow:C,closeSoon:S}=n,T=t.isValidElement(e)?e:null,i=(T==null?void 0:T.props)??{},E=T==null?void 0:T.ref,p=t.useRef(E);p.current=E;const y=t.useRef(null),x=t.useCallback(A=>{y.current=A,l(A),J(p.current,A)},[l]),g=t.useRef(E);t.useLayoutEffect(()=>{g.current!==E&&(g.current=E,J(E,y.current))});const P={ref:x,onPointerMove:N(i.onPointerMove,a),onMouseEnter:N(i.onMouseEnter,a),onPointerLeave:N(i.onPointerLeave,S),onMouseLeave:N(i.onMouseLeave,S),onPointerDown:N(i.onPointerDown,C),onFocus:N(i.onFocus,c),onBlur:N(i.onBlur,C),"aria-describedby":s?r:i["aria-describedby"],"data-state":s?"open":"closed"};return o&&T?t.cloneElement(T,P):O.jsx("span",{...P,children:e})}function Me({side:o="top",align:e="center",sideOffset:n=8,collisionPadding:s=8,arrow:r=!0,className:l,style:c,children:a,...C}){const S=se("TooltipContent"),{open:T,anchor:i,contentId:E,hoverable:p,cancelClose:y,closeSoon:x}=S,g=t.useRef({cancelClose:y,closeSoon:x});g.current={cancelClose:y,closeSoon:x};const P=t.useCallback(()=>g.current.cancelClose(),[]),A=t.useCallback(()=>g.current.closeSoon(),[]),k=t.useMemo(()=>({content:a}),[a]);return O.jsx(ge,{open:T,anchor:i,side:o,align:e,sideOffset:n,collisionPadding:s,arrow:r,tooltipId:E,className:l,style:c,slots:k,"data-hoverable":p?"true":void 0,onPointerEnter:p?P:void 0,onPointerLeave:p?A:void 0,...C})}const je=f(u.POPOVER_SPEC),ce=t.createContext(null);function V(o){const e=t.useContext(ce);if(!e)throw new Error(`${o} 는 <Popover> 안에서만 쓸 수 있습니다.`);return e}function le(...o){return e=>{for(const n of o)n&&(typeof n=="function"?n(e):n.current=e)}}function ue(o,e){return n=>{typeof o=="function"&&o(n),e(n)}}function Oe({open:o,defaultOpen:e=!1,onOpenChange:n,children:s}){const[r,l]=t.useState(e),c=o!==void 0,a=c?!!o:r,[C,S]=t.useState(null),[T,i]=t.useState(null),E=`moz-popover-${t.useId()}`,p=t.useRef(n);p.current=n;const y=t.useCallback(g=>{var P;c||l(g),(P=p.current)==null||P.call(p,g)},[c]),x=t.useMemo(()=>({open:a,setOpen:y,contentId:E,triggerEl:C,anchorEl:T,setTriggerEl:S,setAnchorEl:i}),[a,y,E,C,T]);return O.jsx(ce.Provider,{value:x,children:s})}function Ie({asChild:o=!1,children:e}){const{open:n,setOpen:s,contentId:r,setTriggerEl:l}=V("PopoverTrigger"),c=t.isValidElement(e)?e:null,a=(c==null?void 0:c.props)??{},S={ref:t.useMemo(()=>le(l,c==null?void 0:c.ref),[l,c]),onClick:ue(a.onClick,()=>s(!n)),"aria-haspopup":"dialog","aria-expanded":n,"aria-controls":n?r:void 0,"data-state":n?"open":"closed"};return o&&c?t.cloneElement(c,S):O.jsx("span",{...S,children:e})}function _e({asChild:o=!1,children:e}){const{setAnchorEl:n}=V("PopoverAnchor"),s=t.isValidElement(e)?e:null,r=t.useMemo(()=>le(n,s==null?void 0:s.ref),[n,s]);return o&&s?t.cloneElement(s,{ref:r}):O.jsx("span",{ref:r,children:e})}function Le({asChild:o=!1,children:e}){const{setOpen:n}=V("PopoverClose"),s=t.isValidElement(e)?e:null,r=(s==null?void 0:s.props)??{},l={onClick:ue(r.onClick,()=>n(!1))};return o&&s?t.cloneElement(s,l):O.jsx("button",{type:"button",...l,children:e})}function ze({side:o="bottom",align:e="start",sideOffset:n=4,collisionPadding:s=8,matchTriggerWidth:r=!1,trapFocus:l=!0,className:c,style:a,onOpenAutoFocus:C,onCloseAutoFocus:S,onEscapeKeyDown:T,onInteractOutside:i,children:E,...p}){const{open:y,setOpen:x,contentId:g,triggerEl:P,anchorEl:A}=V("PopoverContent"),k=t.useRef({setOpen:x,triggerEl:P,anchorEl:A,onOpenAutoFocus:C,onCloseAutoFocus:S,onEscapeKeyDown:T,onInteractOutside:i});k.current={setOpen:x,triggerEl:P,anchorEl:A,onOpenAutoFocus:C,onCloseAutoFocus:S,onEscapeKeyDown:T,onInteractOutside:i};const j=t.useCallback(b=>{k.current.setOpen(!1)},[]),B=t.useCallback(b=>{var M,h;(h=(M=k.current).onEscapeKeyDown)==null||h.call(M,b)},[]),m=t.useCallback(b=>{var I,_,L,w;const M=(_=(I=b.detail)==null?void 0:I.originalEvent)==null?void 0:_.target,{triggerEl:h,anchorEl:z}=k.current;if(M&&(h&&h.contains(M)||z&&z.contains(M))){b.preventDefault();return}(w=(L=k.current).onInteractOutside)==null||w.call(L,b)},[]),d=t.useCallback(b=>{var M,h;(h=(M=k.current).onOpenAutoFocus)==null||h.call(M,b)},[]),v=t.useCallback(b=>{var M,h;(h=(M=k.current).onCloseAutoFocus)==null||h.call(M,b)},[]),R=t.useMemo(()=>({content:E}),[E]);return O.jsx(je,{open:y,anchor:A??P,side:o,align:e,sideOffset:n,collisionPadding:s,matchTriggerWidth:r,trapFocus:l,popoverId:g,className:c,style:a,slots:R,onRequestClose:j,onEscapeKeyDown:B,onInteractOutside:m,onOpenAutoFocus:d,onCloseAutoFocus:v,...p})}const we=f(u.COLLAPSIBLE_SPEC),ae=t.createContext(null);function ie(o){const e=t.useContext(ae);if(!e)throw new Error(`${o} 는 <Collapsible> 안에서만 쓸 수 있습니다.`);return e}function Be(...o){return e=>{for(const n of o)n&&(typeof n=="function"?n(e):n.current=e)}}function Y(o,e){return n=>{typeof o=="function"&&o(n),e(n)}}function pe(o,e){const n=[o,e].filter(s=>typeof s=="string"&&s.length>0).join(" ");return n.length>0?n:void 0}function Ne({open:o,defaultOpen:e=!1,onOpenChange:n,disabled:s=!1,asChild:r=!1,className:l,style:c,children:a,...C}){const[S,T]=t.useState(e),i=o!==void 0,E=i?!!o:S,p=`moz-collapsible-${t.useId()}`,y=t.useRef(n);y.current=n;const x=t.useCallback(j=>{var B;i||T(j),(B=y.current)==null||B.call(y,j)},[i]),g=t.useMemo(()=>({open:E,setOpen:x,contentId:p,disabled:s}),[E,x,p,s]),P={"data-state":E?"open":"closed","data-disabled":s?"":void 0,...C},A=t.isValidElement(a)?a:null,k=r&&A?t.cloneElement(A,{...P,className:pe(A.props.className,l),style:c??A.props.style}):O.jsx("div",{...P,className:l,style:c,children:a});return O.jsx(ae.Provider,{value:g,children:k})}function Ue({asChild:o=!1,disabled:e,className:n,style:s,onClick:r,children:l,...c}){const{open:a,setOpen:C,contentId:S,disabled:T}=ie("CollapsibleTrigger"),i=e??T,E=t.useCallback(()=>{i||C(!a)},[i,a,C]),p=t.isValidElement(l)?l:null,y=(p==null?void 0:p.props)??{},x={"aria-expanded":a,"aria-controls":S,"data-state":a?"open":"closed","data-disabled":i?"":void 0,...c};if(o&&p){const g=Be(p.ref);return t.cloneElement(p,{...x,ref:g,className:pe(y.className,n),style:s??y.style,onClick:Y(y.onClick,P=>{r==null||r(P),E()}),disabled:i||void 0})}return O.jsx("button",{type:"button",...x,className:n,style:s,disabled:i||void 0,onClick:Y(r,E),children:l})}function De({forceMount:o=!1,className:e,style:n,onHeightChange:s,children:r,...l}){const{open:c,contentId:a,disabled:C}=ie("CollapsibleContent"),S=t.useRef({onHeightChange:s});S.current={onHeightChange:s};const T=t.useCallback(E=>{var p,y;(y=(p=S.current).onHeightChange)==null||y.call(p,E)},[]),i=t.useMemo(()=>({content:r}),[r]);return O.jsx(we,{open:c,forceMount:o,contentId:a,disabled:C,className:e,style:n,slots:i,onHeightChange:T,...l})}const Ve=f(u.AVATAR_SPEC);function fe(o){return null}function de(o){return null}function Ke({className:o,style:e,onLoadingStatusChange:n,children:s,...r}){let l,c;t.Children.forEach(s,S=>{t.isValidElement(S)&&(S.type===fe?l=S.props:S.type===de&&(c=S.props))});const a=c==null?void 0:c.children,C=t.useMemo(()=>({fallback:a}),[a]);return O.jsx(Ve,{src:l==null?void 0:l.src,alt:l==null?void 0:l.alt,imageClass:l==null?void 0:l.className,fallbackClass:c==null?void 0:c.className,delayMs:c==null?void 0:c.delayMs,className:o,style:e,slots:C,onLoadingStatusChange:n,...r})}const We=f(u.SCROLLAREA_SPEC);function Fe({orientation:o="vertical",scrollbarVisibility:e="always",className:n,viewportClassName:s,scrollbarClassName:r,thumbClassName:l,viewportRef:c,style:a,onScroll:C,children:S,...T}){const[i,E]=t.useState(null),p=t.useCallback(y=>{E(y),typeof c=="function"?c(y):c&&(c.current=y)},[c]);return O.jsxs("div",{className:["moz-scroll-area",n].filter(Boolean).join(" "),style:a,...T,children:[O.jsx("div",{ref:p,className:["moz-scroll-area-viewport",s].filter(Boolean).join(" "),"data-moz-scroll-area-viewport":"",children:S}),O.jsx(We,{viewport:i,interactionRoot:i==null?void 0:i.parentElement,scrollbarVisibility:e,orientation:o,scrollbarClass:r,thumbClass:l,onScroll:C})]})}const $e=f(u.BUTTON_SPEC),qe=f(u.LABEL_SPEC),He=f(u.BADGE_SPEC),Ge=f(u.CHIP_SPEC),Xe=f(u.CALLOUT_SPEC),Je=f(u.TOGGLE_SPEC),Ye=f(u.BREADCRUMB_SPEC),Qe=f(u.EMPTYSTATE_SPEC),Ze=f(u.CHECKBOX_SPEC),et=f(u.RADIO_SPEC),tt=f(u.INPUT_SPEC),ot=f(u.PASSWORDINPUT_SPEC),nt=f(u.TEXTAREA_SPEC),rt=f(u.NUMBERINPUT_SPEC),st=f(u.TAB_SPEC),ct=f(u.SLIDER_SPEC),lt=f(u.CALENDAR_SPEC),ut=f(u.DATEINPUT_SPEC),at=f(u.POPUP_SPEC),it=f(u.SELECT_SPEC),pt=f(u.MULTISELECT_SPEC),ft=f(u.TIMEPICKER_SPEC),dt=f(u.TAGINPUT_SPEC),Ct=f(u.CONTEXTMENU_SPEC),Et=f(u.TABLESELECT_SPEC),Pt=f(u.TREESELECT_SPEC),mt=f(u.CONTROLLER_SPEC),bt=f(u.TOAST_SPEC);Object.defineProperty(exports,"createValidator",{enumerable:!0,get:()=>u.createValidator});Object.defineProperty(exports,"enUS",{enumerable:!0,get:()=>u.enUS});Object.defineProperty(exports,"jaJP",{enumerable:!0,get:()=>u.jaJP});Object.defineProperty(exports,"koKR",{enumerable:!0,get:()=>u.koKR});Object.defineProperty(exports,"useToast",{enumerable:!0,get:()=>u.useToast});Object.defineProperty(exports,"zhCN",{enumerable:!0,get:()=>u.zhCN});exports.Avatar=Ke;exports.AvatarFallback=de;exports.AvatarImage=fe;exports.Badge=He;exports.BreadCrumb=Ye;exports.Button=$e;exports.Calendar=lt;exports.Callout=Xe;exports.CheckBox=Ze;exports.Chip=Ge;exports.Collapsible=Ne;exports.CollapsibleContent=De;exports.CollapsibleTrigger=Ue;exports.ContextMenu=Ct;exports.Controller=mt;exports.DateInput=ut;exports.EmptyState=Qe;exports.Input=tt;exports.Label=qe;exports.MozConfigProvider=be;exports.MozContextWrapperContext=H;exports.MozLocaleContext=q;exports.MultiSelect=pt;exports.NumberInput=rt;exports.Pane=te;exports.PasswordInput=ot;exports.Popover=Oe;exports.PopoverAnchor=_e;exports.PopoverClose=Le;exports.PopoverContent=ze;exports.PopoverTrigger=Ie;exports.Popup=at;exports.Radio=et;exports.ReactRenderer=Q;exports.ScrollArea=Fe;exports.Select=it;exports.Slider=ct;exports.SplitPane=xe;exports.Tab=st;exports.TableSelect=Et;exports.TagInput=dt;exports.TextArea=nt;exports.TimePicker=ft;exports.Toast=bt;exports.Toggle=Je;exports.Tooltip=Ae;exports.TooltipContent=Me;exports.TooltipProvider=he;exports.TooltipTrigger=ke;exports.TreeSelect=Pt;exports.Validator=Se;exports.ValidatorReactContext=D;exports.createMozComponent=f;exports.useMozContextWrapper=ee;exports.useMozLocale=Z;exports.useValidatorContext=Te;
|
|
1
|
+
"use strict";var Ce=Object.defineProperty;var Ee=(o,e,n)=>e in o?Ce(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n;var K=(o,e,n)=>Ee(o,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),me=require("react-dom"),Pe=require("react-dom/client"),u=require("@vmscloud/moz-ui-components-core"),O=require("react/jsx-runtime"),W=new Set;let F=null;function G(o){W.add(o),F==null&&(F=setTimeout(()=>{F=null;const e=Array.from(W);W.clear();for(const n of e)n.unmount()},0))}class Q{constructor(){K(this,"contextWrapper",null);K(this,"roots",new Set)}setContextWrapper(e){this.contextWrapper=e}mountInstance(e,n,s){const r=Pe.createRoot(e);this.roots.add(r);const l=c=>{const a=t.createElement(n,c);r.render(this.contextWrapper?this.contextWrapper(a):a)};return l(s),{update:c=>l(c),destroy:()=>{this.roots.delete(r),G(r)}}}unmountAll(){for(const e of this.roots)G(e);this.roots.clear()}get size(){return this.roots.size}}const q=t.createContext(u.koKR),H=t.createContext(null);function be({locale:o=u.koKR,contextWrapper:e,children:n}){return t.createElement(q.Provider,{value:o},t.createElement(H.Provider,{value:e??null},n))}function Z(){return t.useContext(q)}function ee(){return t.useContext(H)}const D=t.createContext(null);function Se({children:o}){const e=t.useRef();e.current||(e.current=u.createValidator());const n={validate:e.current.validate,initValidator:e.current.initValidator};return t.createElement(D.Provider,{value:e.current},typeof o=="function"?o(n):o)}function Te(){return t.useContext(D)}function U(o){return o.startsWith("update:")?"on"+o.slice(7).charAt(0).toUpperCase()+o.slice(8)+"Change":"on"+o.charAt(0).toUpperCase()+o.slice(1)}function ye(o,e){if(Object.is(o,e))return!0;if(typeof o!="object"||typeof e!="object"||o===null||e===null)return!1;const n=Object.keys(o),s=Object.keys(e);return n.length!==s.length?!1:n.every(r=>Object.is(o[r],e[r]))}function X(o,e){const n=Object.keys(o),s=Object.keys(e);if(n.length!==s.length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(e,r)||!Object.is(o[r],e[r]))return!1;return!0}function f(o){const e=o.models??{},n=new Set([...o.props,...Object.keys(e),...Object.values(e).map(r=>r.prop),...(o.slots??[]).map(r=>r==="default"?"children":r),...(o.emits??[]).map(U),...Object.keys(e).map(r=>U(`update:${r}`)),...Object.values(e).map(r=>U(r.event)),"children","className","style","id","key","ref","slots"]),s=t.forwardRef((r,l)=>{const c=t.useRef(null),a=t.useRef(void 0),C=t.useRef(void 0),[S,T]=t.useState(()=>new Map);if(!C.current){const P={};Object.defineProperty(P,"el",{get:()=>{var d;return((d=a.current)==null?void 0:d.el)??null},enumerable:!0}),C.current=P}const i=t.useRef();i.current||(i.current=new Q);const E=ee();i.current.setContextWrapper(E);const p=Z(),y=t.useContext(D),x=t.useRef(r);x.current=r;const R=((P,...d)=>{const v=U(String(P)),g=x.current[v];typeof g=="function"&&g(...d)}),m=()=>{const P=x.current,d={};for(const v of Object.keys(P))n.has(v)||(d[v]=P[v]);for(const v of o.props)d[v]=P[v];for(const v of Object.keys(e))d[e[v].prop]=P[v];return P.className!=null&&(d.class=P.className),P.style!=null&&(d.style=P.style),P.id!=null&&(d.id=P.id),d};t.useLayoutEffect(()=>{const P=i.current,d={};for(const b of o.slots??[]){const M=b==="default"?"children":b;x.current[M]!=null&&(d[b]=(h,z)=>{const I=({scope:_})=>{const w=x.current[M];return(typeof w=="function"?w(_):w)??null},L=P.mountInstance(h,I,{scope:z});return{update:_=>L.update({scope:_}),dispose:L.destroy}})}const v=b=>{const M=x.current.slots;if(!(M==null||M[b]==null))return(h,z)=>{const I=h.getAttribute("data-moz-slot-id")??b;return T(L=>new Map(L).set(I,{name:b,el:h,scope:z})),{update:L=>T(_=>{const w=_.get(I);return!w||ye(w.scope,L)?_:new Map(_).set(I,{...w,scope:L})}),dispose:()=>T(L=>{if(!L.has(I))return L;const _=new Map(L);return _.delete(I),_})}}};a.current=o.core(c.current,m(),R,{slots:d,slotResolver:v,locale:p,validator:y??void 0,providedKeys:Object.keys(x.current)});const g=a.current.api;if(g)for(const b of Object.keys(g))b!=="el"&&(C.current[b]=g[b]);return()=>{var b;(b=a.current)==null||b.destroy(),P.unmountAll(),a.current=void 0}},[]);const A=()=>{const P=x.current,d={};for(const g of o.slots??[]){const b=g==="default"?"children":g;d[b]=P[b]}const v=P.slots;return d.__dynamicSlotKeys=v?Object.keys(v).sort().join("\0"):"",d},k=t.useRef(null);t.useEffect(()=>{const P=a.current;if(!P)return;const d=m(),v=A(),g=k.current;g&&g.locale===p&&X(g.props,d)&&X(g.slots,v)||(k.current={props:d,slots:v,locale:p},(!g||g.locale!==p)&&P.setLocale(p),P.update(d,{replace:!0,sync:o.syncUpdate}))}),t.useImperativeHandle(l,()=>C.current,[]);const j=r.slots,B=Array.from(S,([P,d])=>{const v=j==null?void 0:j[d.name],g=(typeof v=="function"?v(d.scope):v)??null;return me.createPortal(g,d.el,P)});return t.createElement(t.Fragment,null,t.createElement("div",{ref:c,style:{display:"contents"}}),...B)});return s.displayName=o.name,s}const ve=f(u.SPLITPANE_SPEC),te=o=>null,xe=({horizontal:o,children:e})=>{const n=t.Children.toArray(e).filter(l=>t.isValidElement(l)&&l.type===te),s=n.map(l=>({size:l.props.size,minSize:l.props.minSize,maxSize:l.props.maxSize,hidden:l.props.hidden})),r={};return n.forEach((l,c)=>{r[`pane-${c}`]=l.props.children}),O.jsx(ve,{panes:s,horizontal:o,...r})},Re=f(u.TOOLTIP_SPEC),$=new Set,oe=200,ge=100,ne=t.createContext({delayDuration:oe,disableHoverableContent:!1});function he({delayDuration:o=oe,disableHoverableContent:e=!1,children:n}){const s=t.useMemo(()=>({delayDuration:o,disableHoverableContent:e}),[o,e]);return O.jsx(ne.Provider,{value:s,children:n})}const re=t.createContext(null);function se(o){const e=t.useContext(re);if(!e)throw new Error(`${o} 는 <Tooltip> 안에서만 쓸 수 있습니다.`);return e}function Ae({open:o,defaultOpen:e=!1,onOpenChange:n,delayDuration:s,disableHoverableContent:r,children:l}){const c=t.useContext(ne),a=s??c.delayDuration,C=!(r??c.disableHoverableContent),[S,T]=t.useState(e),i=o!==void 0,E=i?!!o:S,[p,y]=t.useState(null),x=`moz-tooltip-${t.useId()}`,R=t.useRef(null),m=t.useRef(null),A=t.useRef(n);A.current=n;const k=t.useCallback(()=>{R.current&&clearTimeout(R.current),m.current&&clearTimeout(m.current),R.current=null,m.current=null},[]),j=t.useCallback(h=>{var z;i||T(h),(z=A.current)==null||z.call(A,h)},[i]),B=t.useCallback(()=>{k(),j(!0)},[k,j]),P=t.useCallback(()=>{if(m.current&&(clearTimeout(m.current),m.current=null),!R.current){if(a<=0){j(!0);return}R.current=setTimeout(()=>{R.current=null,j(!0)},a)}},[a,j]),d=t.useCallback(()=>{k(),j(!1)},[k,j]),v=t.useCallback(()=>{if(R.current&&(clearTimeout(R.current),R.current=null),!C){j(!1);return}m.current||(m.current=setTimeout(()=>{m.current=null,j(!1)},ge))},[C,j]),g=t.useCallback(()=>{m.current&&(clearTimeout(m.current),m.current=null)},[]);t.useEffect(()=>k,[k]);const b=t.useRef(d);b.current=d,t.useEffect(()=>{if(!E)return;const h=()=>b.current();for(const I of Array.from($))I();$.add(h);const z=I=>{I.key==="Escape"&&b.current()};return document.addEventListener("keydown",z),()=>{$.delete(h),document.removeEventListener("keydown",z)}},[E]);const M=t.useMemo(()=>({open:E,contentId:x,anchor:p,setAnchor:y,hoverable:C,openNow:B,openDelayed:P,closeNow:d,closeSoon:v,cancelClose:g}),[E,x,p,C,B,P,d,v,g]);return O.jsx(re.Provider,{value:M,children:l})}function N(o,e){return n=>{typeof o=="function"&&o(n),e()}}function J(o,e){o&&(typeof o=="function"?o(e):o.current=e)}function ke({asChild:o=!1,children:e}){const n=se("TooltipTrigger"),{open:s,contentId:r,setAnchor:l,openNow:c,openDelayed:a,closeNow:C,closeSoon:S}=n,T=t.isValidElement(e)?e:null,i=(T==null?void 0:T.props)??{},E=T==null?void 0:T.ref,p=t.useRef(E);p.current=E;const y=t.useRef(null),x=t.useCallback(A=>{y.current=A,l(A),J(p.current,A)},[l]),R=t.useRef(E);t.useLayoutEffect(()=>{R.current!==E&&(R.current=E,J(E,y.current))});const m={ref:x,onPointerMove:N(i.onPointerMove,a),onMouseEnter:N(i.onMouseEnter,a),onPointerLeave:N(i.onPointerLeave,S),onMouseLeave:N(i.onMouseLeave,S),onPointerDown:N(i.onPointerDown,C),onFocus:N(i.onFocus,c),onBlur:N(i.onBlur,C),"aria-describedby":s?r:i["aria-describedby"],"data-state":s?"open":"closed"};return o&&T?t.cloneElement(T,m):O.jsx("span",{...m,children:e})}function Me({side:o="top",align:e="center",sideOffset:n=8,collisionPadding:s=8,arrow:r=!0,className:l,style:c,children:a,...C}){const S=se("TooltipContent"),{open:T,anchor:i,contentId:E,hoverable:p,cancelClose:y,closeSoon:x}=S,R=t.useRef({cancelClose:y,closeSoon:x});R.current={cancelClose:y,closeSoon:x};const m=t.useCallback(()=>R.current.cancelClose(),[]),A=t.useCallback(()=>R.current.closeSoon(),[]),k=t.useMemo(()=>({content:a}),[a]);return O.jsx(Re,{open:T,anchor:i,side:o,align:e,sideOffset:n,collisionPadding:s,arrow:r,tooltipId:E,className:l,style:c,slots:k,"data-hoverable":p?"true":void 0,onPointerEnter:p?m:void 0,onPointerLeave:p?A:void 0,...C})}const je=f(u.POPOVER_SPEC),ce=t.createContext(null);function V(o){const e=t.useContext(ce);if(!e)throw new Error(`${o} 는 <Popover> 안에서만 쓸 수 있습니다.`);return e}function le(...o){return e=>{for(const n of o)n&&(typeof n=="function"?n(e):n.current=e)}}function ue(o,e){return n=>{typeof o=="function"&&o(n),e(n)}}function Oe({open:o,defaultOpen:e=!1,onOpenChange:n,children:s}){const[r,l]=t.useState(e),c=o!==void 0,a=c?!!o:r,[C,S]=t.useState(null),[T,i]=t.useState(null),E=`moz-popover-${t.useId()}`,p=t.useRef(n);p.current=n;const y=t.useCallback(R=>{var m;c||l(R),(m=p.current)==null||m.call(p,R)},[c]),x=t.useMemo(()=>({open:a,setOpen:y,contentId:E,triggerEl:C,anchorEl:T,setTriggerEl:S,setAnchorEl:i}),[a,y,E,C,T]);return O.jsx(ce.Provider,{value:x,children:s})}function Ie({asChild:o=!1,children:e}){const{open:n,setOpen:s,contentId:r,setTriggerEl:l}=V("PopoverTrigger"),c=t.isValidElement(e)?e:null,a=(c==null?void 0:c.props)??{},S={ref:t.useMemo(()=>le(l,c==null?void 0:c.ref),[l,c]),onClick:ue(a.onClick,()=>s(!n)),"aria-haspopup":"dialog","aria-expanded":n,"aria-controls":n?r:void 0,"data-state":n?"open":"closed"};return o&&c?t.cloneElement(c,S):O.jsx("span",{...S,children:e})}function Le({asChild:o=!1,children:e}){const{setAnchorEl:n}=V("PopoverAnchor"),s=t.isValidElement(e)?e:null,r=t.useMemo(()=>le(n,s==null?void 0:s.ref),[n,s]);return o&&s?t.cloneElement(s,{ref:r}):O.jsx("span",{ref:r,children:e})}function _e({asChild:o=!1,children:e}){const{setOpen:n}=V("PopoverClose"),s=t.isValidElement(e)?e:null,r=(s==null?void 0:s.props)??{},l={onClick:ue(r.onClick,()=>n(!1))};return o&&s?t.cloneElement(s,l):O.jsx("button",{type:"button",...l,children:e})}function ze({side:o="bottom",align:e="start",sideOffset:n=4,collisionPadding:s=8,matchTriggerWidth:r=!1,trapFocus:l=!0,className:c,style:a,onOpenAutoFocus:C,onCloseAutoFocus:S,onEscapeKeyDown:T,onInteractOutside:i,children:E,...p}){const{open:y,setOpen:x,contentId:R,triggerEl:m,anchorEl:A}=V("PopoverContent"),k=t.useRef({setOpen:x,triggerEl:m,anchorEl:A,onOpenAutoFocus:C,onCloseAutoFocus:S,onEscapeKeyDown:T,onInteractOutside:i});k.current={setOpen:x,triggerEl:m,anchorEl:A,onOpenAutoFocus:C,onCloseAutoFocus:S,onEscapeKeyDown:T,onInteractOutside:i};const j=t.useCallback(b=>{k.current.setOpen(!1)},[]),B=t.useCallback(b=>{var M,h;(h=(M=k.current).onEscapeKeyDown)==null||h.call(M,b)},[]),P=t.useCallback(b=>{var I,L,_,w;const M=(L=(I=b.detail)==null?void 0:I.originalEvent)==null?void 0:L.target,{triggerEl:h,anchorEl:z}=k.current;if(M&&(h&&h.contains(M)||z&&z.contains(M))){b.preventDefault();return}(w=(_=k.current).onInteractOutside)==null||w.call(_,b)},[]),d=t.useCallback(b=>{var M,h;(h=(M=k.current).onOpenAutoFocus)==null||h.call(M,b)},[]),v=t.useCallback(b=>{var M,h;(h=(M=k.current).onCloseAutoFocus)==null||h.call(M,b)},[]),g=t.useMemo(()=>({content:E}),[E]);return O.jsx(je,{open:y,anchor:A??m,side:o,align:e,sideOffset:n,collisionPadding:s,matchTriggerWidth:r,trapFocus:l,popoverId:R,className:c,style:a,slots:g,onRequestClose:j,onEscapeKeyDown:B,onInteractOutside:P,onOpenAutoFocus:d,onCloseAutoFocus:v,...p})}const we=f(u.COLLAPSIBLE_SPEC),ae=t.createContext(null);function ie(o){const e=t.useContext(ae);if(!e)throw new Error(`${o} 는 <Collapsible> 안에서만 쓸 수 있습니다.`);return e}function Be(...o){return e=>{for(const n of o)n&&(typeof n=="function"?n(e):n.current=e)}}function Y(o,e){return n=>{typeof o=="function"&&o(n),e(n)}}function pe(o,e){const n=[o,e].filter(s=>typeof s=="string"&&s.length>0).join(" ");return n.length>0?n:void 0}function Ne({open:o,defaultOpen:e=!1,onOpenChange:n,disabled:s=!1,asChild:r=!1,className:l,style:c,children:a,...C}){const[S,T]=t.useState(e),i=o!==void 0,E=i?!!o:S,p=`moz-collapsible-${t.useId()}`,y=t.useRef(n);y.current=n;const x=t.useCallback(j=>{var B;i||T(j),(B=y.current)==null||B.call(y,j)},[i]),R=t.useMemo(()=>({open:E,setOpen:x,contentId:p,disabled:s}),[E,x,p,s]),m={"data-state":E?"open":"closed","data-disabled":s?"":void 0,...C},A=t.isValidElement(a)?a:null,k=r&&A?t.cloneElement(A,{...m,className:pe(A.props.className,l),style:c??A.props.style}):O.jsx("div",{...m,className:l,style:c,children:a});return O.jsx(ae.Provider,{value:R,children:k})}function Ue({asChild:o=!1,disabled:e,className:n,style:s,onClick:r,children:l,...c}){const{open:a,setOpen:C,contentId:S,disabled:T}=ie("CollapsibleTrigger"),i=e??T,E=t.useCallback(()=>{i||C(!a)},[i,a,C]),p=t.isValidElement(l)?l:null,y=(p==null?void 0:p.props)??{},x={"aria-expanded":a,"aria-controls":S,"data-state":a?"open":"closed","data-disabled":i?"":void 0,...c};if(o&&p){const R=Be(p.ref);return t.cloneElement(p,{...x,ref:R,className:pe(y.className,n),style:s??y.style,onClick:Y(y.onClick,m=>{r==null||r(m),E()}),disabled:i||void 0})}return O.jsx("button",{type:"button",...x,className:n,style:s,disabled:i||void 0,onClick:Y(r,E),children:l})}function De({forceMount:o=!1,className:e,style:n,onHeightChange:s,children:r,...l}){const{open:c,contentId:a,disabled:C}=ie("CollapsibleContent"),S=t.useRef({onHeightChange:s});S.current={onHeightChange:s};const T=t.useCallback(E=>{var p,y;(y=(p=S.current).onHeightChange)==null||y.call(p,E)},[]),i=t.useMemo(()=>({content:r}),[r]);return O.jsx(we,{open:c,forceMount:o,contentId:a,disabled:C,className:e,style:n,slots:i,onHeightChange:T,...l})}const Ve=f(u.AVATAR_SPEC);function fe(o){return null}function de(o){return null}function Ke({className:o,style:e,onLoadingStatusChange:n,children:s,...r}){let l,c;t.Children.forEach(s,S=>{t.isValidElement(S)&&(S.type===fe?l=S.props:S.type===de&&(c=S.props))});const a=c==null?void 0:c.children,C=t.useMemo(()=>({fallback:a}),[a]);return O.jsx(Ve,{src:l==null?void 0:l.src,alt:l==null?void 0:l.alt,imageClass:l==null?void 0:l.className,fallbackClass:c==null?void 0:c.className,delayMs:c==null?void 0:c.delayMs,className:o,style:e,slots:C,onLoadingStatusChange:n,...r})}const We=f(u.SCROLLAREA_SPEC);function Fe({orientation:o="vertical",scrollbarVisibility:e="always",className:n,viewportClassName:s,scrollbarClassName:r,thumbClassName:l,viewportRef:c,style:a,onScroll:C,children:S,...T}){const[i,E]=t.useState(null),p=t.useCallback(y=>{E(y),typeof c=="function"?c(y):c&&(c.current=y)},[c]);return O.jsxs("div",{className:["moz-scroll-area",n].filter(Boolean).join(" "),style:a,...T,children:[O.jsx("div",{ref:p,className:["moz-scroll-area-viewport",s].filter(Boolean).join(" "),"data-moz-scroll-area-viewport":"",children:S}),O.jsx(We,{viewport:i,interactionRoot:i==null?void 0:i.parentElement,scrollbarVisibility:e,orientation:o,scrollbarClass:r,thumbClass:l,onScroll:C})]})}const $e=f(u.BUTTON_SPEC),qe=f(u.LABEL_SPEC),He=f(u.BADGE_SPEC),Ge=f(u.CHIP_SPEC),Xe=f(u.CALLOUT_SPEC),Je=f(u.TOGGLE_SPEC),Ye=f(u.BREADCRUMB_SPEC),Qe=f(u.EMPTYSTATE_SPEC),Ze=f(u.CHECKBOX_SPEC),et=f(u.RADIO_SPEC),tt=f(u.INPUT_SPEC),ot=f(u.PASSWORDINPUT_SPEC),nt=f(u.TEXTAREA_SPEC),rt=f(u.NUMBERINPUT_SPEC),st=f(u.TAB_SPEC),ct=f(u.SLIDER_SPEC),lt=f(u.CALENDAR_SPEC),ut=f(u.DATEINPUT_SPEC),at=f(u.POPUP_SPEC),it=f(u.SELECT_SPEC),pt=f(u.MULTISELECT_SPEC),ft=f(u.TIMEPICKER_SPEC),dt=f(u.TAGINPUT_SPEC),Ct=f(u.CONTEXTMENU_SPEC),Et=f(u.TABLESELECT_SPEC),mt=f(u.TREESELECT_SPEC),Pt=f(u.CONTROLLER_SPEC),bt=f(u.TOAST_SPEC);Object.defineProperty(exports,"createValidator",{enumerable:!0,get:()=>u.createValidator});Object.defineProperty(exports,"enUS",{enumerable:!0,get:()=>u.enUS});Object.defineProperty(exports,"jaJP",{enumerable:!0,get:()=>u.jaJP});Object.defineProperty(exports,"koKR",{enumerable:!0,get:()=>u.koKR});Object.defineProperty(exports,"useToast",{enumerable:!0,get:()=>u.useToast});Object.defineProperty(exports,"zhCN",{enumerable:!0,get:()=>u.zhCN});exports.Avatar=Ke;exports.AvatarFallback=de;exports.AvatarImage=fe;exports.Badge=He;exports.BreadCrumb=Ye;exports.Button=$e;exports.Calendar=lt;exports.Callout=Xe;exports.CheckBox=Ze;exports.Chip=Ge;exports.Collapsible=Ne;exports.CollapsibleContent=De;exports.CollapsibleTrigger=Ue;exports.ContextMenu=Ct;exports.Controller=Pt;exports.DateInput=ut;exports.EmptyState=Qe;exports.Input=tt;exports.Label=qe;exports.MozComponentLocaleContext=q;exports.MozComponentLocaleProvider=be;exports.MozContextWrapperContext=H;exports.MultiSelect=pt;exports.NumberInput=rt;exports.Pane=te;exports.PasswordInput=ot;exports.Popover=Oe;exports.PopoverAnchor=Le;exports.PopoverClose=_e;exports.PopoverContent=ze;exports.PopoverTrigger=Ie;exports.Popup=at;exports.Radio=et;exports.ReactRenderer=Q;exports.ScrollArea=Fe;exports.Select=it;exports.Slider=ct;exports.SplitPane=xe;exports.Tab=st;exports.TableSelect=Et;exports.TagInput=dt;exports.TextArea=nt;exports.TimePicker=ft;exports.Toast=bt;exports.Toggle=Je;exports.Tooltip=Ae;exports.TooltipContent=Me;exports.TooltipProvider=he;exports.TooltipTrigger=ke;exports.TreeSelect=mt;exports.Validator=Se;exports.ValidatorReactContext=D;exports.createMozComponent=f;exports.useMozComponentLocale=Z;exports.useMozContextWrapper=ee;exports.useValidatorContext=Te;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|