@opentinyvue/vue-input 2.24.0 → 2.26.0

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.
@@ -93,9 +93,9 @@ function __vue2_injectStyles$1(context) {
93
93
  this[o] = __cssModules$1[o];
94
94
  }
95
95
  }
96
- var tallStorage = /* @__PURE__ */ function() {
96
+ var tallStorage = /* @__PURE__ */ (function() {
97
97
  return __component__$1.exports;
98
- }();
98
+ })();
99
99
 
100
100
  var __vue2_script = defineComponent({
101
101
  inheritAttrs: false,
@@ -164,7 +164,8 @@ var render = function render2() {
164
164
  "popper-class": _vm.state.tooltipConfig.popperClass || "",
165
165
  "popper-options": {
166
166
  bubbling: true
167
- }
167
+ },
168
+ "pre": ""
168
169
  },
169
170
  nativeOn: {
170
171
  "mouseenter": function mouseenter($event) {
@@ -282,7 +283,7 @@ var render = function render2() {
282
283
  }) : _vm._e(), _vm.state.isWordLimitVisible ? _c("span", {
283
284
  staticClass: "h-full inline-flex items-center text-xs sm:text-sm text-color-text-placeholder"
284
285
  }, [_c("span", {
285
- staticClass: "bg-color-bg-1 leading-none inline-block"
286
+ staticClass: "bg-color-bg-1 leading-none inline-block text-xs"
286
287
  }, [_vm._v(_vm._s(_vm.state.showWordLimit ? _vm.state.textLength + "/" + _vm.state.upperLimit : _vm.state.textLength))])]) : _vm._e()], 2), _vm.state.validateState ? _c("i", {
287
288
  class: _vm.m("text-center transition-all duration-300 ease-in-out text-xs pointer-events-none", _vm.state.inputSizeMf === "medium" ? "leading-8" : _vm.state.inputSizeMf === "mini" ? "leading-6" : "leading-7", _vm.state.validateIcon)
288
289
  }) : _vm._e()]) : _vm._e(), _vm.slots.append && !_vm.state.isDisplayOnly ? _c("div", {
@@ -317,7 +318,7 @@ var render = function render2() {
317
318
  }, [_c("span", {
318
319
  ref: "textBox",
319
320
  staticClass: "text-box max-w-full break-words line-clamp-5 text-sm text-color-text-primary before:content-[''] before:float-right before:h-full before:-mb-4",
320
- class: [_vm.state.inputSizeMf !== "mini" ? "sm:text-sm" : "sm:text-xs", _vm.hoverExpand && "relative left-0 max-w-full leading-normal line-clamp-1", _vm.autosize ? "left-0 max-w-full break-words whitespace-pre-line leading-normal" : "left-0 max-w-full text-ellipsis overflow-hidden break-words whitespace-pre-wrap line-clamp-5"],
321
+ class: [_vm.state.inputSizeMf !== "mini" ? "sm:text-sm" : "sm:text-xs", _vm.hoverExpand && "relative left-0 max-w-full leading-5 line-clamp-1", _vm.autosize ? "left-0 max-w-full break-words whitespace-pre-line leading-5" : "left-0 max-w-full text-ellipsis overflow-hidden break-words whitespace-pre-wrap line-clamp-5"],
321
322
  on: {
322
323
  "click": function click($event) {
323
324
  _vm.state.showDisplayOnlyBox = true;
@@ -356,7 +357,7 @@ var render = function render2() {
356
357
  }, [_vm._v(_vm._s(_vm.state.displayOnlyText))])]) : _vm._e(), _c("textarea", _vm._b({
357
358
  ref: "textarea",
358
359
  staticClass: "block w-full border-0 sm:border-solid sm:border-color-border sm:hover:border-color-border-hover sm:focus:border-color-brand-focus sm:disabled:border-color-border outline-0 rounded placeholder:text-color-text-placeholder placeholder:text-sm sm:disabled:placeholder:text-color-text-disabled text-sm text-color-text-primary bg-color-bg-1 disabled:cursor-not-allowed disabled:text-color-text-disabled sm:disabled:text-color-text-disabled sm:disabled:bg-color-bg-6",
359
- class: [_vm.readonly ? "sm:border-0 px-0 py-0" : "sm:border px-3 ", _vm.state.isDisplayOnly ? "hidden" : "", _vm.state.inputSizeMf !== "mini" ? "sm:placeholder:text-sm sm:text-sm" : "sm:placeholder:text-xs sm:text-xs", _vm.hoverExpand && "min-w-40 absolute h-7 z-[2000] top-0 left-0", _vm.hoverExpand && _vm.state.enteredTextarea ? "py-2 leading-normal" : "py-0 leading-[1.625rem]", _vm.hoverExpand && !_vm.state.enteredTextarea && "min-h-7 px-2 leading-7 overflow-hidden"],
360
+ class: [_vm.readonly ? "sm:border-0 px-0 py-0" : "sm:border px-3 ", _vm.state.isDisplayOnly ? "hidden" : "", _vm.state.inputSizeMf !== "mini" ? "sm:placeholder:text-sm sm:text-sm" : "sm:placeholder:text-xs sm:text-xs", _vm.hoverExpand && "min-w-40 absolute h-7 z-[2000] top-0 left-0", _vm.hoverExpand && _vm.state.enteredTextarea ? "py-2 leading-normal" : "py-0 leading-5.5", _vm.hoverExpand && !_vm.state.enteredTextarea && "min-h-7 px-2 leading-7 overflow-hidden"],
360
361
  style: _vm.state.textareaStyle,
361
362
  attrs: {
362
363
  "tabindex": _vm.tabindex,
@@ -382,7 +383,7 @@ var render = function render2() {
382
383
  }
383
384
  }
384
385
  }, "textarea", _vm.a(_vm.$attrs, ["type", "class", "style", "^on[A-Z]"]), false))], 1), _vm.state.isWordLimitVisible && _vm.type === "textarea" ? _c("span", {
385
- staticClass: "bg-color-bg-1 text-color-text-placeholder text-xs sm:text-sm absolute bottom-1 right-3",
386
+ staticClass: "text-color-text-placeholder text-xs leading-5 absolute bottom-0 right-3",
386
387
  attrs: {
387
388
  "data-tag": "tiny-input-limit"
388
389
  }
@@ -396,8 +397,8 @@ function __vue2_injectStyles(context) {
396
397
  this[o] = __cssModules[o];
397
398
  }
398
399
  }
399
- var mobileFirst = /* @__PURE__ */ function() {
400
+ var mobileFirst = /* @__PURE__ */ (function() {
400
401
  return __component__.exports;
401
- }();
402
+ })();
402
403
 
403
404
  export { mobileFirst as default };
package/lib/pc.js CHANGED
@@ -96,9 +96,9 @@ function __vue2_injectStyles$1(context) {
96
96
  this[o] = __cssModules$1[o];
97
97
  }
98
98
  }
99
- var tallStorage = /* @__PURE__ */ function() {
99
+ var tallStorage = /* @__PURE__ */ (function() {
100
100
  return __component__$1.exports;
101
- }();
101
+ })();
102
102
 
103
103
  var render = function render2() {
104
104
  var _vm = this;
@@ -141,7 +141,8 @@ var render = function render2() {
141
141
  "effect": "light",
142
142
  "content": _vm.state.displayOnlyTooltip,
143
143
  "placement": "top",
144
- "popper-class": _vm.state.tooltipConfig.popperClass || ""
144
+ "popper-class": _vm.state.tooltipConfig.popperClass || "",
145
+ "pre": ""
145
146
  },
146
147
  nativeOn: {
147
148
  "mouseenter": function mouseenter($event) {
@@ -421,8 +422,8 @@ function __vue2_injectStyles(context) {
421
422
  this[o] = __cssModules[o];
422
423
  }
423
424
  }
424
- var pc = /* @__PURE__ */ function() {
425
+ var pc = /* @__PURE__ */ (function() {
425
426
  return __component__.exports;
426
- }();
427
+ })();
427
428
 
428
429
  export { pc as default };
@@ -88,8 +88,8 @@ function __vue2_injectStyles(context) {
88
88
  this[o] = __cssModules[o];
89
89
  }
90
90
  }
91
- var tallStorage = /* @__PURE__ */ function() {
91
+ var tallStorage = /* @__PURE__ */ (function() {
92
92
  return __component__.exports;
93
- }();
93
+ })();
94
94
 
95
95
  export { tallStorage as default };
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-input",
3
3
  "type": "module",
4
- "version": "2.24.0",
4
+ "version": "2.26.0",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
8
8
  "main": "./lib/index.js",
9
9
  "module": "./lib/index.js",
10
10
  "dependencies": {
11
- "@opentinyvue/vue-directive": "~2.24.0",
12
- "@opentinyvue/vue-button": "~2.24.0",
13
- "@opentinyvue/vue-common": "~2.24.0",
14
- "@opentinyvue/vue-dialog-box": "~2.24.0",
15
- "@opentinyvue/vue-icon": "~2.24.0",
16
- "@opentinyvue/vue-renderless": "~3.24.0",
17
- "@opentinyvue/vue-theme": "~3.24.0",
18
- "@opentinyvue/vue-tooltip": "~2.24.0"
11
+ "@opentinyvue/vue-directive": "~2.26.0",
12
+ "@opentinyvue/vue-button": "~2.26.0",
13
+ "@opentinyvue/vue-common": "~2.26.0",
14
+ "@opentinyvue/vue-dialog-box": "~2.26.0",
15
+ "@opentinyvue/vue-icon": "~2.26.0",
16
+ "@opentinyvue/vue-renderless": "~3.26.0",
17
+ "@opentinyvue/vue-theme": "~3.26.0",
18
+ "@opentinyvue/vue-tooltip": "~2.26.0"
19
19
  },
20
20
  "types": "index.d.ts",
21
21
  "scripts": {