diff --git a/.well-known/package.json b/.well-known/package.json index e2b30201..4a28cdcb 100644 --- a/.well-known/package.json +++ b/.well-known/package.json @@ -1,6 +1,6 @@ { "name": "@ryanatkn/fuz", - "version": "0.131.1", + "version": "0.131.2", "description": "Svelte UI library", "motto": "friendly user zystem", "glyph": "๐Ÿงถ", diff --git a/.well-known/src.json b/.well-known/src.json index 042327f4..ce421795 100644 --- a/.well-known/src.json +++ b/.well-known/src.json @@ -1,6 +1,6 @@ { "name": "@ryanatkn/fuz", - "version": "0.131.1", + "version": "0.131.2", "modules": { "./package.json": { "path": "package.json", diff --git a/_app/immutable/chunks/28.B3piIBRX.js b/_app/immutable/chunks/28.I7T-2iSw.js similarity index 95% rename from _app/immutable/chunks/28.B3piIBRX.js rename to _app/immutable/chunks/28.I7T-2iSw.js index 6e5a00a4..75d925ee 100644 --- a/_app/immutable/chunks/28.B3piIBRX.js +++ b/_app/immutable/chunks/28.I7T-2iSw.js @@ -1,4 +1,4 @@ -import{k as O,a as r,c as ve,t as v,p as pe}from"./disclose-version.D3rPzbyJ.js";import{a as ne,c as n,f as W,g as o,s as e,r as s,t as Q,p as le,a6 as H,G as q,a4 as z,d as N,a3 as fe}from"./runtime.B-gUiV1I.js";import{i as A,p as K}from"./if.DNsq1zR9.js";import{C as P}from"./Code.LFCeq68w.js";import{r as be,t as ge,d as ye}from"./theme.svelte.DqSZGw1G.js";import{T as Te}from"./Tome_Content.B3rIKLOc.js";import{D as de}from"./Details.CQlzY0ji.js";import{D as ue,s as _e}from"./Dialog.Cpg58l4V.js";import{g as ke}from"./tome.CIxbnHdd.js";import{C as we,T as xe}from"./Theme_Input.B7a_r7qR.js";import{T as oe,a as ae}from"./Tome_Section_Header.DXxo_wk_.js";import{s as se}from"./render.Bkis_WcS.js";import{e as Se}from"./context_helpers.mn64om0Y.js";import{s as Ce,a as Ie,r as me,c as he}from"./attributes.B_gKRhPE.js";import{b as ze}from"./input.DIsRvsjv.js";import{p as Pe}from"./props.9yi1M7Bh.js";import{M as re}from"./Mdn_Link.DzFKEQ9Y.js";var Me=v('copied!'),We=v('failed'),qe=v("");function Ae(x,t){ne(t,!0);let c=H(!1),p=H(!1);const u=async i=>{var m,g;if(t.text!==null){q(c,!1),q(p,!1);try{await navigator.clipboard.writeText(t.text)}catch{q(p,!0),(m=t.onclick)==null||m.call(t,null,i);return}q(c,!0),(g=t.onclick)==null||g.call(t,t.text,i)}};var f=qe();let b;var M=n(f);A(M,()=>t.children,i=>{var m=ve(),g=W(m);Ce(g,()=>t.children,()=>o(c),()=>o(p)),r(i,m)},i=>{var m=O("๐Ÿ“‹");r(i,m)});var B=e(M);A(B,()=>o(c),i=>{var m=Me();r(i,m)});var I=e(B);A(I,()=>o(p),i=>{var m=We();r(i,m)}),s(f),Q(()=>{var i;return b=Ie(f,b,{...t.attrs,type:"button",class:t.classes??(t.children?void 0:"icon_button size_lg"),onclick:u,disabled:((i=t.attrs)==null?void 0:i.disabled)??t.text===null},"svelte-fqik3v")}),r(x,f),le()}var Be=v("
"),De=v('
');function Ee(x,t){ne(t,!0);var c=ve(),p=W(c);A(p,()=>t.variable,u=>{var f=De(),b=n(f),M=n(b),B=n(M);s(M),s(b);var I=e(b,2);A(I,()=>t.variable.summary,S=>{var C=Be(),R=n(C,!0);s(C),Q(()=>se(R,t.variable.summary)),r(S,C)});var i=e(I,2),m=e(n(i),2);me(m),s(i);var g=e(i,2),y=e(n(g),2);me(y),s(g),s(f),Q(()=>{se(B,`--${t.variable.name??""}`),he(m,t.variable.light??""),he(y,t.variable.dark??"")}),r(u,f)}),r(x,c),le()}const Fe=(x,t,c,p)=>{var u;o(t)&&((u=c.onsave)==null||u.call(c,o(p)))},Ne=x=>{_e(x),alert("TODO")};var Oe=(x,t,c)=>t(x,o(c)),Re=v(''),Je=v('
',1),Le=v('
'),je=v('

theme

',1);function Ye(x,t){ne(t,!0);const c=Pe(t,"theme",3,null);let p=H(K(c()?c().name:"new theme")),u=H(K(c()?c().variables:[]));const f=N(()=>({name:o(p),variables:o(u)})),b=N(()=>be(o(f),{empty_default_theme:!1,specificity:1})),M=N(()=>o(u).reduce((a,l)=>l.light?a+1:a,0)),B=N(()=>o(u).reduce((a,l)=>l.dark?a+1:a,0));let I=H(null);const i=(a,l)=>{_e(a),q(I,K(l)),q(u,K(o(u).slice()))},m=N(()=>!!c()),g=N(()=>c()?o(p)!==c().name||o(u)!==c().variables:!0);var y=je(),S=W(y),C=n(S),R=n(C);A(R,()=>o(m),a=>{var l=O("edit");r(a,l)},a=>{var l=O("create");r(a,l)}),z(),s(C);var L=e(C,4),j=n(L),Y=n(j),ce=n(Y);s(Y);var X=e(Y,2);X.__click=[Ne],s(j);var U=e(j,2),G=n(U),Z=e(n(G),2);me(Z),s(G);var _=e(G,2);_.__click=[Fe,g,t,f];var T=n(_);A(T,()=>o(m),a=>{var l=O("save changes");r(a,l)},a=>{var l=O("create theme");r(a,l)}),s(_),s(U),s(L);var d=e(L,2),h=n(d);Se(h,21,()=>o(u),a=>a.name,(a,l)=>{var w=Re();w.__click=[Oe,i,l];var F=n(w);s(w),Q(()=>se(F,`--${o(l).name??""}`)),r(a,w)}),s(h);var k=e(h,2),D=n(k);A(D,()=>o(b),a=>{var l=Je(),w=W(l),F=n(w);Ae(F,{get text(){return o(b)}}),s(w);var J=e(w,2);P(J,{get content(){return o(b)},lang:"css"}),r(a,l)}),s(k),s(d),s(S);var E=e(S,2);A(E,()=>o(I),a=>{ue(a,{onclose:()=>q(I,null),children:(w,F=fe)=>{var J=Le(),$=n(J),ie=n($);Ee(ie,{get variable(){return o(I)}});var V=e(ie,4);V.__click=function(...ee){var te;(te=F())==null||te.apply(this,ee)},s($),s(J),r(w,J)},$$slots:{default:!0}})}),Q(()=>{se(ce,`variables: ${o(M)??""} light, ${o(B)??""} dark`),_.disabled=!o(g)}),ze(Z,()=>o(p),a=>q(p,a)),r(x,y),le()}pe(["click"]);var Ge=v(`