@hsuite/native-connect-ui 2.2.0 → 3.0.1

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.
@@ -20,38 +20,47 @@
20
20
  TOAST COMPONENT TOKENS
21
21
  Extends _toast-tokens.scss with additional options
22
22
  ============================================ */
23
-
23
+
24
24
  /* Toast appearance variants */
25
- --token-toast-success-bg: linear-gradient(135deg,
26
- rgba(var(--ion-color-success-rgb), var(--token-toast-bg-opacity-start, 0.25)),
27
- rgba(var(--ion-color-success-rgb), var(--token-toast-bg-opacity-end, 0.2)));
28
- --token-toast-danger-bg: linear-gradient(135deg,
29
- rgba(var(--ion-color-danger-rgb), var(--token-toast-bg-opacity-start, 0.25)),
30
- rgba(var(--ion-color-danger-rgb), var(--token-toast-bg-opacity-end, 0.2)));
31
- --token-toast-warning-bg: linear-gradient(135deg,
32
- rgba(var(--ion-color-warning-rgb), var(--token-toast-bg-opacity-start, 0.25)),
33
- rgba(var(--ion-color-warning-rgb), var(--token-toast-bg-opacity-end, 0.2)));
34
- --token-toast-info-bg: linear-gradient(135deg,
35
- rgba(var(--ion-color-primary-rgb), var(--token-toast-bg-opacity-start, 0.25)),
36
- rgba(var(--ion-color-primary-rgb), var(--token-toast-bg-opacity-end, 0.2)));
25
+ --token-toast-success-bg: linear-gradient(
26
+ 135deg,
27
+ rgba(var(--ion-color-success-rgb), var(--token-toast-bg-opacity-start, 0.25)),
28
+ rgba(var(--ion-color-success-rgb), var(--token-toast-bg-opacity-end, 0.2))
29
+ );
30
+ --token-toast-danger-bg: linear-gradient(
31
+ 135deg,
32
+ rgba(var(--ion-color-danger-rgb), var(--token-toast-bg-opacity-start, 0.25)),
33
+ rgba(var(--ion-color-danger-rgb), var(--token-toast-bg-opacity-end, 0.2))
34
+ );
35
+ --token-toast-warning-bg: linear-gradient(
36
+ 135deg,
37
+ rgba(var(--ion-color-warning-rgb), var(--token-toast-bg-opacity-start, 0.25)),
38
+ rgba(var(--ion-color-warning-rgb), var(--token-toast-bg-opacity-end, 0.2))
39
+ );
40
+ --token-toast-info-bg: linear-gradient(
41
+ 135deg,
42
+ rgba(var(--ion-color-primary-rgb), var(--token-toast-bg-opacity-start, 0.25)),
43
+ rgba(var(--ion-color-primary-rgb), var(--token-toast-bg-opacity-end, 0.2))
44
+ );
37
45
 
38
46
  /* ============================================
39
47
  ALERT COMPONENT TOKENS
40
48
  For ion-alert dialogs
41
49
  ============================================ */
42
-
50
+
43
51
  --token-alert-bg: var(--token-surface-2, var(--ion-background-color));
44
52
  --token-alert-border-radius: var(--token-radius-4, 16px);
45
53
  --token-alert-backdrop-blur: var(--token-backdrop-blur-md, blur(16px));
46
54
  --token-alert-shadow: var(--token-elevation-5, 0 16px 32px rgba(0, 0, 0, 0.2));
47
- --token-alert-border: 1px solid var(--token-border-primary, rgba(var(--ion-color-primary-rgb), 0.35));
48
-
55
+ --token-alert-border: 1px solid
56
+ var(--token-border-primary, rgba(var(--ion-color-primary-rgb), 0.35));
57
+
49
58
  /* Alert text */
50
59
  --token-alert-title-size: var(--token-font-size-5, 1.25rem);
51
60
  --token-alert-title-weight: var(--token-font-weight-bold, 700);
52
61
  --token-alert-message-size: var(--token-font-size-3, 1rem);
53
62
  --token-alert-message-color: var(--token-text-secondary, var(--ion-color-medium));
54
-
63
+
55
64
  /* Alert buttons */
56
65
  --token-alert-button-height: var(--token-button-height-md, 40px);
57
66
  --token-alert-button-radius: var(--token-radius-3, 12px);
@@ -60,7 +69,7 @@
60
69
  LOADING COMPONENT TOKENS
61
70
  For ion-loading spinner overlays
62
71
  ============================================ */
63
-
72
+
64
73
  --token-loading-bg: var(--token-surface-2, var(--surface-flat-active));
