@shop-prompter/react 1.2.2 → 1.2.3
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/CHANGELOG.md +6 -0
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
- package/src/shop-prompter.component.jsx +5 -2
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -2299,7 +2299,10 @@ function ShopPrompter(props) {
|
|
|
2299
2299
|
...error ? {
|
|
2300
2300
|
opacity: "0.5",
|
|
2301
2301
|
pointerEvents: "none"
|
|
2302
|
-
} : {
|
|
2302
|
+
} : {
|
|
2303
|
+
opacity: "1",
|
|
2304
|
+
pointerEvents: "auto"
|
|
2305
|
+
}
|
|
2303
2306
|
},
|
|
2304
2307
|
children: [
|
|
2305
2308
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: styles2.inputWrapper, children: [
|
|
@@ -2313,7 +2316,7 @@ function ShopPrompter(props) {
|
|
|
2313
2316
|
value: input,
|
|
2314
2317
|
onInput: (e) => onInputChange(e),
|
|
2315
2318
|
onKeyDown: (e) => onInputKeyDown(e),
|
|
2316
|
-
|
|
2319
|
+
tabIndex: error ? -1 : 0
|
|
2317
2320
|
}
|
|
2318
2321
|
),
|
|
2319
2322
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
package/dist/index.mjs
CHANGED
|
@@ -2263,7 +2263,10 @@ function ShopPrompter(props) {
|
|
|
2263
2263
|
...error ? {
|
|
2264
2264
|
opacity: "0.5",
|
|
2265
2265
|
pointerEvents: "none"
|
|
2266
|
-
} : {
|
|
2266
|
+
} : {
|
|
2267
|
+
opacity: "1",
|
|
2268
|
+
pointerEvents: "auto"
|
|
2269
|
+
}
|
|
2267
2270
|
},
|
|
2268
2271
|
children: [
|
|
2269
2272
|
/* @__PURE__ */ jsxs4("div", { style: styles2.inputWrapper, children: [
|
|
@@ -2277,7 +2280,7 @@ function ShopPrompter(props) {
|
|
|
2277
2280
|
value: input,
|
|
2278
2281
|
onInput: (e) => onInputChange(e),
|
|
2279
2282
|
onKeyDown: (e) => onInputKeyDown(e),
|
|
2280
|
-
|
|
2283
|
+
tabIndex: error ? -1 : 0
|
|
2281
2284
|
}
|
|
2282
2285
|
),
|
|
2283
2286
|
/* @__PURE__ */ jsx4(
|
package/package.json
CHANGED
|
@@ -1392,7 +1392,10 @@ function ShopPrompter(props) {
|
|
|
1392
1392
|
opacity: "0.5",
|
|
1393
1393
|
pointerEvents: "none",
|
|
1394
1394
|
}
|
|
1395
|
-
: {
|
|
1395
|
+
: {
|
|
1396
|
+
opacity: "1",
|
|
1397
|
+
pointerEvents: "auto",
|
|
1398
|
+
}),
|
|
1396
1399
|
}}
|
|
1397
1400
|
>
|
|
1398
1401
|
<div style={styles.inputWrapper}>
|
|
@@ -1406,7 +1409,7 @@ function ShopPrompter(props) {
|
|
|
1406
1409
|
value={input}
|
|
1407
1410
|
onInput={(e) => onInputChange(e)}
|
|
1408
1411
|
onKeyDown={(e) => onInputKeyDown(e)}
|
|
1409
|
-
|
|
1412
|
+
tabIndex={error ? -1 : 0}
|
|
1410
1413
|
/>
|
|
1411
1414
|
<button
|
|
1412
1415
|
onClick={(e) => handleSend()}
|