frappe-ui 0.1.232 → 0.1.233
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 +1 -1
- package/src/components/Tabs/Tabs.vue +10 -7
package/package.json
CHANGED
|
@@ -12,11 +12,11 @@ import { h } from 'vue'
|
|
|
12
12
|
|
|
13
13
|
const props = defineProps<TabProps>()
|
|
14
14
|
|
|
15
|
-
const indicatorXCss = `left-0 bottom-0 h-[2px] w-[--reka-tabs-indicator-size] transition-[width,transform]
|
|
15
|
+
const indicatorXCss = `left-0 bottom-0 h-[2px] w-[--reka-tabs-indicator-size] transition-[width,transform]
|
|
16
16
|
translate-x-[--reka-tabs-indicator-position] translate-y-[1px]`
|
|
17
17
|
|
|
18
|
-
const indicatorYCss = `right-0 w-[
|
|
19
|
-
|
|
18
|
+
const indicatorYCss = `right-0 top-0 w-[2px] h-[--reka-tabs-indicator-size]
|
|
19
|
+
translate-y-[--reka-tabs-indicator-position] transition-[height,transform]`
|
|
20
20
|
|
|
21
21
|
// Using a plain <button> element via `h('button')` to avoid picking up
|
|
22
22
|
// the globally registered Button component and its styles.
|
|
@@ -31,8 +31,11 @@ const Btn = h('button')
|
|
|
31
31
|
:default-value="props.tabs[0].label"
|
|
32
32
|
>
|
|
33
33
|
<TabsList
|
|
34
|
-
class="relative min-h-fit flex data-[orientation=vertical]:flex-col p-1 border-b data-[orientation=vertical]:border-r "
|
|
35
|
-
:class="{
|
|
34
|
+
class="relative min-h-fit flex data-[orientation=vertical]:flex-col p-1 border-b data-[orientation=vertical]:border-r gap-5"
|
|
35
|
+
:class="{
|
|
36
|
+
'overflow-x-auto overflow-y-hidden px-5': !props.vertical,
|
|
37
|
+
'py-3': props.vertical,
|
|
38
|
+
}"
|
|
36
39
|
>
|
|
37
40
|
<TabsIndicator
|
|
38
41
|
class="absolute rounded-full duration-300"
|
|
@@ -46,8 +49,8 @@ const Btn = h('button')
|
|
|
46
49
|
<component
|
|
47
50
|
:is="tab.route ? 'router-link' : Btn"
|
|
48
51
|
:to="tab.route"
|
|
49
|
-
class="flex items-center gap-1.5 text-base text-ink-gray-5 duration-300 ease-in-out hover:text-ink-gray-9
|
|
50
|
-
:class="{ 'py-2.5': props.vertical }"
|
|
52
|
+
class="flex items-center gap-1.5 text-base text-ink-gray-5 duration-300 ease-in-out hover:text-ink-gray-9 data-[state=active]:text-ink-gray-9"
|
|
53
|
+
:class="{ 'px-2.5': props.vertical, 'py-2.5': !props.vertical }"
|
|
51
54
|
>
|
|
52
55
|
<component v-if="tab.icon" :is="tab.icon" class="size-4">
|
|
53
56
|
</component>
|