65
74
  --token-loading-border-radius: var(--token-radius-4, 16px);
66
75
  --token-loading-backdrop-opacity: 0.7;
@@ -76,39 +85,46 @@
76
85
  POPOVER COMPONENT TOKENS
77
86
  For ion-popover dropdown menus
78
87
  ============================================ */
79
-
88
+
80
89
  --token-popover-bg: var(--token-surface-2, var(--ion-background-color));
81
90
  --token-popover-border-radius: var(--token-radius-3, 12px);
82
91
  --token-popover-backdrop-blur: var(--token-backdrop-blur-sm, blur(8px));
83
92
  --token-popover-shadow: var(--token-elevation-4, 0 8px 16px rgba(0, 0, 0, 0.15));
84
- --token-popover-border: 1px solid var(--token-border-subtle, rgba(var(--ion-text-color-rgb), 0.08));
93
+ --token-popover-border: 1px solid
94
+ var(--token-border-subtle, rgba(var(--ion-text-color-rgb), 0.08));
85
95
  --token-popover-padding: var(--token-space-2, 0.5rem);
86
96
  --token-popover-min-width: 200px;
87
97
  --token-popover-max-width: 300px;
88
98
  --token-popover-z-index: var(--token-z-popover, 1400);
89
-
99
+
90
100
  /* Popover item */
91
101
  --token-popover-item-padding: var(--token-space-3, 0.75rem) var(--token-space-4, 1rem);
92
- --token-popover-item-hover-bg: var(--token-interactive-hover, rgba(var(--ion-text-color-rgb), 0.05));
93
- --token-popover-item-active-bg: var(--token-interactive-active, rgba(var(--ion-text-color-rgb), 0.15));
102
+ --token-popover-item-hover-bg: var(
103
+ --token-interactive-hover,
104
+ rgba(var(--ion-text-color-rgb), 0.05)
105
+ );
106
+ --token-popover-item-active-bg: var(
107
+ --token-interactive-active,
108
+ rgba(var(--ion-text-color-rgb), 0.15)
109
+ );
94
110
 
95
111
  /* ============================================
96
112
  ACTION SHEET COMPONENT TOKENS
97
113
  For ion-action-sheet bottom sheets
98
114
  ============================================ */
99
-
115
+
100
116
  --token-actionsheet-bg: var(--token-surface-2, var(--ion-background-color));
101
117
  --token-actionsheet-border-radius: var(--token-radius-5, 20px) var(--token-radius-5, 20px) 0 0;
102
118
  --token-actionsheet-backdrop-opacity: 0.5;
103
119
  --token-actionsheet-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
104
120
  --token-actionsheet-max-height: 80vh;
105
-
121
+
106
122
  /* Action sheet header */
107
123
  --token-actionsheet-title-size: var(--token-font-size-4, 1.125rem);
108
124
  --token-actionsheet-title-weight: var(--token-font-weight-semibold, 600);
109
125
  --token-actionsheet-subtitle-size: var(--token-font-size-2, 0.875rem);
110
126
  --token-actionsheet-subtitle-color: var(--token-text-secondary, var(--ion-color-medium));
111
-
127
+
112
128
  /* Action sheet buttons */
113
129
  --token-actionsheet-button-height: 56px;
114
130
  --token-actionsheet-button-font-size: var(--token-font-size-4, 1.125rem);
@@ -119,30 +135,34 @@
119
135
  MODAL COMPONENT TOKENS
120
136
  For ion-modal dialogs
121
137
  ============================================ */
122
-
138
+
123
139
  /* Modal background - 100% theme-responsive solid color */
124
140
  --token-modal-bg: var(--component-modal-background, var(--ion-background-color));
125
141
  --token-modal-border-radius: var(--component-modal-border-radius, var(--token-radius-6, 24px));
126
142
  --token-modal-backdrop-color: var(--component-modal-overlay-color, rgba(0, 0, 0, 0.85));
127
143
  --token-modal-backdrop-blur: var(--component-modal-backdrop-blur, blur(20px));
128
144
  --token-modal-backdrop-opacity: var(--component-modal-backdrop-opacity, 0.82);
129
- --token-modal-shadow: var(--component-modal-shadow,
130
- 0 25px 55px rgba(0, 0, 0, 0.55),
131
- 0 0 60px rgba(var(--ion-color-primary-rgb), 0.18));
145
+ /* A plain drop shadow. The primary-tinted halo that used to sit under it
146
+ read as a glow around every sheet; the border below already says which
147
+ surface is on top. */
148
+ --token-modal-shadow: var(--component-modal-shadow, 0 25px 55px rgba(0, 0, 0, 0.55));
132
149
  --token-modal-border: 1px solid rgba(var(--ion-color-primary-rgb), 0.35);
