qstd 0.3.51 → 0.3.52
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/dist/block/textarea.d.ts.map +1 -1
- package/dist/react/index.cjs +14 -3
- package/dist/react/index.js +14 -3
- package/package.json +1 -1
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;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,
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/block/textarea.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAG9B;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;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,2CAyM5D;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,GAAG,UAAU,2CA6C1D;yBA7Ce,KAAK"}
|
package/dist/react/index.cjs
CHANGED
|
@@ -2031,6 +2031,19 @@ function Textarea(props) {
|
|
|
2031
2031
|
}, [isControlled, resizeTextarea]);
|
|
2032
2032
|
const resize = props.resize ?? "none";
|
|
2033
2033
|
const hasDebug = hasAnyProp(rest, ["debug"]);
|
|
2034
|
+
const hasP = hasAnyProp(rest, ["p"]);
|
|
2035
|
+
const hasPx = hasAnyProp(rest, ["px"]);
|
|
2036
|
+
const hasPy = hasAnyProp(rest, ["py"]);
|
|
2037
|
+
const hasPt = hasAnyProp(rest, ["pt"]);
|
|
2038
|
+
const hasPb = hasAnyProp(rest, ["pb"]);
|
|
2039
|
+
const hasPl = hasAnyProp(rest, ["pl"]);
|
|
2040
|
+
const hasPr = hasAnyProp(rest, ["pr"]);
|
|
2041
|
+
const paddingDefaults = {
|
|
2042
|
+
...!hasP && !hasPy && !hasPt && { pt: 0.5 },
|
|
2043
|
+
...!hasP && !hasPy && !hasPb && { pb: 0.5 },
|
|
2044
|
+
...!hasP && !hasPx && !hasPl && { pl: 2 },
|
|
2045
|
+
...!hasP && !hasPx && !hasPr && { pr: 2 }
|
|
2046
|
+
};
|
|
2034
2047
|
return /* @__PURE__ */ jsxRuntime.jsxs(Base3, { grid: true, rows: "/ 4", children: [
|
|
2035
2048
|
/* @__PURE__ */ jsxRuntime.jsxs(Base3, { grid: true, relative: true, children: [
|
|
2036
2049
|
labelWithProps,
|
|
@@ -2041,9 +2054,7 @@ function Textarea(props) {
|
|
|
2041
2054
|
value,
|
|
2042
2055
|
onContextMenu: (e) => e.preventDefault(),
|
|
2043
2056
|
resize,
|
|
2044
|
-
|
|
2045
|
-
pb: 0.5,
|
|
2046
|
-
px: 2,
|
|
2057
|
+
...paddingDefaults,
|
|
2047
2058
|
color: "text-primary",
|
|
2048
2059
|
...!hasDebug && {
|
|
2049
2060
|
border: "1.5px solid",
|
package/dist/react/index.js
CHANGED
|
@@ -2008,6 +2008,19 @@ function Textarea(props) {
|
|
|
2008
2008
|
}, [isControlled, resizeTextarea]);
|
|
2009
2009
|
const resize = props.resize ?? "none";
|
|
2010
2010
|
const hasDebug = hasAnyProp(rest, ["debug"]);
|
|
2011
|
+
const hasP = hasAnyProp(rest, ["p"]);
|
|
2012
|
+
const hasPx = hasAnyProp(rest, ["px"]);
|
|
2013
|
+
const hasPy = hasAnyProp(rest, ["py"]);
|
|
2014
|
+
const hasPt = hasAnyProp(rest, ["pt"]);
|
|
2015
|
+
const hasPb = hasAnyProp(rest, ["pb"]);
|
|
2016
|
+
const hasPl = hasAnyProp(rest, ["pl"]);
|
|
2017
|
+
const hasPr = hasAnyProp(rest, ["pr"]);
|
|
2018
|
+
const paddingDefaults = {
|
|
2019
|
+
...!hasP && !hasPy && !hasPt && { pt: 0.5 },
|
|
2020
|
+
...!hasP && !hasPy && !hasPb && { pb: 0.5 },
|
|
2021
|
+
...!hasP && !hasPx && !hasPl && { pl: 2 },
|
|
2022
|
+
...!hasP && !hasPx && !hasPr && { pr: 2 }
|
|
2023
|
+
};
|
|
2011
2024
|
return /* @__PURE__ */ jsxs(Base3, { grid: true, rows: "/ 4", children: [
|
|
2012
2025
|
/* @__PURE__ */ jsxs(Base3, { grid: true, relative: true, children: [
|
|
2013
2026
|
labelWithProps,
|
|
@@ -2018,9 +2031,7 @@ function Textarea(props) {
|
|
|
2018
2031
|
value,
|
|
2019
2032
|
onContextMenu: (e) => e.preventDefault(),
|
|
2020
2033
|
resize,
|
|
2021
|
-
|
|
2022
|
-
pb: 0.5,
|
|
2023
|
-
px: 2,
|
|
2034
|
+
...paddingDefaults,
|
|
2024
2035
|
color: "text-primary",
|
|
2025
2036
|
...!hasDebug && {
|
|
2026
2037
|
border: "1.5px solid",
|