@policystudio/policy-studio-ui-vue 1.1.90-beta.18 → 1.1.90-beta.19

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": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.90-beta.18",
3
+ "version": "1.1.90-beta.19",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -17,7 +17,7 @@
17
17
 
18
18
  <script setup>
19
19
  //FIGMA CONTROLS & SELECTORS https://www.figma.com/file/Tto8hrNlSfuPcwd1pfqogF/%E2%9A%A1%EF%B8%8F-Design-System?node-id=1768%3A64852
20
- import { defineProps, defineEmits } from 'vue'
20
+ import { defineProps, defineEmits, computed } from 'vue'
21
21
 
22
22
  const emit = defineEmits('change', 'update:value')
23
23
 
@@ -56,14 +56,14 @@ const props = defineProps({
56
56
  },
57
57
  })
58
58
 
59
- const getToggleClass = () => {
59
+ const getToggleClass = computed(() => {
60
60
  if (props.disabled) return 'toggle-false'
61
61
  return props.value ? `toggle-true ${props.backgroundColor}` : 'toggle-false psui-bg-gray-40'
62
- }
62
+ })
63
63
 
64
- const getComponentClass = () => {
64
+ const getComponentClass = computed(() => {
65
65
  return `size-${props.size}`
66
- }
66
+ })
67
67
 
68
68
  const change = () => {
69
69
  emit('update:value', !props.value)