eco-vue-js 0.3.79 → 0.3.81
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/README.md
CHANGED
@@ -15,8 +15,8 @@ npm i eco-vue-js
|
|
15
15
|
1. Add the following lines to the `content` section in your [Tailwind configuration file](https://tailwindcss.com/docs/content-configuration):
|
16
16
|
```
|
17
17
|
content: [
|
18
|
-
'./node_modules/eco-vue-js/dist/components/**/*.vue.js
|
19
|
-
'./node_modules/eco-vue-js/dist/components/**/*.js
|
18
|
+
'./node_modules/eco-vue-js/dist/components/**/*.vue.js',
|
19
|
+
'./node_modules/eco-vue-js/dist/components/**/*.js',
|
20
20
|
]
|
21
21
|
```
|
22
22
|
2. Add the library's [Tailwind preset](https://tailwindcss.com/docs/presets) to your configuration file:
|
@@ -137,13 +137,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
137
137
|
"svg-width": containerWidth.value,
|
138
138
|
"svg-height": containerHeight.value,
|
139
139
|
"is-active": isActive.value,
|
140
|
-
"has-error": _ctx.errorMessage
|
140
|
+
"has-error": !!_ctx.errorMessage,
|
141
141
|
class: "absolute top-0 left-0"
|
142
142
|
}, null, 8, ["svg-width", "svg-height", "is-active", "has-error"])) : createCommentVNode("", true),
|
143
143
|
_ctx.placeholder ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
144
144
|
createVNode(_sfc_main$2, {
|
145
145
|
name: _ctx.placeholder,
|
146
|
-
"has-error": _ctx.errorMessage
|
146
|
+
"has-error": !!_ctx.errorMessage,
|
147
147
|
"onClick:cancel": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("clear:placeholder"))
|
148
148
|
}, {
|
149
149
|
positive: withCtx(() => [
|
@@ -173,7 +173,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
173
173
|
return openBlock(), createBlock(_sfc_main$2, {
|
174
174
|
key: index,
|
175
175
|
name: file.name,
|
176
|
-
"has-error": _ctx.errorMessage
|
176
|
+
"has-error": !!_ctx.errorMessage,
|
177
177
|
"onClick:cancel": ($event) => unselectFile(index)
|
178
178
|
}, {
|
179
179
|
positive: withCtx(() => [
|
@@ -264,7 +264,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
264
264
|
id: inputId,
|
265
265
|
ref_key: "input",
|
266
266
|
ref: input,
|
267
|
-
class: normalizeClass(["text-base font-normal outline-0 border-none bg-[inherit] flex-1 max-w-full disabled:opacity-80 disabled:cursor-not-allowed placeholder:text-gray-400 dark:placeholder:text-gray-500 appearance-none", {
|
267
|
+
class: normalizeClass(["text-base font-normal outline-0 border-none bg-[inherit] flex-1 max-w-full w-input disabled:opacity-80 disabled:cursor-not-allowed placeholder:text-gray-400 dark:placeholder:text-gray-500 appearance-none", {
|
268
268
|
"min-h-[var(--textarea-height,160px)] w-full p-3": _ctx.textarea,
|
269
269
|
"resize-y": _ctx.resize && _ctx.textarea,
|
270
270
|
"resize-none": !_ctx.resize && _ctx.textarea,
|
@@ -350,8 +350,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
350
350
|
_ctx.hasChanges ? (openBlock(), createElementBlock("span", {
|
351
351
|
key: 0,
|
352
352
|
class: normalizeClass(["square-2 rounded-full transition-colors absolute top-0 right-0 z-10", {
|
353
|
-
"bg-info dark:bg-info-dark": isFocused.value || _ctx.errorMessage
|
354
|
-
"bg-negative dark:bg-negative-dark": !isFocused.value && _ctx.errorMessage
|
353
|
+
"bg-info dark:bg-info-dark": isFocused.value || !_ctx.errorMessage,
|
354
|
+
"bg-negative dark:bg-negative-dark": !isFocused.value && _ctx.errorMessage
|
355
355
|
}])
|
356
356
|
}, null, 2)) : createCommentVNode("", true)
|
357
357
|
]),
|
package/package.json
CHANGED