edvoyui-component-library-test-flight 0.0.112 → 0.0.114

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.
@@ -1,5 +1,5 @@
1
1
  export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/tabs/EUITabs.vue?vue&type=script&setup=true&lang.ts";
2
- import "/Volumes/work/repos/edvoy-ui-v2/src/components/tabs/EUITabs.vue?vue&type=style&index=0&scoped=c12052b6&lang.css";
2
+ import "/Volumes/work/repos/edvoy-ui-v2/src/components/tabs/EUITabs.vue?vue&type=style&index=0&scoped=e35126f7&lang.css";
3
3
  declare const _default: any;
4
4
  export default _default;
5
5
  //# sourceMappingURL=EUITabs.vue.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "edvoyui-component-library-test-flight",
3
3
  "private": false,
4
- "version": "0.0.112",
4
+ "version": "0.0.114",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist/",
@@ -1,13 +1,13 @@
1
1
  <template>
2
- <h1
2
+ <div class="max-w-screen-xl mx-auto bg-white">
3
+ <h1
3
4
  class="my-10 text-2xl font-bold text-center text-gray-900 underline underline-offset-8 decoration-green-400 decoration-wavy"
4
5
  >
5
6
  Edvoy User Interface
6
7
  </h1>
8
+ </div>
7
9
  <!-- <div class="ml-[200px]">
8
- <EUISearchExpand
9
-
10
- v-model:model-value="searchInput"
10
+ <EUISearchExpand v-model:model-value="searchInput"
11
11
  :search-sync="showSearch"
12
12
  @input="seachStudent($event?.target?.value)"
13
13
  @update:modelValue="seachStudent($event?.target?.value)"
@@ -15,6 +15,7 @@
15
15
 
16
16
  </template>
17
17
  <script setup lang="ts">
18
+
18
19
  // import { ref } from 'vue';
19
20
 
20
21
  // import EUISearchExpand from './searchexpand/EUISearchExpand.vue'
@@ -469,6 +470,20 @@
469
470
  {{ activeTab }}
470
471
  </template>
471
472
  </EUITabs>
473
+
474
+ <div class="bg-white">
475
+ <EUITabs tab-style="design" :tabs="tabData" :defaultActiveIndex="0">
476
+ <template #title="{ tab,tabIndex, activeTab }">
477
+ {{ tab.name }}
478
+ <span class="rounded-3xl px-1.5 text-xss font-medium uppercase leading-none inline-flex items-center h-4 transition-colors duration-100 ease-in-out" :class="[tabIndex === activeTab ? 'text-gray-100 bg-gray-600' : 'bg-gray-300 text-gray-600']">{{ 28399 }}</span>
479
+ </template>
480
+ <template #content="{ activeTab }">
481
+ <div class="p-2 text-sm">
482
+ {{ activeTab }}
483
+ </div>
484
+ </template>
485
+ </EUITabs>
486
+ </div>
472
487
  </div>
473
488
 
474
489
  <div
@@ -2,35 +2,37 @@
2
2
  <div>
3
3
  <div
4
4
  v-if="tabStyle === 'design'"
5
- class="flex flex-row items-center justify-between w-full p-2 bg-gray-100 rounded-xl"
5
+ class="inline-flex flex-row items-center justify-start px-[0.25rem] min-h-[34px] mb-0.5 bg-gray-100 rounded-[0.625rem] ring-1 ring-gray-200/75 gap-2"
6
6
  >
7
+ <template v-for="(tab, tabindex) in tabs" :key="tabindex">
7
8
  <button
8
- v-for="(tab, tabindex) in tabs"
9
- :disabled="tab?.disabled"
10
- :key="tabindex"
11
- :id="`id-${tab.name}`"
12
- type="button"
13
- class="[&:not(:focus-visible)]:focus:outline-none relative w-full inline-flex items-center transition-colors duration-100"
14
- :class="tab?.disabled ? ' cursor-not-allowed ' : ''"
9
+ type="button"
10
+ :id="`id-${tab.name}`"
11
+ :disabled="tab?.disabled"
12
+ :title="tab?.toolTipText"
13
+ class="[&:not(:focus-visible)]:focus:outline-none relative w-max inline-flex items-center transition-colors duration-100 h-7"
14
+ :class="[
15
+ tab?.disabled ? ' cursor-not-allowed ' : '',
16
+ isHighlighedActivetab ? ' rounded-t-lg !bg-[#EDE9FE] ' : '',
17
+ ]"
15
18
  role="tab"
16
19
  tabindex="-1"
17
20
  @click="selectTab(tabindex)"
18
- :title="tab?.toolTipText"
19
21
  >
20
22
  <div
21
23
  class="pointer-events-none absolute inset-0 transition-transform duration-200 transform z-[1] ease-in-out"
22
24
  :class="{
23
25
  'translate-x-full': tabindex < activeTabIndex,
24
26
  '-translate-x-full': tabindex > activeTabIndex,
25
- 'translate-x-0 rounded-lg bg-gray-600': activeTabIndex === tabindex,
27
+ 'translate-x-0 rounded-lg bg-white ring-1 ring-gray-200/75': activeTabIndex === tabindex,
26
28
  }"
27
29
  />
28
30
  <span
29
31
  :class="[
