@namelivia/vue-components 4.7.0 → 4.8.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/package.json +1 -1
- package/src/Icons/BanIcon/BanIcon.cy.js +10 -0
- package/src/Icons/BanIcon/BanIcon.stories.js +24 -0
- package/src/Icons/BanIcon/BanIcon.vue +16 -0
- package/src/Icons/BasketIcon/BasketIcon.cy.js +10 -0
- package/src/Icons/BasketIcon/BasketIcon.stories.js +24 -0
- package/src/Icons/BasketIcon/BasketIcon.vue +16 -0
- package/src/Icons/ShirtIcon/ShirtIcon.cy.js +10 -0
- package/src/Icons/ShirtIcon/ShirtIcon.stories.js +24 -0
- package/src/Icons/ShirtIcon/ShirtIcon.vue +16 -0
- package/src/Icons/ThrashIcon/ThrashIcon.cy.js +10 -0
- package/src/Icons/ThrashIcon/ThrashIcon.stories.js +24 -0
- package/src/Icons/ThrashIcon/ThrashIcon.vue +16 -0
- package/src/Icons/WahingMachineIcon/WashingMachineIcon.cy.js +10 -0
- package/src/Icons/WahingMachineIcon/WashingMachineIcon.stories.js +24 -0
- package/src/Icons/WahingMachineIcon/WashingMachineIcon.vue +16 -0
package/package.json
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import BanIcon from './BanIcon.vue';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Icons/BanIcon',
|
|
5
|
+
component: BanIcon,
|
|
6
|
+
argTypes: {
|
|
7
|
+
size: { control: { type: 'range', min: 12, max: 100, step: 1 } },
|
|
8
|
+
color: { control: 'color' },
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const Default = {
|
|
13
|
+
args: {
|
|
14
|
+
size: 24,
|
|
15
|
+
color: '#000000',
|
|
16
|
+
},
|
|
17
|
+
render: (args) => ({
|
|
18
|
+
components: { BanIcon },
|
|
19
|
+
setup() {
|
|
20
|
+
return { args };
|
|
21
|
+
},
|
|
22
|
+
template: '<BanIcon v-bind="args" />',
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-ban-icon lucide-ban"><path d="M4.929 4.929 19.07 19.071"/><circle cx="12" cy="12" r="10"/></svg>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
defineProps({
|
|
7
|
+
size: {
|
|
8
|
+
type: [Number, String],
|
|
9
|
+
default: 24
|
|
10
|
+
},
|
|
11
|
+
color: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: 'currentColor'
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
</script>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import BasketIcon from './BasketIcon.vue';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Icons/BasketIcon',
|
|
5
|
+
component: BasketIcon,
|
|
6
|
+
argTypes: {
|
|
7
|
+
size: { control: { type: 'range', min: 12, max: 100, step: 1 } },
|
|
8
|
+
color: { control: 'color' },
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const Default = {
|
|
13
|
+
args: {
|
|
14
|
+
size: 24,
|
|
15
|
+
color: '#000000',
|
|
16
|
+
},
|
|
17
|
+
render: (args) => ({
|
|
18
|
+
components: { BasketIcon },
|
|
19
|
+
setup() {
|
|
20
|
+
return { args };
|
|
21
|
+
},
|
|
22
|
+
template: '<BasketIcon v-bind="args" />',
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shopping-basket-icon lucide-shopping-basket"><path d="m15 11-1 9"/><path d="m19 11-4-7"/><path d="M2 11h20"/><path d="m3.5 11 1.6 7.4a2 2 0 0 0 2 1.6h9.8a2 2 0 0 0 2-1.6l1.7-7.4"/><path d="M4.5 15.5h15"/><path d="m5 11 4-7"/><path d="m9 11 1 9"/></svg>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
defineProps({
|
|
7
|
+
size: {
|
|
8
|
+
type: [Number, String],
|
|
9
|
+
default: 24
|
|
10
|
+
},
|
|
11
|
+
color: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: 'currentColor'
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
</script>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import ShirtIcon from './ShirtIcon.vue';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Icons/ShirtIcon',
|
|
5
|
+
component: ShirtIcon,
|
|
6
|
+
argTypes: {
|
|
7
|
+
size: { control: { type: 'range', min: 12, max: 100, step: 1 } },
|
|
8
|
+
color: { control: 'color' },
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const Default = {
|
|
13
|
+
args: {
|
|
14
|
+
size: 24,
|
|
15
|
+
color: '#000000',
|
|
16
|
+
},
|
|
17
|
+
render: (args) => ({
|
|
18
|
+
components: { ShirtIcon },
|
|
19
|
+
setup() {
|
|
20
|
+
return { args };
|
|
21
|
+
},
|
|
22
|
+
template: '<ShirtIcon v-bind="args" />',
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shirt-icon lucide-shirt"><path d="M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z"/></svg>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
defineProps({
|
|
7
|
+
size: {
|
|
8
|
+
type: [Number, String],
|
|
9
|
+
default: 24
|
|
10
|
+
},
|
|
11
|
+
color: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: 'currentColor'
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
</script>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import ThrashIcon from './ThrashIcon.vue';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Icons/ThrashIcon',
|
|
5
|
+
component: ThrashIcon,
|
|
6
|
+
argTypes: {
|
|
7
|
+
size: { control: { type: 'range', min: 12, max: 100, step: 1 } },
|
|
8
|
+
color: { control: 'color' },
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const Default = {
|
|
13
|
+
args: {
|
|
14
|
+
size: 24,
|
|
15
|
+
color: '#000000',
|
|
16
|
+
},
|
|
17
|
+
render: (args) => ({
|
|
18
|
+
components: { ThrashIcon },
|
|
19
|
+
setup() {
|
|
20
|
+
return { args };
|
|
21
|
+
},
|
|
22
|
+
template: '<ThrashIcon v-bind="args" />',
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-trash2-icon lucide-trash-2"><path d="M10 11v6"/><path d="M14 11v6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/><path d="M3 6h18"/><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
defineProps({
|
|
7
|
+
size: {
|
|
8
|
+
type: [Number, String],
|
|
9
|
+
default: 24
|
|
10
|
+
},
|
|
11
|
+
color: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: 'currentColor'
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
</script>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import WashingMachineIcon from './WashingMachineIcon.vue'
|
|
2
|
+
|
|
3
|
+
describe('<WashingMachineIcon />', () => {
|
|
4
|
+
it('renders with default values', () => {
|
|
5
|
+
cy.mount(WashingMachineIcon)
|
|
6
|
+
cy.get('svg')
|
|
7
|
+
.should('be.visible')
|
|
8
|
+
.and('have.attr', 'width', '24')
|
|
9
|
+
})
|
|
10
|
+
})
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import WashingMachineIcon from './WashingMachineIcon.vue';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Icons/WashingMachineIcon',
|
|
5
|
+
component: WashingMachineIcon,
|
|
6
|
+
argTypes: {
|
|
7
|
+
size: { control: { type: 'range', min: 12, max: 100, step: 1 } },
|
|
8
|
+
color: { control: 'color' },
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const Default = {
|
|
13
|
+
args: {
|
|
14
|
+
size: 24,
|
|
15
|
+
color: '#000000',
|
|
16
|
+
},
|
|
17
|
+
render: (args) => ({
|
|
18
|
+
components: { WashingMachineIcon },
|
|
19
|
+
setup() {
|
|
20
|
+
return { args };
|
|
21
|
+
},
|
|
22
|
+
template: '<WashingMachineIcon v-bind="args" />',
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-washing-machine-icon lucide-washing-machine"><path d="M3 6h3"/><path d="M17 6h.01"/><rect width="18" height="20" x="3" y="2" rx="2"/><circle cx="12" cy="13" r="5"/><path d="M12 18a2.5 2.5 0 0 0 0-5 2.5 2.5 0 0 1 0-5"/></svg>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
defineProps({
|
|
7
|
+
size: {
|
|
8
|
+
type: [Number, String],
|
|
9
|
+
default: 24
|
|
10
|
+
},
|
|
11
|
+
color: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: 'currentColor'
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
</script>
|