classcard-ui 0.2.441 → 0.2.445
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/classcard-ui.common.js +83 -61
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +83 -61
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CPageHeading/CPageHeading.vue +45 -22
- package/src/components/CTabs/CTabs.vue +8 -7
package/package.json
CHANGED
|
@@ -1,29 +1,52 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
<div
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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>
|
|
29
|
+
<div class="h-auto w-full">
|
|
30
|
+
<h2>
|
|
31
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting
|
|
32
|
+
industry. Lorem Ipsum has been the industry's standard dummy text ever
|
|
33
|
+
since the 1500s, when an unknown printer took a galley of type and
|
|
34
|
+
scrambled it to make a type specimen book. It has survived not only five
|
|
35
|
+
centuries, but also the leap into electronic typesetting, remaining
|
|
36
|
+
essentially unchanged. It was popularised in the 1960s with the release
|
|
37
|
+
of Letraset sheets containing Lorem Ipsum passages, and more recently
|
|
38
|
+
with desktop publishing software like Aldus PageMaker including versions
|
|
39
|
+
of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and
|
|
40
|
+
typesetting industry. Lorem Ipsum has been the industry's standard dummy
|
|
41
|
+
text ever since the 1500s, when an unknown printer took a galley of type
|
|
42
|
+
and scrambled it to make a type specimen book. It has survived not only
|
|
43
|
+
five centuries, but also the leap into electronic typesetting, remaining
|
|
44
|
+
essentially unchanged. It was popularised in the 1960s with the release
|
|
45
|
+
of Letraset sheets containing Lorem Ipsum passages, and more recently
|
|
46
|
+
with desktop publishing software like Aldus PageMaker including versions
|
|
47
|
+
of Lorem Ipsum.
|
|
48
|
+
</h2>
|
|
49
|
+
</div>
|
|
27
50
|
</div>
|
|
28
51
|
</template>
|
|
29
52
|
|
|
@@ -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:
|
|
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:
|
|
27
|
+
: 'border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700'
|
|
28
28
|
"
|
|
29
|
-
class="cursor-pointer
|
|
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
|
-
<
|
|
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>
|