classcard-ui 0.2.234 → 0.2.238

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.238",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -6,7 +6,7 @@
6
6
  </label>
7
7
  </div>
8
8
  <v-date-picker
9
- class="inline-block h-full"
9
+ :class="{ 'inline-block h-full': true, 'w-full': isExpanded }"
10
10
  :masks="masks"
11
11
  @input="onDayClick"
12
12
  :value="value"
@@ -39,7 +39,7 @@
39
39
  disabled
40
40
  ? 'border-gray-100 border-l-0 text-gray-400'
41
41
  : 'border-gray-300 border-l-0 text-gray-700',
42
- 'bg-white w-full p-2 appearance-none border rounded-r-md focus:outline-none focus:border-blue-500 text-sm',
42
+ 'bg-white w-full p-2 appearance-none border rounded-r-md focus:outline-none focus:border-blue-500 text-sm',
43
43
  ]"
44
44
  :readonly="disabled"
45
45
  @click="togglePopover()"
@@ -84,6 +84,10 @@ export default {
84
84
  type: [String, Date],
85
85
  default: null,
86
86
  },
87
+ isExpanded: {
88
+ type: Boolean,
89
+ default: false,
90
+ },
87
91
  },
88
92
  data() {
89
93
  const masks = {
@@ -5,7 +5,7 @@
5
5
  <p class="text-sm text-gray-500" v-if="hint">{{ hint }}</p>
6
6
  </div>
7
7
  <quill-editor
8
- class="mt-1"
8
+ class="mt-1 text-sm"
9
9
  v-model="editorText"
10
10
  :options="editorOption"
11
11
  @change="onChange($event)"
@@ -78,4 +78,8 @@ export default {
78
78
  border-bottom-right-radius: 0.375rem;
79
79
  min-height: 5rem;
80
80
  }
81
+
82
+ .ql-editor {
83
+ @apply text-sm;
84
+ }
81
85
  </style>
@@ -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>
@@ -26,4 +26,5 @@ Default.args = {
26
26
  helpText: "Description",
27
27
  value: new Date(),
28
28
  disabled: false,
29
+ isExpanded: false,
29
30
  };