classcard-ui 0.2.442 → 0.2.446

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.442",
3
+ "version": "0.2.446",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,26 +1,28 @@
1
1
  <template>
2
- <div class="sticky top-0 z-10 bg-white">
3
- <div
4
- class="flex w-full flex-col items-start justify-between pt-4 pb-1 sm:flex-row sm:items-center"
5
- >
6
- <div>
7
- <h2
8
- class="mb-1 text-xl font-bold leading-7 text-gray-900 sm:truncate sm:text-xl"
9
- >
10
- {{ title }}
11
- </h2>
12
- </div>
13
- <div class="justify-self-end">
14
- <slot></slot>
15
- <div v-if="buttonType" class="flex pb-2 lg:mt-0 lg:ml-4">
16
- <span class="sm:ml-3">
17
- <c-button
18
- :label="buttonType.label"
19
- :icon="buttonType.icon"
20
- :type="buttonType.type"
21
- @action="emitAction"
22
- ></c-button>
23
- </span>
2
+ <div>
3
+ <div class="sticky top-0 z-10 bg-transparent backdrop-blur-xl">
4
+ <div
5
+ class="flex w-full flex-col items-start justify-between pt-4 pb-1 sm:flex-row sm:items-center"
6
+ >
7
+ <div>
8
+ <h2
9
+ class="mb-1 text-xl font-bold leading-7 text-gray-900 sm:truncate sm:text-xl"
10
+ >
11
+ {{ title }}
12
+ </h2>
13
+ </div>
14
+ <div class="justify-self-end">
15
+ <slot></slot>
16
+ <div v-if="buttonType" class="flex pb-2 lg:mt-0 lg:ml-4">
17
+ <span class="sm:ml-3">
18
+ <c-button
19
+ :label="buttonType.label"
20
+ :icon="buttonType.icon"
21
+ :type="buttonType.type"
22
+ @action="emitAction"
23
+ ></c-button>
24
+ </span>
25
+ </div>
24
26
  </div>
25
27
  </div>
26
28
  </div>
@@ -6,7 +6,7 @@
6
6
  <select
7
7
  v-model="activeTab"
8
8
  @change="switchTabForMobile($event.target.selectedIndex)"
9
- class="block w-full focus:ring-indigo-500 focus:border-indigo-500 border-gray-300 rounded-md"
9
+ class="block w-full rounded-md border-gray-300 focus:border-indigo-500 focus:ring-indigo-500"
10
10
  >
11
11
  <option v-for="tab in tabs" :key="tab.text">{{ tab.text }}</option>
12
12
  </select>
@@ -24,9 +24,9 @@
24
24
  :class="
25
25
  activeTab == tab.text
26
26
  ? 'border-indigo-600 text-indigo-700 hover:text-indigo-800'
27
- : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'
27
+ : 'border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700'
28
28
  "
29
- class="cursor-pointer group inline-flex border-b-2 items-center py-4 px-1 font-medium text-sm whitespace-nowrap"
29
+ class="group inline-flex cursor-pointer items-center whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium"
30
30
  >
31
31
  <c-icon
32
32
  v-if="tab.icon"
@@ -41,9 +41,7 @@
41
41
  ></c-icon>
42
42
  <span
43
43
  :class="
44
- activeTab == tab.text
45
- ? 'text-indigo-700'
46
- : 'text-gray-500 hover:text-gray-700'
44
+ activeTab == tab.text ? 'text-indigo-700' : 'text-gray-500 hover:text-gray-700'
47
45
  "
48
46
  >
49
47
  <slot :name="tabHeadSlotName(tab.text)"></slot>{{ tab.text }}
@@ -52,7 +50,10 @@
52
50
  </nav>
53
51
  </div>
54
52
  <div>
55
- <slot :name="tabPanelSlotName"></slot>
53
+ <div v-for="tab in tabs" :key="tab.text">
54
+ <!-- <slot :name="tabPanelSlotName"></slot> -->
55
+ <slot v-if="tab.text == activeTab"></slot>
56
+ </div>
56
57
  </div>
57
58
  </div>
58
59
  </div>