@jsenv/navi 0.3.1 → 0.3.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/dist/jsenv_navi.js
CHANGED
|
@@ -13320,11 +13320,12 @@ const installCustomConstraintValidation = (
|
|
|
13320
13320
|
closeElementValidationMessage("cleanup");
|
|
13321
13321
|
};
|
|
13322
13322
|
|
|
13323
|
-
|
|
13324
|
-
|
|
13323
|
+
const anchorElement =
|
|
13324
|
+
failedConstraintInfo.target || elementReceivingValidationMessage;
|
|
13325
13325
|
validationInterface.validationMessage = openCallout(
|
|
13326
13326
|
failedConstraintInfo.message,
|
|
13327
13327
|
{
|
|
13328
|
+
anchorElement,
|
|
13328
13329
|
level: failedConstraintInfo.level,
|
|
13329
13330
|
closeOnClickOutside: failedConstraintInfo.closeOnClickOutside,
|
|
13330
13331
|
onClose: () => {
|
|
@@ -20572,6 +20573,7 @@ const InputTextualBasic = forwardRef((props, ref) => {
|
|
|
20572
20573
|
autoSelect,
|
|
20573
20574
|
appearance = "navi",
|
|
20574
20575
|
accentColor,
|
|
20576
|
+
style,
|
|
20575
20577
|
width,
|
|
20576
20578
|
height,
|
|
20577
20579
|
...rest
|
|
@@ -20589,12 +20591,20 @@ const InputTextualBasic = forwardRef((props, ref) => {
|
|
|
20589
20591
|
autoSelect
|
|
20590
20592
|
});
|
|
20591
20593
|
useConstraints(innerRef, constraints);
|
|
20594
|
+
const innerStyle = {
|
|
20595
|
+
...style
|
|
20596
|
+
};
|
|
20597
|
+
if (width !== undefined) {
|
|
20598
|
+
innerStyle.width = width;
|
|
20599
|
+
}
|
|
20600
|
+
if (height !== undefined) {
|
|
20601
|
+
innerStyle.height = height;
|
|
20602
|
+
}
|
|
20592
20603
|
const inputTextual = jsx("input", {
|
|
20593
20604
|
...rest,
|
|
20594
20605
|
ref: innerRef,
|
|
20595
20606
|
className: appearance === "navi" ? "navi_input" : undefined,
|
|
20596
|
-
|
|
20597
|
-
height: height,
|
|
20607
|
+
style: innerStyle,
|
|
20598
20608
|
type: type,
|
|
20599
20609
|
"data-value": uiState,
|
|
20600
20610
|
value: innerValue,
|
package/package.json
CHANGED
|
@@ -165,6 +165,7 @@ const InputTextualBasic = forwardRef((props, ref) => {
|
|
|
165
165
|
autoSelect,
|
|
166
166
|
appearance = "navi",
|
|
167
167
|
accentColor,
|
|
168
|
+
style,
|
|
168
169
|
width,
|
|
169
170
|
height,
|
|
170
171
|
...rest
|
|
@@ -187,13 +188,19 @@ const InputTextualBasic = forwardRef((props, ref) => {
|
|
|
187
188
|
});
|
|
188
189
|
useConstraints(innerRef, constraints);
|
|
189
190
|
|
|
191
|
+
const innerStyle = { ...style };
|
|
192
|
+
if (width !== undefined) {
|
|
193
|
+
innerStyle.width = width;
|
|
194
|
+
}
|
|
195
|
+
if (height !== undefined) {
|
|
196
|
+
innerStyle.height = height;
|
|
197
|
+
}
|
|
190
198
|
const inputTextual = (
|
|
191
199
|
<input
|
|
192
200
|
{...rest}
|
|
193
201
|
ref={innerRef}
|
|
194
202
|
className={appearance === "navi" ? "navi_input" : undefined}
|
|
195
|
-
|
|
196
|
-
height={height}
|
|
203
|
+
style={innerStyle}
|
|
197
204
|
type={type}
|
|
198
205
|
data-value={uiState}
|
|
199
206
|
value={innerValue}
|
|
@@ -370,13 +370,12 @@ export const installCustomConstraintValidation = (
|
|
|
370
370
|
closeElementValidationMessage("cleanup");
|
|
371
371
|
};
|
|
372
372
|
|
|
373
|
-
const
|
|
373
|
+
const anchorElement =
|
|
374
374
|
failedConstraintInfo.target || elementReceivingValidationMessage;
|
|
375
|
-
|
|
376
375
|
validationInterface.validationMessage = openCallout(
|
|
377
376
|
failedConstraintInfo.message,
|
|
378
377
|
{
|
|
379
|
-
|
|
378
|
+
anchorElement,
|
|
380
379
|
level: failedConstraintInfo.level,
|
|
381
380
|
closeOnClickOutside: failedConstraintInfo.closeOnClickOutside,
|
|
382
381
|
onClose: () => {
|