edvoyui-component-library-test-flight 0.0.175 → 0.0.176

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/modal/EUIModal.vue?vue&type=script&lang.ts";
2
- import "/Volumes/work/repos/edvoy-ui-v2/src/components/modal/EUIModal.vue?vue&type=style&index=0&scoped=63fa538d&lang.scss";
2
+ import "/Volumes/work/repos/edvoy-ui-v2/src/components/modal/EUIModal.vue?vue&type=style&index=0&scoped=e1811799&lang.scss";
3
3
  declare const _default: any;
4
4
  export default _default;
5
5
  //# sourceMappingURL=EUIModal.vue.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/slideover/EUISlideover.vue?vue&type=script&lang.ts";
2
- import "/Volumes/work/repos/edvoy-ui-v2/src/components/slideover/EUISlideover.vue?vue&type=style&index=0&scoped=694773f1&lang.scss";
2
+ import "/Volumes/work/repos/edvoy-ui-v2/src/components/slideover/EUISlideover.vue?vue&type=style&index=0&scoped=d575311b&lang.scss";
3
3
  declare const _default: any;
4
4
  export default _default;
5
5
  //# sourceMappingURL=EUISlideover.vue.d.ts.map
@@ -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=c7325a13&lang.css";
2
+ import "/Volumes/work/repos/edvoy-ui-v2/src/components/tabs/EUITabs.vue?vue&type=style&index=0&scoped=fac4b91a&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.175",
4
+ "version": "0.0.176",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist/",
@@ -14,7 +14,7 @@
14
14
  @click.self="closeModal"
15
15
  >
16
16
  <div
17
- class="backdrop fixed inset-0 z-[-1] w-screen h-screen bg-black/25 pointer-events-none overflow-hidden cursor-auto backdrop-blur-md"
17
+ class="backdrop fixed inset-0 z-[-1] w-screen h-screen bg-black/25 pointer-events-none overflow-hidden cursor-auto backdrop-blur-sm"
18
18
  ></div>
19
19
  <div
20
20
  :class="[
@@ -10,7 +10,7 @@
10
10
  @click.self="closeSlideover"
11
11
  >
12
12
  <div
13
- class="backdrop fixed inset-0 z-[-1] w-screen h-screen bg-black/25 pointer-events-auto overflow-hidden cursor-auto backdrop-blur-md"
13
+ class="backdrop fixed inset-0 z-[-1] w-screen h-screen bg-black/25 pointer-events-auto overflow-hidden cursor-auto backdrop-blur-sm"
14
14
  ></div>
15
15
  <div
16
16
  :class="[
@@ -1,56 +1,85 @@
1
1
  <template>
2
2
  <div>
3
- <div
3
+ <div
4
4
  v-if="tabStyle === 'design'"
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 overflow-x-auto scrollbar--hide whitespace-nowrap max-w-full"
6
- >
7
- <template v-for="(tab, tabindex) in tabs" :key="tabindex">
8
- <button
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"
5
+ class="inline-flex flex-row items-center justify-start mb-0.5 ring-1 ring-gray-200/75 gap-2 overflow-x-auto scrollbar--hide whitespace-nowrap max-w-full"
14
6
  :class="[
15
- tab?.disabled ? ' cursor-not-allowed ' : '',
16
- isHighlighedActivetab ? ' rounded-t-lg !bg-[#EDE9FE] ' : '',
17
- 'flex-shrink-0'
18
- ]"
19
- role="tab"
20
- tabindex="-1"
21
- @click="selectTab(tabindex)"
22
- >
23
- <div
24
- class="pointer-events-none absolute inset-0 transition-transform duration-200 transform z-[1] ease-in-out"
25
- :class="{
26
- 'translate-x-full': tabindex < activeTabIndex,
27
- '-translate-x-full': tabindex > activeTabIndex,
28
- 'translate-x-0 rounded-lg bg-white ring-1 ring-gray-200/75': activeTabIndex === tabindex,
29
- }"
30
- />
31
- <span
7
+ tabSize === 'sm'
8
+ ? 'min-h-[34px] rounded-[0.625rem] px-[0.25rem] bg-gray-100'
9
+ : 'min-h-10 rounded-3xl px-1.5 ring-inset bg-white',
10
+ ]"
11
+ >
12
+ <template v-for="(tab, tabindex) in tabs" :key="tabindex">
13
+ <button
14
+ type="button"
15
+ :id="`id-${tab.name}`"
16
+ :disabled="tab?.disabled"
17
+ :title="tab?.toolTipText"
18
+ class="[&:not(:focus-visible)]:focus:outline-none relative w-max inline-flex items-center transition-colors duration-100"
32
19
  :class="[
