classcard-ui 0.2.604 → 0.2.605

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.604",
3
+ "version": "0.2.605",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -3,8 +3,11 @@
3
3
  <!-- small toggle -->
4
4
  <div
5
5
  v-if="size === 'small'"
6
- :class="label == '' ? 'items-center' : 'items-start'"
7
- class="flex cursor-pointer justify-between"
6
+ :class="[
7
+ label == '' ? 'items-center' : 'items-start',
8
+ disabled ? 'cursor-default' : 'cursor-pointer',
9
+ ]"
10
+ class="flex justify-between"
8
11
  >
9
12
  <span
10
13
  class="flex flex-grow flex-col"
@@ -17,7 +20,7 @@
17
20
  </span>
18
21
  <button
19
22
  type="button"
20
- class="group focus:outline-none relative inline-flex h-5 w-10 flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-default disabled-pointer-events-none"
23
+ class="group focus:outline-none disabled-pointer-events-none relative inline-flex h-5 w-10 flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:cursor-default disabled:opacity-50"
21
24
  aria-pressed="false"
22
25
  @click="switchValue"
23
26
  :disabled="disabled"