frappe-ui 0.1.227 → 0.1.229
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
|
@@ -12,7 +12,7 @@ import { h } from 'vue'
|
|
|
12
12
|
|
|
13
13
|
const props = defineProps<TabProps>()
|
|
14
14
|
|
|
15
|
-
const indicatorXCss = `left-0 bottom-0 h-[
|
|
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
18
|
const indicatorYCss = `right-0 w-[1px] h-[--reka-tabs-indicator-size] transition-[height,transform]
|
|
@@ -26,12 +26,13 @@ const Btn = h('button')
|
|
|
26
26
|
<template>
|
|
27
27
|
<TabsRoot
|
|
28
28
|
:as="props.as"
|
|
29
|
-
class="data-[orientation=vertical]:flex"
|
|
29
|
+
class="flex flex-1 overflow-hidden flex-col data-[orientation=vertical]:flex-row [&_[role='tabpanel']:not([hidden])]:flex [&_[role='tabpanel']:not([hidden])]:grow"
|
|
30
30
|
:orientation="props.vertical ? 'vertical' : 'horizontal'"
|
|
31
31
|
:default-value="props.tabs[0].label"
|
|
32
32
|
>
|
|
33
33
|
<TabsList
|
|
34
|
-
class="relative flex data-[orientation=vertical]:flex-col p-1 border-b
|
|
34
|
+
class="relative flex data-[orientation=vertical]:flex-col p-1 border-b data-[orientation=vertical]:border-r"
|
|
35
|
+
:class="{ 'overflow-auto': !props.vertical }"
|
|
35
36
|
>
|
|
36
37
|
<TabsIndicator
|
|
37
38
|
class="absolute rounded-full duration-300"
|
|
@@ -46,7 +47,7 @@ const Btn = h('button')
|
|
|
46
47
|
:is="tab.route ? 'router-link' : Btn"
|
|
47
48
|
:to="tab.route"
|
|
48
49
|
class="flex items-center gap-1.5 text-base text-ink-gray-5 duration-300 ease-in-out hover:text-ink-gray-9 p-2.5 data-[state=active]:text-ink-gray-9"
|
|
49
|
-
:class="{ 'py-2.5': props.vertical
|
|
50
|
+
:class="{ 'py-2.5': props.vertical }"
|
|
50
51
|
>
|
|
51
52
|
<component v-if="tab.icon" :is="tab.icon" class="size-4">
|
|
52
53
|
</component>
|
|
@@ -58,7 +59,9 @@ const Btn = h('button')
|
|
|
58
59
|
</TabsList>
|
|
59
60
|
|
|
60
61
|
<TabsContent v-for="(tab, i) in props.tabs" :value="i">
|
|
61
|
-
<
|
|
62
|
+
<div class="flex flex-col flex-1 grow">
|
|
63
|
+
<slot name="tab-panel" v-bind="{ tab }" />
|
|
64
|
+
</div>
|
|
62
65
|
</TabsContent>
|
|
63
66
|
</TabsRoot>
|
|
64
67
|
</template>
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
:y="l.y"
|
|
13
13
|
:w="l.w"
|
|
14
14
|
:h="l.h"
|
|
15
|
+
:min-w="l.minW"
|
|
16
|
+
:min-h="l.minH"
|
|
17
|
+
:max-w="l.maxW"
|
|
18
|
+
:max-h="l.maxH"
|
|
15
19
|
>
|
|
16
20
|
<slot
|
|
17
21
|
v-if="layoutReady"
|
|
@@ -22,9 +26,23 @@
|
|
|
22
26
|
:y="l.y"
|
|
23
27
|
:w="l.w"
|
|
24
28
|
:h="l.h"
|
|
29
|
+
:min-w="l.minW"
|
|
30
|
+
:min-h="l.minH"
|
|
31
|
+
:max-w="l.maxW"
|
|
32
|
+
:max-h="l.maxH"
|
|
25
33
|
>
|
|
26
34
|
<pre class="h-full w-full rounded bg-surface-white p-4 shadow">{{
|
|
27
|
-
{
|
|
35
|
+
{
|
|
36
|
+
i: l.i,
|
|
37
|
+
x: l.x,
|
|
38
|
+
y: l.y,
|
|
39
|
+
w: l.w,
|
|
40
|
+
h: l.h,
|
|
41
|
+
minW: l.minW,
|
|
42
|
+
minH: l.minH,
|
|
43
|
+
maxW: l.maxW,
|
|
44
|
+
maxH: l.maxH,
|
|
45
|
+
}
|
|
28
46
|
}}</pre>
|
|
29
47
|
</slot>
|
|
30
48
|
</GridItem>
|
package/src/index.ts
CHANGED
|
@@ -65,7 +65,6 @@ export { default as FrappeUIProvider } from './components/Provider/FrappeUIProvi
|
|
|
65
65
|
export * from './components/Sidebar/index.ts'
|
|
66
66
|
export { default as ConfirmDialog } from './components/ConfirmDialog.vue'
|
|
67
67
|
|
|
68
|
-
|
|
69
68
|
// grid layout
|
|
70
69
|
export { default as GridLayout } from './components/VueGridLayout/Layout.vue'
|
|
71
70
|
|
|
@@ -90,6 +89,7 @@ export { dayjsLocal, dayjs } from './utils/dayjs'
|
|
|
90
89
|
export * from './utils/useFileUpload'
|
|
91
90
|
export * from './utils/theme'
|
|
92
91
|
export * from './components/TextEditor/extensions/image'
|
|
92
|
+
export * from './components/TextEditor/extensions/suggestion'
|
|
93
93
|
|
|
94
94
|
// old data-fetching: resources
|
|
95
95
|
export * from './resources/index.ts'
|