@lumx/vue 3.20.1-alpha.0 → 3.20.1-alpha.10
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/index.js +2 -1121
- package/index.mjs +1085 -0
- package/package.json +25 -107
- package/src/Icon.stories.js +27 -0
- package/src/Icon.vue +16 -0
- package/src/InputHelper.stories.js +27 -0
- package/src/InputHelper.vue +16 -0
- 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/icon/Icon.stories.js +27 -0
- package/src/icon/Icon.vue +16 -0
- package/src/icon/index.ts +1 -5
- package/src/index.ts +2 -6
- package/src/input-helper/InputHelper.stories.js +27 -0
- package/src/input-helper/InputHelper.vue +16 -0
- package/src/input-helper/index.ts +2 -0
- package/src/Icon.stories.tsx +0 -17
- package/src/Icon.test.tsx +0 -9
- package/src/Icon.tsx +0 -50
- 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 -50
- package/src/icon/Icon.stories.tsx +0 -17
- package/src/icon/Icon.test.tsx +0 -9
- package/src/icon/Icon.tsx +0 -50
- package/src/utils/index.ts +0 -0
package/package.json
CHANGED
|
@@ -1,101 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"url": "https://github.com/lumapps/design-system/issues"
|
|
7
|
-
},
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"@lumx/core": "^3.20.1-alpha.0",
|
|
10
|
-
"@lumx/icons": "^3.20.1-alpha.0",
|
|
11
|
-
"vue-demi": "^0.14.10"
|
|
12
|
-
},
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"@babel/core": "^7.26.10",
|
|
15
|
-
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
16
|
-
"@babel/plugin-proposal-export-default-from": "^7.25.9",
|
|
17
|
-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
18
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
19
|
-
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
20
|
-
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
|
21
|
-
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
22
|
-
"@babel/plugin-syntax-jsx": "^7.27.1",
|
|
23
|
-
"@babel/plugin-transform-react-jsx": "^7.27.1",
|
|
24
|
-
"@babel/preset-env": "^7.26.9",
|
|
25
|
-
"@babel/preset-typescript": "^7.26.0",
|
|
26
|
-
"@rollup/plugin-babel": "^6.0.4",
|
|
27
|
-
"@rollup/plugin-commonjs": "^19.0.2",
|
|
28
|
-
"@rollup/plugin-node-resolve": "16.0.0",
|
|
29
|
-
"@rollup/plugin-typescript": "^12.3.0",
|
|
30
|
-
"@rollup/pluginutils": "5.2.0",
|
|
31
|
-
"@storybook/addon-a11y": "^9.1.4",
|
|
32
|
-
"@storybook/addon-docs": "^9.1.4",
|
|
33
|
-
"@storybook/vue3-vite": "9.1.16",
|
|
34
|
-
"@testing-library/dom": "^9.3.4",
|
|
35
|
-
"@testing-library/jest-dom": "^5.16.4",
|
|
36
|
-
"@testing-library/user-event": "^14.4.3",
|
|
37
|
-
"@testing-library/vue": "^8.1.0",
|
|
38
|
-
"@types/body-scroll-lock": "^2.6.1",
|
|
39
|
-
"@types/classnames": "^2.2.9",
|
|
40
|
-
"@types/dom-view-transitions": "^1.0.5",
|
|
41
|
-
"@types/jest": "^29.2.1",
|
|
42
|
-
"@types/lodash": "^4.14.149",
|
|
43
|
-
"@vitejs/plugin-vue": "^6.0.2",
|
|
44
|
-
"@vitejs/plugin-vue-jsx": "^5.1.2",
|
|
45
|
-
"@vitejs/plugin-vue2-jsx": "^1.1.1",
|
|
46
|
-
"@vue/babel-helper-vue-jsx-merge-props": "^1.4.0",
|
|
47
|
-
"@vue/babel-plugin-jsx": "^2.0.1",
|
|
48
|
-
"@vue/babel-preset-jsx": "^1.4.0",
|
|
49
|
-
"@vue/composition-api": "1.7.2",
|
|
50
|
-
"autoprefixer": "^9.7.4",
|
|
51
|
-
"babel-jest": "29.1.2",
|
|
52
|
-
"babel-loader": "^8.0.6",
|
|
53
|
-
"eslint-plugin-storybook": "9.1.16",
|
|
54
|
-
"eslint-plugin-vue": "^10.5.0",
|
|
55
|
-
"focus-visible": "^5.0.2",
|
|
56
|
-
"glob": "^7.1.6",
|
|
57
|
-
"install-peers-cli": "^2.2.0",
|
|
58
|
-
"is-ci": "^2.0.0",
|
|
59
|
-
"jest": "29.1.2",
|
|
60
|
-
"jest-environment-jsdom": "29.1.2",
|
|
61
|
-
"node-notifier": "^10.0.1",
|
|
62
|
-
"rollup": "3.29.5",
|
|
63
|
-
"rollup-plugin-analyzer": "^4.0.0",
|
|
64
|
-
"rollup-plugin-cleaner": "^1.0.0",
|
|
65
|
-
"rollup-plugin-copy": "^3.5.0",
|
|
66
|
-
"rollup-plugin-dts": "^6.1.1",
|
|
67
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
68
|
-
"rollup-plugin-ts-paths-resolve": "^1.7.1",
|
|
69
|
-
"rollup-plugin-vue": "^6.0.0",
|
|
70
|
-
"storybook": "^9.1.4",
|
|
71
|
-
"typescript": "^5.4.3",
|
|
72
|
-
"vite": "^6.3.5",
|
|
73
|
-
"vite-plugin-dts": "^4.5.4",
|
|
74
|
-
"vite-tsconfig-paths": "^5.1.4",
|
|
75
|
-
"vitest": "^4.0.10",
|
|
76
|
-
"vue": "^3.4.27",
|
|
77
|
-
"vue2": "npm:vue@2.6",
|
|
78
|
-
"yargs": "^15.4.1"
|
|
2
|
+
"license": "MIT",
|
|
3
|
+
"repository": {
|
|
4
|
+
"type": "git",
|
|
5
|
+
"url": "git+https://github.com/lumapps/design-system.git"
|
|
79
6
|
},
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
7
|
+
"scripts": {
|
|
8
|
+
"start:storybook": "storybook dev -p 9000",
|
|
9
|
+
"storybook": "storybook dev -p 6006",
|
|
10
|
+
"build-storybook": "storybook build",
|
|
11
|
+
"build": "vite build"
|
|
84
12
|
},
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"optional": true
|
|
88
|
-
}
|
|
13
|
+
"installConfig": {
|
|
14
|
+
"hoistingLimits": "workspaces"
|
|
89
15
|
},
|
|
90
|
-
"description": "The official LumApps Design System (LumX) for Vue applications",
|
|
91
|
-
"homepage": "https://github.com/lumapps/design-system",
|
|
92
|
-
"keywords": [
|
|
93
|
-
"Design System",
|
|
94
|
-
"LumApps",
|
|
95
|
-
"LumX",
|
|
96
|
-
"Vue"
|
|
97
|
-
],
|
|
98
|
-
"license": "MIT",
|
|
99
16
|
"module": "index.js",
|
|
100
17
|
"main": "index.js",
|
|
101
18
|
"types": "index.d.ts",
|
|
@@ -104,18 +21,19 @@
|
|
|
104
21
|
"directory": "dist",
|
|
105
22
|
"access": "public"
|
|
106
23
|
},
|
|
107
|
-
"repository": {
|
|
108
|
-
"type": "git",
|
|
109
|
-
"url": "git+https://github.com/lumapps/design-system.git"
|
|
110
|
-
},
|
|
111
|
-
"scripts": {
|
|
112
|
-
"start:storybook": "storybook dev -p 6007",
|
|
113
|
-
"build:storybook": "storybook build",
|
|
114
|
-
"test": "vue-demi-switch 3 && vitest",
|
|
115
|
-
"build": "vite build",
|
|
116
|
-
"storybook:vue3": "vue-demi-switch 3 && yarn start:storybook",
|
|
117
|
-
"storybook:vue2": "vue-demi-switch 2 vue2 && yarn start:storybook"
|
|
118
|
-
},
|
|
119
24
|
"sideEffects": false,
|
|
120
|
-
"version": "3.20.1-alpha.
|
|
25
|
+
"version": "3.20.1-alpha.10",
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@babel/plugin-transform-react-jsx": "^7.27.1",
|
|
28
|
+
"@storybook/vue3-vite": "^9.1.4",
|
|
29
|
+
"@vitejs/plugin-vue": "^6.0.2",
|
|
30
|
+
"@vitejs/plugin-vue-jsx": "^5.1.1",
|
|
31
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
32
|
+
"storybook": "^9.1.4",
|
|
33
|
+
"typescript": "^5.4.3",
|
|
34
|
+
"vite": "^6.3.5",
|
|
35
|
+
"vite-plugin-static-copy": "^3.1.4",
|
|
36
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
37
|
+
"vue": "^3.5.25"
|
|
38
|
+
}
|
|
121
39
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { mdiAbTesting } from 'lumx-icons/dist';
|
|
2
|
+
import Icon from './Icon.vue';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'LumX/Icon',
|
|
6
|
+
component: Icon,
|
|
7
|
+
argTypes: {
|
|
8
|
+
theme: { control: 'text' },
|
|
9
|
+
// Add other props here as needed
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const Template = (args) => ({
|
|
14
|
+
components: { Icon },
|
|
15
|
+
setup() {
|
|
16
|
+
return { args };
|
|
17
|
+
},
|
|
18
|
+
template: '<Icon v-bind="args" />',
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const Default = Template.bind({});
|
|
22
|
+
Default.args = {
|
|
23
|
+
// Provide default props here, e.g.:
|
|
24
|
+
theme: 'light',
|
|
25
|
+
icon: mdiAbTesting,
|
|
26
|
+
// name: 'star', // Example if Icon expects a name prop
|
|
27
|
+
};
|
package/src/Icon.vue
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { inject, useAttrs } from 'vue';
|
|
3
|
+
import { Icon as UI } from '@lumx/core/js/components/Icon';
|
|
4
|
+
// import type { IconProps, IconSizes } from '@lumx/core/js/components/Icon';
|
|
5
|
+
|
|
6
|
+
// Define props (replace 'any' with actual IconProps type if available)
|
|
7
|
+
const props = defineProps();
|
|
8
|
+
const attrs = useAttrs();
|
|
9
|
+
// Inject theme if provided by parent
|
|
10
|
+
const defaultTheme = inject('theme', undefined);
|
|
11
|
+
console.log(props);
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<UI v-bind="{ ...attrs, ...props, theme: props.theme || defaultTheme }" />
|
|
16
|
+
</template>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { mdiAbTesting } from 'lumx-icons/dist';
|
|
2
|
+
import InputHelper from './InputHelper.vue';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'LumX/InputHelper',
|
|
6
|
+
component: InputHelper,
|
|
7
|
+
argTypes: {
|
|
8
|
+
theme: { control: 'text' },
|
|
9
|
+
// Add other props here as needed
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const Template = (args) => ({
|
|
14
|
+
components: { InputHelper },
|
|
15
|
+
setup() {
|
|
16
|
+
return { args };
|
|
17
|
+
},
|
|
18
|
+
template: '<InputHelper>Text</InputHelper>',
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const Default = Template.bind({});
|
|
22
|
+
Default.args = {
|
|
23
|
+
// Provide default props here, e.g.:
|
|
24
|
+
theme: 'light',
|
|
25
|
+
icon: mdiAbTesting,
|
|
26
|
+
// name: 'star', // Example if Icon expects a name prop
|
|
27
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { inject, useAttrs } from 'vue';
|
|
3
|
+
import { InputHelper as UI } from '@lumx/core/js/components/InputHelper';
|
|
4
|
+
|
|
5
|
+
// Define props (replace 'any' with actual IconProps type if available)
|
|
6
|
+
const props = defineProps();
|
|
7
|
+
const attrs = useAttrs();
|
|
8
|
+
// Inject theme if provided by parent
|
|
9
|
+
const defaultTheme = inject('theme', undefined);
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<UI v-bind="{ ...attrs, ...props, theme: props.theme || defaultTheme }">
|
|
14
|
+
<slot />
|
|
15
|
+
</UI>
|
|
16
|
+
</template>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { mdiAbTesting } from 'lumx-icons/dist';
|
|
2
|
+
import Icon from './Icon.vue';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'LumX/Icon',
|
|
6
|
+
component: Icon,
|
|
7
|
+
argTypes: {
|
|
8
|
+
theme: { control: 'text' },
|
|
9
|
+
// Add other props here as needed
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const Template = (args) => ({
|
|
14
|
+
components: { Icon },
|
|
15
|
+
setup() {
|
|
16
|
+
return { args };
|
|
17
|
+
},
|
|
18
|
+
template: '<Icon v-bind="args" />',
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const Default = Template.bind({});
|
|
22
|
+
Default.args = {
|
|
23
|
+
// Provide default props here, e.g.:
|
|
24
|
+
theme: 'light',
|
|
25
|
+
icon: mdiAbTesting,
|
|
26
|
+
// name: 'star', // Example if Icon expects a name prop
|
|
27
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { inject, useAttrs } from 'vue';
|
|
3
|
+
import { Icon as UI } from '@lumx/core/js/components/Icon';
|
|
4
|
+
// import type { IconProps, IconSizes } from '@lumx/core/js/components/Icon';
|
|
5
|
+
|
|
6
|
+
// Define props (replace 'any' with actual IconProps type if available)
|
|
7
|
+
const props = defineProps();
|
|
8
|
+
const attrs = useAttrs();
|
|
9
|
+
// Inject theme if provided by parent
|
|
10
|
+
const defaultTheme = inject('theme', undefined);
|
|
11
|
+
console.log(props);
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<UI v-bind="{ ...attrs, ...props, theme: props.theme || defaultTheme }" />
|
|
16
|
+
</template>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { mdiAbTesting } from 'lumx-icons/dist';
|
|
2
|
+
import InputHelper from './InputHelper.vue';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'LumX/InputHelper',
|
|
6
|
+
component: InputHelper,
|
|
7
|
+
argTypes: {
|
|
8
|
+
theme: { control: 'text' },
|
|
9
|
+
// Add other props here as needed
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const Template = (args) => ({
|
|
14
|
+
components: { InputHelper },
|
|
15
|
+
setup() {
|
|
16
|
+
return { args };
|
|
17
|
+
},
|
|
18
|
+
template: '<InputHelper>Text</InputHelper>',
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const Default = Template.bind({});
|
|
22
|
+
Default.args = {
|
|
23
|
+
// Provide default props here, e.g.:
|
|
24
|
+
theme: 'light',
|
|
25
|
+
icon: mdiAbTesting,
|
|
26
|
+
// name: 'star', // Example if Icon expects a name prop
|
|
27
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { inject, useAttrs } from 'vue';
|
|
3
|
+
import { InputHelper as UI } from '@lumx/core/js/components/InputHelper';
|
|
4
|
+
|
|
5
|
+
// Define props (replace 'any' with actual IconProps type if available)
|
|
6
|
+
const props = defineProps();
|
|
7
|
+
const attrs = useAttrs();
|
|
8
|
+
// Inject theme if provided by parent
|
|
9
|
+
const defaultTheme = inject('theme', undefined);
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<UI v-bind="{ ...attrs, ...props, theme: props.theme || defaultTheme }">
|
|
14
|
+
<slot />
|
|
15
|
+
</UI>
|
|
16
|
+
</template>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { mdiAbTesting } from 'lumx-icons/dist';
|
|
2
|
+
import Icon from './Icon.vue';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'LumX/Icon',
|
|
6
|
+
component: Icon,
|
|
7
|
+
argTypes: {
|
|
8
|
+
theme: { control: 'text' },
|
|
9
|
+
// Add other props here as needed
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const Template = (args) => ({
|
|
14
|
+
components: { Icon },
|
|
15
|
+
setup() {
|
|
16
|
+
return { args };
|
|
17
|
+
},
|
|
18
|
+
template: '<Icon v-bind="args" />',
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const Default = Template.bind({});
|
|
22
|
+
Default.args = {
|
|
23
|
+
// Provide default props here, e.g.:
|
|
24
|
+
theme: 'light',
|
|
25
|
+
icon: mdiAbTesting,
|
|
26
|
+
// name: 'star', // Example if Icon expects a name prop
|
|
27
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { inject, useAttrs } from 'vue';
|
|
3
|
+
import { Icon as UI } from '@lumx/core/js/components/Icon';
|
|
4
|
+
// import type { IconProps, IconSizes } from '@lumx/core/js/components/Icon';
|
|
5
|
+
|
|
6
|
+
// Define props (replace 'any' with actual IconProps type if available)
|
|
7
|
+
const props = defineProps();
|
|
8
|
+
const attrs = useAttrs();
|
|
9
|
+
// Inject theme if provided by parent
|
|
10
|
+
const defaultTheme = inject('theme', undefined);
|
|
11
|
+
console.log(props);
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<UI v-bind="{ ...attrs, ...props, theme: props.theme || defaultTheme }" />
|
|
16
|
+
</template>
|
package/src/icon/index.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { mdiAbTesting } from 'lumx-icons/dist';
|
|
2
|
+
import InputHelper from './InputHelper.vue';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'LumX/InputHelper',
|
|
6
|
+
component: InputHelper,
|
|
7
|
+
argTypes: {
|
|
8
|
+
theme: { control: 'text' },
|
|
9
|
+
// Add other props here as needed
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const Template = (args) => ({
|
|
14
|
+
components: { InputHelper },
|
|
15
|
+
setup() {
|
|
16
|
+
return { args };
|
|
17
|
+
},
|
|
18
|
+
template: '<InputHelper>Text</InputHelper>',
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const Default = Template.bind({});
|
|
22
|
+
Default.args = {
|
|
23
|
+
// Provide default props here, e.g.:
|
|
24
|
+
theme: 'light',
|
|
25
|
+
icon: mdiAbTesting,
|
|
26
|
+
// name: 'star', // Example if Icon expects a name prop
|
|
27
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { inject, useAttrs } from 'vue';
|
|
3
|
+
import { InputHelper as UI } from '@lumx/core/js/components/InputHelper';
|
|
4
|
+
|
|
5
|
+
// Define props (replace 'any' with actual IconProps type if available)
|
|
6
|
+
const props = defineProps();
|
|
7
|
+
const attrs = useAttrs();
|
|
8
|
+
// Inject theme if provided by parent
|
|
9
|
+
const defaultTheme = inject('theme', undefined);
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<UI v-bind="{ ...attrs, ...props, theme: props.theme || defaultTheme }">
|
|
14
|
+
<slot />
|
|
15
|
+
</UI>
|
|
16
|
+
</template>
|
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,50 +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(props: IconProps) {
|
|
45
|
-
return { props };
|
|
46
|
-
},
|
|
47
|
-
render() {
|
|
48
|
-
return <UI {...this.props} />;
|
|
49
|
-
},
|
|
50
|
-
});
|
|
@@ -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,50 +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(props: IconProps) {
|
|
45
|
-
return { props };
|
|
46
|
-
},
|
|
47
|
-
render() {
|
|
48
|
-
return <UI {...this.props} />;
|
|
49
|
-
},
|
|
50
|
-
});
|
|
@@ -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