qstd 0.3.47 → 0.3.48

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.
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/block/textarea.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAG9B;;;;;;;;;;;;;;GAcG;AAEH,KAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAoPF;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,kBAAkB,2CAiL5D;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,GAAG,UAAU,2CA6C1D;yBA7Ce,KAAK"}
1
+ {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/block/textarea.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAG9B;;;;;;;;;;;;;;GAcG;AAEH,KAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAoPF;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,kBAAkB,2CAqL5D;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,GAAG,UAAU,2CA6C1D;yBA7Ce,KAAK"}
@@ -2059,6 +2059,10 @@ function Textarea(props) {
2059
2059
  _focusWithin: { _placeholder: { opacity: 1 } },
2060
2060
  css: {
2061
2061
  boxSizing: "border-box",
2062
+ // Native CSS auto-sizing - prevents SSR flash by sizing identically
2063
+ // on server and client. JS fallback still runs for older browsers.
2064
+ // Support: Chrome 123+, Edge 123+ (March 2024)
2065
+ fieldSizing: "content",
2062
2066
  /* Works on Firefox */
2063
2067
  scrollbarWidth: "thin",
2064
2068
  scrollbarColor: "neutral.300 neutral.300",
@@ -1200,6 +1200,9 @@
1200
1200
  .resize_none {
1201
1201
  resize: none;
1202
1202
  }
1203
+ .field-sizing_content {
1204
+ field-sizing: content;
1205
+ }
1203
1206
  .scr-bar-w_thin {
1204
1207
  scrollbar-width: thin;
1205
1208
  }
@@ -2036,6 +2036,10 @@ function Textarea(props) {
2036
2036
  _focusWithin: { _placeholder: { opacity: 1 } },
2037
2037
  css: {
2038
2038
  boxSizing: "border-box",
2039
+ // Native CSS auto-sizing - prevents SSR flash by sizing identically
2040
+ // on server and client. JS fallback still runs for older browsers.
2041
+ // Support: Chrome 123+, Edge 123+ (March 2024)
2042
+ fieldSizing: "content",
2039
2043
  /* Works on Firefox */
2040
2044
  scrollbarWidth: "thin",
2041
2045
  scrollbarColor: "neutral.300 neutral.300",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qstd",
3
- "version": "0.3.47",
3
+ "version": "0.3.48",
4
4
  "description": "Standard Block component and utilities library with Panda CSS",
5
5
  "author": "malin1",
6
6
  "license": "MIT",
@@ -1279,6 +1279,10 @@
1279
1279
  resize: none;
1280
1280
  }
1281
1281
 
1282
+ .field-sizing_content {
1283
+ field-sizing: content;
1284
+ }
1285
+
1282
1286
  .scr-bar-w_thin {
1283
1287
  scrollbar-width: thin;
1284
1288
  }