@code-coaching/vuetiful 0.14.1 → 0.14.2

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": "@code-coaching/vuetiful",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "dev": "onchange 'src/**/*.vue' 'src/**/*.ts' 'src/**/*.css' -- npm run build",
@@ -71,21 +71,27 @@ const trackSize = computed(() => {
71
71
  <template>
72
72
  <!-- There is some odd behavior with test coverge, v-model must be the last property in this component -->
73
73
  <Switch
74
- :class="`slide-toggle-track flex transition-all duration-[150ms] border-token rounded-container-token ${trackSize} ${
74
+ :class="`slide-toggle rounded-container-token ${
75
75
  disabled ? 'cursor-not-allowed opacity-50' : 'cursor-pointer'
76
- } ${switchClass}`"
76
+ }`"
77
77
  :name="name"
78
78
  :as="as"
79
79
  v-slot="{ checked }"
80
80
  v-model="parentModelValue"
81
81
  >
82
- <template v-if="$slots.default">
83
- <span class="sr-only"><slot /></span>
84
- </template>
85
82
  <div
86
- :class="`slide-toggle-thumb h-full w-[50%] scale-[0.8] shadow transition-all duration-[150ms] rounded-token ${
87
- checked ? 'translate-x-full' : 'opacity-90'
88
- } ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'} ${thumbClass} bg-opacity-90`"
89
- ></div>
83
+ :class="`slide-toggle-track flex transition-all duration-[150ms] border-token rounded-token ${trackSize} ${
84
+ disabled ? 'cursor-not-allowed' : 'cursor-pointer'
85
+ } ${switchClass}`"
86
+ >
87
+ <template v-if="$slots.default">
88
+ <span class="sr-only"><slot /></span>
89
+ </template>
90
+ <div
91
+ :class="`slide-toggle-thumb h-full w-[50%] scale-[0.8] shadow transition-all duration-[150ms] rounded-token ${
92
+ checked ? 'translate-x-full' : 'opacity-90'
93
+ } ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'} ${thumbClass} bg-opacity-90`"
94
+ ></div>
95
+ </div>
90
96
  </Switch>
91
97
  </template>