@minejs/jsx 0.2.6 → 0.2.8

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/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { J as JSXElement, R as RenderOptions, M as MountedComponent } from './jsx-dev-runtime-sMogz8rT.cjs';
2
- export { C as ComponentFunction, d as ContainerAlign, G as ContainerAnimateDelay, F as ContainerAnimateDuration, H as ContainerAnimateEase, I as ContainerAnimateFill, E as ContainerAnimation, a as ContainerAs, q as ContainerBg, s as ContainerBorderColor, t as ContainerBorderStyle, u as ContainerBorderWidth, z as ContainerCursor, c as ContainerDirection, b as ContainerDisplay, j as ContainerFraction, f as ContainerGap, n as ContainerHeight, e as ContainerJustify, p as ContainerMaxHeight, l as ContainerMaxWidth, o as ContainerMinHeight, m as ContainerMinWidth, y as ContainerOverflow, B as ContainerPointerEvents, x as ContainerPosition, K as ContainerProps, v as ContainerRadius, D as ContainerResize, i as ContainerScale, w as ContainerShadow, g as ContainerSpace, h as ContainerSpaceOrAuto, r as ContainerTextColor, A as ContainerUserSelect, k as ContainerWidth, X as For, Q as Fragment, L as JSXProps, O as OverlayPosition, V as Show, W as Switch, S as component, U as createElements, T as defineComponent, N as jsx, P as jsxs } from './jsx-dev-runtime-sMogz8rT.cjs';
1
+ import { J as JSXElement, R as RenderOptions, M as MountedComponent, O as OverlayPosition } from './jsx-dev-runtime-C8Et6jKR.cjs';
2
+ export { C as ComponentFunction, d as ContainerAlign, N as ContainerAnimateDelay, L as ContainerAnimateDuration, P as ContainerAnimateEase, Q as ContainerAnimateFill, K as ContainerAnimation, a as ContainerAs, q as ContainerBg, s as ContainerBorderColor, t as ContainerBorderStyle, u as ContainerBorderWidth, z as ContainerCursor, c as ContainerDirection, b as ContainerDisplay, j as ContainerFraction, f as ContainerGap, n as ContainerHeight, e as ContainerJustify, p as ContainerMaxHeight, l as ContainerMaxWidth, o as ContainerMinHeight, m as ContainerMinWidth, y as ContainerOverflow, B as ContainerPointerEvents, x as ContainerPosition, S as ContainerProps, v as ContainerRadius, D as ContainerResize, i as ContainerScale, w as ContainerShadow, g as ContainerSpace, h as ContainerSpaceOrAuto, G as ContainerTextAlign, r as ContainerTextColor, E as ContainerTextSize, I as ContainerTextTransform, F as ContainerTextWeight, H as ContainerTextWrap, A as ContainerUserSelect, k as ContainerWidth, a0 as For, W as Fragment, T as JSXProps, _ as Show, $ as Switch, X as component, Z as createElements, Y as defineComponent, U as jsx, V as jsxs } from './jsx-dev-runtime-C8Et6jKR.cjs';
3
3
  import '@minejs/signals';
4
4
 
5
5
  /**
@@ -103,4 +103,87 @@ declare function normalizeString(value: string): string;
103
103
  */
104
104
  declare function cleanClassName(value: string): string;
105
105
 
106
- export { ErrorBoundary, JSXElement, MountedComponent, RenderOptions, Suspense, Teleport, cleanClassName, createPortal, createRoot, hydrate, isBrowser, lazy, minifyHTML, mount, normalizeString, onDOMReady, queueUpdate, render };
106
+ interface DividerProps {
107
+ orientation?: 'horizontal' | 'vertical';
108
+ variant?: 'solid' | 'dashed' | 'dotted';
109
+ thickness?: 'super-thin' | 'thin' | 'medium' | 'thick';
110
+ color?: '1' | '2' | '3' | 'brand' | 'current';
111
+ opacity?: 0 | 5 | 10 | 20 | 25 | 30 | 40 | 50 | 60 | 70 | 75 | 80 | 90 | 95 | 100;
112
+ spacing?: 0 | 1 | 2 | 3 | 4 | 6 | 8 | 12;
113
+ max?: number;
114
+ className?: string;
115
+ role?: string;
116
+ 'aria-orientation'?: 'horizontal' | 'vertical';
117
+ [key: string]: any;
118
+ }
119
+ /**
120
+ * Renders a visual divider line to separate content.
121
+ */
122
+ declare function Divider(props: DividerProps): JSXElement | null;
123
+
124
+ interface OverlayProps {
125
+ children?: any;
126
+ /**
127
+ * The ID of the form element the overlay is bound to (renders as a label).
128
+ */
129
+ htmlFor?: string;
130
+ /**
131
+ * Whether to show a backdrop (dimmed background).
132
+ * @default false
133
+ */
134
+ backdrop?: boolean;
135
+ /**
136
+ * The z-index of the overlay.
137
+ * @default 50
138
+ */
139
+ zIndex?: number;
140
+ /**
141
+ * The position of the content within the overlay.
142
+ * @default 'center'
143
+ */
144
+ position?: OverlayPosition;
145
+ /**
146
+ * Additional CSS classes.
147
+ */
148
+ className?: string;
149
+ /**
150
+ * Inline styles.
151
+ */
152
+ style?: any;
153
+ /**
154
+ * Click handler for the overlay background (often used to close).
155
+ */
156
+ onClick?: (e: any) => void;
157
+ /**
158
+ * Any other props
159
+ */
160
+ [key: string]: any;
161
+ }
162
+ /**
163
+ * Overlay component that renders a full-screen container with flexible positioning.
164
+ */
165
+ declare function Overlay(props: OverlayProps): JSXElement;
166
+
167
+ interface TextProps {
168
+ as?: string;
169
+ children?: any;
170
+ size?: 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
171
+ weight?: 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
172
+ align?: 'start' | 'center' | 'end' | 'justify';
173
+ color?: '1' | '2' | '3' | 'brand' | 'success' | 'warning' | 'danger' | 'info' | 'current';
174
+ display?: 'inline' | 'block' | 'inline-block';
175
+ italic?: boolean;
176
+ underline?: boolean;
177
+ lineThrough?: boolean;
178
+ truncate?: boolean;
179
+ noWrap?: boolean;
180
+ className?: string;
181
+ style?: any;
182
+ [key: string]: any;
183
+ }
184
+ /**
185
+ * Text component for standardized typography.
186
+ */
187
+ declare function Text(props: TextProps): JSXElement;
188
+
189
+ export { Divider, type DividerProps, ErrorBoundary, JSXElement, MountedComponent, Overlay, OverlayPosition, type OverlayProps, RenderOptions, Suspense, Teleport, Text, type TextProps, cleanClassName, createPortal, createRoot, hydrate, isBrowser, lazy, minifyHTML, mount, normalizeString, onDOMReady, queueUpdate, render };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { J as JSXElement, R as RenderOptions, M as MountedComponent } from './jsx-dev-runtime-sMogz8rT.js';
2
- export { C as ComponentFunction, d as ContainerAlign, G as ContainerAnimateDelay, F as ContainerAnimateDuration, H as ContainerAnimateEase, I as ContainerAnimateFill, E as ContainerAnimation, a as ContainerAs, q as ContainerBg, s as ContainerBorderColor, t as ContainerBorderStyle, u as ContainerBorderWidth, z as ContainerCursor, c as ContainerDirection, b as ContainerDisplay, j as ContainerFraction, f as ContainerGap, n as ContainerHeight, e as ContainerJustify, p as ContainerMaxHeight, l as ContainerMaxWidth, o as ContainerMinHeight, m as ContainerMinWidth, y as ContainerOverflow, B as ContainerPointerEvents, x as ContainerPosition, K as ContainerProps, v as ContainerRadius, D as ContainerResize, i as ContainerScale, w as ContainerShadow, g as ContainerSpace, h as ContainerSpaceOrAuto, r as ContainerTextColor, A as ContainerUserSelect, k as ContainerWidth, X as For, Q as Fragment, L as JSXProps, O as OverlayPosition, V as Show, W as Switch, S as component, U as createElements, T as defineComponent, N as jsx, P as jsxs } from './jsx-dev-runtime-sMogz8rT.js';
1
+ import { J as JSXElement, R as RenderOptions, M as MountedComponent, O as OverlayPosition } from './jsx-dev-runtime-C8Et6jKR.js';
2
+ export { C as ComponentFunction, d as ContainerAlign, N as ContainerAnimateDelay, L as ContainerAnimateDuration, P as ContainerAnimateEase, Q as ContainerAnimateFill, K as ContainerAnimation, a as ContainerAs, q as ContainerBg, s as ContainerBorderColor, t as ContainerBorderStyle, u as ContainerBorderWidth, z as ContainerCursor, c as ContainerDirection, b as ContainerDisplay, j as ContainerFraction, f as ContainerGap, n as ContainerHeight, e as ContainerJustify, p as ContainerMaxHeight, l as ContainerMaxWidth, o as ContainerMinHeight, m as ContainerMinWidth, y as ContainerOverflow, B as ContainerPointerEvents, x as ContainerPosition, S as ContainerProps, v as ContainerRadius, D as ContainerResize, i as ContainerScale, w as ContainerShadow, g as ContainerSpace, h as ContainerSpaceOrAuto, G as ContainerTextAlign, r as ContainerTextColor, E as ContainerTextSize, I as ContainerTextTransform, F as ContainerTextWeight, H as ContainerTextWrap, A as ContainerUserSelect, k as ContainerWidth, a0 as For, W as Fragment, T as JSXProps, _ as Show, $ as Switch, X as component, Z as createElements, Y as defineComponent, U as jsx, V as jsxs } from './jsx-dev-runtime-C8Et6jKR.js';
3
3
  import '@minejs/signals';
