qstd 0.3.13 → 0.3.15
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 +39 -7
- package/dist/client/index.cjs +11 -5
- package/dist/client/index.js +11 -5
- package/dist/server/index.cjs +11 -5
- package/dist/server/index.js +11 -5
- package/dist/shared/dict.d.ts +7 -6
- package/dist/shared/dict.d.ts.map +1 -1
- package/dist/shared/log.d.ts.map +1 -1
- package/package.json +20 -21
package/README.md
CHANGED
|
@@ -38,6 +38,7 @@ export default defineConfig({
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
**Without this setup:**
|
|
41
|
+
|
|
41
42
|
- Props like `grid`, `flex`, `cols`, `rows` will output broken CSS (e.g., `grid_true` instead of `display: grid`)
|
|
42
43
|
- Boolean utilities (`alignI`, `justifyC`, etc.) won't transform correctly
|
|
43
44
|
- You'll see raw prop values in your HTML class names instead of actual styles
|
|
@@ -81,7 +82,7 @@ The `exports` field is the modern Node.js way to define multiple entry points fo
|
|
|
81
82
|
|
|
82
83
|
```
|
|
83
84
|
Cannot find module 'qstd/server' or its corresponding type declarations.
|
|
84
|
-
There are types at '.../node_modules/qstd/dist/server/index.d.ts', but this result
|
|
85
|
+
There are types at '.../node_modules/qstd/dist/server/index.d.ts', but this result
|
|
85
86
|
could not be resolved under your current 'moduleResolution' setting.
|
|
86
87
|
```
|
|
87
88
|
|
|
@@ -89,12 +90,12 @@ Cannot find module 'qstd/server' or its corresponding type declarations.
|
|
|
89
90
|
|
|
90
91
|
#### Quick Reference
|
|
91
92
|
|
|
92
|
-
| moduleResolution
|
|
93
|
-
|
|
94
|
-
| `"node"` / `"node10"` | ❌ No
|
|
95
|
-
| `"node16"`
|
|
96
|
-
| `"nodenext"`
|
|
97
|
-
| `"bundler"`
|
|
93
|
+
| moduleResolution | Supports `exports` | Use Case |
|
|
94
|
+
| --------------------- | ------------------ | -------------------------------- |
|
|
95
|
+
| `"node"` / `"node10"` | ❌ No | Legacy projects |
|
|
96
|
+
| `"node16"` | ✅ Yes | Node.js 16+ with ESM |
|
|
97
|
+
| `"nodenext"` | ✅ Yes | Latest Node.js features |
|
|
98
|
+
| `"bundler"` | ✅ Yes | **Recommended** for bundled apps |
|
|
98
99
|
|
|
99
100
|
## Usage
|
|
100
101
|
|
|
@@ -608,6 +609,37 @@ Block includes several compound components accessible via namespace:
|
|
|
608
609
|
<Block is="input" placeholder="Email">
|
|
609
610
|
<Block.Input.Label>Email Address</Block.Input.Label>
|
|
610
611
|
</Block>
|
|
612
|
+
|
|
613
|
+
// Customizing label styles
|
|
614
|
+
// The `bg` prop cascades to the lifted state automatically
|
|
615
|
+
<Block is="input" placeholder="Title" value={value} onChange={handleChange}>
|
|
616
|
+
<Block.Input.Label
|
|
617
|
+
fontWeight={500}
|
|
618
|
+
bg={{ base: "neutral.100", _dark: "neutral.900" }}
|
|
619
|
+
>
|
|
620
|
+
Title
|
|
621
|
+
</Block.Input.Label>
|
|
622
|
+
</Block>
|
|
623
|
+
|
|
624
|
+
// Partial override of lifted state (only override what you need)
|
|
625
|
+
<Block is="input" placeholder="Email" value={value} onChange={handleChange}>
|
|
626
|
+
<Block.Input.Label
|
|
627
|
+
bg={{ base: "white", _dark: "gray.900" }}
|
|
628
|
+
_labelLifted={{ top: "-12px" }} // Only changes top, keeps default bg, color, transform
|
|
629
|
+
>
|
|
630
|
+
Email
|
|
631
|
+
</Block.Input.Label>
|
|
632
|
+
</Block>
|
|
633
|
+
|
|
634
|
+
// Different bg for lifted state
|
|
635
|
+
<Block is="input" placeholder="Name" value={value} onChange={handleChange}>
|
|
636
|
+
<Block.Input.Label
|
|
637
|
+
bg="transparent"
|
|
638
|
+
_labelLifted={{ bg: "white", top: "-12px" }} // Different bg when lifted
|
|
639
|
+
>
|
|
640
|
+
Name
|
|
641
|
+
</Block.Input.Label>
|
|
642
|
+
</Block>
|
|
611
643
|
```
|
|
612
644
|
|
|
613
645
|
#### Textarea
|
package/dist/client/index.cjs
CHANGED
|
@@ -69,8 +69,9 @@ function byteSizeOfObj(o) {
|
|
|
69
69
|
else if (typeof value === "number") bytes += 8;
|
|
70
70
|
else if (typeof value === "object" && objectList.indexOf(value) === -1) {
|
|
71
71
|
objectList.push(value);
|
|
72
|
-
if (typeof value.byteLength === "number")
|
|
73
|
-
|
|
72
|
+
if ("byteLength" in value && typeof value.byteLength === "number")
|
|
73
|
+
bytes += value.byteLength;
|
|
74
|
+
else if (Symbol.iterator in value) {
|
|
74
75
|
for (const v of value) stack.push(v);
|
|
75
76
|
} else {
|
|
76
77
|
Object.keys(value).forEach((k) => {
|
|
@@ -106,7 +107,7 @@ var exists = (obj) => {
|
|
|
106
107
|
return obj && typeof obj === "object" && Object.keys(obj).length > 0;
|
|
107
108
|
};
|
|
108
109
|
var isEmpty = (obj) => {
|
|
109
|
-
return !obj || Object.keys(obj).length === 0 && obj
|
|
110
|
+
return !obj || Object.keys(obj).length === 0 && Object.getPrototypeOf(obj) === Object.prototype;
|
|
110
111
|
};
|
|
111
112
|
var pick = (r, paths) => Object.entries(r).reduce(
|
|
112
113
|
(store, [key, value]) => paths.includes(key) ? { ...store, [key]: value } : store,
|
|
@@ -582,6 +583,7 @@ __export(log_exports, {
|
|
|
582
583
|
warn: () => warn
|
|
583
584
|
});
|
|
584
585
|
var stringify = (value) => JSON.stringify(value, null, 2);
|
|
586
|
+
var isBrowser = typeof window !== "undefined";
|
|
585
587
|
var log = (...values) => {
|
|
586
588
|
console.log(...values.map(stringify));
|
|
587
589
|
};
|
|
@@ -592,7 +594,9 @@ var warn = (...values) => {
|
|
|
592
594
|
console.log("[warn]", ...values.map(stringify));
|
|
593
595
|
};
|
|
594
596
|
var error = (...values) => {
|
|
595
|
-
|
|
597
|
+
const stringified = values.map(stringify);
|
|
598
|
+
console.log("[error]", ...stringified);
|
|
599
|
+
if (isBrowser) console.error("[error]", ...stringified);
|
|
596
600
|
};
|
|
597
601
|
var header = (message) => {
|
|
598
602
|
console.log(`========== ${message} ==========`);
|
|
@@ -608,7 +612,9 @@ var label = (name) => ({
|
|
|
608
612
|
},
|
|
609
613
|
/** Logs values with [label] [error] prefix. Output: `[label] [error] "value"` */
|
|
610
614
|
error: (...values) => {
|
|
611
|
-
|
|
615
|
+
const stringified = values.map(stringify);
|
|
616
|
+
console.log(`[${name}]`, "[error]", ...stringified);
|
|
617
|
+
if (isBrowser) console.error(`[${name}]`, "[error]", ...stringified);
|
|
612
618
|
},
|
|
613
619
|
/** Logs a header message with [label] prefix. Output: `[label] ========== MESSAGE ==========` */
|
|
614
620
|
header: (message) => {
|
package/dist/client/index.js
CHANGED
|
@@ -67,8 +67,9 @@ function byteSizeOfObj(o) {
|
|
|
67
67
|
else if (typeof value === "number") bytes += 8;
|
|
68
68
|
else if (typeof value === "object" && objectList.indexOf(value) === -1) {
|
|
69
69
|
objectList.push(value);
|
|
70
|
-
if (typeof value.byteLength === "number")
|
|
71
|
-
|
|
70
|
+
if ("byteLength" in value && typeof value.byteLength === "number")
|
|
71
|
+
bytes += value.byteLength;
|
|
72
|
+
else if (Symbol.iterator in value) {
|
|
72
73
|
for (const v of value) stack.push(v);
|
|
73
74
|
} else {
|
|
74
75
|
Object.keys(value).forEach((k) => {
|
|
@@ -104,7 +105,7 @@ var exists = (obj) => {
|
|
|
104
105
|
return obj && typeof obj === "object" && Object.keys(obj).length > 0;
|
|
105
106
|
};
|
|
106
107
|
var isEmpty = (obj) => {
|
|
107
|
-
return !obj || Object.keys(obj).length === 0 && obj
|
|
108
|
+
return !obj || Object.keys(obj).length === 0 && Object.getPrototypeOf(obj) === Object.prototype;
|
|
108
109
|
};
|
|
109
110
|
var pick = (r, paths) => Object.entries(r).reduce(
|
|
110
111
|
(store, [key, value]) => paths.includes(key) ? { ...store, [key]: value } : store,
|
|
@@ -580,6 +581,7 @@ __export(log_exports, {
|
|
|
580
581
|
warn: () => warn
|
|
581
582
|
});
|
|
582
583
|
var stringify = (value) => JSON.stringify(value, null, 2);
|
|
584
|
+
var isBrowser = typeof window !== "undefined";
|
|
583
585
|
var log = (...values) => {
|
|
584
586
|
console.log(...values.map(stringify));
|
|
585
587
|
};
|
|
@@ -590,7 +592,9 @@ var warn = (...values) => {
|
|
|
590
592
|
console.log("[warn]", ...values.map(stringify));
|
|
591
593
|
};
|
|
592
594
|
var error = (...values) => {
|
|
593
|
-
|
|
595
|
+
const stringified = values.map(stringify);
|
|
596
|
+
console.log("[error]", ...stringified);
|
|
597
|
+
if (isBrowser) console.error("[error]", ...stringified);
|
|
594
598
|
};
|
|
595
599
|
var header = (message) => {
|
|
596
600
|
console.log(`========== ${message} ==========`);
|
|
@@ -606,7 +610,9 @@ var label = (name) => ({
|
|
|
606
610
|
},
|
|
607
611
|
/** Logs values with [label] [error] prefix. Output: `[label] [error] "value"` */
|
|
608
612
|
error: (...values) => {
|
|
609
|
-
|
|
613
|
+
const stringified = values.map(stringify);
|
|
614
|
+
console.log(`[${name}]`, "[error]", ...stringified);
|
|
615
|
+
if (isBrowser) console.error(`[${name}]`, "[error]", ...stringified);
|
|
610
616
|
},
|
|
611
617
|
/** Logs a header message with [label] prefix. Output: `[label] ========== MESSAGE ==========` */
|
|
612
618
|
header: (message) => {
|
package/dist/server/index.cjs
CHANGED
|
@@ -18561,8 +18561,9 @@ function byteSizeOfObj(o6) {
|
|
|
18561
18561
|
else if (typeof value === "number") bytes += 8;
|
|
18562
18562
|
else if (typeof value === "object" && objectList.indexOf(value) === -1) {
|
|
18563
18563
|
objectList.push(value);
|
|
18564
|
-
if (typeof value.byteLength === "number")
|
|
18565
|
-
|
|
18564
|
+
if ("byteLength" in value && typeof value.byteLength === "number")
|
|
18565
|
+
bytes += value.byteLength;
|
|
18566
|
+
else if (Symbol.iterator in value) {
|
|
18566
18567
|
for (const v7 of value) stack.push(v7);
|
|
18567
18568
|
} else {
|
|
18568
18569
|
Object.keys(value).forEach((k6) => {
|
|
@@ -18598,7 +18599,7 @@ var exists = (obj) => {
|
|
|
18598
18599
|
return obj && typeof obj === "object" && Object.keys(obj).length > 0;
|
|
18599
18600
|
};
|
|
18600
18601
|
var isEmpty = (obj) => {
|
|
18601
|
-
return !obj || Object.keys(obj).length === 0 && obj
|
|
18602
|
+
return !obj || Object.keys(obj).length === 0 && Object.getPrototypeOf(obj) === Object.prototype;
|
|
18602
18603
|
};
|
|
18603
18604
|
var pick = (r6, paths) => Object.entries(r6).reduce(
|
|
18604
18605
|
(store, [key, value]) => paths.includes(key) ? { ...store, [key]: value } : store,
|
|
@@ -19074,6 +19075,7 @@ __export(log_exports, {
|
|
|
19074
19075
|
warn: () => warn
|
|
19075
19076
|
});
|
|
19076
19077
|
var stringify = (value) => JSON.stringify(value, null, 2);
|
|
19078
|
+
var isBrowser = typeof window !== "undefined";
|
|
19077
19079
|
var log = (...values) => {
|
|
19078
19080
|
console.log(...values.map(stringify));
|
|
19079
19081
|
};
|
|
@@ -19084,7 +19086,9 @@ var warn = (...values) => {
|
|
|
19084
19086
|
console.log("[warn]", ...values.map(stringify));
|
|
19085
19087
|
};
|
|
19086
19088
|
var error = (...values) => {
|
|
19087
|
-
|
|
19089
|
+
const stringified = values.map(stringify);
|
|
19090
|
+
console.log("[error]", ...stringified);
|
|
19091
|
+
if (isBrowser) console.error("[error]", ...stringified);
|
|
19088
19092
|
};
|
|
19089
19093
|
var header = (message) => {
|
|
19090
19094
|
console.log(`========== ${message} ==========`);
|
|
@@ -19100,7 +19104,9 @@ var label = (name) => ({
|
|
|
19100
19104
|
},
|
|
19101
19105
|
/** Logs values with [label] [error] prefix. Output: `[label] [error] "value"` */
|
|
19102
19106
|
error: (...values) => {
|
|
19103
|
-
|
|
19107
|
+
const stringified = values.map(stringify);
|
|
19108
|
+
console.log(`[${name}]`, "[error]", ...stringified);
|
|
19109
|
+
if (isBrowser) console.error(`[${name}]`, "[error]", ...stringified);
|
|
19104
19110
|
},
|
|
19105
19111
|
/** Logs a header message with [label] prefix. Output: `[label] ========== MESSAGE ==========` */
|
|
19106
19112
|
header: (message) => {
|
package/dist/server/index.js
CHANGED
|
@@ -18554,8 +18554,9 @@ function byteSizeOfObj(o6) {
|
|
|
18554
18554
|
else if (typeof value === "number") bytes += 8;
|
|
18555
18555
|
else if (typeof value === "object" && objectList.indexOf(value) === -1) {
|
|
18556
18556
|
objectList.push(value);
|
|
18557
|
-
if (typeof value.byteLength === "number")
|
|
18558
|
-
|
|
18557
|
+
if ("byteLength" in value && typeof value.byteLength === "number")
|
|
18558
|
+
bytes += value.byteLength;
|
|
18559
|
+
else if (Symbol.iterator in value) {
|
|
18559
18560
|
for (const v7 of value) stack.push(v7);
|
|
18560
18561
|
} else {
|
|
18561
18562
|
Object.keys(value).forEach((k6) => {
|
|
@@ -18591,7 +18592,7 @@ var exists = (obj) => {
|
|
|
18591
18592
|
return obj && typeof obj === "object" && Object.keys(obj).length > 0;
|
|
18592
18593
|
};
|
|
18593
18594
|
var isEmpty = (obj) => {
|
|
18594
|
-
return !obj || Object.keys(obj).length === 0 && obj
|
|
18595
|
+
return !obj || Object.keys(obj).length === 0 && Object.getPrototypeOf(obj) === Object.prototype;
|
|
18595
18596
|
};
|
|
18596
18597
|
var pick = (r6, paths) => Object.entries(r6).reduce(
|
|
18597
18598
|
(store, [key, value]) => paths.includes(key) ? { ...store, [key]: value } : store,
|
|
@@ -19067,6 +19068,7 @@ __export(log_exports, {
|
|
|
19067
19068
|
warn: () => warn
|
|
19068
19069
|
});
|
|
19069
19070
|
var stringify = (value) => JSON.stringify(value, null, 2);
|
|
19071
|
+
var isBrowser = typeof window !== "undefined";
|
|
19070
19072
|
var log = (...values) => {
|
|
19071
19073
|
console.log(...values.map(stringify));
|
|
19072
19074
|
};
|
|
@@ -19077,7 +19079,9 @@ var warn = (...values) => {
|
|
|
19077
19079
|
console.log("[warn]", ...values.map(stringify));
|
|
19078
19080
|
};
|
|
19079
19081
|
var error = (...values) => {
|
|
19080
|
-
|
|
19082
|
+
const stringified = values.map(stringify);
|
|
19083
|
+
console.log("[error]", ...stringified);
|
|
19084
|
+
if (isBrowser) console.error("[error]", ...stringified);
|
|
19081
19085
|
};
|
|
19082
19086
|
var header = (message) => {
|
|
19083
19087
|
console.log(`========== ${message} ==========`);
|
|
@@ -19093,7 +19097,9 @@ var label = (name) => ({
|
|
|
19093
19097
|
},
|
|
19094
19098
|
/** Logs values with [label] [error] prefix. Output: `[label] [error] "value"` */
|
|
19095
19099
|
error: (...values) => {
|
|
19096
|
-
|
|
19100
|
+
const stringified = values.map(stringify);
|
|
19101
|
+
console.log(`[${name}]`, "[error]", ...stringified);
|
|
19102
|
+
if (isBrowser) console.error(`[${name}]`, "[error]", ...stringified);
|
|
19097
19103
|
},
|
|
19098
19104
|
/** Logs a header message with [label] prefix. Output: `[label] ========== MESSAGE ==========` */
|
|
19099
19105
|
header: (message) => {
|
package/dist/shared/dict.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Base constraint for dict operations.
|
|
3
|
+
* Uses `object` instead of `Record<string, unknown>` to support
|
|
4
|
+
* TypeScript interfaces (which lack index signatures).
|
|
4
5
|
*/
|
|
5
|
-
type t =
|
|
6
|
+
type t = object;
|
|
6
7
|
/**
|
|
7
8
|
* Calculate the byte size of an object
|
|
8
9
|
* @param o
|
|
9
10
|
* @returns
|
|
10
11
|
*/
|
|
11
|
-
export declare function byteSizeOfObj(o:
|
|
12
|
+
export declare function byteSizeOfObj(o: unknown): number;
|
|
12
13
|
/**
|
|
13
14
|
* Return an object filter with a subset of properties.
|
|
14
15
|
* @param r
|
|
@@ -20,7 +21,7 @@ export declare const filter: <R extends t>(r: R, predicate: (value: R[keyof R])
|
|
|
20
21
|
* @param r
|
|
21
22
|
* @param transformFn
|
|
22
23
|
*/
|
|
23
|
-
export declare const transform: <R extends t>(r: R, transformFn: (key: keyof R, value: R[keyof R]) => Record<string,
|
|
24
|
+
export declare const transform: <R extends t, Out extends t = R>(r: R, transformFn: (key: keyof R, value: R[keyof R]) => Record<string, unknown>) => Out;
|
|
24
25
|
/**
|
|
25
26
|
* First object contains key/value pairs that pass the predicate.
|
|
26
27
|
* Second object contains key/value pairs that failed.
|
|
@@ -52,6 +53,6 @@ export declare const pick: <R extends t, U extends keyof R>(r: R, paths: Array<U
|
|
|
52
53
|
* @param r
|
|
53
54
|
* @param paths
|
|
54
55
|
*/
|
|
55
|
-
export declare const omit: <R extends
|
|
56
|
+
export declare const omit: <R extends object, U extends keyof R>(r: R, paths: Array<U>) => Omit<R, U>;
|
|
56
57
|
export {};
|
|
57
58
|
//# sourceMappingURL=dict.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dict.d.ts","sourceRoot":"","sources":["../../src/shared/dict.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dict.d.ts","sourceRoot":"","sources":["../../src/shared/dict.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,KAAK,CAAC,GAAG,MAAM,CAAC;AAEhB;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,UAyBvC;AAED;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,CAAC,EAChC,GAAG,CAAC,EACJ,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,OAAO,MAMxC,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,CAAC,EAAE,GAAG,SAAS,CAAC,GAAG,CAAC,EACtD,GAAG,CAAC,EACJ,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAQxE,CAAC;AAEJ;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,CAAC,EACnC,GAAG,CAAC,EACJ,WAAW,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,OAAO,oBASrC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,EAAE,KAAK,CAAC,YAE/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,YAM1C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,EACjD,GAAG,CAAC,EACJ,OAAO,KAAK,CAAC,CAAC,CAAC,KACd,IAAI,CAAC,CAAC,EAAE,CAAC,CAKT,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EACtD,GAAG,CAAC,EACJ,OAAO,KAAK,CAAC,CAAC,CAAC,KACd,IAAI,CAAC,CAAC,EAAE,CAAC,CAYX,CAAC"}
|
package/dist/shared/log.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/shared/log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/shared/log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAMH;;;;;;;GAOG;AACH,eAAO,MAAM,GAAG,GAAI,GAAG,QAAQ,OAAO,EAAE,SAEvC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,IAAI,GAAI,GAAG,QAAQ,OAAO,EAAE,SAExC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,IAAI,GAAI,GAAG,QAAQ,OAAO,EAAE,SAExC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,GAAI,GAAG,QAAQ,OAAO,EAAE,SAIzC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,GAAI,SAAS,MAAM,SAErC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,KAAK,GAAI,MAAM,MAAM;IAChC,iEAAiE;sBAC/C,OAAO,EAAE;IAG3B,+EAA+E;sBAC7D,OAAO,EAAE;IAG3B,iFAAiF;uBAC9D,OAAO,EAAE;IAK5B,iGAAiG;sBAC/E,MAAM;CAGxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qstd",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.15",
|
|
4
4
|
"description": "Standard Block component and utilities library with Panda CSS",
|
|
5
5
|
"author": "malin1",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,24 +42,6 @@
|
|
|
42
42
|
"sideEffects": [
|
|
43
43
|
"dist/react/index.css"
|
|
44
44
|
],
|
|
45
|
-
"scripts": {
|
|
46
|
-
"build": "panda codegen && panda cssgen && tsup && tsc -p tsconfig.build.json && node scripts/inject-css-import.js",
|
|
47
|
-
"build:js": "tsup",
|
|
48
|
-
"build:types": "tsc -p tsconfig.build.json",
|
|
49
|
-
"dev": "tsup --watch",
|
|
50
|
-
"prepublishOnly": "pnpm build",
|
|
51
|
-
"prepare:local": "pnpm build && cd playground && pnpm prepare",
|
|
52
|
-
"test": "vitest run",
|
|
53
|
-
"test:watch": "vitest",
|
|
54
|
-
"test:all": "pnpx tsx tests/test-all.ts",
|
|
55
|
-
"test:block": "node tests/test-block.tsx",
|
|
56
|
-
"test:playground": "node tests/playground-e2e.mjs",
|
|
57
|
-
"typecheck": "tsc --noEmit",
|
|
58
|
-
"typecheck:perf": "tsc --noEmit --extendedDiagnostics",
|
|
59
|
-
"typecheck:trace": "tsc --noEmit --generateTrace ./performance/ts-trace",
|
|
60
|
-
"analyze:tsserver": "bash performance/analyze-tsserver.sh",
|
|
61
|
-
"lint": "eslint ."
|
|
62
|
-
},
|
|
63
45
|
"peerDependencies": {
|
|
64
46
|
"react": "^18.0.0 || ^19.0.0",
|
|
65
47
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
@@ -115,5 +97,22 @@
|
|
|
115
97
|
"bugs": {
|
|
116
98
|
"url": "https://github.com/55cancri/qstd/issues"
|
|
117
99
|
},
|
|
118
|
-
"homepage": "https://github.com/55cancri/qstd#readme"
|
|
119
|
-
|
|
100
|
+
"homepage": "https://github.com/55cancri/qstd#readme",
|
|
101
|
+
"scripts": {
|
|
102
|
+
"build": "panda codegen && panda cssgen && tsup && tsc -p tsconfig.build.json && node scripts/inject-css-import.js",
|
|
103
|
+
"build:js": "tsup",
|
|
104
|
+
"build:types": "tsc -p tsconfig.build.json",
|
|
105
|
+
"dev": "tsup --watch",
|
|
106
|
+
"prepare:local": "pnpm build && cd playground && pnpm prepare",
|
|
107
|
+
"test": "vitest run",
|
|
108
|
+
"test:watch": "vitest",
|
|
109
|
+
"test:all": "pnpx tsx tests/test-all.ts",
|
|
110
|
+
"test:block": "node tests/test-block.tsx",
|
|
111
|
+
"test:playground": "node tests/playground-e2e.mjs",
|
|
112
|
+
"typecheck": "tsc --noEmit",
|
|
113
|
+
"typecheck:perf": "tsc --noEmit --extendedDiagnostics",
|
|
114
|
+
"typecheck:trace": "tsc --noEmit --generateTrace ./performance/ts-trace",
|
|
115
|
+
"analyze:tsserver": "bash performance/analyze-tsserver.sh",
|
|
116
|
+
"lint": "eslint ."
|
|
117
|
+
}
|
|
118
|
+
}
|