133
150
  --token-modal-z-index: var(--token-z-modal, 1300);
134
-
151
+
135
152
  /* Modal border tokens - theme-aware, works on both light and dark backgrounds */
136
- --token-modal-border-color: var(--component-modal-border-color, var(--border-flat, var(--token-border-subtle)));
153
+ --token-modal-border-color: var(
154
+ --component-modal-border-color,
155
+ var(--border-flat, var(--token-border-subtle))
156
+ );
137
157
  --token-modal-divider: var(--border-flat, var(--token-border-subtle));
138
-
158
+
139
159
  /* Modal sizing */
140
160
  --token-modal-width-sm: var(--token-modal-width-sm, 480px);
141
161
  --token-modal-width-md: var(--token-modal-width-md, 640px);
142
162
  --token-modal-width-lg: var(--token-modal-width-lg, 760px);
143
163
  --token-modal-width-xl: var(--token-modal-width-xl, 820px);
144
164
  --token-modal-max-height: 85vh;
145
-
165
+
146
166
  /* Modal header - uses elevated surface for theme consistency */
147
167
  --token-modal-header-bg: var(--component-modal-header-bg, var(--ion-color-step-50));
148
168
  --token-modal-header-text: var(--component-modal-header-text, var(--ion-text-color));
@@ -150,30 +170,33 @@
150
170
  --token-modal-header-border: 1px solid var(--token-border-subtle);
151
171
  --token-modal-title-size: clamp(var(--token-font-size-4), 2.5vw, var(--token-font-size-5));
152
172
  --token-modal-title-weight: var(--token-font-weight-bold, 700);
153
-
173
+
154
174
  /* Modal content area background */
155
175
  --token-modal-content-bg: var(--ion-background-color);
156
-
176
+
157
177
  /* Modal body */
158
178
  --token-modal-body-padding: var(--token-space-5, 1.5rem) var(--token-space-6, 2rem);
159
179
  --token-modal-body-min-height: 0; /* Flexbox scroll fix */
160
-
180
+
161
181
  /* Modal footer - includes safe area support */
162
182
  --token-modal-footer-padding: var(--token-space-3, 0.75rem) var(--token-space-5, 1.5rem);
163
- --token-modal-footer-padding-bottom: max(var(--token-space-3, 0.75rem), env(safe-area-inset-bottom));
183
+ --token-modal-footer-padding-bottom: max(
184
+ var(--token-space-3, 0.75rem),
185
+ env(safe-area-inset-bottom)
186
+ );
164
187
  --token-modal-footer-border: 1px solid var(--token-border-subtle);
165
188
  --token-modal-footer-gap: var(--token-space-3, 0.75rem);
166
-
189
+
167
190
  /* Safe area tokens for modal content */
168
191
  --token-modal-safe-area-bottom: env(safe-area-inset-bottom, 0px);
169
192
  --token-modal-safe-area-top: env(safe-area-inset-top, 0px);
170
-
193
+
171
194
  /* Sheet modal (bottom sheet) specific tokens */
172
195
  --token-modal-sheet-radius: var(--token-radius-4, 16px) var(--token-radius-4, 16px) 0 0;
173
196
  --token-modal-sheet-handle-width: 36px;
174
197
  --token-modal-sheet-handle-height: 4px;
175
198
  --token-modal-sheet-handle-bg: var(--ion-color-step-200, rgba(var(--ion-text-color-rgb), 0.2));
176
-
199
+
177
200
  /* Modal button tokens - standardized for consistent styling across all modals */
178
201
  --token-modal-button-height: var(--token-button-height-lg, 44px);
179
202
  --token-modal-button-radius: var(--token-radius-3, 12px);
@@ -188,38 +211,44 @@
188
211
  BUTTON COMPONENT TOKENS
189
212
  For ion-button and hs-button
190
213
  ============================================ */
191
-
214
+
192
215
  --token-button-bg-primary: var(--ion-color-primary);
193
216
  --token-button-bg-secondary: var(--ion-color-secondary);
194
217
  --token-button-border-radius: var(--component-button-border-radius, var(--token-radius-3, 12px));
195
- --token-button-font-weight: var(--component-button-font-weight, var(--token-font-weight-semibold, 600));
218
+ --token-button-font-weight: var(
219
+ --component-button-font-weight,
220
+ var(--token-font-weight-semibold, 600)
221
+ );
196
222
  --token-button-text-transform: var(--component-button-text-transform, none);