4
4
 
5
5
  /**
@@ -103,4 +103,87 @@ declare function normalizeString(value: string): string;
103
103
  */
104
104
  declare function cleanClassName(value: string): string;
105
105
 
106
- export { ErrorBoundary, JSXElement, MountedComponent, RenderOptions, Suspense, Teleport, cleanClassName, createPortal, createRoot, hydrate, isBrowser, lazy, minifyHTML, mount, normalizeString, onDOMReady, queueUpdate, render };
106
+ interface DividerProps {
107
+ orientation?: 'horizontal' | 'vertical';
108
+ variant?: 'solid' | 'dashed' | 'dotted';
109
+ thickness?: 'super-thin' | 'thin' | 'medium' | 'thick';
110
+ color?: '1' | '2' | '3' | 'brand' | 'current';
111
+ opacity?: 0 | 5 | 10 | 20 | 25 | 30 | 40 | 50 | 60 | 70 | 75 | 80 | 90 | 95 | 100;
112
+ spacing?: 0 | 1 | 2 | 3 | 4 | 6 | 8 | 12;
113
+ max?: number;
114
+ className?: string;
115
+ role?: string;
116
+ 'aria-orientation'?: 'horizontal' | 'vertical';
117
+ [key: string]: any;
118
+ }
119
+ /**
120
+ * Renders a visual divider line to separate content.
121
+ */
122
+ declare function Divider(props: DividerProps): JSXElement | null;
123
+
124
+ interface OverlayProps {
125
+ children?: any;
126
+ /**
127
+ * The ID of the form element the overlay is bound to (renders as a label).
128
+ */
129
+ htmlFor?: string;
130
+ /**
131
+ * Whether to show a backdrop (dimmed background).
132
+ * @default false
133
+ */
134
+ backdrop?: boolean;
135
+ /**
136
+ * The z-index of the overlay.
137
+ * @default 50
138
+ */
139
+ zIndex?: number;
140
+ /**
141
+ * The position of the content within the overlay.
142
+ * @default 'center'
143
+ */
144
+ position?: OverlayPosition;
145
+ /**
146
+ * Additional CSS classes.
147
+ */
148
+ className?: string;
149
+ /**
150
+ * Inline styles.
151
+ */
152
+ style?: any;
153
+ /**
154
+ * Click handler for the overlay background (often used to close).
155
+ */
156
+ onClick?: (e: any) => void;
157
+ /**
158
+ * Any other props
159
+ */
160
+ [key: string]: any;
161
+ }
162
+ /**
163
+ * Overlay component that renders a full-screen container with flexible positioning.
164
+ */
165
+ declare function Overlay(props: OverlayProps): JSXElement;
166
+
167
+ interface TextProps {
168
+ as?: string;
169
+ children?: any;
170
+ size?: 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
171
+ weight?: 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
172
+ align?: 'start' | 'center' | 'end' | 'justify';
173
+ color?: '1' | '2' | '3' | 'brand' | 'success' | 'warning' | 'danger' | 'info' | 'current';
174
+ display?: 'inline' | 'block' | 'inline-block';
175
+ italic?: boolean;
176
+ underline?: boolean;
177
+ lineThrough?: boolean;
178
+ truncate?: boolean;
179
+ noWrap?: boolean;
180
+ className?: string;
181
+ style?: any;
182
+ [key: string]: any;
183
+ }
184
+ /**
185
+ * Text component for standardized typography.
186
+ */
187
+ declare function Text(props: TextProps): JSXElement;
188
+
189
+ export { Divider, type DividerProps, ErrorBoundary, JSXElement, MountedComponent, Overlay, OverlayPosition, type OverlayProps, RenderOptions, Suspense, Teleport, Text, type TextProps, cleanClassName, createPortal, createRoot, hydrate, isBrowser, lazy, minifyHTML, mount, normalizeString, onDOMReady, queueUpdate, render };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import {isSignal,effect}from'@minejs/signals';var w=[],E=false;function S(e,n,t={}){let r=typeof n=="string"?document.querySelector(n):n;if(!r)throw new Error(`Container not found: ${n}`);let o=typeof e=="function"?e():e;if(!o)throw new Error("Component returned null or undefined");switch(t.mode||"replace"){case "replace":r.innerHTML="",r.appendChild(o);break;case "append":r.appendChild(o);break;case "prepend":r.insertBefore(o,r.firstChild);break;default:r.innerHTML="",r.appendChild(o);}return t.onMount?.(),{element:o,unmount:()=>{if(o instanceof Element)o.remove();else if(o instanceof DocumentFragment)for(;o.firstChild;)o.removeChild(o.firstChild);t.onUnmount?.();},update:i=>{o instanceof Element&&i instanceof Element?o.replaceWith(i):i instanceof Element&&o instanceof DocumentFragment&&o.parentNode&&o.parentNode.replaceChild(i,o);}}}function $n(e,n){return S(e,n,{mode:"replace"})}function De(e,n){let t=typeof n=="string"?document.querySelector(n):n;if(!t)throw new Error(`Portal container not found: ${n}`);let r=document.createComment("portal");return e instanceof Node&&t.appendChild(e),r}function Mn(e,n){let t=typeof n=="string"?document.querySelector(n):n,r=t instanceof HTMLElement?t:null;if(!r)throw new Error(`Container not found: ${n}`);return S(e,r,{mode:"replace"})}function Ln(e,n){let t=null,r=false,o=null;return l=>{if(t)return t(l);if(o){let i=document.createElement("div");return i.className="crux-lazy-error",i.textContent=`Error loading component: ${o.message}`,i.style.color="red",i}return r||(r=true,e().then(i=>{t=i.default;}).catch(i=>{o=i instanceof Error?i:new Error(String(i));})),n||ze()}}function ze(){let e=document.createElement("div");return e.textContent="Loading...",e}function vn(e){try{return e.children}catch(n){return e.fallback(n)}}function Tn(e){if(e.children instanceof Promise){let n=document.createElement("div");return n.style.display="contents",e.fallback instanceof Node&&n.appendChild(e.fallback),e.children.then(t=>{n.innerHTML="",t instanceof Node&&n.appendChild(t);}),n}else return e.children}function Rn(e){return De(e.children,e.to)}function Hn(e){w.push(e),E||(E=true,queueMicrotask(_e));}function _e(){let e=w;w=[],E=false,e.forEach(n=>n());}function Fe(){return typeof window<"u"&&typeof document<"u"}function Pn(e){Fe()&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e());}function Nn(e){let n=typeof e=="string"?document.querySelector(e):e;if(!n||!(n instanceof HTMLElement))throw new Error(`Root container not found: ${e}`);let t=null;return {render(r){t&&t.unmount(),t=S(r,n);},unmount(){t&&(t.unmount(),t=null);}}}function Xn(e){return e.replace(/\s+/g," ").replace(/>\s+</g,"><").trim()}function h(e){return e.replace(/\s+/g," ").trim()}var re=[/^display-(.+)$/,/^(block|inline-block|inline|flex|inline-flex|grid|inline-grid|table|table-row|table-cell|flow-root|contents|hidden)$/,/^(static|fixed|absolute|relative|sticky)$/,/^inset-(.+)$/,/^inset-x-(.+)$/,/^inset-y-(.+)$/,/^start-(.+)$/,/^end-(.+)$/,/^top-(.+)$/,/^bottom-(.+)$/,/^z-(.+)$/,/^flex-(row|col)(-reverse)?$/,/^flex-(wrap|nowrap)(-reverse)?$/,/^flex-(1|auto|initial|none)$/,/^basis-(.+)$/,/^grow(-0)?$/,/^shrink(-0)?$/,/^order-(.+)$/,/^gap-(\d+)$/,/^gap-x-(.+)$/,/^gap-y-(.+)$/,/^justify-items-(.+)$/,/^justify-self-(.+)$/,/^justify-(start|end|center|between|around|evenly|stretch)$/,/^content-(.+)$/,/^items-(.+)$/,/^self-(.+)$/,/^place-content-(.+)$/,/^place-items-(.+)$/,/^place-self-(.+)$/,/^grid-cols-(.+)$/,/^col-span-(.+)$/,/^col-start-(.+)$/,/^col-end-(.+)$/,/^grid-rows-(.+)$/,/^row-span-(.+)$/,/^row-start-(.+)$/,/^row-end-(.+)$/,/^grid-flow-(.+)$/,/^p-(.+)$/,/^px-(.+)$/,/^py-(.+)$/,/^pt-(.+)$/,/^pb-(.+)$/,/^ps-(.+)$/,/^pe-(.+)$/,/^m-(.+)$/,/^mx-(.+)$/,/^my-(.+)$/,/^mt-(.+)$/,/^mb-(.+)$/,/^ms-(.+)$/,/^me-(.+)$/,/^w-(.+)$/,/^min-w-(.+)$/,/^max-w-(.+)$/,/^h-(.+)$/,/^min-h-(.+)$/,/^max-h-(.+)$/,/^font-(sans|serif|mono)$/,/^font-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black)$/,/^text-(xs|sm|base|md|lg|xl|\d+xl)$/,/^leading-(.+)$/,/^tracking-(.+)$/,/^text-(left|center|right|justify|start|end)$/,/^text-(wrap|nowrap|balance|pretty)$/,/^(truncate|text-ellipsis|text-clip)$/,/^(uppercase|lowercase|capitalize|normal-case)$/,/^(italic|not-italic)$/,/^(underline|overline|line-through|no-underline)$/,/^text-(?!left|center|right|justify|start|end|xs|sm|base|md|lg|xl|\d+xl|wrap|nowrap|balance|pretty|ellipsis|clip).+$/,/^bg-(?!blend).+$/,/^bg-blend-(.+)$/,/^mix-blend-(.+)$/,/^shadow(.*)$/,/^opacity-(.+)$/,/^blur(.*)$/,/^brightness-(.+)$/,/^contrast-(.+)$/,/^grayscale(.*)$/,/^invert(.*)$/,/^saturate-(.+)$/,/^sepia(.*)$/,/^hue-rotate-(.+)$/,/^backdrop-blur(.*)$/,/^transition(.*)$/];function oe(e){let n=e.trim().split(/\s+/);if(n.length<=1&&n[0]==="")return "";if(n.length===1)return n[0];let t=new Set,r=[];for(let o=n.length-1;o>=0;o--){let l=n[o];if(!l)continue;let i=l;for(let s=0;s<re.length;s++)if(re[s].test(l)){i=s;break}t.has(i)||(t.add(i),r.push(l));}return r.reverse().join(" ")}var ie={center:"justify-center items-center",top:"justify-center items-start",bottom:"justify-center items-end",left:"justify-start items-center",right:"justify-end items-center","top-left":"justify-start items-start","top-right":"justify-end items-start","bottom-left":"justify-start items-end","bottom-right":"justify-end items-end"},Oe={block:"block","inline-block":"inline-block",flex:"flex","inline-flex":"inline-flex",grid:"grid","inline-grid":"inline-grid"},We={row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},ke={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},Ie={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},Be={xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl",full:"max-w-full",min:"max-w-min",max:"max-w-max",fit:"max-w-fit",none:"max-w-none",prose:"max-w-prose"},Ge={0:"border-0",1:"border",2:"border-2",4:"border-4",8:"border-8"},Ye={none:"rounded-none",sm:"rounded-sm",base:"rounded",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full"},qe={none:"shadow-none",xs:"shadow-xs",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl",inner:"shadow-inner"},Ke={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted",double:"border-double",groove:"border-groove",ridge:"border-ridge",inset:"border-inset",hidden:"border-hidden",none:"border-none"},Ue={auto:"cursor-auto",default:"cursor-default",pointer:"cursor-pointer",wait:"cursor-wait",text:"cursor-text",move:"cursor-move",help:"cursor-help","not-allowed":"cursor-not-allowed",none:"cursor-none",grab:"cursor-grab",grabbing:"cursor-grabbing"},Ve={none:"select-none",text:"select-text",all:"select-all",auto:"select-auto"},Qe={none:"pointer-events-none",auto:"pointer-events-auto"},Ze={none:"resize-none",both:"resize",y:"resize-y",x:"resize-x"},en={none:"animate-none",spin:"animate-spin",ping:"animate-ping",pulse:"animate-pulse",bounce:"animate-bounce","fade-in":"animate-fade-in","fade-out":"animate-fade-out","slide-in-up":"animate-slide-in-up","slide-in-down":"animate-slide-in-down","slide-in-left":"animate-slide-in-left","slide-in-right":"animate-slide-in-right","zoom-in":"animate-zoom-in","zoom-out":"animate-zoom-out"},nn={linear:"animate-ease-linear",in:"animate-ease-in",out:"animate-ease-out","in-out":"animate-ease-in-out"},tn={forwards:"animate-fill-forwards",backwards:"animate-fill-backwards",both:"animate-fill-both",none:"animate-fill-none"};function u(e,n){if(n!==void 0)return `${e}-${n}`}function f(e,n){if(n!==void 0)return n==="auto"?`${e}-auto`:`${e}-${n}`}var se=new Set([0,1,2,3,4,5,6,7,8,9,10,12,14,16,20,24,28,32,36,40,48,56,64]),rn=new Set(["1/2","1/3","2/3","1/4","2/4","3/4","1/5","2/5","3/5","4/5","1/6","5/6","1/12"]),on=new Set(["auto","full","screen","min","max","fit"]),sn=new Set(["auto","full","screen","min","max","fit"]),an=new Set(["0","full","min","max","fit"]),ln=new Set(["none","full","min","max","fit"]),dn=new Set(["0","full","screen","min","max","fit"]),cn=new Set(["none","full","screen","min","max","fit"]),c=(e,n,t)=>n===void 0?null:t&&n in t?{class:t[n]}:typeof n=="number"&&se.has(n)?{class:`${e}-${n}`}:(e==="w"||e==="h")&&rn.has(n)?{class:`${e}-${n}`}:(e==="w"?on:e==="h"?sn:e==="min-w"?an:e==="min-h"?dn:e==="max-w"?ln:cn).has(n)?{class:`${e}-${n}`}:["min-w","max-w","min-h","max-h"].includes(e)&&typeof n=="number"&&se.has(n)?{class:`${e}-${n}`}:{style:{[e==="w"?"width":e==="h"?"height":e==="min-w"?"minWidth":e==="min-h"?"minHeight":e==="max-w"?"maxWidth":"maxHeight"]:n}},ae=new Set(["display","direction","align","justify","wrap","grow","shrink","basis","order","gap","gapX","gapY","w","h","size","minW","minH","maxW","maxH","p","px","py","ps","pe","pt","pb","m","mx","my","ms","me","mt","mb","bg","color","border","borderStyle","borderColor","radius","shadow","opacity","position","overflow","zIndex","overlay","location","backdrop","divider","cursor","select","pointerEvents","resize","animate","animateDuration","animateDelay","animateEase","animateFill"]);function le(e){let{display:n,direction:t,align:r,justify:o,wrap:l,grow:i,shrink:s,basis:a,order:p,gap:v,gapX:T,gapY:R,w:fe,h:pe,size:H,minW:ge,minH:he,maxW:xe,maxH:ye,p:be,px:we,py:Ee,ps:Se,pe:Ce,pt:$e,pb:Me,m:Le,mx:ve,my:Te,ms:Re,me:He,mt:Pe,mb:Ne,bg:P,color:N,border:A,borderStyle:X,borderColor:J,radius:j,shadow:D,opacity:z,position:Ae,overflow:_,zIndex:F,overlay:g,location:y,backdrop:Xe,divider:b,cursor:O,select:W,pointerEvents:k,resize:I,animate:B,animateDuration:G,animateDelay:Y,animateEase:q,animateFill:K}=e,Je=c("w",H),je=c("h",H),U=c("w",fe)||Je,V=c("h",pe)||je,Q=c("min-w",ge),Z=c("min-h",he),ee=c("max-w",xe,Be),ne=c("max-h",ye),te={...U?.style,...V?.style,...Q?.style,...Z?.style,...ee?.style,...ne?.style,...a&&typeof a=="string"&&!["auto","full"].includes(a)?{flexBasis:a}:{},...p!==void 0?{order:p}:{},...i!==void 0&&typeof i=="number"?{flexGrow:i}:{},...s!==void 0&&typeof s=="number"?{flexShrink:s}:{},...g&&Xe?{backgroundColor:"rgba(0, 0, 0, 0.5)"}:{}};return {className:[g&&"absolute inset-0 w-full h-full flex",g&&y&&ie[y],g&&!y&&ie.center,n&&Oe[n],t&&We[t],r&&ke[r],o&&Ie[o],l&&"flex-wrap",i===true&&"grow",i===false&&"grow-0",s===true&&"shrink",s===false&&"shrink-0",a&&typeof a=="string"&&["auto","full"].includes(a)&&`basis-${a}`,v!==void 0&&`gap-${v}`,T!==void 0&&`gap-x-${T}`,R!==void 0&&`gap-y-${R}`,U?.class,V?.class,Q?.class,Z?.class,ee?.class,ne?.class,u("p",be),u("px",we),u("py",Ee),u("ps",Se),u("pe",Ce),u("pt",$e),u("pb",Me),f("m",Le),f("mx",ve),f("my",Te),f("ms",Re),f("me",He),f("mt",Pe),f("mb",Ne),P&&`bg-${P}`,N&&`text-${N}`,A!==void 0&&Ge[A],X&&Ke[X],J&&`border-${J}`,j&&Ye[j],D&&qe[D],z!==void 0&&`opacity-${z}`,Ae,_&&`overflow-${_}`,F&&`z-${F}`,O&&Ue[O],W&&Ve[W],k&&Qe[k],I&&Ze[I],B&&en[B],G&&`animate-duration-${G}`,Y&&`animate-delay-${Y}`,q&&nn[q],K&&tn[K],b===true&&"border-t",b==="horizontal"&&"border-t",b==="vertical"&&"border-s"].filter(Boolean).join(" "),style:Object.keys(te).length>0?te:void 0}}function L(e,n){return typeof e=="function"?e(n||{}):pn(e,n||{})}var Fn=L;function me(e){let n=document.createDocumentFragment();return x(e.children).forEach(r=>{r instanceof Node&&n.appendChild(r);}),n}var de=false;function mn(){if(de||typeof window>"u"||typeof MutationObserver>"u")return;de=true;let e=new MutationObserver(n=>{n.forEach(t=>{t.addedNodes.forEach(r=>{r instanceof Element&&un(r);});});});document.body?e.observe(document.body,{childList:true,subtree:true}):document.addEventListener("DOMContentLoaded",()=>{document.body&&e.observe(document.body,{childList:true,subtree:true});});}function un(e){if(e.hasAttribute("data-mine-onload")){let t=e.__onload;typeof t=="function"&&t(e);}e.querySelectorAll("[data-mine-onload]").forEach(t=>{let r=t.__onload;typeof r=="function"&&r(t);});}var C=new Set(["svg","path","circle","rect","line","polyline","polygon","ellipse","g","text","tspan","defs","clipPath","linearGradient","radialGradient","stop","mask","pattern","image","use","symbol","marker","foreignObject","animate","animateTransform","animateMotion","set","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","title","desc","metadata"]),$=new Set(["math","maction","maligngroup","malignmark","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mlongdiv","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mscarries","mscarry","msgroup","msline","mspace","msqrt","msrow","mstack","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","semantics","annotation","annotation-xml"]),ue="http://www.w3.org/2000/svg",fn="http://www.w3.org/1998/Math/MathML";function pn(e,n){n.as&&(e=n.as);let t;C.has(e)?t=document.createElementNS(ue,e):$.has(e)?t=document.createElementNS(fn,e):t=document.createElement(e);let r="dangerouslySetInnerHTML"in n&&n.dangerouslySetInnerHTML!=null&&typeof n.dangerouslySetInnerHTML=="object"&&"__html"in n.dangerouslySetInnerHTML&&typeof n.dangerouslySetInnerHTML.__html=="string",{className:o,style:l}=le(n);n.divider&&!n.role&&t.setAttribute("role","separator"),l&&!C.has(e)&&!$.has(e)&&M(t,l);let i=false;for(let[s,a]of Object.entries(n))if(!ae.has(s)&&s!=="as"){if(s==="children")r||gn(t,a);else if(s==="dangerouslySetInnerHTML")En(t,a);else if(s==="onload")t.__onload=a,t.setAttribute("data-mine-onload",""),mn();else if(s==="ref")hn(t,a);else if(s.startsWith("on"))xn(t,s,a);else if(s==="id")yn(t,a);else if(s==="htmlFor")bn(t,a);else if(s==="className"||s==="class")i=true,ce(t,a,o);else if(s==="style")wn(t,a);else if(isSignal(a))Sn(t,s,a);else if(typeof a=="boolean")a&&t.setAttribute(s,"");else if(a!=null)if(C.has(e)||$.has(e)){let p=typeof a=="string"?h(a):String(a);t.setAttribute(s,p);}else if(s in t)t[s]=a;else {let p=typeof a=="string"?h(a):String(a);t.setAttribute(s,p);}}return !i&&o&&ce(t,o),t}function gn(e,n){x(n).forEach(r=>{if(r instanceof Node)e.appendChild(r);else if(isSignal(r)){let o=document.createTextNode("");effect(()=>{o.textContent=String(r());}),e.appendChild(o);}else r!=null&&r!==false&&e.appendChild(document.createTextNode(String(r)));});}function x(e){return e==null||e===false?[]:Array.isArray(e)?e.flatMap(x):[e]}function hn(e,n){isSignal(n)?n.set(e):typeof n=="function"&&n(e);}function xn(e,n,t){if(typeof t!="function")return;let r=n.slice(2).toLowerCase();e.addEventListener(r,t);}function ce(e,n,t=""){let r=o=>{let l=t?`${t} ${o}`:o,i=oe(String(l));e.namespaceURI===ue?e.setAttribute("class",i):e.className=i;};isSignal(n)?effect(()=>{let o=n();o!=null?r(String(o)):t&&r("");}):n!=null&&r(String(n));}function yn(e,n){isSignal(n)?effect(()=>{let t=n();t!=null?e.id=String(t):e.removeAttribute("id");}):n!=null&&(e.id=String(n));}function bn(e,n){isSignal(n)?effect(()=>{let t=n();t!=null?e.setAttribute("for",String(t)):e.removeAttribute("for");}):n!=null&&e.setAttribute("for",String(n));}function wn(e,n){isSignal(n)?effect(()=>{let t=n();M(e,t);}):M(e,n);}function M(e,n){typeof n=="string"?e.style.cssText=n:typeof n=="object"&&n!=null&&Object.entries(n).forEach(([t,r])=>{if(r!=null){let o=t.replace(/[A-Z]/g,l=>`-${l.toLowerCase()}`);e.style.setProperty(o,String(r));}});}function En(e,n){if(n!=null&&typeof n=="object"&&"__html"in n){let t=n.__html;typeof t=="string"&&(e.innerHTML=t);}}function Sn(e,n,t){effect(()=>{let r=t();if(r!=null)if(n in e)e[n]=r;else {let o=typeof r=="string"?h(r):String(r);e.setAttribute(n,o);}else e.removeAttribute(n);});}function On(e){return e}function Wn(e){return n=>e(n)()}function kn(e){let n=document.createDocumentFragment();return e.forEach(t=>{t instanceof Node&&n.appendChild(t);}),n}function In(e){if(isSignal(e.when)){let n=document.createComment("show"),t=document.createDocumentFragment();t.appendChild(n);let r=null;return effect(()=>{let o=e.when,l=o();l&&!r?(r=x(e.children)[0],r instanceof Node&&n.parentNode?.insertBefore(r,n)):!l&&r&&(r.remove(),r=null);}),t}else return e.when?L(me,{children:e.children}):null}function Bn(e){for(let n of e.children)if(isSignal(n.when)?n.when():n.when)return L(me,{children:n.children});return null}function Gn(e){let n=document.createDocumentFragment();if(isSignal(e.each)){let t=document.createElement("div");t.style.display="contents",effect(()=>{let r=e.each,o=r();t.innerHTML="",o.forEach((l,i)=>{let s=e.children(l,i);s instanceof Node&&t.appendChild(s);});}),n.appendChild(t);}else e.each.forEach((r,o)=>{let l=e.children(r,o);l instanceof Node&&n.appendChild(l);});return n}
2
- export{vn as ErrorBoundary,Gn as For,me as Fragment,In as Show,Tn as Suspense,Bn as Switch,Rn as Teleport,oe as cleanClassName,On as component,kn as createElements,De as createPortal,Nn as createRoot,Wn as defineComponent,Mn as hydrate,Fe as isBrowser,L as jsx,Fn as jsxs,Ln as lazy,Xn as minifyHTML,$n as mount,h as normalizeString,Pn as onDOMReady,Hn as queueUpdate,S as render};//# sourceMappingURL=index.js.map
1
+ import {isSignal,effect}from'@minejs/signals';var j=[],N=false;function z(e,t,n={}){let r=typeof t=="string"?document.querySelector(t):t;if(!r)throw new Error(`Container not found: ${t}`);let o=typeof e=="function"?e():e;if(!o)throw new Error("Component returned null or undefined");switch(n.mode||"replace"){case "replace":r.innerHTML="",r.appendChild(o);break;case "append":r.appendChild(o);break;case "prepend":r.insertBefore(o,r.firstChild);break;default:r.innerHTML="",r.appendChild(o);}return n.onMount?.(),{element:o,unmount:()=>{if(o instanceof Element)o.remove();else if(o instanceof DocumentFragment)for(;o.firstChild;)o.removeChild(o.firstChild);n.onUnmount?.();},update:i=>{o instanceof Element&&i instanceof Element?o.replaceWith(i):i instanceof Element&&o instanceof DocumentFragment&&o.parentNode&&o.parentNode.replaceChild(i,o);}}}function kt(e,t){return z(e,t,{mode:"replace"})}function Ye(e,t){let n=typeof t=="string"?document.querySelector(t):t;if(!n)throw new Error(`Portal container not found: ${t}`);let r=document.createComment("portal");return e instanceof Node&&n.appendChild(e),r}function Wt(e,t){let n=typeof t=="string"?document.querySelector(t):t,r=n instanceof HTMLElement?n:null;if(!r)throw new Error(`Container not found: ${t}`);return z(e,r,{mode:"replace"})}function Dt(e,t){let n=null,r=false,o=null;return l=>{if(n)return n(l);if(o){let i=document.createElement("div");return i.className="crux-lazy-error",i.textContent=`Error loading component: ${o.message}`,i.style.color="red",i}return r||(r=true,e().then(i=>{n=i.default;}).catch(i=>{o=i instanceof Error?i:new Error(String(i));})),t||Ke()}}function Ke(){let e=document.createElement("div");return e.textContent="Loading...",e}function Ot(e){try{return e.children}catch(t){return e.fallback(t)}}function Ft(e){if(e.children instanceof Promise){let t=document.createElement("div");return t.style.display="contents",e.fallback instanceof Node&&t.appendChild(e.fallback),e.children.then(n=>{t.innerHTML="",n instanceof Node&&t.appendChild(n);}),t}else return e.children}function _t(e){return Ye(e.children,e.to)}function It(e){j.push(e),N||(N=true,queueMicrotask(qe));}function qe(){let e=j;j=[],N=false,e.forEach(t=>t());}function Ue(){return typeof window<"u"&&typeof document<"u"}function Bt(e){Ue()&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e());}function Gt(e){let t=typeof e=="string"?document.querySelector(e):e;if(!t||!(t instanceof HTMLElement))throw new Error(`Root container not found: ${e}`);let n=null;return {render(r){n&&n.unmount(),n=z(r,t);},unmount(){n&&(n.unmount(),n=null);}}}function Kt(e){return e.replace(/\s+/g," ").replace(/>\s+</g,"><").trim()}function $(e){return e.replace(/\s+/g," ").trim()}var ge=[/^display-(.+)$/,/^(block|inline-block|inline|flex|inline-flex|grid|inline-grid|table|table-row|table-cell|flow-root|contents|hidden)$/,/^(static|fixed|absolute|relative|sticky)$/,/^inset-(.+)$/,/^inset-x-(.+)$/,/^inset-y-(.+)$/,/^start-(.+)$/,/^end-(.+)$/,/^top-(.+)$/,/^bottom-(.+)$/,/^z-(.+)$/,/^flex-(row|col)(-reverse)?$/,/^flex-(wrap|nowrap)(-reverse)?$/,/^flex-(1|auto|initial|none)$/,/^basis-(.+)$/,/^grow(-0)?$/,/^shrink(-0)?$/,/^order-(.+)$/,/^gap-(\d+)$/,/^gap-x-(.+)$/,/^gap-y-(.+)$/,/^justify-items-(.+)$/,/^justify-self-(.+)$/,/^justify-(start|end|center|between|around|evenly|stretch)$/,/^content-(.+)$/,/^items-(.+)$/,/^self-(.+)$/,/^place-content-(.+)$/,/^place-items-(.+)$/,/^place-self-(.+)$/,/^grid-cols-(.+)$/,/^col-span-(.+)$/,/^col-start-(.+)$/,/^col-end-(.+)$/,/^grid-rows-(.+)$/,/^row-span-(.+)$/,/^row-start-(.+)$/,/^row-end-(.+)$/,/^grid-flow-(.+)$/,/^p-(.+)$/,/^px-(.+)$/,/^py-(.+)$/,/^pt-(.+)$/,/^pb-(.+)$/,/^ps-(.+)$/,/^pe-(.+)$/,/^m-(.+)$/,/^mx-(.+)$/,/^my-(.+)$/,/^mt-(.+)$/,/^mb-(.+)$/,/^ms-(.+)$/,/^me-(.+)$/,/^w-(.+)$/,/^min-w-(.+)$/,/^max-w-(.+)$/,/^h-(.+)$/,/^min-h-(.+)$/,/^max-h-(.+)$/,/^font-(sans|serif|mono)$/,/^font-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black)$/,/^text-(xs|sm|base|md|lg|xl|\d+xl)$/,/^leading-(.+)$/,/^tracking-(.+)$/,/^text-(left|center|right|justify|start|end)$/,/^text-(wrap|nowrap|balance|pretty)$/,/^(truncate|text-ellipsis|text-clip)$/,/^(uppercase|lowercase|capitalize|normal-case)$/,/^(italic|not-italic)$/,/^(underline|no-underline)$/,/^(overline)$/,/^(line-through)$/,/^text-(?!left|center|right|justify|start|end|xs|sm|base|md|lg|xl|\d+xl|wrap|nowrap|balance|pretty|ellipsis|clip).+$/,/^bg-(?!blend).+$/,/^bg-blend-(.+)$/,/^mix-blend-(.+)$/,/^shadow(.*)$/,/^opacity-(.+)$/,/^blur(.*)$/,/^brightness-(.+)$/,/^contrast-(.+)$/,/^grayscale(.*)$/,/^invert(.*)$/,/^saturate-(.+)$/,/^sepia(.*)$/,/^hue-rotate-(.+)$/,/^backdrop-blur(.*)$/,/^transition(.*)$/];function xe(e){let t=e.trim().split(/\s+/);if(t.length<=1&&t[0]==="")return "";if(t.length===1)return t[0];let n=new Set,r=[];for(let o=t.length-1;o>=0;o--){let l=t[o];if(!l)continue;let i=l;for(let a=0;a<ge.length;a++)if(ge[a].test(l)){i=a;break}n.has(i)||(n.add(i),r.push(l));}return r.reverse().join(" ")}var ye={center:"justify-center items-center",top:"justify-center items-start",bottom:"justify-center items-end",left:"justify-start items-center",right:"justify-end items-center","top-left":"justify-start items-start","top-right":"justify-end items-start","bottom-left":"justify-start items-end","bottom-right":"justify-end items-end"},Ve={block:"block","inline-block":"inline-block",flex:"flex","inline-flex":"inline-flex",grid:"grid","inline-grid":"inline-grid"},Qe={row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},Ze={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},et={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},tt={xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl",full:"max-w-full",min:"max-w-min",max:"max-w-max",fit:"max-w-fit",none:"max-w-none",prose:"max-w-prose"},nt={0:"border-0",1:"border",2:"border-2",4:"border-4",8:"border-8"},rt={none:"rounded-none",sm:"rounded-sm",base:"rounded",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full"},ot={none:"shadow-none",xs:"shadow-xs",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl",inner:"shadow-inner"},it={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted",double:"border-double",groove:"border-groove",ridge:"border-ridge",inset:"border-inset",hidden:"border-hidden",none:"border-none"},at={auto:"cursor-auto",default:"cursor-default",pointer:"cursor-pointer",wait:"cursor-wait",text:"cursor-text",move:"cursor-move",help:"cursor-help","not-allowed":"cursor-not-allowed",none:"cursor-none",grab:"cursor-grab",grabbing:"cursor-grabbing"},st={none:"select-none",text:"select-text",all:"select-all",auto:"select-auto"},lt={none:"pointer-events-none",auto:"pointer-events-auto"},ct={none:"resize-none",both:"resize",y:"resize-y",x:"resize-x"},dt={none:"animate-none",spin:"animate-spin",ping:"animate-ping",pulse:"animate-pulse",bounce:"animate-bounce","fade-in":"animate-fade-in","fade-out":"animate-fade-out","slide-in-up":"animate-slide-in-up","slide-in-down":"animate-slide-in-down","slide-in-left":"animate-slide-in-left","slide-in-right":"animate-slide-in-right","zoom-in":"animate-zoom-in","zoom-out":"animate-zoom-out"},mt={linear:"animate-ease-linear",in:"animate-ease-in",out:"animate-ease-out","in-out":"animate-ease-in-out"},ut={forwards:"animate-fill-forwards",backwards:"animate-fill-backwards",both:"animate-fill-both",none:"animate-fill-none"},ft={xs:"text-xs",sm:"text-sm",base:"text-base",md:"text-md",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl","6xl":"text-6xl","7xl":"text-7xl","8xl":"text-8xl","9xl":"text-9xl"},pt={thin:"font-thin",extralight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold",black:"font-black"},ht={start:"text-start",end:"text-end",left:"text-left",right:"text-right",center:"text-center",justify:"text-justify"},gt={wrap:"text-wrap",nowrap:"text-nowrap",balance:"text-balance",pretty:"text-pretty"},xt={uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize",none:"normal-case"};function x(e,t){if(t!==void 0)return `${e}-${t}`}function y(e,t){if(t!==void 0)return t==="auto"?`${e}-auto`:`${e}-${t}`}var be=new Set([0,1,2,3,4,5,6,7,8,9,10,12,14,16,20,24,28,32,36,40,48,56,64]),yt=new Set(["1/2","1/3","2/3","1/4","2/4","3/4","1/5","2/5","3/5","4/5","1/6","5/6","1/12"]),bt=new Set(["auto","full","screen","min","max","fit"]),wt=new Set(["auto","full","screen","min","max","fit"]),Ct=new Set(["0","full","min","max","fit"]),St=new Set(["none","full","min","max","fit"]),Et=new Set(["0","full","screen","min","max","fit"]),$t=new Set(["none","full","screen","min","max","fit"]),p=(e,t,n)=>t===void 0?null:n&&t in n?{class:n[t]}:typeof t=="number"&&be.has(t)?{class:`${e}-${t}`}:(e==="w"||e==="h")&&yt.has(t)?{class:`${e}-${t}`}:(e==="w"?bt:e==="h"?wt:e==="min-w"?Ct:e==="min-h"?Et:e==="max-w"?St:$t).has(t)?{class:`${e}-${t}`}:["min-w","max-w","min-h","max-h"].includes(e)&&typeof t=="number"&&be.has(t)?{class:`${e}-${t}`}:{style:{[e==="w"?"width":e==="h"?"height":e==="min-w"?"minWidth":e==="min-h"?"minHeight":e==="max-w"?"maxWidth":"maxHeight"]:t}},we=new Set(["display","direction","align","justify","wrap","grow","shrink","basis","order","gap","gapX","gapY","w","h","size","minW","minH","maxW","maxH","p","px","py","ps","pe","pt","pb","m","mx","my","ms","me","mt","mb","bg","color","border","borderStyle","borderColor","radius","shadow","opacity","position","overflow","zIndex","overlay","location","backdrop","divider","cursor","select","pointerEvents","resize","animate","animateDuration","animateDelay","animateEase","animateFill","textSize","textWeight","textAlign","textWrap","textTransform","italic","underline","lineThrough","truncate"]);function Ce(e){let{display:t,direction:n,align:r,justify:o,wrap:l,grow:i,shrink:a,basis:s,order:c,gap:g,gapX:u,gapY:f,w:b,h:w,size:C,minW:S,minH:v,maxW:T,maxH:J,p:L,px:k,py:Te,ps:Le,pe:Re,pt:Pe,pb:je,m:Ne,mx:ze,my:He,ms:Xe,me:Ae,mt:Je,mb:ke,bg:W,color:D,border:O,borderStyle:F,borderColor:_,radius:I,shadow:B,opacity:G,position:We,overflow:Y,zIndex:K,overlay:E,location:R,backdrop:De,divider:P,cursor:q,select:U,pointerEvents:V,resize:Q,animate:Z,animateDuration:ee,animateDelay:te,animateEase:ne,animateFill:re,textSize:oe,textWeight:ie,textAlign:ae,textWrap:se,textTransform:le,italic:Oe,underline:Fe,lineThrough:_e,truncate:Ie}=e,Be=p("w",C),Ge=p("h",C),ce=p("w",b)||Be,de=p("h",w)||Ge,me=p("min-w",S),ue=p("min-h",v),fe=p("max-w",T,tt),pe=p("max-h",J),he={...ce?.style,...de?.style,...me?.style,...ue?.style,...fe?.style,...pe?.style,...s&&typeof s=="string"&&!["auto","full"].includes(s)?{flexBasis:s}:{},...c!==void 0?{order:c}:{},...i!==void 0&&typeof i=="number"?{flexGrow:i}:{},...a!==void 0&&typeof a=="number"?{flexShrink:a}:{},...E&&De?{backgroundColor:"rgba(0, 0, 0, 0.5)"}:{}};return {className:[E&&"absolute inset-0 w-full h-full flex",E&&R&&ye[R],E&&!R&&ye.center,t&&Ve[t],n&&Qe[n],r&&Ze[r],o&&et[o],l&&"flex-wrap",i===true&&"grow",i===false&&"grow-0",a===true&&"shrink",a===false&&"shrink-0",s&&typeof s=="string"&&["auto","full"].includes(s)&&`basis-${s}`,g!==void 0&&`gap-${g}`,u!==void 0&&`gap-x-${u}`,f!==void 0&&`gap-y-${f}`,ce?.class,de?.class,me?.class,ue?.class,fe?.class,pe?.class,x("p",L),x("px",k),x("py",Te),x("ps",Le),x("pe",Re),x("pt",Pe),x("pb",je),y("m",Ne),y("mx",ze),y("my",He),y("ms",Xe),y("me",Ae),y("mt",Je),y("mb",ke),W&&`bg-${W}`,D&&`text-${D}`,O!==void 0&&nt[O],F&&it[F],_&&`border-${_}`,I&&rt[I],B&&ot[B],G!==void 0&&`opacity-${G}`,We,Y&&`overflow-${Y}`,K&&`z-${K}`,q&&at[q],U&&st[U],V&&lt[V],Q&&ct[Q],Z&&dt[Z],ee&&`animate-duration-${ee}`,te&&`animate-delay-${te}`,ne&&mt[ne],re&&ut[re],oe&&ft[oe],ie&&pt[ie],ae&&ht[ae],se&&gt[se],le&&xt[le],Oe&&"italic",Fe&&"underline",_e&&"line-through",Ie&&"truncate",P===true&&"border-t",P==="horizontal"&&"border-t",P==="vertical"&&"border-s"].filter(Boolean).join(" "),style:Object.keys(he).length>0?he:void 0}}function m(e,t){return typeof e=="function"?e(t||{}):Lt(e,t||{})}var en=m;function $e(e){let t=document.createDocumentFragment();return M(e.children).forEach(r=>{r instanceof Node&&t.appendChild(r);}),t}var Se=false;function Mt(){if(Se||typeof window>"u"||typeof MutationObserver>"u")return;Se=true;let e=new MutationObserver(t=>{t.forEach(n=>{n.addedNodes.forEach(r=>{r instanceof Element&&vt(r);});});});document.body?e.observe(document.body,{childList:true,subtree:true}):document.addEventListener("DOMContentLoaded",()=>{document.body&&e.observe(document.body,{childList:true,subtree:true});});}function vt(e){if(e.hasAttribute("data-mine-onload")){let n=e.__onload;typeof n=="function"&&n(e);}e.querySelectorAll("[data-mine-onload]").forEach(n=>{let r=n.__onload;typeof r=="function"&&r(n);});}var H=new Set(["svg","path","circle","rect","line","polyline","polygon","ellipse","g","text","tspan","defs","clipPath","linearGradient","radialGradient","stop","mask","pattern","image","use","symbol","marker","foreignObject","animate","animateTransform","animateMotion","set","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","title","desc","metadata"]),X=new Set(["math","maction","maligngroup","malignmark","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mlongdiv","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mscarries","mscarry","msgroup","msline","mspace","msqrt","msrow","mstack","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","semantics","annotation","annotation-xml"]),Me="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1998/Math/MathML";function Lt(e,t){t.as&&(e=t.as);let n;H.has(e)?n=document.createElementNS(Me,e):X.has(e)?n=document.createElementNS(Tt,e):n=document.createElement(e);let r="dangerouslySetInnerHTML"in t&&t.dangerouslySetInnerHTML!=null&&typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML&&typeof t.dangerouslySetInnerHTML.__html=="string",{className:o,style:l}=Ce(t);t.divider&&!t.role&&n.setAttribute("role","separator"),l&&!H.has(e)&&!X.has(e)&&A(n,l);let i=false;for(let[a,s]of Object.entries(t))if(!we.has(a)&&a!=="as"){if(a==="children")r||Rt(n,s);else if(a==="dangerouslySetInnerHTML")Xt(n,s);else if(a==="onload")n.__onload=s,n.setAttribute("data-mine-onload",""),Mt();else if(a==="ref")Pt(n,s);else if(a.startsWith("on"))jt(n,a,s);else if(a==="id")Nt(n,s);else if(a==="htmlFor")zt(n,s);else if(a==="className"||a==="class")i=true,Ee(n,s,o);else if(a==="style")Ht(n,s);else if(isSignal(s))At(n,a,s);else if(typeof s=="boolean")s&&n.setAttribute(a,"");else if(s!=null)if(H.has(e)||X.has(e)){let c=typeof s=="string"?$(s):String(s);n.setAttribute(a,c);}else if(a in n)n[a]=s;else {let c=typeof s=="string"?$(s):String(s);n.setAttribute(a,c);}}return !i&&o&&Ee(n,o),n}function Rt(e,t){M(t).forEach(r=>{if(r instanceof Node)e.appendChild(r);else if(isSignal(r)){let o=document.createTextNode("");effect(()=>{o.textContent=String(r());}),e.appendChild(o);}else r!=null&&r!==false&&e.appendChild(document.createTextNode(String(r)));});}function M(e){return e==null||e===false?[]:Array.isArray(e)?e.flatMap(M):[e]}function Pt(e,t){isSignal(t)?t.set(e):typeof t=="function"&&t(e);}function jt(e,t,n){if(typeof n!="function")return;let r=t.slice(2).toLowerCase();e.addEventListener(r,n);}function Ee(e,t,n=""){let r=o=>{let l=n?`${n} ${o}`:o,i=xe(String(l));e.namespaceURI===Me?e.setAttribute("class",i):e.className=i;};isSignal(t)?effect(()=>{let o=t();o!=null?r(String(o)):n&&r("");}):t!=null&&r(String(t));}function Nt(e,t){isSignal(t)?effect(()=>{let n=t();n!=null?e.id=String(n):e.removeAttribute("id");}):t!=null&&(e.id=String(t));}function zt(e,t){isSignal(t)?effect(()=>{let n=t();n!=null?e.setAttribute("for",String(n)):e.removeAttribute("for");}):t!=null&&e.setAttribute("for",String(t));}function Ht(e,t){isSignal(t)?effect(()=>{let n=t();A(e,n);}):A(e,t);}function A(e,t){typeof t=="string"?e.style.cssText=t:typeof t=="object"&&t!=null&&Object.entries(t).forEach(([n,r])=>{if(r!=null){let o=n.replace(/[A-Z]/g,l=>`-${l.toLowerCase()}`);e.style.setProperty(o,String(r));}});}function Xt(e,t){if(t!=null&&typeof t=="object"&&"__html"in t){let n=t.__html;typeof n=="string"&&(e.innerHTML=n);}}function At(e,t,n){effect(()=>{let r=n();if(r!=null)if(t in e)e[t]=r;else {let o=typeof r=="string"?$(r):String(r);e.setAttribute(t,o);}else e.removeAttribute(t);});}function tn(e){return e}function nn(e){return t=>e(t)()}function rn(e){let t=document.createDocumentFragment();return e.forEach(n=>{n instanceof Node&&t.appendChild(n);}),t}function on(e){if(isSignal(e.when)){let t=document.createComment("show"),n=document.createDocumentFragment();n.appendChild(t);let r=null;return effect(()=>{let o=e.when,l=o();l&&!r?(r=M(e.children)[0],r instanceof Node&&t.parentNode?.insertBefore(r,t)):!l&&r&&(r.remove(),r=null);}),n}else return e.when?m($e,{children:e.children}):null}function an(e){for(let t of e.children)if(isSignal(t.when)?t.when():t.when)return m($e,{children:t.children});return null}function sn(e){let t=document.createDocumentFragment();if(isSignal(e.each)){let n=document.createElement("div");n.style.display="contents",effect(()=>{let r=e.each,o=r();n.innerHTML="",o.forEach((l,i)=>{let a=e.children(l,i);a instanceof Node&&n.appendChild(a);});}),t.appendChild(n);}else e.each.forEach((r,o)=>{let l=e.children(r,o);l instanceof Node&&t.appendChild(l);});return t}function dn(e){let{orientation:t="horizontal",variant:n="solid",thickness:r="thin",color:o="2",opacity:l=50,spacing:i,className:a="",role:s="separator",...c}=e,g={horizontal:{"super-thin":"border-t border-1",thin:"border-t",medium:"border-t-2",thick:"border-t-4"},vertical:{"super-thin":"border-s border-1",thin:"border-s",medium:"border-s-2",thick:"border-s-4"}},u={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted"},f={1:"border-c1",2:"border-c2",3:"border-c3",brand:"border-brand",current:"border-current"},b={0:"opacity-0",5:"opacity-5",10:"opacity-10",20:"opacity-20",25:"opacity-25",30:"opacity-30",40:"opacity-40",50:"opacity-50",60:"opacity-60",70:"opacity-70",75:"opacity-75",80:"opacity-80",90:"opacity-90",95:"opacity-95",100:"opacity-100"},w="";i!==void 0&&(w={horizontal:{0:"my-0",1:"my-1",2:"my-2",3:"my-3",4:"my-4",6:"my-6",8:"my-8",12:"my-12"},vertical:{0:"mx-0",1:"mx-1",2:"mx-2",3:"mx-3",4:"mx-4",6:"mx-6",8:"mx-8",12:"mx-12"}}[t][i]||"");let C=[g[t][r],u[n],f[o],b[l],w,t==="horizontal"?"w-full":"h-full",a].filter(Boolean).join(" "),{style:S,max:v=90,...T}=c,L={...S,[t==="horizontal"?"maxWidth":"maxHeight"]:`${v}%`};return m("div",{className:C,role:s,"aria-orientation":t,style:L,...T})}var ve={center:"justify-center items-center",top:"justify-center items-start",bottom:"justify-center items-end",left:"justify-start items-center",right:"justify-end items-center","top-left":"justify-start items-start","top-right":"justify-end items-start","bottom-left":"justify-start items-end","bottom-right":"justify-end items-end"};function fn(e){let{children:t,backdrop:n=false,position:r="center",className:o="",style:l,zIndex:i=50,onClick:a,htmlFor:s,...c}=e,u=["absolute","inset-0","w-full","h-full","flex",ve[r]||ve.center,o].filter(Boolean).join(" "),f={...typeof l=="object"?l:{},zIndex:i,...n?{backgroundColor:"rgba(0, 0, 0, 0.5)"}:{}};return m(s?"label":"div",{className:u,style:f,onClick:a,htmlFor:s,...c,children:t})}function gn(e){let{as:t="p",children:n,size:r="base",weight:o="normal",align:l="start",color:i="1",display:a,italic:s,underline:c,lineThrough:g,truncate:u,noWrap:f,className:b="",style:w,...C}=e,S=[`text-${r}`,`font-${o}`,`text-${l}`,`text-${i}`,a,s&&"italic",c&&"underline",g&&"line-through",u&&"truncate",f&&"whitespace-nowrap",b].filter(Boolean).join(" ");return m(t,{className:S,style:w,...C,children:n})}
2
+ export{dn as Divider,Ot as ErrorBoundary,sn as For,$e as Fragment,fn as Overlay,on as Show,Ft as Suspense,an as Switch,_t as Teleport,gn as Text,xe as cleanClassName,tn as component,rn as createElements,Ye as createPortal,Gt as createRoot,nn as defineComponent,Wt as hydrate,Ue as isBrowser,m as jsx,en as jsxs,Dt as lazy,Kt as minifyHTML,kt as mount,$ as normalizeString,Bt as onDOMReady,It as queueUpdate,z as render};//# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map