@mixd-id/web-scaffold 0.1.230406235 → 0.1.230406236

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.230406235",
4
+ "version": "0.1.230406236",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div :class="$style.switch">
3
3
  <input type="checkbox" :id="id" @change="changed"
4
- :checked="checked"/>
4
+ :checked="checked" :disabled="isReadonly" />
5
5
  <label :for="id"><span></span></label>
6
6
  </div>
7
7
  </template>
@@ -20,6 +20,8 @@ export default{
20
20
 
21
21
  falseValue: undefined,
22
22
 
23
+ readonly: undefined,
24
+
23
25
  },
24
26
 
25
27
  computed: {
@@ -27,7 +29,11 @@ export default{
27
29
  checked(){
28
30
  return (this.trueValue && this.trueValue === this.modelValue) ||
29
31
  parseBoolean(this.modelValue)
30
- }
32
+ },
33
+
34
+ isReadonly(){
35
+ return parseBoolean(this.readonly)
36
+ },
31
37
 
32
38
  },
33
39
 
@@ -180,7 +180,7 @@ export default{
180
180
  }
181
181
 
182
182
  .textbox.readonly{
183
- @apply bg-text-50;
183
+ @apply bg-base-50;
184
184
  }
185
185
 
186
186
  .size-sm input{ @apply text-sm; }
@@ -16,7 +16,7 @@ const plugin = Plugin(function({ addBase, config, theme }) {
16
16
  "--h-cp": '2.7rem',
17
17
  "--h-cp-lg": '3.6rem',
18
18
 
19
- '--base-50': '255, 255, 255',
19
+ '--base-50': '250, 250, 250',
20
20
  '--base-200': '222, 224, 227',
21
21
  '--base-300': '237, 243, 255',
22
22
  '--base-400': '255, 255, 255',