@infinityfx/fluid 1.4.1 → 1.4.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.
- package/dist/bin/commands.js +1 -1
- package/dist/bin/commands.js.map +1 -1
- package/dist/bin/compile.js +1 -1
- package/dist/bin/compile.js.map +1 -1
- package/dist/bin/core.js +1 -1
- package/dist/bin/core.js.map +1 -1
- package/dist/bin/utils.js +1 -1
- package/dist/bin/utils.js.map +1 -1
- package/dist/components/display/action-menu/group.js +1 -1
- package/dist/components/display/action-menu/heading.js +1 -1
- package/dist/components/display/action-menu/item.js +1 -1
- package/dist/components/display/action-menu/menu.js +1 -1
- package/dist/components/display/action-menu/root.js +1 -1
- package/dist/components/display/action-menu/trigger.js +1 -1
- package/dist/components/display/annotation.js +1 -1
- package/dist/components/display/annotation.js.map +1 -1
- package/dist/components/display/badge.js +1 -1
- package/dist/components/display/badge.js.map +1 -1
- package/dist/components/display/code.js +1 -1
- package/dist/components/display/combobox/content.js +1 -1
- package/dist/components/display/combobox/option.js +1 -1
- package/dist/components/display/combobox/root.js +1 -1
- package/dist/components/display/combobox/trigger.js +1 -1
- package/dist/components/display/frame.js +1 -1
- package/dist/components/display/frame.js.map +1 -1
- package/dist/components/display/key.js +1 -1
- package/dist/components/display/key.js.map +1 -1
- package/dist/components/display/swatch.js +1 -1
- package/dist/components/display/swatch.js.map +1 -1
- package/dist/components/display/table.js +1 -1
- package/dist/components/display/ticker.js +1 -1
- package/dist/components/display/timeline.js +1 -1
- package/dist/components/display/timeline.js.map +1 -1
- package/dist/components/display/toast.js +1 -1
- package/dist/components/display/toast.js.map +1 -1
- package/dist/components/display/tooltip.js +1 -1
- package/dist/components/feedback/circular-progress.js +1 -1
- package/dist/components/feedback/halo.js +1 -1
- package/dist/components/feedback/indicator.js +1 -1
- package/dist/components/feedback/progress-bar.js +1 -1
- package/dist/components/feedback/skeleton.js +1 -1
- package/dist/components/feedback/skeleton.js.map +1 -1
- package/dist/components/feedback/spinner.js +1 -1
- package/dist/components/feedback/spinner.js.map +1 -1
- package/dist/components/input/autocomplete.js +1 -1
- package/dist/components/input/button.js +1 -1
- package/dist/components/input/button.js.map +1 -1
- package/dist/components/input/calendar.js +1 -1
- package/dist/components/input/checkbox.js +1 -1
- package/dist/components/input/chip.js +1 -1
- package/dist/components/input/color-field.js +1 -1
- package/dist/components/input/color-picker.js +1 -1
- package/dist/components/input/date-field.js +1 -1
- package/dist/components/input/drop-zone.js +1 -1
- package/dist/components/input/field.js +1 -1
- package/dist/components/input/file-field.js +1 -1
- package/dist/components/input/hamburger.js +1 -1
- package/dist/components/input/number-field.js +1 -1
- package/dist/components/input/password-field.js +1 -1
- package/dist/components/input/pincode.js +1 -1
- package/dist/components/input/radio.js +1 -1
- package/dist/components/input/radio.js.map +1 -1
- package/dist/components/input/segmented.js +1 -1
- package/dist/components/input/select.js +1 -1
- package/dist/components/input/slider.js +1 -1
- package/dist/components/input/switch.js +1 -1
- package/dist/components/input/textarea.js +1 -1
- package/dist/components/input/theme-toggle.js +1 -1
- package/dist/components/input/toggle.js +1 -1
- package/dist/components/layout/accordion/item.js +1 -1
- package/dist/components/layout/accordion/root.js +1 -1
- package/dist/components/layout/collapsible.js +1 -1
- package/dist/components/layout/collapsible.js.map +1 -1
- package/dist/components/layout/cull.js +1 -1
- package/dist/components/layout/divider.js +1 -1
- package/dist/components/layout/divider.js.map +1 -1
- package/dist/components/layout/drawer.js +1 -1
- package/dist/components/layout/group.js +1 -1
- package/dist/components/layout/group.js.map +1 -1
- package/dist/components/layout/modal.js +1 -1
- package/dist/components/layout/panel.js +1 -1
- package/dist/components/layout/popover/content.js +1 -1
- package/dist/components/layout/popover/root.js +1 -1
- package/dist/components/layout/popover/trigger.js +1 -1
- package/dist/components/layout/scrollarea.js +1 -1
- package/dist/components/layout/sidebar/heading.js +1 -1
- package/dist/components/layout/sidebar/item.js +1 -1
- package/dist/components/layout/sidebar/root.js +1 -1
- package/dist/components/layout/sidebar/toggle.js +1 -1
- package/dist/components/layout/sidebar/user.js +1 -1
- package/dist/components/navigation/navigation-menu/group.js +1 -1
- package/dist/components/navigation/navigation-menu/link.js +1 -1
- package/dist/components/navigation/navigation-menu/root.js +1 -1
- package/dist/components/navigation/pagination.js +1 -1
- package/dist/components/navigation/stepper.js +1 -1
- package/dist/components/navigation/tabs.js +1 -1
- package/dist/context/fluid.js +1 -1
- package/dist/core/style.js +1 -1
- package/dist/core/style.js.map +1 -1
- package/dist/core/utils.js +1 -1
- package/dist/core/utils.js.map +1 -1
- package/dist/hooks/use-click-outside.js +1 -1
- package/dist/hooks/use-focus-trap.js +1 -1
- package/dist/hooks/use-focus-trap.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +3 -3
- package/tsconfig.json +4 -2
package/dist/bin/commands.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{purge as o,compileComponents as n,compileIcons as e,compileTypes as i}from"./compile.js";import{getContext as l,printProgress as s,getIOHelper as t,emptyStats as c,printStats as a}from"./utils.js";const r=[{name:"@infinityfx/splash",entries:[{file:"index.js",inject:"Splash"}]},{name:"@infinityfx/text-editor",entries:[{file:"index.js",inject:"Editor"}]}];async function f(f){const{isInternal:m,name:d,version:g}=await l(/^-{1,2}d(ev)?/.test(f)),u=[{name:"@infinityfx/fluid",entries:[{file:"index.js",inject:"FluidProvider"},{file:"hooks.js",shallow:!0}]}];m||u.unshift(...r),console.log(`\r\n> ${d} v${g}\n`),s(0);const p=u.map((({name:o,entries:n})=>{const e=t(`node_modules/${o}/`,m);return e?{io:e,entries:n}:null})).filter((o=>!!o)),x=c(p.length);for(await Promise.all(p.map((({io:n,entries:e})=>o(n,e)))),x.index=0;x.index<x.entries;x.index++){const{io:o,entries:l}=p[x.index];await n(o,l,x),"fluid"===o.parent&&(await e(o),await i(o))}a(x)}function m(){console.log(),console.log("Commands:"),console.log(),console.log("compile compile fluid components using the current theme"),console.log()}async function d(o){const{name:n,version:e}=await l();o?(console.log(`'${o}' is not recognized as a fluid command.`),console.log(),console.log("Run 'fluid help' for a list of commands.")):(console.log(),console.log(`${n} v${e}`),console.log(),console.log("Usage: fluid <command>"),console.log(),console.log("Run 'fluid help' for a list of commands."),console.log())}export{f as compile,d as fallback,m as help};
|
|
2
2
|
//# sourceMappingURL=commands.js.map
|
package/dist/bin/commands.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sources":["../../../bin/commands.ts"],"sourcesContent":[null],"names":["external","name","entries","file","inject","compile","flag","isInternal","version","getContext","test","packages","shallow","unshift","console","log","printProgress","list","map","io","getIOHelper","filter","val","stats","emptyStats","length","Promise","all","purge","index","compileComponents","parent","compileIcons","compileTypes","printStats","help","fallback","command"],"mappings":"
|
|
1
|
+
{"version":3,"file":"commands.js","sources":["../../../bin/commands.ts"],"sourcesContent":[null],"names":["external","name","entries","file","inject","async","compile","flag","isInternal","version","getContext","test","packages","shallow","unshift","console","log","printProgress","list","map","io","getIOHelper","filter","val","stats","emptyStats","length","Promise","all","purge","index","compileComponents","parent","compileIcons","compileTypes","printStats","help","fallback","command"],"mappings":"4MAGA,MAAMA,EAAW,CACb,CACIC,KAAM,qBACNC,QAAS,CACL,CAAEC,KAAM,WAAYC,OAAQ,YAGpC,CACIH,KAAM,0BACNC,QAAS,CACL,CAAEC,KAAM,WAAYC,OAAQ,aAKjCC,eAAeC,EAAQC,GAC1B,MAAMC,WAAEA,EAAUP,KAAEA,EAAIQ,QAAEA,SAAkBC,EAAW,gBAAgBC,KAAKJ,IACtEK,EAAW,CAAC,CACdX,KAAM,oBACNC,QAAS,CACL,CAAEC,KAAM,WAAYC,OAAQ,iBAC5B,CAAED,KAAM,WAAYU,SAAS,MAGhCL,GAAYI,EAASE,WAAWd,GAErCe,QAAQC,IAAI,SAASf,MAASQ,OAC9BQ,EAAc,GAEd,MAAMC,EAAON,EAASO,KAAI,EAAGlB,OAAMC,cAC/B,MAAMkB,EAAKC,EAAY,gBAAgBpB,KAASO,GAChD,OAAKY,EAEE,CAAEA,KAAIlB,WAFG,IAEM,IACvBoB,QAAOC,KAASA,IACfC,EAAQC,EAAWP,EAAKQ,QAI5B,UAFMC,QAAQC,IAAIV,EAAKC,KAAI,EAAGC,KAAIlB,aAAc2B,EAAMT,EAAIlB,MAErDsB,EAAMM,MAAQ,EAAGN,EAAMM,MAAQN,EAAMtB,QAASsB,EAAMM,QAAS,CAC9D,MAAMV,GAAEA,EAAElB,QAAEA,GAAYgB,EAAKM,EAAMM,aAC7BC,EAAkBX,EAAIlB,EAASsB,GAEnB,UAAdJ,EAAGY,eACGC,EAAab,SACbc,EAAad,IAI3Be,EAAWX,EACf,UAEgBY,IACZrB,QAAQC,MACRD,QAAQC,IAAI,aACZD,QAAQC,MACRD,QAAQC,IAAI,2EACZD,QAAQC,KACZ,CAEOX,eAAegC,EAASC,GAC3B,MAAMrC,KAAEA,EAAIQ,QAAEA,SAAkBC,IAE5B4B,GACAvB,QAAQC,IAAI,IAAIsB,4CAChBvB,QAAQC,MACRD,QAAQC,IAAI,8CAEZD,QAAQC,MACRD,QAAQC,IAAI,GAAGf,MAASQ,KACxBM,QAAQC,MACRD,QAAQC,IAAI,0BACZD,QAAQC,MACRD,QAAQC,IAAI,4CACZD,QAAQC,MAEhB"}
|
package/dist/bin/compile.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"fs";import{unlink as s}from"fs/promises";import{compileFile as o,emitCss as t}from"./core.js";import{getContext as r,printProgress as i}from"./utils.js";import{glob as c}from"glob";async function a(e){const{theme:s}=await r();let o=Array.from(new Set([...Object.keys(s.palettes),"light","dark","system"]).keys()),t=e.source("./types/src/types.d.ts");t=t.replace(/(FluidColorScheme\s*=\s*).+?(;)/,`$1${o.map((e=>`'${e}'`)).join(" | ")}$2`),e.override("./types/src/types.d.ts",t)}async function n(e){const{icons:s,rawConfig:o}=await r();let t=e.source("./core/icons.js");for(const e in s)t=t.replace(new RegExp(`${e}:\\w+(,|\\})`),`${e}:${s[e].name}$1`);t=Array.from(o.matchAll(/import\s*(.+?)from\s*(?:"|')([^"']+)(?:"|')/g)).concat(Array.from(o.matchAll(/(?:const|let|var)\s*(.+?)\s*=\s*require\((?:'|")([^"']+)(?:"|')/g))).map((([e,s,o])=>`import ${s.replace(/:/g," as ")} from "${o}";`)).join("")+t,e.output("./core/icons.js",t)}async function l(o,t){for(const{file:e}of t){const s=o.source(e).replace(/\.\/compiled/g,"");o.override(e,s)}const r=await c(o.root+"compiled/*.css");await Promise.all(r.map(s)),e.cpSync(o.root+"dist/",o.root+"compiled/",{recursive:!0,filter:e=>!/((bin|styles|types)$|\.map$)/.test(e)})}async function m(e,s,c){(await r()).styles={};for(const{file:t,shallow:r,inject:a}of s){const s=e.source(t);if(!r){let t,r=Array.from(s.matchAll(/as\s*(.+?)\s*\}\s*from\s*(?:'|")(.+?)(?:'|");/g)),n=0,l=r.length;for(;t=r.shift();){const[s,m,f]=t;if(r.length>0&&m===a)r.push(t);else{if(/index.js$/.test(f)){const s=await e.module(f);for(const t in s)await o(e,`${m}.${t}`,f.replace(/index\.js$/,`${t.toLowerCase()}.js`))}else await o(e,m,f,m===a);i(c.index/c.entries+ ++n/l/c.entries)}}}e.override(t,s.replace(/(from\s*(?:'|"))\.\/(.*?(?:'|");)/g,"$1../compiled/$2"))}await t(e,c,"fluid"!==e.parent)}export{m as compileComponents,n as compileIcons,a as compileTypes,l as purge};
|
|
2
2
|
//# sourceMappingURL=compile.js.map
|
package/dist/bin/compile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.js","sources":["../../../bin/compile.ts"],"sourcesContent":[null],"names":["compileTypes","io","theme","getContext","palettes","Array","from","Set","Object","keys","types","source","replace","map","name","join","override","compileIcons","icons","rawConfig","contents","icon","RegExp","matchAll","concat","_","value","path","output","purge","entries","file","content","files","glob","root","Promise","all","unlink","fs","cpSync","recursive","filter","src","test","compileComponents","stats","styles","shallow","inject","entry","imports","j","len","length","shift","push","parent","module","subName","compileFile","toLowerCase","printProgress","index","emitCss"],"mappings":"
|
|
1
|
+
{"version":3,"file":"compile.js","sources":["../../../bin/compile.ts"],"sourcesContent":[null],"names":["async","compileTypes","io","theme","getContext","palettes","Array","from","Set","Object","keys","types","source","replace","map","name","join","override","compileIcons","icons","rawConfig","contents","icon","RegExp","matchAll","concat","_","value","path","output","purge","entries","file","content","files","glob","root","Promise","all","unlink","fs","cpSync","recursive","filter","src","test","compileComponents","stats","styles","shallow","inject","entry","imports","j","len","length","shift","push","parent","module","subName","compileFile","toLowerCase","printProgress","index","emitCss"],"mappings":"mMAOOA,eAAeC,EAAaC,GAC/B,MAAMC,MAAEA,SAAgBC,IAExB,IAAIC,EAAWC,MAAMC,KAAK,IAAIC,IAAI,IAAIC,OAAOC,KAAKP,EAAME,UAAW,QAAS,OAAQ,WAAWK,QAC3FC,EAAQT,EAAGU,OAAO,0BAEtBD,EAAQA,EAAME,QAAQ,kCAAmC,KAAKR,EAASS,KAAIC,GAAQ,IAAIA,OAASC,KAAK,YAErGd,EAAGe,SAAS,yBAA0BN,EAC1C,CAEOX,eAAekB,EAAahB,GAC/B,MAAMiB,MAAEA,EAAKC,UAAEA,SAAoBhB,IAEnC,IAAIiB,EAAWnB,EAAGU,OAAO,mBAEzB,IAAK,MAAMU,KAAQH,EACfE,EAAWA,EAASR,QAAQ,IAAIU,OAAO,GAAGD,iBAAqB,GAAGA,KAASH,EAAMG,GAA2BP,UAMhHM,EAHgBf,MAAMC,KAAKa,EAAUI,SAAS,iDACzCC,OAAOnB,MAAMC,KAAKa,EAAUI,SAAS,sEAEvBV,KAAI,EAAEY,EAAGC,EAAOC,KAAU,UAAUD,EAAMd,QAAQ,KAAM,iBAAiBe,QAAUZ,KAAK,IAAMK,EAEjHnB,EAAG2B,OAAO,kBAAmBR,EACjC,CAEOrB,eAAe8B,EAAM5B,EAAc6B,GAGtC,IAAK,MAAMC,KAA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
-
import
|
|
1
|
+
import t from"fs";import{createElement as e}from"react";import{renderToString as s}from"react-dom/server";import{glob as n}from"glob";import{stripImports as a,getContext as i,getIOHelper as o,keyFromImport as c,extractImports as r,replace as l,matchBrackets as u}from"./utils.js";async function p(t,n,p,m=!1){let d=t.source(p);try{const a=[await t.module(p)],[c,r]=n.split(".");r&&a.unshift(await t.module(p.replace(/index\.js/,`${r.toLowerCase()}.js`))),s(await async function(t){const{isInternal:s}=await i(),n=o("node_modules/@infinityfx/fluid/",s);if(!n)throw new Error("Unable to access FluidProvider module");const a=await n.module("./context/fluid.js"),c=t.reduce(((t,s)=>{t="Root"in s?e(s.Root,{},t):e(s,{key:0,pages:1,steps:[],options:[],data:[],columns:[],include:[],name:""},t)}),void 0);return e(a,void 0,e("div",{key:0},c))}(a))}catch{}await async function(t,e,s=!1){const{dependents:n}=await i();(t=c(t))in n||(n[t]=[]),s?r(e,"fluid").forEach((e=>e&&n[t].push(e))):Array.from(e.matchAll(/import\s+\w+\s+from\s*(?:'|").*?\/([^\/]+)(\/index)?\.js(?:'|")/g)).forEach((([e,s])=>{s.startsWith("use")||n[t].push(s)}))}(n,d,"fluid"!==t.parent),d=await async function(t,e){const{styles:s}=await i(),{selectors:n}=s[t.replace(/([a-z])([A-Z])/,"$1-$2").toLowerCase()]||{},a=e.match(/import\s*\{[^{]*(createStyles(?:\s*as\s*([^\s},]+))?)[^}]*\}/),o=e.match(new RegExp(`(=|,|;|\\s|:)${a?.[2]||a?.[1]}\\(`));o?.index&&(e=l(e,o.index+1,u(e,o.index+o[0].length,"()")+1,JSON.stringify(n||{})));const c=e.match(/import\s*\{[^{]*(createGlobalStyles(?:\s*as\s*([^\s},]+))?)[^}]*\}/);let r,p=e.matchAll(new RegExp(`(=|,|;|\\s|:)${c?.[2]||c?.[1]}\\(`,"g")),m=0;for(;r=p.next().value;){const t=r.index+m;let s=u(e,t+r[0].length,"()");[";",","].includes(e.charAt(s+1))&&s++,e=l(e,t+1,s+1,""),m-=s-t}return e}(n,d),m&&(d=await async function(t,e,s){const{theme:n,cssOutput:a}=await i(),o=e.match(/import\s*\{[^{]*(GLOBAL_CONTEXT(?:\s*as\s*([^\s},]+))?)[^}]*\}/);e=e.replace(new RegExp(`${o?.[2]||o?.[1]}\\.theme`),JSON.stringify(n));const c=e.match(/(?:(?:'|")use\sclient(?:'|");\n?)?()/);if(void 0===c?.index||"manual"===a)return e;const r=c.index+c[0].length;return l(e,r,r,`import "./${t.split(/\/|\\/g).slice(2).map((()=>"../")).join("")}${s}.css";`)}(p,d,`${t.parent}-${t.timestamp}`)),t.output(p,a(d))}async function m(e,s,n){const{dependents:a}=await i(),o=t.readFileSync(s,{encoding:"ascii"}),c=r(o,e);for(;c.length;){const t=c.pop();if(!t)return null;t in n||(t in a&&c.push(...a[t]),n[t]=!0)}return n}async function d(e,s,a=!1){const{paths:o,styles:c,cssOutput:r,isDev:l,isInternal:u}=await i();let p=null;if(!u&&!l){const t=await n(o);p={};for(const s of t)if(p=await m(e.parent,s,p),!p)break}const d=Object.entries(c).reduce(((t,[e,n])=>"__globals"===(e=e.replace(/\.\w+$/,""))||null===p||e in p?a&&"__globals"===e?t:(s.compiled++,t+n.rules):t),"");s.files.push({name:"automatic"===r?`${e.parent}-${e.timestamp}.css`:`${e.parent}.css (partial)`,size:new Blob([d],{type:"text/css"}).size}),"automatic"===r?e.output(`./${e.parent}-${e.timestamp}.css`,d):t.writeFileSync(process.cwd()+"/fluid.css",d,{flag:s.index?"a":"w"})}export{p as compileFile,d as emitCss};
|
|
2
2
|
//# sourceMappingURL=core.js.map
|
package/dist/bin/core.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.js","sources":["../../../bin/core.ts"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"core.js","sources":["../../../bin/core.ts"],"sourcesContent":[null],"names":["async","compileFile","io","name","path","appendCssImport","contents","source","components","module","_","subName","split","unshift","replace","toLowerCase","renderToString","isInternal","getContext","getIOHelper","Error","FluidProvider","Component","reduce","el","createElement","Root","key","pages","steps","options","data","columns","include","undefined","createRenderableElement","content","external","dependents","keyFromImport","extractImports","forEach","push","Array","from","matchAll","entry","startsWith","extractDependents","parent","styles","selectors","createStyles","match","RegExp","index","matchBrackets","length","JSON","stringify","createGlobalStyles","globalStyle","matches","globalStyleOffset","next","value","i","to","includes","charAt","processFileCSS","theme","cssOutput","context","cssInsert","idx","slice","map","join","insertCssImport","timestamp","output","stripImports","appendFileDependents","namespace","file","fs","readFileSync","encoding","imports","pop","emitCss","stats","omitGlobals","paths","isDev","usedComponents","files","glob","stylesheet","Object","entries","compiled","rules","size","Blob","type","writeFileSync","process","cwd","flag"],"mappings":"wRA0COA,eAAeC,EAAYC,EAAcC,EAAcC,EAAcC,GAAkB,GAC1F,IAAIC,EAAWJ,EAAGK,OAAOH,GAEzB,IACI,MAAMI,EAAa,OAAON,EAAGO,OAAOL,KAC7BM,EAAGC,GAAWR,EAAKS,MAAM,KAE5BD,GAASH,EAAWK,cAAcX,EAAGO,OAAOL,EAAKU,QAAQ,YAAa,GAAGH,EAAQI,sBAErFC,QA7BRhB,eAAuCQ,GACnC,MAAMS,WAAEA,SAAqBC,IACvBhB,EAAKiB,EAAY,kCAAmCF,GAC1D,IAAKf,EAAI,MAAM,IAAIkB,MAAM,yCAEzB,MAAMC,QAAsBnB,EAAGO,OAAO,sBAEhCa,EAAYd,EAAWe,QAAO,CAACC,EAAIF,KAEjCE,EADA,SAAUF,EACLG,EAAcH,EAAUI,KAAa,CAAA,EAAIF,GAEzCC,EAAcH,EACf,CAAEK,IAAK,EAAGC,MAAO,EAAGC,MAAO,GAAIC,QAAS,GAAIC,KAAM,GAAIC,QAAS,GAAIC,QAAS,GAAI9B,KAAM,IACtFqB,UAETU,GAEH,OAAOT,EAAcJ,OAAea,EAAWT,EAAc,MAAO,CAAEE,IAAK,GAAKL,GACpF,CAW6Ba,CAAwB3B,IAC/C,MAAM,OA9CZR,eAAiCG,EAAciC,E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EnB,IAAK,MAAMX,KAAQY,EAEf,GADAD,QAAuBb,EAAqBjF,EAAG+C,OAAQoC,EAAMW,IACxDA,EAAgB,MAI7B,MAAMG,EAAaC,OAAOC,QAAQnD,GAC7B3B,QAAO,CAAC4E,GAAaxE,EAAKmB,KAEX,eADZnB,EAAMA,EAAIb,QAAQ,SAAU,MACkB,OAAnBkF,GAA6BrE,KAAOqE,EAC3DH,GAAuB,cAARlE,EAA4BwE,GAE/CP,EAAMU,WACCH,EAAcrD,EAAMyD,OAJ4DJ,GAKxF,IAEPP,EAAMK,MAAMvD,KAAK,CACbvC,KAAoB,cAAdqE,EAA4B,GAAGtE,EAAG+C,UAAU/C,EAAG8E,gBAAkB,GAAG9E,EAAG+C,uBAC7EuD,KAAM,IAAIC,KAAK,CAACN,GAAa,CAAEO,KAAM,aAAcF,OAGzC,cAAdhC,EACItE,EAAG+E,OAAO,KAAK/E,EAAG+C,UAAU/C,EAAG8E,gBAAiBmB,GAChDb,EAAGqB,cAAcC,QAAQC,MAAQ,aAAcV,EAAY,CACvDW,KAAOlB,EAAMrC,MAAc,IAAN,KAEjC"}
|
package/dist/bin/utils.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"fs";import{readFile as o}from"fs/promises";import t from"readline";import{glob as n}from"glob";import{mergeRecursive as s}from"../core/utils.js";import{GLOBAL_CONTEXT as i}from"../core/shared.js";function r(e){t.cursorTo(process.stdout,0),process.stdout.write(`${(100*e).toFixed(1)}% `+new Array(Math.round(40*e)).fill("=").join(""))}const c=e=>({index:0,entries:e,start:performance.now(),compiled:0,files:[]});function a(e){console.log("\n"),console.log(`Compiled [1m${e.compiled}[0m components in [1m${((performance.now()-e.start)/1e3).toFixed(2)}[0m sec.`),console.log(),console.log("[4mFile[0m [4mSize[0m"),e.files.forEach((({name:e,size:o})=>console.log(`${e.padEnd(41," ")}${(o/1024).toFixed(1)}kb`))),console.log("")}function l(e,o,t="{}"){let n=1;for(;n>0;)e.charAt(o)==t.charAt(0)&&n++,e.charAt(o)==t.charAt(1)&&n--,n>0&&o++;return o}function m(e,o,t,n){return e.slice(0,o)+n+e.slice(t)}function p(e){return["core(\\/|\\\\)style\\.js","(\\/|\\\\)fluid(\\/|\\\\)css","styles(\\/|\\\\).+?"].map((e=>new RegExp(`import[^;]*?${e}("|');?`,"g"))).forEach((o=>e=e.replace(o,""))),e}const f=e=>e.replace(/^\s+|\s+(as\s+.+)?$/g,"").replace(/\.\w+$/,"").replace(/([a-z])([A-Z])/,"$1-$2").toLowerCase();function d(e,o){return Array.from(e.matchAll(new RegExp(`import\\s*(?:\\{([^\\}]+)\\}|\\*\\s+as.*|\\w+)\\s*from\\s*(?:'|")@infinityfx\\/${o}(?:'|")`,"g"))).map((([e,o])=>o?o.split(",").map(f):null)).flat()}let u;async function h(t){if(!u){const[t]=await n("./fluid.config.{js,mjs}");try{const[r,c,a]=await Promise.all([t&&import(`file://${process.cwd()}/${t}?nonce=${Math.random()}`),t&&o(process.cwd()+`/${t}`,{encoding:"ascii"}),n(["./node_modules/@infinityfx/fluid/package.json","./package.json"])]);r&&c&&(u=r.default,i.theme=s(u.theme,i.theme),i.components=u.components||{},i.paths=u.paths||i.paths,i.cssOutput=u.cssOutput||i.cssOutput,i.icons=u.icons||{},i.rawConfig=c);const l=a.length>1?a.find((e=>e.startsWith("node_modules"))):a[0],{name:m,version:p}=JSON.parse(e.readFileSync(l,{encoding:"ascii"}));i.name=m,i.version=p,i.isInternal=a.length<2}catch{}}return void 0!==t&&(i.isDev=t),i}function g(o,t=!1){const n=t&&/@infinityfx\/fluid\/$/.test(o)?"./":o;return e.existsSync(n)?{root:n,parent:o.match(/.+\/(.+)\/$/)?.[1]||"",timestamp:Date.now(),module:async e=>(await import(`file://${process.cwd()}/${n}dist/${e}?nonce=${Math.random()}`)).default,source:o=>e.readFileSync(n+"dist/"+o,{encoding:"ascii"}),output(o,t){e.writeFileSync(n+"compiled/"+o,t)},override(o,t){e.writeFileSync(n+"dist/"+o,t)}}:null}export{c as emptyStats,d as extractImports,h as getContext,g as getIOHelper,f as keyFromImport,l as matchBrackets,r as printProgress,a as printStats,m as replace,p as stripImports};
|
|
2
2
|
//# sourceMappingURL=utils.js.map
|
package/dist/bin/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../bin/utils.ts"],"sourcesContent":[null],"names":["printProgress","progress","readline","cursorTo","process","stdout","write","toFixed","Array","Math","round","fill","join","emptyStats","entries","index","start","performance","now","compiled","files","printStats","stats","console","log","forEach","name","size","padEnd","matchBrackets","content","type","count","charAt","replace","from","to","by","slice","stripImports","map","val","RegExp","pattern","keyFromImport","str","toLowerCase","extractImports","namespace","matchAll","_","names","split","flat","config","getContext","isDev","configFile","glob","conf","rawConfig","Promise","all","import","cwd","random","readFile","encoding","default","GLOBAL_CONTEXT","theme","mergeRecursive","components","paths","cssOutput","icons","file","length","find","startsWith","version","JSON","parse","fs","readFileSync","isInternal","
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../bin/utils.ts"],"sourcesContent":[null],"names":["printProgress","progress","readline","cursorTo","process","stdout","write","toFixed","Array","Math","round","fill","join","emptyStats","entries","index","start","performance","now","compiled","files","printStats","stats","console","log","forEach","name","size","padEnd","matchBrackets","content","type","count","charAt","replace","from","to","by","slice","stripImports","map","val","RegExp","pattern","keyFromImport","str","toLowerCase","extractImports","namespace","matchAll","_","names","split","flat","config","async","getContext","isDev","configFile","glob","conf","rawConfig","Promise","all","import","cwd","random","readFile","encoding","default","GLOBAL_CONTEXT","theme","mergeRecursive","components","paths","cssOutput","icons","file","length","find","startsWith","version","JSON","parse","fs","readFileSync","isInternal","undefined","getIOHelper","base","root","test","existsSync","parent","match","timestamp","Date","source","output","writeFileSync","override"],"mappings":"kNAOM,SAAUA,EAAcC,GAC1BC,EAASC,SAASC,QAAQC,OAAQ,GAClCD,QAAQC,OAAOC,MAAM,IAAe,IAAXL,GAAgBM,QAAQ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WAAcpE,KAAKyD,aAAaG,QAEhG4B,OAAOpB,GACIO,EAAGC,aAAaK,EAAO,QAAUb,EAAM,CAAET,SAAU,UAE9D,MAAA8B,CAAOrB,EAAc/C,GACjBsD,EAAGe,cAAcT,EAAO,YAAcb,EAAM/C,EAC/C,EACD,QAAAsE,CAASvB,EAAc/C,GACnBsD,EAAGe,cAAcT,EAAO,QAAUb,EAAM/C,KAhBf,IAmBrC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{
|
|
2
|
+
import{jsxs as e,jsx as o}from"react/jsx-runtime";import{Animate as i}from"@infinityfx/lively";import{useId as r,useRef as n,useState as t}from"react";import{combineClasses as a,getFocusable as s}from"../../../core/utils.js";import{createStyles as c}from"../../../core/style.js";import l from"./item.js";import{Icon as d}from"../../../core/icons.js";const m=c("action-menu.group",{".wrapper":{position:"relative"},".menu":{position:"absolute",padding:".25em",background:"var(--f-clr-fg-100)",border:"solid 1px var(--f-clr-fg-200)",borderRadius:"calc(.25em + var(--f-radius-sml))",boxShadow:"var(--f-shadow-med)",fontSize:"var(--f-font-size-sml)",minWidth:"min(100vw, 10em)",top:"calc(-1px - .25em)"},".icon":{display:"flex",marginLeft:"auto"}});function p({children:c,cc:p={},label:u,className:f,...h}){const v=a(m,p),g=r(),y=n(null),w=n(null),[b,x]=t({open:!1,side:"left"});function j(){if(h.disabled||!y.current)return;let{left:e,right:o}=y.current.getBoundingClientRect();o=window.innerWidth-o,x({open:!0,side:e>o?"right":"left"})}return e("div",{ref:y,className:v.wrapper,onFocus:j,onMouseEnter:j,onMouseLeave:()=>x({...b,open:!1}),onBlur:()=>{y.current?.matches(":focus-within")||x({...b,open:!1})},children:[e(l,{...h,"aria-haspopup":"menu","aria-expanded":b.open,"aria-controls":g,keepOpen:!0,onTouchEnd:e=>{h.onTouchEnd?.(e),b.open?x({...b,open:!1}):j()},onKeyDown:e=>{if(h.onKeyDown?.(e),"ArrowRight"===e.key||"ArrowLeft"===e.key){const o=s(w.current,!1);o&&(e.preventDefault(),o.focus())}},children:[u,o("div",{className:v.icon,children:o(d,{type:"right"})})]}),o(i,{animations:[{visibility:["hidden","visible"],opacity:[0,.2,1],scale:[.9,1],duration:.2},{opacity:[0,1],scale:[.95,1],duration:.2}],triggers:[{on:b.open,immediate:!0},{on:!b.open,reverse:!0,immediate:!0}],levels:2,stagger:.05,children:o("div",{ref:w,id:g,role:"menu",className:v.menu,style:{[b.side]:"100%"},children:c})})]})}p.displayName="ActionMenu.Group";export{p as default};
|
|
3
3
|
//# sourceMappingURL=group.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{
|
|
2
|
+
import{jsx as e}from"react/jsx-runtime";import{createStyles as r}from"../../../core/style.js";import{combineClasses as i,classes as n}from"../../../core/utils.js";const o=r("action-menu.heading",{".heading":{padding:".4rem .8rem .4rem .8rem",fontWeight:800,fontSize:".7em",color:"var(--f-clr-grey-500)"}});function t({children:r,cc:t={},className:a,...c}){const m=i(o,t);return e("div",{...c,className:n(m.heading,a),role:"heading",children:r})}t.displayName="ActionMenu.Heading";export{t as default};
|
|
3
3
|
//# sourceMappingURL=heading.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{
|
|
2
|
+
import{jsx as e}from"react/jsx-runtime";import r from"../../feedback/halo.js";import{createStyles as o}from"../../../core/style.js";import{combineClasses as t,classes as n,combineRefs as l,filterFocusable as a}from"../../../core/utils.js";import{usePopover as i}from"../../layout/popover/root.js";import{useRef as c}from"react";const m=o("action-menu.item",{".item":{position:"relative",padding:".5rem .8rem",border:"none",background:"none",outline:"none",width:"100%",borderRadius:"var(--f-radius-sml)",userSelect:"none",display:"flex",alignItems:"center",gap:"var(--f-spacing-xsm)",color:"var(--color, var(--f-clr-text-100))",lineHeight:1.25,WebkitTapHighlightColor:"transparent","--halo-color":"color-mix(in srgb, var(--color, var(--f-clr-primary-100)) 50%, var(--f-clr-text-200))"},".item:enabled":{cursor:"pointer"},".item:disabled":{color:"var(--f-clr-grey-500)"}});function s({children:o,cc:s={},keepOpen:p,className:u,color:f,...d}){const y=t(m,s),h=c(null),g=i();return e(r,{disabled:d.disabled,color:"var(--halo-color)",children:e("button",{...d,ref:l(d.ref,h),type:"button",role:"menuitem",style:{...d.style,"--color":f},className:n(y.item,u),onClick:e=>{d.onClick?.(e),p||g.toggle(!1)},onKeyDown:e=>{d.onKeyDown?.(e);let r=h.current?.parentElement;for(;r&&!r.matches('[role="menu"], [role="group"]');)r=r.parentElement;if(r?.matches('[role="menu"]')&&("ArrowRight"===e.key||"ArrowLeft"===e.key)){const o=r.parentElement?.querySelector('[aria-haspopup="menu"]');o&&(e.preventDefault(),o.focus())}const o="ArrowDown"===e.key?1:"ArrowUp"===e.key?-1:0;if(r&&0!==o){const t=a(Array.from(r.children)),n=t.findIndex((e=>e===h.current)),l=t[n+o];l&&l.focus(),n>=0&&e.preventDefault()}},children:o})})}s.displayName="ActionMenu.Item";export{s as default};
|
|
3
3
|
//# sourceMappingURL=item.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{
|
|
2
|
+
import{jsx as e}from"react/jsx-runtime";import r from"../../layout/popover/index.js";import{Animate as o}from"@infinityfx/lively";import{combineClasses as n,classes as i}from"../../../core/utils.js";import{createStyles as t}from"../../../core/style.js";const a=t("action-menu.menu",{".menu":{padding:".25em",background:"var(--f-clr-fg-100)",border:"solid 1px var(--f-clr-fg-200)",borderRadius:"calc(.25em + var(--f-radius-sml))",boxShadow:"var(--f-shadow-med)",fontSize:"var(--f-font-size-sml)",minWidth:"min(100vw, 10em)"}});function m({children:t,cc:m={},className:s,...c}){const l=n(a,m);return e(r.Content,{role:"menu",children:e(o,{id:"action-menu",animations:[{opacity:[0,.2,1],scale:[.9,1],duration:.2},{opacity:[0,1],scale:[.95,1],duration:.2}],triggers:[{on:"mount"},{on:"unmount",reverse:!0}],levels:2,stagger:.05,children:e("div",{...c,className:i(l.menu,s),role:"group",children:t})})})}m.displayName="ActionMenu.Menu";export{m as default};
|
|
3
3
|
//# sourceMappingURL=menu.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as o}from"react/jsx-runtime";import
|
|
2
|
+
import{jsx as o}from"react/jsx-runtime";import r from"../../layout/popover/index.js";function t(t){return o(r.Root,{...t,children:t.children})}t.displayName="ActionMenu.Root";export{t as default};
|
|
3
3
|
//# sourceMappingURL=root.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as o}from"react/jsx-runtime";import{getFocusable as r}from"../../../core/utils.js";import e from"../../layout/popover/index.js";import{usePopover as n}from"../../layout/popover/root.js";function t(t){const{content:i}=n();return o(e.Trigger,
|
|
2
|
+
import{jsx as o}from"react/jsx-runtime";import{getFocusable as r}from"../../../core/utils.js";import e from"../../layout/popover/index.js";import{usePopover as n}from"../../layout/popover/root.js";function t(t){const{content:i}=n();return o(e.Trigger,{...t,"aria-haspopup":"menu",onKeyDown:o=>{if(t.children.props.onKeyDown?.(o),t.onKeyDown?.(o),"Tab"===o.key&&!o.shiftKey||"ArrowDown"===o.key){const e=r(i.current,!1);e&&(o.preventDefault(),e.focus())}},children:t.children})}t.displayName="ActionMenu.Trigger";export{t as default};
|
|
3
3
|
//# sourceMappingURL=trigger.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsxs as r,jsx as e}from"react/jsx-runtime";import{useId as o,cloneElement as i}from"react";import{combineClasses as s,classes as a}from"../../core/utils.js";import{createStyles as l}from"../../core/style.js";import t from"../layout/collapsible.js";const n=l("annotation",{".wrapper":{display:"flex",flexDirection:"column",color:"var(--f-clr-text-100)",minWidth:"min(100vw, 12em)","--width":"100%"},".s__xsm":{fontSize:"var(--f-font-size-xxs)"},".s__sml":{fontSize:"var(--f-font-size-xsm)"},".s__med":{fontSize:"var(--f-font-size-sml)"},".s__lrg":{fontSize:"var(--f-font-size-med)"},".label, .error":{fontSize:".8em",fontWeight:500},".label":{paddingBottom:"var(--f-spacing-xxs)"},".error":{color:"var(--f-clr-error-100)",paddingTop:"var(--f-spacing-xxs)"}});function m({children:l,cc:m={},label:c,error:f,...d}){const p=s(n,m),x=o(),v=l.props.size||"med",z=!!l.props.required;return r("div",{...d,className:a(p.wrapper,p[`s__${v}`],d.className),children:[c&&r("div",{id:x,className:p.label,children:[c,z?" *":""]}),c?i(l,{"aria-labelledby":x}):l,e(t,{shown:!!f,children:e("div",{className:p.error,children:f})})]})}export{m as default};
|
|
2
2
|
//# sourceMappingURL=annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotation.js","sources":["../../../../src/components/display/annotation.tsx"],"sourcesContent":[null],"names":["styles","createStyles","display","flexDirection","color","minWidth","fontSize","fontWeight","paddingBottom","paddingTop","Annotation","
|
|
1
|
+
{"version":3,"file":"annotation.js","sources":["../../../../src/components/display/annotation.tsx"],"sourcesContent":[null],"names":["styles","createStyles","display","flexDirection","color","minWidth","fontSize","fontWeight","paddingBottom","paddingTop","Annotation","children","cc","label","error","props","style","combineClasses","id","useId","size","required","_jsxs","className","classes","wrapper","cloneElement","_jsx","Collapsible","shown"],"mappings":"+PAMA,MAAMA,EAASC,EAAa,aAAc,CACtC,WAAY,CACRC,QAAS,OACTC,cAAe,SACfC,MAAO,wBACPC,SAAU,mBACV,UAAoB,QAGxB,UAAW,CACPC,SAAU,0BAGd,UAAW,CACPA,SAAU,0BAGd,UAAW,CACPA,SAAU,0BAGd,UAAW,CACPA,SAAU,0BAGd,iBAAkB,CACdA,SAAU,OACVC,WAAY,KAGhB,SAAU,CACNC,cAAe,wBAGnB,SAAU,CACNJ,MAAO,yBACPK,WAAY,0BAWN,SAAUC,GAAWC,SAAEA,EAAQC,GAAEA,EAAK,CAAA,EAAEC,MAAEA,EAAKC,MAAEA,KAAUC,IAOrE,MAAMC,EAAQC,EAAejB,EAAQY,GAE/BM,EAAKC,IACLC,EAAOT,EAASI,MAAMK,MAAQ,MAC9BC,IAAaV,EAASI,MAAMM,SAElC,OAAOC,EAAA,MAAA,IACCP,EACJQ,UAAWC,EACPR,EAAMS,QACNT,EAAM,MAAMI,KACZL,EAAMQ,WAETZ,SAAA,CAAAE,GAASS,EAAA,MAAA,CAAKJ,GAAIA,EAAIK,UAAWP,EAAMH,MACnCF,SAAA,CAAAE,EAAOQ,EAAW,KAAO,MAG7BR,EAAQa,EAAaf,EAAU,CAC5B,kBAAmBO,IAClBP,EAELgB,EAACC,EAAW,CAACC,QAASf,EAClBH,SAAAgB,EAAA,MAAA,CAAKJ,UAAWP,EAAMF,MAAKH,SACtBG,QAIjB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsxs as r,jsx as o}from"react/jsx-runtime";import{combineClasses as e,classes as l}from"../../core/utils.js";import{createStyles as s}from"../../core/style.js";import{Icon as a}from"../../core/icons.js";const c=s("badge",{".badge":{fontWeight:700,borderRadius:"var(--f-radius-sml)",padding:".3em .6em",transition:"background-color .15s",display:"flex",alignItems:"center",gap:"var(--f-spacing-xxs)",lineHeight:1.2},".v__default":{backgroundColor:"var(--color, var(--f-clr-primary-300))",color:"var(--f-clr-text-100)"},".v__light":{backgroundColor:"var(--f-clr-fg-100)",color:"var(--color, var(--f-clr-primary-100))"},".v__neutral":{backgroundColor:"var(--f-clr-fg-100)",border:"solid 1px var(--f-clr-fg-200)",color:"var(--f-clr-text-100)"},".s__xsm":{fontSize:".6rem"},".s__sml":{fontSize:"var(--f-font-size-xxs)"},".s__med":{fontSize:"var(--f-font-size-xsm)"},".s__lrg":{fontSize:"var(--f-font-size-sml)"},".badge.round":{borderRadius:"999px"},".close":{display:"flex",alignItems:"center",cursor:"pointer"}});function t({children:s,cc:t={},variant:i="default",round:n=!1,size:f="sml",color:d,onClose:m,...v}){const g=e(c,t);return r("div",{...v,className:l(g.badge,g[`v__${i}`],g[`s__${f}`],n&&g.round,v.className),style:{"--color":d,...v.style},children:[s,m?o("div",{className:g.close,onClick:m,children:o(a,{type:"close"})}):null]})}export{t as default};
|
|
2
2
|
//# sourceMappingURL=badge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sources":["../../../../src/components/display/badge.tsx"],"sourcesContent":[null],"names":["styles","createStyles","fontWeight","borderRadius","padding","transition","display","alignItems","gap","lineHeight","backgroundColor","color","border","fontSize","cursor","Badge","
|
|
1
|
+
{"version":3,"file":"badge.js","sources":["../../../../src/components/display/badge.tsx"],"sourcesContent":[null],"names":["styles","createStyles","fontWeight","borderRadius","padding","transition","display","alignItems","gap","lineHeight","backgroundColor","color","border","fontSize","cursor","Badge","children","cc","variant","round","size","onClose","props","style","combineClasses","_jsxs","className","classes","badge","_jsx","close","onClick","Icon","type"],"mappings":"kNAKA,MAAMA,EAASC,EAAa,QAAS,CACjC,SAAU,CACNC,WAAY,IACZC,aAAc,sBACdC,QAAS,YACTC,WAAY,wBACZC,QAAS,OACTC,WAAY,SACZC,IAAK,uBACLC,WAAY,KAGhB,cAAe,CACXC,gBAAiB,yCACjBC,MAAO,yBAGX,YAAa,CACTD,gBAAiB,sBACjBC,MAAO,0CAGX,cAAe,CACXD,gBAAiB,sBACjBE,OAAQ,gCACRD,MAAO,yBAGX,UAAW,CACPE,SAAU,SAGd,UAAW,CACPA,SAAU,0BAGd,UAAW,CACPA,SAAU,0BAGd,UAAW,CACPA,SAAU,0BAGd,eAAgB,CACZV,aAAc,SAGlB,SAAU,CACNG,QAAS,OACTC,WAAY,SACZO,OAAQ,aAWQ,SAAAC,GAAMC,SAAEA,EAAQC,GAAEA,EAAK,CAAA,EAAEC,QAAEA,EAAU,UAASC,MAAEA,GAAQ,EAAKC,KAAEA,EAAO,MAAKT,MAAEA,EAAKU,QAAEA,KAAYC,IASpH,MAAMC,EAAQC,EAAexB,EAAQiB,GAErC,OAAOQ,YAASH,EACZI,UAAWC,EACPJ,EAAMK,MACNL,EAAM,MAAML,KACZK,EAAM,MAAMH,KACZD,GAASI,EAAMJ,MACfG,EAAMI,WAEVH,MAAO,CACH,UAAWZ,KACRW,EAAMC,OACLP,SAAA,CACPA,EAEAK,EAAUQ,EAAK,MAAA,CAAAH,UAAWH,EAAMO,MAAOC,QAASV,EAAOL,SACpDa,EAACG,EAAK,CAAAC,KAAK,YACN,OAEjB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{
|
|
2
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useId as t,useState as o,Fragment as n}from"react";import a from"../layout/scrollarea.js";import c from"../input/toggle.js";import{createStyles as i}from"../../core/style.js";import{combineClasses as l,classes as d}from"../../core/utils.js";import{Icon as m}from"../../core/icons.js";const s=i("code",{".wrapper":{fontSize:"var(--f-font-size-sml)",borderRadius:"var(--f-radius-med)",overflow:"hidden",position:"relative",display:"flex",flexDirection:"column",color:"var(--f-clr-text-100)"},".header":{backgroundColor:"var(--f-clr-primary-400)",padding:".8em 1em",fontWeight:500},".body":{backgroundColor:"var(--f-clr-fg-100)",flexGrow:1},".code":{display:"flex",paddingInline:"1em",minHeight:"100%"},".numbers":{userSelect:"none",textAlign:"right",color:"var(--f-clr-grey-500)",paddingBlock:"1em",paddingRight:".5em",borderRight:"solid 1px var(--f-clr-fg-200)"},".tab":{display:"inline-block",minWidth:"2em"},".content":{width:"max-content",paddingBlock:"1em"},'.content[data-numbered="true"]':{paddingLeft:"1em"},".button__align":{position:"absolute",zIndex:"99",right:"1em",bottom:0,display:"flex",alignItems:"center",maxHeight:"100%"},".wrapper .toggle":{marginBlock:"1em"},'.wrapper .toggle[data-checked="false"]':{background:"var(--f-clr-bg-100)"}});function g({children:i,cc:g={},title:p,lineNumbers:h=!0,dangerouslyInject:f,...u}){const b=l(s,g),y=t(),[v,x]=o(!1);return e("div",{...u,className:d(b.wrapper,u.className),children:[p&&r("div",{className:b.header,children:p}),r(a,{className:b.body,children:e("code",{className:b.code,children:[h&&r("div",{className:b.numbers,children:i.split(/\n/).map(((t,o)=>e(n,{children:[o+1," ",r("br",{})]},o)))}),r(a,{horizontal:!0,behavior:"shift",children:r("pre",{id:y,className:b.content,"data-numbered":h,dangerouslySetInnerHTML:f?{__html:i}:void 0,children:f?void 0:i})})]})}),r("div",{className:b.button__align,children:r(c,{compact:!0,checkedContent:r(m,{type:"check"}),checked:v,cc:{toggle:b.toggle,...g},"aria-label":"Copy code",onClick:()=>{const e=document.createRange(),r=document.getElementById(y);e.selectNodeContents(r),document.getSelection()?.addRange(e);try{navigator.clipboard.writeText(r.innerText)}catch(e){document.execCommand("copy")}x(!0),setTimeout((()=>x(!1)),2e3)},children:r(m,{type:"copy"})})})]})}export{g as default};
|
|
3
3
|
//# sourceMappingURL=code.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{
|
|
2
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useRef as o,useState as t,useLayoutEffect as n,useMemo as i,Children as a,isValidElement as s,cloneElement as c}from"react";import l from"../../layout/popover/index.js";import d from"../../layout/scrollarea.js";import m from"../../input/field.js";import{Animatable as u}from"@infinityfx/lively";import{combineClasses as f,combineRefs as p,classes as h,getFocusable as g}from"../../../core/utils.js";import{createStyles as x}from"../../../core/style.js";import{usePopover as v}from"../../layout/popover/root.js";import{Icon as y}from"../../../core/icons.js";import"../../../context/fluid.js";import b from"../../../hooks/use-debounce.js";const _=x("combobox.content",{".container:not(.modal)":{background:"var(--f-clr-fg-100)",border:"solid 1px var(--f-clr-fg-200)",borderRadius:"calc(.25em + var(--f-radius-sml))",boxShadow:"var(--f-shadow-med)",minWidth:"min(100vw, 10em)",width:"100%"},".container.round":{borderRadius:"1.4em"},".s__xsm":{fontSize:"var(--f-font-size-xxs)"},".s__sml":{fontSize:"var(--f-font-size-xsm)"},".s__med":{fontSize:"var(--f-font-size-sml)"},".s__lrg":{fontSize:"var(--f-font-size-med)"},".content":{maxHeight:"9.5em"},".modal .content":{maxHeight:"50vh"},".message":{position:"relative",padding:".5em",width:"100%",textAlign:"center",color:"var(--f-clr-grey-500)",lineHeight:1.25},".container .field":{margin:".25em",marginBottom:0},".container .field__content":{paddingBlock:".5em"}});function w({children:x,cc:w={},round:j,size:z="med",autoFocus:k=!0,searchable:M=!1,placeholder:S="Search..",emptyMessage:C="Nothing found",virtualItemHeight:F=0,...H}){const N=f(_,w),{opened:A,trigger:D,content:T,isModal:K}=v(),L=o(0),R=o({list:[],index:k?0:-1}),[B,U]=t(""),[I,V]=t({start:0,end:1/0}),W=b((e=>{$(0),U(e)}),200);function $(e){if(!F||!T.current)return V({start:0,end:1/0});const r=Math.ceil(T.current.offsetHeight/F),o=Math.floor(r/2),t=o+Math.floor(e/(F*o))*o,n=Math.max(0,t-r),i=n+2*r;I.end!==i&&V({start:n,end:i})}n((()=>{A&&$(0)}),[A]);const q=i((()=>(L.current=0,a.map(x,(e=>{if(!s(e)||!("value"in e.props))return e;if(!("value"in e.props&&(""+e.props.value).toLowerCase()||"").includes(B))return null;const r=L.current++,o=r+(M?1:0);return r<I.start||r>I.end?null:c(e,{round:j,ref:p((e=>{R.current.list[o]=e}),e.props.ref),onFocus:e=>{R.current.index=o,H.onFocus?.(e)},autoFocus:o==R.current.index})})))),[x,I,B]);return e(l.Content,{children:e(u,{id:"combobox-options-outer",animate:{opacity:[0,.2,1],scale:[.9,1],duration:.2},triggers:[{on:"mount"},{on:"unmount",reverse:!0}],children:r("div",{...H,role:"listbox",className:h(N.container,N[`s__${z}`],j&&N.round,K&&N.modal,H.className),onKeyDown:e=>{if(H.onKeyDown?.(e),"Tab"!==e.key&&"ArrowDown"!==e.key&&"ArrowUp"!==e.key)return;const{index:r,list:o}=R.current,t="ArrowUp"===e.key||e.shiftKey?Math.max(r-1,-1):Math.min(r+1,o.length-1),n=t<0?g(D.current,!1):o[R.current.index=t];n?n.focus():R.current.index=0,(n||"Tab"!==e.key)&&e.preventDefault()},children:[M&&e(m,{round:j,size:z,variant:"minimal",placeholder:S,icon:e(y,{type:"search"}),inputRef:e=>R.current.list[0]=e,autoFocus:0==R.current.index,onFocus:()=>R.current.index=0,defaultValue:B,onChange:e=>W(e.target.value.toLowerCase()),cc:{field:N.field,content:N.field__content,...w}}),e(d,{className:N.content,onScroll:e=>$(e.currentTarget.scrollTop),children:r("div",{style:{padding:".25em",minHeight:F?F*L.current:void 0},children:[e("div",{style:{height:F*I.start}}),e(u,{id:"combobox-options-inner",inherit:!0,cachable:[],animate:{opacity:[0,1],scale:[.95,1],duration:.2},staggerLimit:4,stagger:.05,children:(!F||I.end!==1/0)&&q}),!L.current&&e("div",{className:N.message,children:C})]})})]})})})}w.displayName="Combobox.Content";export{w as default};
|
|
3
3
|
//# sourceMappingURL=content.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{
|
|
2
|
+
import{jsx as o}from"react/jsx-runtime";import r from"../../feedback/halo.js";import{createStyles as e}from"../../../core/style.js";import{combineClasses as i,classes as n}from"../../../core/utils.js";const t=e("combobox.option",{".option":{position:"relative",padding:".5em",borderRadius:"var(--f-radius-sml)",border:"none",outline:"none",background:"none",width:"100%",color:"var(--f-clr-text-100)",display:"flex",alignItems:"center",gap:"var(--f-spacing-xsm)",lineHeight:1.25,WebkitTapHighlightColor:"transparent"},".option.round":{borderRadius:"999px"},".option:enabled":{cursor:"pointer"},".option:disabled":{color:"var(--f-clr-grey-500)"}});function a({children:e,cc:a={},value:l,round:c,onSelect:s,...d}){const p=i(t,a);return o(r,{disabled:d.disabled,color:"var(--f-clr-primary-400)",children:o("button",{...d,type:"button",role:"option",className:n(p.option,c&&p.round,d.className),onClick:o=>{d.onClick?.(o),s?.(l)},children:e})})}a.displayName="Combobox.Option";export{a as default};
|
|
3
3
|
//# sourceMappingURL=option.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as o}from"react/jsx-runtime";import r from"../../layout/popover/index.js";function t(t){return o(r.Root,
|
|
2
|
+
import{jsx as o}from"react/jsx-runtime";import r from"../../layout/popover/index.js";function t(t){return o(r.Root,{...t,children:t.children})}t.displayName="Combobox.Root";export{t as default};
|
|
3
3
|
//# sourceMappingURL=root.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as o}from"react/jsx-runtime";import{getFocusable as r}from"../../../core/utils.js";import e from"../../layout/popover/index.js";import{usePopover as
|
|
2
|
+
import{jsx as o}from"react/jsx-runtime";import{getFocusable as r}from"../../../core/utils.js";import e from"../../layout/popover/index.js";import{usePopover as t}from"../../layout/popover/root.js";function n(n){const{content:i}=t();return o(e.Trigger,{...n,role:"combobox",onKeyDown:o=>{if(n.children.props.onKeyDown?.(o),n.onKeyDown?.(o),"Tab"===o.key&&!o.shiftKey||"ArrowDown"===o.key){const e=r(i.current,!1);e&&(o.preventDefault(),e.focus())}},children:n.children})}n.displayName="Combobox.Trigger";export{n as default};
|
|
3
3
|
//# sourceMappingURL=trigger.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{combineClasses as a,classes as d}from"../../core/utils.js";import{createStyles as o}from"../../core/style.js";const e=o("frame",{".frame":{overflow:"hidden"},".shadow":{boxShadow:"var(--f-shadow-med)"},".border":{border:"solid 1px var(--f-clr-fg-200)"},".bg__light":{background:"var(--f-clr-fg-100)"},".bg__dark":{background:"var(--f-clr-bg-100)"},".r__xsm":{borderRadius:"var(--f-radius-xsm)"},".r__sml":{borderRadius:"var(--f-radius-sml)"},".r__med":{borderRadius:"var(--f-radius-med)"},".r__lrg":{borderRadius:"var(--f-radius-lrg)"},".frame img":{objectFit:"cover",display:"block"}});function s({children:o,cc:s={},radius:i="sml",shadow:m,border:c,background:f="none",...l}){const b=a(e,s);return r("div",{...l,className:d(b.frame,m&&b.shadow,c&&b.border,b[`bg__${f}`],b[`r__${i}`],l.className),children:o})}export{s as default};
|
|
2
2
|
//# sourceMappingURL=frame.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frame.js","sources":["../../../../src/components/display/frame.tsx"],"sourcesContent":[null],"names":["styles","createStyles","overflow","boxShadow","border","background","borderRadius","objectFit","display","Frame","
|
|
1
|
+
{"version":3,"file":"frame.js","sources":["../../../../src/components/display/frame.tsx"],"sourcesContent":[null],"names":["styles","createStyles","overflow","boxShadow","border","background","borderRadius","objectFit","display","Frame","children","cc","radius","shadow","props","style","combineClasses","_jsx","className","classes","frame"],"mappings":"6JAIA,MAAMA,EAASC,EAAa,QAAS,CACjC,SAAU,CACNC,SAAU,UAGd,UAAW,CACPC,UAAW,uBAGf,UAAW,CACPC,OAAQ,iCAGZ,aAAc,CACVC,WAAY,uBAGhB,YAAa,CACTA,WAAY,uBAGhB,UAAW,CACPC,aAAc,uBAGlB,UAAW,CACPA,aAAc,uBAGlB,UAAW,CACPA,aAAc,uBAGlB,UAAW,CACPA,aAAc,uBAGlB,aAAc,CACVC,UAAW,QACXC,QAAS,WAWH,SAAUC,GAAMC,SAAEA,EAAQC,GAAEA,EAAK,CAAA,EAAEC,OAAEA,EAAS,MAAKC,OAAEA,EAAMT,OAAEA,EAAMC,WAAEA,EAAa,UAAWS,IASvG,MAAMC,EAAQC,EAAehB,EAAQW,GAErC,OAAOM,EAAA,MAAA,IAASH,EACZI,UAAWC,EACPJ,EAAMK,MACNP,GAAUE,EAAMF,OAChBT,GAAUW,EAAMX,OAChBW,EAAM,OAAOV,KACbU,EAAM,MAAMH,KACZE,EAAMI,WAETR,SAAAA,GAET"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{combineClasses as e,classes as o}from"../../core/utils.js";import{createStyles as i}from"../../core/style.js";const s=i("key",{".key":{position:"relative",fontWeight:600,fontSize:"var(--f-font-size-xsm)",color:"var(--f-clr-grey-700)",backgroundColor:"var(--f-clr-fg-100)",border:"solid 1px var(--f-clr-fg-200)",borderRadius:"var(--f-radius-sml)",padding:".3em .5em"}});function t({children:i,cc:t={},...a}){const c=e(s,t);return r("div",{...a,className:o(c.key,a.className),children:i})}export{t as default};
|
|
2
2
|
//# sourceMappingURL=key.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key.js","sources":["../../../../src/components/display/key.tsx"],"sourcesContent":[null],"names":["styles","createStyles","position","fontWeight","fontSize","color","backgroundColor","border","borderRadius","padding","Key","
|
|
1
|
+
{"version":3,"file":"key.js","sources":["../../../../src/components/display/key.tsx"],"sourcesContent":[null],"names":["styles","createStyles","position","fontWeight","fontSize","color","backgroundColor","border","borderRadius","padding","Key","children","cc","props","style","combineClasses","_jsx","className","classes","key"],"mappings":"6JAIA,MAAMA,EAASC,EAAa,MAAO,CAC/B,OAAQ,CACJC,SAAU,WACVC,WAAY,IACZC,SAAU,yBACVC,MAAO,wBACPC,gBAAiB,sBACjBC,OAAQ,gCACRC,aAAc,sBACdC,QAAS,eAWO,SAAAC,GAAIC,SAAEA,EAAQC,GAAEA,EAAK,CAAA,KAAOC,IAKhD,MAAMC,EAAQC,EAAef,EAAQY,GAErC,OAAOI,YAASH,EAAOI,UAAWC,EAAQJ,EAAMK,IAAKN,EAAMI,WACtDN,SAAAA,GAET"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{combineClasses as e,classes as a}from"../../core/utils.js";import{createStyles as o}from"../../core/style.js";const s=o("swatch",{".swatch":{position:"relative",width:"2em",height:"2em",border:"solid 1px var(--f-clr-fg-200)",borderRadius:"var(--f-radius-sml)",overflow:"hidden",background:"linear-gradient(45deg, var(--f-clr-grey-100) 25%, transparent 25%, transparent 75%, var(--f-clr-grey-100) 75%, var(--f-clr-grey-100) 100%), linear-gradient(45deg, var(--f-clr-grey-100) 25%, var(--f-clr-bg-100) 25%, var(--f-clr-bg-100) 75%, var(--f-clr-grey-100) 75%, var(--f-clr-grey-100) 100%)",backgroundPosition:"0 0, 1em 1em",backgroundSize:"2em 2em",backgroundRepeat:"repeat",display:"flex"},".color":{height:"100%",flexGrow:1},".swatch.round":{borderRadius:"999px"},".s__xsm":{fontSize:"var(--f-font-size-xxs)"},".s__sml":{fontSize:"var(--f-font-size-xsm)"},".s__med":{fontSize:"var(--f-font-size-sml)"},".s__lrg":{fontSize:"var(--f-font-size-med)"}});function t({cc:o={},size:t="med",round:i=!1,color:n=["transparent"],...c}){const l=e(s,o);return n=Array.isArray(n)?n:[n],r("div",{...c,className:a(l.swatch,l[`s__${t}`],i&&l.round,c.className),children:n.map((e=>r("div",{className:l.color,style:{backgroundColor:e}},e)))})}export{t as default};
|
|
2
2
|
//# sourceMappingURL=swatch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swatch.js","sources":["../../../../src/components/display/swatch.tsx"],"sourcesContent":[null],"names":["styles","createStyles","position","width","height","border","borderRadius","overflow","background","backgroundPosition","backgroundSize","backgroundRepeat","display","flexGrow","fontSize","Swatch","
|
|
1
|
+
{"version":3,"file":"swatch.js","sources":["../../../../src/components/display/swatch.tsx"],"sourcesContent":[null],"names":["styles","createStyles","position","width","height","border","borderRadius","overflow","background","backgroundPosition","backgroundSize","backgroundRepeat","display","flexGrow","fontSize","Swatch","cc","size","round","color","props","style","combineClasses","Array","isArray","_jsx","className","classes","swatch","map","backgroundColor"],"mappings":"6JAIA,MAAMA,EAASC,EAAa,SAAU,CAClC,UAAW,CACPC,SAAU,WACVC,MAAO,MACPC,OAAQ,MACRC,OAAQ,gCACRC,aAAc,sBACdC,SAAU,SACVC,WAAY,ySACZC,mBAAoB,eACpBC,eAAgB,UAChBC,iBAAkB,SAClBC,QAAS,QAGb,SAAU,CACNR,OAAQ,OACRS,SAAU,GAGd,gBAAiB,CACbP,aAAc,SAGlB,UAAW,CACPQ,SAAU,0BAGd,UAAW,CACPA,SAAU,0BAGd,UAAW,CACPA,SAAU,0BAGd,UAAW,CACPA,SAAU,4BAWJ,SAAUC,GAAOC,GAAEA,EAAK,GAAEC,KAAEA,EAAO,MAAKC,MAAEA,GAAQ,EAAKC,MAAEA,EAAQ,CAAC,kBAAmBC,IAQ/F,MAAMC,EAAQC,EAAetB,EAAQgB,GAGrC,OAFAG,EAAQI,MAAMC,QAAQL,GAASA,EAAO,CAACA,GAEhCM,EAAA,MAAA,IAASL,EACZM,UAAWC,EACPN,EAAMO,OACNP,EAAM,MAAMJ,KACZC,GAASG,EAAMH,MACfE,EAAMM,oBAETP,EAAMU,KAAIV,GAASM,EAAiB,MAAA,CAAAC,UAAWL,EAAMF,MAAOE,MAAO,CAAES,gBAAiBX,IAAzDA,MAEtC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{
|
|
2
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{combineClasses as l,classes as o}from"../../core/utils.js";import{useState as c}from"react";import a from"../feedback/halo.js";import t from"../layout/scrollarea.js";import i from"../input/button.js";import n from"../input/checkbox.js";import s from"./action-menu/index.js";import{createStyles as d}from"../../core/style.js";import{Icon as m}from"../../core/icons.js";const p=d("table",{".table":{backgroundColor:"var(--f-clr-fg-100)",borderRadius:"var(--f-radius-sml)",border:"solid 1px var(--f-clr-fg-200)",display:"flex"},".rows":{minWidth:"max-content",display:"flex",flexDirection:"column",flexGrow:1},".row":{position:"relative",display:"grid",gridAutoFlow:"column",alignItems:"center",padding:".6em",gap:"var(--f-spacing-sml)",color:"var(--f-clr-text-100)"},".row:not(:last-child)":{borderBottom:"solid 1px var(--f-clr-fg-200)"},".row > *:not(.collapsed)":{whiteSpace:"nowrap"},'.row > [role="gridcell"]':{paddingInline:".4rem"},".collapsed":{minWidth:"2rem",display:"flex"},".header":{fontSize:".9em",fontWeight:700,background:"var(--f-clr-fg-200)"},".label":{position:"relative",borderRadius:"var(--f-radius-sml)",color:"var(--f-clr-grey-700)",display:"flex",alignItems:"center",gap:"var(--f-spacing-xxs)",width:"max-content",padding:".2rem .4rem",border:"none",background:"none",outline:"none"},".label:enabled":{cursor:"pointer"},".row .checkbox":{borderColor:"var(--f-clr-grey-300)"},".row .checkmark":{stroke:"var(--f-clr-text-200)"},".empty":{alignSelf:"center",marginBlock:"auto",padding:".6em",color:"var(--f-clr-grey-700)",fontWeight:600}});function h({cc:d={},data:h,columns:f,selectable:g,sortable:u,selected:b,onSelect:v,columnFormatters:x={},rowActions:k,emptyMessage:y="Nothing to display",...w}){const N=l(p,d),[j,C]=c(""),[A,z]=c("nil"),[S,W]=void 0!==b?[b]:c([]);function I(e){W?.(e),v?.(e)}const R="nil"!==A?h.slice().sort(((e,r)=>r[j]<e[j]?"asc"===A?1:-1:r[j]>e[j]?"asc"===A?-1:1:0)):h,T=`${g?"auto":""} repeat(${f.length}, 1fr) ${k?"auto":""}`;return e(t,{...w,role:"grid",horizontal:!0,behavior:"shift",className:o(N.table,w.className),children:r("div",{role:"rowgroup",className:N.rows,children:[r("div",{role:"row",className:o(N.row,N.header),style:{gridTemplateColumns:T},children:[g&&e("div",{className:N.collapsed,children:e(n,{size:"xsm",color:"var(--f-clr-text-100)",cc:{checkbox:N.checkbox,checkmark:N.checkmark},intermediate:S.length!==R.length,checked:!!S.length,onChange:e=>{if(!e.target.checked)return I([]);I(new Array(R.length).fill(0).map(((e,r)=>r)))}})}),f.map(((l,o)=>{const c=Array.isArray(u)?u.includes(l):u;return e("div",{role:"columnheader",children:e(a,{disabled:!c,children:r("button",{className:N.label,type:"button",disabled:!c,onClick:()=>{C(l),z(j!==l||"nil"===A?"asc":"asc"===A?"dsc":"nil")},children:[l,(j!==l||"nil"===A)&&c&&e(m,{type:"sort"}),j===l&&"asc"===A&&e(m,{type:"sortAscend"}),j===l&&"dsc"===A&&e(m,{type:"sortDescend"})]})})},o)})),k?e("div",{className:N.collapsed}):null]}),R.map(((l,o)=>e(a,{disabled:!g,children:r("div",{role:"row",className:N.row,style:{gridTemplateColumns:T},children:[g&&e("div",{className:N.collapsed,children:e(n,{size:"xsm",color:"var(--f-clr-text-100)",cc:{checkbox:N.checkbox,checkmark:N.checkmark},checked:S.includes(o),onChange:e=>{const r=S.slice();e.target.checked?r.push(o):r.splice(r.indexOf(o),1),I(r)}})}),f.map(((r,o)=>{const c=x[r]||(e=>e.toString());return e("div",{role:"gridcell",children:c(l[r])},o)})),k?.length?e("div",{className:N.collapsed,children:r(s.Root,{children:[e(s.Trigger,{children:e(i,{compact:!0,variant:"minimal",size:"sml",style:{marginLeft:"auto"},children:e(m,{type:"more"})})}),e(s.Menu,{children:k(R[o],o)})]})}):null]})},o))),!R.length&&e("div",{className:N.empty,children:y})]})})}export{h as default};
|
|
3
3
|
//# sourceMappingURL=table.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{
|
|
2
|
+
import{jsx as t}from"react/jsx-runtime";import{combineClasses as e,classes as i}from"../../core/utils.js";import{useRef as r,useState as n,useEffect as l}from"react";import{createStyles as c}from"../../core/style.js";import{useTrigger as o}from"@infinityfx/lively/hooks";import{Animatable as a}from"@infinityfx/lively";import{LayoutGroup as m}from"@infinityfx/lively/layout";const s=c("ticker",{".ticker":{display:"flex",alignItems:"flex-end",height:"1.25em",overflow:"hidden"},".column":{display:"flex",flexDirection:"column",alignItems:"center"},".column > *":{height:"1.25em",lineHeight:1.2,width:"100%",whiteSpace:"pre"}});function h({children:c,cc:h={},align:u="left",selective:g,duration:f=.7,stagger:d=.1,...p}){const v=e(s,h),y=o(),x=r(c.toString()),S=r(c.toString().split("").map((t=>[{char:t,active:1}]))),k=r([]),[w,b]=n(S.current);function j(){const t=[];for(let e=0;e<S.current.length;e++){let i=S.current[e];i=i.slice(i.length>2?1:0),(null!==i[i.length-1].char||i.length>2)&&t.push(i)}S.current=t,b(t)}return l((()=>{if(x.current===c.toString())return;x.current=c.toString();const t=x.current.split(""),e=S.current,i=e.length-t.length;k.current=e.map((t=>t[t.length-1].char)),i>0&&t["right"===u?"unshift":"push"](...new Array(i).fill(null));for(let r=t.length-1;r>=0;r--){const n="right"==u?r+Math.min(i,0):r;if(Array.isArray(e[n]))e[n].push({char:t[r],active:1});else{const i=[{char:t[r],active:1}];"right"===u?e.unshift(i):e[n]=i}setTimeout((()=>{const t=S.current[r];t?.length>1&&(t[t.length-2].active=0),b(S.current.slice())}),r*d*1e3)}setTimeout(j,1e3*(f+(e.length-1)*d)),y()}),[c]),t("div",{...p,className:i(v.ticker,p.className),children:t(m,{initialMount:!1,transition:{duration:f},children:w.map(((e,i)=>{const r=("right"===u?w.length-1-i:i).toString();return t(a,{id:r,adaptive:!0,deform:!1,cachable:["x","sx"],initial:{translate:"0em 0em"},animate:{translate:["0em 1.2em","0em 0em"],composite:"combine",duration:f,delay:i*d},triggers:[{on:y,name:g&&k.current[i]===e[e.length-1].char?"_":"animate",commit:!1},{on:"mount",commit:!1}],children:t("div",{className:v.column,children:e.map((({char:e,active:i},r)=>t("div",{children:t("div",{style:{position:i?void 0:"absolute"},children:e||" "})},r)))})},r)}))})})}export{h as default};
|
|
3
3
|
//# sourceMappingURL=ticker.js.map
|