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 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)
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import * as _t from "./types";
3
- declare const MotionDiv: import("../../styled-system/types").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, {}>;
4
- declare const MotionBtn: import("../../styled-system/types").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLButtonElement, import("framer-motion").HTMLMotionProps<"button">>, {}>;
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,sKAAoB,CAAC;AACpC,QAAA,MAAM,SAAS,4KAAuB,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"}
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"}
@@ -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.FunctionComponent<any>, {
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" | "auto" | import("../../styled-system/types").Number | "-moz-initial" | "revert" | "revert-layer" | "unset" | 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)[] | {
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>;
@@ -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,S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-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: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, {}>;
60
- readonly a: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLAnchorElement, import("framer-motion").HTMLMotionProps<"a">>, {}>;
61
- readonly br: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLBRElement, import("framer-motion").HTMLMotionProps<"br">>, {}>;
62
- readonly button: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLButtonElement, import("framer-motion").HTMLMotionProps<"button">>, {}>;
63
- readonly canvas: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLCanvasElement, import("framer-motion").HTMLMotionProps<"canvas">>, {}>;
64
- readonly form: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLFormElement, import("framer-motion").HTMLMotionProps<"form">>, {}>;
65
- readonly h1: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLHeadingElement, import("framer-motion").HTMLMotionProps<"h1">>, {}>;
66
- readonly h2: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLHeadingElement, import("framer-motion").HTMLMotionProps<"h2">>, {}>;
67
- readonly h3: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLHeadingElement, import("framer-motion").HTMLMotionProps<"h3">>, {}>;
68
- readonly hr: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLHRElement, import("framer-motion").HTMLMotionProps<"hr">>, {}>;
69
- readonly nav: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"nav">>, {}>;
70
- readonly main: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"main">>, {}>;
71
- readonly aside: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"aside">>, {}>;
72
- readonly article: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"article">>, {}>;
73
- readonly section: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"section">>, {}>;
74
- readonly details: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDetailsElement, import("framer-motion").HTMLMotionProps<"details">>, {}>;
75
- readonly header: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"header">>, {}>;
76
- readonly footer: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"footer">>, {}>;
77
- readonly strong: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"strong">>, {}>;
78
- readonly em: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"em">>, {}>;
79
- readonly img: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLImageElement, import("framer-motion").HTMLMotionProps<"img">>, {}>;
80
- readonly del: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLModElement, import("framer-motion").HTMLMotionProps<"del">>, {}>;
81
- readonly ins: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLModElement, import("framer-motion").HTMLMotionProps<"ins">>, {}>;
82
- readonly kbd: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"kbd">>, {}>;
83
- readonly code: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"code">>, {}>;
84
- readonly mark: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"mark">>, {}>;
85
- readonly samp: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"samp">>, {}>;
86
- readonly small: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"small">>, {}>;
87
- readonly sub: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"sub">>, {}>;
88
- readonly sup: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"sup">>, {}>;
89
- readonly u: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"u">>, {}>;
90
- readonly var: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"var">>, {}>;
91
- readonly input: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLInputElement, import("framer-motion").HTMLMotionProps<"input">>, {}>;
92
- readonly label: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLLabelElement, import("framer-motion").HTMLMotionProps<"label">>, {}>;
93
- readonly legend: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLLegendElement, import("framer-motion").HTMLMotionProps<"legend">>, {}>;
94
- readonly p: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLParagraphElement, import("framer-motion").HTMLMotionProps<"p">>, {}>;
95
- readonly select: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLSelectElement, import("framer-motion").HTMLMotionProps<"select">>, {}>;
96
- readonly span: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLSpanElement, import("framer-motion").HTMLMotionProps<"span">>, {}>;
97
- readonly svg: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<SVGSVGElement, import("framer-motion").SVGMotionProps<SVGSVGElement>>, {}>;
98
- readonly textarea: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLTextAreaElement, import("framer-motion").HTMLMotionProps<"textarea">>, {}>;
99
- readonly table: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLTableElement, import("framer-motion").HTMLMotionProps<"table">>, {}>;
100
- readonly tr: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLTableRowElement, import("framer-motion").HTMLMotionProps<"tr">>, {}>;
101
- readonly th: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLTableHeaderCellElement, import("framer-motion").HTMLMotionProps<"th">>, {}>;
102
- readonly td: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLTableDataCellElement, import("framer-motion").HTMLMotionProps<"td">>, {}>;
103
- readonly tbody: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLTableSectionElement, import("framer-motion").HTMLMotionProps<"tbody">>, {}>;
104
- readonly thead: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLTableSectionElement, import("framer-motion").HTMLMotionProps<"thead">>, {}>;
105
- readonly tfoot: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLTableSectionElement, import("framer-motion").HTMLMotionProps<"tfoot">>, {}>;
106
- readonly progress: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLProgressElement, import("framer-motion").HTMLMotionProps<"progress">>, {}>;
107
- readonly ol: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLOListElement, import("framer-motion").HTMLMotionProps<"ol">>, {}>;
108
- readonly ul: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLUListElement, import("framer-motion").HTMLMotionProps<"ul">>, {}>;
109
- readonly li: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLLIElement, import("framer-motion").HTMLMotionProps<"li">>, {}>;
110
- readonly blockquote: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLQuoteElement, import("framer-motion").HTMLMotionProps<"blockquote">>, {}>;
111
- readonly pre: import("panda/jsx").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLPreElement, import("framer-motion").HTMLMotionProps<"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;AAUX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDmC,CAAC;AAE3D,eAAO,MAAM,eAAe;;;;;;CAMlB,CAAC;AAEX,eAAO,MAAM,YAAY,UAA+B,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/block/menu.tsx"],"names":[],"mappings":"AAaA,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,2CA2TpD"}
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"}
@@ -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: styled(framerMotion.motion.div),
558
- a: styled(framerMotion.motion.a),
559
- br: styled(framerMotion.motion.br),
560
- button: styled(framerMotion.motion.button),
561
- canvas: styled(framerMotion.motion.canvas),
562
- form: styled(framerMotion.motion.form),
563
- h1: styled(framerMotion.motion.h1),
564
- h2: styled(framerMotion.motion.h2),
565
- h3: styled(framerMotion.motion.h3),
566
- hr: styled(framerMotion.motion.hr),
567
- nav: styled(framerMotion.motion.nav),
568
- main: styled(framerMotion.motion.main),
569
- aside: styled(framerMotion.motion.aside),
570
- article: styled(framerMotion.motion.article),
571
- section: styled(framerMotion.motion.section),
572
- details: styled(framerMotion.motion.details),
573
- header: styled(framerMotion.motion.header),
574
- footer: styled(framerMotion.motion.footer),
575
- strong: styled(framerMotion.motion.strong),
576
- em: styled(framerMotion.motion.em),
577
- img: styled(framerMotion.motion.img),
578
- del: styled(framerMotion.motion.del),
579
- ins: styled(framerMotion.motion.ins),
580
- kbd: styled(framerMotion.motion.kbd),
581
- code: styled(framerMotion.motion.code),
582
- mark: styled(framerMotion.motion.mark),
583
- samp: styled(framerMotion.motion.samp),
584
- small: styled(framerMotion.motion.small),
585
- sub: styled(framerMotion.motion.sub),
586
- sup: styled(framerMotion.motion.sup),
587
- u: styled(framerMotion.motion.u),
588
- var: styled(framerMotion.motion.var),
589
- input: styled(framerMotion.motion.input),
590
- label: styled(framerMotion.motion.label),
591
- legend: styled(framerMotion.motion.legend),
592
- p: styled(framerMotion.motion.p),
593
- select: styled(framerMotion.motion.select),
594
- span: styled(framerMotion.motion.span),
595
- svg: styled(framerMotion.motion.svg),
596
- textarea: styled(framerMotion.motion.textarea),
597
- table: styled(framerMotion.motion.table),
598
- tr: styled(framerMotion.motion.tr),
599
- th: styled(framerMotion.motion.th),
600
- td: styled(framerMotion.motion.td),
601
- tbody: styled(framerMotion.motion.tbody),
602
- thead: styled(framerMotion.motion.thead),
603
- tfoot: styled(framerMotion.motion.tfoot),
604
- progress: styled(framerMotion.motion.progress),
605
- ol: styled(framerMotion.motion.ol),
606
- ul: styled(framerMotion.motion.ul),
607
- li: styled(framerMotion.motion.li),
608
- blockquote: styled(framerMotion.motion.blockquote),
609
- pre: styled(framerMotion.motion.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 StdComp = tags[extract.el] || tags.div;
1060
- const MotionComp = motionTags[extract.el] || motionTags.div;
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 remaining = omit(rest, [
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({
@@ -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: styled(motion.div),
535
- a: styled(motion.a),
536
- br: styled(motion.br),
537
- button: styled(motion.button),
538
- canvas: styled(motion.canvas),
539
- form: styled(motion.form),
540
- h1: styled(motion.h1),
541
- h2: styled(motion.h2),
542
- h3: styled(motion.h3),
543
- hr: styled(motion.hr),
544
- nav: styled(motion.nav),
545
- main: styled(motion.main),
546
- aside: styled(motion.aside),
547
- article: styled(motion.article),
548
- section: styled(motion.section),
549
- details: styled(motion.details),
550
- header: styled(motion.header),
551
- footer: styled(motion.footer),
552
- strong: styled(motion.strong),
553
- em: styled(motion.em),
554
- img: styled(motion.img),
555
- del: styled(motion.del),
556
- ins: styled(motion.ins),
557
- kbd: styled(motion.kbd),
558
- code: styled(motion.code),
559
- mark: styled(motion.mark),
560
- samp: styled(motion.samp),
561
- small: styled(motion.small),
562
- sub: styled(motion.sub),
563
- sup: styled(motion.sup),
564
- u: styled(motion.u),
565
- var: styled(motion.var),
566
- input: styled(motion.input),
567
- label: styled(motion.label),
568
- legend: styled(motion.legend),
569
- p: styled(motion.p),
570
- select: styled(motion.select),
571
- span: styled(motion.span),
572
- svg: styled(motion.svg),
573
- textarea: styled(motion.textarea),
574
- table: styled(motion.table),
575
- tr: styled(motion.tr),
576
- th: styled(motion.th),
577
- td: styled(motion.td),
578
- tbody: styled(motion.tbody),
579
- thead: styled(motion.thead),
580
- tfoot: styled(motion.tfoot),
581
- progress: styled(motion.progress),
582
- ol: styled(motion.ol),
583
- ul: styled(motion.ul),
584
- li: styled(motion.li),
585
- blockquote: styled(motion.blockquote),
586
- pre: styled(motion.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 StdComp = tags[extract.el] || tags.div;
1037
- const MotionComp = motionTags[extract.el] || motionTags.div;
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 remaining = omit(rest, [
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({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qstd",
3
- "version": "0.3.4",
3
+ "version": "0.3.7",
4
4
  "description": "Standard Block component and utilities library with Panda CSS",
5
5
  "author": "malin1",
6
6
  "license": "MIT",