qstd 0.3.34 → 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.
|
@@ -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/preset/index.cjs
CHANGED
|
@@ -222,7 +222,7 @@ var preset = {
|
|
|
222
222
|
debug: {
|
|
223
223
|
values: { type: "boolean" },
|
|
224
224
|
transform(value) {
|
|
225
|
-
if (value === true) return { border: "1px solid red" };
|
|
225
|
+
if (value === true) return { border: "1px solid red", outline: "none" };
|
|
226
226
|
if (typeof value === "string") {
|
|
227
227
|
const parts = value.trim().split(/\s+/);
|
|
228
228
|
let borderWidth = "1px", borderStyle = "solid", borderColor = "red";
|
|
@@ -256,10 +256,11 @@ var preset = {
|
|
|
256
256
|
return {
|
|
257
257
|
borderWidth,
|
|
258
258
|
borderStyle,
|
|
259
|
-
borderColor: normalizedBorderColor
|
|
259
|
+
borderColor: normalizedBorderColor,
|
|
260
|
+
outline: "none"
|
|
260
261
|
};
|
|
261
262
|
}
|
|
262
|
-
return { border: "1px solid red" };
|
|
263
|
+
return { border: "1px solid red", outline: "none" };
|
|
263
264
|
}
|
|
264
265
|
},
|
|
265
266
|
cols: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/preset/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,QAAA,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/preset/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,QAAA,MAAM,MAAM,EAAE,MA2hBb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/preset/index.js
CHANGED
|
@@ -220,7 +220,7 @@ var preset = {
|
|
|
220
220
|
debug: {
|
|
221
221
|
values: { type: "boolean" },
|
|
222
222
|
transform(value) {
|
|
223
|
-
if (value === true) return { border: "1px solid red" };
|
|
223
|
+
if (value === true) return { border: "1px solid red", outline: "none" };
|
|
224
224
|
if (typeof value === "string") {
|
|
225
225
|
const parts = value.trim().split(/\s+/);
|
|
226
226
|
let borderWidth = "1px", borderStyle = "solid", borderColor = "red";
|
|
@@ -254,10 +254,11 @@ var preset = {
|
|
|
254
254
|
return {
|
|
255
255
|
borderWidth,
|
|
256
256
|
borderStyle,
|
|
257
|
-
borderColor: normalizedBorderColor
|
|
257
|
+
borderColor: normalizedBorderColor,
|
|
258
|
+
outline: "none"
|
|
258
259
|
};
|
|
259
260
|
}
|
|
260
|
-
return { border: "1px solid red" };
|
|
261
|
+
return { border: "1px solid red", outline: "none" };
|
|
261
262
|
}
|
|
262
263
|
},
|
|
263
264
|
cols: {
|
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 ?? " ",
|