197
223
  --token-button-transition: all var(--token-transition-normal, 200ms) var(--token-ease-out);
198
-
224
+
199
225
  /* Button sizes */
200
226
  --token-button-sm-height: var(--token-button-height-sm, 32px);
201
227
  --token-button-sm-padding: var(--token-space-2, 0.5rem) var(--token-space-3, 0.75rem);
202
228
  --token-button-sm-font-size: var(--token-font-size-2, 0.875rem);
203
-
229
+
204
230
  --token-button-md-height: var(--token-button-height-md, 40px);
205
231
  --token-button-md-padding: var(--token-space-3, 0.75rem) var(--token-space-4, 1rem);
206
232
  --token-button-md-font-size: var(--token-font-size-3, 1rem);
207
-
233
+
208
234
  --token-button-lg-height: var(--token-button-height-lg, 44px);
209
235
  --token-button-lg-padding: var(--token-space-3, 0.75rem) var(--token-space-5, 1.5rem);
210
236
  --token-button-lg-font-size: var(--token-font-size-4, 1.125rem);
211
-
237
+
212
238
  /* Button states */
213
239
  --token-button-hover-opacity: var(--component-button-hover-opacity, 0.9);
214
240
  --token-button-hover-scale: var(--button-hover-scale, 1.02);
215
- --token-button-active-scale: var(--component-button-active-scale, var(--button-press-scale, 0.98));
241
+ --token-button-active-scale: var(
242
+ --component-button-active-scale,
243
+ var(--button-press-scale, 0.98)
244
+ );
216
245
  --token-button-disabled-opacity: 0.5;
217
246
 
218
247
  /* ============================================
219
248
  INPUT COMPONENT TOKENS
220
249
  For ion-input, ion-textarea, and hs-input
221
250
  ============================================ */
222
-
251
+
223
252
  --token-input-bg: var(--token-surface-3, rgba(var(--ion-text-color-rgb), 0.08));
224
253
  --token-input-border-color: var(--token-border-color);
225
254
  --token-input-border-radius: var(--component-input-border-radius, var(--token-radius-3, 12px));
@@ -227,10 +256,13 @@
227
256
  --token-input-padding-x: var(--component-input-padding-x, var(--token-space-4, 1rem));
228
257
  --token-input-padding-y: var(--component-input-padding-y, var(--token-space-3, 0.75rem));
229
258
  --token-input-font-size: var(--component-input-font-size, var(--token-font-size-3, 1rem));
230
- --token-input-font-weight: var(--component-input-font-weight, var(--token-font-weight-normal, 400));
259
+ --token-input-font-weight: var(
260
+ --component-input-font-weight,
261
+ var(--token-font-weight-normal, 400)
262
+ );
231
263
  --token-input-text-color: var(--token-text-primary, var(--ion-text-color));
232
264
  --token-input-placeholder-color: var(--token-text-tertiary);
233
-
265
+
234
266
  /* Input states */
235
267
  --token-input-hover-bg: var(--token-surface-hover);
236
268
  --token-input-hover-border: var(--token-border-moderate);
@@ -243,7 +275,7 @@
243
275
  CARD COMPONENT TOKENS
244
276
  For ion-card and hs-card
245
277
  ============================================ */
246
-
278
+
247
279
  --token-card-bg: var(--token-surface-2, var(--ion-card-background));
248
280
  --token-card-border-radius: var(--component-card-border-radius, var(--token-radius-4, 16px));
249
281
  --token-card-border: 1px solid var(--token-card-border-color, var(--token-border-subtle));
@@ -251,14 +283,14 @@
251
283
  --token-card-shadow: var(--component-card-shadow-default, var(--token-elevation-2));
252
284
  --token-card-shadow-hover: var(--component-card-shadow-hover, var(--token-elevation-3));
253
285
  --token-card-backdrop-blur: var(--component-card-backdrop-blur, none);
254
-
286
+
255
287
  /* Card header */
256
288
  --token-card-header-padding: var(--token-space-4, 1rem);
257
289
  --token-card-title-size: var(--token-font-size-5, 1.25rem);
258
290
  --token-card-title-weight: var(--token-font-weight-semibold, 600);
259
291
  --token-card-subtitle-size: var(--token-font-size-2, 0.875rem);
260
292
  --token-card-subtitle-color: var(--token-text-secondary);
261
-
293
+
262
294
  /* Card content */
263
295
  --token-card-content-padding: var(--token-space-4, 1rem);
264
296
 
@@ -266,12 +298,18 @@
266
298
  BADGE COMPONENT TOKENS
