Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lc-component-library",
"version": "1.1.0",
"version": "1.2.0",
"license": "MIT",
"files": [
"dist"
Expand All @@ -11,10 +11,8 @@
"scripts": {
"dev": "vite",
"build": "node build/exports.js && vite build && tsc --emitDeclarationOnly",
"build-t": "postcss tailwind.css -o ./dist/tailwind.css",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"chromatic": "yarn chromatic --project-token f93655101893"
"build-storybook": "build-storybook"
},
"exports": {
".": {
Expand Down
3 changes: 3 additions & 0 deletions src/components/LcButton.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
3 changes: 3 additions & 0 deletions src/components/LcCheckbox.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
3 changes: 3 additions & 0 deletions src/components/LcForm.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
3 changes: 3 additions & 0 deletions src/components/LcIcon.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
3 changes: 3 additions & 0 deletions src/components/LcInput.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
3 changes: 3 additions & 0 deletions src/components/LcModal.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
3 changes: 3 additions & 0 deletions src/components/LcTable.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
6 changes: 3 additions & 3 deletions src/stories/Button.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ export default {
},
}

const Template = args => ({
const Template = (args: any) => ({
components: { LcButton },
setup() {
return { args }
},
template: '<lc-button v-bind="args">Hello world</lc-button>',
})

export const Primary = Template.bind({})
export const Primary = Template.bind({}) as any
Primary.args = {
color: 'primary',
variant: 'btn',
}

export const Secondary = Template.bind({})
export const Secondary = Template.bind({}) as any
Secondary.args = {
color: 'secondary',
variant: 'btn',
Expand Down
6 changes: 3 additions & 3 deletions src/stories/Checkbox.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ export default {
},
}

const Template = args => ({
const Template = (args: any) => ({
components: { LcCheckbox },
setup() {
return { args }
},
template: '<lc-checkbox v-model="args.modelValue" v-bind="args"/>',
})

export const Base = Template.bind({})
export const Base = Template.bind({}) as any
Base.args = {
modelValue: true,
label: 'Label de la checkbox',
name: 'cgv',
rules: 'required',
}

export const Multiple = Template.bind({})
export const Multiple = Template.bind({}) as any
Multiple.args = {
modelValue: ['matin'],
name: 'schedule',
Expand Down
4 changes: 2 additions & 2 deletions src/stories/Form.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ export default {
},
}

const Template = args => ({
const Template = (args: any) => ({
components: { LcForm },
setup() {
return { args }
},
template: '<lc-form v-bind="args"/>',
})

export const Base = Template.bind({})
export const Base = Template.bind({}) as any
Base.args = {
idForm: 'lcForm',
buttonPrimary: {
Expand Down
4 changes: 2 additions & 2 deletions src/stories/Icon.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ export default {
},
}

const Template = args => ({
const Template = (args: any) => ({
components: { LcIcon },
setup() {
return { args }
},
template: '<lc-icon v-bind="args"/>',
})

export const Base = Template.bind({})
export const Base = Template.bind({}) as any
Base.args = {
size: 'md',
name: 'finances',
Expand Down
4 changes: 2 additions & 2 deletions src/stories/Input.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ export default {
},
}

const Template = args => ({
const Template = (args: any) => ({
components: { LcInput },
setup() {
return { args }
},
template: '<lc-input v-bind="args"/>',
})

export const Base = Template.bind({})
export const Base = Template.bind({}) as any
Base.args = {
label: 'Prénom',
name: 'firstname',
Expand Down
4 changes: 2 additions & 2 deletions src/stories/Modal.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
component: LcModal,
}

const Template = args => ({
const Template = (args: any) => ({
components: { LcModal, LcButton },
setup() {
return { args }
Expand All @@ -21,7 +21,7 @@ const Template = args => ({
`,
})

export const Base = Template.bind({})
export const Base = Template.bind({}) as any
Base.args = {
modelValue: true,
title: 'Hello',
Expand Down
4 changes: 2 additions & 2 deletions src/stories/Table.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ export default {
component: LcTable,
}

const Template = args => ({
const Template = (args: any) => ({
components: { LcTable },
setup() {
return { args }
},
template: '<lc-table v-bind="args"/>',
})

export const Base = Template.bind({})
export const Base = Template.bind({}) as any
Base.args = {
headers: [
{
Expand Down
Loading