@adyen/lume 0.1.5 → 0.1.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/README.md CHANGED
@@ -6,19 +6,25 @@
6
6
 
7
7
  Lume is a library for graphical representations of information and data. By using visual elements like charts, graphs, and maps, this repository provide an accessible way to see and understand trends, outliers, and patterns in data. We use Vue to all graphic elements and rely on d3.js for the calculations.
8
8
 
9
- **[Design guidelines (Figma)](https://www.figma.com/file/r9fPqTXA4dlP6SIyfmGlDC/Data-Visualization-Library?node-id=15%3A2)**
9
+ **[Design guidelines (Figma)](https://www.figma.com/file/r9fPqTXA4dlP6SIyfmGlDC/%F0%9F%8C%9D-Lume---Data-Visualization-Library)**
10
+
11
+ - [Stack](#stack)
12
+ - [Getting started](#getting-started)
13
+ - [Development](#development)
14
+ - [Contacts](#contacts)
10
15
 
11
16
  ## Stack
12
17
 
13
- We're currently aiming to use:
18
+ ### Dependencies
14
19
 
15
20
  - [D3.js](https://d3js.org/) for calculations
16
21
  - [Vue _(v2.7)_](https://v2.vuejs.org/) for rendering
17
22
  - [Popper.js](https://popper.js.org/) for tooltip functionality
23
+ - [Portal Vue](https://portal-vue.linusb.org/) for portalling (not available in Vue 2)
18
24
 
19
25
  ### Dev stack
20
26
 
21
- - [Webpack](https://webpack.js.org/) for bundling/local dev server
27
+ - [Vite](https://vitejs.dev/) and [Webpack](https://webpack.js.org/) for bundling
22
28
  - [Sass](https://sass-lang.com/) for complex/reusable styling
23
29
  - [TypeScript](https://www.typescriptlang.org/) for type checking
24
30
  - [TypeScript ESLint](https://typescript-eslint.io/) for linting _(with the help of [eslint-plugin-vue](https://eslint.vuejs.org/))_
@@ -35,24 +41,9 @@ To install Lume, run the following command:
35
41
  $ npm install @adyen/lume
36
42
  ```
37
43
 
38
- ### Plugin
39
-
40
- The default export of Lume is a Vue plugin that you can install in your global Vue setup:
41
-
42
- ```ts
43
- import Vue from 'vue';
44
- import Lume from '@adyen/lume';
45
-
46
- import App from './my-app.vue';
47
-
48
- Vue.use(Lume);
49
-
50
- const app = new Vue(App).$mount('#root');
51
- ```
52
-
53
44
  ### Components
54
45
 
55
- If, instead of using the Vue plugin, you rather import single components as you go, you can do that as well:
46
+ You can import Lume components to your Vue app:
56
47
 
57
48
  ```ts
58
49
  // SFC <script type="ts">
@@ -66,6 +57,21 @@ export default defineComponent({
66
57
  });
67
58
  ```
68
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
+
69
75
  ## Development
70
76
 
71
77
  ### Quick start