@lumx/vue 3.20.1-alpha.8 → 3.20.1-alpha.9
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 +2 -1
- 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 +2 -0
- 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 +2 -0
- package/src/index.ts +2 -0
- 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/package.json
CHANGED
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
"directory": "dist"
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
|
-
"version": "3.20.1-alpha.
|
|
23
|
+
"version": "3.20.1-alpha.9",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@babel/plugin-transform-react-jsx": "^7.27.1",
|
|
26
26
|
"@storybook/vue3-vite": "^9.1.4",
|
|
27
27
|
"@vitejs/plugin-vue": "^6.0.2",
|
|
28
28
|
"@vitejs/plugin-vue-jsx": "^5.1.1",
|
|
29
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
29
30
|
"storybook": "^9.1.4",
|
|
30
31
|
"typescript": "^5.4.3",
|
|
31
32
|
"vite": "^6.3.5",
|
|
@@ -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/index.ts
ADDED
|
@@ -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>
|