@minejs/jsx 0.2.7 → 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/README.md +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +86 -3
- package/dist/index.d.ts +86 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{jsx-dev-runtime-BMji0LKs.d.cts → jsx-dev-runtime-C8Et6jKR.d.cts} +1 -1
- package/dist/{jsx-dev-runtime-BMji0LKs.d.ts → jsx-dev-runtime-C8Et6jKR.d.ts} +1 -1
- package/dist/jsx-dev-runtime.cjs +2 -2
- package/dist/jsx-dev-runtime.cjs.map +1 -1
- package/dist/jsx-dev-runtime.d.cts +1 -1
- package/dist/jsx-dev-runtime.d.ts +1 -1
- package/dist/jsx-dev-runtime.js +2 -2
- package/dist/jsx-dev-runtime.js.map +1 -1
- package/dist/jsx-runtime.cjs +2 -2
- package/dist/jsx-runtime.cjs.map +1 -1
- package/dist/jsx-runtime.d.cts +1 -1
- package/dist/jsx-runtime.d.ts +1 -1
- package/dist/jsx-runtime.js +2 -2
- package/dist/jsx-runtime.js.map +1 -1
- package/package.json +1 -1
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-
|
|
2
|
-
export { C as ComponentFunction, d as ContainerAlign, N as ContainerAnimateDelay, L as ContainerAnimateDuration,
|
|
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
|
-
|
|
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-
|
|
2
|
-
export { C as ComponentFunction, d as ContainerAlign, N as ContainerAnimateDelay, L as ContainerAnimateDuration,
|
|
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
|
-
|
|
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=[],C=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 Wn(e,n){return S(e,n,{mode:"replace"})}function Ge(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 Dn(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 _n(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||Ye()}}function Ye(){let e=document.createElement("div");return e.textContent="Loading...",e}function Fn(e){try{return e.children}catch(n){return e.fallback(n)}}function On(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 kn(e){return Ge(e.children,e.to)}function In(e){w.push(e),C||(C=true,queueMicrotask(qe));}function qe(){let e=w;w=[],C=false,e.forEach(n=>n());}function Ke(){return typeof window<"u"&&typeof document<"u"}function Bn(e){Ke()&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e());}function Gn(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 qn(e){return e.replace(/\s+/g," ").replace(/>\s+</g,"><").trim()}function x(e){return e.replace(/\s+/g," ").trim()}var le=[/^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 de(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 a=0;a<le.length;a++)if(le[a].test(l)){i=a;break}t.has(i)||(t.add(i),r.push(l));}return r.reverse().join(" ")}var ce={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"},Ue={block:"block","inline-block":"inline-block",flex:"flex","inline-flex":"inline-flex",grid:"grid","inline-grid":"inline-grid"},Ve={row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},Qe={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},Ze={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},en={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"},nn={0:"border-0",1:"border",2:"border-2",4:"border-4",8:"border-8"},tn={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"},rn={none:"shadow-none",xs:"shadow-xs",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl",inner:"shadow-inner"},on={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"},an={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"},sn={none:"select-none",text:"select-text",all:"select-all",auto:"select-auto"},ln={none:"pointer-events-none",auto:"pointer-events-auto"},dn={none:"resize-none",both:"resize",y:"resize-y",x:"resize-x"},cn={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"},mn={linear:"animate-ease-linear",in:"animate-ease-in",out:"animate-ease-out","in-out":"animate-ease-in-out"},un={forwards:"animate-fill-forwards",backwards:"animate-fill-backwards",both:"animate-fill-both",none:"animate-fill-none"},fn={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"},pn={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"},gn={start:"text-start",end:"text-end",left:"text-left",right:"text-right",center:"text-center",justify:"text-justify"},xn={wrap:"text-wrap",nowrap:"text-nowrap",balance:"text-balance",pretty:"text-pretty"},hn={uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize",none:"normal-case"};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 me=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]),yn=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"]),bn=new Set(["auto","full","screen","min","max","fit"]),wn=new Set(["auto","full","screen","min","max","fit"]),Cn=new Set(["0","full","min","max","fit"]),Sn=new Set(["none","full","min","max","fit"]),En=new Set(["0","full","screen","min","max","fit"]),$n=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"&&me.has(n)?{class:`${e}-${n}`}:(e==="w"||e==="h")&&yn.has(n)?{class:`${e}-${n}`}:(e==="w"?bn:e==="h"?wn:e==="min-w"?Cn:e==="min-h"?En:e==="max-w"?Sn:$n).has(n)?{class:`${e}-${n}`}:["min-w","max-w","min-h","max-h"].includes(e)&&typeof n=="number"&&me.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}},ue=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 fe(e){let{display:n,direction:t,align:r,justify:o,wrap:l,grow:i,shrink:a,basis:s,order:p,gap:L,gapX:v,gapY:R,w:ye,h:be,size:H,minW:we,minH:Ce,maxW:Se,maxH:Ee,p:$e,px:Me,py:Te,ps:Le,pe:ve,pt:Re,pb:He,m:Ae,mx:Pe,my:Ne,ms:Xe,me:ze,mt:Je,mb:je,bg:A,color:P,border:N,borderStyle:X,borderColor:z,radius:J,shadow:j,opacity:W,position:We,overflow:D,zIndex:_,overlay:g,location:y,backdrop:De,divider:b,cursor:F,select:O,pointerEvents:k,resize:I,animate:B,animateDuration:G,animateDelay:Y,animateEase:q,animateFill:K,textSize:U,textWeight:V,textAlign:Q,textWrap:Z,textTransform:ee,italic:_e,underline:Fe,lineThrough:Oe,truncate:ke}=e,Ie=c("w",H),Be=c("h",H),ne=c("w",ye)||Ie,te=c("h",be)||Be,re=c("min-w",we),oe=c("min-h",Ce),ie=c("max-w",Se,en),ae=c("max-h",Ee),se={...ne?.style,...te?.style,...re?.style,...oe?.style,...ie?.style,...ae?.style,...s&&typeof s=="string"&&!["auto","full"].includes(s)?{flexBasis:s}:{},...p!==void 0?{order:p}:{},...i!==void 0&&typeof i=="number"?{flexGrow:i}:{},...a!==void 0&&typeof a=="number"?{flexShrink:a}:{},...g&&De?{backgroundColor:"rgba(0, 0, 0, 0.5)"}:{}};return {className:[g&&"absolute inset-0 w-full h-full flex",g&&y&&ce[y],g&&!y&&ce.center,n&&Ue[n],t&&Ve[t],r&&Qe[r],o&&Ze[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}`,L!==void 0&&`gap-${L}`,v!==void 0&&`gap-x-${v}`,R!==void 0&&`gap-y-${R}`,ne?.class,te?.class,re?.class,oe?.class,ie?.class,ae?.class,u("p",$e),u("px",Me),u("py",Te),u("ps",Le),u("pe",ve),u("pt",Re),u("pb",He),f("m",Ae),f("mx",Pe),f("my",Ne),f("ms",Xe),f("me",ze),f("mt",Je),f("mb",je),A&&`bg-${A}`,P&&`text-${P}`,N!==void 0&&nn[N],X&&on[X],z&&`border-${z}`,J&&tn[J],j&&rn[j],W!==void 0&&`opacity-${W}`,We,D&&`overflow-${D}`,_&&`z-${_}`,F&&an[F],O&&sn[O],k&&ln[k],I&&dn[I],B&&cn[B],G&&`animate-duration-${G}`,Y&&`animate-delay-${Y}`,q&&mn[q],K&&un[K],U&&fn[U],V&&pn[V],Q&&gn[Q],Z&&xn[Z],ee&&hn[ee],_e&&"italic",Fe&&"underline",Oe&&"line-through",ke&&"truncate",b===true&&"border-t",b==="horizontal"&&"border-t",b==="vertical"&&"border-s"].filter(Boolean).join(" "),style:Object.keys(se).length>0?se:void 0}}function T(e,n){return typeof e=="function"?e(n||{}):vn(e,n||{})}var et=T;function xe(e){let n=document.createDocumentFragment();return h(e.children).forEach(r=>{r instanceof Node&&n.appendChild(r);}),n}var pe=false;function Mn(){if(pe||typeof window>"u"||typeof MutationObserver>"u")return;pe=true;let e=new MutationObserver(n=>{n.forEach(t=>{t.addedNodes.forEach(r=>{r instanceof Element&&Tn(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 Tn(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 E=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"]),he="http://www.w3.org/2000/svg",Ln="http://www.w3.org/1998/Math/MathML";function vn(e,n){n.as&&(e=n.as);let t;E.has(e)?t=document.createElementNS(he,e):$.has(e)?t=document.createElementNS(Ln,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}=fe(n);n.divider&&!n.role&&t.setAttribute("role","separator"),l&&!E.has(e)&&!$.has(e)&&M(t,l);let i=false;for(let[a,s]of Object.entries(n))if(!ue.has(a)&&a!=="as"){if(a==="children")r||Rn(t,s);else if(a==="dangerouslySetInnerHTML")zn(t,s);else if(a==="onload")t.__onload=s,t.setAttribute("data-mine-onload",""),Mn();else if(a==="ref")Hn(t,s);else if(a.startsWith("on"))An(t,a,s);else if(a==="id")Pn(t,s);else if(a==="htmlFor")Nn(t,s);else if(a==="className"||a==="class")i=true,ge(t,s,o);else if(a==="style")Xn(t,s);else if(isSignal(s))Jn(t,a,s);else if(typeof s=="boolean")s&&t.setAttribute(a,"");else if(s!=null)if(E.has(e)||$.has(e)){let p=typeof s=="string"?x(s):String(s);t.setAttribute(a,p);}else if(a in t)t[a]=s;else {let p=typeof s=="string"?x(s):String(s);t.setAttribute(a,p);}}return !i&&o&&ge(t,o),t}function Rn(e,n){h(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 h(e){return e==null||e===false?[]:Array.isArray(e)?e.flatMap(h):[e]}function Hn(e,n){isSignal(n)?n.set(e):typeof n=="function"&&n(e);}function An(e,n,t){if(typeof t!="function")return;let r=n.slice(2).toLowerCase();e.addEventListener(r,t);}function ge(e,n,t=""){let r=o=>{let l=t?`${t} ${o}`:o,i=de(String(l));e.namespaceURI===he?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 Pn(e,n){isSignal(n)?effect(()=>{let t=n();t!=null?e.id=String(t):e.removeAttribute("id");}):n!=null&&(e.id=String(n));}function Nn(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 Xn(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 zn(e,n){if(n!=null&&typeof n=="object"&&"__html"in n){let t=n.__html;typeof t=="string"&&(e.innerHTML=t);}}function Jn(e,n,t){effect(()=>{let r=t();if(r!=null)if(n in e)e[n]=r;else {let o=typeof r=="string"?x(r):String(r);e.setAttribute(n,o);}else e.removeAttribute(n);});}function nt(e){return e}function tt(e){return n=>e(n)()}function rt(e){let n=document.createDocumentFragment();return e.forEach(t=>{t instanceof Node&&n.appendChild(t);}),n}function ot(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=h(e.children)[0],r instanceof Node&&n.parentNode?.insertBefore(r,n)):!l&&r&&(r.remove(),r=null);}),t}else return e.when?T(xe,{children:e.children}):null}function it(e){for(let n of e.children)if(isSignal(n.when)?n.when():n.when)return T(xe,{children:n.children});return null}function at(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 a=e.children(l,i);a instanceof Node&&t.appendChild(a);});}),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{
|
|
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&<[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&>[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
|