adminforth 2.0.0-next.2 → 2.0.0-next.3

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.
@@ -1,9 +1,10 @@
1
1
  <template>
2
- <div class="flex items-center h-5">
2
+ <div class="flex items-center h-5" :class="{'opacity-50' : props.disabled}">
3
3
  <input :id="id"
4
4
  ref="rememberInput"
5
5
  type="checkbox"
6
6
  :checked="props.modelValue"
7
+ :disabled="props.disabled"
7
8
  @change="$emit('update:modelValue', $event.target.checked)"
8
9
  class="w-4 h-4 border border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-lightPrimary cursor-pointer
9
10
  focus:ring-opacity-50 dark:bg-gray-700 dark:border-gray-600 dark:focus:ring-blue-600 dark:ring-offset-gray-800 dark:focus:ring-offset-gray-800 checked:bg-lightPrimary checked:dark:bg-darkPrimary" />
@@ -17,6 +18,7 @@
17
18
 
18
19
  const props = defineProps({
19
20
  modelValue: Boolean,
21
+ disabled: Boolean,
20
22
  });
21
23
 
22
24
  defineEmits(['update:modelValue']);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.0.0-next.2",
3
+ "version": "2.0.0-next.3",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",