Skip to content

Commit

Permalink
apply changed foleder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
yeriiiii committed Dec 21, 2023
1 parent afc7968 commit a6616d1
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 16 deletions.
1 change: 1 addition & 0 deletions packages/vlossom/.storybook/examples/style-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type {
VsInputStyleSet,
VsSectionStyleSet,
VsPageStyleSet,
VsValueTagStyleSet,
} from '@/components/types';

const vsButton: VsButtonStyleSet = {
Expand Down
1 change: 1 addition & 0 deletions packages/vlossom/src/components/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export type * from './vs-input-wrapper';
export type * from './vs-message';
export type * from './vs-page';
export type * from './vs-section';
export type * from './vs-value-tag';
export type * from './vs-wrapper';
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export type VsValueTagStyleSet = Partial<ValueTagStyleSet>;
const name = VsComponent.VsValueTag;
const VsValueTag = defineComponent({
export default defineComponent({
name,
props: {
colorScheme: { type: String as PropType<ColorScheme> },
Expand Down Expand Up @@ -51,8 +51,6 @@ const VsValueTag = defineComponent({
};
},
});
export default VsValueTag;
export type VsValueTagInstance = InstanceType<typeof VsValueTag>;
</script>

<style lang="scss" scoped src="./VsValueTag.scss" />

This file was deleted.

14 changes: 12 additions & 2 deletions packages/vlossom/src/components/vs-value-tag/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
export { default as VsValueTag } from './VsValueTag';
export type { VsValueTagInstance, VsValueTagStyleSet } from './VsValueTag';
import { VsComponent } from '@/declaration/types';
import VsValueTag from './VsValueTag.vue';
import type { VsValueTagStyleSet } from './VsValueTag.vue';

type VsValueTagInstance = InstanceType<typeof VsValueTag>;

export type { VsValueTagInstance, VsValueTagStyleSet };

export default {
name: VsComponent.VsValueTag,
component: VsValueTag,
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Meta, StoryObj } from '@storybook/vue3';

import VsValueTag from '../VsValueTag.vue';
import { colorScheme } from '@/declaration/storybook/arg-types';
import { colorScheme } from '@/storybook/args';

const meta: Meta<typeof VsValueTag> = {
title: 'Components/Base Components/VsValueTag',
Expand Down

0 comments on commit a6616d1

Please sign in to comment.