267
299
  For hs-badge
268
300
  ============================================ */
269
-
270
- --token-badge-border-radius: var(--component-badge-border-radius, var(--token-radius-full, 9999px));
301
+
302
+ --token-badge-border-radius: var(
303
+ --component-badge-border-radius,
304
+ var(--token-radius-full, 9999px)
305
+ );
271
306
  --token-badge-padding-x: var(--component-badge-padding-x, var(--token-space-2, 0.5rem));
272
307
  --token-badge-padding-y: var(--component-badge-padding-y, var(--token-space-1, 0.25rem));
273
308
  --token-badge-font-size: var(--component-badge-font-size, var(--token-font-size-1, 0.75rem));
274
- --token-badge-font-weight: var(--component-badge-font-weight, var(--token-font-weight-semibold, 600));
309
+ --token-badge-font-weight: var(
310
+ --component-badge-font-weight,
311
+ var(--token-font-weight-semibold, 600)
312
+ );
275
313
  --token-badge-text-transform: var(--component-badge-text-transform, uppercase);
276
314
  --token-badge-letter-spacing: 0.05em;
277
315
 
@@ -279,9 +317,12 @@
279
317
  CHIP COMPONENT TOKENS
280
318
  For hs-chip
281
319
  ============================================ */
282
-
320
+
283
321
  --token-chip-border-radius: var(--component-chip-border-radius, var(--token-radius-full, 9999px));
284
- --token-chip-padding: var(--component-chip-padding, var(--token-space-2, 0.5rem) var(--token-space-3, 0.75rem));
322
+ --token-chip-padding: var(
323
+ --component-chip-padding,
324
+ var(--token-space-2, 0.5rem) var(--token-space-3, 0.75rem)
325
+ );
285
326
  --token-chip-font-size: var(--component-chip-font-size, var(--token-font-size-2, 0.875rem));
286
327
  --token-chip-font-weight: var(--component-chip-font-weight, var(--token-font-weight-medium, 500));
287
328
  --token-chip-bg: var(--token-surface-3);
@@ -291,12 +332,15 @@
291
332
  AVATAR COMPONENT TOKENS
292
333
  For hs-avatar
293
334
  ============================================ */
294
-
295
- --token-avatar-border-radius: var(--component-avatar-border-radius, var(--token-radius-full, 9999px));
335
+
336
+ --token-avatar-border-radius: var(
337
+ --component-avatar-border-radius,
338
+ var(--token-radius-full, 9999px)
339
+ );
296
340
  --token-avatar-border-width: var(--component-avatar-border-width, 2px);
297
341
  --token-avatar-border-color: var(--token-border-primary);
298
342
  --token-avatar-shadow: var(--component-avatar-shadow, var(--token-elevation-2));
299
-
343
+
300
344
  /* Avatar sizes */
301
345
  --token-avatar-xs: 24px;
302
346
  --token-avatar-sm: 32px;
@@ -308,7 +352,7 @@
308
352
  DIVIDER COMPONENT TOKENS
309
353
  For hs-divider
310
354
  ============================================ */
311
-
355
+
312
356
  --token-divider-width: var(--component-divider-width, 1px);
313
357
  --token-divider-color: var(--component-divider-color, var(--token-border-subtle));
314
358
  --token-divider-style: var(--component-divider-style, solid);
@@ -318,10 +362,13 @@
318
362
  TOGGLE COMPONENT TOKENS
319
363
  For hs-toggle
320
364
  ============================================ */
321
-
365
+
322
366
  --token-toggle-width: var(--component-toggle-width, 52px);
323
367
  --token-toggle-height: var(--component-toggle-height, 32px);
324
- --token-toggle-border-radius: var(--component-toggle-border-radius, var(--token-radius-full, 9999px));
368
+ --token-toggle-border-radius: var(
369
+ --component-toggle-border-radius,
370
+ var(--token-radius-full, 9999px)
371
+ );
325
372
  --token-toggle-track-color: var(--component-toggle-track-color, var(--token-surface-3));
326
373
  --token-toggle-track-active: var(--ion-color-primary);
327
374
  --token-toggle-knob-size: 26px;
@@ -331,7 +378,7 @@
331
378
  SPINNER COMPONENT TOKENS
332
379
  For hs-spinner
333
380
  ============================================ */
334
-
381
+
335
382
  --token-spinner-size-sm: 20px;
336
383
  --token-spinner-size-md: var(--component-spinner-size, 32px);
337
384
  --token-spinner-size-lg: 48px;
@@ -342,7 +389,7 @@
342
389
  ICON COMPONENT TOKENS
