@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.
@@ -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-background2) 0%, var(--color-background2) 40%, ${gradientEnd} 100%);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.49.0-beta.14",
3
+ "version": "0.49.0-beta.16",
4
4
  "private": false,
5
5
  "author": "CasHUB Team",
6
6
  "description": "CasHUB UI components library",
package/select/Select.js CHANGED
@@ -768,7 +768,7 @@ const Combobox = _styledComponents.default.div`
768
768
  fillReverse
769
769
  } = _ref14;
770
770
  return fillReverse && `
771
- background: var(--color-background1);
771
+ background: var(--color-select-reverse);
772
772
  border-color: transparent;
773
773
  `;
774
774
  }}
@@ -123,178 +123,196 @@ const GlobalStyle = (0, _styledComponents.createGlobalStyle)`
123
123
  } = _ref19;
124
124
  return theme.bgColor4;
125
125
  }};
126
- --color-backdrop: ${_ref20 => {
126
+ --color-card-gradient-base: ${_ref20 => {
127
127
  let {
128
128
  theme
129
129
  } = _ref20;
130
- return theme.backdropBg;
130
+ return theme.colorCardGradientBase || theme.bgColor2;
131
131
  }};
132
- --font-h1: ${_ref21 => {
132
+ --color-select-reverse: ${_ref21 => {
133
133
  let {
134
134
  theme
135
135
  } = _ref21;
136
- return theme.fontH1;
136
+ return theme.colorSelectReverse || theme.bgColor1;
137
137
  }};
138
- --font-h2: ${_ref22 => {
138
+ --color-glass-bg: ${_ref22 => {
139
139
  let {
140
140
  theme
141
141
  } = _ref22;
142
- return theme.fontH2;
142
+ return theme.colorGlassBg || 'rgba(255, 255, 255, 0.06)';
143
143
  }};
144
- --font-h3: ${_ref23 => {
144
+ --color-backdrop: ${_ref23 => {
145
145
  let {
146
146
  theme
147
147
  } = _ref23;
148
- return theme.fontH3;
148
+ return theme.backdropBg;
149
149
  }};
150
- --font-body1: ${_ref24 => {
150
+ --font-h1: ${_ref24 => {
151
151
  let {
152
152
  theme
153
153
  } = _ref24;
154
- return theme.fontBody1;
154
+ return theme.fontH1;
155
155
  }};
156
- --font-body2: ${_ref25 => {
156
+ --font-h2: ${_ref25 => {
157
157
  let {
158
158
  theme
159
159
  } = _ref25;
160
- return theme.fontBody2;
160
+ return theme.fontH2;
161
161
  }};
162
- --font-button: ${_ref26 => {
162
+ --font-h3: ${_ref26 => {
163
163
  let {
164
164
  theme
165
165
  } = _ref26;
166
- return theme.fontButton;
166
+ return theme.fontH3;
167
167
  }};
168
- --font-caption: ${_ref27 => {
168
+ --font-body1: ${_ref27 => {
169
169
  let {
170
170
  theme
171
171
  } = _ref27;
172
- return theme.fontCaption;
172
+ return theme.fontBody1;
173
173
  }};
174
- --font-family: ${_ref28 => {
174
+ --font-body2: ${_ref28 => {
175
175
  let {
176
176
  theme
177
177
  } = _ref28;
178
- return theme.fontFamily;
178
+ return theme.fontBody2;
179
179
  }};
180
- --font-normal: ${_ref29 => {
180
+ --font-button: ${_ref29 => {
181
181
  let {
182
182
  theme
183
183
  } = _ref29;
184
- return theme.fontWeightNormal;
184
+ return theme.fontButton;
185
185
  }};
186
- --font-bold: ${_ref30 => {
186
+ --font-caption: ${_ref30 => {
187
187
  let {
188
188
  theme
189
189
  } = _ref30;
190
- return theme.fontWeightBold;
190
+ return theme.fontCaption;
191
191
  }};
192
- --font-on-primary: ${_ref31 => {
192
+ --font-family: ${_ref31 => {
193
193
  let {
194
194
  theme
195
195
  } = _ref31;
196
- return theme.fontOnPrimary;
196
+ return theme.fontFamily;
197
197
  }};
198
- --font-on-success: ${_ref32 => {
198
+ --font-normal: ${_ref32 => {
199
199
  let {
200
200
  theme
201
201
  } = _ref32;
202
- return theme.fontOnSuccess;
202
+ return theme.fontWeightNormal;
203
203
  }};
204
- --font-on-warning: ${_ref33 => {
204
+ --font-bold: ${_ref33 => {
205
205
  let {
206
206
  theme
207
207
  } = _ref33;
208
- return theme.fontOnWarning;
208
+ return theme.fontWeightBold;
209
209
  }};
210
- --font-on-danger: ${_ref34 => {
210
+ --font-on-primary: ${_ref34 => {
211
211
  let {
212
212
  theme
213
213
  } = _ref34;
214
- return theme.fontOnDanger;
214
+ return theme.fontOnPrimary;
215
215
  }};
216
- --font-on-background: ${_ref35 => {
216
+ --font-on-success: ${_ref35 => {
217
217
  let {
218
218
  theme
219
219
  } = _ref35;
220
- return theme.fontOnBg;
220
+ return theme.fontOnSuccess;
221
221
  }};
222
- --font-on-mute: ${_ref36 => {
222
+ --font-on-warning: ${_ref36 => {
223
223
  let {
224
224
  theme
225
225
  } = _ref36;
226
- return theme.fontMutedColor;
226
+ return theme.fontOnWarning;
227
227
  }};
228
- --box-shadow: ${_ref37 => {
228
+ --font-on-danger: ${_ref37 => {
229
229
  let {
230
230
  theme
231
231
  } = _ref37;
232
- return theme.boxShadow;
232
+ return theme.fontOnDanger;
233
233
  }};
234
- --border-color: ${_ref38 => {
234
+ --font-on-background: ${_ref38 => {
235
235
  let {
236
236
  theme
237
237
  } = _ref38;
238
- return theme.borderColor;
238
+ return theme.fontOnBg;
239
239
  }};
240
- --border-color-transparent: ${_ref39 => {
240
+ --font-on-mute: ${_ref39 => {
241
241
  let {
242
242
  theme
243
243
  } = _ref39;
244
- return theme.borderColorTransparent;
244
+ return theme.fontMutedColor;
245
245
  }};
246
- --border-width: ${_ref40 => {
246
+ --box-shadow: ${_ref40 => {
247
247
  let {
248
248
  theme
249
249
  } = _ref40;
250
- return theme.borderWidth;
250
+ return theme.boxShadow;
251
251
  }};
252
- --border-radius-s: ${_ref41 => {
252
+ --border-color: ${_ref41 => {
253
253
  let {
254
254
  theme
255
255
  } = _ref41;
256
- return theme.borderRadiusS;
256
+ return theme.borderColor;
257
257
  }};
258
- --border-radius: ${_ref42 => {
258
+ --border-color-transparent: ${_ref42 => {
259
259
  let {
260
260
  theme
261
261
  } = _ref42;
262
- return theme.borderRadius;
262
+ return theme.borderColorTransparent;
263
263
  }};
264
- --border-radius-l: ${_ref43 => {
264
+ --border-width: ${_ref43 => {
265
265
  let {
266
266
  theme
267
267
  } = _ref43;
268
- return theme.borderRadiusL;
268
+ return theme.borderWidth;
269
269
  }};
270
- --border-radius-round: ${_ref44 => {
270
+ --border-radius-s: ${_ref44 => {
271
271
  let {
272
272
  theme
273
273
  } = _ref44;
274
- return theme.borderRadiusRound;
274
+ return theme.borderRadiusS;
275
275
  }};
276
- --spacing-xs: ${_ref45 => {
276
+ --border-radius: ${_ref45 => {
277
277
  let {
278
278
  theme
279
279
  } = _ref45;
280
- return theme.spacerXS;
280
+ return theme.borderRadius;
281
281
  }};
282
- --spacing-s: ${_ref46 => {
282
+ --border-radius-l: ${_ref46 => {
283
283
  let {
284
284
  theme
285
285
  } = _ref46;
286
- return theme.spacerS;
286
+ return theme.borderRadiusL;
287
287
  }};
288
- --spacing: ${_ref47 => {
288
+ --border-radius-round: ${_ref47 => {
289
289
  let {
290
290
  theme
291
291
  } = _ref47;
292
- return theme.spacer;
292
+ return theme.borderRadiusRound;
293
293
  }};
294
- --spacing-l: ${_ref48 => {
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',
@@ -22,6 +22,8 @@ const colorStyle = {
22
22
  bgColor3: '#FFFFFF',
23
23
  bgColor4: '#F7F7F7',
24
24
  backdropBg: 'rgba(0, 0, 0, 0.75)',
25
+ colorSelectReverse: '#F7F7F9',
26
+ colorGlassBg: 'rgba(255, 255, 255, 0.06)',
25
27
  cardMode: 'accent',
26
28
  bgMainKey: 'white',
27
29
  bgMarkerKey: 'white',