@minejs/jsx 0.2.5 → 0.2.7
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 +19 -19
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{jsx-dev-runtime-DmA69Qn_.d.cts → jsx-dev-runtime-BMji0LKs.d.cts} +43 -2
- package/dist/{jsx-dev-runtime-DmA69Qn_.d.ts → jsx-dev-runtime-BMji0LKs.d.ts} +43 -2
- 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
|
@@ -31,12 +31,27 @@ type ContainerMinHeight = 0 | 'full' | 'screen' | 'min' | 'max' | 'fit' | Contai
|
|
|
31
31
|
type ContainerMaxHeight = 'none' | 'full' | 'screen' | 'min' | 'max' | 'fit' | ContainerScale | (string & {}) | number;
|
|
32
32
|
type ContainerBg = 'page' | 'surface' | 'raised' | 'brand' | 'brand-subtle' | 'success' | 'success-subtle' | 'warning' | 'warning-subtle' | 'error' | 'error-subtle' | 'info' | 'info-subtle' | 'current' | 'transparent';
|
|
33
33
|
type ContainerTextColor = '1' | '2' | '3' | '4' | 'inverse' | 'brand' | 'success' | 'warning' | 'error' | 'info' | 'current' | 'transparent';
|
|
34
|
-
type ContainerBorderColor = '1' | '2' | '3' | 'brand' | 'success' | 'warning' | 'error' | 'current' | 'transparent';
|
|
34
|
+
type ContainerBorderColor = '1' | '2' | '3' | 'c1' | 'c2' | 'c3' | 'brand' | 'success' | 'warning' | 'error' | 'current' | 'transparent';
|
|
35
|
+
type ContainerBorderStyle = 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'hidden' | 'none';
|
|
35
36
|
type ContainerBorderWidth = 0 | 1 | 2 | 4 | 8;
|
|
36
37
|
type ContainerRadius = 'none' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
37
38
|
type ContainerShadow = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'inner';
|
|
38
39
|
type ContainerPosition = 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky';
|
|
39
40
|
type ContainerOverflow = 'visible' | 'hidden' | 'scroll' | 'auto';
|
|
41
|
+
type ContainerCursor = 'auto' | 'default' | 'pointer' | 'wait' | 'text' | 'move' | 'help' | 'not-allowed' | 'none' | 'grab' | 'grabbing';
|
|
42
|
+
type ContainerUserSelect = 'none' | 'text' | 'all' | 'auto';
|
|
43
|
+
type ContainerPointerEvents = 'none' | 'auto';
|
|
44
|
+
type ContainerResize = 'none' | 'both' | 'y' | 'x';
|
|
45
|
+
type ContainerTextSize = 'xs' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl';
|
|
46
|
+
type ContainerTextWeight = 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
|
|
47
|
+
type ContainerTextAlign = 'start' | 'end' | 'left' | 'right' | 'center' | 'justify';
|
|
48
|
+
type ContainerTextWrap = 'wrap' | 'nowrap' | 'balance' | 'pretty';
|
|
49
|
+
type ContainerTextTransform = 'uppercase' | 'lowercase' | 'capitalize' | 'none';
|
|
50
|
+
type ContainerAnimation = 'none' | 'spin' | 'ping' | 'pulse' | 'bounce' | 'fade-in' | 'fade-out' | 'slide-in-up' | 'slide-in-down' | 'slide-in-left' | 'slide-in-right' | 'zoom-in' | 'zoom-out';
|
|
51
|
+
type ContainerAnimateDuration = 75 | 100 | 150 | 200 | 300 | 500 | 700 | 1000;
|
|
52
|
+
type ContainerAnimateDelay = 75 | 100 | 150 | 200 | 300 | 500 | 700 | 1000;
|
|
53
|
+
type ContainerAnimateEase = 'linear' | 'in' | 'out' | 'in-out';
|
|
54
|
+
type ContainerAnimateFill = 'forwards' | 'backwards' | 'both' | 'none';
|
|
40
55
|
type OverlayPosition = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
41
56
|
interface ContainerProps {
|
|
42
57
|
as?: ContainerAs;
|
|
@@ -48,8 +63,13 @@ interface ContainerProps {
|
|
|
48
63
|
gap?: ContainerGap;
|
|
49
64
|
gapX?: ContainerGap;
|
|
50
65
|
gapY?: ContainerGap;
|
|
66
|
+
grow?: boolean | number;
|
|
67
|
+
shrink?: boolean | number;
|
|
68
|
+
basis?: string | number;
|
|
69
|
+
order?: number;
|
|
51
70
|
w?: ContainerWidth;
|
|
52
71
|
h?: ContainerHeight;
|
|
72
|
+
size?: ContainerWidth;
|
|
53
73
|
minW?: ContainerMinWidth;
|
|
54
74
|
minH?: ContainerMinHeight;
|
|
55
75
|
maxW?: ContainerMaxWidth;
|
|
@@ -71,11 +91,32 @@ interface ContainerProps {
|
|
|
71
91
|
bg?: ContainerBg;
|
|
72
92
|
color?: ContainerTextColor;
|
|
73
93
|
border?: ContainerBorderWidth;
|
|
94
|
+
borderStyle?: ContainerBorderStyle;
|
|
74
95
|
borderColor?: ContainerBorderColor;
|
|
75
96
|
radius?: ContainerRadius;
|
|
76
97
|
shadow?: ContainerShadow;
|
|
98
|
+
opacity?: number;
|
|
99
|
+
textSize?: ContainerTextSize;
|
|
100
|
+
textWeight?: ContainerTextWeight;
|
|
101
|
+
textAlign?: ContainerTextAlign;
|
|
102
|
+
textWrap?: ContainerTextWrap;
|
|
103
|
+
textTransform?: ContainerTextTransform;
|
|
104
|
+
italic?: boolean;
|
|
105
|
+
underline?: boolean;
|
|
106
|
+
lineThrough?: boolean;
|
|
107
|
+
truncate?: boolean;
|
|
77
108
|
position?: ContainerPosition;
|
|
78
109
|
overflow?: ContainerOverflow;
|
|
110
|
+
divider?: boolean | 'horizontal' | 'vertical';
|
|
111
|
+
cursor?: ContainerCursor;
|
|
112
|
+
select?: ContainerUserSelect;
|
|
113
|
+
pointerEvents?: ContainerPointerEvents;
|
|
114
|
+
resize?: ContainerResize;
|
|
115
|
+
animate?: ContainerAnimation;
|
|
116
|
+
animateDuration?: ContainerAnimateDuration;
|
|
117
|
+
animateDelay?: ContainerAnimateDelay;
|
|
118
|
+
animateEase?: ContainerAnimateEase;
|
|
119
|
+
animateFill?: ContainerAnimateFill;
|
|
79
120
|
overlay?: boolean;
|
|
80
121
|
location?: OverlayPosition;
|
|
81
122
|
backdrop?: boolean;
|
|
@@ -150,4 +191,4 @@ declare function For<T>(props: {
|
|
|
150
191
|
children: (item: T, index: number) => JSXElement;
|
|
151
192
|
}): JSXElement;
|
|
152
193
|
|
|
153
|
-
export {
|
|
194
|
+
export { Switch as $, type ContainerUserSelect as A, type ContainerPointerEvents as B, type ComponentFunction as C, type ContainerResize as D, type ContainerTextSize as E, type ContainerTextWeight as F, type ContainerTextAlign as G, type ContainerTextWrap as H, type ContainerTextTransform as I, type JSXElement as J, type ContainerAnimation as K, type ContainerAnimateDuration as L, type MountedComponent as M, type ContainerAnimateDelay as N, type ContainerAnimateEase as O, type ContainerAnimateFill as P, type OverlayPosition as Q, type RenderOptions as R, type ContainerProps as S, type JSXProps as T, jsx as U, jsxs as V, Fragment as W, component as X, defineComponent as Y, createElements as Z, Show as _, type ContainerAs as a, For as a0, type ContainerDisplay as b, type ContainerDirection as c, type ContainerAlign as d, type ContainerJustify as e, type ContainerGap as f, type ContainerSpace as g, type ContainerSpaceOrAuto as h, type ContainerScale as i, type ContainerFraction as j, type ContainerWidth as k, type ContainerMaxWidth as l, type ContainerMinWidth as m, type ContainerHeight as n, type ContainerMinHeight as o, type ContainerMaxHeight as p, type ContainerBg as q, type ContainerTextColor as r, type ContainerBorderColor as s, type ContainerBorderStyle as t, type ContainerBorderWidth as u, type ContainerRadius as v, type ContainerShadow as w, type ContainerPosition as x, type ContainerOverflow as y, type ContainerCursor as z };
|
|
@@ -31,12 +31,27 @@ type ContainerMinHeight = 0 | 'full' | 'screen' | 'min' | 'max' | 'fit' | Contai
|
|
|
31
31
|
type ContainerMaxHeight = 'none' | 'full' | 'screen' | 'min' | 'max' | 'fit' | ContainerScale | (string & {}) | number;
|
|
32
32
|
type ContainerBg = 'page' | 'surface' | 'raised' | 'brand' | 'brand-subtle' | 'success' | 'success-subtle' | 'warning' | 'warning-subtle' | 'error' | 'error-subtle' | 'info' | 'info-subtle' | 'current' | 'transparent';
|
|
33
33
|
type ContainerTextColor = '1' | '2' | '3' | '4' | 'inverse' | 'brand' | 'success' | 'warning' | 'error' | 'info' | 'current' | 'transparent';
|
|
34
|
-
type ContainerBorderColor = '1' | '2' | '3' | 'brand' | 'success' | 'warning' | 'error' | 'current' | 'transparent';
|
|
34
|
+
type ContainerBorderColor = '1' | '2' | '3' | 'c1' | 'c2' | 'c3' | 'brand' | 'success' | 'warning' | 'error' | 'current' | 'transparent';
|
|
35
|
+
type ContainerBorderStyle = 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'hidden' | 'none';
|
|
35
36
|
type ContainerBorderWidth = 0 | 1 | 2 | 4 | 8;
|
|
36
37
|
type ContainerRadius = 'none' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
37
38
|
type ContainerShadow = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'inner';
|
|
38
39
|
type ContainerPosition = 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky';
|
|
39
40
|
type ContainerOverflow = 'visible' | 'hidden' | 'scroll' | 'auto';
|
|
41
|
+
type ContainerCursor = 'auto' | 'default' | 'pointer' | 'wait' | 'text' | 'move' | 'help' | 'not-allowed' | 'none' | 'grab' | 'grabbing';
|
|
42
|
+
type ContainerUserSelect = 'none' | 'text' | 'all' | 'auto';
|
|
43
|
+
type ContainerPointerEvents = 'none' | 'auto';
|
|
44
|
+
type ContainerResize = 'none' | 'both' | 'y' | 'x';
|
|
45
|
+
type ContainerTextSize = 'xs' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl';
|
|
46
|
+
type ContainerTextWeight = 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
|
|
47
|
+
type ContainerTextAlign = 'start' | 'end' | 'left' | 'right' | 'center' | 'justify';
|
|
48
|
+
type ContainerTextWrap = 'wrap' | 'nowrap' | 'balance' | 'pretty';
|
|
49
|
+
type ContainerTextTransform = 'uppercase' | 'lowercase' | 'capitalize' | 'none';
|
|
50
|
+
type ContainerAnimation = 'none' | 'spin' | 'ping' | 'pulse' | 'bounce' | 'fade-in' | 'fade-out' | 'slide-in-up' | 'slide-in-down' | 'slide-in-left' | 'slide-in-right' | 'zoom-in' | 'zoom-out';
|
|
51
|
+
type ContainerAnimateDuration = 75 | 100 | 150 | 200 | 300 | 500 | 700 | 1000;
|
|
52
|
+
type ContainerAnimateDelay = 75 | 100 | 150 | 200 | 300 | 500 | 700 | 1000;
|
|
53
|
+
type ContainerAnimateEase = 'linear' | 'in' | 'out' | 'in-out';
|
|
54
|
+
type ContainerAnimateFill = 'forwards' | 'backwards' | 'both' | 'none';
|
|
40
55
|
type OverlayPosition = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
41
56
|
interface ContainerProps {
|
|
42
57
|
as?: ContainerAs;
|
|
@@ -48,8 +63,13 @@ interface ContainerProps {
|
|
|
48
63
|
gap?: ContainerGap;
|
|
49
64
|
gapX?: ContainerGap;
|
|
50
65
|
gapY?: ContainerGap;
|
|
66
|
+
grow?: boolean | number;
|
|
67
|
+
shrink?: boolean | number;
|
|
68
|
+
basis?: string | number;
|
|
69
|
+
order?: number;
|
|
51
70
|
w?: ContainerWidth;
|
|
52
71
|
h?: ContainerHeight;
|
|
72
|
+
size?: ContainerWidth;
|
|
53
73
|
minW?: ContainerMinWidth;
|
|
54
74
|
minH?: ContainerMinHeight;
|
|
55
75
|
maxW?: ContainerMaxWidth;
|
|
@@ -71,11 +91,32 @@ interface ContainerProps {
|
|
|
71
91
|
bg?: ContainerBg;
|
|
72
92
|
color?: ContainerTextColor;
|
|
73
93
|
border?: ContainerBorderWidth;
|
|
94
|
+
borderStyle?: ContainerBorderStyle;
|
|
74
95
|
borderColor?: ContainerBorderColor;
|
|
75
96
|
radius?: ContainerRadius;
|
|
76
97
|
shadow?: ContainerShadow;
|
|
98
|
+
opacity?: number;
|
|
99
|
+
textSize?: ContainerTextSize;
|
|
100
|
+
textWeight?: ContainerTextWeight;
|
|
101
|
+
textAlign?: ContainerTextAlign;
|
|
102
|
+
textWrap?: ContainerTextWrap;
|
|
103
|
+
textTransform?: ContainerTextTransform;
|
|
104
|
+
italic?: boolean;
|
|
105
|
+
underline?: boolean;
|
|
106
|
+
lineThrough?: boolean;
|
|
107
|
+
truncate?: boolean;
|
|
77
108
|
position?: ContainerPosition;
|
|
78
109
|
overflow?: ContainerOverflow;
|
|
110
|
+
divider?: boolean | 'horizontal' | 'vertical';
|
|
111
|
+
cursor?: ContainerCursor;
|
|
112
|
+
select?: ContainerUserSelect;
|
|
113
|
+
pointerEvents?: ContainerPointerEvents;
|
|
114
|
+
resize?: ContainerResize;
|
|
115
|
+
animate?: ContainerAnimation;
|
|
116
|
+
animateDuration?: ContainerAnimateDuration;
|
|
117
|
+
animateDelay?: ContainerAnimateDelay;
|
|
118
|
+
animateEase?: ContainerAnimateEase;
|
|
119
|
+
animateFill?: ContainerAnimateFill;
|
|
79
120
|
overlay?: boolean;
|
|
80
121
|
location?: OverlayPosition;
|
|
81
122
|
backdrop?: boolean;
|
|
@@ -150,4 +191,4 @@ declare function For<T>(props: {
|
|
|
150
191
|
children: (item: T, index: number) => JSXElement;
|
|
151
192
|
}): JSXElement;
|
|
152
193
|
|
|
153
|
-
export {
|
|
194
|
+
export { Switch as $, type ContainerUserSelect as A, type ContainerPointerEvents as B, type ComponentFunction as C, type ContainerResize as D, type ContainerTextSize as E, type ContainerTextWeight as F, type ContainerTextAlign as G, type ContainerTextWrap as H, type ContainerTextTransform as I, type JSXElement as J, type ContainerAnimation as K, type ContainerAnimateDuration as L, type MountedComponent as M, type ContainerAnimateDelay as N, type ContainerAnimateEase as O, type ContainerAnimateFill as P, type OverlayPosition as Q, type RenderOptions as R, type ContainerProps as S, type JSXProps as T, jsx as U, jsxs as V, Fragment as W, component as X, defineComponent as Y, createElements as Z, Show as _, type ContainerAs as a, For as a0, type ContainerDisplay as b, type ContainerDirection as c, type ContainerAlign as d, type ContainerJustify as e, type ContainerGap as f, type ContainerSpace as g, type ContainerSpaceOrAuto as h, type ContainerScale as i, type ContainerFraction as j, type ContainerWidth as k, type ContainerMaxWidth as l, type ContainerMinWidth as m, type ContainerHeight as n, type ContainerMinHeight as o, type ContainerMaxHeight as p, type ContainerBg as q, type ContainerTextColor as r, type ContainerBorderColor as s, type ContainerBorderStyle as t, type ContainerBorderWidth as u, type ContainerRadius as v, type ContainerShadow as w, type ContainerPosition as x, type ContainerOverflow as y, type ContainerCursor as z };
|
package/dist/jsx-dev-runtime.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';var signals=require('@minejs/signals');function g(n){return n.replace(/\s+/g," ").trim()}var _=[/^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 O(n){let e=n.trim().split(/\s+/);if(e.length<=1&&e[0]==="")return "";if(e.length===1)return e[0];let t=new Set,o=[];for(let i=e.length-1;i>=0;i--){let l=e[i];if(!l)continue;let a=l;for(let r=0;r<_.length;r++)if(_[r].test(l)){a=r;break}t.has(a)||(t.add(a),o.push(l));}return o.reverse().join(" ")}var D={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"},pe={block:"block","inline-block":"inline-block",flex:"flex","inline-flex":"inline-flex",grid:"grid","inline-grid":"inline-grid"},he={row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},ge={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},xe={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},ye={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"},we={0:"border-0",1:"border",2:"border-2",4:"border-4",8:"border-8"},Se={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"},be={none:"shadow-none",xs:"shadow-xs",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl",inner:"shadow-inner"};function c(n,e){if(e!==void 0)return `${n}-${e}`}function d(n,e){if(e!==void 0)return e==="auto"?`${n}-auto`:`${n}-${e}`}var F=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]),Ee=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"]),$e=new Set(["auto","full","screen","min","max","fit"]),Ce=new Set(["auto","full","screen","min","max","fit"]),Me=new Set(["0","full","min","max","fit"]),Le=new Set(["none","full","min","max","fit"]),Te=new Set(["0","full","screen","min","max","fit"]),He=new Set(["none","full","screen","min","max","fit"]),f=(n,e,t)=>e===void 0?null:t&&e in t?{class:t[e]}:typeof e=="number"&&F.has(e)?{class:`${n}-${e}`}:(n==="w"||n==="h")&&Ee.has(e)?{class:`${n}-${e}`}:(n==="w"?$e:n==="h"?Ce:n==="min-w"?Me:n==="min-h"?Te:n==="max-w"?Le:He).has(e)?{class:`${n}-${e}`}:["min-w","max-w","min-h","max-h"].includes(n)&&typeof e=="number"&&F.has(e)?{class:`${n}-${e}`}:{style:{[n==="w"?"width":n==="h"?"height":n==="min-w"?"minWidth":n==="min-h"?"minHeight":n==="max-w"?"maxWidth":"maxHeight"]:e}},W=new Set(["display","direction","align","justify","wrap","gap","gapX","gapY","w","h","minW","minH","maxW","maxH","p","px","py","ps","pe","pt","pb","m","mx","my","ms","me","mt","mb","bg","color","border","borderColor","radius","shadow","position","overflow","zIndex","overlay","location","backdrop"]);function I(n){let{display:e,direction:t,align:o,justify:i,wrap:l,gap:a,gapX:r,gapY:s,w:p,h:G,minW:q,minH:K,maxW:V,maxH:U,p:Q,px:Z,py:ee,ps:ne,pe:te,pt:oe,pb:re,m:ie,mx:se,my:le,ms:ae,me:ce,mt:de,mb:me,bg:E,color:$,border:C,borderColor:M,radius:L,shadow:T,position:fe,overflow:H,zIndex:v,overlay:h,location:x,backdrop:ue}=n,N=f("w",p),P=f("h",G),X=f("min-w",q),J=f("min-h",K),j=f("max-w",V,ye),R=f("max-h",U),A={...N?.style,...P?.style,...X?.style,...J?.style,...j?.style,...R?.style,...h&&ue?{backgroundColor:"rgba(0, 0, 0, 0.5)"}:{}};return {className:[h&&"absolute inset-0 w-full h-full flex",h&&x&&D[x],h&&!x&&D.center,e&&pe[e],t&&he[t],o&&ge[o],i&&xe[i],l&&"flex-wrap",a!==void 0&&`gap-${a}`,r!==void 0&&`gap-x-${r}`,s!==void 0&&`gap-y-${s}`,N?.class,P?.class,X?.class,J?.class,j?.class,R?.class,c("p",Q),c("px",Z),c("py",ee),c("ps",ne),c("pe",te),c("pt",oe),c("pb",re),d("m",ie),d("mx",se),d("my",le),d("ms",ae),d("me",ce),d("mt",de),d("mb",me),E&&`bg-${E}`,$&&`text-${$}`,C!==void 0&&we[C],M&&`border-${M}`,L&&Se[L],T&&be[T],fe,H&&`overflow-${H}`,v&&`z-${v}`].filter(Boolean).join(" "),style:Object.keys(A).length>0?A:void 0}}function B(n,e){return typeof n=="function"?n(e||{}):je(n,e||{})}var ve=B;function Ne(n){let e=document.createDocumentFragment();return b(n.children).forEach(o=>{o instanceof Node&&e.appendChild(o);}),e}var k=false;function Pe(){if(k||typeof window>"u"||typeof MutationObserver>"u")return;k=true;let n=new MutationObserver(e=>{e.forEach(t=>{t.addedNodes.forEach(o=>{o instanceof Element&&Xe(o);});});});document.body?n.observe(document.body,{childList:true,subtree:true}):document.addEventListener("DOMContentLoaded",()=>{document.body&&n.observe(document.body,{childList:true,subtree:true});});}function Xe(n){if(n.hasAttribute("data-mine-onload")){let t=n.__onload;typeof t=="function"&&t(n);}n.querySelectorAll("[data-mine-onload]").forEach(t=>{let o=t.__onload;typeof o=="function"&&o(t);});}var y=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"]),w=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"]),Y="http://www.w3.org/2000/svg",Je="http://www.w3.org/1998/Math/MathML";function je(n,e){e.as&&(n=e.as);let t;y.has(n)?t=document.createElementNS(Y,n):w.has(n)?t=document.createElementNS(Je,n):t=document.createElement(n);let o="dangerouslySetInnerHTML"in e&&e.dangerouslySetInnerHTML!=null&&typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML&&typeof e.dangerouslySetInnerHTML.__html=="string",{className:i,style:l}=I(e);l&&!y.has(n)&&!w.has(n)&&S(t,l);let a=false;for(let[r,s]of Object.entries(e))if(!W.has(r)&&r!=="as"){if(r==="children")o||Re(t,s);else if(r==="dangerouslySetInnerHTML")We(t,s);else if(r==="onload")t.__onload=s,t.setAttribute("data-mine-onload",""),Pe();else if(r==="ref")Ae(t,s);else if(r.startsWith("on"))_e(t,r,s);else if(r==="id")Oe(t,s);else if(r==="htmlFor")De(t,s);else if(r==="className"||r==="class")a=true,z(t,s,i);else if(r==="style")Fe(t,s);else if(signals.isSignal(s))Ie(t,r,s);else if(typeof s=="boolean")s&&t.setAttribute(r,"");else if(s!=null)if(y.has(n)||w.has(n)){let p=typeof s=="string"?g(s):String(s);t.setAttribute(r,p);}else if(r in t)t[r]=s;else {let p=typeof s=="string"?g(s):String(s);t.setAttribute(r,p);}}return !a&&i&&z(t,i),t}function Re(n,e){b(e).forEach(o=>{if(o instanceof Node)n.appendChild(o);else if(signals.isSignal(o)){let i=document.createTextNode("");signals.effect(()=>{i.textContent=String(o());}),n.appendChild(i);}else o!=null&&o!==false&&n.appendChild(document.createTextNode(String(o)));});}function b(n){return n==null||n===false?[]:Array.isArray(n)?n.flatMap(b):[n]}function Ae(n,e){signals.isSignal(e)?e.set(n):typeof e=="function"&&e(n);}function _e(n,e,t){if(typeof t!="function")return;let o=e.slice(2).toLowerCase();n.addEventListener(o,t);}function z(n,e,t=""){let o=i=>{let l=t?`${t} ${i}`:i,a=O(String(l));n.namespaceURI===Y?n.setAttribute("class",a):n.className=a;};signals.isSignal(e)?signals.effect(()=>{let i=e();i!=null?o(String(i)):t&&o("");}):e!=null&&o(String(e));}function Oe(n,e){signals.isSignal(e)?signals.effect(()=>{let t=e();t!=null?n.id=String(t):n.removeAttribute("id");}):e!=null&&(n.id=String(e));}function De(n,e){signals.isSignal(e)?signals.effect(()=>{let t=e();t!=null?n.setAttribute("for",String(t)):n.removeAttribute("for");}):e!=null&&n.setAttribute("for",String(e));}function Fe(n,e){signals.isSignal(e)?signals.effect(()=>{let t=e();S(n,t);}):S(n,e);}function S(n,e){typeof e=="string"?n.style.cssText=e:typeof e=="object"&&e!=null&&Object.entries(e).forEach(([t,o])=>{if(o!=null){let i=t.replace(/[A-Z]/g,l=>`-${l.toLowerCase()}`);n.style.setProperty(i,String(o));}});}function We(n,e){if(e!=null&&typeof e=="object"&&"__html"in e){let t=e.__html;typeof t=="string"&&(n.innerHTML=t);}}function Ie(n,e,t){signals.effect(()=>{let o=t();if(o!=null)if(e in n)n[e]=o;else {let i=typeof o=="string"?g(o):String(o);n.setAttribute(e,i);}else n.removeAttribute(e);});}
|
|
2
|
-
exports.Fragment=
|
|
1
|
+
'use strict';var signals=require('@minejs/signals');function x(n){return n.replace(/\s+/g," ").trim()}var oe=[/^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 ie(n){let e=n.trim().split(/\s+/);if(e.length<=1&&e[0]==="")return "";if(e.length===1)return e[0];let t=new Set,r=[];for(let a=e.length-1;a>=0;a--){let l=e[a];if(!l)continue;let s=l;for(let o=0;o<oe.length;o++)if(oe[o].test(l)){s=o;break}t.has(s)||(t.add(s),r.push(l));}return r.reverse().join(" ")}var ae={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"},ke={row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},Ie={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},Be={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},Ge={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"},Ye={0:"border-0",1:"border",2:"border-2",4:"border-4",8:"border-8"},qe={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"},Ke={none:"shadow-none",xs:"shadow-xs",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl",inner:"shadow-inner"},Ue={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"},Ve={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"},Qe={none:"select-none",text:"select-text",all:"select-all",auto:"select-auto"},Ze={none:"pointer-events-none",auto:"pointer-events-auto"},en={none:"resize-none",both:"resize",y:"resize-y",x:"resize-x"},nn={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"},tn={linear:"animate-ease-linear",in:"animate-ease-in",out:"animate-ease-out","in-out":"animate-ease-in-out"},rn={forwards:"animate-fill-forwards",backwards:"animate-fill-backwards",both:"animate-fill-both",none:"animate-fill-none"},on={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"},an={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"},sn={start:"text-start",end:"text-end",left:"text-left",right:"text-right",center:"text-center",justify:"text-justify"},ln={wrap:"text-wrap",nowrap:"text-nowrap",balance:"text-balance",pretty:"text-pretty"},dn={uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize",none:"normal-case"};function c(n,e){if(e!==void 0)return `${n}-${e}`}function m(n,e){if(e!==void 0)return e==="auto"?`${n}-auto`:`${n}-${e}`}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]),cn=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"]),mn=new Set(["auto","full","screen","min","max","fit"]),un=new Set(["auto","full","screen","min","max","fit"]),fn=new Set(["0","full","min","max","fit"]),pn=new Set(["none","full","min","max","fit"]),gn=new Set(["0","full","screen","min","max","fit"]),xn=new Set(["none","full","screen","min","max","fit"]),d=(n,e,t)=>e===void 0?null:t&&e in t?{class:t[e]}:typeof e=="number"&&se.has(e)?{class:`${n}-${e}`}:(n==="w"||n==="h")&&cn.has(e)?{class:`${n}-${e}`}:(n==="w"?mn:n==="h"?un:n==="min-w"?fn:n==="min-h"?gn:n==="max-w"?pn:xn).has(e)?{class:`${n}-${e}`}:["min-w","max-w","min-h","max-h"].includes(n)&&typeof e=="number"&&se.has(e)?{class:`${n}-${e}`}:{style:{[n==="w"?"width":n==="h"?"height":n==="min-w"?"minWidth":n==="min-h"?"minHeight":n==="max-w"?"maxWidth":"maxHeight"]:e}},le=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 de(n){let{display:e,direction:t,align:r,justify:a,wrap:l,grow:s,shrink:o,basis:i,order:f,gap:E,gapX:$,gapY:M,w:pe,h:ge,size:T,minW:xe,minH:he,maxW:ye,maxH:be,p:we,px:Ce,py:Se,ps:Ee,pe:$e,pt:Me,pb:Te,m:Le,mx:ve,my:Re,ms:He,me:Ae,mt:Pe,mb:Ne,bg:L,color:v,border:R,borderStyle:H,borderColor:A,radius:P,shadow:N,opacity:X,position:Xe,overflow:j,zIndex:z,overlay:g,location:h,backdrop:je,divider:y,cursor:J,select:W,pointerEvents:D,resize:F,animate:_,animateDuration:O,animateDelay:k,animateEase:I,animateFill:B,textSize:G,textWeight:Y,textAlign:q,textWrap:K,textTransform:U,italic:ze,underline:Je,lineThrough:We,truncate:De}=n,Fe=d("w",T),_e=d("h",T),V=d("w",pe)||Fe,Q=d("h",ge)||_e,Z=d("min-w",xe),ee=d("min-h",he),ne=d("max-w",ye,Ge),te=d("max-h",be),re={...V?.style,...Q?.style,...Z?.style,...ee?.style,...ne?.style,...te?.style,...i&&typeof i=="string"&&!["auto","full"].includes(i)?{flexBasis:i}:{},...f!==void 0?{order:f}:{},...s!==void 0&&typeof s=="number"?{flexGrow:s}:{},...o!==void 0&&typeof o=="number"?{flexShrink:o}:{},...g&&je?{backgroundColor:"rgba(0, 0, 0, 0.5)"}:{}};return {className:[g&&"absolute inset-0 w-full h-full flex",g&&h&&ae[h],g&&!h&&ae.center,e&&Oe[e],t&&ke[t],r&&Ie[r],a&&Be[a],l&&"flex-wrap",s===true&&"grow",s===false&&"grow-0",o===true&&"shrink",o===false&&"shrink-0",i&&typeof i=="string"&&["auto","full"].includes(i)&&`basis-${i}`,E!==void 0&&`gap-${E}`,$!==void 0&&`gap-x-${$}`,M!==void 0&&`gap-y-${M}`,V?.class,Q?.class,Z?.class,ee?.class,ne?.class,te?.class,c("p",we),c("px",Ce),c("py",Se),c("ps",Ee),c("pe",$e),c("pt",Me),c("pb",Te),m("m",Le),m("mx",ve),m("my",Re),m("ms",He),m("me",Ae),m("mt",Pe),m("mb",Ne),L&&`bg-${L}`,v&&`text-${v}`,R!==void 0&&Ye[R],H&&Ue[H],A&&`border-${A}`,P&&qe[P],N&&Ke[N],X!==void 0&&`opacity-${X}`,Xe,j&&`overflow-${j}`,z&&`z-${z}`,J&&Ve[J],W&&Qe[W],D&&Ze[D],F&&en[F],_&&nn[_],O&&`animate-duration-${O}`,k&&`animate-delay-${k}`,I&&tn[I],B&&rn[B],G&&on[G],Y&&an[Y],q&&sn[q],K&&ln[K],U&&dn[U],ze&&"italic",Je&&"underline",We&&"line-through",De&&"truncate",y===true&&"border-t",y==="horizontal"&&"border-t",y==="vertical"&&"border-s"].filter(Boolean).join(" "),style:Object.keys(re).length>0?re:void 0}}function ue(n,e){return typeof n=="function"?n(e||{}):Sn(n,e||{})}var hn=ue;function yn(n){let e=document.createDocumentFragment();return S(n.children).forEach(r=>{r instanceof Node&&e.appendChild(r);}),e}var ce=false;function bn(){if(ce||typeof window>"u"||typeof MutationObserver>"u")return;ce=true;let n=new MutationObserver(e=>{e.forEach(t=>{t.addedNodes.forEach(r=>{r instanceof Element&&wn(r);});});});document.body?n.observe(document.body,{childList:true,subtree:true}):document.addEventListener("DOMContentLoaded",()=>{document.body&&n.observe(document.body,{childList:true,subtree:true});});}function wn(n){if(n.hasAttribute("data-mine-onload")){let t=n.__onload;typeof t=="function"&&t(n);}n.querySelectorAll("[data-mine-onload]").forEach(t=>{let r=t.__onload;typeof r=="function"&&r(t);});}var b=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"]),w=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"]),fe="http://www.w3.org/2000/svg",Cn="http://www.w3.org/1998/Math/MathML";function Sn(n,e){e.as&&(n=e.as);let t;b.has(n)?t=document.createElementNS(fe,n):w.has(n)?t=document.createElementNS(Cn,n):t=document.createElement(n);let r="dangerouslySetInnerHTML"in e&&e.dangerouslySetInnerHTML!=null&&typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML&&typeof e.dangerouslySetInnerHTML.__html=="string",{className:a,style:l}=de(e);e.divider&&!e.role&&t.setAttribute("role","separator"),l&&!b.has(n)&&!w.has(n)&&C(t,l);let s=false;for(let[o,i]of Object.entries(e))if(!le.has(o)&&o!=="as"){if(o==="children")r||En(t,i);else if(o==="dangerouslySetInnerHTML")Rn(t,i);else if(o==="onload")t.__onload=i,t.setAttribute("data-mine-onload",""),bn();else if(o==="ref")$n(t,i);else if(o.startsWith("on"))Mn(t,o,i);else if(o==="id")Tn(t,i);else if(o==="htmlFor")Ln(t,i);else if(o==="className"||o==="class")s=true,me(t,i,a);else if(o==="style")vn(t,i);else if(signals.isSignal(i))Hn(t,o,i);else if(typeof i=="boolean")i&&t.setAttribute(o,"");else if(i!=null)if(b.has(n)||w.has(n)){let f=typeof i=="string"?x(i):String(i);t.setAttribute(o,f);}else if(o in t)t[o]=i;else {let f=typeof i=="string"?x(i):String(i);t.setAttribute(o,f);}}return !s&&a&&me(t,a),t}function En(n,e){S(e).forEach(r=>{if(r instanceof Node)n.appendChild(r);else if(signals.isSignal(r)){let a=document.createTextNode("");signals.effect(()=>{a.textContent=String(r());}),n.appendChild(a);}else r!=null&&r!==false&&n.appendChild(document.createTextNode(String(r)));});}function S(n){return n==null||n===false?[]:Array.isArray(n)?n.flatMap(S):[n]}function $n(n,e){signals.isSignal(e)?e.set(n):typeof e=="function"&&e(n);}function Mn(n,e,t){if(typeof t!="function")return;let r=e.slice(2).toLowerCase();n.addEventListener(r,t);}function me(n,e,t=""){let r=a=>{let l=t?`${t} ${a}`:a,s=ie(String(l));n.namespaceURI===fe?n.setAttribute("class",s):n.className=s;};signals.isSignal(e)?signals.effect(()=>{let a=e();a!=null?r(String(a)):t&&r("");}):e!=null&&r(String(e));}function Tn(n,e){signals.isSignal(e)?signals.effect(()=>{let t=e();t!=null?n.id=String(t):n.removeAttribute("id");}):e!=null&&(n.id=String(e));}function Ln(n,e){signals.isSignal(e)?signals.effect(()=>{let t=e();t!=null?n.setAttribute("for",String(t)):n.removeAttribute("for");}):e!=null&&n.setAttribute("for",String(e));}function vn(n,e){signals.isSignal(e)?signals.effect(()=>{let t=e();C(n,t);}):C(n,e);}function C(n,e){typeof e=="string"?n.style.cssText=e:typeof e=="object"&&e!=null&&Object.entries(e).forEach(([t,r])=>{if(r!=null){let a=t.replace(/[A-Z]/g,l=>`-${l.toLowerCase()}`);n.style.setProperty(a,String(r));}});}function Rn(n,e){if(e!=null&&typeof e=="object"&&"__html"in e){let t=e.__html;typeof t=="string"&&(n.innerHTML=t);}}function Hn(n,e,t){signals.effect(()=>{let r=t();if(r!=null)if(e in n)n[e]=r;else {let a=typeof r=="string"?x(r):String(r);n.setAttribute(e,a);}else n.removeAttribute(e);});}
|
|
2
|
+
exports.Fragment=yn;exports.jsxDEV=ue;exports.jsxs=hn;//# sourceMappingURL=jsx-dev-runtime.cjs.map
|
|
3
3
|
//# sourceMappingURL=jsx-dev-runtime.cjs.map
|