@vmscloud/moz-ui-components-react 0.1.53 → 0.1.55
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/components.d.ts +7 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +378 -354
- package/dist/index.js.map +1 -1
- package/dist/useNotification.d.ts +31 -0
- package/package.json +2 -2
package/dist/components.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export type { ToastOptions, ToastInstance, ToastProps, ToastType, ToastPosition
|
|
|
5
5
|
export type { BadgeProps, BadgeTone, BadgeAppearance, BadgeSize } from '@vmscloud/moz-ui-components-core';
|
|
6
6
|
export type { ChipProps, ChipTone, ChipAppearance, ChipSize } from '@vmscloud/moz-ui-components-core';
|
|
7
7
|
export type { CalloutProps, CalloutTone } from '@vmscloud/moz-ui-components-core';
|
|
8
|
+
export type { NotificationCardProps, NotificationItemProps, NotificationTone, NotificationPosition, NotificationHandle, } from '@vmscloud/moz-ui-components-core';
|
|
9
|
+
export { useNotification } from './useNotification';
|
|
10
|
+
export type { NotificationOptions, NotificationInstance } from './useNotification';
|
|
8
11
|
/**
|
|
9
12
|
* 각 컴포넌트는 공용 브릿지 + 코어 스펙으로 1줄 정의.
|
|
10
13
|
* 사용 예:
|
|
@@ -86,6 +89,10 @@ export { SplitPane, Pane } from './split-pane';
|
|
|
86
89
|
export declare const Toast: import('react').ForwardRefExoticComponent<Omit<Record<string, any>, "ref"> & import('react').RefAttributes<{
|
|
87
90
|
readonly el: HTMLElement | null;
|
|
88
91
|
}>>;
|
|
92
|
+
export declare const NotificationCard: import('react').ForwardRefExoticComponent<Omit<Record<string, any>, "ref"> & import('react').RefAttributes<import('./createMozComponent').MozHandle<import('@vmscloud/moz-ui-components-core').NotificationCardApi>>>;
|
|
93
|
+
export declare const NotificationItem: import('react').ForwardRefExoticComponent<Omit<Record<string, any>, "ref"> & import('react').RefAttributes<{
|
|
94
|
+
readonly el: HTMLElement | null;
|
|
95
|
+
}>>;
|
|
89
96
|
export { Tooltip, TooltipProvider, TooltipTrigger, TooltipContent } from './tooltip';
|
|
90
97
|
export type { TooltipProps, TooltipProviderProps, TooltipTriggerProps, TooltipContentProps, } from './tooltip';
|
|
91
98
|
export { Popover, PopoverTrigger, PopoverAnchor, PopoverContent, PopoverClose } from './popover';
|
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"),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;
|
|
1
|
+
"use strict";var Ce=Object.defineProperty;var me=(o,e,n)=>e in o?Ce(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n;var W=(o,e,n)=>me(o,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),Ee=require("react-dom"),Pe=require("react-dom/client"),a=require("@vmscloud/moz-ui-components-core"),M=require("react/jsx-runtime"),K=new Set;let F=null;function J(o){K.add(o),F==null&&(F=setTimeout(()=>{F=null;const e=Array.from(K);K.clear();for(const n of e)n.unmount()},0))}class q{constructor(){W(this,"contextWrapper",null);W(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 u=t.createElement(n,c);r.render(this.contextWrapper?this.contextWrapper(u):u)};return l(s),{update:c=>l(c),destroy:()=>{this.roots.delete(r),J(r)}}}unmountAll(){for(const e of this.roots)J(e);this.roots.clear()}get size(){return this.roots.size}}const H=t.createContext(a.koKR),G=t.createContext(null);function be({locale:o=a.koKR,contextWrapper:e,children:n}){return t.createElement(H.Provider,{value:o},t.createElement(G.Provider,{value:e??null},n))}function X(){return t.useContext(H)}function Y(){return t.useContext(G)}const D=t.createContext(null);function Se({children:o}){const e=t.useRef();e.current||(e.current=a.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 Q(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),u=t.useRef(void 0),C=t.useRef(void 0),[P,b]=t.useState(()=>new Map);if(!C.current){const T={};Object.defineProperty(T,"el",{get:()=>{var E;return((E=u.current)==null?void 0:E.el)??null},enumerable:!0}),C.current=T}const i=t.useRef();i.current||(i.current=new q);const d=Y();i.current.setContextWrapper(d);const p=X(),m=t.useContext(D),v=t.useRef(r);v.current=r;const x=((T,...E)=>{const R=U(String(T)),g=v.current[R];typeof g=="function"&&g(...E)}),S=()=>{const T=v.current,E={};for(const R of Object.keys(T))n.has(R)||(E[R]=T[R]);for(const R of o.props)E[R]=T[R];for(const R of Object.keys(e))E[e[R].prop]=T[R];return T.className!=null&&(E.class=T.className),T.style!=null&&(E.style=T.style),T.id!=null&&(E.id=T.id),E};t.useLayoutEffect(()=>{const T=i.current,E={};for(const y of o.slots??[]){const O=y==="default"?"children":y;v.current[O]!=null&&(E[y]=(A,N)=>{const j=({scope:L})=>{const z=v.current[O];return(typeof z=="function"?z(L):z)??null},_=T.mountInstance(A,j,{scope:N});return{update:L=>_.update({scope:L}),dispose:_.destroy}})}const R=y=>{const O=v.current.slots;if(!(O==null||O[y]==null))return(A,N)=>{const j=A.getAttribute("data-moz-slot-id")??y;return b(_=>new Map(_).set(j,{name:y,el:A,scope:N})),{update:_=>b(L=>{const z=L.get(j);return!z||ye(z.scope,_)?L:new Map(L).set(j,{...z,scope:_})}),dispose:()=>b(_=>{if(!_.has(j))return _;const L=new Map(_);return L.delete(j),L})}}};u.current=o.core(c.current,S(),x,{slots:E,slotResolver:R,locale:p,validator:m??void 0,providedKeys:Object.keys(v.current)});const g=u.current.api;if(g)for(const y of Object.keys(g))y!=="el"&&(C.current[y]=g[y]);return()=>{var y;(y=u.current)==null||y.destroy(),T.unmountAll(),u.current=void 0}},[]);const h=()=>{const T=v.current,E={};for(const g of o.slots??[]){const y=g==="default"?"children":g;E[y]=T[y]}const R=T.slots;return E.__dynamicSlotKeys=R?Object.keys(R).sort().join("\0"):"",E},k=t.useRef(null);t.useEffect(()=>{const T=u.current;if(!T)return;const E=S(),R=h(),g=k.current;g&&g.locale===p&&Q(g.props,E)&&Q(g.slots,R)||(k.current={props:E,slots:R,locale:p},(!g||g.locale!==p)&&T.setLocale(p),T.update(E,{replace:!0,sync:o.syncUpdate}))}),t.useImperativeHandle(l,()=>C.current,[]);const I=r.slots,w=Array.from(P,([T,E])=>{const R=I==null?void 0:I[E.name],g=(typeof R=="function"?R(E.scope):R)??null;return Ee.createPortal(g,E.el,T)});return t.createElement(t.Fragment,null,t.createElement("div",{ref:c,style:{display:"contents"}}),...w)});return s.displayName=o.name,s}const ve=["avatar","heading","description","actions"];function xe(o={}){const e=Y(),n=X(),s=t.useRef({contextWrapper:e,locale:n,globalOptions:o});return s.current={contextWrapper:e,locale:n,globalOptions:o},t.useMemo(()=>{const r=a.useNotification();return{open:(c={})=>{const{contextWrapper:u,locale:C,globalOptions:P}=s.current,b={...P,...c},i={...b},d=new q;d.setContextWrapper(u);const p={};for(const m of ve){const v=b[m];delete i[m],!(v==null||v===!1)&&(p[m]=x=>({dispose:d.mountInstance(x,()=>v,{}).destroy}))}return r.open(i,{slots:p,locale:C,onRemoved:()=>d.unmountAll()})},close:r.close,closeAll:r.closeAll}},[])}const Re=f(a.SPLITPANE_SPEC),te=o=>null,ge=({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}),M.jsx(Re,{panes:s,horizontal:o,...r})},Ae=f(a.TOOLTIP_SPEC),$=new Set,oe=200,he=100,ne=t.createContext({delayDuration:oe,disableHoverableContent:!1});function ke({delayDuration:o=oe,disableHoverableContent:e=!1,children:n}){const s=t.useMemo(()=>({delayDuration:o,disableHoverableContent:e}),[o,e]);return M.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 Oe({open:o,defaultOpen:e=!1,onOpenChange:n,delayDuration:s,disableHoverableContent:r,children:l}){const c=t.useContext(ne),u=s??c.delayDuration,C=!(r??c.disableHoverableContent),[P,b]=t.useState(e),i=o!==void 0,d=i?!!o:P,[p,m]=t.useState(null),v=`moz-tooltip-${t.useId()}`,x=t.useRef(null),S=t.useRef(null),h=t.useRef(n);h.current=n;const k=t.useCallback(()=>{x.current&&clearTimeout(x.current),S.current&&clearTimeout(S.current),x.current=null,S.current=null},[]),I=t.useCallback(A=>{var N;i||b(A),(N=h.current)==null||N.call(h,A)},[i]),w=t.useCallback(()=>{k(),I(!0)},[k,I]),T=t.useCallback(()=>{if(S.current&&(clearTimeout(S.current),S.current=null),!x.current){if(u<=0){I(!0);return}x.current=setTimeout(()=>{x.current=null,I(!0)},u)}},[u,I]),E=t.useCallback(()=>{k(),I(!1)},[k,I]),R=t.useCallback(()=>{if(x.current&&(clearTimeout(x.current),x.current=null),!C){I(!1);return}S.current||(S.current=setTimeout(()=>{S.current=null,I(!1)},he))},[C,I]),g=t.useCallback(()=>{S.current&&(clearTimeout(S.current),S.current=null)},[]);t.useEffect(()=>k,[k]);const y=t.useRef(E);y.current=E,t.useEffect(()=>{if(!d)return;const A=()=>y.current();for(const j of Array.from($))j();$.add(A);const N=j=>{j.key==="Escape"&&y.current()};return document.addEventListener("keydown",N),()=>{$.delete(A),document.removeEventListener("keydown",N)}},[d]);const O=t.useMemo(()=>({open:d,contentId:v,anchor:p,setAnchor:m,hoverable:C,openNow:w,openDelayed:T,closeNow:E,closeSoon:R,cancelClose:g}),[d,v,p,C,w,T,E,R,g]);return M.jsx(re.Provider,{value:O,children:l})}function B(o,e){return n=>{typeof o=="function"&&o(n),e()}}function Z(o,e){o&&(typeof o=="function"?o(e):o.current=e)}function Ie({asChild:o=!1,children:e}){const n=se("TooltipTrigger"),{open:s,contentId:r,setAnchor:l,openNow:c,openDelayed:u,closeNow:C,closeSoon:P}=n,b=t.isValidElement(e)?e:null,i=(b==null?void 0:b.props)??{},d=b==null?void 0:b.ref,p=t.useRef(d);p.current=d;const m=t.useRef(null),v=t.useCallback(h=>{m.current=h,l(h),Z(p.current,h)},[l]),x=t.useRef(d);t.useLayoutEffect(()=>{x.current!==d&&(x.current=d,Z(d,m.current))});const S={ref:v,onPointerMove:B(i.onPointerMove,u),onMouseEnter:B(i.onMouseEnter,u),onPointerLeave:B(i.onPointerLeave,P),onMouseLeave:B(i.onMouseLeave,P),onPointerDown:B(i.onPointerDown,C),onFocus:B(i.onFocus,c),onBlur:B(i.onBlur,C),"aria-describedby":s?r:i["aria-describedby"],"data-state":s?"open":"closed"};return o&&b?t.cloneElement(b,S):M.jsx("span",{...S,children:e})}function Me({side:o="top",align:e="center",sideOffset:n=8,collisionPadding:s=8,arrow:r=!0,className:l,style:c,children:u,...C}){const P=se("TooltipContent"),{open:b,anchor:i,contentId:d,hoverable:p,cancelClose:m,closeSoon:v}=P,x=t.useRef({cancelClose:m,closeSoon:v});x.current={cancelClose:m,closeSoon:v};const S=t.useCallback(()=>x.current.cancelClose(),[]),h=t.useCallback(()=>x.current.closeSoon(),[]),k=t.useMemo(()=>({content:u}),[u]);return M.jsx(Ae,{open:b,anchor:i,side:o,align:e,sideOffset:n,collisionPadding:s,arrow:r,tooltipId:d,className:l,style:c,slots:k,"data-hoverable":p?"true":void 0,onPointerEnter:p?S:void 0,onPointerLeave:p?h:void 0,...C})}const je=f(a.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 ae(o,e){return n=>{typeof o=="function"&&o(n),e(n)}}function _e({open:o,defaultOpen:e=!1,onOpenChange:n,children:s}){const[r,l]=t.useState(e),c=o!==void 0,u=c?!!o:r,[C,P]=t.useState(null),[b,i]=t.useState(null),d=`moz-popover-${t.useId()}`,p=t.useRef(n);p.current=n;const m=t.useCallback(x=>{var S;c||l(x),(S=p.current)==null||S.call(p,x)},[c]),v=t.useMemo(()=>({open:u,setOpen:m,contentId:d,triggerEl:C,anchorEl:b,setTriggerEl:P,setAnchorEl:i}),[u,m,d,C,b]);return M.jsx(ce.Provider,{value:v,children:s})}function Le({asChild:o=!1,children:e}){const{open:n,setOpen:s,contentId:r,setTriggerEl:l}=V("PopoverTrigger"),c=t.isValidElement(e)?e:null,u=(c==null?void 0:c.props)??{},P={ref:t.useMemo(()=>le(l,c==null?void 0:c.ref),[l,c]),onClick:ae(u.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,P):M.jsx("span",{...P,children:e})}function Ne({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}):M.jsx("span",{ref:r,children:e})}function ze({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:ae(r.onClick,()=>n(!1))};return o&&s?t.cloneElement(s,l):M.jsx("button",{type:"button",...l,children:e})}function we({side:o="bottom",align:e="start",sideOffset:n=4,collisionPadding:s=8,matchTriggerWidth:r=!1,trapFocus:l=!0,className:c,style:u,onOpenAutoFocus:C,onCloseAutoFocus:P,onEscapeKeyDown:b,onInteractOutside:i,children:d,...p}){const{open:m,setOpen:v,contentId:x,triggerEl:S,anchorEl:h}=V("PopoverContent"),k=t.useRef({setOpen:v,triggerEl:S,anchorEl:h,onOpenAutoFocus:C,onCloseAutoFocus:P,onEscapeKeyDown:b,onInteractOutside:i});k.current={setOpen:v,triggerEl:S,anchorEl:h,onOpenAutoFocus:C,onCloseAutoFocus:P,onEscapeKeyDown:b,onInteractOutside:i};const I=t.useCallback(y=>{k.current.setOpen(!1)},[]),w=t.useCallback(y=>{var O,A;(A=(O=k.current).onEscapeKeyDown)==null||A.call(O,y)},[]),T=t.useCallback(y=>{var j,_,L,z;const O=(_=(j=y.detail)==null?void 0:j.originalEvent)==null?void 0:_.target,{triggerEl:A,anchorEl:N}=k.current;if(O&&(A&&A.contains(O)||N&&N.contains(O))){y.preventDefault();return}(z=(L=k.current).onInteractOutside)==null||z.call(L,y)},[]),E=t.useCallback(y=>{var O,A;(A=(O=k.current).onOpenAutoFocus)==null||A.call(O,y)},[]),R=t.useCallback(y=>{var O,A;(A=(O=k.current).onCloseAutoFocus)==null||A.call(O,y)},[]),g=t.useMemo(()=>({content:d}),[d]);return M.jsx(je,{open:m,anchor:h??S,side:o,align:e,sideOffset:n,collisionPadding:s,matchTriggerWidth:r,trapFocus:l,popoverId:x,className:c,style:u,slots:g,onRequestClose:I,onEscapeKeyDown:w,onInteractOutside:T,onOpenAutoFocus:E,onCloseAutoFocus:R,...p})}const Be=f(a.COLLAPSIBLE_SPEC),ue=t.createContext(null);function ie(o){const e=t.useContext(ue);if(!e)throw new Error(`${o} 는 <Collapsible> 안에서만 쓸 수 있습니다.`);return e}function Ue(...o){return e=>{for(const n of o)n&&(typeof n=="function"?n(e):n.current=e)}}function ee(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 De({open:o,defaultOpen:e=!1,onOpenChange:n,disabled:s=!1,asChild:r=!1,className:l,style:c,children:u,...C}){const[P,b]=t.useState(e),i=o!==void 0,d=i?!!o:P,p=`moz-collapsible-${t.useId()}`,m=t.useRef(n);m.current=n;const v=t.useCallback(I=>{var w;i||b(I),(w=m.current)==null||w.call(m,I)},[i]),x=t.useMemo(()=>({open:d,setOpen:v,contentId:p,disabled:s}),[d,v,p,s]),S={"data-state":d?"open":"closed","data-disabled":s?"":void 0,...C},h=t.isValidElement(u)?u:null,k=r&&h?t.cloneElement(h,{...S,className:pe(h.props.className,l),style:c??h.props.style}):M.jsx("div",{...S,className:l,style:c,children:u});return M.jsx(ue.Provider,{value:x,children:k})}function Ve({asChild:o=!1,disabled:e,className:n,style:s,onClick:r,children:l,...c}){const{open:u,setOpen:C,contentId:P,disabled:b}=ie("CollapsibleTrigger"),i=e??b,d=t.useCallback(()=>{i||C(!u)},[i,u,C]),p=t.isValidElement(l)?l:null,m=(p==null?void 0:p.props)??{},v={"aria-expanded":u,"aria-controls":P,"data-state":u?"open":"closed","data-disabled":i?"":void 0,...c};if(o&&p){const x=Ue(p.ref);return t.cloneElement(p,{...v,ref:x,className:pe(m.className,n),style:s??m.style,onClick:ee(m.onClick,S=>{r==null||r(S),d()}),disabled:i||void 0})}return M.jsx("button",{type:"button",...v,className:n,style:s,disabled:i||void 0,onClick:ee(r,d),children:l})}function We({forceMount:o=!1,className:e,style:n,onHeightChange:s,children:r,...l}){const{open:c,contentId:u,disabled:C}=ie("CollapsibleContent"),P=t.useRef({onHeightChange:s});P.current={onHeightChange:s};const b=t.useCallback(d=>{var p,m;(m=(p=P.current).onHeightChange)==null||m.call(p,d)},[]),i=t.useMemo(()=>({content:r}),[r]);return M.jsx(Be,{open:c,forceMount:o,contentId:u,disabled:C,className:e,style:n,slots:i,onHeightChange:b,...l})}const Ke=f(a.AVATAR_SPEC);function fe(o){return null}function de(o){return null}function Fe({className:o,style:e,onLoadingStatusChange:n,children:s,...r}){let l,c;t.Children.forEach(s,P=>{t.isValidElement(P)&&(P.type===fe?l=P.props:P.type===de&&(c=P.props))});const u=c==null?void 0:c.children,C=t.useMemo(()=>({fallback:u}),[u]);return M.jsx(Ke,{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 $e=f(a.SCROLLAREA_SPEC);function qe({orientation:o="vertical",scrollbarVisibility:e="always",className:n,viewportClassName:s,scrollbarClassName:r,thumbClassName:l,viewportRef:c,style:u,onScroll:C,children:P,...b}){const[i,d]=t.useState(null),p=t.useCallback(m=>{d(m),typeof c=="function"?c(m):c&&(c.current=m)},[c]);return M.jsxs("div",{className:["moz-scroll-area",n].filter(Boolean).join(" "),style:u,...b,children:[M.jsx("div",{ref:p,className:["moz-scroll-area-viewport",s].filter(Boolean).join(" "),"data-moz-scroll-area-viewport":"",children:P}),M.jsx($e,{viewport:i,interactionRoot:i==null?void 0:i.parentElement,scrollbarVisibility:e,orientation:o,scrollbarClass:r,thumbClass:l,onScroll:C})]})}const He=f(a.BUTTON_SPEC),Ge=f(a.LABEL_SPEC),Xe=f(a.BADGE_SPEC),Ye=f(a.CHIP_SPEC),Je=f(a.CALLOUT_SPEC),Qe=f(a.TOGGLE_SPEC),Ze=f(a.BREADCRUMB_SPEC),et=f(a.EMPTYSTATE_SPEC),tt=f(a.CHECKBOX_SPEC),ot=f(a.RADIO_SPEC),nt=f(a.INPUT_SPEC),rt=f(a.PASSWORDINPUT_SPEC),st=f(a.TEXTAREA_SPEC),ct=f(a.NUMBERINPUT_SPEC),lt=f(a.TAB_SPEC),at=f(a.SLIDER_SPEC),ut=f(a.CALENDAR_SPEC),it=f(a.DATEINPUT_SPEC),pt=f(a.POPUP_SPEC),ft=f(a.SELECT_SPEC),dt=f(a.MULTISELECT_SPEC),Ct=f(a.TIMEPICKER_SPEC),mt=f(a.TAGINPUT_SPEC),Et=f(a.CONTEXTMENU_SPEC),Pt=f(a.TABLESELECT_SPEC),bt=f(a.TREESELECT_SPEC),St=f(a.CONTROLLER_SPEC),Tt=f(a.TOAST_SPEC),yt=f(a.NOTIFICATION_CARD_SPEC),vt=f(a.NOTIFICATION_ITEM_SPEC);Object.defineProperty(exports,"createValidator",{enumerable:!0,get:()=>a.createValidator});Object.defineProperty(exports,"enUS",{enumerable:!0,get:()=>a.enUS});Object.defineProperty(exports,"jaJP",{enumerable:!0,get:()=>a.jaJP});Object.defineProperty(exports,"koKR",{enumerable:!0,get:()=>a.koKR});Object.defineProperty(exports,"useToast",{enumerable:!0,get:()=>a.useToast});Object.defineProperty(exports,"zhCN",{enumerable:!0,get:()=>a.zhCN});exports.Avatar=Fe;exports.AvatarFallback=de;exports.AvatarImage=fe;exports.Badge=Xe;exports.BreadCrumb=Ze;exports.Button=He;exports.Calendar=ut;exports.Callout=Je;exports.CheckBox=tt;exports.Chip=Ye;exports.Collapsible=De;exports.CollapsibleContent=We;exports.CollapsibleTrigger=Ve;exports.ContextMenu=Et;exports.Controller=St;exports.DateInput=it;exports.EmptyState=et;exports.Input=nt;exports.Label=Ge;exports.MozComponentLocaleContext=H;exports.MozComponentLocaleProvider=be;exports.MozContextWrapperContext=G;exports.MultiSelect=dt;exports.NotificationCard=yt;exports.NotificationItem=vt;exports.NumberInput=ct;exports.Pane=te;exports.PasswordInput=rt;exports.Popover=_e;exports.PopoverAnchor=Ne;exports.PopoverClose=ze;exports.PopoverContent=we;exports.PopoverTrigger=Le;exports.Popup=pt;exports.Radio=ot;exports.ReactRenderer=q;exports.ScrollArea=qe;exports.Select=ft;exports.Slider=at;exports.SplitPane=ge;exports.Tab=lt;exports.TableSelect=Pt;exports.TagInput=mt;exports.TextArea=st;exports.TimePicker=Ct;exports.Toast=Tt;exports.Toggle=Qe;exports.Tooltip=Oe;exports.TooltipContent=Me;exports.TooltipProvider=ke;exports.TooltipTrigger=Ie;exports.TreeSelect=bt;exports.Validator=Se;exports.ValidatorReactContext=D;exports.createMozComponent=f;exports.useMozComponentLocale=X;exports.useMozContextWrapper=Y;exports.useNotification=xe;exports.useValidatorContext=Te;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|