@lumx/vue 3.20.1-alpha.7 → 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 CHANGED
@@ -9,7 +9,7 @@
9
9
  "start:storybook": "storybook dev -p 9000",
10
10
  "storybook": "storybook dev -p 6006",
11
11
  "build-storybook": "storybook build",
12
- "build": "vite build && cp package.json dist/"
12
+ "build": "vite build"
13
13
  },
14
14
  "module": "index.js",
15
15
  "main": "index.js",
@@ -20,15 +20,17 @@
20
20
  "directory": "dist"
21
21
  },
22
22
  "sideEffects": false,
23
- "version": "3.20.1-alpha.7",
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",
33
+ "vite-plugin-static-copy": "^3.1.4",
32
34
  "vite-tsconfig-paths": "^5.1.4",
33
35
  "vue": "^3.5.25"
34
36
  }
@@ -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,2 @@
1
+ import Icon from './Icon.vue';
2
+ export { Icon };
@@ -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,2 @@
1
+ import InputHelper from './InputHelper.vue';
2
+ export { InputHelper };
@@ -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,2 @@
1
+ import Icon from './Icon.vue';
2
+ export { Icon };
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ import InputHelper from './InputHelper.vue';
2
+ export { InputHelper };
@@ -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,2 @@
1
+ import InputHelper from './InputHelper.vue';
2
+ export { InputHelper };