edvoyui-component-library-test-flight 0.0.92 → 0.0.93
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/dist/EUIButton.vue.d.ts +5 -0
- package/dist/EUIButton.vue.d.ts.map +1 -0
- package/dist/accordion/EUIAccordion.vue.d.ts +2 -2
- package/dist/accordion/EUIAccordion.vue.d.ts.map +1 -1
- package/dist/avatar/EUIAvatar.vue.d.ts +2 -2
- package/dist/avatar/EUIAvatar.vue.d.ts.map +1 -1
- package/dist/checkbox/EUICheckbox.vue.d.ts +3 -3
- package/dist/checkbox/EUICheckbox.vue.d.ts.map +1 -1
- package/dist/datepicker/EUIDatepicker.vue.d.ts +3 -3
- package/dist/datepicker/EUIDatepicker.vue.d.ts.map +1 -1
- package/dist/dropdown/EUIMultiDropdown.vue.d.ts +2 -2
- package/dist/dropdown/EUIMultiDropdown.vue.d.ts.map +1 -1
- package/dist/errorMessage/EUIErrorMessage.vue.d.ts +2 -2
- package/dist/errorMessage/EUIErrorMessage.vue.d.ts.map +1 -1
- package/dist/input/EUIInput.vue.d.ts +2 -2
- package/dist/input/EUIInput.vue.d.ts.map +1 -1
- package/dist/library-vue-ts.cjs.js +69 -23
- package/dist/library-vue-ts.css +1 -1
- package/dist/library-vue-ts.es.js +13911 -10394
- package/dist/library-vue-ts.umd.js +71 -25
- package/dist/loader/EUICircleLoader.vue.d.ts +1 -1
- package/dist/loader/EUICircleLoader.vue.d.ts.map +1 -1
- package/dist/loader/EUICubeLoader.vue.d.ts +1 -1
- package/dist/loader/EUICubeLoader.vue.d.ts.map +1 -1
- package/dist/loader/EUILoader.vue.d.ts +2 -2
- package/dist/loader/EUILoader.vue.d.ts.map +1 -1
- package/dist/loader/EUISquareLoader.vue.d.ts +1 -1
- package/dist/loader/EUISquareLoader.vue.d.ts.map +1 -1
- package/dist/modal/EUIModal.vue.d.ts +2 -2
- package/dist/modal/EUIModal.vue.d.ts.map +1 -1
- package/dist/pillSelect/EUIPillSelect.vue.d.ts +2 -2
- package/dist/pillSelect/EUIPillSelect.vue.d.ts.map +1 -1
- package/dist/popover/EUIPopover.vue.d.ts +2 -2
- package/dist/popover/EUIPopover.vue.d.ts.map +1 -1
- package/dist/radio/EUIRadio.vue.d.ts +2 -2
- package/dist/radio/EUIRadio.vue.d.ts.map +1 -1
- package/dist/searchInput/EUISearch.vue.d.ts +2 -2
- package/dist/searchInput/EUISearch.vue.d.ts.map +1 -1
- package/dist/searchexpand/EUISearchExpand.vue.d.ts +2 -2
- package/dist/searchexpand/EUISearchExpand.vue.d.ts.map +1 -1
- package/dist/searchexpand/EUISearchToggle.vue.d.ts +2 -2
- package/dist/searchexpand/EUISearchToggle.vue.d.ts.map +1 -1
- package/dist/select/EUISelect.vue.d.ts +3 -3
- package/dist/select/EUISelect.vue.d.ts.map +1 -1
- package/dist/selectSearch/EUISelectSearch.vue.d.ts +4 -0
- package/dist/selectSearch/EUISelectSearch.vue.d.ts.map +1 -0
- package/dist/slideover/EUISlideover.vue.d.ts +2 -2
- package/dist/slideover/EUISlideover.vue.d.ts.map +1 -1
- package/dist/stepperTimeline/EUIStepperHorizontal.vue.d.ts +2 -2
- package/dist/stepperTimeline/EUIStepperHorizontal.vue.d.ts.map +1 -1
- package/dist/stepperTimeline/EUIStepperTimeline.vue.d.ts +2 -2
- package/dist/stepperTimeline/EUIStepperTimeline.vue.d.ts.map +1 -1
- package/dist/stepperTimeline/EUIStepperVertical.vue.d.ts +2 -2
- package/dist/stepperTimeline/EUIStepperVertical.vue.d.ts.map +1 -1
- package/dist/table/EUIDashboardTable.vue.d.ts +2 -2
- package/dist/table/EUIDashboardTable.vue.d.ts.map +1 -1
- package/dist/table/EUIPageLimit.vue.d.ts +2 -2
- package/dist/table/EUIPageLimit.vue.d.ts.map +1 -1
- package/dist/table/EUIPagination.vue.d.ts +2 -2
- package/dist/table/EUIPagination.vue.d.ts.map +1 -1
- package/dist/table/EUIStudentPagination.vue.d.ts +2 -2
- package/dist/table/EUIStudentPagination.vue.d.ts.map +1 -1
- package/dist/table/EUITable.vue.d.ts +2 -2
- package/dist/table/EUITable.vue.d.ts.map +1 -1
- package/dist/table/EUITableCheckbox.vue.d.ts +3 -3
- package/dist/table/EUITableCheckbox.vue.d.ts.map +1 -1
- package/dist/table/UCheckbox.vue.d.ts +2 -2
- package/dist/table/UCheckbox.vue.d.ts.map +1 -1
- package/dist/table/UTable.vue.d.ts +2 -2
- package/dist/table/UTable.vue.d.ts.map +1 -1
- package/dist/tabs/EUITabs.vue.d.ts +2 -2
- package/dist/tabs/EUITabs.vue.d.ts.map +1 -1
- package/dist/tag/EUITag.vue.d.ts +2 -2
- package/dist/tag/EUITag.vue.d.ts.map +1 -1
- package/dist/telephone/EUITelephone.vue.d.ts +3 -3
- package/dist/telephone/EUITelephone.vue.d.ts.map +1 -1
- package/dist/textArea/EUITextArea.vue.d.ts +2 -2
- package/dist/textArea/EUITextArea.vue.d.ts.map +1 -1
- package/dist/timeLine/EUITimeLine.vue.d.ts +2 -2
- package/dist/timeLine/EUITimeLine.vue.d.ts.map +1 -1
- package/dist/timeLine/EUITimeLineItem.vue.d.ts +2 -2
- package/dist/timeLine/EUITimeLineItem.vue.d.ts.map +1 -1
- package/dist/toggle/EUIToggle.vue.d.ts +2 -2
- package/dist/toggle/EUIToggle.vue.d.ts.map +1 -1
- package/dist/tooltip/EUITooltip.vue.d.ts +2 -2
- package/dist/tooltip/EUITooltip.vue.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/tabs/EUITabs.vue +67 -59
- package/dist/EUISelectSearch.vue.d.ts +0 -4
- package/dist/EUISelectSearch.vue.d.ts.map +0 -1
- package/dist/button/EUIButton.vue.d.ts +0 -5
- package/dist/button/EUIButton.vue.d.ts.map +0 -1
- /package/src/components/checkbox/{EUICheckbox.stories.ts → EUIcheckbox.stories.ts} +0 -0
- /package/src/components/modal/{EUIModal.stories.ts → EUImodal.stories.ts} +0 -0
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<div
|
|
4
|
-
|
|
3
|
+
<div class="overflow-x-scroll">
|
|
4
|
+
<div
|
|
5
|
+
v-if="tabStyle === 'design'"
|
|
5
6
|
class="flex flex-row items-center justify-between w-full p-2 bg-gray-100 rounded-xl"
|
|
6
7
|
>
|
|
7
8
|
<button
|
|
8
|
-
|
|
9
|
+
v-for="(tab, tabindex) in tabs"
|
|
9
10
|
:key="tabindex"
|
|
10
11
|
:id="`id-${tab.name}`"
|
|
11
12
|
type="button"
|
|
12
13
|
class="[&:not(:focus-visible)]:focus:outline-none relative w-full inline-flex items-center transition-colors duration-100"
|
|
13
14
|
role="tab"
|
|
14
15
|
tabindex="-1"
|
|
15
|
-
|
|
16
|
+
@click="selectTab(tabindex)"
|
|
16
17
|
>
|
|
17
18
|
<div
|
|
18
19
|
class="pointer-events-none absolute inset-0 transition-transform duration-200 transform z-[1] ease-in-out"
|
|
19
20
|
:class="{
|
|
20
|
-
'translate-x-full':
|
|
21
|
-
|
|
22
|
-
'-translate-x-full':
|
|
23
|
-
tabindex > activeTabIndex,
|
|
21
|
+
'translate-x-full': tabindex < activeTabIndex,
|
|
22
|
+
'-translate-x-full': tabindex > activeTabIndex,
|
|
24
23
|
'translate-x-0 rounded-lg bg-gray-600':
|
|
25
|
-
activeTabIndex === tabindex
|
|
24
|
+
activeTabIndex === tabindex,
|
|
26
25
|
}"
|
|
27
26
|
/>
|
|
28
27
|
<span
|
|
@@ -30,59 +29,69 @@
|
|
|
30
29
|
'w-full px-4 py-2 text-sm tracking-wide font-medium capitalize z-10',
|
|
31
30
|
activeTabIndex == tabindex
|
|
32
31
|
? ' text-white'
|
|
33
|
-
: ' text-gray-500 hover:text-gray-600 rounded-lg bg-transparent z-0 transition-colors duration-300 ease-in origin-center'
|
|
32
|
+
: ' text-gray-500 hover:text-gray-600 rounded-lg bg-transparent z-0 transition-colors duration-300 ease-in origin-center',
|
|
34
33
|
]"
|
|
35
34
|
>
|
|
35
|
+
<slot name="title" :tab="tab">
|
|
36
|
+
{{ tab?.name }}
|
|
37
|
+
</slot>
|
|
38
|
+
</span>
|
|
39
|
+
</button>
|
|
40
|
+
</div>
|
|
41
|
+
<div
|
|
42
|
+
v-else-if="tabStyle === 'border'"
|
|
43
|
+
class="flex items-center gap-1 before:bottom-0 before:left-0 before:absolute before:content-[''] before:h-px before:w-full before:bg-gray-200 relative before:-z-[1] z-0 bg-white"
|
|
44
|
+
:class="[
|
|
45
|
+
tabAlign === 'justify'
|
|
46
|
+
? 'justify-between'
|
|
47
|
+
: tabAlign === 'end'
|
|
48
|
+
? 'justify-end'
|
|
49
|
+
: 'justify-start',
|
|
50
|
+
]"
|
|
51
|
+
>
|
|
52
|
+
<button
|
|
53
|
+
v-for="(tab, tabindex) in tabs"
|
|
54
|
+
:key="tabindex"
|
|
55
|
+
role="tab"
|
|
56
|
+
:id="`id-${tab.name}`"
|
|
57
|
+
:class="[
|
|
58
|
+
'px-3 py-1 leading-5 transition-all duration-150 ease-in-out hover:text-gray-800',
|
|
59
|
+
tabSize === 'sm'
|
|
60
|
+
? 'text-sm font-semibold border-b-2'
|
|
61
|
+
: 'text-base font-bold border-b-[3px]',
|
|
62
|
+
activeTabIndex === tabindex
|
|
63
|
+
? 'border-gray-900 text-gray-900'
|
|
64
|
+
: 'border-transparent text-gray-500',
|
|
65
|
+
]"
|
|
66
|
+
@click="selectTab(tabindex)"
|
|
67
|
+
>
|
|
36
68
|
<slot name="title" :tab="tab">
|
|
37
69
|
{{ tab?.name }}
|
|
38
70
|
</slot>
|
|
39
|
-
</span>
|
|
40
71
|
</button>
|
|
41
72
|
</div>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
class="flex items-center gap-1 before:bottom-0 before:left-0 before:absolute before:content-[''] before:h-px before:w-full before:bg-gray-200 relative before:-z-[1] z-0 bg-white"
|
|
46
|
-
:class="[tabAlign === 'justify' ? 'justify-between' : tabAlign === 'end' ? 'justify-end' : 'justify-start']"
|
|
47
|
-
>
|
|
48
|
-
<button
|
|
49
|
-
v-for="(tab, tabindex) in tabs"
|
|
50
|
-
:key="tabindex"
|
|
51
|
-
role="tab"
|
|
52
|
-
:id="`id-${tab.name}`"
|
|
53
|
-
:class="['px-3 py-1 leading-5 transition-all duration-150 ease-in-out hover:text-gray-800',
|
|
54
|
-
tabSize === 'sm' ? 'text-sm font-semibold border-b-2' : 'text-base font-bold border-b-[3px]',
|
|
55
|
-
activeTabIndex === tabindex
|
|
56
|
-
? 'border-gray-900 text-gray-900'
|
|
57
|
-
: 'border-transparent text-gray-500']"
|
|
58
|
-
@click="selectTab(tabindex)"
|
|
59
|
-
>
|
|
60
|
-
<slot name="title" :tab="tab">
|
|
61
|
-
{{ tab?.name }}
|
|
62
|
-
</slot>
|
|
63
|
-
</button>
|
|
64
|
-
</div>
|
|
65
|
-
<div
|
|
66
|
-
v-else
|
|
67
|
-
class="flex items-center gap-1 p-2 transition-all duration-100"
|
|
68
|
-
>
|
|
69
|
-
<button
|
|
70
|
-
v-for="(tab, tabindex) in tabs"
|
|
71
|
-
:key="tabindex"
|
|
72
|
-
role="tab"
|
|
73
|
-
:id="`id-${tab.name}`"
|
|
74
|
-
class="px-4 py-1 text-sm font-semibold transition-colors duration-150 ease-in-out border rounded-full"
|
|
75
|
-
:class="
|
|
76
|
-
activeTabIndex === tabindex
|
|
77
|
-
? 'shadow-lg shadow-gray-100 bg-white border-gray-200 focus-within:border-purple-600 text-gray-900'
|
|
78
|
-
: 'border-white hover:bg-gray-50 text-gray-700'
|
|
79
|
-
"
|
|
80
|
-
@click="selectTab(tabindex)"
|
|
73
|
+
<div
|
|
74
|
+
v-else
|
|
75
|
+
class="flex items-center gap-1 p-2 transition-all duration-100"
|
|
81
76
|
>
|
|
82
|
-
<
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
<button
|
|
78
|
+
v-for="(tab, tabindex) in tabs"
|
|
79
|
+
:key="tabindex"
|
|
80
|
+
role="tab"
|
|
81
|
+
:id="`id-${tab.name}`"
|
|
82
|
+
class="px-4 py-1 text-sm font-semibold transition-colors duration-150 ease-in-out border rounded-full"
|
|
83
|
+
:class="
|
|
84
|
+
activeTabIndex === tabindex
|
|
85
|
+
? 'shadow-lg shadow-gray-100 bg-white border-gray-200 focus-within:border-purple-600 text-gray-900'
|
|
86
|
+
: 'border-white hover:bg-gray-50 text-gray-700'
|
|
87
|
+
"
|
|
88
|
+
@click="selectTab(tabindex)"
|
|
89
|
+
>
|
|
90
|
+
<slot name="title" :tab="tab">
|
|
91
|
+
{{ tab?.name }}
|
|
92
|
+
</slot>
|
|
93
|
+
</button>
|
|
94
|
+
</div>
|
|
86
95
|
</div>
|
|
87
96
|
<div :class="['py-2 text-base font-normal text-gray-700', contentClass]">
|
|
88
97
|
<slot name="content" :active-tab="tabs[activeTabIndex]">
|
|
@@ -103,10 +112,10 @@ interface Tab {
|
|
|
103
112
|
const props = defineProps<{
|
|
104
113
|
tabs: Tab[];
|
|
105
114
|
defaultActiveIndex?: number;
|
|
106
|
-
tabStyle: "rounded" | "border" |
|
|
107
|
-
contentClass?: string[] | string
|
|
108
|
-
tabSize?: "sm" | "md"
|
|
109
|
-
tabAlign?:
|
|
115
|
+
tabStyle: "rounded" | "border" | "design";
|
|
116
|
+
contentClass?: string[] | string;
|
|
117
|
+
tabSize?: "sm" | "md";
|
|
118
|
+
tabAlign?: "start" | "justify" | "end";
|
|
110
119
|
}>();
|
|
111
120
|
|
|
112
121
|
const emit = defineEmits<{
|
|
@@ -124,7 +133,6 @@ watch(
|
|
|
124
133
|
() => props.defaultActiveIndex,
|
|
125
134
|
(newIndex) => {
|
|
126
135
|
activeTabIndex.value = newIndex ?? 0;
|
|
127
|
-
|
|
128
136
|
}
|
|
129
137
|
);
|
|
130
138
|
</script>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "/Volumes/work/repos/edvoy-ui-v2/src/components/selectSearch/EUISelectSearch.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/selectSearch/EUISelectSearch.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
-
export default _sfc_main;
|
|
4
|
-
//# sourceMappingURL=EUISelectSearch.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EUISelectSearch.vue.d.ts","sourceRoot":"","sources":["../src/components/selectSearch/EUISelectSearch.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oHAAoH,CAAC;AAC3I,cAAc,oHAAoH,CAAC;AACnI,eAAe,SAAS,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "/Volumes/work/repos/edvoy-ui-v2/src/components/button/EUIButton.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/button/EUIButton.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
-
import "/Volumes/work/repos/edvoy-ui-v2/src/components/button/EUIButton.vue?vue&type=style&index=0&lang.scss";
|
|
4
|
-
export default _sfc_main;
|
|
5
|
-
//# sourceMappingURL=EUIButton.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EUIButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/button/EUIButton.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,wGAAwG,CAAC;AAC/H,cAAc,wGAAwG,CAAC;AACvH,OAAO,sGAAsG,CAAC;AAC9G,eAAe,SAAS,CAAC"}
|
|
File without changes
|
|
File without changes
|