qstd 0.3.13 → 0.3.14

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
@@ -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 | Supports `exports` | Use Case |
93
- |-----------------|-------------------|----------|
94
- | `"node"` / `"node10"` | ❌ No | Legacy projects |
95
- | `"node16"` | ✅ Yes | Node.js 16+ with ESM |
96
- | `"nodenext"` | ✅ Yes | Latest Node.js features |
97
- | `"bundler"` | ✅ Yes | **Recommended** for bundled apps |
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
@@ -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") bytes += value.byteLength;
73
- else if (value[Symbol.iterator]) {
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.constructor === Object;
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
- console.log("[error]", ...values.map(stringify));
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
- console.log(`[${name}]`, "[error]", ...values.map(stringify));
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) => {
@@ -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") bytes += value.byteLength;
71
- else if (value[Symbol.iterator]) {
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.constructor === Object;
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
- console.log("[error]", ...values.map(stringify));
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
- console.log(`[${name}]`, "[error]", ...values.map(stringify));
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) => {
@@ -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") bytes += value.byteLength;
18565
- else if (value[Symbol.iterator]) {
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.constructor === Object;
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
- console.log("[error]", ...values.map(stringify));
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
- console.log(`[${name}]`, "[error]", ...values.map(stringify));
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) => {
@@ -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") bytes += value.byteLength;
18558
- else if (value[Symbol.iterator]) {
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.constructor === Object;
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
- console.log("[error]", ...values.map(stringify));
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
- console.log(`[${name}]`, "[error]", ...values.map(stringify));
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) => {
@@ -2,13 +2,13 @@
2
2
  * dicts are homogeneous- their values must be of the same type
3
3
  * records can hold values of different types
4
4
  */
5
- type t = Record<string, unknown> | object;
5
+ type t = Record<string, unknown>;
6
6
  /**
7
7
  * Calculate the byte size of an object
8
8
  * @param o
9
9
  * @returns
10
10
  */
11
- export declare function byteSizeOfObj(o: any): number;
11
+ export declare function byteSizeOfObj(o: unknown): number;
12
12
  /**
13
13
  * Return an object filter with a subset of properties.
14
14
  * @param r
@@ -20,7 +20,7 @@ export declare const filter: <R extends t>(r: R, predicate: (value: R[keyof R])
20
20
  * @param r
21
21
  * @param transformFn
22
22
  */
23
- export declare const transform: <R extends t>(r: R, transformFn: (key: keyof R, value: R[keyof R]) => Record<string, any>) => R;
23
+ 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
24
  /**
25
25
  * First object contains key/value pairs that pass the predicate.
26
26
  * Second object contains key/value pairs that failed.
@@ -52,6 +52,6 @@ export declare const pick: <R extends t, U extends keyof R>(r: R, paths: Array<U
52
52
  * @param r
53
53
  * @param paths
54
54
  */
55
- export declare const omit: <R extends Record<string, any>, U extends keyof R>(r: R, paths: Array<U>) => Omit<R, U>;
55
+ export declare const omit: <R extends Record<string, unknown>, U extends keyof R>(r: R, paths: Array<U>) => Omit<R, U>;
56
56
  export {};
57
57
  //# sourceMappingURL=dict.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dict.d.ts","sourceRoot":"","sources":["../../src/shared/dict.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC;AAE1C;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,GAAG,UAwBnC;AAED;;;;GAIG;AACH,eAAO,MAA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IAAI,CAAC,CAAC,EAAE,CAAC,CAYX,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/shared/log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH;;;;;;;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,SAEzC,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;IAG5B,iGAAiG;sBAC/E,MAAM;CAGxB,CAAC"}
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.13",
3
+ "version": "0.3.14",
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
+ }