@saasmakers/ui 2.0.19 → 2.0.20

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.
@@ -18,23 +18,6 @@ withDefaults(defineProps<Omit<FieldCheckbox, 'modelValue'>>(), {
18
18
 
19
19
  const id = useId()
20
20
  const modelValue = defineModel<FieldCheckbox['modelValue']>({ default: false })
21
- const isAnimatingCheck = ref(false)
22
-
23
- watch(modelValue, (value) => {
24
- if (!value) {
25
- isAnimatingCheck.value = false
26
- }
27
- })
28
-
29
- function onChange(event: Event) {
30
- isAnimatingCheck.value = (event.target as HTMLInputElement).checked
31
- }
32
-
33
- function onCheckAnimationEnd(event: AnimationEvent) {
34
- if (event.animationName.startsWith('pop-in')) {
35
- isAnimatingCheck.value = false
36
- }
37
- }
38
21
  </script>
39
22
 
40
23
  <template>
@@ -59,14 +42,12 @@ function onCheckAnimationEnd(event: AnimationEvent) {
59
42
  :class="{ 'field-disabled': disabled }"
60
43
  :disabled="disabled"
61
44
  type="checkbox"
62
- @change="onChange"
63
45
  >
64
46
 
65
47
  <span
66
48
  aria-hidden="true"
67
49
  class="flex items-center justify-center border-2 rounded-full transition-[background-color,border-color] duration-200 ease-out"
68
50
  :class="{
69
- 'animate-pop-in motion-reduce:animate-none': isAnimatingCheck,
70
51
  'border-transparent bg-indigo-600 dark:bg-indigo-400': modelValue,
71
52
  'border-gray-300 dark:border-gray-600': !modelValue,
72
53
  'group-hover:border-gray-400 dark:group-hover:border-gray-500': !disabled && !modelValue,
@@ -76,14 +57,12 @@ function onCheckAnimationEnd(event: AnimationEvent) {
76
57
  'h-5 w-5': size === 'lg',
77
58
  'peer-focus-visible:ring-2 peer-focus-visible:ring-indigo-500/40 peer-focus-visible:ring-offset-2 peer-focus-visible:outline-none': !disabled,
78
59
  }"
79
- @animationend="onCheckAnimationEnd"
80
60
  >
81
61
  <Icon
82
62
  v-if="modelValue"
83
63
  :name="getLayerIcon('check')"
84
64
  class="shrink-0 text-white"
85
65
  :class="{
86
- 'animate-fade-in': isAnimatingCheck,
87
66
  'size-2.5': size === 'sm',
88
67
  'size-3': size === 'base',
89
68
  'size-3.5': size === 'lg',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/ui",
3
- "version": "2.0.19",
3
+ "version": "2.0.20",
4
4
  "private": false,
5
5
  "description": "Reusable Nuxt UI components for SaaS Makers projects",
6
6
  "license": "MIT",
package/uno.config.ts CHANGED
@@ -33,30 +33,22 @@ export const shortcuts: Record<string, string> = {
33
33
  export const theme = {
34
34
  animation: {
35
35
  keyframes: {
36
- 'fade-in': '{0%,25%{opacity:0}100%{opacity:1}}',
37
36
  'fade-pulse': '{0%,100%{opacity:0.25}50%{opacity:1}}',
38
- 'pop-in': '{from{transform:scale(0.8)}to{transform:scale(1)}}',
39
37
  'scale-pulse': '{0%,100%{transform:scale(0)}50%{transform:scale(1)}}',
40
38
  },
41
39
 
42
40
  durations: {
43
- 'fade-in': '200ms',
44
41
  'fade-pulse': '1s',
45
- 'pop-in': '250ms',
46
42
  'scale-pulse': '2s',
47
43
  },
48
44
 
49
45
  timingFns: {
50
- 'fade-in': 'ease-out',
51
46
  'fade-pulse': 'ease-in-out',
52
- 'pop-in': 'cubic-bezier(0.34,1.56,0.64,1)',
53
47
  'scale-pulse': 'linear',
54
48
  },
55
49
 
56
50
  counts: {
57
- 'fade-in': '1',
58
51
  'fade-pulse': 'infinite',
59
- 'pop-in': '1',
60
52
  'scale-pulse': 'infinite',
61
53
  },
62
54
  },