qstd 0.3.5 → 0.3.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 +28 -3
- package/dist/block/drawer.d.ts +2 -2
- package/dist/block/drawer.d.ts.map +1 -1
- package/dist/block/fns.d.ts +4 -2
- package/dist/block/fns.d.ts.map +1 -1
- package/dist/block/literals.d.ts +53 -53
- package/dist/block/literals.d.ts.map +1 -1
- package/dist/block/menu.d.ts.map +1 -1
- package/dist/block/types.d.ts +2 -0
- package/dist/block/types.d.ts.map +1 -1
- package/dist/react/index.cjs +60 -55
- package/dist/react/index.js +60 -55
- package/dist/server/index.cjs +21951 -623
- package/dist/server/index.js +21939 -616
- package/package.json +1 -3
package/dist/react/index.js
CHANGED
|
@@ -530,60 +530,61 @@ var tags = {
|
|
|
530
530
|
blockquote: styled("blockquote"),
|
|
531
531
|
pre: styled("pre")
|
|
532
532
|
};
|
|
533
|
+
var motionStyled = (tag) => motion(styled(tag));
|
|
533
534
|
var motionTags = {
|
|
534
|
-
div:
|
|
535
|
-
a:
|
|
536
|
-
br:
|
|
537
|
-
button:
|
|
538
|
-
canvas:
|
|
539
|
-
form:
|
|
540
|
-
h1:
|
|
541
|
-
h2:
|
|
542
|
-
h3:
|
|
543
|
-
hr:
|
|
544
|
-
nav:
|
|
545
|
-
main:
|
|
546
|
-
aside:
|
|
547
|
-
article:
|
|
548
|
-
section:
|
|
549
|
-
details:
|
|
550
|
-
header:
|
|
551
|
-
footer:
|
|
552
|
-
strong:
|
|
553
|
-
em:
|
|
554
|
-
img:
|
|
555
|
-
del:
|
|
556
|
-
ins:
|
|
557
|
-
kbd:
|
|
558
|
-
code:
|
|
559
|
-
mark:
|
|
560
|
-
samp:
|
|
561
|
-
small:
|
|
562
|
-
sub:
|
|
563
|
-
sup:
|
|
564
|
-
u:
|
|
565
|
-
var:
|
|
566
|
-
input:
|
|
567
|
-
label:
|
|
568
|
-
legend:
|
|
569
|
-
p:
|
|
570
|
-
select:
|
|
571
|
-
span:
|
|
572
|
-
svg:
|
|
573
|
-
textarea:
|
|
574
|
-
table:
|
|
575
|
-
tr:
|
|
576
|
-
th:
|
|
577
|
-
td:
|
|
578
|
-
tbody:
|
|
579
|
-
thead:
|
|
580
|
-
tfoot:
|
|
581
|
-
progress:
|
|
582
|
-
ol:
|
|
583
|
-
ul:
|
|
584
|
-
li:
|
|
585
|
-
blockquote:
|
|
586
|
-
pre:
|
|
535
|
+
div: motionStyled("div"),
|
|
536
|
+
a: motionStyled("a"),
|
|
537
|
+
br: motionStyled("br"),
|
|
538
|
+
button: motionStyled("button"),
|
|
539
|
+
canvas: motionStyled("canvas"),
|
|
540
|
+
form: motionStyled("form"),
|
|
541
|
+
h1: motionStyled("h1"),
|
|
542
|
+
h2: motionStyled("h2"),
|
|
543
|
+
h3: motionStyled("h3"),
|
|
544
|
+
hr: motionStyled("hr"),
|
|
545
|
+
nav: motionStyled("nav"),
|
|
546
|
+
main: motionStyled("main"),
|
|
547
|
+
aside: motionStyled("aside"),
|
|
548
|
+
article: motionStyled("article"),
|
|
549
|
+
section: motionStyled("section"),
|
|
550
|
+
details: motionStyled("details"),
|
|
551
|
+
header: motionStyled("header"),
|
|
552
|
+
footer: motionStyled("footer"),
|
|
553
|
+
strong: motionStyled("strong"),
|
|
554
|
+
em: motionStyled("em"),
|
|
555
|
+
img: motionStyled("img"),
|
|
556
|
+
del: motionStyled("del"),
|
|
557
|
+
ins: motionStyled("ins"),
|
|
558
|
+
kbd: motionStyled("kbd"),
|
|
559
|
+
code: motionStyled("code"),
|
|
560
|
+
mark: motionStyled("mark"),
|
|
561
|
+
samp: motionStyled("samp"),
|
|
562
|
+
small: motionStyled("small"),
|
|
563
|
+
sub: motionStyled("sub"),
|
|
564
|
+
sup: motionStyled("sup"),
|
|
565
|
+
u: motionStyled("u"),
|
|
566
|
+
var: motionStyled("var"),
|
|
567
|
+
input: motionStyled("input"),
|
|
568
|
+
label: motionStyled("label"),
|
|
569
|
+
legend: motionStyled("legend"),
|
|
570
|
+
p: motionStyled("p"),
|
|
571
|
+
select: motionStyled("select"),
|
|
572
|
+
span: motionStyled("span"),
|
|
573
|
+
svg: motionStyled("svg"),
|
|
574
|
+
textarea: motionStyled("textarea"),
|
|
575
|
+
table: motionStyled("table"),
|
|
576
|
+
tr: motionStyled("tr"),
|
|
577
|
+
th: motionStyled("th"),
|
|
578
|
+
td: motionStyled("td"),
|
|
579
|
+
tbody: motionStyled("tbody"),
|
|
580
|
+
thead: motionStyled("thead"),
|
|
581
|
+
tfoot: motionStyled("tfoot"),
|
|
582
|
+
progress: motionStyled("progress"),
|
|
583
|
+
ol: motionStyled("ol"),
|
|
584
|
+
ul: motionStyled("ul"),
|
|
585
|
+
li: motionStyled("li"),
|
|
586
|
+
blockquote: motionStyled("blockquote"),
|
|
587
|
+
pre: motionStyled("pre")
|
|
587
588
|
};
|
|
588
589
|
var loadingIconsMap = {
|
|
589
590
|
rotatingLines: RotatingLines,
|
|
@@ -1031,13 +1032,15 @@ var extractElAndStyles = (extract, anyProps) => {
|
|
|
1031
1032
|
transition,
|
|
1032
1033
|
variants,
|
|
1033
1034
|
custom,
|
|
1035
|
+
onAnimationStart,
|
|
1036
|
+
onAnimationComplete,
|
|
1034
1037
|
...rest
|
|
1035
1038
|
} = anyProps;
|
|
1036
1039
|
const asTag = anyProps.as;
|
|
1037
1040
|
const effectiveEl = asTag && asTag in tags ? asTag : extract.el;
|
|
1038
1041
|
const StdComp = tags[effectiveEl] || tags.div;
|
|
1039
1042
|
const MotionComp = motionTags[effectiveEl] || motionTags.div;
|
|
1040
|
-
const hasMotionProps = _motion !== void 0 || layout !== void 0 || initial !== void 0 || animate !== void 0 || exit !== void 0 || whileHover !== void 0 || whileTap !== void 0 || whileFocus !== void 0 || variants !== void 0 || transition !== void 0 || custom !== void 0;
|
|
1043
|
+
const hasMotionProps = _motion !== void 0 || layout !== void 0 || initial !== void 0 || animate !== void 0 || exit !== void 0 || whileHover !== void 0 || whileTap !== void 0 || whileFocus !== void 0 || variants !== void 0 || transition !== void 0 || custom !== void 0 || onAnimationStart !== void 0 || onAnimationComplete !== void 0;
|
|
1041
1044
|
const comp = hasMotionProps ? MotionComp : StdComp;
|
|
1042
1045
|
const motionProps = hasMotionProps ? {
|
|
1043
1046
|
layout,
|
|
@@ -1049,7 +1052,9 @@ var extractElAndStyles = (extract, anyProps) => {
|
|
|
1049
1052
|
whileFocus,
|
|
1050
1053
|
variants,
|
|
1051
1054
|
custom,
|
|
1052
|
-
transition: _motion ?? transition
|
|
1055
|
+
transition: _motion ?? transition,
|
|
1056
|
+
onAnimationStart,
|
|
1057
|
+
onAnimationComplete
|
|
1053
1058
|
} : void 0;
|
|
1054
1059
|
const propsToOmit = [
|
|
1055
1060
|
"loadingPosition",
|