@shell-shock/plugin-theme 0.3.14 → 0.3.15
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/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +1 -1
- package/dist/_virtual/_rolldown/runtime.mjs +3 -0
- package/dist/contexts/index.cjs +1 -0
- package/dist/contexts/theme.cjs +7 -6
- package/dist/contexts/theme.d.cts +0 -1
- package/dist/contexts/theme.d.cts.map +1 -1
- package/dist/contexts/theme.d.mts +0 -1
- package/dist/contexts/theme.d.mts.map +1 -1
- package/dist/contexts/theme.mjs.map +1 -1
- package/dist/core/dist/api.d.cts +1 -0
- package/dist/core/dist/api.d.mts +1 -0
- package/dist/core/dist/index.d.cts +3 -0
- package/dist/core/dist/index.d.mts +3 -0
- package/dist/core/dist/types/command.d.cts +185 -0
- package/dist/core/dist/types/command.d.cts.map +1 -0
- package/dist/core/dist/types/command.d.mts +185 -0
- package/dist/core/dist/types/command.d.mts.map +1 -0
- package/dist/core/dist/types/config.d.cts +95 -0
- package/dist/core/dist/types/config.d.cts.map +1 -0
- package/dist/core/dist/types/config.d.mts +95 -0
- package/dist/core/dist/types/config.d.mts.map +1 -0
- package/dist/core/dist/types/context.d.cts +28 -0
- package/dist/core/dist/types/context.d.cts.map +1 -0
- package/dist/core/dist/types/context.d.mts +28 -0
- package/dist/core/dist/types/context.d.mts.map +1 -0
- package/dist/helpers/ansi-utils.cjs +1 -0
- package/dist/helpers/ansi-utils.d.cts.map +1 -1
- package/dist/helpers/ansi-utils.d.mts.map +1 -1
- package/dist/helpers/ansi-utils.mjs.map +1 -1
- package/dist/helpers/border-styles.cjs +1 -1
- package/dist/helpers/border-styles.d.cts +0 -1
- package/dist/helpers/border-styles.d.cts.map +1 -1
- package/dist/helpers/border-styles.d.mts +0 -1
- package/dist/helpers/border-styles.d.mts.map +1 -1
- package/dist/helpers/border-styles.mjs +0 -1
- package/dist/helpers/border-styles.mjs.map +1 -1
- package/dist/helpers/index.cjs +2 -1
- package/dist/helpers/index.mjs +1 -1
- package/dist/helpers/merge.cjs +2 -1
- package/dist/helpers/merge.d.cts +0 -1
- package/dist/helpers/merge.d.cts.map +1 -1
- package/dist/helpers/merge.d.mts +0 -1
- package/dist/helpers/merge.d.mts.map +1 -1
- package/dist/helpers/merge.mjs.map +1 -1
- package/dist/helpers/spinners.cjs +3 -4
- package/dist/helpers/spinners.d.cts.map +1 -1
- package/dist/helpers/spinners.d.mts.map +1 -1
- package/dist/helpers/spinners.mjs +1 -2
- package/dist/helpers/spinners.mjs.map +1 -1
- package/dist/index.cjs +13 -14
- package/dist/index.d.cts +0 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +0 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/dist/style-dictionary/border-styles.cjs +54 -54
- package/dist/style-dictionary/border-styles.mjs +7 -7
- package/dist/style-dictionary/border-styles.mjs.map +1 -1
- package/dist/style-dictionary/colors.cjs +380 -380
- package/dist/style-dictionary/colors.mjs +185 -185
- package/dist/style-dictionary/colors.mjs.map +1 -1
- package/dist/style-dictionary/icons.cjs +64 -64
- package/dist/style-dictionary/icons.mjs +28 -28
- package/dist/style-dictionary/icons.mjs.map +1 -1
- package/dist/style-dictionary/labels.cjs +58 -58
- package/dist/style-dictionary/labels.mjs +33 -33
- package/dist/style-dictionary/labels.mjs.map +1 -1
- package/dist/style-dictionary/padding.cjs +61 -61
- package/dist/style-dictionary/padding.mjs +11 -11
- package/dist/style-dictionary/padding.mjs.map +1 -1
- package/dist/style-dictionary/settings.cjs +4 -4
- package/dist/style-dictionary/settings.mjs +2 -2
- package/dist/style-dictionary/settings.mjs.map +1 -1
- package/dist/style-dictionary/spinners.cjs +5 -5
- package/dist/style-dictionary/spinners.mjs.map +1 -1
- package/dist/themes/default.mjs.map +1 -1
- package/dist/types/plugin.d.cts +2 -1
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +2 -1
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/theme.d.cts.map +1 -1
- package/dist/types/theme.d.mts.map +1 -1
- package/package.json +11 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
2
2
|
const require_helpers_merge = require('../helpers/merge.cjs');
|
|
3
|
-
let
|
|
4
|
-
let
|
|
3
|
+
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
4
|
+
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
5
5
|
|
|
6
6
|
//#region src/style-dictionary/colors.ts
|
|
7
7
|
/**
|
|
@@ -42,202 +42,202 @@ const colors = (context) => ({
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
const colors
|
|
46
|
-
if ((0,
|
|
45
|
+
const colors = dictionary.colors;
|
|
46
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(colors)) resolvedConfig.colors = {
|
|
47
47
|
text: {
|
|
48
48
|
banner: {
|
|
49
49
|
title: {
|
|
50
|
-
primary: colors
|
|
51
|
-
secondary: colors
|
|
52
|
-
tertiary: colors
|
|
50
|
+
primary: colors,
|
|
51
|
+
secondary: colors,
|
|
52
|
+
tertiary: colors
|
|
53
53
|
},
|
|
54
54
|
header: {
|
|
55
|
-
primary: colors
|
|
56
|
-
secondary: colors
|
|
57
|
-
tertiary: colors
|
|
55
|
+
primary: colors,
|
|
56
|
+
secondary: colors,
|
|
57
|
+
tertiary: colors
|
|
58
58
|
},
|
|
59
59
|
footer: {
|
|
60
|
-
primary: colors
|
|
61
|
-
secondary: colors
|
|
62
|
-
tertiary: colors
|
|
60
|
+
primary: colors,
|
|
61
|
+
secondary: colors,
|
|
62
|
+
tertiary: colors
|
|
63
63
|
},
|
|
64
64
|
command: {
|
|
65
|
-
primary: colors
|
|
66
|
-
secondary: colors
|
|
67
|
-
tertiary: colors
|
|
65
|
+
primary: colors,
|
|
66
|
+
secondary: colors,
|
|
67
|
+
tertiary: colors
|
|
68
68
|
},
|
|
69
69
|
description: {
|
|
70
|
-
primary: colors
|
|
71
|
-
secondary: colors
|
|
72
|
-
tertiary: colors
|
|
70
|
+
primary: colors,
|
|
71
|
+
secondary: colors,
|
|
72
|
+
tertiary: colors
|
|
73
73
|
},
|
|
74
74
|
link: {
|
|
75
|
-
primary: colors
|
|
76
|
-
secondary: colors
|
|
77
|
-
tertiary: colors
|
|
75
|
+
primary: colors,
|
|
76
|
+
secondary: colors,
|
|
77
|
+
tertiary: colors
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
heading: {
|
|
81
|
-
primary: colors
|
|
82
|
-
secondary: colors
|
|
83
|
-
tertiary: colors
|
|
81
|
+
primary: colors,
|
|
82
|
+
secondary: colors,
|
|
83
|
+
tertiary: colors
|
|
84
84
|
},
|
|
85
85
|
body: {
|
|
86
|
-
primary: colors
|
|
87
|
-
secondary: colors
|
|
88
|
-
tertiary: colors
|
|
89
|
-
link: colors
|
|
86
|
+
primary: colors,
|
|
87
|
+
secondary: colors,
|
|
88
|
+
tertiary: colors,
|
|
89
|
+
link: colors
|
|
90
90
|
},
|
|
91
91
|
message: {
|
|
92
92
|
link: {
|
|
93
|
-
help: colors
|
|
94
|
-
success: colors
|
|
95
|
-
info: colors
|
|
96
|
-
debug: colors
|
|
97
|
-
warning: colors
|
|
98
|
-
danger: colors
|
|
99
|
-
error: colors
|
|
93
|
+
help: colors,
|
|
94
|
+
success: colors,
|
|
95
|
+
info: colors,
|
|
96
|
+
debug: colors,
|
|
97
|
+
warning: colors,
|
|
98
|
+
danger: colors,
|
|
99
|
+
error: colors
|
|
100
100
|
},
|
|
101
101
|
header: {
|
|
102
|
-
help: colors
|
|
103
|
-
success: colors
|
|
104
|
-
info: colors
|
|
105
|
-
debug: colors
|
|
106
|
-
warning: colors
|
|
107
|
-
danger: colors
|
|
108
|
-
error: colors
|
|
102
|
+
help: colors,
|
|
103
|
+
success: colors,
|
|
104
|
+
info: colors,
|
|
105
|
+
debug: colors,
|
|
106
|
+
warning: colors,
|
|
107
|
+
danger: colors,
|
|
108
|
+
error: colors
|
|
109
109
|
},
|
|
110
110
|
footer: {
|
|
111
|
-
help: colors
|
|
112
|
-
success: colors
|
|
113
|
-
info: colors
|
|
114
|
-
debug: colors
|
|
115
|
-
warning: colors
|
|
116
|
-
danger: colors
|
|
117
|
-
error: colors
|
|
111
|
+
help: colors,
|
|
112
|
+
success: colors,
|
|
113
|
+
info: colors,
|
|
114
|
+
debug: colors,
|
|
115
|
+
warning: colors,
|
|
116
|
+
danger: colors,
|
|
117
|
+
error: colors
|
|
118
118
|
},
|
|
119
119
|
description: {
|
|
120
|
-
help: colors
|
|
121
|
-
success: colors
|
|
122
|
-
info: colors
|
|
123
|
-
debug: colors
|
|
124
|
-
warning: colors
|
|
125
|
-
danger: colors
|
|
126
|
-
error: colors
|
|
120
|
+
help: colors,
|
|
121
|
+
success: colors,
|
|
122
|
+
info: colors,
|
|
123
|
+
debug: colors,
|
|
124
|
+
warning: colors,
|
|
125
|
+
danger: colors,
|
|
126
|
+
error: colors
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
usage: {
|
|
130
|
-
bin: colors
|
|
131
|
-
command: colors
|
|
132
|
-
dynamic: colors
|
|
133
|
-
options: colors
|
|
134
|
-
args: colors
|
|
135
|
-
description: colors
|
|
130
|
+
bin: colors,
|
|
131
|
+
command: colors,
|
|
132
|
+
dynamic: colors,
|
|
133
|
+
options: colors,
|
|
134
|
+
args: colors,
|
|
135
|
+
description: colors
|
|
136
136
|
},
|
|
137
137
|
prompt: {
|
|
138
138
|
icon: {
|
|
139
|
-
active: colors
|
|
140
|
-
cancelled: colors
|
|
141
|
-
warning: colors
|
|
142
|
-
error: colors
|
|
143
|
-
submitted: colors
|
|
144
|
-
disabled: colors
|
|
139
|
+
active: colors,
|
|
140
|
+
cancelled: colors,
|
|
141
|
+
warning: colors,
|
|
142
|
+
error: colors,
|
|
143
|
+
submitted: colors,
|
|
144
|
+
disabled: colors
|
|
145
145
|
},
|
|
146
146
|
message: {
|
|
147
|
-
active: colors
|
|
148
|
-
cancelled: colors
|
|
149
|
-
warning: colors
|
|
150
|
-
error: colors
|
|
151
|
-
submitted: colors
|
|
152
|
-
disabled: colors
|
|
147
|
+
active: colors,
|
|
148
|
+
cancelled: colors,
|
|
149
|
+
warning: colors,
|
|
150
|
+
error: colors,
|
|
151
|
+
submitted: colors,
|
|
152
|
+
disabled: colors
|
|
153
153
|
},
|
|
154
154
|
input: {
|
|
155
|
-
active: colors
|
|
156
|
-
inactive: colors
|
|
157
|
-
cancelled: colors
|
|
158
|
-
warning: colors
|
|
159
|
-
error: colors
|
|
160
|
-
submitted: colors
|
|
161
|
-
placeholder: colors
|
|
162
|
-
disabled: colors
|
|
155
|
+
active: colors,
|
|
156
|
+
inactive: colors,
|
|
157
|
+
cancelled: colors,
|
|
158
|
+
warning: colors,
|
|
159
|
+
error: colors,
|
|
160
|
+
submitted: colors,
|
|
161
|
+
placeholder: colors,
|
|
162
|
+
disabled: colors
|
|
163
163
|
},
|
|
164
164
|
description: {
|
|
165
|
-
active: colors
|
|
166
|
-
inactive: colors
|
|
167
|
-
cancelled: colors
|
|
168
|
-
warning: colors
|
|
169
|
-
error: colors
|
|
170
|
-
submitted: colors
|
|
171
|
-
disabled: colors
|
|
165
|
+
active: colors,
|
|
166
|
+
inactive: colors,
|
|
167
|
+
cancelled: colors,
|
|
168
|
+
warning: colors,
|
|
169
|
+
error: colors,
|
|
170
|
+
submitted: colors,
|
|
171
|
+
disabled: colors
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
spinner: {
|
|
175
175
|
icon: {
|
|
176
|
-
active: colors
|
|
177
|
-
error: colors
|
|
178
|
-
success: colors
|
|
179
|
-
help: colors
|
|
180
|
-
info: colors
|
|
181
|
-
warning: colors
|
|
176
|
+
active: colors,
|
|
177
|
+
error: colors,
|
|
178
|
+
success: colors,
|
|
179
|
+
help: colors,
|
|
180
|
+
info: colors,
|
|
181
|
+
warning: colors
|
|
182
182
|
},
|
|
183
183
|
message: {
|
|
184
|
-
active: colors
|
|
185
|
-
error: colors
|
|
186
|
-
success: colors
|
|
187
|
-
help: colors
|
|
188
|
-
info: colors
|
|
189
|
-
warning: colors
|
|
184
|
+
active: colors,
|
|
185
|
+
error: colors,
|
|
186
|
+
success: colors,
|
|
187
|
+
help: colors,
|
|
188
|
+
info: colors,
|
|
189
|
+
warning: colors
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
193
|
border: {
|
|
194
194
|
banner: {
|
|
195
195
|
outline: {
|
|
196
|
-
primary: colors
|
|
197
|
-
secondary: colors
|
|
198
|
-
tertiary: colors
|
|
196
|
+
primary: colors,
|
|
197
|
+
secondary: colors,
|
|
198
|
+
tertiary: colors
|
|
199
199
|
},
|
|
200
200
|
divider: {
|
|
201
|
-
primary: colors
|
|
202
|
-
secondary: colors
|
|
203
|
-
tertiary: colors
|
|
201
|
+
primary: colors,
|
|
202
|
+
secondary: colors,
|
|
203
|
+
tertiary: colors
|
|
204
204
|
}
|
|
205
205
|
},
|
|
206
206
|
app: {
|
|
207
207
|
table: {
|
|
208
|
-
primary: colors
|
|
209
|
-
secondary: colors
|
|
210
|
-
tertiary: colors
|
|
208
|
+
primary: colors,
|
|
209
|
+
secondary: colors,
|
|
210
|
+
tertiary: colors
|
|
211
211
|
},
|
|
212
212
|
divider: {
|
|
213
|
-
primary: colors
|
|
214
|
-
secondary: colors
|
|
215
|
-
tertiary: colors
|
|
213
|
+
primary: colors,
|
|
214
|
+
secondary: colors,
|
|
215
|
+
tertiary: colors
|
|
216
216
|
}
|
|
217
217
|
},
|
|
218
218
|
message: {
|
|
219
219
|
outline: {
|
|
220
|
-
help: colors
|
|
221
|
-
success: colors
|
|
222
|
-
info: colors
|
|
223
|
-
debug: colors
|
|
224
|
-
warning: colors
|
|
225
|
-
danger: colors
|
|
226
|
-
error: colors
|
|
220
|
+
help: colors,
|
|
221
|
+
success: colors,
|
|
222
|
+
info: colors,
|
|
223
|
+
debug: colors,
|
|
224
|
+
warning: colors,
|
|
225
|
+
danger: colors,
|
|
226
|
+
error: colors
|
|
227
227
|
},
|
|
228
228
|
divider: {
|
|
229
|
-
help: colors
|
|
230
|
-
success: colors
|
|
231
|
-
info: colors
|
|
232
|
-
debug: colors
|
|
233
|
-
warning: colors
|
|
234
|
-
danger: colors
|
|
235
|
-
error: colors
|
|
229
|
+
help: colors,
|
|
230
|
+
success: colors,
|
|
231
|
+
info: colors,
|
|
232
|
+
debug: colors,
|
|
233
|
+
warning: colors,
|
|
234
|
+
danger: colors,
|
|
235
|
+
error: colors
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
|
-
else if ((0,
|
|
240
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(colors)) {
|
|
241
241
|
resolvedConfig.colors.text ??= {
|
|
242
242
|
banner: {},
|
|
243
243
|
heading: {},
|
|
@@ -249,8 +249,8 @@ const colors = (context) => ({
|
|
|
249
249
|
description: {}
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
|
-
const text = colors
|
|
253
|
-
if ((0,
|
|
252
|
+
const text = colors.text;
|
|
253
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text)) resolvedConfig.colors.text = {
|
|
254
254
|
banner: {
|
|
255
255
|
title: {
|
|
256
256
|
primary: text,
|
|
@@ -396,10 +396,10 @@ const colors = (context) => ({
|
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
};
|
|
399
|
-
else if ((0,
|
|
399
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(text)) {
|
|
400
400
|
resolvedConfig.colors.text.banner ??= {};
|
|
401
401
|
const banner = text.banner;
|
|
402
|
-
if ((0,
|
|
402
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(banner)) resolvedConfig.colors.text.banner = {
|
|
403
403
|
title: {
|
|
404
404
|
primary: banner,
|
|
405
405
|
secondary: banner,
|
|
@@ -431,82 +431,82 @@ const colors = (context) => ({
|
|
|
431
431
|
tertiary: banner
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
|
-
else if ((0,
|
|
434
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(text.banner)) {
|
|
435
435
|
resolvedConfig.colors.text.banner.title ??= {};
|
|
436
436
|
const title = text.banner.title;
|
|
437
|
-
if ((0,
|
|
437
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.banner.title)) resolvedConfig.colors.text.banner.title = {
|
|
438
438
|
primary: text.banner.title,
|
|
439
439
|
secondary: text.banner.title,
|
|
440
440
|
tertiary: text.banner.title
|
|
441
441
|
};
|
|
442
|
-
else if ((0,
|
|
443
|
-
if ((0,
|
|
444
|
-
if ((0,
|
|
445
|
-
if ((0,
|
|
442
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(title)) {
|
|
443
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(title.primary)) resolvedConfig.colors.text.banner.title.primary = title.primary;
|
|
444
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(title.secondary)) resolvedConfig.colors.text.banner.title.secondary = title.secondary;
|
|
445
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(title.tertiary)) resolvedConfig.colors.text.banner.title.tertiary = title.tertiary;
|
|
446
446
|
}
|
|
447
447
|
resolvedConfig.colors.text.banner.header ??= {};
|
|
448
448
|
const header = text.banner.header;
|
|
449
|
-
if ((0,
|
|
449
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.banner.header)) resolvedConfig.colors.text.banner.header = {
|
|
450
450
|
primary: text.banner.header,
|
|
451
451
|
secondary: text.banner.header,
|
|
452
452
|
tertiary: text.banner.header
|
|
453
453
|
};
|
|
454
|
-
else if ((0,
|
|
455
|
-
if ((0,
|
|
456
|
-
if ((0,
|
|
457
|
-
if ((0,
|
|
454
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(header)) {
|
|
455
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.primary)) resolvedConfig.colors.text.banner.header.primary = header.primary;
|
|
456
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.secondary)) resolvedConfig.colors.text.banner.header.secondary = header.secondary;
|
|
457
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.tertiary)) resolvedConfig.colors.text.banner.header.tertiary = header.tertiary;
|
|
458
458
|
}
|
|
459
459
|
resolvedConfig.colors.text.banner.footer ??= {};
|
|
460
460
|
const footer = text.banner.footer;
|
|
461
|
-
if ((0,
|
|
461
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.banner.footer)) resolvedConfig.colors.text.banner.footer = {
|
|
462
462
|
primary: text.banner.footer,
|
|
463
463
|
secondary: text.banner.footer,
|
|
464
464
|
tertiary: text.banner.footer
|
|
465
465
|
};
|
|
466
|
-
else if ((0,
|
|
467
|
-
if ((0,
|
|
468
|
-
if ((0,
|
|
469
|
-
if ((0,
|
|
466
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(footer)) {
|
|
467
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.primary)) resolvedConfig.colors.text.banner.footer.primary = footer.primary;
|
|
468
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.secondary)) resolvedConfig.colors.text.banner.footer.secondary = footer.secondary;
|
|
469
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.tertiary)) resolvedConfig.colors.text.banner.footer.tertiary = footer.tertiary;
|
|
470
470
|
}
|
|
471
471
|
resolvedConfig.colors.text.banner.command ??= {};
|
|
472
472
|
const command = text.banner.command;
|
|
473
|
-
if ((0,
|
|
473
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.banner.command)) resolvedConfig.colors.text.banner.command = {
|
|
474
474
|
primary: text.banner.command,
|
|
475
475
|
secondary: text.banner.command,
|
|
476
476
|
tertiary: text.banner.command
|
|
477
477
|
};
|
|
478
|
-
else if ((0,
|
|
479
|
-
if ((0,
|
|
480
|
-
if ((0,
|
|
481
|
-
if ((0,
|
|
478
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(command)) {
|
|
479
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(command.primary)) resolvedConfig.colors.text.banner.command.primary = command.primary;
|
|
480
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(command.secondary)) resolvedConfig.colors.text.banner.command.secondary = command.secondary;
|
|
481
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(command.tertiary)) resolvedConfig.colors.text.banner.command.tertiary = command.tertiary;
|
|
482
482
|
}
|
|
483
483
|
resolvedConfig.colors.text.banner.description ??= {};
|
|
484
484
|
const description = text.banner.description;
|
|
485
|
-
if ((0,
|
|
485
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.banner.description)) resolvedConfig.colors.text.banner.description = {
|
|
486
486
|
primary: text.banner.description,
|
|
487
487
|
secondary: text.banner.description,
|
|
488
488
|
tertiary: text.banner.description
|
|
489
489
|
};
|
|
490
|
-
else if ((0,
|
|
491
|
-
if ((0,
|
|
492
|
-
if ((0,
|
|
493
|
-
if ((0,
|
|
490
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(description)) {
|
|
491
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.primary)) resolvedConfig.colors.text.banner.description.primary = description.primary;
|
|
492
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.secondary)) resolvedConfig.colors.text.banner.description.secondary = description.secondary;
|
|
493
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.tertiary)) resolvedConfig.colors.text.banner.description.tertiary = description.tertiary;
|
|
494
494
|
}
|
|
495
495
|
resolvedConfig.colors.text.banner.link ??= {};
|
|
496
496
|
const link = text.banner.link;
|
|
497
|
-
if ((0,
|
|
497
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.banner.link)) resolvedConfig.colors.text.banner.link = {
|
|
498
498
|
primary: text.banner.link,
|
|
499
499
|
secondary: text.banner.link,
|
|
500
500
|
tertiary: text.banner.link
|
|
501
501
|
};
|
|
502
|
-
else if ((0,
|
|
503
|
-
if ((0,
|
|
504
|
-
if ((0,
|
|
505
|
-
if ((0,
|
|
502
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(link)) {
|
|
503
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.primary)) resolvedConfig.colors.text.banner.link.primary = link.primary;
|
|
504
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.secondary)) resolvedConfig.colors.text.banner.link.secondary = link.secondary;
|
|
505
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.tertiary)) resolvedConfig.colors.text.banner.link.tertiary = link.tertiary;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
resolvedConfig.colors.text.body ??= {};
|
|
509
|
-
if ((0,
|
|
509
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.body)) {
|
|
510
510
|
const color = text.body;
|
|
511
511
|
resolvedConfig.colors.text.body = {
|
|
512
512
|
primary: color,
|
|
@@ -514,27 +514,27 @@ const colors = (context) => ({
|
|
|
514
514
|
tertiary: color,
|
|
515
515
|
link: color
|
|
516
516
|
};
|
|
517
|
-
} else if ((0,
|
|
518
|
-
if ((0,
|
|
519
|
-
if ((0,
|
|
520
|
-
if ((0,
|
|
521
|
-
if ((0,
|
|
517
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(text.body)) {
|
|
518
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.body.primary)) resolvedConfig.colors.text.body.primary = text.body.primary;
|
|
519
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.body.secondary)) resolvedConfig.colors.text.body.secondary = text.body.secondary;
|
|
520
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.body.tertiary)) resolvedConfig.colors.text.body.tertiary = text.body.tertiary;
|
|
521
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.body.link)) resolvedConfig.colors.text.body.link = text.body.link;
|
|
522
522
|
}
|
|
523
523
|
resolvedConfig.colors.text.heading ??= {};
|
|
524
|
-
if ((0,
|
|
524
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.heading)) {
|
|
525
525
|
const color = text.heading;
|
|
526
526
|
resolvedConfig.colors.text.heading = {
|
|
527
527
|
primary: color,
|
|
528
528
|
secondary: color,
|
|
529
529
|
tertiary: color
|
|
530
530
|
};
|
|
531
|
-
} else if ((0,
|
|
532
|
-
if ((0,
|
|
533
|
-
if ((0,
|
|
534
|
-
if ((0,
|
|
531
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(text.heading)) {
|
|
532
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.heading.primary)) resolvedConfig.colors.text.heading.primary = text.heading.primary;
|
|
533
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.heading.secondary)) resolvedConfig.colors.text.heading.secondary = text.heading.secondary;
|
|
534
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.heading.tertiary)) resolvedConfig.colors.text.heading.tertiary = text.heading.tertiary;
|
|
535
535
|
}
|
|
536
536
|
resolvedConfig.colors.text.usage ??= {};
|
|
537
|
-
if ((0,
|
|
537
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.usage)) resolvedConfig.colors.text.usage = {
|
|
538
538
|
bin: text.usage,
|
|
539
539
|
command: text.usage,
|
|
540
540
|
dynamic: text.usage,
|
|
@@ -542,13 +542,13 @@ const colors = (context) => ({
|
|
|
542
542
|
args: text.usage,
|
|
543
543
|
description: text.usage
|
|
544
544
|
};
|
|
545
|
-
else if ((0,
|
|
546
|
-
if ((0,
|
|
547
|
-
if ((0,
|
|
548
|
-
if ((0,
|
|
549
|
-
if ((0,
|
|
550
|
-
if ((0,
|
|
551
|
-
if ((0,
|
|
545
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(text.usage)) {
|
|
546
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.usage.bin)) resolvedConfig.colors.text.usage.bin = text.usage.bin;
|
|
547
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.usage.command)) resolvedConfig.colors.text.usage.command = text.usage.command;
|
|
548
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.usage.dynamic)) resolvedConfig.colors.text.usage.dynamic = text.usage.dynamic;
|
|
549
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.usage.options)) resolvedConfig.colors.text.usage.options = text.usage.options;
|
|
550
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.usage.args)) resolvedConfig.colors.text.usage.args = text.usage.args;
|
|
551
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(text.usage.description)) resolvedConfig.colors.text.usage.description = text.usage.description;
|
|
552
552
|
}
|
|
553
553
|
resolvedConfig.colors.text.message ??= {
|
|
554
554
|
link: {},
|
|
@@ -557,7 +557,7 @@ const colors = (context) => ({
|
|
|
557
557
|
description: {}
|
|
558
558
|
};
|
|
559
559
|
const message = text.message;
|
|
560
|
-
if ((0,
|
|
560
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message)) resolvedConfig.colors.text.message = {
|
|
561
561
|
link: {
|
|
562
562
|
help: message,
|
|
563
563
|
success: message,
|
|
@@ -595,10 +595,10 @@ const colors = (context) => ({
|
|
|
595
595
|
error: message
|
|
596
596
|
}
|
|
597
597
|
};
|
|
598
|
-
else if ((0,
|
|
598
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(message)) {
|
|
599
599
|
resolvedConfig.colors.text.message.link ??= {};
|
|
600
600
|
const link = message.link;
|
|
601
|
-
if ((0,
|
|
601
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link)) resolvedConfig.colors.text.message.link = {
|
|
602
602
|
help: link,
|
|
603
603
|
success: link,
|
|
604
604
|
info: link,
|
|
@@ -607,18 +607,18 @@ const colors = (context) => ({
|
|
|
607
607
|
danger: link,
|
|
608
608
|
error: link
|
|
609
609
|
};
|
|
610
|
-
else if ((0,
|
|
611
|
-
if ((0,
|
|
612
|
-
if ((0,
|
|
613
|
-
if ((0,
|
|
614
|
-
if ((0,
|
|
615
|
-
if ((0,
|
|
616
|
-
if ((0,
|
|
617
|
-
if ((0,
|
|
610
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(link)) {
|
|
611
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.help)) resolvedConfig.colors.text.message.link.help = link.help;
|
|
612
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.success)) resolvedConfig.colors.text.message.link.success = link.success;
|
|
613
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.info)) resolvedConfig.colors.text.message.link.info = link.info;
|
|
614
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.debug)) resolvedConfig.colors.text.message.link.debug = link.debug;
|
|
615
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.warning)) resolvedConfig.colors.text.message.link.warning = link.warning;
|
|
616
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.danger)) resolvedConfig.colors.text.message.link.danger = link.danger;
|
|
617
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(link.error)) resolvedConfig.colors.text.message.link.error = link.error;
|
|
618
618
|
}
|
|
619
619
|
resolvedConfig.colors.text.message.description ??= {};
|
|
620
620
|
const description = message.description;
|
|
621
|
-
if ((0,
|
|
621
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description)) resolvedConfig.colors.text.message.description = {
|
|
622
622
|
help: description,
|
|
623
623
|
success: description,
|
|
624
624
|
info: description,
|
|
@@ -627,18 +627,18 @@ const colors = (context) => ({
|
|
|
627
627
|
danger: description,
|
|
628
628
|
error: description
|
|
629
629
|
};
|
|
630
|
-
else if ((0,
|
|
631
|
-
if ((0,
|
|
632
|
-
if ((0,
|
|
633
|
-
if ((0,
|
|
634
|
-
if ((0,
|
|
635
|
-
if ((0,
|
|
636
|
-
if ((0,
|
|
637
|
-
if ((0,
|
|
630
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(description)) {
|
|
631
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.help)) resolvedConfig.colors.text.message.description.help = description.help;
|
|
632
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.success)) resolvedConfig.colors.text.message.description.success = description.success;
|
|
633
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.info)) resolvedConfig.colors.text.message.description.info = description.info;
|
|
634
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.debug)) resolvedConfig.colors.text.message.description.debug = description.debug;
|
|
635
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.warning)) resolvedConfig.colors.text.message.description.warning = description.warning;
|
|
636
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.danger)) resolvedConfig.colors.text.message.description.danger = description.danger;
|
|
637
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(description.error)) resolvedConfig.colors.text.message.description.error = description.error;
|
|
638
638
|
}
|
|
639
639
|
resolvedConfig.colors.text.message.header ??= {};
|
|
640
640
|
const header = message.header;
|
|
641
|
-
if ((0,
|
|
641
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header)) resolvedConfig.colors.text.message.header = {
|
|
642
642
|
help: header,
|
|
643
643
|
success: header,
|
|
644
644
|
info: header,
|
|
@@ -647,18 +647,18 @@ const colors = (context) => ({
|
|
|
647
647
|
danger: header,
|
|
648
648
|
error: header
|
|
649
649
|
};
|
|
650
|
-
else if ((0,
|
|
651
|
-
if ((0,
|
|
652
|
-
if ((0,
|
|
653
|
-
if ((0,
|
|
654
|
-
if ((0,
|
|
655
|
-
if ((0,
|
|
656
|
-
if ((0,
|
|
657
|
-
if ((0,
|
|
650
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(header)) {
|
|
651
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.help)) resolvedConfig.colors.text.message.header.help = header.help;
|
|
652
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.success)) resolvedConfig.colors.text.message.header.success = header.success;
|
|
653
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.info)) resolvedConfig.colors.text.message.header.info = header.info;
|
|
654
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.debug)) resolvedConfig.colors.text.message.header.debug = header.debug;
|
|
655
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.warning)) resolvedConfig.colors.text.message.header.warning = header.warning;
|
|
656
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.danger)) resolvedConfig.colors.text.message.header.danger = header.danger;
|
|
657
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(header.error)) resolvedConfig.colors.text.message.header.error = header.error;
|
|
658
658
|
}
|
|
659
659
|
resolvedConfig.colors.text.message.footer ??= {};
|
|
660
660
|
const footer = message.footer;
|
|
661
|
-
if ((0,
|
|
661
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer)) resolvedConfig.colors.text.message.footer = {
|
|
662
662
|
help: footer,
|
|
663
663
|
success: footer,
|
|
664
664
|
info: footer,
|
|
@@ -667,14 +667,14 @@ const colors = (context) => ({
|
|
|
667
667
|
danger: footer,
|
|
668
668
|
error: footer
|
|
669
669
|
};
|
|
670
|
-
else if ((0,
|
|
671
|
-
if ((0,
|
|
672
|
-
if ((0,
|
|
673
|
-
if ((0,
|
|
674
|
-
if ((0,
|
|
675
|
-
if ((0,
|
|
676
|
-
if ((0,
|
|
677
|
-
if ((0,
|
|
670
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(footer)) {
|
|
671
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.help)) resolvedConfig.colors.text.message.footer.help = footer.help;
|
|
672
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.success)) resolvedConfig.colors.text.message.footer.success = footer.success;
|
|
673
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.info)) resolvedConfig.colors.text.message.footer.info = footer.info;
|
|
674
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.debug)) resolvedConfig.colors.text.message.footer.debug = footer.debug;
|
|
675
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.warning)) resolvedConfig.colors.text.message.footer.warning = footer.warning;
|
|
676
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.danger)) resolvedConfig.colors.text.message.footer.danger = footer.danger;
|
|
677
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(footer.error)) resolvedConfig.colors.text.message.footer.error = footer.error;
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
680
|
resolvedConfig.colors.text.prompt ??= {
|
|
@@ -684,7 +684,7 @@ const colors = (context) => ({
|
|
|
684
684
|
description: {}
|
|
685
685
|
};
|
|
686
686
|
const prompt = text.prompt;
|
|
687
|
-
if ((0,
|
|
687
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt)) resolvedConfig.colors.text.prompt = {
|
|
688
688
|
icon: {
|
|
689
689
|
active: prompt,
|
|
690
690
|
cancelled: prompt,
|
|
@@ -721,8 +721,8 @@ const colors = (context) => ({
|
|
|
721
721
|
disabled: prompt
|
|
722
722
|
}
|
|
723
723
|
};
|
|
724
|
-
else if ((0,
|
|
725
|
-
if ((0,
|
|
724
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(prompt)) {
|
|
725
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.icon)) {
|
|
726
726
|
const icon = prompt.icon;
|
|
727
727
|
resolvedConfig.colors.text.prompt.icon = {
|
|
728
728
|
active: icon,
|
|
@@ -732,33 +732,33 @@ const colors = (context) => ({
|
|
|
732
732
|
submitted: icon,
|
|
733
733
|
disabled: icon
|
|
734
734
|
};
|
|
735
|
-
} else if ((0,
|
|
736
|
-
if ((0,
|
|
737
|
-
if ((0,
|
|
738
|
-
if ((0,
|
|
739
|
-
if ((0,
|
|
740
|
-
if ((0,
|
|
741
|
-
if ((0,
|
|
735
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(prompt.icon)) {
|
|
736
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.icon.active)) resolvedConfig.colors.text.prompt.icon.active = prompt.icon.active;
|
|
737
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.icon.cancelled)) resolvedConfig.colors.text.prompt.icon.cancelled = prompt.icon.cancelled;
|
|
738
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.icon.warning)) resolvedConfig.colors.text.prompt.icon.warning = prompt.icon.warning;
|
|
739
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.icon.error)) resolvedConfig.colors.text.prompt.icon.error = prompt.icon.error;
|
|
740
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.icon.submitted)) resolvedConfig.colors.text.prompt.icon.submitted = prompt.icon.submitted;
|
|
741
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.icon.disabled)) resolvedConfig.colors.text.prompt.icon.disabled = prompt.icon.disabled;
|
|
742
742
|
}
|
|
743
|
-
if ((0,
|
|
744
|
-
const message
|
|
743
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.message)) {
|
|
744
|
+
const message = prompt.message;
|
|
745
745
|
resolvedConfig.colors.text.prompt.message = {
|
|
746
|
-
active: message
|
|
747
|
-
cancelled: message
|
|
748
|
-
warning: message
|
|
749
|
-
error: message
|
|
750
|
-
submitted: message
|
|
751
|
-
disabled: message
|
|
746
|
+
active: message,
|
|
747
|
+
cancelled: message,
|
|
748
|
+
warning: message,
|
|
749
|
+
error: message,
|
|
750
|
+
submitted: message,
|
|
751
|
+
disabled: message
|
|
752
752
|
};
|
|
753
|
-
} else if ((0,
|
|
754
|
-
if ((0,
|
|
755
|
-
if ((0,
|
|
756
|
-
if ((0,
|
|
757
|
-
if ((0,
|
|
758
|
-
if ((0,
|
|
759
|
-
if ((0,
|
|
753
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(prompt.message)) {
|
|
754
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.message.active)) resolvedConfig.colors.text.prompt.message.active = prompt.message.active;
|
|
755
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.message.cancelled)) resolvedConfig.colors.text.prompt.message.cancelled = prompt.message.cancelled;
|
|
756
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.message.warning)) resolvedConfig.colors.text.prompt.message.warning = prompt.message.warning;
|
|
757
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.message.error)) resolvedConfig.colors.text.prompt.message.error = prompt.message.error;
|
|
758
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.message.submitted)) resolvedConfig.colors.text.prompt.message.submitted = prompt.message.submitted;
|
|
759
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.message.disabled)) resolvedConfig.colors.text.prompt.message.disabled = prompt.message.disabled;
|
|
760
760
|
}
|
|
761
|
-
if ((0,
|
|
761
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input)) {
|
|
762
762
|
const input = prompt.input;
|
|
763
763
|
resolvedConfig.colors.text.prompt.input = {
|
|
764
764
|
active: input,
|
|
@@ -770,17 +770,17 @@ const colors = (context) => ({
|
|
|
770
770
|
placeholder: input,
|
|
771
771
|
disabled: input
|
|
772
772
|
};
|
|
773
|
-
} else if ((0,
|
|
774
|
-
if ((0,
|
|
775
|
-
if ((0,
|
|
776
|
-
if ((0,
|
|
777
|
-
if ((0,
|
|
778
|
-
if ((0,
|
|
779
|
-
if ((0,
|
|
780
|
-
if ((0,
|
|
781
|
-
if ((0,
|
|
773
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(prompt.input)) {
|
|
774
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.active)) resolvedConfig.colors.text.prompt.input.active = prompt.input.active;
|
|
775
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.inactive)) resolvedConfig.colors.text.prompt.input.inactive = prompt.input.inactive;
|
|
776
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.cancelled)) resolvedConfig.colors.text.prompt.input.cancelled = prompt.input.cancelled;
|
|
777
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.warning)) resolvedConfig.colors.text.prompt.input.warning = prompt.input.warning;
|
|
778
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.error)) resolvedConfig.colors.text.prompt.input.error = prompt.input.error;
|
|
779
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.submitted)) resolvedConfig.colors.text.prompt.input.submitted = prompt.input.submitted;
|
|
780
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.placeholder)) resolvedConfig.colors.text.prompt.input.placeholder = prompt.input.placeholder;
|
|
781
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.input.disabled)) resolvedConfig.colors.text.prompt.input.disabled = prompt.input.disabled;
|
|
782
782
|
}
|
|
783
|
-
if ((0,
|
|
783
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description)) {
|
|
784
784
|
const description = prompt.description;
|
|
785
785
|
resolvedConfig.colors.text.prompt.description = {
|
|
786
786
|
active: description,
|
|
@@ -791,14 +791,14 @@ const colors = (context) => ({
|
|
|
791
791
|
submitted: description,
|
|
792
792
|
disabled: description
|
|
793
793
|
};
|
|
794
|
-
} else if ((0,
|
|
795
|
-
if ((0,
|
|
796
|
-
if ((0,
|
|
797
|
-
if ((0,
|
|
798
|
-
if ((0,
|
|
799
|
-
if ((0,
|
|
800
|
-
if ((0,
|
|
801
|
-
if ((0,
|
|
794
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(prompt.description)) {
|
|
795
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description.active)) resolvedConfig.colors.text.prompt.description.active = prompt.description.active;
|
|
796
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description.inactive)) resolvedConfig.colors.text.prompt.description.inactive = prompt.description.inactive;
|
|
797
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description.cancelled)) resolvedConfig.colors.text.prompt.description.cancelled = prompt.description.cancelled;
|
|
798
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description.warning)) resolvedConfig.colors.text.prompt.description.warning = prompt.description.warning;
|
|
799
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description.error)) resolvedConfig.colors.text.prompt.description.error = prompt.description.error;
|
|
800
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description.submitted)) resolvedConfig.colors.text.prompt.description.submitted = prompt.description.submitted;
|
|
801
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(prompt.description.disabled)) resolvedConfig.colors.text.prompt.description.disabled = prompt.description.disabled;
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
resolvedConfig.colors.text.spinner ??= {
|
|
@@ -806,7 +806,7 @@ const colors = (context) => ({
|
|
|
806
806
|
message: {}
|
|
807
807
|
};
|
|
808
808
|
const spinner = text.spinner;
|
|
809
|
-
if ((0,
|
|
809
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner)) resolvedConfig.colors.text.spinner = {
|
|
810
810
|
icon: {
|
|
811
811
|
active: spinner,
|
|
812
812
|
error: spinner,
|
|
@@ -824,8 +824,8 @@ const colors = (context) => ({
|
|
|
824
824
|
warning: spinner
|
|
825
825
|
}
|
|
826
826
|
};
|
|
827
|
-
else if ((0,
|
|
828
|
-
if ((0,
|
|
827
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(spinner)) {
|
|
828
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.icon)) {
|
|
829
829
|
const icon = spinner.icon;
|
|
830
830
|
resolvedConfig.colors.text.spinner.icon = {
|
|
831
831
|
active: icon,
|
|
@@ -835,31 +835,31 @@ const colors = (context) => ({
|
|
|
835
835
|
info: icon,
|
|
836
836
|
warning: icon
|
|
837
837
|
};
|
|
838
|
-
} else if ((0,
|
|
839
|
-
if ((0,
|
|
840
|
-
if ((0,
|
|
841
|
-
if ((0,
|
|
842
|
-
if ((0,
|
|
843
|
-
if ((0,
|
|
844
|
-
if ((0,
|
|
838
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(spinner.icon)) {
|
|
839
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.icon.active)) resolvedConfig.colors.text.spinner.icon.active = spinner.icon.active;
|
|
840
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.icon.error)) resolvedConfig.colors.text.spinner.icon.error = spinner.icon.error;
|
|
841
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.icon.success)) resolvedConfig.colors.text.spinner.icon.success = spinner.icon.success;
|
|
842
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.icon.help)) resolvedConfig.colors.text.spinner.icon.help = spinner.icon.help;
|
|
843
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.icon.info)) resolvedConfig.colors.text.spinner.icon.info = spinner.icon.info;
|
|
844
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.icon.warning)) resolvedConfig.colors.text.spinner.icon.warning = spinner.icon.warning;
|
|
845
845
|
}
|
|
846
|
-
if ((0,
|
|
847
|
-
const message
|
|
846
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.message)) {
|
|
847
|
+
const message = spinner.message;
|
|
848
848
|
resolvedConfig.colors.text.spinner.message = {
|
|
849
|
-
active: message
|
|
850
|
-
error: message
|
|
851
|
-
success: message
|
|
852
|
-
help: message
|
|
853
|
-
info: message
|
|
854
|
-
warning: message
|
|
849
|
+
active: message,
|
|
850
|
+
error: message,
|
|
851
|
+
success: message,
|
|
852
|
+
help: message,
|
|
853
|
+
info: message,
|
|
854
|
+
warning: message
|
|
855
855
|
};
|
|
856
|
-
} else if ((0,
|
|
857
|
-
if ((0,
|
|
858
|
-
if ((0,
|
|
859
|
-
if ((0,
|
|
860
|
-
if ((0,
|
|
861
|
-
if ((0,
|
|
862
|
-
if ((0,
|
|
856
|
+
} else if ((0, _stryke_type_checks_is_set_object.isSetObject)(spinner.message)) {
|
|
857
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.message.active)) resolvedConfig.colors.text.spinner.message.active = spinner.message.active;
|
|
858
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.message.error)) resolvedConfig.colors.text.spinner.message.error = spinner.message.error;
|
|
859
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.message.success)) resolvedConfig.colors.text.spinner.message.success = spinner.message.success;
|
|
860
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.message.help)) resolvedConfig.colors.text.spinner.message.help = spinner.message.help;
|
|
861
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.message.info)) resolvedConfig.colors.text.spinner.message.info = spinner.message.info;
|
|
862
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(spinner.message.warning)) resolvedConfig.colors.text.spinner.message.warning = spinner.message.warning;
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
865
|
}
|
|
@@ -877,8 +877,8 @@ const colors = (context) => ({
|
|
|
877
877
|
divider: {}
|
|
878
878
|
}
|
|
879
879
|
};
|
|
880
|
-
const border = colors
|
|
881
|
-
if ((0,
|
|
880
|
+
const border = colors.border;
|
|
881
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(border)) resolvedConfig.colors.border = {
|
|
882
882
|
banner: {
|
|
883
883
|
outline: {
|
|
884
884
|
primary: border,
|
|
@@ -924,13 +924,13 @@ const colors = (context) => ({
|
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
926
|
};
|
|
927
|
-
else if ((0,
|
|
927
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(border)) {
|
|
928
928
|
resolvedConfig.colors.border.banner ??= {
|
|
929
929
|
outline: {},
|
|
930
930
|
divider: {}
|
|
931
931
|
};
|
|
932
932
|
const banner = border.banner;
|
|
933
|
-
if ((0,
|
|
933
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(banner)) resolvedConfig.colors.border.banner = {
|
|
934
934
|
outline: {
|
|
935
935
|
primary: banner,
|
|
936
936
|
secondary: banner,
|
|
@@ -942,46 +942,46 @@ const colors = (context) => ({
|
|
|
942
942
|
tertiary: banner
|
|
943
943
|
}
|
|
944
944
|
};
|
|
945
|
-
else if ((0,
|
|
945
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(banner)) if ("outline" in banner || "divider" in banner) {
|
|
946
946
|
resolvedConfig.colors.border.banner.outline = {};
|
|
947
947
|
const outline = banner.outline;
|
|
948
|
-
if ((0,
|
|
948
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline)) resolvedConfig.colors.border.banner.outline = {
|
|
949
949
|
primary: outline,
|
|
950
950
|
secondary: outline,
|
|
951
951
|
tertiary: outline
|
|
952
952
|
};
|
|
953
|
-
else if ((0,
|
|
954
|
-
if ((0,
|
|
955
|
-
if ((0,
|
|
956
|
-
if ((0,
|
|
953
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(outline)) {
|
|
954
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.primary)) resolvedConfig.colors.border.banner.outline.primary = outline.primary;
|
|
955
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.secondary)) resolvedConfig.colors.border.banner.outline.secondary = outline.secondary;
|
|
956
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.tertiary)) resolvedConfig.colors.border.banner.outline.tertiary = outline.tertiary;
|
|
957
957
|
}
|
|
958
958
|
resolvedConfig.colors.border.banner.divider ??= {};
|
|
959
959
|
const divider = banner.divider;
|
|
960
|
-
if ((0,
|
|
960
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider)) resolvedConfig.colors.border.banner.divider = {
|
|
961
961
|
primary: divider,
|
|
962
962
|
secondary: divider,
|
|
963
963
|
tertiary: divider
|
|
964
964
|
};
|
|
965
|
-
else if ((0,
|
|
966
|
-
if ((0,
|
|
967
|
-
if ((0,
|
|
968
|
-
if ((0,
|
|
965
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(divider)) {
|
|
966
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.primary)) resolvedConfig.colors.border.banner.divider.primary = divider.primary;
|
|
967
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.secondary)) resolvedConfig.colors.border.banner.divider.secondary = divider.secondary;
|
|
968
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.tertiary)) resolvedConfig.colors.border.banner.divider.tertiary = divider.tertiary;
|
|
969
969
|
}
|
|
970
970
|
} else {
|
|
971
971
|
resolvedConfig.colors.border.banner.outline ??= {};
|
|
972
972
|
resolvedConfig.colors.border.banner.divider ??= {};
|
|
973
|
-
const banner
|
|
974
|
-
if ((0,
|
|
975
|
-
resolvedConfig.colors.border.banner.outline.primary = banner
|
|
976
|
-
resolvedConfig.colors.border.banner.divider.primary = banner
|
|
973
|
+
const banner = border.banner;
|
|
974
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(banner.primary)) {
|
|
975
|
+
resolvedConfig.colors.border.banner.outline.primary = banner.primary;
|
|
976
|
+
resolvedConfig.colors.border.banner.divider.primary = banner.primary;
|
|
977
977
|
}
|
|
978
|
-
if ((0,
|
|
979
|
-
resolvedConfig.colors.border.banner.outline.secondary = banner
|
|
980
|
-
resolvedConfig.colors.border.banner.divider.secondary = banner
|
|
978
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(banner.secondary)) {
|
|
979
|
+
resolvedConfig.colors.border.banner.outline.secondary = banner.secondary;
|
|
980
|
+
resolvedConfig.colors.border.banner.divider.secondary = banner.secondary;
|
|
981
981
|
}
|
|
982
|
-
if ((0,
|
|
983
|
-
resolvedConfig.colors.border.banner.outline.tertiary = banner
|
|
984
|
-
resolvedConfig.colors.border.banner.divider.tertiary = banner
|
|
982
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(banner.tertiary)) {
|
|
983
|
+
resolvedConfig.colors.border.banner.outline.tertiary = banner.tertiary;
|
|
984
|
+
resolvedConfig.colors.border.banner.divider.tertiary = banner.tertiary;
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
resolvedConfig.colors.border.app ??= {
|
|
@@ -989,7 +989,7 @@ const colors = (context) => ({
|
|
|
989
989
|
divider: {}
|
|
990
990
|
};
|
|
991
991
|
const app = border.app;
|
|
992
|
-
if ((0,
|
|
992
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(app)) resolvedConfig.colors.border.app = {
|
|
993
993
|
table: {
|
|
994
994
|
primary: app,
|
|
995
995
|
secondary: app,
|
|
@@ -1001,48 +1001,48 @@ const colors = (context) => ({
|
|
|
1001
1001
|
tertiary: app
|
|
1002
1002
|
}
|
|
1003
1003
|
};
|
|
1004
|
-
else if ((0,
|
|
1004
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(app)) {
|
|
1005
1005
|
resolvedConfig.colors.border.app ??= {};
|
|
1006
1006
|
if ("table" in app || "divider" in app) {
|
|
1007
|
-
if ((0,
|
|
1007
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(app.table)) resolvedConfig.colors.border.app.table = {
|
|
1008
1008
|
primary: app.table,
|
|
1009
1009
|
secondary: app.table,
|
|
1010
1010
|
tertiary: app.table
|
|
1011
1011
|
};
|
|
1012
|
-
else if ((0,
|
|
1012
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(app.table)) {
|
|
1013
1013
|
resolvedConfig.colors.border.app.table = {};
|
|
1014
1014
|
const table = app.table;
|
|
1015
|
-
if ((0,
|
|
1016
|
-
if ((0,
|
|
1017
|
-
if ((0,
|
|
1015
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(table.primary)) resolvedConfig.colors.border.app.table.primary = table.primary;
|
|
1016
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(table.secondary)) resolvedConfig.colors.border.app.table.secondary = table.secondary;
|
|
1017
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(table.tertiary)) resolvedConfig.colors.border.app.table.tertiary = table.tertiary;
|
|
1018
1018
|
}
|
|
1019
|
-
if ((0,
|
|
1019
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(app.divider)) resolvedConfig.colors.border.app.divider = {
|
|
1020
1020
|
primary: app.divider,
|
|
1021
1021
|
secondary: app.divider,
|
|
1022
1022
|
tertiary: app.divider
|
|
1023
1023
|
};
|
|
1024
|
-
else if ((0,
|
|
1024
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(app.divider)) {
|
|
1025
1025
|
resolvedConfig.colors.border.app.divider = {};
|
|
1026
1026
|
const divider = app.divider;
|
|
1027
|
-
if ((0,
|
|
1028
|
-
if ((0,
|
|
1029
|
-
if ((0,
|
|
1027
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.primary)) resolvedConfig.colors.border.app.divider.primary = divider.primary;
|
|
1028
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.secondary)) resolvedConfig.colors.border.app.divider.secondary = divider.secondary;
|
|
1029
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.tertiary)) resolvedConfig.colors.border.app.divider.tertiary = divider.tertiary;
|
|
1030
1030
|
}
|
|
1031
1031
|
} else {
|
|
1032
1032
|
resolvedConfig.colors.border.app.table ??= {};
|
|
1033
1033
|
resolvedConfig.colors.border.app.divider ??= {};
|
|
1034
|
-
const app
|
|
1035
|
-
if ((0,
|
|
1036
|
-
resolvedConfig.colors.border.app.table.primary = app
|
|
1037
|
-
resolvedConfig.colors.border.app.divider.primary = app
|
|
1034
|
+
const app = border.app;
|
|
1035
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(app.primary)) {
|
|
1036
|
+
resolvedConfig.colors.border.app.table.primary = app.primary;
|
|
1037
|
+
resolvedConfig.colors.border.app.divider.primary = app.primary;
|
|
1038
1038
|
}
|
|
1039
|
-
if ((0,
|
|
1040
|
-
resolvedConfig.colors.border.app.table.secondary = app
|
|
1041
|
-
resolvedConfig.colors.border.app.divider.secondary = app
|
|
1039
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(app.secondary)) {
|
|
1040
|
+
resolvedConfig.colors.border.app.table.secondary = app.secondary;
|
|
1041
|
+
resolvedConfig.colors.border.app.divider.secondary = app.secondary;
|
|
1042
1042
|
}
|
|
1043
|
-
if ((0,
|
|
1044
|
-
resolvedConfig.colors.border.app.table.tertiary = app
|
|
1045
|
-
resolvedConfig.colors.border.app.divider.tertiary = app
|
|
1043
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(app.tertiary)) {
|
|
1044
|
+
resolvedConfig.colors.border.app.table.tertiary = app.tertiary;
|
|
1045
|
+
resolvedConfig.colors.border.app.divider.tertiary = app.tertiary;
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
@@ -1051,7 +1051,7 @@ const colors = (context) => ({
|
|
|
1051
1051
|
divider: {}
|
|
1052
1052
|
};
|
|
1053
1053
|
const message = border.message;
|
|
1054
|
-
if ((0,
|
|
1054
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message)) resolvedConfig.colors.border.message = {
|
|
1055
1055
|
outline: {
|
|
1056
1056
|
help: message,
|
|
1057
1057
|
success: message,
|
|
@@ -1071,10 +1071,10 @@ const colors = (context) => ({
|
|
|
1071
1071
|
error: message
|
|
1072
1072
|
}
|
|
1073
1073
|
};
|
|
1074
|
-
else if ((0,
|
|
1074
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(message)) {
|
|
1075
1075
|
resolvedConfig.colors.border.message ??= {};
|
|
1076
1076
|
if ("outline" in message || "divider" in message) {
|
|
1077
|
-
if ((0,
|
|
1077
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.outline)) resolvedConfig.colors.border.message.outline = {
|
|
1078
1078
|
help: message.outline,
|
|
1079
1079
|
success: message.outline,
|
|
1080
1080
|
info: message.outline,
|
|
@@ -1083,18 +1083,18 @@ const colors = (context) => ({
|
|
|
1083
1083
|
danger: message.outline,
|
|
1084
1084
|
error: message.outline
|
|
1085
1085
|
};
|
|
1086
|
-
else if ((0,
|
|
1086
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(message.outline)) {
|
|
1087
1087
|
resolvedConfig.colors.border.message.outline ??= {};
|
|
1088
1088
|
const outline = message.outline;
|
|
1089
|
-
if ((0,
|
|
1090
|
-
if ((0,
|
|
1091
|
-
if ((0,
|
|
1092
|
-
if ((0,
|
|
1093
|
-
if ((0,
|
|
1094
|
-
if ((0,
|
|
1095
|
-
if ((0,
|
|
1089
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.help)) resolvedConfig.colors.border.message.outline.help = outline.help;
|
|
1090
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.success)) resolvedConfig.colors.border.message.outline.success = outline.success;
|
|
1091
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.info)) resolvedConfig.colors.border.message.outline.info = outline.info;
|
|
1092
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.debug)) resolvedConfig.colors.border.message.outline.debug = outline.debug;
|
|
1093
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.warning)) resolvedConfig.colors.border.message.outline.warning = outline.warning;
|
|
1094
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.danger)) resolvedConfig.colors.border.message.outline.danger = outline.danger;
|
|
1095
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(outline.error)) resolvedConfig.colors.border.message.outline.error = outline.error;
|
|
1096
1096
|
}
|
|
1097
|
-
if ((0,
|
|
1097
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.divider)) resolvedConfig.colors.border.message.divider = {
|
|
1098
1098
|
help: message.divider,
|
|
1099
1099
|
success: message.divider,
|
|
1100
1100
|
info: message.divider,
|
|
@@ -1103,48 +1103,48 @@ const colors = (context) => ({
|
|
|
1103
1103
|
danger: message.divider,
|
|
1104
1104
|
error: message.divider
|
|
1105
1105
|
};
|
|
1106
|
-
else if ((0,
|
|
1106
|
+
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(message.divider)) {
|
|
1107
1107
|
resolvedConfig.colors.border.message.divider ??= {};
|
|
1108
1108
|
const divider = message.divider;
|
|
1109
|
-
if ((0,
|
|
1110
|
-
if ((0,
|
|
1111
|
-
if ((0,
|
|
1112
|
-
if ((0,
|
|
1113
|
-
if ((0,
|
|
1114
|
-
if ((0,
|
|
1115
|
-
if ((0,
|
|
1109
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.help)) resolvedConfig.colors.border.message.divider.help = divider.help;
|
|
1110
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.success)) resolvedConfig.colors.border.message.divider.success = divider.success;
|
|
1111
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.info)) resolvedConfig.colors.border.message.divider.info = divider.info;
|
|
1112
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.debug)) resolvedConfig.colors.border.message.divider.debug = divider.debug;
|
|
1113
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.warning)) resolvedConfig.colors.border.message.divider.warning = divider.warning;
|
|
1114
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.danger)) resolvedConfig.colors.border.message.divider.danger = divider.danger;
|
|
1115
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(divider.error)) resolvedConfig.colors.border.message.divider.error = divider.error;
|
|
1116
1116
|
}
|
|
1117
1117
|
} else {
|
|
1118
1118
|
resolvedConfig.colors.border.message.outline ??= {};
|
|
1119
1119
|
resolvedConfig.colors.border.message.divider ??= {};
|
|
1120
|
-
const message
|
|
1121
|
-
if ((0,
|
|
1122
|
-
resolvedConfig.colors.border.message.outline.help = message
|
|
1123
|
-
resolvedConfig.colors.border.message.divider.help = message
|
|
1120
|
+
const message = border.message;
|
|
1121
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.help)) {
|
|
1122
|
+
resolvedConfig.colors.border.message.outline.help = message.help;
|
|
1123
|
+
resolvedConfig.colors.border.message.divider.help = message.help;
|
|
1124
1124
|
}
|
|
1125
|
-
if ((0,
|
|
1126
|
-
resolvedConfig.colors.border.message.outline.success = message
|
|
1127
|
-
resolvedConfig.colors.border.message.divider.success = message
|
|
1125
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.success)) {
|
|
1126
|
+
resolvedConfig.colors.border.message.outline.success = message.success;
|
|
1127
|
+
resolvedConfig.colors.border.message.divider.success = message.success;
|
|
1128
1128
|
}
|
|
1129
|
-
if ((0,
|
|
1130
|
-
resolvedConfig.colors.border.message.outline.info = message
|
|
1131
|
-
resolvedConfig.colors.border.message.divider.info = message
|
|
1129
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.info)) {
|
|
1130
|
+
resolvedConfig.colors.border.message.outline.info = message.info;
|
|
1131
|
+
resolvedConfig.colors.border.message.divider.info = message.info;
|
|
1132
1132
|
}
|
|
1133
|
-
if ((0,
|
|
1134
|
-
resolvedConfig.colors.border.message.outline.debug = message
|
|
1135
|
-
resolvedConfig.colors.border.message.divider.debug = message
|
|
1133
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.debug)) {
|
|
1134
|
+
resolvedConfig.colors.border.message.outline.debug = message.debug;
|
|
1135
|
+
resolvedConfig.colors.border.message.divider.debug = message.debug;
|
|
1136
1136
|
}
|
|
1137
|
-
if ((0,
|
|
1138
|
-
resolvedConfig.colors.border.message.outline.warning = message
|
|
1139
|
-
resolvedConfig.colors.border.message.divider.warning = message
|
|
1137
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.warning)) {
|
|
1138
|
+
resolvedConfig.colors.border.message.outline.warning = message.warning;
|
|
1139
|
+
resolvedConfig.colors.border.message.divider.warning = message.warning;
|
|
1140
1140
|
}
|
|
1141
|
-
if ((0,
|
|
1142
|
-
resolvedConfig.colors.border.message.outline.danger = message
|
|
1143
|
-
resolvedConfig.colors.border.message.divider.danger = message
|
|
1141
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.danger)) {
|
|
1142
|
+
resolvedConfig.colors.border.message.outline.danger = message.danger;
|
|
1143
|
+
resolvedConfig.colors.border.message.divider.danger = message.danger;
|
|
1144
1144
|
}
|
|
1145
|
-
if ((0,
|
|
1146
|
-
resolvedConfig.colors.border.message.outline.error = message
|
|
1147
|
-
resolvedConfig.colors.border.message.divider.error = message
|
|
1145
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(message.error)) {
|
|
1146
|
+
resolvedConfig.colors.border.message.outline.error = message.error;
|
|
1147
|
+
resolvedConfig.colors.border.message.divider.error = message.error;
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
1150
|
}
|