classcard-ui 0.2.516 → 0.2.519

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.516",
3
+ "version": "0.2.519",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,28 +1,31 @@
1
1
  <template>
2
2
  <div>
3
- <div class="bg-white rounded-md -space-y-px">
3
+ <div class="-space-y-px rounded-md bg-white">
4
4
  <div
5
5
  class="relative rounded-tl-md rounded-tr-md pb-5"
6
6
  v-for="item in items"
7
7
  v-bind:key="item.label"
8
8
  >
9
- <div class="flex items-center h-5">
9
+ <div class="flex items-start">
10
10
  <input
11
11
  type="radio"
12
12
  :value="item.value"
13
13
  :name="name"
14
14
  v-model="selectedItem"
15
15
  @click="onChange(item.value)"
16
- class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 cursor-pointer border-gray-300 disabled:opacity-50"
16
+ class="mt-0.5 h-4 w-4 cursor-pointer border-gray-300 text-indigo-600 focus:ring-indigo-500 disabled:opacity-50"
17
17
  :disabled="isDisabled"
18
18
  />
19
- <label class="ml-3 flex flex-col cursor-pointer" @click="onChange(item.value)">
19
+ <label
20
+ class="ml-3 flex cursor-pointer flex-col"
21
+ @click="onChange(item.value)"
22
+ >
20
23
  <span class="block text-sm font-medium">
21
24
  {{ item.label }}
22
25
  </span>
23
26
  <span class="block text-sm text-gray-500">
24
27
  {{ item.description }}
25
- </span>
28
+ </span>
26
29
  </label>
27
30
  </div>
28
31
  <slot v-if="item.value === selectedItem" :name="item.value" />
@@ -29,7 +29,7 @@
29
29
  autocomplete="off"
30
30
  />
31
31
 
32
- <div class="pointer-events-none absolute top-2 left-3 flex">
32
+ <div class="pointer-events-none absolute top-[7px] left-3 flex">
33
33
  <span class="flex items-center" :style="selectedOptionStyles">
34
34
  <div v-if="showImage && !selectSearch && value">
35
35
  <c-avatar
@@ -63,7 +63,7 @@
63
63
  </span>
64
64
  </span>
65
65
  </div>
66
- <div class="pointer-events-none absolute top-2.5 right-3 flex">
66
+ <div class="pointer-events-none absolute top-2 right-3 flex">
67
67
  <div
68
68
  v-if="type == 'tertiary' ? showFocus : true"
69
69
  class="pointer-events-none right-0 flex items-center"
@@ -8,7 +8,7 @@
8
8
  </div>
9
9
  <button
10
10
  type="button"
11
- class="focus:outline-none inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
11
+ class="inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
12
12
  @click="initFilestack()"
13
13
  v-if="displayMode == 'overlay' && icon"
14
14
  >
@@ -22,7 +22,7 @@
22
22
  </button>
23
23
  <button
24
24
  type="button"
25
- class="focus:outline-none mt-1.5 flex h-full w-auto items-center justify-center rounded-lg border-2 border-dashed border-gray-300 px-9 py-14 text-center hover:border-gray-400"
25
+ class="mt-1.5 flex h-full w-auto items-center justify-center rounded-lg border-2 border-dashed border-gray-300 px-9 py-14 text-center hover:border-gray-400 focus:outline-none"
26
26
  @click="initFilestack()"
27
27
  v-if="displayMode == 'overlay' && !icon && !isAvatar"
28
28
  >
@@ -44,7 +44,12 @@
44
44
  class="relative h-full w-full rounded-full object-cover"
45
45
  :src="imageUrl"
46
46
  />
47
- <c-avatar v-else size="very large" :nameInitials="shortName" :rounded="true"></c-avatar>
47
+ <c-avatar
48
+ v-else
49
+ size="very large"
50
+ :nameInitials="shortName"
51
+ :rounded="true"
52
+ ></c-avatar>
48
53
  <label
49
54
  class="absolute inset-0 flex h-full w-full cursor-pointer items-center justify-center bg-gray-900 bg-opacity-75 text-sm font-medium text-white opacity-0 focus-within:opacity-100 hover:opacity-100"
50
55
  >
@@ -166,7 +171,7 @@ export default {
166
171
  fromSources: ["local_file_system", "unsplash"],
167
172
  transformations: {
168
173
  crop: {
169
- aspectRatio: this.aspectRatio ? this.aspectRatio : 1 / 1,
174
+ aspectRatio: this.aspectRatio ? this.aspectRatio : 0,
170
175
  force: this.aspectRatio ? true : false,
171
176
  },
172
177
  circle: this.isCircle,