@cashub/ui 0.49.0-beta.14 → 0.49.0-beta.16
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/iconbox/IconBox.js +1 -1
- package/layout/Layout.jsx +13 -0
- package/package.json +1 -1
- package/select/Select.js +1 -1
- package/styles/GlobalStyle.js +75 -57
- package/styles/theme/dark.theme.js +3 -0
- package/styles/theme/ember.theme.js +3 -0
- package/styles/theme/white.theme.js +2 -0
package/iconbox/IconBox.js
CHANGED
|
@@ -211,7 +211,7 @@ const AccentGlassLayer = _styledComponents.default.div`
|
|
|
211
211
|
} = _ref4;
|
|
212
212
|
if (mode === 'gradient') {
|
|
213
213
|
return `
|
|
214
|
-
background: linear-gradient(22deg, var(--color-
|
|
214
|
+
background: linear-gradient(22deg, var(--color-card-gradient-base) 0%, var(--color-card-gradient-base) 40%, ${gradientEnd} 100%);
|
|
215
215
|
border: 2px solid ${borderColor};
|
|
216
216
|
`;
|
|
217
217
|
}
|
package/layout/Layout.jsx
CHANGED
|
@@ -6,6 +6,7 @@ import Container from './Container';
|
|
|
6
6
|
import Footer from './Footer';
|
|
7
7
|
import Sidebar from './Sidebar';
|
|
8
8
|
import Backdrop from './Backdrop';
|
|
9
|
+
import bgMainRegistry from './bgMainRegistry';
|
|
9
10
|
|
|
10
11
|
const Layout = ({
|
|
11
12
|
mode,
|
|
@@ -68,6 +69,18 @@ const Main = styled.div`
|
|
|
68
69
|
display: flex;
|
|
69
70
|
flex: 1;
|
|
70
71
|
position: relative;
|
|
72
|
+
${({ theme }) => {
|
|
73
|
+
if (theme?.hideAsideDecoration) return '';
|
|
74
|
+
const bgKey = theme?.bgMainKey || 'default';
|
|
75
|
+
const bgImage = bgMainRegistry[bgKey];
|
|
76
|
+
return `
|
|
77
|
+
background: url(${bgImage});
|
|
78
|
+
background-size: cover;
|
|
79
|
+
background-repeat: no-repeat;
|
|
80
|
+
background-position: center;
|
|
81
|
+
background-attachment: fixed;
|
|
82
|
+
`;
|
|
83
|
+
}}
|
|
71
84
|
`;
|
|
72
85
|
|
|
73
86
|
export default Layout;
|
package/package.json
CHANGED
package/select/Select.js
CHANGED
package/styles/GlobalStyle.js
CHANGED
|
@@ -123,178 +123,196 @@ const GlobalStyle = (0, _styledComponents.createGlobalStyle)`
|
|
|
123
123
|
} = _ref19;
|
|
124
124
|
return theme.bgColor4;
|
|
125
125
|
}};
|
|
126
|
-
--color-
|
|
126
|
+
--color-card-gradient-base: ${_ref20 => {
|
|
127
127
|
let {
|
|
128
128
|
theme
|
|
129
129
|
} = _ref20;
|
|
130
|
-
return theme.
|
|
130
|
+
return theme.colorCardGradientBase || theme.bgColor2;
|
|
131
131
|
}};
|
|
132
|
-
--
|
|
132
|
+
--color-select-reverse: ${_ref21 => {
|
|
133
133
|
let {
|
|
134
134
|
theme
|
|
135
135
|
} = _ref21;
|
|
136
|
-
return theme.
|
|
136
|
+
return theme.colorSelectReverse || theme.bgColor1;
|
|
137
137
|
}};
|
|
138
|
-
--
|
|
138
|
+
--color-glass-bg: ${_ref22 => {
|
|
139
139
|
let {
|
|
140
140
|
theme
|
|
141
141
|
} = _ref22;
|
|
142
|
-
return theme.
|
|
142
|
+
return theme.colorGlassBg || 'rgba(255, 255, 255, 0.06)';
|
|
143
143
|
}};
|
|
144
|
-
--
|
|
144
|
+
--color-backdrop: ${_ref23 => {
|
|
145
145
|
let {
|
|
146
146
|
theme
|
|
147
147
|
} = _ref23;
|
|
148
|
-
return theme.
|
|
148
|
+
return theme.backdropBg;
|
|
149
149
|
}};
|
|
150
|
-
--font-
|
|
150
|
+
--font-h1: ${_ref24 => {
|
|
151
151
|
let {
|
|
152
152
|
theme
|
|
153
153
|
} = _ref24;
|
|
154
|
-
return theme.
|
|
154
|
+
return theme.fontH1;
|
|
155
155
|
}};
|
|
156
|
-
--font-
|
|
156
|
+
--font-h2: ${_ref25 => {
|
|
157
157
|
let {
|
|
158
158
|
theme
|
|
159
159
|
} = _ref25;
|
|
160
|
-
return theme.
|
|
160
|
+
return theme.fontH2;
|
|
161
161
|
}};
|
|
162
|
-
--font-
|
|
162
|
+
--font-h3: ${_ref26 => {
|
|
163
163
|
let {
|
|
164
164
|
theme
|
|
165
165
|
} = _ref26;
|
|
166
|
-
return theme.
|
|
166
|
+
return theme.fontH3;
|
|
167
167
|
}};
|
|
168
|
-
--font-
|
|
168
|
+
--font-body1: ${_ref27 => {
|
|
169
169
|
let {
|
|
170
170
|
theme
|
|
171
171
|
} = _ref27;
|
|
172
|
-
return theme.
|
|
172
|
+
return theme.fontBody1;
|
|
173
173
|
}};
|
|
174
|
-
--font-
|
|
174
|
+
--font-body2: ${_ref28 => {
|
|
175
175
|
let {
|
|
176
176
|
theme
|
|
177
177
|
} = _ref28;
|
|
178
|
-
return theme.
|
|
178
|
+
return theme.fontBody2;
|
|
179
179
|
}};
|
|
180
|
-
--font-
|
|
180
|
+
--font-button: ${_ref29 => {
|
|
181
181
|
let {
|
|
182
182
|
theme
|
|
183
183
|
} = _ref29;
|
|
184
|
-
return theme.
|
|
184
|
+
return theme.fontButton;
|
|
185
185
|
}};
|
|
186
|
-
--font-
|
|
186
|
+
--font-caption: ${_ref30 => {
|
|
187
187
|
let {
|
|
188
188
|
theme
|
|
189
189
|
} = _ref30;
|
|
190
|
-
return theme.
|
|
190
|
+
return theme.fontCaption;
|
|
191
191
|
}};
|
|
192
|
-
--font-
|
|
192
|
+
--font-family: ${_ref31 => {
|
|
193
193
|
let {
|
|
194
194
|
theme
|
|
195
195
|
} = _ref31;
|
|
196
|
-
return theme.
|
|
196
|
+
return theme.fontFamily;
|
|
197
197
|
}};
|
|
198
|
-
--font-
|
|
198
|
+
--font-normal: ${_ref32 => {
|
|
199
199
|
let {
|
|
200
200
|
theme
|
|
201
201
|
} = _ref32;
|
|
202
|
-
return theme.
|
|
202
|
+
return theme.fontWeightNormal;
|
|
203
203
|
}};
|
|
204
|
-
--font-
|
|
204
|
+
--font-bold: ${_ref33 => {
|
|
205
205
|
let {
|
|
206
206
|
theme
|
|
207
207
|
} = _ref33;
|
|
208
|
-
return theme.
|
|
208
|
+
return theme.fontWeightBold;
|
|
209
209
|
}};
|
|
210
|
-
--font-on-
|
|
210
|
+
--font-on-primary: ${_ref34 => {
|
|
211
211
|
let {
|
|
212
212
|
theme
|
|
213
213
|
} = _ref34;
|
|
214
|
-
return theme.
|
|
214
|
+
return theme.fontOnPrimary;
|
|
215
215
|
}};
|
|
216
|
-
--font-on-
|
|
216
|
+
--font-on-success: ${_ref35 => {
|
|
217
217
|
let {
|
|
218
218
|
theme
|
|
219
219
|
} = _ref35;
|
|
220
|
-
return theme.
|
|
220
|
+
return theme.fontOnSuccess;
|
|
221
221
|
}};
|
|
222
|
-
--font-on-
|
|
222
|
+
--font-on-warning: ${_ref36 => {
|
|
223
223
|
let {
|
|
224
224
|
theme
|
|
225
225
|
} = _ref36;
|
|
226
|
-
return theme.
|
|
226
|
+
return theme.fontOnWarning;
|
|
227
227
|
}};
|
|
228
|
-
--
|
|
228
|
+
--font-on-danger: ${_ref37 => {
|
|
229
229
|
let {
|
|
230
230
|
theme
|
|
231
231
|
} = _ref37;
|
|
232
|
-
return theme.
|
|
232
|
+
return theme.fontOnDanger;
|
|
233
233
|
}};
|
|
234
|
-
--
|
|
234
|
+
--font-on-background: ${_ref38 => {
|
|
235
235
|
let {
|
|
236
236
|
theme
|
|
237
237
|
} = _ref38;
|
|
238
|
-
return theme.
|
|
238
|
+
return theme.fontOnBg;
|
|
239
239
|
}};
|
|
240
|
-
--
|
|
240
|
+
--font-on-mute: ${_ref39 => {
|
|
241
241
|
let {
|
|
242
242
|
theme
|
|
243
243
|
} = _ref39;
|
|
244
|
-
return theme.
|
|
244
|
+
return theme.fontMutedColor;
|
|
245
245
|
}};
|
|
246
|
-
--
|
|
246
|
+
--box-shadow: ${_ref40 => {
|
|
247
247
|
let {
|
|
248
248
|
theme
|
|
249
249
|
} = _ref40;
|
|
250
|
-
return theme.
|
|
250
|
+
return theme.boxShadow;
|
|
251
251
|
}};
|
|
252
|
-
--border-
|
|
252
|
+
--border-color: ${_ref41 => {
|
|
253
253
|
let {
|
|
254
254
|
theme
|
|
255
255
|
} = _ref41;
|
|
256
|
-
return theme.
|
|
256
|
+
return theme.borderColor;
|
|
257
257
|
}};
|
|
258
|
-
--border-
|
|
258
|
+
--border-color-transparent: ${_ref42 => {
|
|
259
259
|
let {
|
|
260
260
|
theme
|
|
261
261
|
} = _ref42;
|
|
262
|
-
return theme.
|
|
262
|
+
return theme.borderColorTransparent;
|
|
263
263
|
}};
|
|
264
|
-
--border-
|
|
264
|
+
--border-width: ${_ref43 => {
|
|
265
265
|
let {
|
|
266
266
|
theme
|
|
267
267
|
} = _ref43;
|
|
268
|
-
return theme.
|
|
268
|
+
return theme.borderWidth;
|
|
269
269
|
}};
|
|
270
|
-
--border-radius-
|
|
270
|
+
--border-radius-s: ${_ref44 => {
|
|
271
271
|
let {
|
|
272
272
|
theme
|
|
273
273
|
} = _ref44;
|
|
274
|
-
return theme.
|
|
274
|
+
return theme.borderRadiusS;
|
|
275
275
|
}};
|
|
276
|
-
--
|
|
276
|
+
--border-radius: ${_ref45 => {
|
|
277
277
|
let {
|
|
278
278
|
theme
|
|
279
279
|
} = _ref45;
|
|
280
|
-
return theme.
|
|
280
|
+
return theme.borderRadius;
|
|
281
281
|
}};
|
|
282
|
-
--
|
|
282
|
+
--border-radius-l: ${_ref46 => {
|
|
283
283
|
let {
|
|
284
284
|
theme
|
|
285
285
|
} = _ref46;
|
|
286
|
-
return theme.
|
|
286
|
+
return theme.borderRadiusL;
|
|
287
287
|
}};
|
|
288
|
-
--
|
|
288
|
+
--border-radius-round: ${_ref47 => {
|
|
289
289
|
let {
|
|
290
290
|
theme
|
|
291
291
|
} = _ref47;
|
|
292
|
-
return theme.
|
|
292
|
+
return theme.borderRadiusRound;
|
|
293
293
|
}};
|
|
294
|
-
--spacing-
|
|
294
|
+
--spacing-xs: ${_ref48 => {
|
|
295
295
|
let {
|
|
296
296
|
theme
|
|
297
297
|
} = _ref48;
|
|
298
|
+
return theme.spacerXS;
|
|
299
|
+
}};
|
|
300
|
+
--spacing-s: ${_ref49 => {
|
|
301
|
+
let {
|
|
302
|
+
theme
|
|
303
|
+
} = _ref49;
|
|
304
|
+
return theme.spacerS;
|
|
305
|
+
}};
|
|
306
|
+
--spacing: ${_ref50 => {
|
|
307
|
+
let {
|
|
308
|
+
theme
|
|
309
|
+
} = _ref50;
|
|
310
|
+
return theme.spacer;
|
|
311
|
+
}};
|
|
312
|
+
--spacing-l: ${_ref51 => {
|
|
313
|
+
let {
|
|
314
|
+
theme
|
|
315
|
+
} = _ref51;
|
|
298
316
|
return theme.spacerL;
|
|
299
317
|
}};
|
|
300
318
|
/* Global style */
|
|
@@ -22,6 +22,9 @@ const colorStyle = {
|
|
|
22
22
|
bgColor3: '#2d2a5d',
|
|
23
23
|
bgColor4: '#222143',
|
|
24
24
|
backdropBg: 'rgba(0, 0, 0, 0.75)',
|
|
25
|
+
colorSelectReverse: '#222143',
|
|
26
|
+
colorGlassBg: 'rgba(6, 12, 35, 0.6)',
|
|
27
|
+
colorCardGradientBase: '#141B30',
|
|
25
28
|
cardMode: 'gradient',
|
|
26
29
|
bgMainKey: 'dark',
|
|
27
30
|
bgMarkerKey: 'dark',
|
|
@@ -20,12 +20,15 @@ const colorStyle = {
|
|
|
20
20
|
bgColor3: '#F3E9E9',
|
|
21
21
|
bgColor4: 'linear-gradient(90deg, #E62B27 0%, #D9211E 45%, #C60E27 100%)',
|
|
22
22
|
backdropBg: 'rgba(0, 0, 0, 0.75)',
|
|
23
|
+
colorSelectReverse: '#FEFEFE',
|
|
24
|
+
colorGlassBg: 'rgba(255, 255, 255, 0.06)',
|
|
23
25
|
useModernIcons: true,
|
|
24
26
|
useModernCardIcons: true,
|
|
25
27
|
useLightBrand: true,
|
|
26
28
|
cardMode: 'accent',
|
|
27
29
|
bgMainKey: 'default',
|
|
28
30
|
bgMarkerKey: 'ember',
|
|
31
|
+
hideAsideDecoration: true,
|
|
29
32
|
colorHoverSidebar: 'rgba(255, 255, 255, 0.15)',
|
|
30
33
|
colorActiveSidebar: 'rgba(255, 255, 255, 0.22)',
|
|
31
34
|
colorTextSidebar: '#FFFFFF',
|