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/dist/classcard-ui.common.js +58 -53
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +58 -53
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CSwitch/CSwitch.vue +6 -3
package/package.json
CHANGED
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
<!-- small toggle -->
|
|
4
4
|
<div
|
|
5
5
|
v-if="size === 'small'"
|
|
6
|
-
:class="
|
|
7
|
-
|
|
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:
|
|
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"
|