@adyen/lume 0.1.6 → 0.1.8
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/README.md +38 -16
- package/dist/common/{2c318357.js → 25ccdedf.js} +2 -2
- package/dist/common/25ccdedf.js.map +1 -0
- package/dist/common/{df7327e8.js → 55f09e14.js} +1077 -1042
- package/dist/common/55f09e14.js.map +1 -0
- package/dist/common/{b0835720.js → 6f5e659c.js} +2 -2
- package/dist/common/6f5e659c.js.map +1 -0
- package/dist/common/{797e4fbd.js → 97d72066.js} +2 -2
- package/dist/common/97d72066.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/plugin.js +1 -1
- package/dist/scss/components/lume-tooltip.scss +10 -1
- package/dist/scss/main.scss +2 -2
- package/dist/styles/main.css +1 -1
- package/package.json +9 -5
- package/dist/common/2c318357.js.map +0 -1
- package/dist/common/797e4fbd.js.map +0 -1
- package/dist/common/b0835720.js.map +0 -1
- package/dist/common/df7327e8.js.map +0 -1
package/README.md
CHANGED
|
@@ -8,6 +8,11 @@ Lume is a library for graphical representations of information and data. By usin
|
|
|
8
8
|
|
|
9
9
|
**[Design guidelines (Figma)](https://www.figma.com/file/r9fPqTXA4dlP6SIyfmGlDC/%F0%9F%8C%9D-Lume---Data-Visualization-Library)**
|
|
10
10
|
|
|
11
|
+
- [Stack](#stack)
|
|
12
|
+
- [Getting started](#getting-started)
|
|
13
|
+
- [Development](#development)
|
|
14
|
+
- [Contacts](#contacts)
|
|
15
|
+
|
|
11
16
|
## Stack
|
|
12
17
|
|
|
13
18
|
### Dependencies
|
|
@@ -36,24 +41,9 @@ To install Lume, run the following command:
|
|
|
36
41
|
$ npm install @adyen/lume
|
|
37
42
|
```
|
|
38
43
|
|
|
39
|
-
### Plugin
|
|
40
|
-
|
|
41
|
-
The default export of Lume is a Vue plugin that you can install in your global Vue setup:
|
|
42
|
-
|
|
43
|
-
```ts
|
|
44
|
-
import Vue from 'vue';
|
|
45
|
-
import Lume from '@adyen/lume';
|
|
46
|
-
|
|
47
|
-
import App from './my-app.vue';
|
|
48
|
-
|
|
49
|
-
Vue.use(Lume);
|
|
50
|
-
|
|
51
|
-
const app = new Vue(App).$mount('#root');
|
|
52
|
-
```
|
|
53
|
-
|
|
54
44
|
### Components
|
|
55
45
|
|
|
56
|
-
|
|
46
|
+
You can import Lume components to your Vue app:
|
|
57
47
|
|
|
58
48
|
```ts
|
|
59
49
|
// SFC <script type="ts">
|
|
@@ -67,6 +57,21 @@ export default defineComponent({
|
|
|
67
57
|
});
|
|
68
58
|
```
|
|
69
59
|
|
|
60
|
+
### Plugin
|
|
61
|
+
|
|
62
|
+
You can also import Lume as a Vue plugin that you install in your global Vue setup:
|
|
63
|
+
|
|
64
|
+
```ts
|
|
65
|
+
import Vue from 'vue';
|
|
66
|
+
import LumePlugin from '@adyen/lume/plugin';
|
|
67
|
+
|
|
68
|
+
import App from './my-app.vue';
|
|
69
|
+
|
|
70
|
+
Vue.use(LumePlugin);
|
|
71
|
+
|
|
72
|
+
const app = new Vue(App).$mount('#root');
|
|
73
|
+
```
|
|
74
|
+
|
|
70
75
|
## Development
|
|
71
76
|
|
|
72
77
|
### Quick start
|
|
@@ -86,6 +91,23 @@ Follow these steps to quickly start developing amazing data-viz components local
|
|
|
86
91
|
$ npm start
|
|
87
92
|
```
|
|
88
93
|
|
|
94
|
+
### Docker
|
|
95
|
+
|
|
96
|
+
To run the app inside a Docker container:
|
|
97
|
+
|
|
98
|
+
1. Create a `.env` file with your Docker image URL:
|
|
99
|
+
```shell
|
|
100
|
+
$ echo DOCKER_IMAGE={YOUR_IMAGE_HERE} >> .env
|
|
101
|
+
```
|
|
102
|
+
2. Start your container:
|
|
103
|
+
```shell
|
|
104
|
+
$ docker compose up -d
|
|
105
|
+
```
|
|
106
|
+
3. Attach to it in your terminal:
|
|
107
|
+
```shell
|
|
108
|
+
$ docker attach lume
|
|
109
|
+
```
|
|
110
|
+
|
|
89
111
|
#### Storybook
|
|
90
112
|
|
|
91
113
|
Storybook is available by running the following command:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as a } from "./
|
|
1
|
+
import { b as a } from "./55f09e14.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "d3-sankey";
|
|
4
4
|
import "d3";
|
|
@@ -6,4 +6,4 @@ import "@popperjs/core";
|
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=
|
|
9
|
+
//# sourceMappingURL=25ccdedf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"25ccdedf.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|