@namelivia/vue-components 4.4.5 → 4.5.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@namelivia/vue-components",
3
- "version": "4.4.5",
3
+ "version": "4.5.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "peerDependencies": {
@@ -0,0 +1,10 @@
1
+ import CalendarIcon from './CalendarIcon.vue'
2
+
3
+ describe('<CalendarIcon />', () => {
4
+ it('renders with default values', () => {
5
+ cy.mount(CalendarIcon)
6
+ cy.get('svg')
7
+ .should('be.visible')
8
+ .and('have.attr', 'width', '24')
9
+ })
10
+ })
@@ -0,0 +1,24 @@
1
+ import CalendarIcon from './CalendarIcon.vue';
2
+
3
+ export default {
4
+ title: 'Icons/CalendarIcon',
5
+ component: CalendarIcon,
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: { CalendarIcon },
19
+ setup() {
20
+ return { args };
21
+ },
22
+ template: '<CalendarIcon v-bind="args" />',
23
+ }),
24
+ };
@@ -0,0 +1,19 @@
1
+ <template>
2
+ <svg xmlns="http://www.w3.org/2000/svg" :width="size" :height="size" viewBox="0 0 24 24" fill="none" :stroke="color" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-calendar-icon lucide-calendar"><path d="M8 2v4"/><path d="M16 2v4"/><rect width="18" height="18" x="3" y="4" rx="2"/><path d="M3 10h18"/></svg>
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ name: 'CalendarIcon',
8
+ props: {
9
+ size: {
10
+ type: [Number, String],
11
+ default: 24
12
+ },
13
+ color: {
14
+ type: String,
15
+ default: 'currentColor'
16
+ }
17
+ }
18
+ }
19
+ </script>
@@ -0,0 +1,10 @@
1
+ import CreateIcon from './CreateIcon.vue'
2
+
3
+ describe('<CreateIcon />', () => {
4
+ it('renders with default values', () => {
5
+ cy.mount(CreateIcon)
6
+ cy.get('svg')
7
+ .should('be.visible')
8
+ .and('have.attr', 'width', '24')
9
+ })
10
+ })
@@ -0,0 +1,24 @@
1
+ import CreateIcon from './CreateIcon.vue';
2
+
3
+ export default {
4
+ title: 'Icons/CreateIcon',
5
+ component: CreateIcon,
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: { CreateIcon },
19
+ setup() {
20
+ return { args };
21
+ },
22
+ template: '<CreateIcon v-bind="args" />',
23
+ }),
24
+ };
@@ -0,0 +1,19 @@
1
+ <template>
2
+ <svg xmlns="http://www.w3.org/2000/svg" :width="size" :height="size" viewBox="0 0 24 24" fill="none" :stroke="color" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-badge-plus-icon lucide-badge-plus"><path d="M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z"/><line x1="12" x2="12" y1="8" y2="16"/><line x1="8" x2="16" y1="12" y2="12"/></svg>
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ name: 'CreateIcon',
8
+ props: {
9
+ size: {
10
+ type: [Number, String],
11
+ default: 24
12
+ },
13
+ color: {
14
+ type: String,
15
+ default: 'currentColor'
16
+ }
17
+ }
18
+ }
19
+ </script>
@@ -0,0 +1,33 @@
1
+ import DropIcon from './DropIcon.vue'
2
+
3
+ describe('<DropIcon />', () => {
4
+ it('renders with default values', () => {
5
+ cy.mount(DropIcon)
6
+ cy.get('svg')
7
+ .should('be.visible')
8
+ .and('have.attr', 'width', '24')
9
+ .and('have.attr', 'stroke', 'currentColor')
10
+ })
11
+
12
+ it('renders with custom size', () => {
13
+ const customSize = 48
14
+ cy.mount(DropIcon, {
15
+ props: {
16
+ size: customSize
17
+ }
18
+ })
19
+ cy.get('svg')
20
+ .should('have.attr', 'width', customSize.toString())
21
+ .and('have.attr', 'height', customSize.toString())
22
+ })
23
+
24
+ it('renders with custom color', () => {
25
+ const customColor = 'rgb(255, 0, 0)'
26
+ cy.mount(DropIcon, {
27
+ props: {
28
+ color: customColor
29
+ }
30
+ })
31
+ cy.get('svg').should('have.attr', 'stroke', customColor)
32
+ })
33
+ })
@@ -0,0 +1,24 @@
1
+ import DropIcon from './DropIcon.vue';
2
+
3
+ export default {
4
+ title: 'Icons/DropIcon',
5
+ component: DropIcon,
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: { DropIcon },
19
+ setup() {
20
+ return { args };
21
+ },
22
+ template: '<DropIcon v-bind="args" />',
23
+ }),
24
+ };
@@ -0,0 +1,33 @@
1
+ <template>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ :width="size"
5
+ :height="size"
6
+ viewBox="0 0 24 24"
7
+ fill="none"
8
+ :stroke="color"
9
+ stroke-width="2"
10
+ stroke-linecap="round"
11
+ stroke-linejoin="round"
12
+ class="lucide lucide-droplets-icon lucide-droplets"
13
+ >
14
+ <path d="M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z"/>
15
+ <path d="M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97"/>
16
+ </svg>
17
+ </template>
18
+
19
+ <script>
20
+ export default {
21
+ name: 'DropIcon',
22
+ props: {
23
+ size: {
24
+ type: [Number, String],
25
+ default: 24
26
+ },
27
+ color: {
28
+ type: String,
29
+ default: 'currentColor'
30
+ }
31
+ }
32
+ }
33
+ </script>
@@ -0,0 +1,10 @@
1
+ import SaveIcon from './SaveIcon.vue'
2
+
3
+ describe('<SaveIcon />', () => {
4
+ it('renders with default values', () => {
5
+ cy.mount(SaveIcon)
6
+ cy.get('svg')
7
+ .should('be.visible')
8
+ .and('have.attr', 'width', '24')
9
+ })
10
+ })
@@ -0,0 +1,24 @@
1
+ import SaveIcon from './SaveIcon.vue';
2
+
3
+ export default {
4
+ title: 'Icons/SaveIcon',
5
+ component: SaveIcon,
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: { SaveIcon },
19
+ setup() {
20
+ return { args };
21
+ },
22
+ template: '<SaveIcon v-bind="args" />',
23
+ }),
24
+ };
@@ -0,0 +1,19 @@
1
+ <template>
2
+ <svg xmlns="http://www.w3.org/2000/svg" :width="size" :height="size" viewBox="0 0 24 24" fill="none" :stroke="color" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-save-icon lucide-save"><path d="M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"/><path d="M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"/><path d="M7 3v4a1 1 0 0 0 1 1h7"/></svg>
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ name: 'SaveIcon',
8
+ props: {
9
+ size: {
10
+ type: [Number, String],
11
+ default: 24
12
+ },
13
+ color: {
14
+ type: String,
15
+ default: 'currentColor'
16
+ }
17
+ }
18
+ }
19
+ </script>
@@ -0,0 +1,10 @@
1
+ import SkullIcon from './SkullIcon.vue'
2
+
3
+ describe('<SkullIcon />', () => {
4
+ it('renders with default values', () => {
5
+ cy.mount(SkullIcon)
6
+ cy.get('svg')
7
+ .should('be.visible')
8
+ .and('have.attr', 'width', '24')
9
+ })
10
+ })
@@ -0,0 +1,24 @@
1
+ import SkullIcon from './SkullIcon.vue';
2
+
3
+ export default {
4
+ title: 'Icons/SkullIcon',
5
+ component: SkullIcon,
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: { SkullIcon },
19
+ setup() {
20
+ return { args };
21
+ },
22
+ template: '<SkullIcon v-bind="args" />',
23
+ }),
24
+ };
@@ -0,0 +1,19 @@
1
+ <template>
2
+ <svg xmlns="http://www.w3.org/2000/svg" :width="size" :height="size" viewBox="0 0 24 24" fill="none" :stroke="color" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-skull-icon lucide-skull"><path d="m12.5 17-.5-1-.5 1h1z"/><path d="M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z"/><circle cx="15" cy="12" r="1"/><circle cx="9" cy="12" r="1"/></svg>
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ name: 'SkullIcon',
8
+ props: {
9
+ size: {
10
+ type: [Number, String],
11
+ default: 24
12
+ },
13
+ color: {
14
+ type: String,
15
+ default: 'currentColor'
16
+ }
17
+ }
18
+ }
19
+ </script>
package/src/index.js CHANGED
@@ -24,3 +24,8 @@ export { default as NumberInput } from './Inputs/NumberInput/NumberInput.vue'
24
24
  export { default as ImageInput } from './Inputs/ImageInput/ImageInput.vue'
25
25
  export { default as ResizeImageUpload } from './Inputs/ResizeImageUpload/ResizeImageUpload.vue'
26
26
  export { default as Selector } from './Inputs/Selector/Selector.vue'
27
+ export { default as DropIcon } from './Icons/DropIcon/DropIcon.vue'
28
+ export { default as SkullIcon } from './Icons/SkullIcon/SkullIcon.vue'
29
+ export { default as CalendarIcon } from './Icons/CalendarIcon/CalendarIcon.vue'
30
+ export { default as SaveIcon } from './Icons/SaveIcon/SaveIcon.vue'
31
+ export { default as CreateIcon } from './Icons/CreateIcon/CreateIcon.vue'