33
- 'w-full px-2 py-1 text-xs tracking-wide z-10 flex items-center justify-start gap-2',
34
- activeTabIndex === tabindex
35
- ? ' text-gray-800 font-semibold'
36
- : ' text-gray-600 font-medium hover:text-gray-600 rounded-lg bg-transparent z-0 transition-colors duration-300 ease-in origin-center',
20
+ tab?.disabled ? ' cursor-not-allowed ' : '',
21
+ isHighlighedActivetab ? ' rounded-t-lg !bg-[#EDE9FE] ' : '',
22
+ tabSize === 'sm' ? 'flex-shrink-0 h-7' : 'flex-1 h-7',
37
23
  ]"
24
+ role="tab"
25
+ tabindex="-1"
26
+ @click="selectTab(tabindex)"
38
27
  >
39
- <slot
40
- name="title"
41
- :tab="tab"
42
- :tabIndex="tabindex"
43
- :activeTab="activeTabIndex"
28
+ <div
29
+ class="pointer-events-none absolute inset-0 transition-transform duration-200 transform z-[1] ease-in-out"
30
+ :class="[
31
+ {
32
+ 'translate-x-full': tabindex < activeTabIndex,
33
+ '-translate-x-full': tabindex > activeTabIndex,
34
+ 'translate-x-0': activeTabIndex === tabindex,
35
+ },
36
+ activeTabIndex === tabindex
37
+ ? tabSize === 'sm'
38
+ ? 'rounded-lg bg-white ring-1 ring-gray-200/75'
39
+ : 'rounded-3xl bg-violet-100'
40
+ : 'bg-transparent',
41
+ ]"
42
+ />
43
+ <span
44
+ :class="[
45
+ 'w-full py-1 text-xs tracking-wide z-10 flex items-center justify-start gap-2',
46
+ activeTabIndex === tabindex
47
+ ? ' font-semibold'
48
+ : ' text-gray-600 font-medium hover:text-gray-600 bg-transparent z-0 transition-colors duration-300 ease-in origin-center',
49
+ activeTabIndex === tabindex
50
+ ? tabSize === 'sm'
51
+ ? 'text-gray-800'
52
+ : 'text-violet-500'
53
+ : '',
54
+ tabSize === 'sm'
55
+ ? 'text-xs rounded-lg px-2'
56
+ : 'text-sm/6 rounded-3xl px-5',
57
+ ]"
44
58
  >
45
- {{ tab?.name }}
46
- </slot>
47
- </span>
48
- </button>
49
-
50
- <div v-if="tabindex !== tabs.length -1" :class="['self-stretch w-px h-4 my-2',
51
- tabindex === activeTabIndex - 1 ? 'bg-transparent' : activeTabIndex === tabindex ? 'bg-transparent': 'bg-gray-300']"></div>
52
- </template>
59
+ <slot
60
+ name="title"
61
+ :tab="tab"
62
+ :tabIndex="tabindex"
63
+ :activeTab="activeTabIndex"
64
+ >
65
+ {{ tab?.name }}
66
+ </slot>
67
+ </span>
68
+ </button>
53
69
 
