eco-vue-js 0.9.17 → 0.9.18

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.
@@ -1 +1 @@
1
- {"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"AAknBA,iBAAS,cAAc;;iBAbZ,MAAM,IAAI;;iBAAV,MAAM,IAAI;;;;;WA4GP,OAAO,IAA6B;EAEjD;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WApaZ,MAAM;YACL,MAAM;eACH,UAAU,GAAG,UAAU,EAAE;sBAClB,MAAM;sBACN,MAAM;gBACZ,OAAO;eACR,OAAO;;;wBA0QE,MAAM;qBAzEN,IAAI;;;;;;;WAvMjB,MAAM;YACL,MAAM;eACH,UAAU,GAAG,UAAU,EAAE;sBAClB,MAAM;sBACN,MAAM;gBACZ,OAAO;eACR,OAAO;;;;;;kFA2alB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"AA4mBA,iBAAS,cAAc;;iBAbZ,MAAM,IAAI;;iBAAV,MAAM,IAAI;;;;;WA4GP,OAAO,IAA6B;EAEjD;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WAjaZ,MAAM;YACL,MAAM;eACH,UAAU,GAAG,UAAU,EAAE;sBAClB,MAAM;sBACN,MAAM;gBACZ,OAAO;eACR,OAAO;;;wBAuQE,MAAM;qBAxEN,IAAI;;;;;;;WArMjB,MAAM;YACL,MAAM;eACH,UAAU,GAAG,UAAU,EAAE;sBAClB,MAAM;sBACN,MAAM;gBACZ,OAAO;eACR,OAAO;;;;;;kFAwalB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -60,7 +60,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
60
60
  const mandatory = computed(() => componentSlot.value?.props?.mandatory !== void 0 ? componentSlot.value?.props?.mandatory !== false : void 0);
61
61
  const title = computed(() => props.title ?? componentSlot.value?.props?.title);
62
62
  const errorMessage = ref(null);
63
- const hasChanges = ref(false);
63
+ const hasChanges = computed(() => {
64
+ if (props.noChanges) return false;
65
+ if (initModelValue.value === void 0) {
66
+ return modelValue.value !== void 0 && modelValue.value !== "";
67
+ } else {
68
+ if (Array.isArray(modelValue.value) && Array.isArray(initModelValue.value)) {
69
+ const oldValue = initModelValue.value;
70
+ const newValue = modelValue.value;
71
+ return newValue.length !== oldValue.length || newValue.some((item) => !oldValue.includes(item));
72
+ } else {
73
+ return modelValue.value !== initModelValue.value;
74
+ }
75
+ }
76
+ });
64
77
  const hasBeenValidated = ref(false);
65
78
  const hasValueExact = computed(() => {
66
79
  if (props.hasValue) return true;
@@ -70,20 +83,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
70
83
  });
71
84
  const _hasValue = computed(() => mandatory.value && hasValueExact.value === false ? null : hasValueExact.value);
72
85
  const requiredSymbols = computed(() => props.requiredSymbols?.split("") ?? []);
73
- const _updateHasChanges = (value) => {
74
- if (props.noChanges) return;
75
- if (initModelValue.value === void 0) {
76
- hasChanges.value = value !== void 0 && value !== "";
77
- } else {
78
- if (Array.isArray(value) && Array.isArray(initModelValue.value)) {
79
- const oldValue = initModelValue.value;
80
- const newValue = value;
81
- hasChanges.value = newValue.length !== oldValue.length || newValue.some((item) => !oldValue.includes(item));
82
- } else {
83
- hasChanges.value = value !== initModelValue.value;
84
- }
85
- }
86
- };
87
86
  const _validate = (value) => {
88
87
  const requiredMessage = required.value ? validateRequired(value) : void 0;
89
88
  if (requiredMessage) return requiredMessage;
@@ -128,7 +127,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
128
127
  };
129
128
  const validateOnUpdate = (value) => {
130
129
  const message = _validate(value);
131
- _updateHasChanges(value);
132
130
  errorMessage.value = message;
133
131
  hasBeenValidated.value = true;
134
132
  return message;
@@ -166,7 +164,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
166
164
  };
167
165
  const initModel = () => {
168
166
  initModelValue.value = modelValue.value;
169
- hasChanges.value = false;
170
167
  };
171
168
  const scrollTo = () => {
172
169
  if (!errorMessage.value) return;
@@ -24,6 +24,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  icon: {},
25
25
  size: {},
26
26
  maxLength: {},
27
+ step: {},
28
+ min: {},
29
+ max: {},
27
30
  name: {},
28
31
  autocomplete: {},
29
32
  autofocus: { type: Boolean },
@@ -34,6 +34,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  icon: {},
35
35
  size: {},
36
36
  maxLength: {},
37
+ step: {},
38
+ min: {},
39
+ max: {},
37
40
  name: {},
38
41
  autocomplete: {},
39
42
  autofocus: { type: Boolean },
@@ -39,6 +39,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
39
  icon: {},
40
40
  size: {},
41
41
  maxLength: {},
42
+ step: {},
43
+ min: {},
44
+ max: {},
42
45
  name: {},
43
46
  autocomplete: {},
44
47
  autofocus: { type: Boolean },
@@ -35,6 +35,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
35
  icon: {},
36
36
  size: {},
37
37
  maxLength: {},
38
+ step: {},
39
+ min: {},
40
+ max: {},
38
41
  name: {},
39
42
  autocomplete: {},
40
43
  autofocus: { type: Boolean },
@@ -35,6 +35,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
35
  icon: {},
36
36
  size: {},
37
37
  maxLength: {},
38
+ step: {},
39
+ min: {},
40
+ max: {},
38
41
  name: {},
39
42
  autocomplete: {},
40
43
  autofocus: { type: Boolean },
@@ -11,6 +11,8 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: NonNullab
11
11
  subtitle?(_: {}): any;
12
12
  prefix?(_: {}): any;
13
13
  prefix?(_: {}): any;
14
+ before?(_: {}): any;
15
+ after?(_: {}): any;
14
16
  suffix?(_: {}): any;
15
17
  right?(_: {}): any;
16
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInput.vue"],"names":[],"mappings":"AAyWA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,SAAS,CAAA;yBAYtB,IAAI,SAAS,SAAS,wBACzB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAosBxD,mBAAmB,CAAC,sBAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;qBA7lB/B,IAAI;oBAML,IAAI;MAulBkD,GAAG,IAAI;WACpE,GAAG;;uBAvDc,GAAG;0BACA,GAAG;wBACL,GAAG;wBACF,GAAG;wBACH,GAAG;uBACJ,GAAG;;;YAnoBzB,mBAAmB,SAAS,4CAAa,SAAS,GAAG,IAAI;YACzD,gBAAgB,S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G;0BACA,GAAG;wBACL,GAAG;wBACF,GAAG;wBACH,GAAG;uBACJ,GAAG;wBACF,GAAG;uBACJ,GAAG;;;YA5oBzB,mBAAmB,SAAS,4CAAa,SAAS,GAAG,IAAI;YACzD,gBAAgB,SAAS,aAAa,GAAG,IAAI;YAC7C,aAAa,SAAS,aAAa,GAAG,IAAI;YAC1C,eAAe,SAAS,aAAa,GAAG,IAAI;YAC5C,iBAAiB,SAAS,aAAa,GAAG,IAAI;YAC9C,oBAAoB,SAAS,aAAa,GAAG,IAAI;YACjD,aAAa,GAAG,IAAI;YACpB,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;YAChC,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,WAAW,SAAS,UAAU,GAAG,IAAI;YACrC,cAAc,SAAS,UAAU,GAAG,IAAI;YACxC,cAAc,SAAS,KAAK,GAAG,IAAI;YACnC,OAAO,GAAG,IAAI;;;;;YAsrBwB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAvtBvE,wBAutB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -22,6 +22,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  icon: {},
23
23
  size: { default: 10 },
24
24
  maxLength: {},
25
+ step: {},
26
+ min: {},
27
+ max: {},
25
28
  name: {},
26
29
  autocomplete: { default: "off" },
27
30
  autofocus: { type: Boolean },
@@ -232,54 +235,64 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
232
235
  }, [
233
236
  createElementVNode("div", _hoisted_3, [
234
237
  renderSlot(_ctx.$slots, "prefix"),
235
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.textarea ? "textarea" : "input"), {
236
- id,
237
- ref: "input",
238
- class: normalizeClass(["w-input max-w-full flex-1 appearance-none border-none bg-[inherit] text-base font-normal outline-0 placeholder:text-gray-400 disabled:cursor-not-allowed disabled:opacity-80 dark:placeholder:text-gray-500", {
239
- "min-h-[var(--textarea-height,10rem)] w-full py-3": _ctx.textarea,
240
- "resize-y": _ctx.resize && _ctx.textarea,
241
- "resize-none": !_ctx.resize && _ctx.textarea,
242
- "h-[var(--input-height,2.625rem)]": !_ctx.textarea && !_ctx.$slots.suffix,
243
- "h-[var(--input-height,2.125rem)]": !_ctx.textarea && _ctx.$slots.suffix,
238
+ createElementVNode("div", {
239
+ class: normalizeClass(["flex flex-1 items-baseline", {
244
240
  "first:pl-0 group-first/input:pl-3 group-last/input:pr-3 [&:not(:first-child)]:pl-3": !_ctx.hideInput,
245
- "absolute w-0 max-w-0 p-0": _ctx.hideInput,
246
- "font-mono": _ctx.mono,
247
- "text-secure": _ctx.textSecure && !isSecureVisible.value,
248
- "text-black-default dark:text-gray-200": !_ctx.disabled,
249
- "text-black-default/50 dark:text-gray-200/50": _ctx.disabled
250
- }]),
251
- value: _ctx.placeholderSecure && _ctx.modelValue === void 0 && !focused ? "******" : _ctx.modelValue,
252
- placeholder: _ctx.placeholder,
253
- type: _ctx.type ?? "text",
254
- name: _ctx.name,
255
- disabled: _ctx.disabled,
256
- readonly: _ctx.readonly || _ctx.unclickable,
257
- autocomplete: _ctx.autocomplete,
258
- size: _ctx.size || void 0,
259
- spellcheck: _ctx.spellcheck ? "true" : "false",
260
- onInput: handleInputEvent,
261
- onKeypress: _cache[0] || (_cache[0] = withKeys(withModifiers(($event) => !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:enter", $event), ["exact"]), ["enter"])),
262
- onKeydown: [
263
- _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:up", $event), ["exact", "stop"]), ["up"])),
264
- _cache[2] || (_cache[2] = withKeys(withModifiers(($event) => !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:down", $event), ["exact", "stop"]), ["down"])),
265
- _cache[3] || (_cache[3] = withKeys(withModifiers(($event) => {
266
- !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:delete", $event);
267
- handleBackspace($event);
268
- }, ["exact", "stop"]), ["delete"]))
269
- ],
270
- onFocus: ($event) => {
271
- _ctx.$emit("focus", $event);
272
- setFocused(true);
273
- },
274
- onBlur: ($event) => {
275
- _ctx.$emit("blur", $event);
276
- setFocused(false);
277
- isSecureVisible.value = false;
278
- },
279
- onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("click", $event)),
280
- onMousedown: _cache[5] || (_cache[5] = withModifiers(($event) => _ctx.$emit("mousedown", $event), ["stop"])),
281
- onSelect: _cache[6] || (_cache[6] = withModifiers(($event) => _ctx.$emit("select:input", $event), ["stop"]))
282
- }, null, 40, ["id", "class", "value", "placeholder", "type", "name", "disabled", "readonly", "autocomplete", "size", "spellcheck", "onFocus", "onBlur"]))
241
+ "absolute w-0 max-w-0 p-0": _ctx.hideInput
242
+ }])
243
+ }, [
244
+ renderSlot(_ctx.$slots, "before"),
245
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.textarea ? "textarea" : "input"), {
246
+ id,
247
+ ref: "input",
248
+ class: normalizeClass(["w-input max-w-full flex-1 appearance-none border-none bg-[inherit] text-base font-normal outline-0 placeholder:text-gray-400 disabled:cursor-not-allowed disabled:opacity-80 dark:placeholder:text-gray-500", {
249
+ "min-h-[var(--textarea-height,10rem)] w-full py-3": _ctx.textarea,
250
+ "resize-y": _ctx.resize && _ctx.textarea,
251
+ "resize-none": !_ctx.resize && _ctx.textarea,
252
+ "h-[var(--input-height,2.625rem)]": !_ctx.textarea && !_ctx.$slots.suffix,
253
+ "h-[var(--input-height,2.125rem)]": !_ctx.textarea && _ctx.$slots.suffix,
254
+ "font-mono": _ctx.mono,
255
+ "text-secure": _ctx.textSecure && !isSecureVisible.value,
256
+ "text-black-default dark:text-gray-200": !_ctx.disabled,
257
+ "text-black-default/50 dark:text-gray-200/50": _ctx.disabled
258
+ }]),
259
+ value: _ctx.placeholderSecure && _ctx.modelValue === void 0 && !focused ? "******" : _ctx.modelValue,
260
+ placeholder: _ctx.placeholder,
261
+ type: _ctx.type ?? "text",
262
+ name: _ctx.name,
263
+ disabled: _ctx.disabled,
264
+ readonly: _ctx.readonly || _ctx.unclickable,
265
+ autocomplete: _ctx.autocomplete,
266
+ size: _ctx.size || void 0,
267
+ step: _ctx.step,
268
+ min: _ctx.min,
269
+ max: _ctx.max,
270
+ spellcheck: _ctx.spellcheck ? "true" : "false",
271
+ onInput: handleInputEvent,
272
+ onKeypress: _cache[0] || (_cache[0] = withKeys(withModifiers(($event) => !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:enter", $event), ["exact"]), ["enter"])),
273
+ onKeydown: [
274
+ _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:up", $event), ["exact", "stop"]), ["up"])),
275
+ _cache[2] || (_cache[2] = withKeys(withModifiers(($event) => !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:down", $event), ["exact", "stop"]), ["down"])),
276
+ _cache[3] || (_cache[3] = withKeys(withModifiers(($event) => {
277
+ !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:delete", $event);
278
+ handleBackspace($event);
279
+ }, ["exact", "stop"]), ["delete"]))
280
+ ],
281
+ onFocus: ($event) => {
282
+ _ctx.$emit("focus", $event);
283
+ setFocused(true);
284
+ },
285
+ onBlur: ($event) => {
286
+ _ctx.$emit("blur", $event);
287
+ setFocused(false);
288
+ isSecureVisible.value = false;
289
+ },
290
+ onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("click", $event)),
291
+ onMousedown: _cache[5] || (_cache[5] = withModifiers(($event) => _ctx.$emit("mousedown", $event), ["stop"])),
292
+ onSelect: _cache[6] || (_cache[6] = withModifiers(($event) => _ctx.$emit("select:input", $event), ["stop"]))
293
+ }, null, 40, ["id", "class", "value", "placeholder", "type", "name", "disabled", "readonly", "autocomplete", "size", "step", "min", "max", "spellcheck", "onFocus", "onBlur"])),
294
+ renderSlot(_ctx.$slots, "after")
295
+ ], 2)
283
296
  ])
284
297
  ], 2),
285
298
  createVNode(_sfc_main$2, {
@@ -22,6 +22,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  icon: {},
23
23
  size: {},
24
24
  maxLength: {},
25
+ step: {},
26
+ min: {},
27
+ max: {},
25
28
  name: {},
26
29
  autocomplete: {},
27
30
  autofocus: { type: Boolean },
@@ -20,6 +20,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  icon: {},
21
21
  size: {},
22
22
  maxLength: {},
23
+ step: {},
24
+ min: {},
25
+ max: {},
23
26
  name: {},
24
27
  autocomplete: {},
25
28
  autofocus: { type: Boolean },
@@ -25,6 +25,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  icon: {},
26
26
  size: {},
27
27
  maxLength: {},
28
+ step: {},
29
+ min: {},
30
+ max: {},
28
31
  name: {},
29
32
  autocomplete: {},
30
33
  autofocus: { type: Boolean },
@@ -21,6 +21,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  icon: {},
22
22
  size: {},
23
23
  maxLength: {},
24
+ step: {},
25
+ min: {},
26
+ max: {},
24
27
  name: {},
25
28
  autocomplete: {},
26
29
  autofocus: { type: Boolean },
@@ -10,6 +10,9 @@ export interface InputProps<Type extends InputType> extends Omit<FieldWrapperPro
10
10
  icon?: SVGComponent;
11
11
  size?: number;
12
12
  maxLength?: number;
13
+ step?: number;
14
+ min?: number;
15
+ max?: number;
13
16
  name?: string;
14
17
  autocomplete?: 'off' | string;
15
18
  autofocus?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAC,iBAAiB,EAAC,MA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AAC,EAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,aAAa,GAAG,YAAY,CAAC,CAAC;IAC5J,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,iBAAiB,CAAC,IAAI,SAAS,SAAS,EAAE,MAAM,CAAE,SAAQ,iBAAiB,CAAC,IAAI,CAAC;IAChG,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAA;IAChF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,SAAS,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAC,CAAC,CAAA;CACnF;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;IACnF,UAAU,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;IAC7B,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;CACf"}
@@ -35,6 +35,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
35
  icon: {},
36
36
  size: {},
37
37
  maxLength: {},
38
+ step: {},
39
+ min: {},
40
+ max: {},
38
41
  name: {},
39
42
  autocomplete: {},
40
43
  autofocus: { type: Boolean },
@@ -32,6 +32,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
32
  icon: {},
33
33
  size: {},
34
34
  maxLength: {},
35
+ step: {},
36
+ min: {},
37
+ max: {},
35
38
  name: {},
36
39
  autocomplete: {},
37
40
  autofocus: { type: Boolean },
@@ -30,6 +30,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
30
  icon: {},
31
31
  size: {},
32
32
  maxLength: {},
33
+ step: {},
34
+ min: {},
35
+ max: {},
33
36
  name: {},
34
37
  autocomplete: {},
35
38
  autofocus: { type: Boolean },
@@ -26,6 +26,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
26
  icon: {},
27
27
  size: {},
28
28
  maxLength: {},
29
+ step: {},
30
+ min: {},
31
+ max: {},
29
32
  name: {},
30
33
  autocomplete: {},
31
34
  autofocus: { type: Boolean },
@@ -26,6 +26,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
26
  icon: {},
27
27
  size: {},
28
28
  maxLength: {},
29
+ step: {},
30
+ min: {},
31
+ max: {},
29
32
  name: {},
30
33
  autocomplete: {},
31
34
  autofocus: { type: Boolean },
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.9.17",
7
+ "version": "0.9.18",
8
8
  "scripts": {
9
9
  "build": "run-p type-check \"build-only {@}\" --",
10
10
  "preview": "vite preview",
@@ -1,6 +1,6 @@
1
1
  const plugin = require('tailwindcss/plugin')
2
2
 
3
- module.exports = plugin(function ({matchUtilities, addVariant, addUtilities, addBase, theme, addComponents}) {
3
+ module.exports = plugin(function ({matchUtilities, addVariant, addUtilities, addBase, theme, addComponents, config}) {
4
4
  matchUtilities(
5
5
  {
6
6
  square: (value) => {
@@ -128,7 +128,7 @@ module.exports = plugin(function ({matchUtilities, addVariant, addUtilities, add
128
128
 
129
129
  '--input-autofill-bg': theme('colors.default'),
130
130
  '--input-autofull-text': theme('colors.black.default'),
131
- '.dark &':{
131
+ [config('darkMode')[1][0]]: {
132
132
  '--input-autofill-bg': theme('colors.default-dark'),
133
133
  '--input-autofull-text': theme('colors.gray.100'),
134
134
  },
@@ -213,7 +213,7 @@ module.exports = plugin(function ({matchUtilities, addVariant, addUtilities, add
213
213
  'background-position': 'top',
214
214
  'background-image': 'linear-gradient(135deg, currentColor 10%, transparent 10%, transparent 50%, currentColor 50%, currentColor 60%, transparent 60%, transparent 100%)',
215
215
  'color': theme('colors.gray.300'),
216
- '.dark &': {
216
+ [config('darkMode')[1][0]]: {
217
217
  'color': theme('colors.gray.700'),
218
218
  },
219
219
  },
@@ -275,13 +275,13 @@ module.exports = plugin(function ({matchUtilities, addVariant, addUtilities, add
275
275
  addComponents({
276
276
  '.text-accent': {
277
277
  'color': theme('colors.black.default'),
278
- '.dark &': {
278
+ [config('darkMode')[1][0]]: {
279
279
  'color': theme('colors.gray.200'),
280
280
  },
281
281
  },
282
282
  '.text-description': {
283
283
  'color': theme('colors.gray.400'),
284
- '.dark &': {
284
+ [config('darkMode')[1][0]]: {
285
285
  'color': theme('colors.gray.500'),
286
286
  },
287
287
  },
@@ -405,9 +405,11 @@ module.exports = plugin(function ({matchUtilities, addVariant, addUtilities, add
405
405
  'background-size': '40px 40px',
406
406
  'animation': theme('animation.move-horizontal'),
407
407
  },
408
- '.dark &::before': {
409
- 'background-image': 'linear-gradient(135deg, hsla(0,0%,10%,.125) 25%, transparent 0, transparent 50%, hsla(0,0%,10%,.125) 0, hsla(0,0%,10%,.125) 75%, transparent 0, transparent)',
410
- },
408
+ [config('darkMode')[1][0]]: {
409
+ '&::before': {
410
+ 'background-image': 'linear-gradient(135deg, hsla(0,0%,10%,.125) 25%, transparent 0, transparent 50%, hsla(0,0%,10%,.125) 0, hsla(0,0%,10%,.125) 75%, transparent 0, transparent)',
411
+ },
412
+ }
411
413
  },
412
414
  })
413
415
 
@@ -441,7 +443,7 @@ module.exports = plugin(function ({matchUtilities, addVariant, addUtilities, add
441
443
  'background-image': 'linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.5), rgba(255,255,255,0))',
442
444
  'animation': theme('animation.ticker'),
443
445
 
444
- '.dark &': {
446
+ [config('darkMode')[1][0]]: {
445
447
  'background-image': 'linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.01),rgba(255,255,255,0))',
446
448
  },
447
449
  },