testio-tailwind 3.3.0 → 3.5.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/package.json +1 -1
- package/src/assets/scripts/app.js +23 -17
- package/src/assets/scripts/modules/colors.js +10 -2
- package/src/assets/scripts/modules/echarts_area.js +10 -6
- package/src/assets/scripts/modules/echarts_donut.js +20 -4
- package/src/assets/scripts/modules/echarts_exampledata.js +2 -2
- package/src/assets/scripts/modules/echarts_gauge.js +5 -5
- package/src/assets/scripts/modules/echarts_horizontal.js +18 -3
- package/src/assets/scripts/modules/echarts_line.js +84 -0
- package/src/assets/scripts/modules/echarts_vertical.js +5 -3
- package/src/assets/stylesheets/app.css +48 -59
- package/src/assets/stylesheets/components/customer/customer_productcards.css +2 -2
- package/src/assets/stylesheets/components/list_item.css +4 -0
- package/src/assets/stylesheets/components/uploads.css +0 -107
- package/src/assets/stylesheets/plugin_themes/dropzone.css +107 -0
- package/src/assets/stylesheets/{components → plugin_themes}/tom_select.css +49 -15
- package/src/assets/stylesheets/{components → plugin_themes}/trix_editor.css +1 -1
- package/src/assets/stylesheets/tailwind_config.css +3 -4
- package/src/assets/stylesheets/tailwind_custom_utilities.css +25 -1
- package/src/assets/stylesheets/tailwind_theme_dark.css +2 -1
- package/src/pages/charts/area.haml +21 -17
- package/src/pages/charts/bar_horizontal.haml +369 -220
- package/src/pages/charts/bar_vertical.haml +373 -367
- package/src/pages/charts/colors.haml +28 -0
- package/src/pages/charts/donut.haml +81 -16
- package/src/pages/charts/gauge.haml +40 -1
- package/src/pages/charts/legend.haml +22 -0
- package/src/pages/charts/line.haml +205 -0
- package/src/pages/colors.pug +2 -2
- package/src/static/app.bundled.js +19 -8
- /package/src/assets/stylesheets/{components → plugin_themes}/markdown_trix_styles.css +0 -0
- /package/src/assets/stylesheets/{components → plugin_themes}/select2.css +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
|
|
2
|
+
/* Dropzone plugin */
|
|
3
|
+
|
|
4
|
+
.dropzone {
|
|
5
|
+
@apply relative flex justify-center items-start flex-wrap min-h-xxl p-md border border-dashed border-primary rounded text-black hover:border-link-hover hover:text-link-hover cursor-pointer;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.dz-preview {
|
|
9
|
+
@apply relative inline-flex flex-col h-auto w-xxl mr-0 border-0 bg-transparent overflow-hidden shadow-none;
|
|
10
|
+
|
|
11
|
+
& .dz-details {
|
|
12
|
+
@apply mt-xxs text-center text-xs text-black;
|
|
13
|
+
font-weight: normal;
|
|
14
|
+
white-space: normal;
|
|
15
|
+
word-break: break-all;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
& .dz-remove {
|
|
19
|
+
@apply absolute flex justify-center items-center top-0 right-0 w-btn-sm h-btn-sm bg-danger rounded-tr hover:bg-link-hover;
|
|
20
|
+
z-index: 2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
& .dz-remove::after {
|
|
24
|
+
@apply inline-block h-icon-sm bg-white;
|
|
25
|
+
content: "";
|
|
26
|
+
width: 14px;
|
|
27
|
+
mask-image: url("/assets/images/icons/remove.svg");
|
|
28
|
+
mask-repeat: no-repeat;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.dz-preview .dz-image {
|
|
33
|
+
@apply relative flex justify-center items-center w-xxl h-xxl text-white bg-primary rounded overflow-hidden;
|
|
34
|
+
border-image-width: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/*/// Fallback image ///*/
|
|
39
|
+
|
|
40
|
+
.dz-image::after {
|
|
41
|
+
@apply absolute block top-0 left-0 w-full h-full;
|
|
42
|
+
content: "";
|
|
43
|
+
background-image: url("/assets/images/icons/attachment-fallbackimage.svg");
|
|
44
|
+
background-size: cover;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.dz-preview .dz-image .icon {
|
|
48
|
+
@apply text-icon-lg;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.dz-preview .dz-image img {
|
|
52
|
+
@apply h-xxl min-w-full;
|
|
53
|
+
z-index: 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.dz-filename {
|
|
57
|
+
line-height: 1.1;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dz-success-mark {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.dz-error-mark {
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.dz-started {
|
|
69
|
+
justify-content: start;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.dz-message {
|
|
73
|
+
align-self: center;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.dz-started .dz-message {
|
|
77
|
+
display: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.dz-error-message {
|
|
81
|
+
@apply mt-xxs text-danger text-xs;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.dropzone-msg-title {
|
|
85
|
+
@apply text-center;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dropzone-msg-desc {
|
|
89
|
+
@apply text-xs text-center;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.dz-size, .dz-size strong {
|
|
93
|
+
@apply text-xs;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.dropzone.inverted {
|
|
97
|
+
@apply text-white hover:text-link-hover;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.dropzone.inverted .dz-preview,
|
|
101
|
+
.dropzone.inverted .dz-preview .dz-image {
|
|
102
|
+
@apply text-white;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.dropzone.inverted .dz-details {
|
|
106
|
+
@apply text-white;
|
|
107
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/*///// Tom-Select theme https://tom-select.js.org /////*/
|
|
3
3
|
|
|
4
4
|
.ts-control {
|
|
5
|
-
@apply relative overflow-hidden flex w-full justify-start items-stretch min-h-btn py-xs pl-sm text-base rounded;
|
|
5
|
+
@apply relative overflow-hidden flex w-full justify-start items-stretch min-h-btn py-xs pl-sm text-base rounded text-white dark:text-white;
|
|
6
6
|
padding-right: 40px !important;
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
.ts-control,
|
|
14
14
|
.full .ts-control,
|
|
15
15
|
.ts-wrapper.single.input-active .ts-control {
|
|
16
|
-
@apply bg-primary
|
|
16
|
+
@apply bg-primary border-bordercolor cursor-pointer dark:text-white dark:bg-gray-700;
|
|
17
17
|
&:hover {
|
|
18
18
|
@apply bg-link-hover text-white;
|
|
19
19
|
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.ts-control input::placeholder {
|
|
26
|
-
@apply text-placeholder italic text-base;
|
|
26
|
+
@apply text-placeholder dark:text-label-color italic text-base;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.ts-control::before {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
.form-select.inverted .ts-control:hover,
|
|
49
49
|
.form-group.inverted .ts-control:hover,
|
|
50
50
|
.multi-select.inverted .ts-control:hover {
|
|
51
|
-
@apply bg-link-hover text-white cursor-pointer;
|
|
51
|
+
@apply bg-link-hover text-white dark:text-white cursor-pointer;
|
|
52
52
|
|
|
53
53
|
&::before {
|
|
54
54
|
@apply bg-link-hover;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
.ts-wrapper .ts-dropdown {
|
|
67
|
-
@apply m-0 bg-petrol-500 text-white border-0 overflow-hidden rounded-b;
|
|
67
|
+
@apply m-0 bg-petrol-500 dark:bg-gray-700 text-white border-0 overflow-hidden rounded-b;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.ts-dropdown-content {
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.ts-dropdown .option.selected {
|
|
82
|
-
@apply text-white bg-primary;
|
|
82
|
+
@apply text-white bg-primary dark:bg-gray-700;
|
|
83
83
|
|
|
84
84
|
&::before {
|
|
85
|
-
@apply inline-block w-icon h-icon mr-icon-spacing bg-white;
|
|
85
|
+
@apply inline-block w-icon h-icon mr-icon-spacing bg-white dark:bg-primary;
|
|
86
86
|
content: "";
|
|
87
87
|
mask-image: url("/assets/images/icons/check-circle-filled.svg");
|
|
88
88
|
}
|
|
@@ -96,7 +96,9 @@
|
|
|
96
96
|
/* Multi select item */
|
|
97
97
|
|
|
98
98
|
.ts-wrapper.multi .ts-control div.item {
|
|
99
|
-
@apply relative flex-row flex-grow-0 items-stretch mr-
|
|
99
|
+
@apply relative flex-row flex-grow-0 items-stretch mr-xs pl-xs pr-0 text-sm text-black bg-white dark:text-white dark:bg-gray-600 rounded;
|
|
100
|
+
margin-top: 2px;
|
|
101
|
+
margin-bottom: 2px;
|
|
100
102
|
line-height: 25px;
|
|
101
103
|
|
|
102
104
|
a {
|
|
@@ -120,6 +122,11 @@
|
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
|
|
125
|
+
.ts-wrapper.multi.plugin-remove_button:not(.rtl) .item.active .remove,
|
|
126
|
+
.ts-wrapper.multi.plugin-remove_button:not(.rtl) .item .remove {
|
|
127
|
+
@apply dark:border-gray-700
|
|
128
|
+
}
|
|
129
|
+
|
|
123
130
|
.ts-wrapper.multi .ts-control {
|
|
124
131
|
padding-right: 40px !important;
|
|
125
132
|
}
|
|
@@ -128,19 +135,40 @@
|
|
|
128
135
|
@apply bg-link-hover;
|
|
129
136
|
}
|
|
130
137
|
|
|
131
|
-
|
|
132
138
|
.ts-wrapper .optgroup-header {
|
|
133
139
|
@apply pt-xs px-sm pb-xxs text-sm text-gray-light bg-transparent;
|
|
134
140
|
}
|
|
135
141
|
|
|
142
|
+
.ts-wrapper.multi .ts-control div.item.active {
|
|
143
|
+
@apply bg-gray-500;
|
|
144
|
+
}
|
|
145
|
+
|
|
136
146
|
|
|
137
147
|
/*///// Validation errors /////*/
|
|
138
148
|
|
|
139
149
|
.field_with_errors .ts-control,
|
|
140
150
|
.field_with_errors .ts-wrapper.focus .ts-control,
|
|
141
151
|
.form-select.inverted .field_with_errors .ts-control,
|
|
142
|
-
.form-group.inverted .field_with_errors .ts-control
|
|
143
|
-
|
|
152
|
+
.form-group.inverted .field_with_errors .ts-control,
|
|
153
|
+
.field_with_errors .ts-control,
|
|
154
|
+
.field_with_errors .full .ts-control,
|
|
155
|
+
.field_with_errors .ts-wrapper.single.input-active .ts-control {
|
|
156
|
+
@apply bg-danger dark:bg-danger text-white;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.field_with_errors .ts-control:hover,
|
|
160
|
+
.field_with_errors .ts-wrapper.focus .ts-control:hover,
|
|
161
|
+
.form-select.inverted .field_with_errors .ts-control:hover,
|
|
162
|
+
.form-group.inverted .field_with_errors .ts-control:hover,
|
|
163
|
+
.field_with_errors .ts-control:hover,
|
|
164
|
+
.field_with_errors .full .ts-control:hover,
|
|
165
|
+
.field_with_errors .ts-wrapper.single.input-active .ts-control:hover {
|
|
166
|
+
@apply bg-link-hover dark:bg-link-hover text-white;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
.field_with_errors input::placeholder {
|
|
171
|
+
@apply text-white;
|
|
144
172
|
}
|
|
145
173
|
|
|
146
174
|
.field_with_errors .ts-wrapper .ts-dropdown,
|
|
@@ -166,12 +194,15 @@
|
|
|
166
194
|
/*///// Disabled /////*/
|
|
167
195
|
|
|
168
196
|
.ts-wrapper.disabled .ts-control,
|
|
169
|
-
.ts-wrapper.locked .ts-control
|
|
170
|
-
|
|
171
|
-
|
|
197
|
+
.ts-wrapper.locked .ts-control,
|
|
198
|
+
.ts-wrapper.disabled .ts-control,
|
|
199
|
+
.ts-wrapper.disabled .full .ts-control,
|
|
200
|
+
.ts-wrapper.single.input-active.disabled .ts-control,
|
|
201
|
+
.ts-wrapper.tom-select.single.disabled.locked .ts-control {
|
|
202
|
+
@apply text-disabled-dark border border-disabled cursor-not-allowed bg-transparent bg-pattern-disabled-bright dark:bg-pattern-disabled-dark;
|
|
172
203
|
background-repeat: repeat;
|
|
173
204
|
&:hover{
|
|
174
|
-
@apply text-disabled;
|
|
205
|
+
@apply text-disabled bg-transparent cursor-not-allowed;
|
|
175
206
|
}
|
|
176
207
|
&::before {
|
|
177
208
|
@apply bg-transparent;
|
|
@@ -179,6 +210,9 @@
|
|
|
179
210
|
&::after {
|
|
180
211
|
@apply bg-disabled-dark;
|
|
181
212
|
}
|
|
213
|
+
& input {
|
|
214
|
+
@apply bg-transparent;
|
|
215
|
+
}
|
|
182
216
|
& input::placeholder {
|
|
183
217
|
@apply text-disabled-dark;
|
|
184
218
|
}
|
|
@@ -46,7 +46,7 @@ trix-toolbar .trix-button-row {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
trix-toolbar .trix-button {
|
|
49
|
-
@apply inline-flex justify-center items-center flex-shrink-0 w-btn-sm h-btn-sm min-w-btn-sm border-0 rounded bg-transparent;
|
|
49
|
+
@apply inline-flex justify-center items-center flex-shrink-0 w-btn-sm h-btn-sm min-w-btn-sm border-0 rounded-xs bg-transparent;
|
|
50
50
|
font-size: 0; /* Fix for safari bug, we don't need to show any text in those buttons */
|
|
51
51
|
&:hover,
|
|
52
52
|
&:focus {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
--color-gray-200: #e6e6e6;
|
|
9
9
|
--color-gray-300: #bfc1c5;
|
|
10
10
|
--color-gray-400: #9fa2a8;
|
|
11
|
-
--color-gray-500: #
|
|
11
|
+
--color-gray-500: #888888;
|
|
12
12
|
--color-gray-600: #5f656d;
|
|
13
13
|
--color-gray-700: #343A40;
|
|
14
14
|
--color-gray-800: #262626;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
--color-gray-lighter: #e6e6e6;
|
|
18
18
|
--color-gray-light: #bfc1c5;
|
|
19
19
|
--color-gray-DEFAULT: #9fa2a8;
|
|
20
|
-
--color-gray-dark: #
|
|
20
|
+
--color-gray-dark: #888888;
|
|
21
21
|
--color-gray-darker: #5f656d;
|
|
22
22
|
--color-gray-darkest: #262626;
|
|
23
23
|
--color-red-200: #FF3131;
|
|
@@ -278,8 +278,6 @@
|
|
|
278
278
|
--max-w-card-xs: 5rem;
|
|
279
279
|
--max-w-capped: 43.75rem;
|
|
280
280
|
--shadow-DEFAULT: 0 3px 6px 0 rgba(0, 0, 0, 0.2), 0 0px 0px 0 rgba(0, 0, 0, 0.05);
|
|
281
|
-
--background-image-pattern-disabled-bright: url('/assets/images/pattern-striped-bright.png');
|
|
282
|
-
--background-image-pattern-disabled-dark: url('/assets/images/pattern-striped-dark.png');
|
|
283
281
|
|
|
284
282
|
/*//// Grid ////*/
|
|
285
283
|
--grid-cols-3-1: 3fr 1fr;
|
|
@@ -304,3 +302,4 @@
|
|
|
304
302
|
--breakpoint-2xl: 1600px;
|
|
305
303
|
--breakpoint-3xl: 1930px;
|
|
306
304
|
}
|
|
305
|
+
|
|
@@ -265,4 +265,28 @@
|
|
|
265
265
|
@utility grid-cols-auto { grid-template-columns: var(--grid-cols-auto); }
|
|
266
266
|
@utility grid-cols-14 { grid-template-columns: var(--grid-cols-14); }
|
|
267
267
|
@utility grid-rows-auto { grid-template-rows: var(--grid-rows-auto); }
|
|
268
|
-
@utility grid-rows-auto-auto { grid-template-rows: var(--grid-rows-auto-auto); }
|
|
268
|
+
@utility grid-rows-auto-auto { grid-template-rows: var(--grid-rows-auto-auto); }
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
/* Background image */
|
|
272
|
+
@utility bg-pattern-disabled-bright { background-image: url('/assets/images/pattern-striped-bright.png'); }
|
|
273
|
+
@utility bg-pattern-disabled-dark { background-image: url('/assets/images/pattern-striped-dark.png'); }
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
/*
|
|
277
|
+
The default border color has changed to `currentcolor` in Tailwind CSS v4,
|
|
278
|
+
so we've added these compatibility styles to make sure everything still
|
|
279
|
+
looks the same as it did with Tailwind CSS v3.
|
|
280
|
+
|
|
281
|
+
If we ever want to remove these styles, we need to add an explicit border
|
|
282
|
+
color utility to any element that depends on these defaults.
|
|
283
|
+
*/
|
|
284
|
+
@layer base {
|
|
285
|
+
*,
|
|
286
|
+
::after,
|
|
287
|
+
::before,
|
|
288
|
+
::backdrop,
|
|
289
|
+
::file-selector-button {
|
|
290
|
+
border-color: var(--color-gray-200, currentcolor);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
@@ -11,10 +11,11 @@
|
|
|
11
11
|
--color-link-hover: #7954ff;
|
|
12
12
|
--color-bordercolor: #343A40;
|
|
13
13
|
--color-card: #262626;
|
|
14
|
-
--color-disabled: #
|
|
14
|
+
--color-disabled: #5f656d;
|
|
15
15
|
--color-listitem: #343A40;
|
|
16
16
|
--color-placeholder: #5f656d;
|
|
17
17
|
--color-tag: #5f656d;
|
|
18
|
+
--color-label-color: #bfc1c5;
|
|
18
19
|
|
|
19
20
|
/*//// Border radius ////*/
|
|
20
21
|
--radius: 12px;
|
|
@@ -5,7 +5,7 @@ title: Area
|
|
|
5
5
|
|
|
6
6
|
%details.listitem.mb-md
|
|
7
7
|
%summary.listitem-header
|
|
8
|
-
.listitem-title
|
|
8
|
+
.listitem-title.flex.items-center
|
|
9
9
|
%span.icon.icon-format-code.mr-xs
|
|
10
10
|
Initialize area chart
|
|
11
11
|
.listitem-metrics
|
|
@@ -20,13 +20,13 @@ title: Area
|
|
|
20
20
|
%pre.code.break-spaces
|
|
21
21
|
:plain
|
|
22
22
|
import { createChartArea } from './modules/echarts_area';
|
|
23
|
-
createChartArea (target, targetDataX, targetDataY, chartColor)
|
|
23
|
+
createChartArea (target, targetDataX, targetDataY, chartColor, labelColor, valueColor, borderColor)
|
|
24
24
|
.listitem-subheadline echarts_area.js
|
|
25
25
|
.listitem-card
|
|
26
26
|
%pre.code.break-spaces
|
|
27
27
|
:plain
|
|
28
28
|
import * as echarts from 'echarts';
|
|
29
|
-
export function createChartArea (target, targetDataX, targetDataY, chartColor) {
|
|
29
|
+
export function createChartArea (target, targetDataX, targetDataY, chartColor, labelColor, valueColor, borderColor) {
|
|
30
30
|
var chartHeight = 190;
|
|
31
31
|
var dom = document.getElementById(target);
|
|
32
32
|
var myChartArea = echarts.init(dom, null, {
|
|
@@ -53,7 +53,8 @@ title: Area
|
|
|
53
53
|
},
|
|
54
54
|
axisLabel: {
|
|
55
55
|
show: true,
|
|
56
|
-
margin: 15
|
|
56
|
+
margin: 15,
|
|
57
|
+
color: labelColor,
|
|
57
58
|
},
|
|
58
59
|
axisTick: {
|
|
59
60
|
show: false
|
|
@@ -61,7 +62,8 @@ title: Area
|
|
|
61
62
|
splitLine: {
|
|
62
63
|
show: true,
|
|
63
64
|
lineStyle: {
|
|
64
|
-
type: 'dashed'
|
|
65
|
+
type: 'dashed',
|
|
66
|
+
color: borderColor
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
},
|
|
@@ -76,7 +78,8 @@ title: Area
|
|
|
76
78
|
type: 'line',
|
|
77
79
|
lineStyle: {
|
|
78
80
|
width: 1,
|
|
79
|
-
color: chartColor
|
|
81
|
+
color: chartColor,
|
|
82
|
+
borderColor: borderColor
|
|
80
83
|
},
|
|
81
84
|
areaStyle: {
|
|
82
85
|
opacity: 1,
|
|
@@ -95,10 +98,11 @@ title: Area
|
|
|
95
98
|
itemStyle: {
|
|
96
99
|
borderWidth: 2,
|
|
97
100
|
color: chartColor,
|
|
98
|
-
borderColor:
|
|
101
|
+
borderColor: borderColor
|
|
99
102
|
},
|
|
100
103
|
label: {
|
|
101
|
-
show: true
|
|
104
|
+
show: true,
|
|
105
|
+
color: valueColor,
|
|
102
106
|
},
|
|
103
107
|
areaStyle: {
|
|
104
108
|
opacity: 0
|
|
@@ -112,13 +116,13 @@ title: Area
|
|
|
112
116
|
}
|
|
113
117
|
window.addEventListener('resize', myChartArea.resize);
|
|
114
118
|
}
|
|
115
|
-
.
|
|
119
|
+
.grid.gap-spacing{class:"lg:grid-cols-2"}
|
|
116
120
|
.col-xl-6
|
|
117
121
|
.card.p-md.mb-xs
|
|
118
122
|
.echarts-container#echarts-area-1
|
|
119
|
-
%details.listitem
|
|
123
|
+
%details.listitem
|
|
120
124
|
%summary.listitem-header
|
|
121
|
-
.listitem-title
|
|
125
|
+
.listitem-title.flex.items-center
|
|
122
126
|
%span.icon.icon-format-code.mr-xs
|
|
123
127
|
Initialize area chart with blue light color
|
|
124
128
|
.listitem-metrics
|
|
@@ -133,7 +137,7 @@ title: Area
|
|
|
133
137
|
%pre.code.break-spaces
|
|
134
138
|
:plain
|
|
135
139
|
import { createChartArea } from './modules/echarts_area';
|
|
136
|
-
createChartArea("echarts-area-1", dataAreaMonths, dataAreaValues, colorBlueLight);
|
|
140
|
+
createChartArea("echarts-area-1", dataAreaMonths, dataAreaValues, colorBlueLight, colorLabelBright, colorValueBright, colorBorderBright);
|
|
137
141
|
.listitem-subheadline dataAreaMonths.js
|
|
138
142
|
.listitem-card
|
|
139
143
|
%pre.code.break-spaces
|
|
@@ -164,13 +168,13 @@ title: Area
|
|
|
164
168
|
:plain
|
|
165
169
|
export const colorBlueLight = '#21bef4';
|
|
166
170
|
.col-xl-6
|
|
167
|
-
.card.mb-xs.p-
|
|
171
|
+
.card.mb-xs.p-md.bg-gray-800
|
|
168
172
|
.echarts-container#echarts-area-2
|
|
169
|
-
%details.listitem
|
|
173
|
+
%details.listitem
|
|
170
174
|
%summary.listitem-header
|
|
171
|
-
.listitem-title
|
|
175
|
+
.listitem-title.flex.items-center
|
|
172
176
|
%span.icon.icon-format-code.mr-xs
|
|
173
|
-
Initialize area chart
|
|
177
|
+
Initialize darkmode area chart
|
|
174
178
|
.listitem-metrics
|
|
175
179
|
.listitem-actions
|
|
176
180
|
.btn.collapse-btn
|
|
@@ -183,7 +187,7 @@ title: Area
|
|
|
183
187
|
%pre.code.break-spaces
|
|
184
188
|
:plain
|
|
185
189
|
import { createChartArea } from './modules/echarts_area';
|
|
186
|
-
createChartArea("echarts-area-
|
|
190
|
+
createChartArea("echarts-area-2", dataAreaMonths, dataAreaValues, colorTealLight, colorLabelDark, colorValueDark, colorBorderDark);
|
|
187
191
|
.listitem-subheadline dataAreaMonths.js
|
|
188
192
|
.listitem-card
|
|
189
193
|
%pre.code.break-spaces
|