Skip to content

Commit bf905fb

Browse files
committed
Update: add declaration node_modules build dir inside types dir
1 parent 95163e1 commit bf905fb

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/components/Card/README.stories.mdx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ export const TemplateFull = (args) => ({
3636
components: { Card, CardSection, CardHeader, CardSubsection, Icon, Subheading, Popover, Button, ActionList, Stack, Subheading, List, ListItem },
3737
setup() {
3838
const addAccountActive = ref(false);
39-
return { args, OrdersMinor, addAccountActive };
39+
const toggleClick = () => {
40+
console.log('clicked');
41+
};
42+
const toggleAccountActive = () => {
43+
addAccountActive.value = !addAccountActive.value;
44+
};
45+
return { args, OrdersMinor, addAccountActive, toggleClick, toggleAccountActive };
4046
},
4147
template: `
4248
<Card
@@ -46,12 +52,12 @@ export const TemplateFull = (args) => ({
4652
<template #title>Shipment</template>
4753
<CardHeader :actions="[{ content: 'Preview' }]">
4854
<template #title>Item Orders</template>
49-
<Popover :active="addAccountActive" @close="() => {}">
55+
<Popover :active="addAccountActive" @close="toggleClick">
5056
<template #activator>
5157
<Button
5258
:plain="true",
5359
:disclosure="true"
54-
@click="() => addAccountActive = !addAccountActive">Add account</Button>
60+
@click="toggleAccountActive">Add account</Button>
5561
</template>
5662
<template #content>
5763
<ActionList :items="[{content: 'Member'}, {content: 'Admin'}]"></ActionList>

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default defineConfig({
3232
}),
3333
dts({
3434
staticImport: true,
35+
outputDir: 'dist/types',
3536
exclude: ['dist', 'build'],
3637
}),
3738
],

0 commit comments

Comments
 (0)