@adyen/lume 0.1.3 → 0.1.5
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 +1 -0
- package/dist/common/0fea31cd.js +2959 -0
- package/dist/common/0fea31cd.js.map +1 -0
- package/dist/common/2a550b6f.js +9 -0
- package/dist/common/2a550b6f.js.map +1 -0
- package/dist/common/56dc685f.js +9 -0
- package/dist/common/56dc685f.js.map +1 -0
- package/dist/common/6580cc5e.js +9 -0
- package/dist/common/6580cc5e.js.map +1 -0
- package/dist/index.js +27 -2
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +43 -0
- package/dist/plugin.js.map +1 -0
- package/dist/scss/_typography.scss +1 -1
- package/dist/scss/components/lume-alluvial-group.scss +46 -0
- package/dist/scss/components/lume-alluvial-path-group.scss +31 -0
- package/dist/scss/components/lume-axis.scss +36 -0
- package/dist/scss/components/lume-bar.scss +27 -0
- package/dist/scss/components/lume-chart-container.scss +35 -0
- package/dist/scss/components/lume-chart-legend.scss +28 -0
- package/dist/scss/components/lume-chart.scss +38 -0
- package/dist/scss/components/lume-line-group.scss +11 -0
- package/dist/scss/components/lume-line.scss +34 -0
- package/dist/scss/components/lume-point.scss +9 -0
- package/dist/scss/components/lume-sparkline-chart.scss +10 -0
- package/dist/scss/components/lume-tooltip.scss +80 -0
- package/dist/scss/main.scss +15 -0
- package/dist/scss/variables/_colors.scss +4 -0
- package/dist/styles/font.css +1 -3
- package/dist/styles/main.css +3 -3
- package/package.json +30 -25
- package/dist/assets/fonts/inter-500.woff +0 -0
- package/dist/assets/fonts/inter-500.woff2 +0 -0
- package/dist/assets/fonts/inter-600.woff +0 -0
- package/dist/assets/fonts/inter-600.woff2 +0 -0
- package/dist/assets/fonts/inter-700.woff +0 -0
- package/dist/assets/fonts/inter-700.woff2 +0 -0
- package/dist/assets/fonts/inter-regular.woff +0 -0
- package/dist/assets/fonts/inter-regular.woff2 +0 -0
- package/dist/scss/font.scss +0 -37
- package/dist/styles/font.css.map +0 -1
- package/dist/styles/font.js +0 -0
- package/dist/styles/main.css.map +0 -1
- package/dist/styles/main.js +0 -0
- package/dist/types/components/charts/index.d.ts +0 -8
- package/dist/types/components/charts/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-alluvial-diagram/defaults.d.ts +0 -13
- package/dist/types/components/charts/lume-alluvial-diagram/defaults.d.ts.map +0 -1
- package/dist/types/components/charts/lume-alluvial-diagram/index.d.ts +0 -2
- package/dist/types/components/charts/lume-alluvial-diagram/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts +0 -109
- package/dist/types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts.map +0 -1
- package/dist/types/components/charts/lume-bar-chart/index.d.ts +0 -2
- package/dist/types/components/charts/lume-bar-chart/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts +0 -120
- package/dist/types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts.map +0 -1
- package/dist/types/components/charts/lume-grouped-bar-chart/defaults.d.ts +0 -28
- package/dist/types/components/charts/lume-grouped-bar-chart/defaults.d.ts.map +0 -1
- package/dist/types/components/charts/lume-grouped-bar-chart/index.d.ts +0 -2
- package/dist/types/components/charts/lume-grouped-bar-chart/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts +0 -94
- package/dist/types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts.map +0 -1
- package/dist/types/components/charts/lume-line-chart/defaults.d.ts +0 -3
- package/dist/types/components/charts/lume-line-chart/defaults.d.ts.map +0 -1
- package/dist/types/components/charts/lume-line-chart/index.d.ts +0 -2
- package/dist/types/components/charts/lume-line-chart/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts +0 -93
- package/dist/types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts.map +0 -1
- package/dist/types/components/charts/lume-single-bar-chart/defaults.d.ts +0 -24
- package/dist/types/components/charts/lume-single-bar-chart/defaults.d.ts.map +0 -1
- package/dist/types/components/charts/lume-single-bar-chart/index.d.ts +0 -2
- package/dist/types/components/charts/lume-single-bar-chart/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts +0 -94
- package/dist/types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts.map +0 -1
- package/dist/types/components/charts/lume-sparkline-chart/composables/sparkline-area.d.ts +0 -7
- package/dist/types/components/charts/lume-sparkline-chart/composables/sparkline-area.d.ts.map +0 -1
- package/dist/types/components/charts/lume-sparkline-chart/defaults.d.ts +0 -3
- package/dist/types/components/charts/lume-sparkline-chart/defaults.d.ts.map +0 -1
- package/dist/types/components/charts/lume-sparkline-chart/index.d.ts +0 -2
- package/dist/types/components/charts/lume-sparkline-chart/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts +0 -56
- package/dist/types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts.map +0 -1
- package/dist/types/components/charts/lume-stacked-bar-chart/defaults.d.ts +0 -28
- package/dist/types/components/charts/lume-stacked-bar-chart/defaults.d.ts.map +0 -1
- package/dist/types/components/charts/lume-stacked-bar-chart/index.d.ts +0 -2
- package/dist/types/components/charts/lume-stacked-bar-chart/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts +0 -96
- package/dist/types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts.map +0 -1
- package/dist/types/components/core/index.d.ts +0 -9
- package/dist/types/components/core/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/composables/index.d.ts +0 -8
- package/dist/types/components/core/lume-axis/composables/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/composables/lume-skip.d.ts +0 -13
- package/dist/types/components/core/lume-axis/composables/lume-skip.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/composables/x-band-scale-axis.d.ts +0 -4
- package/dist/types/components/core/lume-axis/composables/x-band-scale-axis.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/composables/x-linear-scale-axis.d.ts +0 -4
- package/dist/types/components/core/lume-axis/composables/x-linear-scale-axis.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/composables/y-band-scale-axis.d.ts +0 -4
- package/dist/types/components/core/lume-axis/composables/y-band-scale-axis.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/composables/y-linear-scale-axis.d.ts +0 -4
- package/dist/types/components/core/lume-axis/composables/y-linear-scale-axis.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/defaults.d.ts +0 -4
- package/dist/types/components/core/lume-axis/defaults.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/index.d.ts +0 -2
- package/dist/types/components/core/lume-axis/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/lume-axis.vue.d.ts +0 -87
- package/dist/types/components/core/lume-axis/lume-axis.vue.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/types.d.ts +0 -7
- package/dist/types/components/core/lume-axis/types.d.ts.map +0 -1
- package/dist/types/components/core/lume-bar/composables/bar-sizing.d.ts +0 -20
- package/dist/types/components/core/lume-bar/composables/bar-sizing.d.ts.map +0 -1
- package/dist/types/components/core/lume-bar/composables/bar-transition.d.ts +0 -7
- package/dist/types/components/core/lume-bar/composables/bar-transition.d.ts.map +0 -1
- package/dist/types/components/core/lume-bar/index.d.ts +0 -2
- package/dist/types/components/core/lume-bar/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-bar/lume-bar.vue.d.ts +0 -88
- package/dist/types/components/core/lume-bar/lume-bar.vue.d.ts.map +0 -1
- package/dist/types/components/core/lume-chart/index.d.ts +0 -2
- package/dist/types/components/core/lume-chart/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-chart-container/index.d.ts +0 -2
- package/dist/types/components/core/lume-chart-container/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-chart-container/lume-chart-container.vue.d.ts +0 -56
- package/dist/types/components/core/lume-chart-container/lume-chart-container.vue.d.ts.map +0 -1
- package/dist/types/components/core/lume-chart-legend/index.d.ts +0 -2
- package/dist/types/components/core/lume-chart-legend/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts +0 -17
- package/dist/types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts.map +0 -1
- package/dist/types/components/core/lume-line/index.d.ts +0 -2
- package/dist/types/components/core/lume-line/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-line/lume-line.vue.d.ts +0 -72
- package/dist/types/components/core/lume-line/lume-line.vue.d.ts.map +0 -1
- package/dist/types/components/core/lume-point/index.d.ts +0 -2
- package/dist/types/components/core/lume-point/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-point/lume-point.vue.d.ts +0 -71
- package/dist/types/components/core/lume-point/lume-point.vue.d.ts.map +0 -1
- package/dist/types/components/core/lume-tooltip/index.d.ts +0 -2
- package/dist/types/components/core/lume-tooltip/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-tooltip/lume-tooltip.vue.d.ts +0 -91
- package/dist/types/components/core/lume-tooltip/lume-tooltip.vue.d.ts.map +0 -1
- package/dist/types/components/groups/composables/group-props.d.ts +0 -27
- package/dist/types/components/groups/composables/group-props.d.ts.map +0 -1
- package/dist/types/components/groups/index.d.ts +0 -5
- package/dist/types/components/groups/index.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-group/composables/lume-alluvial-building-blocks.d.ts +0 -55
- package/dist/types/components/groups/lume-alluvial-group/composables/lume-alluvial-building-blocks.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-group/composables/lume-alluvial-coordinates.d.ts +0 -10
- package/dist/types/components/groups/lume-alluvial-group/composables/lume-alluvial-coordinates.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-group/composables/lume-alluvial-interactions.d.ts +0 -24
- package/dist/types/components/groups/lume-alluvial-group/composables/lume-alluvial-interactions.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-group/constants.d.ts +0 -3
- package/dist/types/components/groups/lume-alluvial-group/constants.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-group/index.d.ts +0 -2
- package/dist/types/components/groups/lume-alluvial-group/index.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts +0 -143
- package/dist/types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-path-group/index.d.ts +0 -2
- package/dist/types/components/groups/lume-alluvial-path-group/index.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-path-group/lume-alluvial-path-group.vue.d.ts +0 -53
- package/dist/types/components/groups/lume-alluvial-path-group/lume-alluvial-path-group.vue.d.ts.map +0 -1
- package/dist/types/components/groups/lume-bar-group/composables/bar-mixin.d.ts +0 -30
- package/dist/types/components/groups/lume-bar-group/composables/bar-mixin.d.ts.map +0 -1
- package/dist/types/components/groups/lume-bar-group/composables/grouped-mixin.d.ts +0 -16
- package/dist/types/components/groups/lume-bar-group/composables/grouped-mixin.d.ts.map +0 -1
- package/dist/types/components/groups/lume-bar-group/composables/single-mixin.d.ts +0 -16
- package/dist/types/components/groups/lume-bar-group/composables/single-mixin.d.ts.map +0 -1
- package/dist/types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts +0 -22
- package/dist/types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts.map +0 -1
- package/dist/types/components/groups/lume-bar-group/constants.d.ts +0 -2
- package/dist/types/components/groups/lume-bar-group/constants.d.ts.map +0 -1
- package/dist/types/components/groups/lume-bar-group/index.d.ts +0 -2
- package/dist/types/components/groups/lume-bar-group/index.d.ts.map +0 -1
- package/dist/types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts +0 -95
- package/dist/types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts.map +0 -1
- package/dist/types/components/groups/lume-line-group/index.d.ts +0 -2
- package/dist/types/components/groups/lume-line-group/index.d.ts.map +0 -1
- package/dist/types/components/groups/lume-line-group/lume-line-group.vue.d.ts +0 -75
- package/dist/types/components/groups/lume-line-group/lume-line-group.vue.d.ts.map +0 -1
- package/dist/types/components/groups/lume-overlay-group/index.d.ts +0 -2
- package/dist/types/components/groups/lume-overlay-group/index.d.ts.map +0 -1
- package/dist/types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts +0 -67
- package/dist/types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts.map +0 -1
- package/dist/types/components/index.d.ts +0 -20
- package/dist/types/components/index.d.ts.map +0 -1
- package/dist/types/composables/base.d.ts +0 -31
- package/dist/types/composables/base.d.ts.map +0 -1
- package/dist/types/composables/line-null-values.d.ts +0 -15
- package/dist/types/composables/line-null-values.d.ts.map +0 -1
- package/dist/types/composables/negative-values.d.ts +0 -16
- package/dist/types/composables/negative-values.d.ts.map +0 -1
- package/dist/types/composables/options.d.ts +0 -53
- package/dist/types/composables/options.d.ts.map +0 -1
- package/dist/types/composables/props.d.ts +0 -47
- package/dist/types/composables/props.d.ts.map +0 -1
- package/dist/types/composables/resize.d.ts +0 -17
- package/dist/types/composables/resize.d.ts.map +0 -1
- package/dist/types/composables/scales.d.ts +0 -51
- package/dist/types/composables/scales.d.ts.map +0 -1
- package/dist/types/composables/tooltip.d.ts +0 -29
- package/dist/types/composables/tooltip.d.ts.map +0 -1
- package/dist/types/constants.d.ts +0 -47
- package/dist/types/constants.d.ts.map +0 -1
- package/dist/types/docs/storybook-data/alluvial-data.d.ts +0 -38
- package/dist/types/docs/storybook-data/alluvial-data.d.ts.map +0 -1
- package/dist/types/docs/storybook-data/base-data.d.ts +0 -39
- package/dist/types/docs/storybook-data/base-data.d.ts.map +0 -1
- package/dist/types/docs/storybook-data/sparkline-data.d.ts +0 -24
- package/dist/types/docs/storybook-data/sparkline-data.d.ts.map +0 -1
- package/dist/types/docs/storybook-helpers.d.ts +0 -35
- package/dist/types/docs/storybook-helpers.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/types/alluvial.d.ts +0 -72
- package/dist/types/types/alluvial.d.ts.map +0 -1
- package/dist/types/types/dataset.d.ts +0 -32
- package/dist/types/types/dataset.d.ts.map +0 -1
- package/dist/types/types/size.d.ts +0 -7
- package/dist/types/types/size.d.ts.map +0 -1
- package/dist/types/utils/colors.d.ts +0 -5
- package/dist/types/utils/colors.d.ts.map +0 -1
- package/dist/types/utils/helpers.d.ts +0 -98
- package/dist/types/utils/helpers.d.ts.map +0 -1
- package/dist/types/utils/svg-check.d.ts +0 -7
- package/dist/types/utils/svg-check.d.ts.map +0 -1
- package/dist/types/utils/warnings.d.ts +0 -7
- package/dist/types/utils/warnings.d.ts.map +0 -1
package/dist/plugin.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { l as o, a as n, b as i, c as m, d as s, e as p, f as L, L as d, g as h, h as C, i as c, j as f, k as g, m as B, n as b, o as S, p as y, q as G, r as k } from "./common/0fea31cd.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "d3-sankey";
|
|
4
|
+
import "d3";
|
|
5
|
+
import "@popperjs/core";
|
|
6
|
+
const r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
|
+
__proto__: null,
|
|
8
|
+
LumeAlluvialDiagram: o,
|
|
9
|
+
LumeBarChart: n,
|
|
10
|
+
LumeSingleBarChart: i,
|
|
11
|
+
LumeGroupedBarChart: m,
|
|
12
|
+
LumeStackedBarChart: s,
|
|
13
|
+
LumeLineChart: p,
|
|
14
|
+
LumeSparklineChart: L,
|
|
15
|
+
LumeAxis: d,
|
|
16
|
+
LumeChart: h,
|
|
17
|
+
LumeChartContainer: C,
|
|
18
|
+
LumeChartLegend: c,
|
|
19
|
+
LumeTooltip: f,
|
|
20
|
+
LumeBar: g,
|
|
21
|
+
LumeLine: B,
|
|
22
|
+
LumePoint: b,
|
|
23
|
+
LumeAlluvialGroup: S,
|
|
24
|
+
LumeBarGroup: y,
|
|
25
|
+
LumeLineGroup: G,
|
|
26
|
+
LumeOverlayGroup: k
|
|
27
|
+
}, Symbol.toStringTag, { value: "Module" })), t = (u) => {
|
|
28
|
+
if (!t.installed) {
|
|
29
|
+
t.installed = !0;
|
|
30
|
+
for (const a in r)
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(r, a)) {
|
|
32
|
+
const l = r[a];
|
|
33
|
+
u.component(a, l);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}, v = { install: t };
|
|
37
|
+
let e = null;
|
|
38
|
+
typeof window < "u" ? e = window.Vue : typeof global < "u" && (e = global.Vue);
|
|
39
|
+
e && e.use(v);
|
|
40
|
+
export {
|
|
41
|
+
v as default
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["../src/plugin.ts"],"sourcesContent":["import { PluginFunction, PluginObject } from 'vue';\n\nimport * as components from './components';\n\ninterface LumePluginFunction extends PluginFunction<null> {\n installed?: boolean;\n}\n\nconst install: LumePluginFunction = (Vue) => {\n if (install.installed) return;\n install.installed = true;\n\n // Register components\n for (const prop in components) {\n if (Object.prototype.hasOwnProperty.call(components, prop)) {\n const component = components[prop];\n Vue.component(prop, component);\n }\n }\n};\n\nconst plugin: PluginObject<null> = { install };\n\n// Auto-install when vue is found (eg. in browser via <script> tag)\nlet GlobalVue = null;\nif (typeof window !== 'undefined') {\n GlobalVue = window.Vue;\n} else if (typeof global !== 'undefined') {\n GlobalVue = global.Vue;\n}\nif (GlobalVue) {\n GlobalVue.use(plugin);\n}\n\nexport default plugin;\n"],"names":["install","Vue","prop","components","component","plugin","GlobalVue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;8CAQMA,IAA8B,CAACC,MAAQ;AAC3C,MAAI,CAAAD,EAAQ,WACZ;AAAA,IAAAA,EAAQ,YAAY;AAGpB,eAAWE,KAAQC;AACjB,UAAI,OAAO,UAAU,eAAe,KAAKA,GAAYD,CAAI,GAAG;AAC1D,cAAME,IAAYD,EAAWD;AACzB,QAAAD,EAAA,UAAUC,GAAME,CAAS;AAAA,MAC/B;AAAA;AAEJ,GAEMC,IAA6B,EAAE,SAAAL,EAAQ;AAG7C,IAAIM,IAAY;AACZ,OAAO,SAAW,MACpBA,IAAY,OAAO,MACV,OAAO,SAAW,QAC3BA,IAAY,OAAO;AAEjBA,KACFA,EAAU,IAAID,CAAM;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
|
|
3
|
+
.lume-alluvial-group {
|
|
4
|
+
&__node {
|
|
5
|
+
opacity: 1;
|
|
6
|
+
transition: opacity $lume-transition-time-long;
|
|
7
|
+
|
|
8
|
+
&--faded {
|
|
9
|
+
opacity: 0.5;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&__node-block {
|
|
14
|
+
@each $color, $map in $lume-categorical-colors {
|
|
15
|
+
&--#{$color} {
|
|
16
|
+
$fill: nth($map, 1);
|
|
17
|
+
fill: $fill;
|
|
18
|
+
|
|
19
|
+
& + .lume-alluvial-group__node-text--color {
|
|
20
|
+
fill: $fill;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@each $color, $map in $lume-legacy-colors {
|
|
26
|
+
&--#{$color} {
|
|
27
|
+
$fill: nth($map, 1);
|
|
28
|
+
fill: $fill;
|
|
29
|
+
|
|
30
|
+
& + .lume-alluvial-group__node-text--color {
|
|
31
|
+
fill: $fill;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__node-text {
|
|
38
|
+
&--right {
|
|
39
|
+
text-anchor: end;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__node-value {
|
|
44
|
+
font-weight: $lume-font-weight-medium;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
|
|
3
|
+
$alluvial-link-opacity: 0.5;
|
|
4
|
+
$alluvial-link-opacity-faded: 0.2;
|
|
5
|
+
|
|
6
|
+
.lume-alluvial-path-group {
|
|
7
|
+
fill: none;
|
|
8
|
+
mix-blend-mode: multiply;
|
|
9
|
+
|
|
10
|
+
&__link {
|
|
11
|
+
stroke-opacity: $alluvial-link-opacity;
|
|
12
|
+
transition: stroke-opacity $lume-transition-time-long;
|
|
13
|
+
|
|
14
|
+
animation: strokeReset $lume-transition-time-full linear forwards;
|
|
15
|
+
|
|
16
|
+
&--faded {
|
|
17
|
+
stroke-opacity: $alluvial-link-opacity-faded;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&--ghost {
|
|
21
|
+
animation: unset;
|
|
22
|
+
transition: unset;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@keyframes strokeReset {
|
|
28
|
+
to {
|
|
29
|
+
stroke-dashoffset: 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
|
|
3
|
+
$axis-label-color: $lume-color-grey-50;
|
|
4
|
+
$axis-label-hover-color: $lume-color-grey-70;
|
|
5
|
+
|
|
6
|
+
$axis-line-color: $lume-color-grey-20;
|
|
7
|
+
|
|
8
|
+
.axis {
|
|
9
|
+
&__grid-line {
|
|
10
|
+
fill: none;
|
|
11
|
+
stroke: $axis-line-color;
|
|
12
|
+
shape-rendering: crispEdges;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&__label {
|
|
16
|
+
fill: $axis-label-color;
|
|
17
|
+
cursor: default;
|
|
18
|
+
transition: all $lume-transition-time-short ease-in-out;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__tick {
|
|
22
|
+
transition: opacity $lume-transition-time-short ease-in-out;
|
|
23
|
+
|
|
24
|
+
&--hidden {
|
|
25
|
+
opacity: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&--hovered {
|
|
29
|
+
opacity: 1;
|
|
30
|
+
|
|
31
|
+
.axis__label {
|
|
32
|
+
fill: $axis-label-hover-color;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
|
|
3
|
+
.lume-bar {
|
|
4
|
+
$b: &;
|
|
5
|
+
|
|
6
|
+
&--transition-width {
|
|
7
|
+
transition: width $lume-transition-time-medium ease,
|
|
8
|
+
fill $lume-transition-time-medium ease;
|
|
9
|
+
-moz-transition: width $lume-transition-time-medium ease,
|
|
10
|
+
fill $lume-transition-time-medium ease;
|
|
11
|
+
|
|
12
|
+
&#{$b}--negative {
|
|
13
|
+
transform: rotate(180deg);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&--transition-height {
|
|
18
|
+
transition: height $lume-transition-time-medium ease,
|
|
19
|
+
fill $lume-transition-time-medium ease;
|
|
20
|
+
-moz-transition: height $lume-transition-time-medium ease,
|
|
21
|
+
fill $lume-transition-time-medium ease;
|
|
22
|
+
|
|
23
|
+
&:not(#{$b}--negative) {
|
|
24
|
+
transform: rotate(180deg);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
|
|
3
|
+
$container-min-width: 320px;
|
|
4
|
+
$container-min-height: 224px;
|
|
5
|
+
|
|
6
|
+
.lume-chart-container {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
|
|
13
|
+
&--minimum {
|
|
14
|
+
min-width: $container-min-width;
|
|
15
|
+
min-height: $container-min-height;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__svg {
|
|
19
|
+
overflow: visible;
|
|
20
|
+
background-color: $lume-chart-background-color;
|
|
21
|
+
width: 100%;
|
|
22
|
+
min-height: 0;
|
|
23
|
+
flex: 1;
|
|
24
|
+
|
|
25
|
+
&--transparent {
|
|
26
|
+
background-color: transparent;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__group {
|
|
31
|
+
transition-property: transform;
|
|
32
|
+
transition-timing-function: ease-in-out;
|
|
33
|
+
transition-duration: $lume-transition-time-long;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
|
|
3
|
+
$legend-symbol-size: $lume-spacing-10 !default;
|
|
4
|
+
|
|
5
|
+
.lume-chart-legend {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-items: end;
|
|
8
|
+
|
|
9
|
+
&__item {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
padding: 0.25rem 0.5rem;
|
|
14
|
+
gap: 0.25rem;
|
|
15
|
+
|
|
16
|
+
color: $lume-color-grey-80;
|
|
17
|
+
|
|
18
|
+
cursor: default;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__symbol {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: $legend-symbol-size;
|
|
24
|
+
height: $legend-symbol-size;
|
|
25
|
+
|
|
26
|
+
border-radius: 50%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
|
|
3
|
+
.lume-chart {
|
|
4
|
+
&__header {
|
|
5
|
+
&-section {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
grid-template-columns: auto auto;
|
|
9
|
+
grid-template-areas: 'left right';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&__title {
|
|
14
|
+
grid-area: left;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&__controls {
|
|
18
|
+
grid-area: right;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__axis-title {
|
|
22
|
+
grid-area: left;
|
|
23
|
+
|
|
24
|
+
&--centered {
|
|
25
|
+
text-align: center;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__legend {
|
|
30
|
+
grid-area: right;
|
|
31
|
+
margin-left: auto;
|
|
32
|
+
|
|
33
|
+
&--bottom {
|
|
34
|
+
margin-left: unset;
|
|
35
|
+
margin-right: auto;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
|
|
3
|
+
$line-stroke-width: 2px;
|
|
4
|
+
$line-stroke-hover-width: 4px;
|
|
5
|
+
|
|
6
|
+
$ghost-line-stroke-width: 8px;
|
|
7
|
+
|
|
8
|
+
.lume-line {
|
|
9
|
+
stroke-width: $line-stroke-width;
|
|
10
|
+
stroke-linejoin: round;
|
|
11
|
+
stroke-linecap: round;
|
|
12
|
+
fill: none;
|
|
13
|
+
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
|
|
16
|
+
&--dashed {
|
|
17
|
+
stroke-dasharray: 2%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&--transition {
|
|
21
|
+
transition: all $lume-transition-time-long ease;
|
|
22
|
+
clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
|
|
23
|
+
animation: clipPathTransition ease-out forwards;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@keyframes clipPathTransition {
|
|
28
|
+
99% {
|
|
29
|
+
clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
|
|
30
|
+
}
|
|
31
|
+
100% {
|
|
32
|
+
clip-path: unset; /* Required for not having chipped lines */
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
|
|
3
|
+
@use '../variables' as *;
|
|
4
|
+
|
|
5
|
+
// Tooltip box -----------------------------------------------------------------
|
|
6
|
+
$lume-tooltip-title-color: $lume-color-grey-100 !default;
|
|
7
|
+
$lume-tooltip-item-color: $lume-color-grey-90 !default;
|
|
8
|
+
$lume-tooltip-value-color: $lume-color-grey-100 !default;
|
|
9
|
+
|
|
10
|
+
$lume-tooltip-background-color: $lume-color-white !default;
|
|
11
|
+
$lume-tooltip-border-radius: $lume-border-radius-8 !default;
|
|
12
|
+
$lume-tooltip-box-shadow: $lume-box-shadow !default;
|
|
13
|
+
$lume-tooltip-max-width: 288px !default;
|
|
14
|
+
|
|
15
|
+
$lume-tooltip-content-padding: $lume-spacing-10 !default;
|
|
16
|
+
$lume-tooltip-z-index: 500 !default;
|
|
17
|
+
|
|
18
|
+
$lume-tooltip-item-line-height: $lume-line-height-sm !default;
|
|
19
|
+
$lume-tooltip-item-min-width: 112px !default;
|
|
20
|
+
$lume-tooltip-symbol-size: $lume-spacing-10 !default;
|
|
21
|
+
|
|
22
|
+
.lume-tooltip {
|
|
23
|
+
position: absolute;
|
|
24
|
+
max-width: $lume-tooltip-max-width;
|
|
25
|
+
padding: $lume-tooltip-content-padding;
|
|
26
|
+
|
|
27
|
+
background: $lume-tooltip-background-color;
|
|
28
|
+
border: $lume-border;
|
|
29
|
+
border-radius: $lume-tooltip-border-radius;
|
|
30
|
+
box-shadow: $lume-tooltip-box-shadow;
|
|
31
|
+
z-index: $lume-tooltip-z-index;
|
|
32
|
+
pointer-events: none; /* prevent jitter when tooltip gets in the way of the cursor during transitions */
|
|
33
|
+
|
|
34
|
+
&--animated {
|
|
35
|
+
transition: transform $lume-transition-time-long ease-out;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__title {
|
|
39
|
+
margin-bottom: $lume-spacing-8;
|
|
40
|
+
font-weight: $lume-font-weight-medium;
|
|
41
|
+
color: $lume-tooltip-title-color;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&__items {
|
|
45
|
+
list-style: none;
|
|
46
|
+
margin: 0;
|
|
47
|
+
padding: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&__item {
|
|
51
|
+
display: flex;
|
|
52
|
+
min-width: $lume-tooltip-item-min-width;
|
|
53
|
+
margin-bottom: $lume-spacing-4;
|
|
54
|
+
color: $lume-tooltip-item-color;
|
|
55
|
+
|
|
56
|
+
&:last-child {
|
|
57
|
+
margin-bottom: 0;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&__symbol {
|
|
62
|
+
margin-top: math.div(
|
|
63
|
+
$lume-tooltip-item-line-height - $lume-tooltip-symbol-size,
|
|
64
|
+
2
|
|
65
|
+
); // default: 3px
|
|
66
|
+
margin-right: $lume-spacing-8;
|
|
67
|
+
width: $lume-tooltip-symbol-size;
|
|
68
|
+
height: $lume-tooltip-symbol-size;
|
|
69
|
+
flex-shrink: 0;
|
|
70
|
+
border-radius: 50%;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&__value {
|
|
74
|
+
flex-shrink: 0;
|
|
75
|
+
font-weight: $lume-font-weight-medium;
|
|
76
|
+
margin-left: auto;
|
|
77
|
+
padding-left: $lume-spacing-8;
|
|
78
|
+
color: $lume-tooltip-value-color;
|
|
79
|
+
}
|
|
80
|
+
}
|
package/dist/scss/main.scss
CHANGED
|
@@ -2,3 +2,18 @@
|
|
|
2
2
|
@forward 'utilities';
|
|
3
3
|
@forward 'titles';
|
|
4
4
|
@forward 'typography';
|
|
5
|
+
|
|
6
|
+
/** Lume component styles */
|
|
7
|
+
|
|
8
|
+
@forward 'components/lume-sparkline-chart.scss';
|
|
9
|
+
@forward 'components/lume-axis.scss';
|
|
10
|
+
@forward 'components/lume-bar.scss';
|
|
11
|
+
@forward 'components/lume-chart-container.scss';
|
|
12
|
+
@forward 'components/lume-chart-legend.scss';
|
|
13
|
+
@forward 'components/lume-chart.scss';
|
|
14
|
+
@forward 'components/lume-line.scss';
|
|
15
|
+
@forward 'components/lume-point.scss';
|
|
16
|
+
@forward 'components/lume-tooltip.scss';
|
|
17
|
+
@forward 'components/lume-alluvial-group.scss';
|
|
18
|
+
@forward 'components/lume-alluvial-path-group.scss';
|
|
19
|
+
@forward 'components/lume-line-group.scss';
|