@code-coaching/vuetiful 0.21.4 → 0.23.0
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/README.md +1 -1
- package/dist/style.css +2 -2
- package/dist/types/components/VBootstrap.vue.d.ts +15 -0
- package/dist/types/components/atoms/VAvatar.vue.d.ts +37 -10
- package/dist/types/components/atoms/VBadge.vue.d.ts +22 -1
- package/dist/types/components/atoms/VButton.vue.d.ts +27 -0
- package/dist/types/components/atoms/VChip.vue.d.ts +22 -1
- package/dist/types/components/atoms/VRadio/VRadioGroup.vue.d.ts +18 -0
- package/dist/types/components/atoms/VRadio/VRadioItem.vue.d.ts +13 -3
- package/dist/types/components/atoms/VSwitch/VSwitch.vue.d.ts +24 -15
- package/dist/types/components/atoms/index.d.ts +1 -2
- package/dist/types/components/molecules/VAccordion/VAccordion.vue.d.ts +15 -6
- package/dist/types/components/molecules/VAccordion/VAccordionItem.vue.d.ts +11 -1
- package/dist/types/components/molecules/VAlert.vue.d.ts +39 -3
- package/dist/types/components/molecules/VCard/VCard.vue.d.ts +5 -5
- package/dist/types/components/molecules/VCard/VCardBody.vue.d.ts +13 -1
- package/dist/types/components/molecules/VCard/VCardFooter.vue.d.ts +22 -1
- package/dist/types/components/molecules/VCard/VCardHeader.vue.d.ts +22 -1
- package/dist/types/components/{atoms → molecules}/VCodeBlock.vue.d.ts +36 -9
- package/dist/types/components/molecules/VListbox/VListbox.vue.d.ts +51 -14
- package/dist/types/components/molecules/VListbox/VListboxItem.vue.d.ts +13 -3
- package/dist/types/components/molecules/VListbox/VListboxItems.vue.d.ts +9 -0
- package/dist/types/components/molecules/{VRail.vue.d.ts → VRail/VRail.vue.d.ts} +0 -27
- package/dist/types/components/molecules/{VRailTile.vue.d.ts → VRail/VRailTile.vue.d.ts} +2 -15
- package/dist/types/components/molecules/VTabs/VTab.vue.d.ts +9 -0
- package/dist/types/components/molecules/VTabs/VTabs.vue.d.ts +18 -0
- package/dist/types/components/molecules/index.d.ts +4 -3
- package/dist/types/props/index.d.ts +1 -0
- package/dist/types/props/props.d.ts +14 -0
- package/dist/types/services/index.d.ts +5 -3
- package/dist/types/services/settings.service.d.ts +132 -0
- package/dist/types/services/settings.service.test.d.ts +1 -0
- package/dist/types/types/index.d.ts +53 -0
- package/dist/vuetiful.es.mjs +944 -618
- package/dist/vuetiful.umd.js +22 -9
- package/package.json +1 -1
- package/src/components/VBootstrap.vue +62 -0
- package/src/components/atoms/VAvatar.test.ts +98 -28
- package/src/components/atoms/VAvatar.vue +46 -13
- package/src/components/atoms/VBadge.test.ts +10 -0
- package/src/components/atoms/VBadge.vue +13 -1
- package/src/components/atoms/VButton.test.ts +58 -0
- package/src/components/atoms/VButton.vue +31 -2
- package/src/components/atoms/VChip.test.ts +26 -11
- package/src/components/atoms/VChip.vue +13 -1
- package/src/components/atoms/VRadio/VRadioDescription.vue +1 -1
- package/src/components/atoms/VRadio/VRadioGroup.test.ts +7 -7
- package/src/components/atoms/VRadio/VRadioGroup.vue +23 -3
- package/src/components/atoms/VRadio/VRadioItem.vue +16 -4
- package/src/components/atoms/VRadio/VRadioLabel.vue +1 -1
- package/src/components/atoms/VSwitch/VSwitch.test.ts +20 -18
- package/src/components/atoms/VSwitch/VSwitch.vue +29 -17
- package/src/components/atoms/VSwitch/VSwitchDescription.vue +1 -1
- package/src/components/atoms/VSwitch/VSwitchGroup.vue +2 -2
- package/src/components/atoms/VSwitch/VSwitchLabel.vue +1 -1
- package/src/components/atoms/index.ts +0 -2
- package/src/components/molecules/VAccordion/VAccordion.test.ts +11 -0
- package/src/components/molecules/VAccordion/VAccordion.vue +16 -7
- package/src/components/molecules/VAccordion/VAccordionItem.test.ts +65 -16
- package/src/components/molecules/VAccordion/VAccordionItem.vue +53 -32
- package/src/components/molecules/VAlert.test.ts +11 -1
- package/src/components/molecules/VAlert.vue +33 -7
- package/src/components/molecules/VCard/VCard.test.ts +1 -1
- package/src/components/molecules/VCard/VCard.vue +12 -7
- package/src/components/molecules/VCard/VCardBody.test.ts +18 -0
- package/src/components/molecules/VCard/VCardBody.vue +16 -1
- package/src/components/molecules/VCard/VCardFooter.test.ts +18 -0
- package/src/components/molecules/VCard/VCardFooter.vue +21 -3
- package/src/components/molecules/VCard/VCardHeader.test.ts +18 -0
- package/src/components/molecules/VCard/VCardHeader.vue +26 -5
- package/src/components/molecules/VCodeBlock.test.ts +133 -0
- package/src/components/molecules/VCodeBlock.vue +120 -0
- package/src/components/molecules/VListbox/VListbox.test.ts +42 -15
- package/src/components/molecules/VListbox/VListbox.vue +44 -15
- package/src/components/molecules/VListbox/VListboxButton.test.ts +15 -6
- package/src/components/molecules/VListbox/VListboxButton.vue +10 -1
- package/src/components/molecules/VListbox/VListboxItem.test.ts +2 -2
- package/src/components/molecules/VListbox/VListboxItem.vue +18 -7
- package/src/components/molecules/VListbox/VListboxItems.test.ts +2 -2
- package/src/components/molecules/VListbox/VListboxItems.vue +18 -5
- package/src/components/molecules/VListbox/VListboxLabel.test.ts +1 -2
- package/src/components/molecules/VListbox/VListboxLabel.vue +1 -1
- package/src/components/molecules/VPreview.vue +9 -5
- package/src/components/molecules/{VRail.test.ts → VRail/VRail.test.ts} +1 -1
- package/src/components/molecules/VRail/VRail.vue +33 -0
- package/src/components/molecules/VRail/VRailTile.test.ts +99 -0
- package/src/components/molecules/VRail/VRailTile.vue +47 -0
- package/src/components/molecules/VTabs/VTab.test.ts +7 -3
- package/src/components/molecules/VTabs/VTab.vue +20 -5
- package/src/components/molecules/VTabs/VTabPanel.vue +2 -2
- package/src/components/molecules/VTabs/VTabs.test.ts +4 -2
- package/src/components/molecules/VTabs/VTabs.vue +32 -8
- package/src/components/molecules/index.ts +5 -2
- package/src/props/index.ts +1 -0
- package/src/props/props.ts +62 -0
- package/src/services/index.ts +5 -3
- package/src/services/settings.service.test.ts +17 -0
- package/src/services/settings.service.ts +136 -0
- package/src/types/index.ts +58 -0
- package/src/components/atoms/VCodeBlock.test.ts +0 -14
- package/src/components/atoms/VCodeBlock.vue +0 -92
- package/src/components/molecules/VRail.vue +0 -39
- package/src/components/molecules/VRailTile.test.ts +0 -14
- package/src/components/molecules/VRailTile.vue +0 -83
- /package/dist/types/components/{atoms → molecules}/VCodeBlock.test.d.ts +0 -0
- /package/dist/types/components/molecules/{VRail.test.d.ts → VRail/VRail.test.d.ts} +0 -0
- /package/dist/types/components/molecules/{VRailTile.test.d.ts → VRail/VRailTile.test.d.ts} +0 -0
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { CssClasses } from "@/index";
|
|
3
|
-
import { useRail } from "@/services";
|
|
4
|
-
import { inject, useAttrs } from "vue";
|
|
5
|
-
|
|
6
|
-
const emit = defineEmits<{
|
|
7
|
-
(event: "click"): void;
|
|
8
|
-
}>();
|
|
9
|
-
|
|
10
|
-
const props = defineProps({
|
|
11
|
-
value: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: "",
|
|
14
|
-
},
|
|
15
|
-
tag: {
|
|
16
|
-
type: String as () => string,
|
|
17
|
-
default: "button",
|
|
18
|
-
},
|
|
19
|
-
label: {
|
|
20
|
-
type: String as () => string,
|
|
21
|
-
default: "",
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
regionIcon: {
|
|
25
|
-
type: String as () => CssClasses,
|
|
26
|
-
default: "",
|
|
27
|
-
},
|
|
28
|
-
regionLabel: {
|
|
29
|
-
type: String as () => CssClasses,
|
|
30
|
-
default: "",
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
const attrs = useAttrs();
|
|
35
|
-
|
|
36
|
-
const { selectedRailTile } = useRail();
|
|
37
|
-
const active = inject("active");
|
|
38
|
-
const hover = inject("hover");
|
|
39
|
-
|
|
40
|
-
const activate = () => {
|
|
41
|
-
selectedRailTile.value = props.value;
|
|
42
|
-
emit("click");
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const clickHandler = (event: MouseEvent) => {
|
|
46
|
-
event.preventDefault();
|
|
47
|
-
activate();
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const keydownHandler = (event: KeyboardEvent) => {
|
|
51
|
-
if (["Enter", " "].includes(event.key)) event.preventDefault();
|
|
52
|
-
if (event.key === "Enter") activate();
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
const keyupHandler = (event: KeyboardEvent) => {
|
|
56
|
-
if (event.key === " ") {
|
|
57
|
-
event.preventDefault();
|
|
58
|
-
activate();
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
</script>
|
|
62
|
-
|
|
63
|
-
<template>
|
|
64
|
-
<component
|
|
65
|
-
@click="clickHandler"
|
|
66
|
-
@keydown="keydownHandler"
|
|
67
|
-
@keyup="keyupHandler"
|
|
68
|
-
:is="tag"
|
|
69
|
-
v-bind="attrs"
|
|
70
|
-
:class="`app-rail-tile unstyled grid aspect-square w-full cursor-pointer place-content-center place-items-center space-y-1.5 ${hover} ${
|
|
71
|
-
selectedRailTile === value ? `${active}` : ''
|
|
72
|
-
}`"
|
|
73
|
-
>
|
|
74
|
-
<template v-if="$slots.default">
|
|
75
|
-
<div :class="`app-rail-tile-icon ${regionIcon}`"><slot /></div>
|
|
76
|
-
</template>
|
|
77
|
-
<template v-if="label">
|
|
78
|
-
<div :class="`app-rail-tile-label text-center text-xs font-bold ${regionLabel}`">
|
|
79
|
-
{{ label }}
|
|
80
|
-
</div>
|
|
81
|
-
</template>
|
|
82
|
-
</component>
|
|
83
|
-
</template>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|