capibara 1.3.65 → 1.3.66

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/index.js CHANGED
@@ -23242,6 +23242,9 @@ __webpack_require__.r(__webpack_exports__);
23242
23242
  }
23243
23243
  }
23244
23244
 
23245
+ let hintLines = props.textHintMinLines || 0;
23246
+ let hintStyle = hintLines ? ` style="min-height:${(hintLines * 1.3).toFixed(2)}em;line-height:1.3;"` : "";
23247
+
23245
23248
  let $elem = _util_domUtils__WEBPACK_IMPORTED_MODULE_0__["default"].createElementFromHTML(`
23246
23249
  <div class="input-section ${props.isHidden ? "hide" : ""} ${props.type === 'time-sm' ? 'time-sm' : ''}" input-key="${props.key || ""}">
23247
23250
  <span class="text-subtitle d-block">
@@ -23264,7 +23267,7 @@ __webpack_require__.r(__webpack_exports__);
23264
23267
  max="59"
23265
23268
  value="${mmValue}">
23266
23269
  </div>
23267
- <span class="text-hint">
23270
+ <span class="text-hint"${hintStyle}>
23268
23271
  ${props.textHint || ""}
23269
23272
  </span>
23270
23273
  </div>
@@ -23358,6 +23361,8 @@ __webpack_require__.r(__webpack_exports__);
23358
23361
  }
23359
23362
 
23360
23363
  value = value || "";
23364
+ let hintLines = props.textHintMinLines || 0;
23365
+ let hintStyle = hintLines ? ` style="min-height:${(hintLines * 1.3).toFixed(2)}em;line-height:1.3;"` : "";
23361
23366
  let elem = _util_domUtils__WEBPACK_IMPORTED_MODULE_0__["default"].createElementFromHTML(`
23362
23367
  <div class="input-section ${props.classNames || ""} ${props.isHidden ? "hide" : ""} " input-key="${props.key || ""}">
23363
23368
  <div class="input-section-title">
@@ -23373,7 +23378,7 @@ __webpack_require__.r(__webpack_exports__);
23373
23378
  class="nav-input"
23374
23379
  value="${value}">
23375
23380
 
23376
- <span class="text-hint">
23381
+ <span class="text-hint"${hintStyle}>
23377
23382
  ${props.textHint || ""}
23378
23383
  </span>
23379
23384
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capibara",
3
- "version": "1.3.65",
3
+ "version": "1.3.66",
4
4
  "main": "dist/index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -3307,6 +3307,11 @@ export default {
3307
3307
  }
3308
3308
  }
3309
3309
 
3310
+ let hintLines = props.textHintMinLines || 0;
3311
+ let hintStyle = hintLines
3312
+ ? ` style="min-height:${(hintLines * 1.3).toFixed(2)}em;line-height:1.3;"`
3313
+ : "";
3314
+
3310
3315
  let $elem = dom.createElementFromHTML(`
3311
3316
  <div class="input-section ${
3312
3317
  props.isHidden ? "hide" : ""
@@ -3331,7 +3336,7 @@ export default {
3331
3336
  max="59"
3332
3337
  value="${mmValue}">
3333
3338
  </div>
3334
- <span class="text-hint">
3339
+ <span class="text-hint"${hintStyle}>
3335
3340
  ${props.textHint || ""}
3336
3341
  </span>
3337
3342
  </div>
@@ -3431,6 +3436,11 @@ export default {
3431
3436
  }
3432
3437
  value = value || "";
3433
3438
 
3439
+ let hintLines = props.textHintMinLines || 0;
3440
+ let hintStyle = hintLines
3441
+ ? ` style="min-height:${(hintLines * 1.3).toFixed(2)}em;line-height:1.3;"`
3442
+ : "";
3443
+
3434
3444
  let elem = dom.createElementFromHTML(`
3435
3445
  <div class="input-section ${props.classNames || ""} ${
3436
3446
  props.isHidden ? "hide" : ""
@@ -3448,7 +3458,7 @@ export default {
3448
3458
  class="nav-input"
3449
3459
  value="${value}">
3450
3460
 
3451
- <span class="text-hint">
3461
+ <span class="text-hint"${hintStyle}>
3452
3462
  ${props.textHint || ""}
3453
3463
  </span>
3454
3464
  </div>