Skip to content

Commit b4fd194

Browse files
committed
prepare release
1 parent 4ec4b2d commit b4fd194

File tree

9 files changed

+6762
-6333
lines changed

9 files changed

+6762
-6333
lines changed

app/pages/components/InputOTP.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
<script setup lang="ts">
2-
import {
3-
InputOTP,
4-
InputOTPGroup,
5-
InputOTPSeparator,
6-
InputOTPSlot,
7-
} from '@/components/input-otp'
2+
import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "@/components/input-otp"
83
</script>
94

105
<template>
116
<InputOTP :maxlength="6">
127
<InputOTPGroup>
138
<InputOTPSlot :index="0" />
9+
1410
<InputOTPSlot :index="1" />
11+
1512
<InputOTPSlot :index="2" />
1613
</InputOTPGroup>
14+
1715
<InputOTPSeparator />
16+
1817
<InputOTPGroup>
1918
<InputOTPSlot :index="3" />
19+
2020
<InputOTPSlot :index="4" />
21+
2122
<InputOTPSlot :index="5" />
2223
</InputOTPGroup>
2324
</InputOTP>

dist/gooey.js

Lines changed: 6447 additions & 5823 deletions
Large diffs are not rendered by default.

dist/gooey.umd.cjs

Lines changed: 40 additions & 16 deletions
Large diffs are not rendered by default.

dist/types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export * from "@/components/drawer";
2323
export * from "@/components/dropdown-menu";
2424
export * from "@/components/empty";
2525
export * from "@/components/input";
26+
export * from "@/components/input-otp";
2627
export * from "@/components/label";
2728
export * from "@/components/pagination";
2829
export * from "@/components/popover";

package-lock.json

Lines changed: 252 additions & 473 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codinglabsau/gooey",
3-
"version": "1.13.0",
3+
"version": "1.14.0",
44
"type": "module",
55
"files": [
66
"dist",

src/components/input-otp/InputOTPGroup.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ const forwarded = useForwardProps(delegatedProps)
1212
</script>
1313

1414
<template>
15-
<div
16-
data-slot="input-otp-group"
17-
v-bind="forwarded"
18-
:class="cn('flex items-center', props.class)"
19-
>
15+
<div data-slot="input-otp-group" v-bind="forwarded" :class="cn('flex items-center', props.class)">
2016
<slot />
2117
</div>
2218
</template>

src/components/input-otp/InputOTPSeparator.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ const forwarded = useForwardProps(props)
99
</script>
1010

1111
<template>
12-
<div
13-
data-slot="input-otp-separator"
14-
role="separator"
15-
v-bind="forwarded"
16-
>
12+
<div data-slot="input-otp-separator" role="separator" v-bind="forwarded">
1713
<slot>
1814
<MinusIcon />
1915
</slot>

src/components/input-otp/InputOTPSlot.vue

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { computed } from "vue"
66
import { useVueOTPContext } from "vue-input-otp"
77
import { cn } from "@/lib/utils"
88
9-
const props = defineProps<{ index: number, class?: HTMLAttributes["class"] }>()
9+
const props = defineProps<{ index: number; class?: HTMLAttributes["class"] }>()
1010
1111
const delegatedProps = reactiveOmit(props, "class")
1212
@@ -22,11 +22,19 @@ const slot = computed(() => context?.value.slots[props.index])
2222
v-bind="forwarded"
2323
data-slot="input-otp-slot"
2424
:data-active="slot?.isActive"
25-
:class="cn('data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]', props.class)"
25+
:class="
26+
cn(
27+
'data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]',
28+
props.class
29+
)
30+
"
2631
>
2732
{{ slot?.char }}
28-
<div v-if="slot?.hasFakeCaret" class="pointer-events-none absolute inset-0 flex items-center justify-center">
29-
<div class="animate-caret-blink bg-foreground h-4 w-px duration-1000" />
33+
<div
34+
v-if="slot?.hasFakeCaret"
35+
class="pointer-events-none absolute inset-0 flex items-center justify-center"
36+
>
37+
<div class="animate-caret-blink h-4 w-px bg-foreground duration-1000" />
3038
</div>
3139
</div>
3240
</template>

0 commit comments

Comments
 (0)