vanilla-vue-ui 0.0.4 → 0.0.5
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/basic/container/WContainer.vue +7 -0
- package/package.json +1 -1
- package/page-template/app-template/WAppTemplate.vue +16 -5
- package/template/spacer-island/WSpacerIsland.stories.ts +22 -0
- package/template/spacer-island/WSpacerIsland.vue +21 -0
- package/template/spacer-ladder/WSpacerLadder.stories.ts +22 -0
- package/template/spacer-ladder/WSpacerLadder.vue +21 -0
- package/template/spacer-wrap/WSpacerWrap.stories.ts +22 -0
- package/template/spacer-wrap/WSpacerWrap.vue +21 -0
package/package.json
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<slot name="header"></slot>
|
|
3
3
|
|
|
4
|
-
<
|
|
5
|
-
<
|
|
4
|
+
<w-container>
|
|
5
|
+
<main>
|
|
6
|
+
<w-spacer-island>
|
|
7
|
+
<slot name="title"></slot>
|
|
8
|
+
</w-spacer-island>
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
<slot></slot>
|
|
11
|
+
</main>
|
|
9
12
|
|
|
10
|
-
|
|
13
|
+
<w-spacer-island>
|
|
14
|
+
<slot name="bottom"></slot>
|
|
15
|
+
</w-spacer-island>
|
|
16
|
+
</w-container>
|
|
11
17
|
|
|
12
18
|
<slot name="footer"></slot>
|
|
13
19
|
</template>
|
|
20
|
+
|
|
21
|
+
<script setup lang="ts">
|
|
22
|
+
import WContainer from '@/basic/container/WContainer.vue';
|
|
23
|
+
import WSpacerIsland from '../../template/spacer-island/WSpacerIsland.vue'
|
|
24
|
+
</script>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
|
|
3
|
+
import SpacerIsland from './WSpacerIsland.vue';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof SpacerIsland> = {
|
|
6
|
+
component: SpacerIsland,
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof SpacerIsland>;
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
*👇 Render functions are a framework specific feature to allow you control on how the component renders.
|
|
14
|
+
* See https://storybook.js.org/docs/api/csf
|
|
15
|
+
* to learn how to use render functions.
|
|
16
|
+
*/
|
|
17
|
+
export const Primary: Story = {
|
|
18
|
+
render: () => ({
|
|
19
|
+
components: { SpacerIsland },
|
|
20
|
+
template: '<SpacerIsland><p>content</p></SpacerIsland>',
|
|
21
|
+
}),
|
|
22
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="classes.base">
|
|
3
|
+
<slot />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup lang="ts">
|
|
8
|
+
import type { ClassObject } from '../../types/ClassObject';
|
|
9
|
+
import { defineProps, type PropType } from 'vue';
|
|
10
|
+
|
|
11
|
+
defineProps({
|
|
12
|
+
classes: {
|
|
13
|
+
type: Object as PropType<ClassObject>,
|
|
14
|
+
default() {
|
|
15
|
+
return {
|
|
16
|
+
base: 'my-4 md:my-6 lg:my-10 xl:my-16'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
</script>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
|
|
3
|
+
import SpacerLadder from './WSpacerLadder.vue';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof SpacerLadder> = {
|
|
6
|
+
component: SpacerLadder,
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof SpacerLadder>;
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
*👇 Render functions are a framework specific feature to allow you control on how the component renders.
|
|
14
|
+
* See https://storybook.js.org/docs/api/csf
|
|
15
|
+
* to learn how to use render functions.
|
|
16
|
+
*/
|
|
17
|
+
export const Primary: Story = {
|
|
18
|
+
render: () => ({
|
|
19
|
+
components: { SpacerLadder },
|
|
20
|
+
template: '<SpacerLadder><p>content</p></SpacerLadder>',
|
|
21
|
+
}),
|
|
22
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="classes.base">
|
|
3
|
+
<slot />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup lang="ts">
|
|
8
|
+
import type { ClassObject } from '../../types/ClassObject';
|
|
9
|
+
import { defineProps, type PropType } from 'vue';
|
|
10
|
+
|
|
11
|
+
defineProps({
|
|
12
|
+
classes: {
|
|
13
|
+
type: Object as PropType<ClassObject>,
|
|
14
|
+
default() {
|
|
15
|
+
return {
|
|
16
|
+
base: 'my-2 md:my-4'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
</script>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
|
|
3
|
+
import SpacerWrap from './WSpacerWrap.vue';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof SpacerWrap> = {
|
|
6
|
+
component: SpacerWrap,
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof SpacerWrap>;
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
*👇 Render functions are a framework specific feature to allow you control on how the component renders.
|
|
14
|
+
* See https://storybook.js.org/docs/api/csf
|
|
15
|
+
* to learn how to use render functions.
|
|
16
|
+
*/
|
|
17
|
+
export const Primary: Story = {
|
|
18
|
+
render: () => ({
|
|
19
|
+
components: { SpacerWrap },
|
|
20
|
+
template: '<SpacerWrap><p>content</p></SpacerWrap>',
|
|
21
|
+
}),
|
|
22
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="classes.base">
|
|
3
|
+
<slot />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup lang="ts">
|
|
8
|
+
import type { ClassObject } from '../../types/ClassObject';
|
|
9
|
+
import { defineProps, type PropType } from 'vue';
|
|
10
|
+
|
|
11
|
+
defineProps({
|
|
12
|
+
classes: {
|
|
13
|
+
type: Object as PropType<ClassObject>,
|
|
14
|
+
default() {
|
|
15
|
+
return {
|
|
16
|
+
base: 'm-1 p-1'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
</script>
|