@veritree/ui 0.19.2-18 → 0.19.2-19

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.
@@ -40,11 +40,21 @@ export const formControlMixin = {
40
40
  );
41
41
  },
42
42
 
43
+
44
+
45
+ isError() {
46
+ return this.variant === 'error';
47
+ },
48
+ },
49
+ };
50
+
51
+ export const formControlStyleMixin = {
52
+ computed: {
43
53
  classComputed() {
44
54
  return [
45
55
  this.headless
46
56
  ? `${this.name}`
47
- : 'leading-0 flex w-full max-w-full appearance-none items-center justify-between gap-3 rounded border border-solid px-3 py-2 font-inherit text-base text-inherit file:hidden focus:border-secondary-200',
57
+ : 'leading-0 flex outline-none w-full max-w-full appearance-none items-center justify-between rounded border border-solid px-3 py-2 font-inherit text-base text-inherit file:hidden focus:border-secondary-200 appearance-none',
48
58
  // variant styles
49
59
  this.headless
50
60
  ? `${this.name}--${this.variant}`
@@ -59,9 +69,5 @@ export const formControlMixin = {
59
69
  : 'h-10',
60
70
  ];
61
71
  },
62
-
63
- isError() {
64
- return this.variant === 'error';
65
- },
66
72
  },
67
73
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.19.2-18",
3
+ "version": "0.19.2-19",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -8,11 +8,12 @@
8
8
  </template>
9
9
 
10
10
  <script>
11
- import { formControlMixin } from '../../../mixins/form-control';
12
-
11
+ import {
12
+ formControlMixin,
13
+ formControlStyleMixin,
14
+ } from '../../../mixins/form-control';
13
15
  export default {
14
- mixins: [formControlMixin],
15
-
16
+ mixins: [formControlMixin, formControlStyleMixin],
16
17
  data() {
17
18
  return {
18
19
  name: 'input',
@@ -27,11 +28,9 @@ input[type='date']::-webkit-calendar-picker-indicator {
27
28
  position: absolute;
28
29
  opacity: 0;
29
30
  } */
30
-
31
31
  input[type='number'] {
32
32
  appearance: textfield;
33
33
  }
34
-
35
34
  input[type='number']::-webkit-inner-spin-button,
36
35
  input[type='number']::-webkit-outer-spin-button {
37
36
  appearance: none;