@juejin-opensource/jusage 0.1.1 → 0.1.2

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.
@@ -1 +1 @@
1
- import{t as p,R as l,j as t,c7 as v,r as s,c8 as g,a9 as c,c2 as f,c3 as x,a7 as h,c1 as w,c9 as u,ca as m,a$ as $}from"./index-DKJwDJt7.js";const j=p({slots:{base:"popover",dialog:"popover__dialog",heading:"popover__heading",trigger:"popover__trigger"}}),n=s.createContext({}),d=({children:o,...a})=>{const r=l.useMemo(()=>j(),[]);return t.jsx(n,{value:{slots:r},children:t.jsx(v,{"data-slot":"popover-root",...a,children:o})})},b=({children:o,className:a,...r})=>{const{slots:e}=s.use(n);return t.jsx(n,{value:{slots:e},children:t.jsx(f,{value:{variant:"default"},children:t.jsx(x,{...r,className:h(a,e==null?void 0:e.base()),children:o})})})},C=({children:o,className:a,...r})=>{const e=t.jsx("svg",{"data-slot":"popover-overlay-arrow",fill:"none",height:"12",viewBox:"0 0 12 12",width:"12",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 0C5.48483 8 6.5 8 12 0Z"})}),i=l.isValidElement(o)?l.cloneElement(o,{"data-slot":"popover-overlay-arrow"}):e;return t.jsx(w,{"data-slot":"popover-overlay-arrow-group",...r,className:a,children:i})},P=({children:o,className:a,...r})=>{const{slots:e}=s.use(n);return t.jsx(u,{"data-slot":"popover-dialog",...r,className:c(e==null?void 0:e.dialog,a),children:o})},R=({children:o,className:a,...r})=>{const{slots:e}=s.use(n);return t.jsx(m,{children:t.jsx($.div,{className:c(e==null?void 0:e.trigger,a),"data-slot":"popover-trigger",role:"button",...r,children:o})})},E=({children:o,className:a,...r})=>{const{slots:e}=s.use(n);return t.jsx(g,{slot:"title",...r,className:c(e==null?void 0:e.heading,a),children:o})},_=Object.assign(d,{Root:d,Trigger:R,Dialog:P,Arrow:C,Content:b,Heading:E}),A=o=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},o),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.488 3.43a.75.75 0 0 1 .081 1.058l-6 7a.75.75 0 0 1-1.1.042l-3.5-3.5A.75.75 0 0 1 4.03 6.97l2.928 2.927 5.473-6.385a.75.75 0 0 1 1.057-.081",clipRule:"evenodd"})),M=o=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},o),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06",clipRule:"evenodd"}));export{M as C,_ as P,A as a};
1
+ import{t as p,R as l,j as t,cc as v,r as s,cd as g,a9 as c,be as f,c8 as x,a7 as h,bQ as w,ce as u,cf as m,b4 as b}from"./index-CWecC3aA.js";const $=p({slots:{base:"popover",dialog:"popover__dialog",heading:"popover__heading",trigger:"popover__trigger"}}),n=s.createContext({}),d=({children:o,...r})=>{const a=l.useMemo(()=>$(),[]);return t.jsx(n,{value:{slots:a},children:t.jsx(v,{"data-slot":"popover-root",...r,children:o})})},j=({children:o,className:r,...a})=>{const{slots:e}=s.use(n);return t.jsx(n,{value:{slots:e},children:t.jsx(f,{value:{variant:"default"},children:t.jsx(x,{...a,className:h(r,e==null?void 0:e.base()),children:o})})})},C=({children:o,className:r,...a})=>{const e=t.jsx("svg",{"data-slot":"popover-overlay-arrow",fill:"none",height:"12",viewBox:"0 0 12 12",width:"12",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 0C5.48483 8 6.5 8 12 0Z"})}),i=l.isValidElement(o)?l.cloneElement(o,{"data-slot":"popover-overlay-arrow"}):e;return t.jsx(w,{"data-slot":"popover-overlay-arrow-group",...a,className:r,children:i})},P=({children:o,className:r,...a})=>{const{slots:e}=s.use(n);return t.jsx(u,{"data-slot":"popover-dialog",...a,className:c(e==null?void 0:e.dialog,r),children:o})},R=({children:o,className:r,...a})=>{const{slots:e}=s.use(n);return t.jsx(m,{children:t.jsx(b.div,{className:c(e==null?void 0:e.trigger,r),"data-slot":"popover-trigger",role:"button",...a,children:o})})},E=({children:o,className:r,...a})=>{const{slots:e}=s.use(n);return t.jsx(g,{slot:"title",...a,className:c(e==null?void 0:e.heading,r),children:o})},_=Object.assign(d,{Root:d,Trigger:R,Dialog:P,Arrow:C,Content:j,Heading:E}),A=o=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},o),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.488 3.43a.75.75 0 0 1 .081 1.058l-6 7a.75.75 0 0 1-1.1.042l-3.5-3.5A.75.75 0 0 1 4.03 6.97l2.928 2.927 5.473-6.385a.75.75 0 0 1 1.057-.081",clipRule:"evenodd"})),M=o=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},o),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06",clipRule:"evenodd"}));export{M as C,_ as P,A as a};