@saasmakers/ui 1.0.5 → 1.0.6
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.
|
@@ -56,7 +56,7 @@ function onClick(event: MouseEvent) {
|
|
|
56
56
|
<template>
|
|
57
57
|
<component
|
|
58
58
|
:is="to ? NuxtLinkLocale : 'button'"
|
|
59
|
-
class="relative inline-block select-none appearance-none border focus:outline-none"
|
|
59
|
+
class="relative inline-block select-none appearance-none border focus-visible:outline-none"
|
|
60
60
|
:class="{
|
|
61
61
|
'inline-block': !circular,
|
|
62
62
|
'flex items-center justify-center': circular,
|
|
@@ -35,7 +35,7 @@ const modelValue = defineModel<FieldCheckbox['modelValue']>({ default: false })
|
|
|
35
35
|
v-model="modelValue"
|
|
36
36
|
class="border border-gray-300 rounded-lg accent-indigo-700 transition-shadow flex-initial dark:border-gray-700"
|
|
37
37
|
:class="{
|
|
38
|
-
'cursor-pointer hover:border-gray-400 dark:hover:border-gray-600 focus:border-gray-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-indigo-500/40 dark:focus:border-gray-500': !disabled,
|
|
38
|
+
'cursor-pointer hover:border-gray-400 dark:hover:border-gray-600 focus-visible:border-gray-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-indigo-500/40 dark:focus-visible:border-gray-500': !disabled,
|
|
39
39
|
'field-disabled': disabled,
|
|
40
40
|
'h-3.5 w-3.5': size === 'xs',
|
|
41
41
|
'h-4 w-4': size === 'sm',
|
|
@@ -174,7 +174,7 @@ function selectOption(event: MouseEvent, value: string) {
|
|
|
174
174
|
'border-0': border === 'none',
|
|
175
175
|
'border-gray-400 dark:border-gray-600': opened,
|
|
176
176
|
'hover:border-gray-300 dark:hover:border-gray-700': !opened && !disabled,
|
|
177
|
-
'focus:border-gray-400 dark:focus:border-gray-600': !disabled,
|
|
177
|
+
'focus-visible:border-gray-400 dark:focus-visible:border-gray-600': !disabled,
|
|
178
178
|
'px-3': padding,
|
|
179
179
|
'text-2xs h-8': size === 'xs',
|
|
180
180
|
'text-xs h-10': size === 'sm',
|