@lumx/vue 3.19.1-alpha.7

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 ADDED
@@ -0,0 +1,117 @@
1
+ {
2
+ "author": {
3
+ "name": "LumApps"
4
+ },
5
+ "bugs": {
6
+ "url": "https://github.com/lumapps/design-system/issues"
7
+ },
8
+ "dependencies": {
9
+ "@lumx/core": "^3.19.1-alpha.7",
10
+ "@lumx/icons": "^3.19.1-alpha.7",
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
+ "@vue/composition-api": "1.7.2",
46
+ "autoprefixer": "^9.7.4",
47
+ "babel-jest": "29.1.2",
48
+ "babel-loader": "^8.0.6",
49
+ "eslint-plugin-storybook": "9.1.16",
50
+ "eslint-plugin-vue": "^10.5.0",
51
+ "focus-visible": "^5.0.2",
52
+ "glob": "^7.1.6",
53
+ "install-peers-cli": "^2.2.0",
54
+ "is-ci": "^2.0.0",
55
+ "jest": "29.1.2",
56
+ "jest-environment-jsdom": "29.1.2",
57
+ "node-notifier": "^10.0.1",
58
+ "rollup": "3.29.5",
59
+ "rollup-plugin-analyzer": "^4.0.0",
60
+ "rollup-plugin-cleaner": "^1.0.0",
61
+ "rollup-plugin-copy": "^3.5.0",
62
+ "rollup-plugin-dts": "^6.1.1",
63
+ "rollup-plugin-peer-deps-external": "^2.2.4",
64
+ "rollup-plugin-ts-paths-resolve": "^1.7.1",
65
+ "rollup-plugin-vue": "^6.0.0",
66
+ "storybook": "^9.1.4",
67
+ "typescript": "^5.4.3",
68
+ "vite": "^6.3.5",
69
+ "vite-plugin-dts": "^4.5.4",
70
+ "vite-tsconfig-paths": "^5.1.4",
71
+ "vitest": "^4.0.10",
72
+ "vue": "^3.4.27",
73
+ "vue2": "npm:vue@2.6",
74
+ "yargs": "^15.4.1"
75
+ },
76
+ "peerDependencies": {
77
+ "@vue/composition-api": "^1.1.2",
78
+ "lodash": "4.17.21",
79
+ "vue": "^2.6.0 || ^3.3.0"
80
+ },
81
+ "peerDependenciesMeta": {
82
+ "@vue/composition-api": {
83
+ "optional": true
84
+ }
85
+ },
86
+ "description": "The official LumApps Design System (LumX) for Vue applications",
87
+ "homepage": "https://github.com/lumapps/design-system",
88
+ "keywords": [
89
+ "Design System",
90
+ "LumApps",
91
+ "LumX",
92
+ "Vue"
93
+ ],
94
+ "license": "MIT",
95
+ "module": "index.js",
96
+ "main": "index.js",
97
+ "types": "index.d.ts",
98
+ "name": "@lumx/vue",
99
+ "publishConfig": {
100
+ "directory": "dist",
101
+ "access": "public"
102
+ },
103
+ "repository": {
104
+ "type": "git",
105
+ "url": "git+https://github.com/lumapps/design-system.git"
106
+ },
107
+ "scripts": {
108
+ "start:storybook": "storybook dev -p 6007",
109
+ "build:storybook": "storybook build",
110
+ "test": "vue-demi-switch 3 && vitest",
111
+ "build": "vite build",
112
+ "storybook:vue3": "vue-demi-switch 3 && yarn start:storybook",
113
+ "storybook:vue2": "vue-demi-switch 2 vue2 && yarn start:storybook"
114
+ },
115
+ "sideEffects": false,
116
+ "version": "3.19.1-alpha.7"
117
+ }
@@ -0,0 +1,17 @@
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
+ };
@@ -0,0 +1,9 @@
1
+ import { render } from '@testing-library/vue';
2
+ import Tests from '@lumx/core/js/components/Icon/Tests';
3
+ import { Icon, IconProps } from '.';
4
+
5
+ describe(`<${Icon.displayName}>`, () => {
6
+ Tests((props: IconProps) => {
7
+ render(Icon, { props });
8
+ });
9
+ });
package/src/Icon.vue ADDED
@@ -0,0 +1,21 @@
1
+ <script lang="ts">
2
+ import { defineComponent, ref } from 'vue-demi';
3
+ import { IconProps, Icon as UI } from '@lumx/core/js/components/Icon';
4
+
5
+ export default defineComponent({
6
+ name: 'Icon',
7
+ components: {
8
+ UI,
9
+ },
10
+ setup(props: IconProps) {
11
+ return { props };
12
+ },
13
+ });
14
+ </script>
15
+
16
+ <template>
17
+ <UI
18
+ v-bind="props"
19
+ ref="iconRef"
20
+ />
21
+ </template>
@@ -0,0 +1,17 @@
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
+ };
@@ -0,0 +1,9 @@
1
+ import { render } from '@testing-library/vue';
2
+ import Tests from '@lumx/core/js/components/Icon/Tests';
3
+ import { Icon, IconProps } from '.';
4
+
5
+ describe(`<${Icon.displayName}>`, () => {
6
+ Tests((props: IconProps) => {
7
+ render(Icon, { props });
8
+ });
9
+ });
@@ -0,0 +1,21 @@
1
+ <script lang="ts">
2
+ import { defineComponent, ref } from 'vue-demi';
3
+ import { IconProps, Icon as UI } from '@lumx/core/js/components/Icon';
4
+
5
+ export default defineComponent({
6
+ name: 'Icon',
7
+ components: {
8
+ UI,
9
+ },
10
+ setup(props: IconProps) {
11
+ return { props };
12
+ },
13
+ });
14
+ </script>
15
+
16
+ <template>
17
+ <UI
18
+ v-bind="props"
19
+ ref="iconRef"
20
+ />
21
+ </template>
@@ -0,0 +1,6 @@
1
+ import { IconProps } from '@lumx/core/js/components/Icon';
2
+
3
+ import Icon from './Icon.vue';
4
+
5
+ export { Icon };
6
+ export type { IconProps };
@@ -0,0 +1,17 @@
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
+ };
@@ -0,0 +1,9 @@
1
+ import { render } from '@testing-library/vue';
2
+ import Tests from '@lumx/core/js/components/Icon/Tests';
3
+ import { Icon, IconProps } from '.';
4
+
5
+ describe(`<${Icon.displayName}>`, () => {
6
+ Tests((props: IconProps) => {
7
+ render(Icon, { props });
8
+ });
9
+ });
@@ -0,0 +1,21 @@
1
+ <script lang="ts">
2
+ import { defineComponent, ref } from 'vue-demi';
3
+ import { IconProps, Icon as UI } from '@lumx/core/js/components/Icon';
4
+
5
+ export default defineComponent({
6
+ name: 'Icon',
7
+ components: {
8
+ UI,
9
+ },
10
+ setup(props: IconProps) {
11
+ return { props };
12
+ },
13
+ });
14
+ </script>
15
+
16
+ <template>
17
+ <UI
18
+ v-bind="props"
19
+ ref="iconRef"
20
+ />
21
+ </template>
@@ -0,0 +1,6 @@
1
+ import { IconProps } from '@lumx/core/js/components/Icon';
2
+
3
+ import Icon from './Icon.vue';
4
+
5
+ export { Icon };
6
+ export type { IconProps };
package/src/index.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { IconProps } from '@lumx/core/js/components/Icon';
2
+
3
+ import Icon from './Icon.vue';
4
+
5
+ export { Icon };
6
+ export type { IconProps };
File without changes