classcard-ui 0.2.234 → 0.2.235

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.234",
3
+ "version": "0.2.235",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -11,9 +11,13 @@
11
11
  </div>
12
12
  <span v-if="hint" class="text-sm text-gray-500">{{ hint }}</span>
13
13
  </div>
14
- <div v-if="!inlineAddon && addonType == 'leading'" class="relative mt-1 flex rounded-md">
14
+ <div
15
+ v-if="!inlineAddon && addonType == 'leading'"
16
+ class="relative mt-1 flex rounded-md"
17
+ >
15
18
  <span
16
19
  :class="disabled ? 'opacity-50' : ''"
20
+ v-if="addon"
17
21
  class="inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm"
18
22
  >
19
23
  {{ addon }}
@@ -23,7 +27,7 @@
23
27
  :value="inputValue"
24
28
  @input="$emit('input', $event.target.value)"
25
29
  @blur="$emit('blur', $event.target.value)"
26
- :class="errorClasses"
30
+ :class="{ ...errorClasses, 'rounded-l-md': !addon }"
27
31
  class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-r-md sm:text-sm disabled:opacity-50"
28
32
  :placeholder="placeholder"
29
33
  :disabled="disabled"
@@ -35,7 +39,10 @@
35
39
  <c-icon name="exclamation-circle" type="solid" class="h-5 w-5"></c-icon>
36
40
  </div>
37
41
  </div>
38
- <div v-if="!inlineAddon && addonType == 'trailing'" class="relative mt-1 flex rounded-md">
42
+ <div
43
+ v-if="!inlineAddon && addonType == 'trailing'"
44
+ class="relative mt-1 flex rounded-md"
45
+ >
39
46
  <input
40
47
  :type="inputType"
41
48
  :value="inputValue"
@@ -59,7 +66,10 @@
59
66
  {{ addon }}
60
67
  </span>
61
68
  </div>
62
- <div v-if="inlineAddon && addonType == 'trailing'" class="relative mt-1 flex rounded-md">
69
+ <div
70
+ v-if="inlineAddon && addonType == 'trailing'"
71
+ class="relative mt-1 flex rounded-md"
72
+ >
63
73
  <input
64
74
  :type="inputType"
65
75
  :value="inputValue"
@@ -70,12 +80,18 @@
70
80
  :placeholder="placeholder"
71
81
  :disabled="disabled"
72
82
  />
73
- <div class="absolute inset-y-0 right-3 flex items-center pointer-events-none">
83
+ <div
84
+ class="absolute inset-y-0 right-3 flex items-center pointer-events-none"
85
+ >
74
86
  <div
75
87
  v-if="!isValidate"
76
88
  class="right-0 pr-2 flex items-center pointer-events-none text-red-600"
77
89
  >
78
- <c-icon name="exclamation-circle" type="solid" class="h-5 w-5"></c-icon>
90
+ <c-icon
91
+ name="exclamation-circle"
92
+ type="solid"
93
+ class="h-5 w-5"
94
+ ></c-icon>
79
95
  </div>
80
96
  <span
81
97
  class="text-gray-500 sm:text-sm"
@@ -85,8 +101,13 @@
85
101
  </span>
86
102
  </div>
87
103
  </div>
88
- <div v-if="inlineAddon && addonType == 'leading'" class="relative mt-1 flex rounded-md">
89
- <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
104
+ <div
105
+ v-if="inlineAddon && addonType == 'leading'"
106
+ class="relative mt-1 flex rounded-md"
107
+ >
108
+ <div
109
+ class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"
110
+ >
90
111
  <span class="text-gray-500 sm:text-sm">{{ addon }}</span>
91
112
  </div>
92
113
  <input
@@ -110,7 +131,10 @@
110
131
  <p v-if="!isValidate" class="mt-2 text-sm text-red-600">
111
132
  {{ errorMessage }}
112
133
  </p>
113
- <p v-if="helpText && isValidate == true" :class="`mt-2 text-sm ${helpTextColorStyles}`">
134
+ <p
135
+ v-if="helpText && isValidate == true"
136
+ :class="`mt-2 text-sm ${helpTextColorStyles}`"
137
+ >
114
138
  {{ helpText }}
115
139
  </p>
116
140
  </div>