343
390
  For hs-icon
344
391
  ============================================ */
345
-
392
+
346
393
  --token-icon-size-xs: 16px;
347
394
  --token-icon-size-sm: 20px;
348
395
  --token-icon-size-md: var(--component-icon-default-size, 24px);
@@ -354,8 +401,11 @@
354
401
  SKELETON COMPONENT TOKENS
355
402
  For hs-loading-skeleton
356
403
  ============================================ */
357
-
358
- --token-skeleton-border-radius: var(--component-skeleton-border-radius, var(--token-radius-2, 8px));
404
+
405
+ --token-skeleton-border-radius: var(
406
+ --component-skeleton-border-radius,
407
+ var(--token-radius-2, 8px)
408
+ );
359
409
  --token-skeleton-bg: var(--ion-color-step-100);
360
410
  --token-skeleton-shimmer-color: rgba(var(--ion-color-primary-rgb), 0.1);
361
411
  --token-skeleton-shimmer-speed: var(--component-skeleton-shimmer-speed, 1.5s);
@@ -364,12 +414,18 @@
364
414
  HEADER COMPONENT TOKENS
365
415
  For hs-app-header
366
416
  ============================================ */
367
-
417
+
368
418
  --token-header-height: var(--component-header-height, 64px);
369
419
  --token-header-padding: var(--component-header-padding, 0 var(--token-space-4, 1rem));
370
420
  --token-header-bg: var(--token-surface-2);
371
- --token-header-backdrop-blur: var(--component-header-backdrop-blur, var(--token-backdrop-blur-md, blur(16px)));
372
- --token-header-border-bottom: var(--component-header-border-bottom, 1px solid var(--token-border-subtle));
421
+ --token-header-backdrop-blur: var(
422
+ --component-header-backdrop-blur,
423
+ var(--token-backdrop-blur-md, blur(16px))
424
+ );
425
+ --token-header-border-bottom: var(
426
+ --component-header-border-bottom,
427
+ 1px solid var(--token-border-subtle)
428
+ );
373
429
  --token-header-shadow: var(--token-elevation-2);
374
430
  --token-header-z-index: var(--token-z-sticky, 1100);
375
431
 
@@ -377,7 +433,7 @@
377
433
  TABS COMPONENT TOKENS
378
434
  For hs-bottom-tabs
379
435
  ============================================ */
380
-
436
+
381
437
  --token-tabs-bg: var(--token-surface-2);
382
438
  --token-tabs-border-radius: var(--component-tabs-border-radius, var(--token-radius-4, 16px));
383
439
  --token-tabs-height: 56px;
@@ -390,13 +446,19 @@
390
446
  MENU COMPONENT TOKENS
391
447
  For hs-side-menu
392
448
  ============================================ */
393
-
449
+
394
450
  --token-menu-width: var(--component-menu-width, 280px);
395
451
  --token-menu-bg: var(--token-surface-2);
396
- --token-menu-backdrop-blur: var(--component-menu-backdrop-blur, var(--token-backdrop-blur-lg, blur(24px)));
452
+ --token-menu-backdrop-blur: var(
453
+ --component-menu-backdrop-blur,
454
+ var(--token-backdrop-blur-lg, blur(24px))
455
+ );
397
456
  --token-menu-shadow: var(--component-menu-shadow, var(--token-elevation-5));
398
457
  --token-menu-border: 1px solid var(--token-border-subtle);
399
- --token-menu-item-padding: var(--component-menu-item-padding, var(--token-space-3, 0.75rem) var(--token-space-4, 1rem));
458
+ --token-menu-item-padding: var(
459
+ --component-menu-item-padding,
460
+ var(--token-space-3, 0.75rem) var(--token-space-4, 1rem)
461
+ );
400
462
  --token-menu-item-hover-bg: var(--token-interactive-hover);
401
463
  --token-menu-item-active-bg: var(--token-interactive-selected);
402
464
  }
@@ -412,20 +474,20 @@ body.platform-extension {
412
474
  --token-modal-width-lg: calc(100vw - 16px);
413
475
  --token-modal-width-xl: calc(100vw - 16px);
414
476
  --token-modal-z-index: 2000;
415
-
477
+
416
478
  /* Popover adjustments */
417
479
  --token-popover-max-width: calc(100vw - 32px);
418
480
  --token-popover-z-index: 2300;
419
-
481
+
420
482
  /* Loading adjustments */
421
483
  --token-loading-z-index: 2200;
422
-
484
+
423
485
  /* Header adjustments */
424
486
  --token-header-height: 56px;
425
-
487
+
426
488
  /* Button adjustments */
427
489
  --token-button-md-height: 40px;
428
-
490
+
429
491
  /* Card adjustments */
430
492
  --token-card-padding: var(--token-space-3, 0.75rem);
431
493
  }
