tekivex-ui 2.5.10 → 2.5.12
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/TkxForm-1KDzoniV.cjs +12 -0
- package/dist/TkxForm-9-W3Nl6m.js +314 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.js +543 -507
- package/dist/chunk-Bmb41Sf3.cjs +1 -0
- package/dist/headless.cjs +1 -1
- package/dist/headless.js +428 -447
- package/dist/hooks-6pRsPOyG.js +58 -0
- package/dist/hooks-mivgRljH.cjs +1 -0
- package/dist/i18n.cjs +1 -1
- package/dist/i18n.js +728 -752
- package/dist/index.cjs +46 -23
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16103 -16237
- package/dist/quantum.cjs +14 -16
- package/dist/quantum.js +2473 -2279
- package/dist/realtime.cjs +4 -10
- package/dist/realtime.js +804 -958
- package/dist/src/components/TkxAIChatBubble.d.ts +24 -0
- package/dist/src/components/TkxAIChatBubble.d.ts.map +1 -0
- package/dist/src/components/TkxAIConfidenceBar.d.ts +17 -0
- package/dist/src/components/TkxAIConfidenceBar.d.ts.map +1 -0
- package/dist/src/components/TkxAIThinking.d.ts +17 -0
- package/dist/src/components/TkxAIThinking.d.ts.map +1 -0
- package/dist/src/components/TkxClock.d.ts.map +1 -1
- package/dist/src/components/TkxForm.d.ts.map +1 -1
- package/dist/src/components/TkxLiveFeed.d.ts +1 -1
- package/dist/src/components/TkxLiveLog.d.ts +1 -1
- package/dist/src/components/TkxRealTimeChart.d.ts +1 -1
- package/dist/src/components/TkxTooltip.d.ts.map +1 -1
- package/dist/src/components/TkxTypography.d.ts +5 -5
- package/dist/src/components/TkxTypography.d.ts.map +1 -1
- package/dist/src/components/index.d.ts +3 -0
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/tekivex-ui.css +2 -0
- package/dist/themes-BbJanqiC.js +498 -0
- package/dist/themes-CMq2vWXj.cjs +2 -0
- package/dist/tkx-0oAwZqgL.cjs +4 -0
- package/dist/tkx-DQkvHdE5.js +1172 -0
- package/package.json +16 -16
- package/src/components/TkxAIChatBubble.tsx +209 -0
- package/src/components/TkxAIConfidenceBar.tsx +131 -0
- package/src/components/TkxAIThinking.tsx +191 -0
- package/src/components/TkxClock.tsx +2 -2
- package/src/components/TkxForm.tsx +4 -2
- package/src/components/TkxTooltip.tsx +7 -5
- package/src/components/TkxTypography.tsx +2 -2
- package/src/components/index.ts +5 -0
- package/dist/TkxForm-2tGLCPH6.js +0 -326
- package/dist/TkxForm-C2VqR2wC.cjs +0 -12
- package/dist/index-BgHMZe4Z.js +0 -66
- package/dist/index-Bt5y50Qa.cjs +0 -1
- package/dist/index-DnqXtpwV.cjs +0 -2
- package/dist/index-iUUHRxqJ.js +0 -515
- package/dist/security-C-ZPGoyG.js +0 -97
- package/dist/security-Uf0mjv8o.cjs +0 -1
- package/dist/style.css +0 -1
- package/dist/tkx-BtHzWKTl.js +0 -1112
- package/dist/tkx-C7GvVUE9.cjs +0 -4
package/dist/tkx-C7GvVUE9.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";const Q=require("./index-DnqXtpwV.cjs"),l={0:"0",px:"1px","0.5":"2px",1:"4px","1.5":"6px",2:"8px","2.5":"10px",3:"12px","3.5":"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px",auto:"auto",full:"100%",screen:"100vw",svh:"100svh",dvh:"100dvh",fit:"fit-content",max:"max-content",min:"min-content"},D={...l,screen:"100vh"},x={"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","5/6":"83.333333%","1/12":"8.333333%","5/12":"41.666667%","7/12":"58.333333%","11/12":"91.666667%"},y={none:"0",sm:"2px","":"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px","3xl":"24px",full:"9999px"},H={sm:"0 1px 2px 0 rgba(0,0,0,.05)","":"0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)",md:"0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)",lg:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1)",xl:"0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1)","2xl":"0 25px 50px -12px rgba(0,0,0,.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,.05)",none:"none"},tt={xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},et={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},rt={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},nt={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},k={none:"0",sm:"4px","":"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},it=Object.fromEntries([0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100].map(t=>[String(t),String(t/100)])),Y=new Set(["bg","surface","surfaceAlt","border","text","textMuted","primary","secondary","danger","warning","success","info"]),ot={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},st=/javascript\s*:|vbscript\s*:|data\s*:\s*text\/html|data\s*:\s*text\/javascript|expression\s*\(|[\r\n\x00]/i,at=new Set(["behavior","-moz-binding","-webkit-binding","src"]),lt=new Set(["width","min-width","max-width","height","min-height","max-height","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","position","top","right","bottom","left","z-index","inset","flex","flex-grow","flex-shrink","flex-basis","flex-direction","flex-wrap","align-items","align-self","align-content","justify-content","justify-items","justify-self","gap","row-gap","column-gap","grid-template-columns","grid-template-rows","grid-column","grid-row","grid-area","grid-template-areas","font-size","font-weight","font-family","font-style","line-height","letter-spacing","text-align","text-decoration","text-transform","text-overflow","white-space","word-break","word-wrap","overflow-wrap","color","background","background-color","background-image","background-position","background-size","background-repeat","opacity","border","border-top","border-right","border-bottom","border-left","border-width","border-style","border-color","border-radius","outline","outline-offset","box-shadow","text-shadow","filter","backdrop-filter","transform","transition","animation","display","overflow","overflow-x","overflow-y","visibility","pointer-events","cursor","user-select","aspect-ratio","object-fit","object-position","list-style","vertical-align","float","clear","resize","scroll-behavior","content"]);function q(t){return st.test(t)||t.includes("}")||t.includes("{")||t.includes("<")||t.includes(">")?null:t}function ct(t){const o=t.toLowerCase().trim();return at.has(o)||!lt.has(o)?null:o}function i(t){const o=t.match(/^\[(.+)]$/);return o?q(o[1]):null}function h(t){if(Y.has(t))return`var(--tkx-${t})`;if(t==="transparent")return"transparent";if(t==="current")return"currentColor";if(t==="white")return"#ffffff";if(t==="black")return"#000000";if(t==="inherit")return"inherit";const o=i(t);return o||(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t),t)}function ft(t){const o=t.match(/^\[([a-zA-Z-]+):(.+)]$/);if(o){const r=ct(o[1]),n=q(o[2]);return r&&n?{[r]:n}:null}const s={flex:"flex","inline-flex":"inline-flex",grid:"grid","inline-grid":"inline-grid",block:"block","inline-block":"inline-block",inline:"inline",hidden:"none",contents:"contents","flow-root":"flow-root",table:"table","table-row":"table-row","table-cell":"table-cell","table-caption":"table-caption","list-item":"list-item"};if(s[t])return{display:s[t]};const a={"flex-row":"row","flex-col":"column","flex-row-reverse":"row-reverse","flex-col-reverse":"column-reverse"};if(a[t])return{"flex-direction":a[t]};const f={"flex-wrap":"wrap","flex-nowrap":"nowrap","flex-wrap-reverse":"wrap-reverse"};if(f[t])return{"flex-wrap":f[t]};const b={"flex-1":"1 1 0%","flex-auto":"1 1 auto","flex-none":"none","flex-initial":"0 1 auto"};if(b[t])return{flex:b[t]};if(t==="grow"||t==="flex-grow")return{"flex-grow":"1"};if(t==="grow-0")return{"flex-grow":"0"};if(t==="shrink"||t==="flex-shrink")return{"flex-shrink":"1"};if(t==="shrink-0"||t==="flex-shrink-0")return{"flex-shrink":"0"};const $={"items-start":"flex-start","items-end":"flex-end","items-center":"center","items-stretch":"stretch","items-baseline":"baseline"};if($[t])return{"align-items":$[t]};const d={"justify-start":"flex-start","justify-end":"flex-end","justify-center":"center","justify-between":"space-between","justify-around":"space-around","justify-evenly":"space-evenly","justify-stretch":"stretch","justify-normal":"normal"};if(d[t])return{"justify-content":d[t]};const c={"self-auto":"auto","self-start":"flex-start","self-end":"flex-end","self-center":"center","self-stretch":"stretch","self-baseline":"baseline"};if(c[t])return{"align-self":c[t]};const m={"content-start":"flex-start","content-end":"flex-end","content-center":"center","content-between":"space-between","content-around":"space-around","content-evenly":"space-evenly","content-stretch":"stretch"};if(m[t])return{"align-content":m[t]};let e;if(e=t.match(/^grid-cols-(\d+|none|subgrid)$/))return{"grid-template-columns":e[1]==="none"?"none":e[1]==="subgrid"?"subgrid":`repeat(${e[1]},minmax(0,1fr))`};if(e=t.match(/^grid-rows-(\d+|none|subgrid)$/))return{"grid-template-rows":e[1]==="none"?"none":e[1]==="subgrid"?"subgrid":`repeat(${e[1]},minmax(0,1fr))`};if(e=t.match(/^col-span-(full|\d+)$/))return{"grid-column":e[1]==="full"?"1 / -1":`span ${e[1]} / span ${e[1]}`};if(e=t.match(/^col-start-(\d+|auto)$/))return{"grid-column-start":e[1]};if(e=t.match(/^col-end-(\d+|auto)$/))return{"grid-column-end":e[1]};if(e=t.match(/^row-span-(full|\d+)$/))return{"grid-row":e[1]==="full"?"1 / -1":`span ${e[1]} / span ${e[1]}`};if(e=t.match(/^row-start-(\d+|auto)$/))return{"grid-row-start":e[1]};if(e=t.match(/^row-end-(\d+|auto)$/))return{"grid-row-end":e[1]};if(t==="grid-flow-row")return{"grid-auto-flow":"row"};if(t==="grid-flow-col")return{"grid-auto-flow":"column"};if(t==="grid-flow-dense")return{"grid-auto-flow":"dense"};if(t==="grid-flow-row-dense")return{"grid-auto-flow":"row dense"};if(t==="grid-flow-col-dense")return{"grid-auto-flow":"column dense"};if(e=t.match(/^p-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{padding:r}}if(e=t.match(/^px-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-left":r,"padding-right":r}}if(e=t.match(/^py-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-top":r,"padding-bottom":r}}if(e=t.match(/^pt-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-top":r}}if(e=t.match(/^pr-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-right":r}}if(e=t.match(/^pb-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-bottom":r}}if(e=t.match(/^pl-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-left":r}}if(e=t.match(/^-?m-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n)return{margin:r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?mx-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n){const p=r&&n!=="0"?`-${n}`:n;return{"margin-left":p,"margin-right":p}}}if(e=t.match(/^-?my-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n){const p=r&&n!=="0"?`-${n}`:n;return{"margin-top":p,"margin-bottom":p}}}if(e=t.match(/^-?mt-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n)return{"margin-top":r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?mr-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n)return{"margin-right":r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?mb-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n)return{"margin-bottom":r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?ml-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n)return{"margin-left":r&&n!=="0"?`-${n}`:n}}if(t==="mx-auto")return{"margin-left":"auto","margin-right":"auto"};if(t==="my-auto")return{"margin-top":"auto","margin-bottom":"auto"};if(e=t.match(/^gap-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{gap:r}}if(e=t.match(/^gap-x-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"column-gap":r}}if(e=t.match(/^gap-y-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"row-gap":r}}if(e=t.match(/^w-(.+)$/)){const r=e[1],n=l[r]??x[r]??i(r);if(n)return{width:n}}if(e=t.match(/^min-w-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"min-width":r}}if(e=t.match(/^max-w-(.+)$/)){const n={none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}[e[1]]??l[e[1]]??i(e[1]);if(n)return{"max-width":n}}if(e=t.match(/^h-(.+)$/)){const r=e[1],n=D[r]??x[r]??i(r);if(n)return{height:n}}if(e=t.match(/^min-h-(.+)$/)){const n={0:"0",full:"100%",screen:"100vh",svh:"100svh",dvh:"100dvh"}[e[1]]??l[e[1]]??i(e[1]);if(n)return{"min-height":n}}if(e=t.match(/^max-h-(.+)$/)){const r=D[e[1]]??i(e[1]);if(r)return{"max-height":r}}if(e=t.match(/^size-(.+)$/)){const r=l[e[1]]??x[e[1]]??i(e[1]);if(r)return{width:r,height:r}}if(e=t.match(/^text-(xs|sm|base|lg|[2-9]xl|\d+xl)$/)){const[r,n]=tt[e[1]]??["1rem","1.5rem"];return{"font-size":r,"line-height":n}}if(e=t.match(/^font-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black|\d+)$/))return{"font-weight":et[e[1]]??e[1]};if(e=t.match(/^leading-(.+)$/)){const r=rt[e[1]]??i(e[1]);if(r)return{"line-height":r}}if(e=t.match(/^tracking-(.+)$/)){const r=nt[e[1]]??i(e[1]);if(r)return{"letter-spacing":r}}const u={"text-left":"left","text-center":"center","text-right":"right","text-justify":"justify","text-start":"start","text-end":"end"};if(u[t])return{"text-align":u[t]};if(t==="italic")return{"font-style":"italic"};if(t==="not-italic")return{"font-style":"normal"};if(t==="uppercase")return{"text-transform":"uppercase"};if(t==="lowercase")return{"text-transform":"lowercase"};if(t==="capitalize")return{"text-transform":"capitalize"};if(t==="normal-case")return{"text-transform":"none"};if(t==="underline")return{"text-decoration-line":"underline"};if(t==="overline")return{"text-decoration-line":"overline"};if(t==="line-through")return{"text-decoration-line":"line-through"};if(t==="no-underline")return{"text-decoration-line":"none"};if(t==="truncate")return{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"};if(t==="text-ellipsis")return{"text-overflow":"ellipsis"};if(t==="text-clip")return{"text-overflow":"clip"};if(t==="whitespace-normal")return{"white-space":"normal"};if(t==="whitespace-nowrap")return{"white-space":"nowrap"};if(t==="whitespace-pre")return{"white-space":"pre"};if(t==="whitespace-pre-wrap")return{"white-space":"pre-wrap"};if(t==="whitespace-pre-line")return{"white-space":"pre-line"};if(t==="break-words")return{"overflow-wrap":"break-word"};if(t==="break-all")return{"word-break":"break-all"};if(t==="break-keep")return{"word-break":"keep-all"};if(t==="font-mono")return{"font-family":"var(--tkx-font-mono,monospace)"};if(t==="font-sans")return{"font-family":"var(--tkx-font-family,system-ui,sans-serif)"};if(t==="font-serif")return{"font-family":"ui-serif,Georgia,serif"};if(t==="antialiased")return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"};if(e=t.match(/^indent-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"text-indent":r}}if(e=t.match(/^line-clamp-(\d+)$/))return{overflow:"hidden",display:"-webkit-box","-webkit-line-clamp":e[1],"-webkit-box-orient":"vertical"};if(e=t.match(/^text-(.+)$/)){const[r,n]=e[1].split("/"),p=h(r);if(!["left","center","right","justify","start","end","xs","sm","base","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl"].includes(r)){if(n){const J=parseInt(n)/100;return{color:p,opacity:String(J)}}return{color:p}}}if(e=t.match(/^bg-(.+)$/)){const[r,n]=e[1].split("/"),p=h(r);return n?{"background-color":p,opacity:String(parseInt(n)/100)}:r==="none"?{background:"none"}:{"background-color":p}}if(e=t.match(/^border-color-(.+)$/))return{"border-color":h(e[1])};if(e=t.match(/^fill-(.+)$/))return{fill:h(e[1])};if(e=t.match(/^stroke-(.+)$/))return{stroke:h(e[1])};if(e=t.match(/^shadow-color-(.+)$/))return{"--tkx-shadow-color":h(e[1])};if(e=t.match(/^ring-color-(.+)$/))return{"--tkx-ring-color":h(e[1])};if(e=t.match(/^accent-(.+)$/))return{"accent-color":h(e[1])};if(e=t.match(/^caret-(.+)$/))return{"caret-color":h(e[1])};if(e=t.match(/^outline-color-(.+)$/))return{"outline-color":h(e[1])};if(t==="border")return{"border-width":"1px"};if(e=t.match(/^border-(\d+)$/))return{"border-width":`${e[1]}px`};if(t==="border-t")return{"border-top-width":"1px"};if(e=t.match(/^border-t-(\d+)$/))return{"border-top-width":`${e[1]}px`};if(t==="border-r")return{"border-right-width":"1px"};if(e=t.match(/^border-r-(\d+)$/))return{"border-right-width":`${e[1]}px`};if(t==="border-b")return{"border-bottom-width":"1px"};if(e=t.match(/^border-b-(\d+)$/))return{"border-bottom-width":`${e[1]}px`};if(t==="border-l")return{"border-left-width":"1px"};if(e=t.match(/^border-l-(\d+)$/))return{"border-left-width":`${e[1]}px`};if(t==="border-x")return{"border-left-width":"1px","border-right-width":"1px"};if(t==="border-y")return{"border-top-width":"1px","border-bottom-width":"1px"};if(t==="border-none")return{"border-style":"none"};if(t==="border-solid")return{"border-style":"solid"};if(t==="border-dashed")return{"border-style":"dashed"};if(t==="border-dotted")return{"border-style":"dotted"};if(t==="border-double")return{"border-style":"double"};if((e=t.match(/^border-([a-zA-Z].*)$/))&&Y.has(e[1]))return{"border-color":`var(--tkx-${e[1]})`};if(e=t.match(/^border-\[(.+)]$/))return{"border-color":e[1]};if(t==="border-0")return{"border-width":"0"};if(t==="rounded")return{"border-radius":y[""]};if(e=t.match(/^rounded-(none|sm|md|lg|xl|2xl|3xl|full|\[.+])$/))return{"border-radius":y[e[1]]??i(e[1])??e[1]};if(e=t.match(/^rounded-(t|r|b|l|tl|tr|br|bl)(?:-(none|sm|md|lg|xl|2xl|3xl|full))?$/)){const r=e[1],n=y[e[2]??""]??y[""];return{t:{"border-top-left-radius":n,"border-top-right-radius":n},r:{"border-top-right-radius":n,"border-bottom-right-radius":n},b:{"border-bottom-left-radius":n,"border-bottom-right-radius":n},l:{"border-top-left-radius":n,"border-bottom-left-radius":n},tl:{"border-top-left-radius":n},tr:{"border-top-right-radius":n},br:{"border-bottom-right-radius":n},bl:{"border-bottom-left-radius":n}}[r]??{}}const w={0:"0",1:"1px",2:"2px",ring:"3px",4:"4px",8:"8px"};if(t==="ring")return{"box-shadow":"0 0 0 3px var(--tkx-ring-color,var(--tkx-primary))"};if((e=t.match(/^ring-(\d+)$/))&&w[e[1]])return{"box-shadow":`0 0 0 ${w[e[1]]} var(--tkx-ring-color,var(--tkx-primary))`};if(t==="ring-inset")return{"--tkx-ring-offset":"inset"};if(e=t.match(/^ring-offset-(\d+)$/))return{"--tkx-ring-offset-width":`${e[1]}px`,"box-shadow":`0 0 0 ${e[1]}px var(--tkx-bg)`};if(t==="shadow")return{"box-shadow":H[""]};if(e=t.match(/^shadow-(sm|md|lg|xl|2xl|inner|none)$/))return{"box-shadow":H[e[1]]};if(e=t.match(/^opacity-(\d+)$/)){const r=it[e[1]];if(r!==void 0)return{opacity:r}}if(t==="bg-none")return{background:"none"};const M={"bg-auto":"auto","bg-cover":"cover","bg-contain":"contain"};if(M[t])return{"background-size":M[t]};const C={"bg-center":"center","bg-top":"top","bg-bottom":"bottom","bg-left":"left","bg-right":"right"};if(C[t])return{"background-position":C[t]};const W={"bg-repeat":"repeat","bg-no-repeat":"no-repeat","bg-repeat-x":"repeat-x","bg-repeat-y":"repeat-y"};if(W[t])return{"background-repeat":W[t]};if(t==="backdrop-blur")return{"backdrop-filter":`blur(${k[""]})`};if(e=t.match(/^backdrop-blur-(none|sm|md|lg|xl|2xl|3xl)$/))return{"backdrop-filter":`blur(${k[e[1]]})`};if(t==="blur")return{filter:`blur(${k[""]})`};if(e=t.match(/^blur-(none|sm|md|lg|xl|2xl|3xl)$/))return{filter:`blur(${k[e[1]]})`};if(t==="grayscale")return{filter:"grayscale(100%)"};if(t==="grayscale-0")return{filter:"grayscale(0)"};if(t==="invert")return{filter:"invert(100%)"};if(t==="invert-0")return{filter:"invert(0)"};const E={static:"static",relative:"relative",absolute:"absolute",fixed:"fixed",sticky:"sticky"};if(E[t])return{position:E[t]};if(t==="inset-0")return{top:"0",right:"0",bottom:"0",left:"0"};if(t==="inset-auto")return{top:"auto",right:"auto",bottom:"auto",left:"auto"};if(t==="inset-full")return{top:"100%",right:"100%",bottom:"100%",left:"100%"};if(t==="inset-x-0")return{left:"0",right:"0"};if(t==="inset-y-0")return{top:"0",bottom:"0"};if(e=t.match(/^-?top-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{top:r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?right-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{right:r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?bottom-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{bottom:r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?left-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{left:r&&n!=="0"?`-${n}`:n}}const K={0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",100:"100",1e3:"1000",9e3:"9000",auto:"auto"};if(e=t.match(/^z-(.+)$/)){const r=K[e[1]]??i(e[1]);if(r)return{"z-index":r}}const P={"overflow-auto":"auto","overflow-hidden":"hidden","overflow-visible":"visible","overflow-scroll":"scroll","overflow-clip":"clip"};if(P[t])return{overflow:P[t]};if(e=t.match(/^overflow-(x|y)-(auto|hidden|visible|scroll|clip)$/))return{[`overflow-${e[1]}`]:e[2]};if(t==="scrollbar-hide")return{"-ms-overflow-style":"none","scrollbar-width":"none"};if(t==="visible")return{visibility:"visible"};if(t==="invisible")return{visibility:"hidden"};if(t==="collapse")return{visibility:"collapse"};const O={"cursor-auto":"auto","cursor-default":"default","cursor-pointer":"pointer","cursor-wait":"wait","cursor-text":"text","cursor-move":"move","cursor-help":"help","cursor-not-allowed":"not-allowed","cursor-none":"none","cursor-grab":"grab","cursor-grabbing":"grabbing","cursor-zoom-in":"zoom-in","cursor-zoom-out":"zoom-out","cursor-crosshair":"crosshair"};if(O[t])return{cursor:O[t]};if(t==="select-none")return{"user-select":"none"};if(t==="select-text")return{"user-select":"text"};if(t==="select-all")return{"user-select":"all"};if(t==="select-auto")return{"user-select":"auto"};if(t==="pointer-events-none")return{"pointer-events":"none"};if(t==="pointer-events-auto")return{"pointer-events":"auto"};const j={0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"};if(e=t.match(/^scale-(.+)$/)){const r=j[e[1]]??i(e[1]);if(r)return{transform:`scale(${r})`}}if(e=t.match(/^scale-x-(.+)$/)){const r=j[e[1]]??i(e[1]);if(r)return{transform:`scaleX(${r})`}}if(e=t.match(/^scale-y-(.+)$/)){const r=j[e[1]]??i(e[1]);if(r)return{transform:`scaleY(${r})`}}const V={0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"};if(e=t.match(/^-?rotate-(.+)$/)){const r=t.startsWith("-"),n=V[e[1]]??i(e[1]);if(n)return{transform:r?`rotate(-${n})`:`rotate(${n})`}}if(e=t.match(/^-?translate-x-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{transform:`translateX(${r&&n!=="0"?`-${n}`:n})`}}if(e=t.match(/^-?translate-y-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{transform:`translateY(${r&&n!=="0"?`-${n}`:n})`}}if(e=t.match(/^-?skew-x-(.+)$/)){const r=t.startsWith("-"),n=i(e[1])??`${e[1]}deg`;return{transform:r?`skewX(-${n})`:`skewX(${n})`}}if(e=t.match(/^-?skew-y-(.+)$/)){const r=t.startsWith("-"),n=i(e[1])??`${e[1]}deg`;return{transform:r?`skewY(-${n})`:`skewY(${n})`}}const R={"origin-center":"center","origin-top":"top","origin-top-right":"top right","origin-right":"right","origin-bottom-right":"bottom right","origin-bottom":"bottom","origin-bottom-left":"bottom left","origin-left":"left","origin-top-left":"top left"};if(R[t])return{"transform-origin":R[t]};const I={transition:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter","transition-all":"all","transition-colors":"color,background-color,border-color,text-decoration-color,fill,stroke","transition-opacity":"opacity","transition-shadow":"box-shadow","transition-transform":"transform","transition-none":"none"};if(I[t])return{"transition-property":I[t],"transition-timing-function":"cubic-bezier(0.4,0,0.2,1)","transition-duration":"150ms"};const T={75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"};if(e=t.match(/^duration-(.+)$/)){const r=T[e[1]]??i(e[1]);if(r)return{"transition-duration":r}}if(e=t.match(/^delay-(.+)$/)){const r=T[e[1]]??i(e[1]);if(r)return{"transition-delay":r}}const N={"ease-linear":"linear","ease-in":"cubic-bezier(0.4,0,1,1)","ease-out":"cubic-bezier(0,0,0.2,1)","ease-in-out":"cubic-bezier(0.4,0,0.2,1)"};if(N[t])return{"transition-timing-function":N[t]};const _={"animate-none":"none","animate-spin":"tkx-spin 1s linear infinite","animate-ping":"tkx-ping 1s cubic-bezier(0,0,0.2,1) infinite","animate-pulse":"tkx-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite","animate-bounce":"tkx-bounce 1s infinite","animate-fade-in":"tkx-fade-in 200ms ease both","animate-slide-up":"tkx-slide-up 200ms ease both","animate-shimmer":"tkx-shimmer 1.5s infinite"};if(_[t])return{animation:_[t]};const F={"object-contain":"contain","object-cover":"cover","object-fill":"fill","object-none":"none","object-scale-down":"scale-down"};if(F[t])return{"object-fit":F[t]};if(t==="aspect-square")return{"aspect-ratio":"1 / 1"};if(t==="aspect-video")return{"aspect-ratio":"16 / 9"};if(t==="aspect-auto")return{"aspect-ratio":"auto"};if(e=t.match(/^aspect-\[(.+)]$/))return{"aspect-ratio":e[1]};if(t==="list-none")return{"list-style-type":"none"};if(t==="list-disc")return{"list-style-type":"disc"};if(t==="list-decimal")return{"list-style-type":"decimal"};if(t==="list-inside")return{"list-style-position":"inside"};if(t==="list-outside")return{"list-style-position":"outside"};if(e=t.match(/^columns-(\d+)$/))return{columns:e[1]};if(t==="resize")return{resize:"both"};if(t==="resize-none")return{resize:"none"};if(t==="resize-x")return{resize:"horizontal"};if(t==="resize-y")return{resize:"vertical"};if(t==="sr-only")return{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap",border:"0"};if(t==="not-sr-only")return{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"};if(t==="focus-ring")return{outline:"2px solid var(--tkx-primary)","outline-offset":"2px","border-radius":"2px"};if(t==="appearance-none")return{appearance:"none"};if(t==="outline-none")return{outline:"none"};if(t==="outline")return{outline:"2px solid currentColor","outline-offset":"2px"};if(t==="float-left")return{float:"left"};if(t==="float-right")return{float:"right"};if(t==="float-none")return{float:"none"};if(t==="clear-both")return{clear:"both"};if(t==="isolate")return{isolation:"isolate"};if(t==="isolation-auto")return{isolation:"auto"};if(e=t.match(/^will-change-(.+)$/))return{"will-change":e[1]};if(t==="touch-manipulation")return{"touch-action":"manipulation"};if(t==="touch-none")return{"touch-action":"none"};if(t==="touch-pan-x")return{"touch-action":"pan-x"};if(t==="touch-pan-y")return{"touch-action":"pan-y"};if(t==="scroll-smooth")return{"scroll-behavior":"smooth"};if(t==="scroll-auto")return{"scroll-behavior":"auto"};if(e=t.match(/^\[(--[a-zA-Z0-9-]+):(.+)]$/))return{[e[1]]:e[2]};const U=Z(t);return U||null}function dt(t){let o=0,s=-1;for(let a=0;a<t.length;a++)if(t[a]==="[")o++;else if(t[a]==="]")o--;else if(t[a]===":"&&o===0){s=a;break}return s===-1?{variant:null,utility:t}:{variant:t.slice(0,s),utility:t.slice(s+1)}}function G(t,o){for(const[s,a]of Object.entries(o))t[s]=a}function A(t){return Object.entries(t).map(([o,s])=>`${o}:${s}`).join(";")}const S=new Map;let g=null,v=null;function L(){return(!g||!g.isConnected)&&(g=document.getElementById("tkx-atomic"),g||(g=document.createElement("style"),g.id="tkx-atomic",document.head.appendChild(g))),g}function pt(){if(v)return v;try{const t=new CSSStyleSheet;return document.adoptedStyleSheets=[...document.adoptedStyleSheets,t],v=t,t}catch{return null}}function mt(t,o){if(S.has(t)||(S.set(t,o),typeof document>"u"))return;const s=pt();if(s){const a=ht(o);for(const f of a)try{s.insertRule(f,s.cssRules.length)}catch{L().textContent+=f+`
|
|
2
|
-
`}}else L().textContent+=o+`
|
|
3
|
-
`}function ht(t){const o=[];let s=0,a=0;for(let f=0;f<t.length;f++)if(t[f]==="{")s++;else if(t[f]==="}"&&(s--,s===0)){const b=t.slice(a,f+1).trim();b&&o.push(b),a=f+1}return o}function B(t){const o=[];for(const s of t)if(s){if(typeof s=="string")o.push(...s.split(/\s+/).filter(Boolean));else if(Array.isArray(s))o.push(...B(s));else if(typeof s=="object")for(const[a,f]of Object.entries(s))f&&o.push(a)}return o}function X(...t){const o=B(t);if(o.length===0)return"";const s={base:{},variants:{}};for(const c of o){const{variant:m,utility:e}=dt(c),u=ft(e);u&&(m?(s.variants[m]||(s.variants[m]={}),G(s.variants[m],u)):G(s.base,u))}const a=[],f=A(s.base),b=[f,...Object.entries(s.variants).map(([c,m])=>`${c}{${A(m)}}`)].join("|"),$=Q.fnv1aHash(b),d=`tkx-${$}`;f&&a.push(`.${d}{${f}}`);for(const[c,m]of Object.entries(s.variants)){const e=A(m);if(e)if(c.startsWith("@")){const u=c.slice(1),w=ot[u];w&&a.push(`@media(min-width:${w}){.${d}{${e}}}`)}else if(c==="motion-safe")a.push(`@media(prefers-reduced-motion:no-preference){.${d}{${e}}}`);else if(c==="motion-reduce")a.push(`@media(prefers-reduced-motion:reduce){.${d}{${e}}}`);else if(c==="contrast-more")a.push(`@media(prefers-contrast:more){.${d}{${e}}}`);else if(c==="forced-colors")a.push(`@media(forced-colors:active){.${d}{${e}}}`);else if(c==="dark")a.push(`@media(prefers-color-scheme:dark){.${d}{${e}}}`);else if(c==="print")a.push(`@media print{.${d}{${e}}}`);else if(c==="group-hover")a.push(`.group:hover .${d}{${e}}`);else if(c==="group-focus")a.push(`.group:focus-within .${d}{${e}}`);else if(c==="peer-hover")a.push(`.peer:hover~.${d}{${e}}`);else{const w={hover:":hover",focus:":focus","focus-visible":":focus-visible","focus-within":":focus-within",active:":active",disabled:":disabled",checked:":checked",required:":required",valid:":valid",invalid:":invalid",first:":first-child",last:":last-child",odd:":nth-child(odd)",even:":nth-child(even)","first-of-type":":first-of-type","last-of-type":":last-of-type","only-child":":only-child","only-of-type":":only-of-type",empty:":empty",visited:":visited",target:":target","placeholder-shown":":placeholder-shown","read-only":":read-only",before:"::before",after:"::after",placeholder:"::placeholder",selection:"::selection","file-selector":"::file-selector-button",marker:"::marker"}[c]??`:${c}`;a.push(`.${d}${w}{${e}}`)}}return a.length>0&&mt($,a.join("")),d}const ut=X;function xt(){return Array.from(S.values()).join(`
|
|
4
|
-
`)}function gt(){S.clear(),g=null,v&&typeof document<"u"&&(document.adoptedStyleSheets=document.adoptedStyleSheets.filter(t=>t!==v),v=null)}function bt(...t){return t.filter(Boolean).join(" ")}const z=new Map;function wt(t){z.set(t.name,t.utilities)}function vt(t){z.delete(t)}function $t(){return Array.from(z.keys())}function Z(t){for(const o of z.values())if(o[t])return o[t];return null}exports.cx=bt;exports.extractAtomicCSS=xt;exports.resetAtomicCSS=gt;exports.resolvePluginUtility=Z;exports.tkx=X;exports.tkxListPlugins=$t;exports.tkxPlugin=wt;exports.tkxRemovePlugin=vt;exports.tx=ut;
|