70
+ <div
71
+ v-if="tabindex !== tabs.length - 1"
72
+ :class="[
73
+ 'self-stretch w-px h-4',
74
+ tabSize === 'sm' ? 'my-2' : 'my-3',
75
+ tabindex === activeTabIndex - 1
76
+ ? 'bg-transparent'
77
+ : activeTabIndex === tabindex
78
+ ? 'bg-transparent'
79
+ : 'bg-gray-300',
80
+ ]"
81
+ ></div>
82
+ </template>
54
83
  </div>
55
84
  <div
56
85
  v-else-if="tabStyle === 'border'"
@@ -80,8 +109,10 @@
80
109
  ? 'border-gray-900 text-gray-900'
81
110
  : 'border-transparent text-gray-500',
82
111
  tab?.disabled ? ' cursor-not-allowed ' : '',
83
- isHighlighedActivetab&&activeTabIndex === tabindex ? ' rounded-t-lg !bg-[#EDE9FE]' : '',
84
- 'flex-shrink-0'
112
+ isHighlighedActivetab && activeTabIndex === tabindex
113
+ ? ' rounded-t-lg !bg-[#EDE9FE]'
114
+ : '',
115
+ 'flex-shrink-0',
85
116
  ]"
86
117
  @click="selectTab(tabindex)"
87
118
  >
@@ -116,8 +147,10 @@
116
147
  ? 'border-purple-800 text-purple-800 bg-white z-10 rounded-t-lg shadow-[0px_2px_4px_0px_rgba(55,65,81,0.1)]'
117
148
  : 'border-transparent text-gray-500 z-0',
118
149
  tab?.disabled ? ' cursor-not-allowed ' : '',
119
- isHighlighedActivetab&&activeTabIndex === tabindex ? ' rounded-t-lg !bg-[#EDE9FE]' : '',
120
- 'flex-shrink-0'
150
+ isHighlighedActivetab && activeTabIndex === tabindex
151
+ ? ' rounded-t-lg !bg-[#EDE9FE]'
152
+ : '',
153
+ 'flex-shrink-0',
121
154
  ]"
122
155
  @click="selectTab(tabindex)"
123
156
  >
@@ -146,8 +179,10 @@
146
179
  ? 'shadow-lg shadow-gray-100 bg-white border-gray-200 focus-within:border-purple-600 text-gray-900'
147
180
  : 'border-white hover:bg-gray-50 text-gray-700',
148
181
  tab?.disabled ? ' cursor-not-allowed ' : '',
149
- isHighlighedActivetab&&activeTabIndex === tabindex ? ' rounded-t-lg !bg-[#EDE9FE]' : '',
150
- 'flex-shrink-0'
182
+ isHighlighedActivetab && activeTabIndex === tabindex
183
+ ? ' rounded-t-lg !bg-[#EDE9FE]'
184
+ : '',
185
+ 'flex-shrink-0',
151
186
  ]"
152
187
  @click="selectTab(tabindex)"
153
188
  >
@@ -172,8 +207,8 @@
172
207
  },
173
208
  ]"
174
209
  >
175
- {{ tabs[activeTabIndex]?.content }}
176
- </div>
210
+ {{ tabs[activeTabIndex]?.content }}
211
+ </div>
177
212
  </slot>
178
213
  </div>
179
214
  </template>
@@ -207,7 +242,7 @@ const activeTabIndex = ref(props.defaultActiveIndex ?? 0);
207
242
 
208
243
  const selectTab = (index: number) => {
209
244
  activeTabIndex.value = index;
210
- emit("update:defaultActiveIndex", activeTabIndex.value );
245
+ emit("update:defaultActiveIndex", activeTabIndex.value);
211
246
  emit("update:activeTab", props.tabs[activeTabIndex.value]);
212
247
  };
213
248
 
@@ -215,8 +250,9 @@ watch(
215
250
  () => props.defaultActiveIndex,
216
251
  (newIndex) => {
217
252
  activeTabIndex.value = newIndex ?? 0;
218
- },{
219
- immediate:true
253
+ },
254
+ {
255
+ immediate: true,
220
256
  }
221
257
  );
222
258
  </script>