@@ -439,12 +501,11 @@ body.platform-extension {
439
501
  --token-modal-header-padding: var(--token-space-3, 0.75rem) var(--token-space-4, 1rem);
440
502
  --token-modal-body-padding: var(--token-space-4, 1rem);
441
503
  --token-modal-footer-padding: var(--token-space-2, 0.5rem) var(--token-space-4, 1rem);
442
-
504
+
443
505
  /* Card adjustments */
444
506
  --token-card-padding: var(--token-space-3, 0.75rem);
445
-
507
+
446
508
  /* Header adjustments */
447
509
  --token-header-height: 56px;
448
510
  }
449
511
  }
450
-
@@ -207,6 +207,10 @@
207
207
  --token-overlay-medium: rgba(0, 0, 0, 0.5);
208
208
  --token-overlay-heavy: rgba(0, 0, 0, 0.7);
209
209
  --token-overlay-scrim: var(--overlay-scrim, rgba(0, 0, 0, 0.85));
210
+ /* Text and glyphs on the overlays above (media badges, artwork scrims). The
211
+ scrims are black in every theme, so this stays white in every theme: theme
212
+ text or accent colours go dark on them under a light palette. */
213
+ --token-overlay-text: #ffffff;
210
214
 
211
215
  /* ============================================
212
216
  BACKDROP FILTER TOKENS
@@ -247,6 +251,10 @@
247
251
  --token-color-info: var(--ion-color-medium);
248
252
  --token-color-info-rgb: var(--ion-color-medium-rgb);
249
253
 
254
+ /* Ledger brand tiles: choice-card icon backdrops (purple Hedera, near-black XRPL). */
255
+ --token-ledger-hedera-tile: linear-gradient(135deg, #8259ef, #6236ff);
256
+ --token-ledger-xrpl-tile: linear-gradient(135deg, #23292f, #000);
257
+
250
258
  /* ============================================
251
259
  COMPONENT-SPECIFIC SEMANTIC TOKENS
252
260
  Higher-level tokens for specific use cases
@@ -398,6 +406,72 @@
398
406
  --token-input-border-color: var(--border-flat, rgba(15, 23, 42, 0.12));
399
407
  }
400
408
 
409
+ /**
410
+ * Solid Surface Overrides
411
+ * @compodoc
412
+ * Applied when the active theme declares `components.surface.style: 'flat'`.
413
+ * ThemeService stamps `data-surface-style` on <html> for every theme, so this
414
+ * block is the single place the whole app turns solid: the ~88 stylesheets
415
+ * that consume `--token-surface-gradient*` are re-pointed at opaque colours
416
+ * without any of them being edited.
417
+ *
418
+ * Selector notes. A bare attribute selector rather than `:where()`, because
419
+ * this must outrank the `.ion-palette-light` block above (0,1,0) for a light
420
+ * theme that is also flat. `html[…]` is 0,1,1, which wins on both branches.
421
+ *
422
+ * Nothing here can override a variable ThemeService writes: those land as
423
+ * inline style on <html> and beat any stylesheet. Only `--token-*` vars are
424
+ * ours to redefine. Everything else a flat theme needs (glass blur, tinted
425
+ * shadows, animated background) is declared by the theme itself.
426
+ */
427
+ html[data-surface-style='flat'] {
428
+ /* The panel surfaces. This is the line that does most of the work. */
429
+ --token-surface-gradient: var(--surface-card);
430
+ --token-surface-gradient-hover: var(--surface-elevated);
431
+ --token-surface-gradient-active: var(--surface-elevated);
432
+ --token-surface-gradient-horizontal: var(--surface-card);
433
+ --token-surface-gradient-vertical: var(--surface-card);
434
+ --token-surface-gradient-subtle: var(--surface-sunken);
435
+ --token-surface-gradient-intense: var(--surface-elevated);
436
+
437
+ /* One border colour for every level. Depth comes from the fills, so a
438
+ brand-tinted border would just reintroduce the wash at the edges. */
439
+ --token-border-gradient: 1px solid var(--border-solid);
440
+ --token-border-gradient-hover: 1px solid var(--border-solid);
441
+ --token-border-gradient-strong: 1px solid var(--border-solid);
442
+
443
+ /* The `flat` family is translucent despite the name, so it is re-pointed
444
+ at the ladder too. See the note on `surfaceFlat` in theme.types.ts. */
445
+ --token-surface-flat: var(--surface-card);
446
+ --token-surface-flat-hover: var(--surface-elevated);
447
+ --token-surface-flat-active: var(--surface-elevated);
448
+
449
+ /* Glass stops being glass. Left translucent, these would keep showing the
450
+ page through anything layered above it. */
451
+ --token-surface-glass: var(--surface-card);
452
+ --token-surface-glass-light: var(--surface-card);
453
+ --token-surface-glass-heavy: var(--surface-elevated);
454
+ /* Neutral glass is the "panel" fill (settings cards, token and account
455
+ cards). It sits on the same rung as the nav rail so a flat theme reads
456
+ as one material; hover steps up to the next rung. */
457
+ --token-surface-glass-neutral: var(--surface-card);
458
+ --token-surface-glass-neutral-hover: var(--surface-elevated);
459
+ --token-border-glass-neutral: var(--border-solid);
460
+ --token-border-glass-neutral-hover: var(--border-solid);
461
+
462
+ /* Cards and inputs. Inputs take the sunken level so a field reads as cut
463
+ into the card rather than sitting on it. */
464
+ --token-card-background: var(--surface-card);
465
+ --token-card-background-solid: var(--surface-card);
466
+ --token-card-border-color: var(--border-solid);
467
+ --token-input-background: var(--surface-sunken);
468
+ --token-input-border-color: var(--border-solid);
469
+
470
+ /* Modal elevation without the primary-coloured glow ring. */
471
+ --token-elevation-modal:
472
+ 0 24px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(var(--ion-text-color-rgb), 0.06);
473
+ }
474
+
401
475
  /**
402
476
  * PWA Z-Index Defaults
403
477
  * @compodoc
package/package.json CHANGED
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "name": "@hsuite/native-connect-ui",
3
- "version": "2.2.0",
3
+ "version": "3.0.1",
4
4
  "license": "PolyForm-Noncommercial-1.0.0",
5
5
  "type": "module",
6
6
  "main": "./dist/fesm2022/hsuite-native-connect-ui.mjs",
7
- "module": "./dist/fesm2022/hsuite-native-connect-ui.mjs",
8
- "fesm2022": "./dist/fesm2022/hsuite-native-connect-ui.mjs",
9
7
  "types": "./dist/index.d.ts",
10
- "typings": "./dist/index.d.ts",
11
8
  "exports": {
12
9
  "./package.json": {
13
10
  "default": "./package.json"
@@ -33,22 +30,13 @@
33
30
  "build-storybook": "ng run ui:build-storybook"
34
31
  },
35
32
  "dependencies": {
36
- "@hsuite/native-connect-types": "^2.2.0",
33
+ "@hsuite/native-connect-types": "^3.0.1",
37
34
  "@ngneat/transloco": "^6.0.0",
38
35
  "animejs": "^3.2.2",
39
36
  "qr-scanner": "^1.4.2",
40
37
  "qrcode": "^1.5.4",
41
38
  "tslib": "^2.6.2"
42
39
  },
43
- "peerDependencies": {
44
- "@angular/common": "^20.3.16",
45
- "@angular/core": "^20.3.16",
46
- "@angular/forms": "^20.3.16",
47
- "@angular/router": "^20.3.16",
48
- "@ionic/angular": "^8.0.0",
49
- "ionicons": "^7.0.0",
50
- "rxjs": "~7.8.0"
51
- },
52
40
  "devDependencies": {
53
41
  "@analogjs/vite-plugin-angular": "^1.22.0",
54
42
  "@angular-devkit/build-angular": "^20.3.14",
@@ -88,6 +76,18 @@
88
76
  "directory": "packages/ui"
89
77
  },
90
78
  "homepage": "https://github.com/HSuiteNetwork/hsuite-native-connect/tree/master/packages/ui",
79
+ "peerDependencies": {
80
+ "@angular/common": "^20.3.16",
81
+ "@angular/core": "^20.3.16",
82
+ "@angular/forms": "^20.3.16",
83
+ "@angular/router": "^20.3.16",
84
+ "@ionic/angular": "^8.0.0",
85
+ "ionicons": "^7.0.0",
86
+ "rxjs": "~7.8.0"
87
+ },
88
+ "module": "./dist/fesm2022/hsuite-native-connect-ui.mjs",
89
+ "fesm2022": "./dist/fesm2022/hsuite-native-connect-ui.mjs",
90
+ "typings": "./dist/index.d.ts",
91
91
  "files": [
92
92
  "dist"
93
93
  ]