qstd 0.3.35 → 0.3.36
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/input.d.ts.map +1 -1
- package/dist/block/textarea.d.ts.map +1 -1
- package/dist/react/index.cjs +10 -4
- package/dist/react/index.js +10 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/block/input.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAU9B,KAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/block/input.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAU9B,KAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,eAAe,2CAmFtD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,2CAyBhD;yBAzBe,QAAQ;;;AA4BxB,wBAAgB,SAAS,CACvB,KAAK,EAAE,EAAE,CAAC,cAAc,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,kDA4BnE;yBA7Be,SAAS;;;AAgCzB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,eAAe,EAAE,IAAI,CAAC,GAAG,UAAU,2CA0DvE;yBA1De,KAAK"}
|
|
@@ -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;AAqPF;;;;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;;;;;;;;;;;;;;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;AAqPF;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,kBAAkB,2CA+K5D;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,GAAG,UAAU,2CA6C1D;yBA7Ce,KAAK"}
|
package/dist/react/index.cjs
CHANGED
|
@@ -2025,6 +2025,7 @@ function Textarea(props) {
|
|
|
2025
2025
|
return () => form.removeEventListener("reset", onReset);
|
|
2026
2026
|
}, [isControlled]);
|
|
2027
2027
|
const resize = props.resize ?? "none";
|
|
2028
|
+
const hasDebug = rest.debug !== void 0;
|
|
2028
2029
|
return /* @__PURE__ */ jsxRuntime.jsxs(Base3, { grid: true, rows: "/ 4", children: [
|
|
2029
2030
|
/* @__PURE__ */ jsxRuntime.jsxs(Base3, { grid: true, relative: true, children: [
|
|
2030
2031
|
labelWithProps,
|
|
@@ -2039,8 +2040,10 @@ function Textarea(props) {
|
|
|
2039
2040
|
pb: 0.5,
|
|
2040
2041
|
px: 2,
|
|
2041
2042
|
color: "text-primary",
|
|
2042
|
-
|
|
2043
|
-
|
|
2043
|
+
...!hasDebug && {
|
|
2044
|
+
border: "1.5px solid",
|
|
2045
|
+
borderColor: error ? "input-border-color-error" : "input-border-color"
|
|
2046
|
+
},
|
|
2044
2047
|
...error && { outlineColor: "input-outline-color-error" },
|
|
2045
2048
|
borderRadius: 8,
|
|
2046
2049
|
placeholder: props.placeholder ?? " ",
|
|
@@ -2170,6 +2173,7 @@ function Input(props) {
|
|
|
2170
2173
|
onAnimationComplete: _onAnimationComplete,
|
|
2171
2174
|
...rest
|
|
2172
2175
|
} = props;
|
|
2176
|
+
const hasDebug = rest.debug !== void 0;
|
|
2173
2177
|
const label = findChildrenByDisplayName(
|
|
2174
2178
|
children,
|
|
2175
2179
|
LabelNameKey2
|
|
@@ -2200,8 +2204,10 @@ function Input(props) {
|
|
|
2200
2204
|
pl: leftIcon ? 7 : 2,
|
|
2201
2205
|
pr: rightSide ? 6 : 2,
|
|
2202
2206
|
color: "text-primary",
|
|
2203
|
-
|
|
2204
|
-
|
|
2207
|
+
...!hasDebug && {
|
|
2208
|
+
border: "1.5px solid",
|
|
2209
|
+
borderColor: error ? "input-border-color-error" : "input-border-color"
|
|
2210
|
+
},
|
|
2205
2211
|
...error && { outlineColor: "input-outline-color-error" },
|
|
2206
2212
|
borderRadius: 8,
|
|
2207
2213
|
placeholder: props.placeholder ?? " ",
|
package/dist/react/index.js
CHANGED
|
@@ -2002,6 +2002,7 @@ function Textarea(props) {
|
|
|
2002
2002
|
return () => form.removeEventListener("reset", onReset);
|
|
2003
2003
|
}, [isControlled]);
|
|
2004
2004
|
const resize = props.resize ?? "none";
|
|
2005
|
+
const hasDebug = rest.debug !== void 0;
|
|
2005
2006
|
return /* @__PURE__ */ jsxs(Base3, { grid: true, rows: "/ 4", children: [
|
|
2006
2007
|
/* @__PURE__ */ jsxs(Base3, { grid: true, relative: true, children: [
|
|
2007
2008
|
labelWithProps,
|
|
@@ -2016,8 +2017,10 @@ function Textarea(props) {
|
|
|
2016
2017
|
pb: 0.5,
|
|
2017
2018
|
px: 2,
|
|
2018
2019
|
color: "text-primary",
|
|
2019
|
-
|
|
2020
|
-
|
|
2020
|
+
...!hasDebug && {
|
|
2021
|
+
border: "1.5px solid",
|
|
2022
|
+
borderColor: error ? "input-border-color-error" : "input-border-color"
|
|
2023
|
+
},
|
|
2021
2024
|
...error && { outlineColor: "input-outline-color-error" },
|
|
2022
2025
|
borderRadius: 8,
|
|
2023
2026
|
placeholder: props.placeholder ?? " ",
|
|
@@ -2147,6 +2150,7 @@ function Input(props) {
|
|
|
2147
2150
|
onAnimationComplete: _onAnimationComplete,
|
|
2148
2151
|
...rest
|
|
2149
2152
|
} = props;
|
|
2153
|
+
const hasDebug = rest.debug !== void 0;
|
|
2150
2154
|
const label = findChildrenByDisplayName(
|
|
2151
2155
|
children,
|
|
2152
2156
|
LabelNameKey2
|
|
@@ -2177,8 +2181,10 @@ function Input(props) {
|
|
|
2177
2181
|
pl: leftIcon ? 7 : 2,
|
|
2178
2182
|
pr: rightSide ? 6 : 2,
|
|
2179
2183
|
color: "text-primary",
|
|
2180
|
-
|
|
2181
|
-
|
|
2184
|
+
...!hasDebug && {
|
|
2185
|
+
border: "1.5px solid",
|
|
2186
|
+
borderColor: error ? "input-border-color-error" : "input-border-color"
|
|
2187
|
+
},
|
|
2182
2188
|
...error && { outlineColor: "input-outline-color-error" },
|
|
2183
2189
|
borderRadius: 8,
|
|
2184
2190
|
placeholder: props.placeholder ?? " ",
|