import{c as t,d as n,b as s,D as e,o,e as c,f as i,E as r,p as a,g as $,h as l,i as p,j as f,k as m,F as g,l as u,m as h,A as d,y as b,G as y}from"./chunk.82446879.js";import{K as v,g as x}from"./chunk.f5a3f321.js";import"./chunk.e8a2e241.js";import{a as I}from"./chunk.4b4ee497.js";import"./chunk.b01e898f.js";import{a as k}from"./chunk.fb378401.js";function w(t){let n;return{c(){n=i("Link")},l(t){n=p(t,"Link")},m(t,s){u(t,n,s)},d(t){t&&f(n)}}}function j(t){let n;const s=new x({props:{type:"is-link",$$slots:{default:[w]},$$scope:{ctx:t}}});return{c(){e(s.$$.fragment)},l(t){r(s.$$.fragment,t)},m(t,e){g(s,t,e),n=!0},p(t,n){const e={};2&n&&(e.$$scope={dirty:n,ctx:t}),s.$set(e)},i(t){n||(d(s.$$.fragment,t),n=!0)},o(t){b(s.$$.fragment,t),n=!1},d(t){y(s,t)}}}function Z(t){let n,s;const o=new v({props:{content:"你好",$$slots:{default:[j]},$$scope:{ctx:t}}});return{c(){n=c("div"),e(o.$$.fragment),this.h()},l(t){n=$(t,"DIV",{slot:!0});var s=l(n);r(o.$$.fragment,s),s.forEach(f),this.h()},h(){m(n,"slot","preview")},m(t,e){u(t,n,e),g(o,n,null),s=!0},p(t,n){const s={};2&n&&(s.$$scope={dirty:n,ctx:t}),o.$set(s)},i(t){s||(d(o.$$.fragment,t),s=!0)},o(t){b(o.$$.fragment,t),s=!1},d(t){t&&f(n),y(o)}}}function H(t){let n;return{c(){n=i("Link")},l(t){n=p(t,"Link")},m(t,s){u(t,n,s)},d(t){t&&f(n)}}}function L(t){let n;const s=new x({props:{type:"is-link",$$slots:{default:[H]},$$scope:{ctx:t}}});return{c(){e(s.$$.fragment)},l(t){r(s.$$.fragment,t)},m(t,e){g(s,t,e),n=!0},p(t,n){const e={};2&n&&(e.$$scope={dirty:n,ctx:t}),s.$set(e)},i(t){n||(d(s.$$.fragment,t),n=!0)},o(t){b(s.$$.fragment,t),n=!1},d(t){y(s,t)}}}function B(t){let n,s;const o=new v({props:{config:t[0],$$slots:{default:[L]},$$scope:{ctx:t}}});return{c(){n=c("div"),e(o.$$.fragment),this.h()},l(t){n=$(t,"DIV",{slot:!0});var s=l(n);r(o.$$.fragment,s),s.forEach(f),this.h()},h(){m(n,"slot","preview")},m(t,e){u(t,n,e),g(o,n,null),s=!0},p(t,n){const s={};2&n&&(s.$$scope={dirty:n,ctx:t}),o.$set(s)},i(t){s||(d(o.$$.fragment,t),s=!0)},o(t){b(o.$$.fragment,t),s=!1},d(t){t&&f(n),y(o)}}}function T(t){let n,s,v,x,w,j,H,L,T,X,G,J,Q,R;const V=new I({props:{title:"Tip",subtitle:"提示"}}),A=new k({props:{code:"<script>\n  import { Tip } from 'svelma-pro'\n<\/script>\n\n<Tip content=\"你好\"></Tip>\n",$$slots:{preview:[Z]},$$scope:{ctx:t}}}),F=new k({props:{code:"<script>\nimport { Tip } from 'svelma-pro'\n\nlet config = {\n    content: '<div class=\"tooltip\">Styled tooltip text</div>',\n    allowHTML: true,\n    trigger: 'click',\n    onShow: function(instance) {\n        console.log(instance);\n}\n<\/script>\n\n<style>\n  :global(.tooltip) {\n    color: orange;\n    font-weight: bold;\n    text-transform: uppercase;\n  }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9yb3V0ZXMvY29tcG9uZW50cy90aXAuc3ZlbHRlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7RUFDRTtJQUNFLGFBQWE7SUFDYixpQkFBaUI7SUFDakIseUJBQXlCO0VBQzNCIiwiZmlsZSI6InNyYy9yb3V0ZXMvY29tcG9uZW50cy90aXAuc3ZlbHRlIiwic291cmNlc0NvbnRlbnQiOlsiXG4gIDpnbG9iYWwoLnRvb2x0aXApIHtcbiAgICBjb2xvcjogb3JhbmdlO1xuICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG4gIH1cbiJdfQ== */</style>\n\n<Tip config=\"{config}\">\n   <Button type=\"is-link\">Link</Button>\n</Tip>\n",$$slots:{preview:[B]},$$scope:{ctx:t}}});return{c(){e(V.$$.fragment),n=o(),e(A.$$.fragment),s=o(),v=c("hr"),x=o(),w=c("p"),j=i("自定义设置"),H=o(),L=c("p"),T=i("更多配置请参考"),X=c("a"),G=i("tippy"),J=i("."),Q=o(),e(F.$$.fragment),this.h()},l(t){r(V.$$.fragment,t),n=a(t),r(A.$$.fragment,t),s=a(t),v=$(t,"HR",{class:!0}),x=a(t),w=$(t,"P",{class:!0});var e=l(w);j=p(e,"自定义设置"),e.forEach(f),H=a(t),L=$(t,"P",{class:!0});var o=l(L);T=p(o,"更多配置请参考"),X=$(o,"A",{href:!0});var c=l(X);G=p(c,"tippy"),c.forEach(f),J=p(o,"."),o.forEach(f),Q=a(t),r(F.$$.fragment,t),this.h()},h(){m(v,"class","is-medium"),m(w,"class","title is-4"),m(X,"href","https://atomiks.github.io/tippyjs/"),m(L,"class","content")},m(t,e){g(V,t,e),u(t,n,e),g(A,t,e),u(t,s,e),u(t,v,e),u(t,x,e),u(t,w,e),h(w,j),u(t,H,e),u(t,L,e),h(L,T),h(L,X),h(X,G),h(L,J),u(t,Q,e),g(F,t,e),R=!0},p(t,[n]){const s={};2&n&&(s.$$scope={dirty:n,ctx:t}),A.$set(s);const e={};2&n&&(e.$$scope={dirty:n,ctx:t}),F.$set(e)},i(t){R||(d(V.$$.fragment,t),d(A.$$.fragment,t),d(F.$$.fragment,t),R=!0)},o(t){b(V.$$.fragment,t),b(A.$$.fragment,t),b(F.$$.fragment,t),R=!1},d(t){y(V,t),t&&f(n),y(A,t),t&&f(s),t&&f(v),t&&f(x),t&&f(w),t&&f(H),t&&f(L),t&&f(Q),y(F,t)}}}function X(t){return[{content:'<div class="tooltip">Styled tooltip text</div>',allowHTML:!0,trigger:"click",onShow(t){console.log(t)}}]}export default class extends t{constructor(t){super(),n(this,t,X,T,s,{})}}
//# sourceMappingURL=tip.277ff470.js.map
