eco-vue-js 0.3.79 → 0.3.81

Sign up to get free protection for your applications and to get access to all the features.
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 !== void 0,
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 !== void 0,
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 !== void 0,
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 === void 0,
354
- "bg-negative dark:bg-negative-dark": !isFocused.value && _ctx.errorMessage !== void 0
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
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.3.79",
7
+ "version": "0.3.81",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",
@@ -98,7 +98,7 @@ module.exports = plugin(function ({matchUtilities, addVariant, addUtilities, add
98
98
  addVariant('touch-not', '.touch-not &')
99
99
 
100
100
  addBase({
101
- 'input': {
101
+ '.w-input': {
102
102
  'outline': 'none',
103
103
 
104
104
  '--input-autofill-bg': theme('colors.default'),