qstd 0.3.4 → 0.3.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 +24 -0
- package/dist/block/drawer.d.ts +2 -2
- package/dist/block/drawer.d.ts.map +1 -1
- package/dist/block/fns.d.ts +2 -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/react/index.cjs +64 -57
- package/dist/react/index.js +64 -57
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,6 +20,30 @@ A single npm package providing:
|
|
|
20
20
|
pnpm add qstd
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
+
## ⚠️ Required: Panda CSS Preset Setup
|
|
24
|
+
|
|
25
|
+
**If you're using the Block component, you MUST configure the qstd preset in your `panda.config.ts`:**
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
// panda.config.ts
|
|
29
|
+
import { defineConfig } from "@pandacss/dev";
|
|
30
|
+
import qstdPreset from "qstd/preset";
|
|
31
|
+
|
|
32
|
+
export default defineConfig({
|
|
33
|
+
presets: ["@pandacss/dev/presets", qstdPreset], // ← REQUIRED
|
|
34
|
+
include: ["./src/**/*.{ts,tsx}"],
|
|
35
|
+
outdir: "styled-system",
|
|
36
|
+
jsxFramework: "react", // ← REQUIRED for Block component
|
|
37
|
+
});
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Without this setup:**
|
|
41
|
+
- Props like `grid`, `flex`, `cols`, `rows` will output broken CSS (e.g., `grid_true` instead of `display: grid`)
|
|
42
|
+
- Boolean utilities (`alignI`, `justifyC`, etc.) won't transform correctly
|
|
43
|
+
- You'll see raw prop values in your HTML class names instead of actual styles
|
|
44
|
+
|
|
45
|
+
After adding the preset, run `pnpm panda codegen` to regenerate your styled-system.
|
|
46
|
+
|
|
23
47
|
## Prerequisites
|
|
24
48
|
|
|
25
49
|
### TypeScript Configuration (Required)
|
package/dist/block/drawer.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import * as _t from "./types";
|
|
3
|
-
declare const MotionDiv:
|
|
4
|
-
declare const MotionBtn:
|
|
3
|
+
declare const MotionDiv: any;
|
|
4
|
+
declare const MotionBtn: any;
|
|
5
5
|
export default function Drawer(props: _t.DrawerBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare function BtnGroup(props: React.ComponentProps<typeof MotionDiv>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare function CloseBtn(props: React.ComponentProps<typeof MotionBtn>): import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/block/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,QAAA,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/block/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,QAAA,MAAM,SAAS,KAAoB,CAAC;AACpC,QAAA,MAAM,SAAS,KAAuB,CAAC;AAmWvC,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,2CAMxD;AAID,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,2CAYrE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,uDAkDrE"}
|
package/dist/block/fns.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare const extractElType: (is: _t.Is, props: {
|
|
|
45
45
|
isDrawer: boolean;
|
|
46
46
|
isHr: boolean;
|
|
47
47
|
};
|
|
48
|
-
export declare const extractElAndStyles: (extract: ReturnType<typeof extractElType>, anyProps: InternalBlockProps) => readonly [React.
|
|
48
|
+
export declare const extractElAndStyles: (extract: ReturnType<typeof extractElType>, anyProps: InternalBlockProps) => readonly [React.ElementType<any, keyof React.JSX.IntrinsicElements>, {
|
|
49
49
|
readonly className: string;
|
|
50
50
|
readonly tooltip?: React.ReactNode | string;
|
|
51
51
|
readonly portalContainer?: Element | DocumentFragment;
|
|
@@ -782,7 +782,7 @@ export declare const extractElAndStyles: (extract: ReturnType<typeof extractElTy
|
|
|
782
782
|
readonly mr?: import("../../styled-system/types").ConditionalValue<import("../../styled-system/types/prop-type").UtilityValues["marginRight"] | import("../../styled-system/types").CssVars | import("../../styled-system/types").CssProperties["marginRight"] | import("../../styled-system/types").AnyString>;
|
|
783
783
|
readonly mt?: import("../../styled-system/types").ConditionalValue<import("../../styled-system/types/prop-type").UtilityValues["marginTop"] | import("../../styled-system/types").CssVars | import("../../styled-system/types").CssProperties["marginTop"] | import("../../styled-system/types").AnyString>;
|
|
784
784
|
readonly mb?: import("../../styled-system/types").ConditionalValue<import("../../styled-system/types/prop-type").UtilityValues["marginBottom"] | import("../../styled-system/types").CssVars | import("../../styled-system/types").CssProperties["marginBottom"] | import("../../styled-system/types").AnyString>;
|
|
785
|
-
readonly m: 0 | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "-1" | "-2" | "-3" | "-4" | "-5" | "-6" | "-7" | "-8" | "-9" | "-10" | "-11" | "-12" | "-14" | "-16" | "-20" | "-24" | "-28" | "-32" | "-36" | "-40" | "-44" | "-48" | "-52" | "-56" | "-60" | "-64" | "-72" | "-80" | "-96" | "-0.5" | "-1.5" | "-2.5" | "-3.5" | "-4.5" | "-5.5" | import("../../styled-system/types").AnyString | "initial" | "inherit" |
|
|
785
|
+
readonly m: 0 | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "-1" | "-2" | "-3" | "-4" | "-5" | "-6" | "-7" | "-8" | "-9" | "-10" | "-11" | "-12" | "-14" | "-16" | "-20" | "-24" | "-28" | "-32" | "-36" | "-40" | "-44" | "-48" | "-52" | "-56" | "-60" | "-64" | "-72" | "-80" | "-96" | "-0.5" | "-1.5" | "-2.5" | "-3.5" | "-4.5" | "-5.5" | import("../../styled-system/types").AnyString | "initial" | "inherit" | import("../../styled-system/types").Number | "-moz-initial" | "revert" | "revert-layer" | "unset" | "auto" | readonly NonNullable<import("../../styled-system/types/csstype").Property.Margin<import("../../styled-system/types").String | import("../../styled-system/types").Number> | undefined>[] | (import("../../styled-system/tokens").SpacingToken | import("../../styled-system/types").AnyString | `var(--${string})` | import("../../styled-system/types/csstype").Property.Margin<import("../../styled-system/types").String | import("../../styled-system/types").Number> | readonly NonNullable<import("../../styled-system/types/csstype").Property.Margin<import("../../styled-system/types").String | import("../../styled-system/types").Number> | undefined>[] | null | undefined)[] | {
|
|
786
786
|
_hover?: import("../../styled-system/types").ConditionalValue<import("../../styled-system/tokens").SpacingToken | import("../../styled-system/types").AnyString | `var(--${string})` | import("../../styled-system/types/csstype").Property.Margin<import("../../styled-system/types").String | import("../../styled-system/types").Number> | readonly NonNullable<import("../../styled-system/types/csstype").Property.Margin<import("../../styled-system/types").String | import("../../styled-system/types").Number> | undefined>[] | undefined>;
|
|
787
787
|
_focus?: import("../../styled-system/types").ConditionalValue<import("../../styled-system/tokens").SpacingToken | import("../../styled-system/types").AnyString | `var(--${string})` | import("../../styled-system/types/csstype").Property.Margin<import("../../styled-system/types").String | import("../../styled-system/types").Number> | readonly NonNullable<import("../../styled-system/types/csstype").Property.Margin<import("../../styled-system/types").String | import("../../styled-system/types").Number> | undefined>[] | undefined>;
|
|
788
788
|
_focusWithin?: import("../../styled-system/types").ConditionalValue<import("../../styled-system/tokens").SpacingToken | import("../../styled-system/types").AnyString | `var(--${string})` | import("../../styled-system/types/csstype").Property.Margin<import("../../styled-system/types").String | import("../../styled-system/types").Number> | readonly NonNullable<import("../../styled-system/types/csstype").Property.Margin<import("../../styled-system/types").String | import("../../styled-system/types").Number> | undefined>[] | undefined>;
|
package/dist/block/fns.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fns.d.ts","sourceRoot":"","sources":["../../src/block/fns.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAMlE,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAG9B,KAAK,kBAAkB,GAAG,EAAE,CAAC,gBAAgB,GAC3C,EAAE,CAAC,YAAY,GACf,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAW1B;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,GAAG,IAAI,uBAsC3C,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAU,GAAG,IAAI,uBA6BjD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,GAAG,IAAI,kBAsB3C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAU,CAAC,SAAS,IAAI,EAAE,eAAe,IAAI,EAAE,iBA4BvE,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,CAAC,SAAS,MAAM,EACxD,UAAU,KAAK,CAAC,SAAS,EACzB,aAAa,MAAM,KAClB,KAAK,CAAC,Y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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmG7B,CAAC;AAqGF,eAAO,MAAM,QAAQ,GACnB,SAAS,UAAU,CAAC,OAAO,aAAa,CAAC,EACzC,UAAU,kBAAkB;;;CAgC7B,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,MAAM,EACnC,KAAK,CAAC,EACN,MAAM,SAAS,MAAM,EAAE,KACtB,OAAO,CAAC,CAAC,CAkBX,CAAC"}
|
package/dist/block/literals.d.ts
CHANGED
|
@@ -56,59 +56,59 @@ export declare const tags: {
|
|
|
56
56
|
readonly pre: import("panda/jsx").StyledComponent<"pre", {}>;
|
|
57
57
|
};
|
|
58
58
|
export declare const motionTags: {
|
|
59
|
-
readonly div:
|
|
60
|
-
readonly a:
|
|
61
|
-
readonly br:
|
|
62
|
-
readonly button:
|
|
63
|
-
readonly canvas:
|
|
64
|
-
readonly form:
|
|
65
|
-
readonly h1:
|
|
66
|
-
readonly h2:
|
|
67
|
-
readonly h3:
|
|
68
|
-
readonly hr:
|
|
69
|
-
readonly nav:
|
|
70
|
-
readonly main:
|
|
71
|
-
readonly aside:
|
|
72
|
-
readonly article:
|
|
73
|
-
readonly section:
|
|
74
|
-
readonly details:
|
|
75
|
-
readonly header:
|
|
76
|
-
readonly footer:
|
|
77
|
-
readonly strong:
|
|
78
|
-
readonly em:
|
|
79
|
-
readonly img:
|
|
80
|
-
readonly del:
|
|
81
|
-
readonly ins:
|
|
82
|
-
readonly kbd:
|
|
83
|
-
readonly code:
|
|
84
|
-
readonly mark:
|
|
85
|
-
readonly samp:
|
|
86
|
-
readonly small:
|
|
87
|
-
readonly sub:
|
|
88
|
-
readonly sup:
|
|
89
|
-
readonly u:
|
|
90
|
-
readonly var:
|
|
91
|
-
readonly input:
|
|
92
|
-
readonly label:
|
|
93
|
-
readonly legend:
|
|
94
|
-
readonly p:
|
|
95
|
-
readonly select:
|
|
96
|
-
readonly span:
|
|
97
|
-
readonly svg:
|
|
98
|
-
readonly textarea:
|
|
99
|
-
readonly table:
|
|
100
|
-
readonly tr:
|
|
101
|
-
readonly th:
|
|
102
|
-
readonly td:
|
|
103
|
-
readonly tbody:
|
|
104
|
-
readonly thead:
|
|
105
|
-
readonly tfoot:
|
|
106
|
-
readonly progress:
|
|
107
|
-
readonly ol:
|
|
108
|
-
readonly ul:
|
|
109
|
-
readonly li:
|
|
110
|
-
readonly blockquote:
|
|
111
|
-
readonly pre:
|
|
59
|
+
readonly div: any;
|
|
60
|
+
readonly a: any;
|
|
61
|
+
readonly br: any;
|
|
62
|
+
readonly button: any;
|
|
63
|
+
readonly canvas: any;
|
|
64
|
+
readonly form: any;
|
|
65
|
+
readonly h1: any;
|
|
66
|
+
readonly h2: any;
|
|
67
|
+
readonly h3: any;
|
|
68
|
+
readonly hr: any;
|
|
69
|
+
readonly nav: any;
|
|
70
|
+
readonly main: any;
|
|
71
|
+
readonly aside: any;
|
|
72
|
+
readonly article: any;
|
|
73
|
+
readonly section: any;
|
|
74
|
+
readonly details: any;
|
|
75
|
+
readonly header: any;
|
|
76
|
+
readonly footer: any;
|
|
77
|
+
readonly strong: any;
|
|
78
|
+
readonly em: any;
|
|
79
|
+
readonly img: any;
|
|
80
|
+
readonly del: any;
|
|
81
|
+
readonly ins: any;
|
|
82
|
+
readonly kbd: any;
|
|
83
|
+
readonly code: any;
|
|
84
|
+
readonly mark: any;
|
|
85
|
+
readonly samp: any;
|
|
86
|
+
readonly small: any;
|
|
87
|
+
readonly sub: any;
|
|
88
|
+
readonly sup: any;
|
|
89
|
+
readonly u: any;
|
|
90
|
+
readonly var: any;
|
|
91
|
+
readonly input: any;
|
|
92
|
+
readonly label: any;
|
|
93
|
+
readonly legend: any;
|
|
94
|
+
readonly p: any;
|
|
95
|
+
readonly select: any;
|
|
96
|
+
readonly span: any;
|
|
97
|
+
readonly svg: any;
|
|
98
|
+
readonly textarea: any;
|
|
99
|
+
readonly table: any;
|
|
100
|
+
readonly tr: any;
|
|
101
|
+
readonly th: any;
|
|
102
|
+
readonly td: any;
|
|
103
|
+
readonly tbody: any;
|
|
104
|
+
readonly thead: any;
|
|
105
|
+
readonly tfoot: any;
|
|
106
|
+
readonly progress: any;
|
|
107
|
+
readonly ol: any;
|
|
108
|
+
readonly ul: any;
|
|
109
|
+
readonly li: any;
|
|
110
|
+
readonly blockquote: any;
|
|
111
|
+
readonly pre: any;
|
|
112
112
|
};
|
|
113
113
|
export declare const loadingIconsMap: {
|
|
114
114
|
readonly rotatingLines: import("react").FunctionComponent<import("react-loader-spinner")._Props3>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"literals.d.ts","sourceRoot":"","sources":["../../src/block/literals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAM5C,eAAO,MAAM,IAAI,gDAAgB,CAAC;AAElC,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDP,CAAC;
|
|
1
|
+
{"version":3,"file":"literals.d.ts","sourceRoot":"","sources":["../../src/block/literals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAM5C,eAAO,MAAM,IAAI,gDAAgB,CAAC;AAElC,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDP,CAAC;AAcX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDmC,CAAC;AAE3D,eAAO,MAAM,eAAe;;;;;;CAMlB,CAAC;AAEX,eAAO,MAAM,YAAY,UAA+B,CAAC"}
|
package/dist/block/menu.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/block/menu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/block/menu.tsx"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAQ9B,wBAAgB,aAAa,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,2CAOrD;AAED,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,2CA0TpD"}
|
package/dist/react/index.cjs
CHANGED
|
@@ -553,60 +553,61 @@ var tags = {
|
|
|
553
553
|
blockquote: styled("blockquote"),
|
|
554
554
|
pre: styled("pre")
|
|
555
555
|
};
|
|
556
|
+
var motionStyled = (tag) => framerMotion.motion(styled(tag));
|
|
556
557
|
var motionTags = {
|
|
557
|
-
div:
|
|
558
|
-
a:
|
|
559
|
-
br:
|
|
560
|
-
button:
|
|
561
|
-
canvas:
|
|
562
|
-
form:
|
|
563
|
-
h1:
|
|
564
|
-
h2:
|
|
565
|
-
h3:
|
|
566
|
-
hr:
|
|
567
|
-
nav:
|
|
568
|
-
main:
|
|
569
|
-
aside:
|
|
570
|
-
article:
|
|
571
|
-
section:
|
|
572
|
-
details:
|
|
573
|
-
header:
|
|
574
|
-
footer:
|
|
575
|
-
strong:
|
|
576
|
-
em:
|
|
577
|
-
img:
|
|
578
|
-
del:
|
|
579
|
-
ins:
|
|
580
|
-
kbd:
|
|
581
|
-
code:
|
|
582
|
-
mark:
|
|
583
|
-
samp:
|
|
584
|
-
small:
|
|
585
|
-
sub:
|
|
586
|
-
sup:
|
|
587
|
-
u:
|
|
588
|
-
var:
|
|
589
|
-
input:
|
|
590
|
-
label:
|
|
591
|
-
legend:
|
|
592
|
-
p:
|
|
593
|
-
select:
|
|
594
|
-
span:
|
|
595
|
-
svg:
|
|
596
|
-
textarea:
|
|
597
|
-
table:
|
|
598
|
-
tr:
|
|
599
|
-
th:
|
|
600
|
-
td:
|
|
601
|
-
tbody:
|
|
602
|
-
thead:
|
|
603
|
-
tfoot:
|
|
604
|
-
progress:
|
|
605
|
-
ol:
|
|
606
|
-
ul:
|
|
607
|
-
li:
|
|
608
|
-
blockquote:
|
|
609
|
-
pre:
|
|
558
|
+
div: motionStyled("div"),
|
|
559
|
+
a: motionStyled("a"),
|
|
560
|
+
br: motionStyled("br"),
|
|
561
|
+
button: motionStyled("button"),
|
|
562
|
+
canvas: motionStyled("canvas"),
|
|
563
|
+
form: motionStyled("form"),
|
|
564
|
+
h1: motionStyled("h1"),
|
|
565
|
+
h2: motionStyled("h2"),
|
|
566
|
+
h3: motionStyled("h3"),
|
|
567
|
+
hr: motionStyled("hr"),
|
|
568
|
+
nav: motionStyled("nav"),
|
|
569
|
+
main: motionStyled("main"),
|
|
570
|
+
aside: motionStyled("aside"),
|
|
571
|
+
article: motionStyled("article"),
|
|
572
|
+
section: motionStyled("section"),
|
|
573
|
+
details: motionStyled("details"),
|
|
574
|
+
header: motionStyled("header"),
|
|
575
|
+
footer: motionStyled("footer"),
|
|
576
|
+
strong: motionStyled("strong"),
|
|
577
|
+
em: motionStyled("em"),
|
|
578
|
+
img: motionStyled("img"),
|
|
579
|
+
del: motionStyled("del"),
|
|
580
|
+
ins: motionStyled("ins"),
|
|
581
|
+
kbd: motionStyled("kbd"),
|
|
582
|
+
code: motionStyled("code"),
|
|
583
|
+
mark: motionStyled("mark"),
|
|
584
|
+
samp: motionStyled("samp"),
|
|
585
|
+
small: motionStyled("small"),
|
|
586
|
+
sub: motionStyled("sub"),
|
|
587
|
+
sup: motionStyled("sup"),
|
|
588
|
+
u: motionStyled("u"),
|
|
589
|
+
var: motionStyled("var"),
|
|
590
|
+
input: motionStyled("input"),
|
|
591
|
+
label: motionStyled("label"),
|
|
592
|
+
legend: motionStyled("legend"),
|
|
593
|
+
p: motionStyled("p"),
|
|
594
|
+
select: motionStyled("select"),
|
|
595
|
+
span: motionStyled("span"),
|
|
596
|
+
svg: motionStyled("svg"),
|
|
597
|
+
textarea: motionStyled("textarea"),
|
|
598
|
+
table: motionStyled("table"),
|
|
599
|
+
tr: motionStyled("tr"),
|
|
600
|
+
th: motionStyled("th"),
|
|
601
|
+
td: motionStyled("td"),
|
|
602
|
+
tbody: motionStyled("tbody"),
|
|
603
|
+
thead: motionStyled("thead"),
|
|
604
|
+
tfoot: motionStyled("tfoot"),
|
|
605
|
+
progress: motionStyled("progress"),
|
|
606
|
+
ol: motionStyled("ol"),
|
|
607
|
+
ul: motionStyled("ul"),
|
|
608
|
+
li: motionStyled("li"),
|
|
609
|
+
blockquote: motionStyled("blockquote"),
|
|
610
|
+
pre: motionStyled("pre")
|
|
610
611
|
};
|
|
611
612
|
var loadingIconsMap = {
|
|
612
613
|
rotatingLines: reactLoaderSpinner.RotatingLines,
|
|
@@ -1056,8 +1057,10 @@ var extractElAndStyles = (extract, anyProps) => {
|
|
|
1056
1057
|
custom,
|
|
1057
1058
|
...rest
|
|
1058
1059
|
} = anyProps;
|
|
1059
|
-
const
|
|
1060
|
-
const
|
|
1060
|
+
const asTag = anyProps.as;
|
|
1061
|
+
const effectiveEl = asTag && asTag in tags ? asTag : extract.el;
|
|
1062
|
+
const StdComp = tags[effectiveEl] || tags.div;
|
|
1063
|
+
const MotionComp = motionTags[effectiveEl] || motionTags.div;
|
|
1061
1064
|
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;
|
|
1062
1065
|
const comp = hasMotionProps ? MotionComp : StdComp;
|
|
1063
1066
|
const motionProps = hasMotionProps ? {
|
|
@@ -1072,12 +1075,16 @@ var extractElAndStyles = (extract, anyProps) => {
|
|
|
1072
1075
|
custom,
|
|
1073
1076
|
transition: _motion ?? transition
|
|
1074
1077
|
} : void 0;
|
|
1075
|
-
const
|
|
1078
|
+
const propsToOmit = [
|
|
1076
1079
|
"loadingPosition",
|
|
1077
1080
|
"loadingIcon",
|
|
1078
1081
|
"isLoading",
|
|
1079
1082
|
"children"
|
|
1080
|
-
]
|
|
1083
|
+
];
|
|
1084
|
+
if (asTag && asTag in tags) {
|
|
1085
|
+
propsToOmit.push("as");
|
|
1086
|
+
}
|
|
1087
|
+
const remaining = omit(rest, propsToOmit);
|
|
1081
1088
|
const cursor = anyProps.isLoading ? "not-allowed" : "pointer";
|
|
1082
1089
|
const btnClassName = extract.is === "btn" ? css({ display: "flex", alignI: "center", cursor }) : "";
|
|
1083
1090
|
const linkClassName = extract.isLink ? css({
|
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,
|
|
@@ -1033,8 +1034,10 @@ var extractElAndStyles = (extract, anyProps) => {
|
|
|
1033
1034
|
custom,
|
|
1034
1035
|
...rest
|
|
1035
1036
|
} = anyProps;
|
|
1036
|
-
const
|
|
1037
|
-
const
|
|
1037
|
+
const asTag = anyProps.as;
|
|
1038
|
+
const effectiveEl = asTag && asTag in tags ? asTag : extract.el;
|
|
1039
|
+
const StdComp = tags[effectiveEl] || tags.div;
|
|
1040
|
+
const MotionComp = motionTags[effectiveEl] || motionTags.div;
|
|
1038
1041
|
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;
|
|
1039
1042
|
const comp = hasMotionProps ? MotionComp : StdComp;
|
|
1040
1043
|
const motionProps = hasMotionProps ? {
|
|
@@ -1049,12 +1052,16 @@ var extractElAndStyles = (extract, anyProps) => {
|
|
|
1049
1052
|
custom,
|
|
1050
1053
|
transition: _motion ?? transition
|
|
1051
1054
|
} : void 0;
|
|
1052
|
-
const
|
|
1055
|
+
const propsToOmit = [
|
|
1053
1056
|
"loadingPosition",
|
|
1054
1057
|
"loadingIcon",
|
|
1055
1058
|
"isLoading",
|
|
1056
1059
|
"children"
|
|
1057
|
-
]
|
|
1060
|
+
];
|
|
1061
|
+
if (asTag && asTag in tags) {
|
|
1062
|
+
propsToOmit.push("as");
|
|
1063
|
+
}
|
|
1064
|
+
const remaining = omit(rest, propsToOmit);
|
|
1058
1065
|
const cursor = anyProps.isLoading ? "not-allowed" : "pointer";
|
|
1059
1066
|
const btnClassName = extract.is === "btn" ? css({ display: "flex", alignI: "center", cursor }) : "";
|
|
1060
1067
|
const linkClassName = extract.isLink ? css({
|