@energie360/ui-library 0.0.3 → 0.1.0
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/base/_resets.scss +2 -0
- package/base/main-base.scss +20 -0
- package/base-style.js +1 -0
- package/components/icon-text-block/icon-text-block.scss +55 -0
- package/components/icon-text-block/icon-text-block.vue +28 -0
- package/components/icon-text-block-group/icon-text-block-group.scss +5 -0
- package/components/icon-text-block-group/icon-text-block-group.vue +9 -0
- package/dist/base-style.css +20 -0
- package/dist/base-style.js +2 -0
- package/dist/base-style.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +579 -567
- package/dist/index.js.map +1 -1
- package/elements/icon/icon.vue +3 -2
- package/elements/icon-button/icon-button.vue +2 -2
- package/elements/index.js +22 -0
- package/globals.js +1 -1
- package/layout/container/container.scss +30 -0
- package/layout/grid/grid-row.scss +10 -0
- package/layout/grid/grid.mixin.scss +90 -0
- package/layout/grid/grid.scss +122 -0
- package/package.json +5 -3
- package/vite.config.js +4 -1
- package/wizard/wizard-intro/wizard-intro.scss +39 -0
- package/wizard/wizard-intro/wizard-intro.vue +37 -0
- package/wizard/wizard-layout/wizard-layout-block.scss +45 -0
- package/wizard/wizard-layout/wizard-layout-block.vue +19 -0
- package/wizard/wizard-layout/wizard-layout-element.scss +3 -0
- package/wizard/wizard-layout/wizard-layout-element.vue +9 -0
- package/wizard/wizard-layout/wizard-layout.scss +40 -0
- package/wizard/wizard-layout/wizard-layout.vue +11 -0
- package/base/base-v2.scss +0 -35
- package/base/index.scss +0 -5
- package/base/main.scss +0 -14
- package/dist/style.css +0 -20
- package/dist/style.js +0 -2
- package/dist/style.js.map +0 -1
- package/style.js +0 -2
package/elements/icon/icon.vue
CHANGED
|
@@ -5,7 +5,7 @@ import { assetsPath } from '../../globals.js'
|
|
|
5
5
|
/**
|
|
6
6
|
* Path prefix for icons.
|
|
7
7
|
*/
|
|
8
|
-
const iconPath = assetsPath + '
|
|
8
|
+
const iconPath = assetsPath + 'icons/'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* This map will hold all fetched icons. Should minimize unnecesary requests. It's just a cache.
|
|
@@ -13,7 +13,7 @@ const iconPath = assetsPath + '/icons/'
|
|
|
13
13
|
const iconMap = new Map()
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* A simple (non-visible) placeholder, which
|
|
16
|
+
* A simple (non-visible) placeholder, which is used when an error happened or the icon couldn't be found.
|
|
17
17
|
*/
|
|
18
18
|
const svgPlaceholder = `
|
|
19
19
|
<svg width="24" height="24"></svg>
|
|
@@ -50,6 +50,7 @@ const getIcon = (name) => {
|
|
|
50
50
|
svgContent.value = text
|
|
51
51
|
})
|
|
52
52
|
.catch((err) => {
|
|
53
|
+
console.error(err)
|
|
53
54
|
svgContent.value = svgPlaceholder
|
|
54
55
|
})
|
|
55
56
|
|
|
@@ -20,7 +20,7 @@ defineProps({
|
|
|
20
20
|
<Icon v-if="icon" :name="icon" />
|
|
21
21
|
|
|
22
22
|
<span class="visually-hidden">
|
|
23
|
-
{{ label }}
|
|
23
|
+
<slot>{{ label }}</slot>
|
|
24
24
|
</span>
|
|
25
25
|
</a>
|
|
26
26
|
</template>
|
|
@@ -30,7 +30,7 @@ defineProps({
|
|
|
30
30
|
<Icon v-if="icon" :name="icon" />
|
|
31
31
|
|
|
32
32
|
<span class="visually-hidden">
|
|
33
|
-
{{ label }}
|
|
33
|
+
<slot>{{ label }}</slot>
|
|
34
34
|
</span>
|
|
35
35
|
</button>
|
|
36
36
|
</template>
|
package/elements/index.js
CHANGED
|
@@ -3,6 +3,28 @@ import { IconButtonElement as IconButton } from './icon-button/icon-button.js'
|
|
|
3
3
|
import { IconElement as Icon } from './icon/icon.js'
|
|
4
4
|
import { LoaderElement as Loader } from './loader/loader.js'
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* These exports allow best tree-shaking behaviour.
|
|
8
|
+
* Obviously you'll have to import 'manually' all the elements you need.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* import { IconButton } from '@energie360/ui-library'
|
|
12
|
+
* IconButton.register()
|
|
13
|
+
*/
|
|
14
|
+
export { Button, IconButton, Icon, Loader }
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* With this export you get all the elements. Meaning all the elements will be inlcuded in your bundle, even if you register only one element.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* import { Elements } from '@energie360/ui-library'
|
|
21
|
+
* Elements.Button.register()
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{IconButton: {register: function(): void}, Button: {register: function(): void}, Loader: {register: function(): void}, Icon: {register: function(): void}}}
|
|
27
|
+
*/
|
|
6
28
|
export const Elements = {
|
|
7
29
|
Button,
|
|
8
30
|
IconButton,
|
package/globals.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// A possible idea would be to use a cdn when the package is built.
|
|
2
2
|
// Currently we'll use a fixed path for the assets on dev and prod. This must be made available by the application using ui-library.
|
|
3
3
|
export const assetsPath =
|
|
4
|
-
import.meta.env.DEV === true ? '/static/ui-assets' : '/static/ui-assets'
|
|
4
|
+
import.meta.env.DEV === true ? '/static/ui-assets/' : '/static/ui-assets/'
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@use '../../base/abstracts' as a;
|
|
2
|
+
@use '@energie360/design-tokens/dist/scss' as dt;
|
|
3
|
+
|
|
4
|
+
// TODO: Move this mixin to abstratcs?
|
|
5
|
+
@mixin grid-container {
|
|
6
|
+
margin: 0 auto;
|
|
7
|
+
max-width: a.rem(dt.$layout-site-width);
|
|
8
|
+
width: 100%;
|
|
9
|
+
padding-left: a.rem(a.$container-edge-2xl);
|
|
10
|
+
padding-right: a.rem(a.$container-edge-2xl);
|
|
11
|
+
|
|
12
|
+
@include a.bp(lg) {
|
|
13
|
+
padding-left: a.rem(a.$container-edge-lg);
|
|
14
|
+
padding-right: a.rem(a.$container-edge-lg);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@include a.bp(m) {
|
|
18
|
+
padding-left: a.rem(a.$container-edge-m);
|
|
19
|
+
padding-right: a.rem(a.$container-edge-m);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include a.bp(s) {
|
|
23
|
+
padding-left: a.rem(a.$container-edge-s);
|
|
24
|
+
padding-right: a.rem(a.$container-edge-s);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.container {
|
|
29
|
+
@include grid-container;
|
|
30
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../../base/abstracts' as a;
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
Helper to colculate col width in %.
|
|
6
|
+
Looks complicated because we use grid-gap on the row, which takes away from available width.
|
|
7
|
+
*/
|
|
8
|
+
@function col-width($size, $columns, $gutter) {
|
|
9
|
+
@return math.div(100% - (($columns - 1) * $gutter), $columns) * $size +
|
|
10
|
+
(($size - 1) * $gutter);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@mixin grid-row() {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
grid-gap: a.$grid-gutter-2xl;
|
|
17
|
+
|
|
18
|
+
@include a.bp(lg) {
|
|
19
|
+
grid-gap: a.$grid-gutter-lg;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include a.bp(m) {
|
|
23
|
+
grid-gap: a.$grid-gutter-m;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@include a.bp(s) {
|
|
27
|
+
grid-gap: a.$grid-gutter-s;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
Mixin to create a grid column cell.
|
|
33
|
+
|
|
34
|
+
$cols: Column width of cell.
|
|
35
|
+
$columns: Grid size (in columns). Default is set by global variable $grid-columns (defined via design token).
|
|
36
|
+
*/
|
|
37
|
+
@mixin grid-col($cols, $columns: a.$grid-columns) {
|
|
38
|
+
$width-2xl: col-width($cols, $columns, a.$grid-gutter-2xl);
|
|
39
|
+
|
|
40
|
+
flex: 0 0 $width-2xl;
|
|
41
|
+
max-width: $width-2xl;
|
|
42
|
+
|
|
43
|
+
@include a.bp(lg) {
|
|
44
|
+
$width-lg: col-width($cols, $columns, a.$grid-gutter-lg);
|
|
45
|
+
|
|
46
|
+
flex: 0 0 $width-lg;
|
|
47
|
+
max-width: $width-lg;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@include a.bp(m) {
|
|
51
|
+
$width-m: col-width($cols, $columns, a.$grid-gutter-m);
|
|
52
|
+
|
|
53
|
+
flex: 0 0 $width-m;
|
|
54
|
+
max-width: $width-m;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@include a.bp(s) {
|
|
58
|
+
$width-s: col-width($cols, $columns, a.$grid-gutter-s);
|
|
59
|
+
|
|
60
|
+
flex: 0 0 $width-s;
|
|
61
|
+
max-width: $width-s;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// TODO: Change args order -> $prop, $indent, $columns
|
|
66
|
+
@mixin grid-col-space(
|
|
67
|
+
$indent,
|
|
68
|
+
$columns: a.$grid-columns,
|
|
69
|
+
$prop: 'margin-left'
|
|
70
|
+
) {
|
|
71
|
+
#{$prop}: col-width($indent, $columns, a.$grid-gutter-2xl) +
|
|
72
|
+
a.$grid-gutter-2xl;
|
|
73
|
+
|
|
74
|
+
@include a.bp(lg) {
|
|
75
|
+
#{$prop}: col-width($indent, $columns, a.$grid-gutter-lg) +
|
|
76
|
+
a.$grid-gutter-lg;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@include a.bp(m) {
|
|
80
|
+
#{$prop}: col-width($indent, $columns, a.$grid-gutter-m) + a.$grid-gutter-m;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@include a.bp(s) {
|
|
84
|
+
#{$prop}: col-width($indent, $columns, a.$grid-gutter-s) + a.$grid-gutter-s;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@mixin grid-col-indent($indent, $columns: a.$grid-columns) {
|
|
89
|
+
@include grid-col-space($indent, $columns);
|
|
90
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../../base/abstracts' as a;
|
|
3
|
+
@use 'grid.mixin' as *;
|
|
4
|
+
|
|
5
|
+
@use 'grid-row';
|
|
6
|
+
|
|
7
|
+
// These loops create column classes for the breakpoints 2xl, xl, lg, m and s.
|
|
8
|
+
// Obviously it will create classes that will probably never be used (CSS bloat).
|
|
9
|
+
// We could be using only the grid-col mixins.
|
|
10
|
+
// Or also define some commonly used responsive column configurations.
|
|
11
|
+
// We'll have to figure it out...
|
|
12
|
+
@for $i from 1 through a.$grid-columns {
|
|
13
|
+
.col-#{$i} {
|
|
14
|
+
@include grid-col($i);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@if ($i < a.$grid-columns) {
|
|
18
|
+
.col-indent-#{$i} {
|
|
19
|
+
@include grid-col-indent($i);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// For "2xl" breakpoint
|
|
25
|
+
@include a.bp('2xl') {
|
|
26
|
+
@for $i from 1 through a.$grid-columns {
|
|
27
|
+
.col-2xl-#{$i} {
|
|
28
|
+
@include grid-col($i);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@if ($i < a.$grid-columns) {
|
|
32
|
+
.col-indent-2xl-#{$i} {
|
|
33
|
+
@include grid-col-indent($i);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// To clear indent on breakpoint xl
|
|
38
|
+
.col-indent-2xl-0 {
|
|
39
|
+
margin-left: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// For "xl" breakpoint
|
|
45
|
+
@include a.bp(xl) {
|
|
46
|
+
@for $i from 1 through a.$grid-columns {
|
|
47
|
+
.col-xl-#{$i} {
|
|
48
|
+
@include grid-col($i);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@if ($i < a.$grid-columns) {
|
|
52
|
+
.col-indent-xl-#{$i} {
|
|
53
|
+
@include grid-col-indent($i);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// To clear indent on breakpoint xl
|
|
58
|
+
.col-indent-xl-0 {
|
|
59
|
+
margin-left: 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// For "lg" breakpoint
|
|
65
|
+
@include a.bp(lg) {
|
|
66
|
+
@for $i from 1 through a.$grid-columns {
|
|
67
|
+
.col-lg-#{$i} {
|
|
68
|
+
@include grid-col($i);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@if ($i < a.$grid-columns) {
|
|
72
|
+
.col-indent-lg-#{$i} {
|
|
73
|
+
@include grid-col-indent($i);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// To clear indent on breakpoint lg
|
|
78
|
+
.col-indent-lg-0 {
|
|
79
|
+
margin-left: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// For "m" breakpoint
|
|
85
|
+
@include a.bp(m) {
|
|
86
|
+
@for $i from 1 through a.$grid-columns {
|
|
87
|
+
.col-m-#{$i} {
|
|
88
|
+
@include grid-col($i);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@if ($i < a.$grid-columns) {
|
|
92
|
+
.col-indent-m-#{$i} {
|
|
93
|
+
@include grid-col-indent($i);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// To clear indent on breakpoint m
|
|
98
|
+
.col-indent-m-0 {
|
|
99
|
+
margin-left: 0;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// For "s" breakpoint
|
|
105
|
+
@include a.bp(s) {
|
|
106
|
+
@for $i from 1 through a.$grid-columns {
|
|
107
|
+
.col-s-#{$i} {
|
|
108
|
+
@include grid-col($i);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@if ($i < a.$grid-columns) {
|
|
112
|
+
.col-indent-s-#{$i} {
|
|
113
|
+
@include grid-col-indent($i);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// To clear indent on breakpoint s
|
|
118
|
+
.col-indent-s-0 {
|
|
119
|
+
margin-left: 0;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@energie360/ui-library",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./dist/index.js",
|
|
8
|
-
"./style.css": "./dist/style.css",
|
|
9
|
-
"./elements/*": "./elements/*"
|
|
8
|
+
"./base-style.css": "./dist/base-style.css",
|
|
9
|
+
"./elements/*": "./elements/*",
|
|
10
|
+
"./components/*": "./components/*",
|
|
11
|
+
"./wizard/*": "./wizard/*"
|
|
10
12
|
},
|
|
11
13
|
"keywords": [],
|
|
12
14
|
"author": "",
|
package/vite.config.js
CHANGED
|
@@ -9,7 +9,10 @@ export default defineConfig({
|
|
|
9
9
|
cssCodeSplit: true,
|
|
10
10
|
sourcemap: true,
|
|
11
11
|
lib: {
|
|
12
|
-
entry: [
|
|
12
|
+
entry: [
|
|
13
|
+
resolve(__dirname, 'index.js'),
|
|
14
|
+
resolve(__dirname, 'base-style.js'),
|
|
15
|
+
],
|
|
13
16
|
name: '@energie360/ui-library',
|
|
14
17
|
formats: ['es'],
|
|
15
18
|
fileName: (format, entryName) => `${entryName}.js`,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@use '../../base/abstracts' as a;
|
|
2
|
+
|
|
3
|
+
.wizard-intro {
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-columns: repeat(2, 1fr);
|
|
6
|
+
column-gap: var(--e-space-10);
|
|
7
|
+
|
|
8
|
+
@include a.bp(lg) {
|
|
9
|
+
row-gap: var(--e-space-12);
|
|
10
|
+
grid-template-columns: 1fr;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.left-col {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.title-slot {
|
|
20
|
+
@include a.type(1000, strong);
|
|
21
|
+
|
|
22
|
+
@include a.bp(lg) {
|
|
23
|
+
@include a.type(800, strong);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.description-slot {
|
|
28
|
+
margin-top: var(--e-space-6);
|
|
29
|
+
|
|
30
|
+
@include a.type(300);
|
|
31
|
+
|
|
32
|
+
@include a.bp(m) {
|
|
33
|
+
@include a.type(200);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.cta-slot {
|
|
38
|
+
margin-top: var(--e-space-16);
|
|
39
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
defineProps({
|
|
3
|
+
title: String,
|
|
4
|
+
description: String,
|
|
5
|
+
ctaText: String
|
|
6
|
+
})
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<div class="wizard-intro">
|
|
11
|
+
<div class="left-col">
|
|
12
|
+
<div>
|
|
13
|
+
<div class="title-slot">
|
|
14
|
+
<slot name="title"><h1>{{ title }}</h1></slot>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<div class="description-slot">
|
|
18
|
+
<slot name="description">
|
|
19
|
+
<p v-html="description"/>
|
|
20
|
+
</slot>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div class="cta-slot">
|
|
24
|
+
<slot name="cta"></slot>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div class="right-col">
|
|
30
|
+
<slot name="content-right"></slot>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<style lang="scss" scoped>
|
|
36
|
+
@use './wizard-intro.scss';
|
|
37
|
+
</style>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use '../../base/abstracts' as a;
|
|
2
|
+
@use '../../layout/grid/grid-row';
|
|
3
|
+
@use '../../layout/grid/grid.mixin' as g;
|
|
4
|
+
|
|
5
|
+
.wizard-layout-block + .wizard-layout-block {
|
|
6
|
+
margin-top: var(--e-wizard-block-bottom);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.wizard-layout-block {
|
|
10
|
+
.col-6 {
|
|
11
|
+
@include g.grid-col(6);
|
|
12
|
+
|
|
13
|
+
@include a.bp(xl) {
|
|
14
|
+
@include g.grid-col(8);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@include a.bp(m) {
|
|
18
|
+
@include g.grid-col(12);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.col-8 {
|
|
23
|
+
@include g.grid-col(8);
|
|
24
|
+
|
|
25
|
+
@include a.bp(m) {
|
|
26
|
+
@include g.grid-col(12);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.col-10 {
|
|
31
|
+
@include g.grid-col(10);
|
|
32
|
+
|
|
33
|
+
@include a.bp(lg) {
|
|
34
|
+
@include g.grid-col(8);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include a.bp(m) {
|
|
38
|
+
@include g.grid-col(12);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.col-12 {
|
|
43
|
+
@include g.grid-col(12);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
defineProps({
|
|
3
|
+
columns: [Number, String],
|
|
4
|
+
})
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<div class="wizard-layout-block">
|
|
9
|
+
<div class="row row--centered">
|
|
10
|
+
<div :class="[`col-${columns}`]">
|
|
11
|
+
<slot></slot>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<style scoped lang="scss">
|
|
18
|
+
@use './wizard-layout-block.scss';
|
|
19
|
+
</style>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@use '@energie360/design-tokens/dist/scss/index' as dt;
|
|
2
|
+
@use '../../base/abstracts' as a;
|
|
3
|
+
@use '../../layout/container/container' as c;
|
|
4
|
+
|
|
5
|
+
.container {
|
|
6
|
+
@include c.grid-container;
|
|
7
|
+
|
|
8
|
+
// TODO: Can we do this differently?
|
|
9
|
+
&.embedded {
|
|
10
|
+
padding-left: 0;
|
|
11
|
+
padding-right: 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.wizard-layout {
|
|
16
|
+
--e-wizard-wrapper-top: #{a.rem(dt.$space-28)};
|
|
17
|
+
--e-wizard-wrapper-bottom: #{a.rem(dt.$space-28)};
|
|
18
|
+
--e-wizard-block-bottom: #{a.rem(dt.$space-16)};
|
|
19
|
+
--e-wizard-block-between: #{a.rem(dt.$space-6)};
|
|
20
|
+
|
|
21
|
+
@include a.bp(lg) {
|
|
22
|
+
--e-wizard-wrapper-top: #{a.rem(dt.$space-12)};
|
|
23
|
+
--e-wizard-wrapper-bottom: #{a.rem(dt.$space-20)};
|
|
24
|
+
--e-wizard-block-bottom: #{a.rem(dt.$space-12)};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
padding-top: var(--e-wizard-wrapper-top);
|
|
28
|
+
padding-bottom: var(--e-wizard-wrapper-bottom);
|
|
29
|
+
|
|
30
|
+
// Spacing rules
|
|
31
|
+
.wizard-layout-block + .wizard-layout-block {
|
|
32
|
+
margin-top: var(--e-wizard-block-bottom);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.wizard-layout-block {
|
|
36
|
+
.wizard-layout-element + .wizard-layout-element {
|
|
37
|
+
margin-top: var(--e-wizard-block-between);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
package/base/base-v2.scss
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Base styling and resets for all web-components.
|
|
3
|
-
This must be loaded before all other styles.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
@use '@energie360/design-tokens/dist/css/design-tokens.css';
|
|
7
|
-
@use 'resets';
|
|
8
|
-
@use 'input-resets';
|
|
9
|
-
@use 'focus-handling';
|
|
10
|
-
@use '@energie360/design-tokens/dist/fonts/fonts.css';
|
|
11
|
-
|
|
12
|
-
html {
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
scroll-behavior: smooth;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
html,
|
|
18
|
-
body {
|
|
19
|
-
min-height: 100vh;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
*,
|
|
23
|
-
*::after,
|
|
24
|
-
*::before {
|
|
25
|
-
box-sizing: inherit;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
body {
|
|
29
|
-
margin: 0;
|
|
30
|
-
font-family: var(--e-type-font-body), var(--e-type-font-fallback);
|
|
31
|
-
font-size: var(--e-type-size-300);
|
|
32
|
-
font-weight: var(--e-type-weight-weak);
|
|
33
|
-
line-height: var(--e-type-line-height-300);
|
|
34
|
-
color: var(--e-c-mono-900);
|
|
35
|
-
}
|
package/base/index.scss
DELETED
package/base/main.scss
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
@use './resets';
|
|
2
|
-
@use './html';
|
|
3
|
-
@use './body';
|
|
4
|
-
@use './focus-handling';
|
|
5
|
-
@import '@energie360/design-tokens/dist/fonts/fonts.css';
|
|
6
|
-
@import '@energie360/design-tokens/dist/css/design-tokens.css';
|
|
7
|
-
|
|
8
|
-
e-button,
|
|
9
|
-
e-icon-button,
|
|
10
|
-
e-loader {
|
|
11
|
-
&:not(:defined) {
|
|
12
|
-
opacity: 0;
|
|
13
|
-
}
|
|
14
|
-
}
|
package/dist/style.css
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
@import"//hello.myfonts.net/count/3c2a64";/**
|
|
2
|
-
* @license
|
|
3
|
-
* MyFonts Webfont Build ID 3943012, 2020-09-02T07:30:46-0400
|
|
4
|
-
*
|
|
5
|
-
* The fonts listed in this notice are subject to the End User License
|
|
6
|
-
* Agreement(s) entered into by the website owner. All other parties are
|
|
7
|
-
* explicitly restricted from using the Licensed Webfonts(s).
|
|
8
|
-
*
|
|
9
|
-
* Webfont: Glober-Bold by Fontfabric
|
|
10
|
-
* URL: https://www.myfonts.com/fonts/font-fabric/glober/bold/
|
|
11
|
-
* Copyright: Copyright (c) 2019 by Svet Simov. All rights reserved.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* Webfont: Glober-Regular by Fontfabric
|
|
15
|
-
* URL: https://www.myfonts.com/fonts/font-fabric/glober/regular/
|
|
16
|
-
* Copyright: Copyright (c) 2019 by Svet Simov. All rights reserved.
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* © 2020 MyFonts Inc
|
|
20
|
-
*/@font-face{font-family:Glober;font-weight:400;font-style:normal;font-display:swap;src:url(/static/ui-assets/fonts/Glober/Glober-Regular/font.woff2) format("woff2"),url(/static/ui-assets/fonts/Glober/Glober-Regular/font.woff) format("woff")}@font-face{font-family:Glober;font-weight:700;font-style:normal;font-display:swap;src:url(/static/ui-assets/fonts/Glober/Glober-Bold/font.woff2) format("woff2"),url(/static/ui-assets/fonts/Glober/Glober-Bold/font.woff) format("woff")}:root{--e-c-primary-01-50: #edf6e9;--e-c-primary-01-50-rgb: 237, 246, 233;--e-c-primary-01-100: #dbedd4;--e-c-primary-01-100-rgb: 219, 237, 212;--e-c-primary-01-200: #9cce89;--e-c-primary-01-200-rgb: 156, 206, 137;--e-c-primary-01-500: #4ba528;--e-c-primary-01-500-rgb: 75, 165, 40;--e-c-primary-01-700: #3c8420;--e-c-primary-01-700-rgb: 60, 132, 32;--e-c-primary-01-900: #316b1a;--e-c-primary-01-900-rgb: 49, 107, 26;--e-c-secondary-01-50: #e5f2eb;--e-c-secondary-01-50-rgb: 229, 242, 235;--e-c-secondary-01-100: #cce5d8;--e-c-secondary-01-100-rgb: 204, 229, 216;--e-c-secondary-01-200: #73b894;--e-c-secondary-01-200-rgb: 115, 184, 148;--e-c-secondary-01-500: #007d3c;--e-c-secondary-01-500-rgb: 0, 125, 60;--e-c-secondary-01-700: #006430;--e-c-secondary-01-700-rgb: 0, 100, 48;--e-c-secondary-01-900: #005127;--e-c-secondary-01-900-rgb: 0, 81, 39;--e-c-secondary-02-50: #ede9ee;--e-c-secondary-02-50-rgb: 237, 233, 238;--e-c-secondary-02-100: #dcd3de;--e-c-secondary-02-100-rgb: 220, 211, 222;--e-c-secondary-02-200: #9f86a4;--e-c-secondary-02-200-rgb: 159, 134, 164;--e-c-secondary-02-500: #50235a;--e-c-secondary-02-500-rgb: 80, 35, 90;--e-c-secondary-02-700: #401c48;--e-c-secondary-02-700-rgb: 64, 28, 72;--e-c-secondary-02-900: #34173b;--e-c-secondary-02-900-rgb: 52, 23, 59;--e-c-secondary-03-50: #f8e7ed;--e-c-secondary-03-50-rgb: 248, 231, 237;--e-c-secondary-03-100: #f1cfdb;--e-c-secondary-03-100-rgb: 241, 207, 219;--e-c-secondary-03-200: #d97b9c;--e-c-secondary-03-200-rgb: 217, 123, 156;--e-c-secondary-03-500: #b90f4b;--e-c-secondary-03-500-rgb: 185, 15, 75;--e-c-secondary-03-700: #940c3c;--e-c-secondary-03-700-rgb: 148, 12, 60;--e-c-secondary-03-900: #780a31;--e-c-secondary-03-900-rgb: 120, 10, 49;--e-c-secondary-04-50: #fffbe5;--e-c-secondary-04-50-rgb: 255, 251, 229;--e-c-secondary-04-100: #fff7cc;--e-c-secondary-04-100-rgb: 255, 247, 204;--e-c-secondary-04-200: #ffe973;--e-c-secondary-04-200-rgb: 255, 233, 115;--e-c-secondary-04-500: #ffd700;--e-c-secondary-04-500-rgb: 255, 215, 0;--e-c-secondary-04-700: #ccac00;--e-c-secondary-04-700-rgb: 204, 172, 0;--e-c-secondary-04-900: #a68c00;--e-c-secondary-04-900-rgb: 166, 140, 0;--e-c-secondary-05-50: #e5f5fc;--e-c-secondary-05-50-rgb: 229, 245, 252;--e-c-secondary-05-100: #cceaf8;--e-c-secondary-05-100-rgb: 204, 234, 248;--e-c-secondary-05-200: #73c5ec;--e-c-secondary-05-200-rgb: 115, 197, 236;--e-c-secondary-05-500: #0096dc;--e-c-secondary-05-500-rgb: 0, 150, 220;--e-c-secondary-05-700: #0078b0;--e-c-secondary-05-700-rgb: 0, 120, 176;--e-c-secondary-05-900: #00618f;--e-c-secondary-05-900-rgb: 0, 97, 143;--e-c-secondary-06-50: #f4e6e5;--e-c-secondary-06-50-rgb: 244, 230, 229;--e-c-secondary-06-100: #e9cdcc;--e-c-secondary-06-100-rgb: 233, 205, 204;--e-c-secondary-06-200: #c27673;--e-c-secondary-06-200-rgb: 194, 118, 115;--e-c-secondary-06-500: #910500;--e-c-secondary-06-500-rgb: 145, 5, 0;--e-c-secondary-06-700: #740400;--e-c-secondary-06-700-rgb: 116, 4, 0;--e-c-secondary-06-900: #5e0300;--e-c-secondary-06-900-rgb: 94, 3, 0;--e-c-mono-50: #f5f5f5;--e-c-mono-50-rgb: 245, 245, 245;--e-c-mono-100: #ececec;--e-c-mono-100-rgb: 236, 236, 236;--e-c-mono-200: #dddddd;--e-c-mono-200-rgb: 221, 221, 221;--e-c-mono-500: #b3b3b3;--e-c-mono-500-rgb: 179, 179, 179;--e-c-mono-700: #6b6b6b;--e-c-mono-700-rgb: 107, 107, 107;--e-c-mono-900: #333333;--e-c-mono-900-rgb: 51, 51, 51;--e-c-mono-00: #ffffff;--e-c-mono-00-rgb: 255, 255, 255;--e-c-signal-01-100: #b6e6cf;--e-c-signal-01-100-rgb: 182, 230, 207;--e-c-signal-01-500: #1aa764;--e-c-signal-01-500-rgb: 26, 167, 100;--e-c-signal-01-700: #0e6f41;--e-c-signal-01-700-rgb: 14, 111, 65;--e-c-signal-01-900: #004926;--e-c-signal-01-900-rgb: 0, 73, 38;--e-c-signal-02-100: #ffe2b6;--e-c-signal-02-100-rgb: 255, 226, 182;--e-c-signal-02-500: #ff9800;--e-c-signal-02-500-rgb: 255, 152, 0;--e-c-signal-02-700: #cc7a00;--e-c-signal-02-700-rgb: 204, 122, 0;--e-c-signal-02-900: #703600;--e-c-signal-02-900-rgb: 112, 54, 0;--e-c-signal-03-100: #ffb5c4;--e-c-signal-03-100-rgb: 255, 181, 196;--e-c-signal-03-500: #ff0c3e;--e-c-signal-03-500-rgb: 255, 12, 62;--e-c-signal-03-700: #b90d31;--e-c-signal-03-700-rgb: 185, 13, 49;--e-c-signal-03-900: #790019;--e-c-signal-03-900-rgb: 121, 0, 25;--e-space-1: 4px;--e-space-2: 8px;--e-space-3: 12px;--e-space-4: 16px;--e-space-5: 20px;--e-space-6: 24px;--e-space-7: 28px;--e-space-8: 32px;--e-space-9: 36px;--e-space-10: 40px;--e-space-11: 44px;--e-space-12: 48px;--e-space-14: 56px;--e-space-16: 64px;--e-space-20: 80px;--e-space-24: 96px;--e-space-28: 112px;--e-space-30: 120px;--e-space-32: 128px;--e-space-36: 144px;--e-space-40: 160px;--e-space-44: 176px;--e-space-48: 192px;--e-space-52: 208px;--e-space-56: 224px;--e-space-60: 240px;--e-space-64: 256px;--e-space-72: 288px;--e-space-80: 320px;--e-space-96: 384px;--e-space-0_5: 2px;--e-space-1_5: 6px;--e-space-2_5: 10px;--e-space-3_5: 14px;--e-type-font-body: Glober;--e-type-font-fallback: "Helvetica Neue", helvetica, arial, sans-serif;--e-type-font-base-size: 16px;--e-type-size-50: 12px;--e-type-size-100: 14px;--e-type-size-200: 16px;--e-type-size-300: 18px;--e-type-size-400: 20px;--e-type-size-500: 22px;--e-type-size-600: 26px;--e-type-size-700: 26px;--e-type-size-800: 32px;--e-type-size-900: 48px;--e-type-size-1000: 56px;--e-type-line-height-50: 1.5 ;--e-type-line-height-100: calc(22 / 14);--e-type-line-height-200: 1.5 ;--e-type-line-height-300: calc(28 / 18);--e-type-line-height-400: 1.3 ;--e-type-line-height-500: calc(30 / 22);--e-type-line-height-600: calc(36 / 26);--e-type-line-height-700: calc(34 / 26);--e-type-line-height-800: 1.1875 ;--e-type-line-height-900: 1.125 ;--e-type-line-height-1000: calc(62 / 56);--e-type-weight-weak: 400;--e-type-weight-strong: 700;--e-type-decoration-enhance: underline;--e-trs-duration-fastest: .1s;--e-trs-duration-faster: .2s;--e-trs-duration-fast: .4s;--e-trs-duration-slow: .6s;--e-trs-duration-slower: .8s;--e-trs-duration-slowest: 1s;--e-trs-easing-default: ease-in-out;--e-brd-radius-1: 4px;--e-brd-radius-2: 8px;--e-brd-radius-3: 12px;--e-brd-radius-4: 16px;--e-brd-radius-5: 20px;--e-brd-radius-6: 24px;--e-mq-breakpoint-xs: 480px;--e-mq-breakpoint-s: 520px;--e-mq-breakpoint-m: 740px;--e-mq-breakpoint-lg: 1020px;--e-mq-breakpoint-xl: 1240px;--e-mq-breakpoint-2xl: 1520px;--e-layout-site-width: 1680px;--e-layout-site-width-lg: 1020px;--e-layout-site-width-m: 740px;--e-layout-site-width-s: 520px;--e-layout-grid-columns: 12;--e-elevation-xs: 0px 1px 2px rgba(0, 0, 0, .05);--e-elevation-sm: 0px 1px 3px rgba(0, 0, 0, .1), 0px 1px 2px -1px rgba(0, 0, 0, .1);--e-elevation-md: 0px 4px 6px -1px rgba(0, 0, 0, .1), 0px 2px 4px -2px rgba(0, 0, 0, .1);--e-elevation-lg: 0px 10px 15px -3px rgba(0, 0, 0, .1), 0px 4px 6px -4px rgba(0, 0, 0, .1);--e-elevation-xl: 0px 20px 25px -5px rgba(0, 0, 0, .1), 0px 8px 10px -6px rgba(0, 0, 0, .1);--e-elevation-2xl: 0px 25px 50px -12px rgba(0, 0, 0, .25)}body{margin:0;min-height:100vh}h1,h2,h3,h4,h5,h6{margin:0;text-wrap:balance}p,figure,blockquote{margin:0}button{padding:0;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;font-family:inherit;font-size:inherit;background:none}ul,ol{list-style:none;padding:0;margin:0}dl,dt,dd{margin:0}address{font-style:normal}img,picture{max-width:100%;display:block}fieldset{padding:0;margin:0;border:0}html{box-sizing:border-box;scroll-behavior:smooth;min-height:100vh}*,*:before,*:after{box-sizing:inherit}body{font-family:var(--e-type-font-body),var(--e-type-font-fallback);font-size:var(--e-type-size-300);font-weight:var(--e-type-weight-weak);line-height:var(--e-type-line-height-300);color:var(--e-c-mono-900)}*{outline:none}*:focus-visible{outline-style:solid;outline-offset:4px;outline-color:#b3b3b3cc}[data-whatintent=mouse] *:focus{outline:none}e-button:not(:defined),e-icon-button:not(:defined),e-loader:not(:defined){opacity:0}
|
package/dist/style.js
DELETED
package/dist/style.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|