@lumx/vue 3.20.1-alpha.4 → 3.20.1-alpha.6
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/.storybook/main.ts +28 -0
- package/.storybook/preview.ts +14 -0
- package/package.json +20 -109
- package/src/components/icon/Icon.stories.js +27 -0
- package/src/components/icon/Icon.vue +16 -0
- package/src/components/icon/index.ts +1 -5
- package/src/components/input-helper/InputHelper.stories.js +27 -0
- package/src/components/input-helper/InputHelper.vue +16 -0
- package/src/components/input-helper/index.ts +2 -0
- package/src/index.ts +7 -4
- package/vite.config.ts +35 -0
- package/index.js +0 -1120
- package/src/Icon.stories.tsx +0 -17
- package/src/Icon.test.tsx +0 -9
- package/src/Icon.tsx +0 -48
- package/src/components/icon/Icon.stories.tsx +0 -17
- package/src/components/icon/Icon.test.tsx +0 -9
- package/src/components/icon/Icon.tsx +0 -48
- package/src/icon/Icon.stories.tsx +0 -17
- package/src/icon/Icon.test.tsx +0 -9
- package/src/icon/Icon.tsx +0 -48
- package/src/icon/index.ts +0 -6
- package/src/utils/index.ts +0 -0
package/src/Icon.stories.tsx
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import DefaultStory, { SizeAndShape as DefaultSizeAndShape } from '@lumx/core/js/components/Icon/Stories';
|
|
2
|
-
|
|
3
|
-
import { Icon } from '.';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'LumX components/icon/Icon',
|
|
7
|
-
component: Icon,
|
|
8
|
-
...DefaultStory,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export const SizeAndShape = {
|
|
12
|
-
...DefaultSizeAndShape,
|
|
13
|
-
argTypes: {
|
|
14
|
-
hasShape: { control: false },
|
|
15
|
-
size: { control: false },
|
|
16
|
-
},
|
|
17
|
-
};
|
package/src/Icon.test.tsx
DELETED
package/src/Icon.tsx
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { defineComponent } from 'vue-demi';
|
|
2
|
-
import { IconProps, Icon as UI } from '@lumx/core/js/components/Icon';
|
|
3
|
-
|
|
4
|
-
export default defineComponent({
|
|
5
|
-
name: 'Icon',
|
|
6
|
-
components: {
|
|
7
|
-
UI,
|
|
8
|
-
},
|
|
9
|
-
props: {
|
|
10
|
-
color: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: false,
|
|
13
|
-
},
|
|
14
|
-
colorVariant: {
|
|
15
|
-
type: String,
|
|
16
|
-
required: false,
|
|
17
|
-
},
|
|
18
|
-
hasShape: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
required: false,
|
|
21
|
-
},
|
|
22
|
-
icon: {
|
|
23
|
-
type: String,
|
|
24
|
-
required: true,
|
|
25
|
-
},
|
|
26
|
-
size: {
|
|
27
|
-
type: String,
|
|
28
|
-
required: false,
|
|
29
|
-
},
|
|
30
|
-
alt: {
|
|
31
|
-
type: String,
|
|
32
|
-
required: false,
|
|
33
|
-
},
|
|
34
|
-
theme: {
|
|
35
|
-
type: String,
|
|
36
|
-
required: false,
|
|
37
|
-
},
|
|
38
|
-
className: {
|
|
39
|
-
type: String,
|
|
40
|
-
required: false,
|
|
41
|
-
},
|
|
42
|
-
// GenericProps may include other props, but these are the main ones from IconProps
|
|
43
|
-
},
|
|
44
|
-
// setup function removed; props are accessible via this.props in render
|
|
45
|
-
render() {
|
|
46
|
-
return <UI {...this.$props} />;
|
|
47
|
-
},
|
|
48
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import DefaultStory, { SizeAndShape as DefaultSizeAndShape } from '@lumx/core/js/components/Icon/Stories';
|
|
2
|
-
|
|
3
|
-
import { Icon } from '.';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'LumX components/icon/Icon',
|
|
7
|
-
component: Icon,
|
|
8
|
-
...DefaultStory,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export const SizeAndShape = {
|
|
12
|
-
...DefaultSizeAndShape,
|
|
13
|
-
argTypes: {
|
|
14
|
-
hasShape: { control: false },
|
|
15
|
-
size: { control: false },
|
|
16
|
-
},
|
|
17
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { defineComponent } from 'vue-demi';
|
|
2
|
-
import { IconProps, Icon as UI } from '@lumx/core/js/components/Icon';
|
|
3
|
-
|
|
4
|
-
export default defineComponent({
|
|
5
|
-
name: 'Icon',
|
|
6
|
-
components: {
|
|
7
|
-
UI,
|
|
8
|
-
},
|
|
9
|
-
props: {
|
|
10
|
-
color: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: false,
|
|
13
|
-
},
|
|
14
|
-
colorVariant: {
|
|
15
|
-
type: String,
|
|
16
|
-
required: false,
|
|
17
|
-
},
|
|
18
|
-
hasShape: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
required: false,
|
|
21
|
-
},
|
|
22
|
-
icon: {
|
|
23
|
-
type: String,
|
|
24
|
-
required: true,
|
|
25
|
-
},
|
|
26
|
-
size: {
|
|
27
|
-
type: String,
|
|
28
|
-
required: false,
|
|
29
|
-
},
|
|
30
|
-
alt: {
|
|
31
|
-
type: String,
|
|
32
|
-
required: false,
|
|
33
|
-
},
|
|
34
|
-
theme: {
|
|
35
|
-
type: String,
|
|
36
|
-
required: false,
|
|
37
|
-
},
|
|
38
|
-
className: {
|
|
39
|
-
type: String,
|
|
40
|
-
required: false,
|
|
41
|
-
},
|
|
42
|
-
// GenericProps may include other props, but these are the main ones from IconProps
|
|
43
|
-
},
|
|
44
|
-
// setup function removed; props are accessible via this.props in render
|
|
45
|
-
render() {
|
|
46
|
-
return <UI {...this.$props} />;
|
|
47
|
-
},
|
|
48
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import DefaultStory, { SizeAndShape as DefaultSizeAndShape } from '@lumx/core/js/components/Icon/Stories';
|
|
2
|
-
|
|
3
|
-
import { Icon } from '.';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'LumX components/icon/Icon',
|
|
7
|
-
component: Icon,
|
|
8
|
-
...DefaultStory,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export const SizeAndShape = {
|
|
12
|
-
...DefaultSizeAndShape,
|
|
13
|
-
argTypes: {
|
|
14
|
-
hasShape: { control: false },
|
|
15
|
-
size: { control: false },
|
|
16
|
-
},
|
|
17
|
-
};
|
package/src/icon/Icon.test.tsx
DELETED
package/src/icon/Icon.tsx
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { defineComponent } from 'vue-demi';
|
|
2
|
-
import { IconProps, Icon as UI } from '@lumx/core/js/components/Icon';
|
|
3
|
-
|
|
4
|
-
export default defineComponent({
|
|
5
|
-
name: 'Icon',
|
|
6
|
-
components: {
|
|
7
|
-
UI,
|
|
8
|
-
},
|
|
9
|
-
props: {
|
|
10
|
-
color: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: false,
|
|
13
|
-
},
|
|
14
|
-
colorVariant: {
|
|
15
|
-
type: String,
|
|
16
|
-
required: false,
|
|
17
|
-
},
|
|
18
|
-
hasShape: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
required: false,
|
|
21
|
-
},
|
|
22
|
-
icon: {
|
|
23
|
-
type: String,
|
|
24
|
-
required: true,
|
|
25
|
-
},
|
|
26
|
-
size: {
|
|
27
|
-
type: String,
|
|
28
|
-
required: false,
|
|
29
|
-
},
|
|
30
|
-
alt: {
|
|
31
|
-
type: String,
|
|
32
|
-
required: false,
|
|
33
|
-
},
|
|
34
|
-
theme: {
|
|
35
|
-
type: String,
|
|
36
|
-
required: false,
|
|
37
|
-
},
|
|
38
|
-
className: {
|
|
39
|
-
type: String,
|
|
40
|
-
required: false,
|
|
41
|
-
},
|
|
42
|
-
// GenericProps may include other props, but these are the main ones from IconProps
|
|
43
|
-
},
|
|
44
|
-
// setup function removed; props are accessible via this.props in render
|
|
45
|
-
render() {
|
|
46
|
-
return <UI {...this.$props} />;
|
|
47
|
-
},
|
|
48
|
-
});
|
package/src/icon/index.ts
DELETED
package/src/utils/index.ts
DELETED
|
File without changes
|