30
- 'w-full px-4 py-2 text-sm tracking-wide font-medium capitalize z-10',
31
- activeTabIndex == tabindex
32
- ? ' 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
+ 'w-full px-2 py-1 text-xs tracking-wide z-10 flex items-center justify-start gap-2',
33
+ activeTabIndex === tabindex
34
+ ? ' text-gray-800 font-semibold'
35
+ : ' text-gray-600 font-medium hover:text-gray-600 rounded-lg bg-transparent z-0 transition-colors duration-300 ease-in origin-center',
34
36
  ]"
35
37
  >
36
38
  <slot
@@ -43,6 +45,11 @@
43
45
  </slot>
44
46
  </span>
45
47
  </button>
48
+
49
+ <div v-if="tabindex !== tabs.length -1" :class="['self-stretch w-px h-4 my-2',
50
+ tabindex === activeTabIndex - 1 ? 'bg-transparent' : activeTabIndex === tabindex ? 'bg-transparent': 'bg-gray-300']"></div>
51
+ </template>
52
+
46
53
  </div>
47
54
  <div
48
55
  v-else-if="tabStyle === 'border'"
@@ -72,6 +79,7 @@
72
79
  ? 'border-gray-900 text-gray-900'
73
80
  : 'border-transparent text-gray-500',
74
81
  tab?.disabled ? ' cursor-not-allowed ' : '',
82
+ isHighlighedActivetab&&activeTabIndex === tabindex ? ' rounded-t-lg !bg-[#EDE9FE]' : '',
75
83
  ]"
76
84
  @click="selectTab(tabindex)"
77
85
  >
@@ -106,6 +114,7 @@
106
114
  ? 'border-purple-800 text-purple-800 bg-white z-10 rounded-t-lg shadow-[0px_2px_4px_0px_rgba(55,65,81,0.1)]'
107
115
  : 'border-transparent text-gray-500 z-0',
108
116
  tab?.disabled ? ' cursor-not-allowed ' : '',
117
+ isHighlighedActivetab&&activeTabIndex === tabindex ? ' rounded-t-lg !bg-[#EDE9FE]' : '',
109
118
  ]"
110
119
  @click="selectTab(tabindex)"
111
120
  >
@@ -135,6 +144,7 @@
135
144
  ? 'shadow-lg shadow-gray-100 bg-white border-gray-200 focus-within:border-purple-600 text-gray-900'
136
145
  : 'border-white hover:bg-gray-50 text-gray-700',
137
146
  tab?.disabled ? ' cursor-not-allowed ' : '',
147
+ isHighlighedActivetab&&activeTabIndex === tabindex ? ' rounded-t-lg !bg-[#EDE9FE]' : '',
138
148
  ]"
139
149
  @click="selectTab(tabindex)"
140
150
  >
@@ -182,6 +192,7 @@ const props = defineProps<{
182
192
  contentClass?: string[] | string;
183
193
  tabSize?: "sm" | "md";
184
194
  tabAlign?: "start" | "justify" | "end";
195
+ isHighlighedActivetab?: boolean;
185
196
  }>();
186
197
 
187
198
  const emit = defineEmits<{
package/src/data/tab.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  export default [
2
2
  {
3
- name: "About",
3
+ name: "Supporting Documents",
4
4
  active: true,
5
5
  content:
6
6
  "About Lorem ipsum dolor, sit amet consectetur adipisicing elit. In laudantium labore error repellendus similique, quibusdam et mollitia iure nesciunt? Impedit ut veniam repudiandae omnis eligendi quis dignissimos animi, rem officia!",
7
7
  priority: "Choose the status and priority for this student",
8
8
  },
9
9
  {
10
- name: "Application",
10
+ name: "English Proofs",
11
11
  active: false,
12
12
  content:
13
13
  "Application Lorem ipsum dolor, sit amet consectetur adipisicing elit. In laudantium labore error repellendus similique, quibusdam et mollitia iure nesciunt? Impedit ut veniam repudiandae omnis eligendi quis dignissimos animi, rem officia!",
@@ -17,17 +17,24 @@ export default [
17
17
  },
18
18
  },
19
19
  {
20
- name: "Notes",
20
+ name: "Deposits",
21
21
  active: false,
22
22
  content:
23
23
  "Notes Lorem ipsum dolor, sit amet consectetur adipisicing elit. In laudantium labore error repellendus similique, quibusdam et mollitia iure nesciunt? Impedit ut veniam repudiandae omnis eligendi quis dignissimos animi, rem officia!",
24
24
  notes: "Here you can add some notes for yourself!",
25
25
  },
26
26
  {
27
- name: "Task",
27
+ name: "Interview",
28
28
  active: false,
29
29
  content:
30
30
  "Task Lorem ipsum dolor, sit amet consectetur adipisicing elit. In laudantium labore error repellendus similique, quibusdam et mollitia iure nesciunt? Impedit ut veniam repudiandae omnis eligendi quis dignissimos animi, rem officia!",
31
31
  task: "You can add your tasks here!",
32
32
  },
33
+ {
34
+ name: "Pre-requisite Course",
35
+ active: false,
36
+ content:
37
+ "Pre-requisite Course Lorem ipsum dolor, sit amet consectetur adipisicing elit. In laudantium labore error repellendus similique, quibusdam et mollitia iure nesciunt? Impedit ut veniam repudiandae omnis eligendi quis dignissimos animi, rem officia!",
38
+ task: "You can add your tasks here!",
39
+ },
33
40
  ];