classcard-ui 0.2.898 → 0.2.900
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 +172 -49
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +172 -49
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +2 -2
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CInsetTabs/CInsetTabs.vue +14 -9
- package/src/components/CInsetTabs/index.js +3 -0
- package/src/components/index.js +1 -0
package/package.json
CHANGED
|
@@ -4,13 +4,7 @@
|
|
|
4
4
|
class="group flex rounded-lg bg-gray-100 p-0.5 hover:bg-gray-200"
|
|
5
5
|
aria-label="Tabs"
|
|
6
6
|
>
|
|
7
|
-
|
|
8
|
-
v-for="(tabOption, index) in tabOptions"
|
|
9
|
-
:key="tabOption.label"
|
|
10
|
-
x-ref="dates"
|
|
11
|
-
class="focus:outline-none flex min-w-0 flex-grow rounded-md focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-100"
|
|
12
|
-
:tabindex="currentTab === tabOption.label ? '0' : '-1'"
|
|
13
|
-
@keydown.arrow-left="
|
|
7
|
+
<!-- @keydown.arrow-left="
|
|
14
8
|
$emit(
|
|
15
9
|
'update-tab',
|
|
16
10
|
index === 0 ? tabOption.label : tabOptions[index - 1].label
|
|
@@ -23,8 +17,14 @@
|
|
|
23
17
|
? tabOptions.find((tab) => tab.label !== tabOption.label).label
|
|
24
18
|
: tabOptions[index - 1].label
|
|
25
19
|
)
|
|
26
|
-
"
|
|
27
|
-
|
|
20
|
+
" -->
|
|
21
|
+
<button
|
|
22
|
+
v-for="(tabOption, index) in tabOptions"
|
|
23
|
+
:key="index"
|
|
24
|
+
x-ref="dates"
|
|
25
|
+
class="focus:outline-none flex min-w-0 flex-grow rounded-md focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-100"
|
|
26
|
+
:tabindex="currentTab === tabOption.label ? '0' : '-1'"
|
|
27
|
+
@click="handleButtonClick(tabOption)"
|
|
28
28
|
>
|
|
29
29
|
<span
|
|
30
30
|
x-show="true"
|
|
@@ -76,6 +76,11 @@ export default {
|
|
|
76
76
|
type: Array,
|
|
77
77
|
},
|
|
78
78
|
},
|
|
79
|
+
methods: {
|
|
80
|
+
handleButtonClick(tabOption) {
|
|
81
|
+
this.$emit("update-tab", tabOption.label);
|
|
82
|
+
},
|
|
83
|
+
},
|
|
79
84
|
};
|
|
80
85
|
</script>
|
|
81
86
|
|
package/src/components/index.js
CHANGED
|
@@ -47,3 +47,4 @@ export { default as CUpload } from "./CUpload";
|
|
|
47
47
|
export { default as CConfirmActionModal } from "./CConfirmActionModal";
|
|
48
48
|
export { default as CCalendar } from "./CCalendar";
|
|
49
49
|
export { default as CButtonSelectBorder } from "./CButtonSelectBorder";
|
|
50
|
+
export { default as CInsetTabs } from "./CInsetTabs";
|