@gravionlabs/helix-app 0.0.1 → 22.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +147 -1
- package/fesm2022/gravionlabs-helix-app-frame.mjs +1633 -0
- package/fesm2022/gravionlabs-helix-app-frame.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-app-tauri.mjs +493 -0
- package/fesm2022/gravionlabs-helix-app-tauri.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-app.mjs +1023 -0
- package/fesm2022/gravionlabs-helix-app.mjs.map +1 -0
- package/frame/package.json +5 -0
- package/frame.css +540 -0
- package/package.json +61 -5
- package/styles.css +12 -0
- package/tauri/package.json +5 -0
- package/types/gravionlabs-helix-app-frame.d.ts +636 -0
- package/types/gravionlabs-helix-app-tauri.d.ts +208 -0
- package/types/gravionlabs-helix-app.d.ts +360 -0
package/frame.css
ADDED
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @gravionlabs/helix-app: the frame of the desktop shell. Reads only `--h-*` tokens (from
|
|
3
|
+
* `@gravionlabs/helix-ui/tokens.css`), so light and dark follow HxTheme with no rule of their own.
|
|
4
|
+
*/
|
|
5
|
+
/* The layer order Tailwind uses, stated here so it holds whichever stylesheet loads first. */
|
|
6
|
+
@layer theme, base, components, utilities;
|
|
7
|
+
|
|
8
|
+
@layer components {
|
|
9
|
+
[data-platform="desktop"] .hx-desktop-frame {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
min-height: 100vh;
|
|
13
|
+
background: var(--h-surface-frame);
|
|
14
|
+
color: var(--h-text-color);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.hx-activity-bar {
|
|
18
|
+
/* Sizes of the default size; `small` overrides them. */
|
|
19
|
+
--hx-activity-bar-width: 48px;
|
|
20
|
+
--hx-activity-bar-item-width: 36px;
|
|
21
|
+
--hx-activity-bar-item-height: 40px;
|
|
22
|
+
--hx-activity-bar-icon-size: 20px;
|
|
23
|
+
--hx-activity-bar-marker-offset: -5px;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
width: var(--hx-activity-bar-width);
|
|
29
|
+
flex: none;
|
|
30
|
+
padding: 4px 0;
|
|
31
|
+
background: var(--h-surface-frame);
|
|
32
|
+
border-inline-end: 1px solid var(--h-content-border-color);
|
|
33
|
+
}
|
|
34
|
+
.hx-activity-bar-small {
|
|
35
|
+
--hx-activity-bar-width: 36px;
|
|
36
|
+
--hx-activity-bar-item-width: 28px;
|
|
37
|
+
--hx-activity-bar-item-height: 32px;
|
|
38
|
+
--hx-activity-bar-icon-size: 16px;
|
|
39
|
+
--hx-activity-bar-marker-offset: -4px;
|
|
40
|
+
}
|
|
41
|
+
/* The right bar: the border faces the content. */
|
|
42
|
+
.hx-activity-bar-end {
|
|
43
|
+
border-inline-end: 0;
|
|
44
|
+
border-inline-start: 1px solid var(--h-content-border-color);
|
|
45
|
+
}
|
|
46
|
+
.hx-activity-bar-group {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: 2px;
|
|
51
|
+
}
|
|
52
|
+
.hx-activity-bar-item {
|
|
53
|
+
position: relative;
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
width: var(--hx-activity-bar-item-width);
|
|
58
|
+
height: var(--hx-activity-bar-item-height);
|
|
59
|
+
padding: 0;
|
|
60
|
+
border: 0;
|
|
61
|
+
border-radius: 6px;
|
|
62
|
+
background: transparent;
|
|
63
|
+
color: var(--h-text-muted-color);
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
}
|
|
66
|
+
.hx-activity-bar-item:hover {
|
|
67
|
+
color: var(--h-text-color);
|
|
68
|
+
background: var(--h-content-hover-background);
|
|
69
|
+
}
|
|
70
|
+
.hx-activity-bar-item:focus-visible {
|
|
71
|
+
outline: 2px solid var(--h-primary-color);
|
|
72
|
+
outline-offset: -2px;
|
|
73
|
+
}
|
|
74
|
+
.hx-activity-bar-active,
|
|
75
|
+
.hx-activity-bar-active:hover {
|
|
76
|
+
color: var(--h-text-color);
|
|
77
|
+
background: color-mix(in srgb, var(--h-primary-color) 12%, transparent);
|
|
78
|
+
}
|
|
79
|
+
/* The marker of the active item: a pill beside the tinted area, as high as the area, with a 2px gap.
|
|
80
|
+
It is an element of its own, so it does not follow the corners of the item. */
|
|
81
|
+
.hx-activity-bar-active::before {
|
|
82
|
+
content: "";
|
|
83
|
+
position: absolute;
|
|
84
|
+
inset-block: 0;
|
|
85
|
+
inset-inline-start: var(--hx-activity-bar-marker-offset);
|
|
86
|
+
width: 3px;
|
|
87
|
+
border-radius: 2px;
|
|
88
|
+
background: var(--h-primary-color);
|
|
89
|
+
}
|
|
90
|
+
.hx-activity-bar-end .hx-activity-bar-active::before {
|
|
91
|
+
inset-inline: auto var(--hx-activity-bar-marker-offset);
|
|
92
|
+
}
|
|
93
|
+
/* One icon size for templates and named icons alike. */
|
|
94
|
+
.hx-activity-bar-icon {
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
width: var(--hx-activity-bar-icon-size);
|
|
99
|
+
height: var(--hx-activity-bar-icon-size);
|
|
100
|
+
font-size: var(--hx-activity-bar-icon-size);
|
|
101
|
+
line-height: 1;
|
|
102
|
+
}
|
|
103
|
+
.hx-activity-bar-icon > svg,
|
|
104
|
+
.hx-activity-bar-icon > * > svg {
|
|
105
|
+
width: var(--hx-activity-bar-icon-size);
|
|
106
|
+
height: var(--hx-activity-bar-icon-size);
|
|
107
|
+
}
|
|
108
|
+
.hx-activity-bar-badge {
|
|
109
|
+
position: absolute;
|
|
110
|
+
top: 3px;
|
|
111
|
+
inset-inline-end: 3px;
|
|
112
|
+
min-width: 16px;
|
|
113
|
+
height: 16px;
|
|
114
|
+
padding: 0 4px;
|
|
115
|
+
box-sizing: border-box;
|
|
116
|
+
border-radius: 8px;
|
|
117
|
+
background: var(--h-primary-color);
|
|
118
|
+
color: var(--h-primary-contrast-color);
|
|
119
|
+
font-size: 10px;
|
|
120
|
+
line-height: 16px;
|
|
121
|
+
text-align: center;
|
|
122
|
+
}
|
|
123
|
+
.hx-activity-bar-badge-dot {
|
|
124
|
+
min-width: 8px;
|
|
125
|
+
width: 8px;
|
|
126
|
+
height: 8px;
|
|
127
|
+
padding: 0;
|
|
128
|
+
top: 6px;
|
|
129
|
+
inset-inline-end: 6px;
|
|
130
|
+
}
|
|
131
|
+
.hx-status-bar {
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
justify-content: space-between;
|
|
135
|
+
box-sizing: border-box;
|
|
136
|
+
height: 22px;
|
|
137
|
+
padding: 0 4px;
|
|
138
|
+
background: var(--h-surface-frame);
|
|
139
|
+
border-block-start: 1px solid var(--h-content-border-color);
|
|
140
|
+
color: var(--h-text-muted-color);
|
|
141
|
+
font-size: 12px;
|
|
142
|
+
line-height: 1;
|
|
143
|
+
}
|
|
144
|
+
.hx-status-group {
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
gap: 2px;
|
|
148
|
+
min-width: 0;
|
|
149
|
+
}
|
|
150
|
+
.hx-status-item,
|
|
151
|
+
.hx-status-zoom,
|
|
152
|
+
.hx-status-version {
|
|
153
|
+
position: relative;
|
|
154
|
+
display: inline-flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
}
|
|
157
|
+
.hx-status-control {
|
|
158
|
+
display: inline-flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
height: 18px;
|
|
161
|
+
padding: 0 6px;
|
|
162
|
+
border: 0;
|
|
163
|
+
border-radius: 3px;
|
|
164
|
+
background: transparent;
|
|
165
|
+
color: inherit;
|
|
166
|
+
font: inherit;
|
|
167
|
+
}
|
|
168
|
+
button.hx-status-control {
|
|
169
|
+
cursor: pointer;
|
|
170
|
+
}
|
|
171
|
+
button.hx-status-control:hover:not(:disabled) {
|
|
172
|
+
color: var(--h-text-color);
|
|
173
|
+
background: var(--h-content-hover-background);
|
|
174
|
+
}
|
|
175
|
+
button.hx-status-control:focus-visible {
|
|
176
|
+
outline: 2px solid var(--h-primary-color);
|
|
177
|
+
outline-offset: -2px;
|
|
178
|
+
}
|
|
179
|
+
button.hx-status-control:disabled {
|
|
180
|
+
opacity: 0.5;
|
|
181
|
+
cursor: default;
|
|
182
|
+
}
|
|
183
|
+
.hx-status-warn {
|
|
184
|
+
color: var(--h-warn-color, var(--h-orange-700));
|
|
185
|
+
}
|
|
186
|
+
.hx-status-error {
|
|
187
|
+
color: var(--h-error-color, var(--h-red-700));
|
|
188
|
+
}
|
|
189
|
+
.hx-status-accent {
|
|
190
|
+
color: var(--h-primary-color);
|
|
191
|
+
}
|
|
192
|
+
.hx-status-channel {
|
|
193
|
+
padding: 1px 4px;
|
|
194
|
+
border-radius: 3px;
|
|
195
|
+
background: var(--h-primary-color);
|
|
196
|
+
color: var(--h-primary-contrast-color);
|
|
197
|
+
font-size: 10px;
|
|
198
|
+
}
|
|
199
|
+
.hx-status-popover {
|
|
200
|
+
position: absolute;
|
|
201
|
+
inset-block-end: 100%;
|
|
202
|
+
inset-inline-end: 0;
|
|
203
|
+
margin-block-end: 4px;
|
|
204
|
+
box-sizing: border-box;
|
|
205
|
+
min-width: 200px;
|
|
206
|
+
max-width: calc(100vw - 8px);
|
|
207
|
+
max-height: calc(100vh - 34px);
|
|
208
|
+
overflow: auto;
|
|
209
|
+
padding: 8px 12px;
|
|
210
|
+
border: 1px solid var(--h-content-border-color);
|
|
211
|
+
border-radius: 6px;
|
|
212
|
+
background: var(--h-content-background, var(--h-surface-frame));
|
|
213
|
+
color: var(--h-text-color);
|
|
214
|
+
box-shadow: 0 4px 16px color-mix(in srgb, black 20%, transparent);
|
|
215
|
+
z-index: 10;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/*
|
|
219
|
+
* The inset layout, as in helix-shell: a frame ground with inset panels. The activity bar, the sidebar,
|
|
220
|
+
* the content and the panel are framed on all sides with a gap to each other and to the window edge;
|
|
221
|
+
* the toolbar and the status bar lie flat on the frame. Gap and radius are the tokens of helix-shell,
|
|
222
|
+
* with fallbacks so the shell stylesheet is not needed; `--helix-panel-gap: 0` gives a flush layout.
|
|
223
|
+
*/
|
|
224
|
+
.hx-app-shell {
|
|
225
|
+
--hx-panel-gap: var(--helix-panel-gap, 4px);
|
|
226
|
+
--hx-panel-radius: var(--helix-panel-radius, 6px);
|
|
227
|
+
display: flex;
|
|
228
|
+
flex-direction: column;
|
|
229
|
+
height: 100%;
|
|
230
|
+
min-height: 0;
|
|
231
|
+
background: var(--h-surface-frame);
|
|
232
|
+
color: var(--h-text-color);
|
|
233
|
+
}
|
|
234
|
+
.hx-app-shell-body {
|
|
235
|
+
display: flex;
|
|
236
|
+
flex: 1;
|
|
237
|
+
min-height: 0;
|
|
238
|
+
padding: var(--hx-panel-gap);
|
|
239
|
+
}
|
|
240
|
+
.hx-app-shell-body > .hx-activity-bar,
|
|
241
|
+
.hx-app-shell-sidebar,
|
|
242
|
+
.hx-app-shell-content,
|
|
243
|
+
.hx-app-shell-bottom,
|
|
244
|
+
.hx-app-shell-body > [slot="panel"] {
|
|
245
|
+
box-sizing: border-box;
|
|
246
|
+
border: 1px solid var(--h-content-border-color);
|
|
247
|
+
border-radius: var(--hx-panel-radius);
|
|
248
|
+
background: var(--h-content-background, var(--h-surface-frame));
|
|
249
|
+
overflow: hidden;
|
|
250
|
+
}
|
|
251
|
+
.hx-app-shell-body > .hx-activity-bar {
|
|
252
|
+
margin-inline-end: var(--hx-panel-gap);
|
|
253
|
+
}
|
|
254
|
+
.hx-app-shell-body > .hx-activity-bar-end {
|
|
255
|
+
margin-inline: var(--hx-panel-gap) 0;
|
|
256
|
+
}
|
|
257
|
+
.hx-app-shell-sidebar {
|
|
258
|
+
flex: none;
|
|
259
|
+
overflow: auto;
|
|
260
|
+
}
|
|
261
|
+
.hx-app-shell-sidebar[hidden] {
|
|
262
|
+
display: none;
|
|
263
|
+
}
|
|
264
|
+
/* The splitter (hx-splitter of helix-ui) fills the gap between the sidebar and the content. */
|
|
265
|
+
.hx-app-shell-resizer {
|
|
266
|
+
--hx-splitter-size: var(--hx-panel-gap);
|
|
267
|
+
}
|
|
268
|
+
.hx-app-shell-main {
|
|
269
|
+
flex: 1;
|
|
270
|
+
display: flex;
|
|
271
|
+
flex-direction: column;
|
|
272
|
+
/* May shrink below its content, so only an inner scroll region scrolls sideways (HX_WINDOW_MIN_WIDTH). */
|
|
273
|
+
min-inline-size: 0;
|
|
274
|
+
min-height: 0;
|
|
275
|
+
}
|
|
276
|
+
.hx-app-shell-bottom {
|
|
277
|
+
flex: none;
|
|
278
|
+
display: flex;
|
|
279
|
+
flex-direction: column;
|
|
280
|
+
}
|
|
281
|
+
.hx-app-shell-bottom[hidden] {
|
|
282
|
+
display: none;
|
|
283
|
+
}
|
|
284
|
+
.hx-app-shell-content {
|
|
285
|
+
flex: 1;
|
|
286
|
+
min-width: 0;
|
|
287
|
+
min-height: 0;
|
|
288
|
+
display: flex;
|
|
289
|
+
flex-direction: column;
|
|
290
|
+
}
|
|
291
|
+
.hx-app-shell-body > [slot="panel"] {
|
|
292
|
+
flex: none;
|
|
293
|
+
margin-inline-start: var(--hx-panel-gap);
|
|
294
|
+
}
|
|
295
|
+
.hx-app-shell > .hx-status-bar {
|
|
296
|
+
border-block-start: 0;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.hx-app-toolbar {
|
|
300
|
+
display: flex;
|
|
301
|
+
align-items: center;
|
|
302
|
+
flex: none;
|
|
303
|
+
box-sizing: border-box;
|
|
304
|
+
height: 26px;
|
|
305
|
+
padding: 0 8px;
|
|
306
|
+
background: var(--h-surface-frame);
|
|
307
|
+
color: var(--h-text-muted-color);
|
|
308
|
+
font-size: 12px;
|
|
309
|
+
user-select: none;
|
|
310
|
+
}
|
|
311
|
+
.hx-app-toolbar-inset {
|
|
312
|
+
padding-inline-start: 78px;
|
|
313
|
+
}
|
|
314
|
+
.hx-app-toolbar-start,
|
|
315
|
+
.hx-app-toolbar-end {
|
|
316
|
+
display: flex;
|
|
317
|
+
align-items: center;
|
|
318
|
+
gap: 4px;
|
|
319
|
+
flex: none;
|
|
320
|
+
}
|
|
321
|
+
.hx-app-toolbar-centre {
|
|
322
|
+
flex: 1;
|
|
323
|
+
min-width: 0;
|
|
324
|
+
text-align: center;
|
|
325
|
+
overflow: hidden;
|
|
326
|
+
text-overflow: ellipsis;
|
|
327
|
+
white-space: nowrap;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* The mobile shell: touch targets of 44 px, no hover states, safe areas for notch, home indicator, keyboard. */
|
|
331
|
+
/* The drawer is an overlay outside the shell, and the bottom bar works on its own: they set the size too. */
|
|
332
|
+
.hx-mobile-shell,
|
|
333
|
+
.hx-mobile-shell-drawer,
|
|
334
|
+
.hx-bottom-bar {
|
|
335
|
+
--h-target-size-min: 44px;
|
|
336
|
+
}
|
|
337
|
+
.hx-mobile-shell {
|
|
338
|
+
display: flex;
|
|
339
|
+
flex-direction: column;
|
|
340
|
+
height: 100%;
|
|
341
|
+
min-height: 0;
|
|
342
|
+
box-sizing: border-box;
|
|
343
|
+
padding-inline: env(safe-area-inset-left, 0) env(safe-area-inset-right, 0);
|
|
344
|
+
background: var(--h-surface-frame);
|
|
345
|
+
color: var(--h-text-color);
|
|
346
|
+
}
|
|
347
|
+
.hx-mobile-shell-bar {
|
|
348
|
+
display: flex;
|
|
349
|
+
align-items: center;
|
|
350
|
+
gap: 4px;
|
|
351
|
+
flex: none;
|
|
352
|
+
box-sizing: border-box;
|
|
353
|
+
min-height: calc(var(--h-target-size-min) + env(safe-area-inset-top, 0px));
|
|
354
|
+
padding-top: env(safe-area-inset-top, 0);
|
|
355
|
+
border-block-end: 1px solid var(--h-content-border-color);
|
|
356
|
+
}
|
|
357
|
+
.hx-mobile-shell-menu {
|
|
358
|
+
display: inline-flex;
|
|
359
|
+
align-items: center;
|
|
360
|
+
justify-content: center;
|
|
361
|
+
min-width: var(--h-target-size-min);
|
|
362
|
+
min-height: var(--h-target-size-min);
|
|
363
|
+
padding: 0;
|
|
364
|
+
border: 0;
|
|
365
|
+
background: transparent;
|
|
366
|
+
color: inherit;
|
|
367
|
+
font-size: 20px;
|
|
368
|
+
}
|
|
369
|
+
.hx-mobile-shell-title {
|
|
370
|
+
flex: 1;
|
|
371
|
+
min-width: 0;
|
|
372
|
+
overflow: hidden;
|
|
373
|
+
text-overflow: ellipsis;
|
|
374
|
+
white-space: nowrap;
|
|
375
|
+
font-weight: 600;
|
|
376
|
+
}
|
|
377
|
+
.hx-mobile-shell-content {
|
|
378
|
+
flex: 1;
|
|
379
|
+
min-height: 0;
|
|
380
|
+
overflow: auto;
|
|
381
|
+
overscroll-behavior: contain;
|
|
382
|
+
background: var(--h-content-background, var(--h-surface-frame));
|
|
383
|
+
/* The keyboard overlays the page where the browser does not resize it. */
|
|
384
|
+
padding-block-end: env(keyboard-inset-height, 0);
|
|
385
|
+
}
|
|
386
|
+
.hx-mobile-shell-drawer {
|
|
387
|
+
padding-block: env(safe-area-inset-top, 0) env(safe-area-inset-bottom, 0);
|
|
388
|
+
padding-inline-start: env(safe-area-inset-left, 0);
|
|
389
|
+
box-sizing: border-box;
|
|
390
|
+
}
|
|
391
|
+
.hx-mobile-shell-drawer-body {
|
|
392
|
+
min-height: 100%;
|
|
393
|
+
touch-action: pan-y;
|
|
394
|
+
}
|
|
395
|
+
.hx-mobile-shell-drawer-body button,
|
|
396
|
+
.hx-mobile-shell-drawer-body a,
|
|
397
|
+
.hx-mobile-shell-drawer-body [role="button"],
|
|
398
|
+
.hx-mobile-shell-drawer-body [role="menuitem"] {
|
|
399
|
+
min-height: var(--h-target-size-min);
|
|
400
|
+
min-width: var(--h-target-size-min);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.hx-mobile-shell-drawer-list {
|
|
404
|
+
display: flex;
|
|
405
|
+
flex-direction: column;
|
|
406
|
+
margin: 0;
|
|
407
|
+
padding: var(--h-space-2, 0.5rem);
|
|
408
|
+
list-style: none;
|
|
409
|
+
}
|
|
410
|
+
.hx-mobile-shell-drawer-item {
|
|
411
|
+
display: flex;
|
|
412
|
+
align-items: center;
|
|
413
|
+
gap: var(--h-space-3, 0.75rem);
|
|
414
|
+
inline-size: 100%;
|
|
415
|
+
min-width: var(--h-target-size-min);
|
|
416
|
+
min-height: var(--h-target-size-min);
|
|
417
|
+
padding-inline: var(--h-space-3, 0.75rem);
|
|
418
|
+
border: 0;
|
|
419
|
+
background: transparent;
|
|
420
|
+
color: inherit;
|
|
421
|
+
font: inherit;
|
|
422
|
+
text-align: start;
|
|
423
|
+
cursor: pointer;
|
|
424
|
+
}
|
|
425
|
+
.hx-mobile-shell-drawer-active {
|
|
426
|
+
font-weight: 600;
|
|
427
|
+
background: var(--h-surface-frame);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.hx-bottom-bar {
|
|
431
|
+
display: flex;
|
|
432
|
+
flex: none;
|
|
433
|
+
box-sizing: border-box;
|
|
434
|
+
padding-block-end: env(safe-area-inset-bottom, 0);
|
|
435
|
+
background: var(--h-surface-frame);
|
|
436
|
+
border-block-start: 1px solid var(--h-content-border-color);
|
|
437
|
+
}
|
|
438
|
+
.hx-bottom-bar-item {
|
|
439
|
+
position: relative;
|
|
440
|
+
display: flex;
|
|
441
|
+
flex: 1;
|
|
442
|
+
flex-direction: column;
|
|
443
|
+
align-items: center;
|
|
444
|
+
justify-content: center;
|
|
445
|
+
gap: 2px;
|
|
446
|
+
min-width: var(--h-target-size-min);
|
|
447
|
+
min-height: var(--h-target-size-min);
|
|
448
|
+
padding: 4px 2px;
|
|
449
|
+
border: 0;
|
|
450
|
+
background: transparent;
|
|
451
|
+
color: var(--h-text-muted-color);
|
|
452
|
+
font: inherit;
|
|
453
|
+
font-size: 11px;
|
|
454
|
+
-webkit-tap-highlight-color: transparent;
|
|
455
|
+
}
|
|
456
|
+
.hx-bottom-bar-item:focus-visible {
|
|
457
|
+
outline: 2px solid var(--h-primary-color);
|
|
458
|
+
outline-offset: -2px;
|
|
459
|
+
}
|
|
460
|
+
.hx-bottom-bar-active {
|
|
461
|
+
color: var(--h-primary-color);
|
|
462
|
+
}
|
|
463
|
+
.hx-bottom-bar-icon {
|
|
464
|
+
display: inline-flex;
|
|
465
|
+
align-items: center;
|
|
466
|
+
justify-content: center;
|
|
467
|
+
width: 24px;
|
|
468
|
+
height: 24px;
|
|
469
|
+
font-size: 22px;
|
|
470
|
+
line-height: 1;
|
|
471
|
+
}
|
|
472
|
+
.hx-bottom-bar-icon > svg,
|
|
473
|
+
.hx-bottom-bar-icon > * > svg {
|
|
474
|
+
width: 24px;
|
|
475
|
+
height: 24px;
|
|
476
|
+
}
|
|
477
|
+
.hx-bottom-bar-label {
|
|
478
|
+
max-width: 100%;
|
|
479
|
+
overflow: hidden;
|
|
480
|
+
text-overflow: ellipsis;
|
|
481
|
+
white-space: nowrap;
|
|
482
|
+
}
|
|
483
|
+
.hx-bottom-bar-badge {
|
|
484
|
+
position: absolute;
|
|
485
|
+
top: 4px;
|
|
486
|
+
inset-inline-start: calc(50% + 6px);
|
|
487
|
+
min-width: 16px;
|
|
488
|
+
height: 16px;
|
|
489
|
+
padding: 0 4px;
|
|
490
|
+
box-sizing: border-box;
|
|
491
|
+
border-radius: 8px;
|
|
492
|
+
background: var(--h-primary-color);
|
|
493
|
+
color: var(--h-primary-contrast-color);
|
|
494
|
+
font-size: 10px;
|
|
495
|
+
line-height: 16px;
|
|
496
|
+
text-align: center;
|
|
497
|
+
}
|
|
498
|
+
.hx-bottom-bar-badge-dot {
|
|
499
|
+
min-width: 8px;
|
|
500
|
+
width: 8px;
|
|
501
|
+
height: 8px;
|
|
502
|
+
padding: 0;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/* The UI font of a desktop app (ADR 0018). In the base layer, so a `body` rule of the page wins. */
|
|
507
|
+
@layer base {
|
|
508
|
+
body {
|
|
509
|
+
font-family: var(--h-font-family-sans);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/* The scrollbars of a desktop app (#1260). In the base layer, so a class of a component (`.hx-tab-scroller`)
|
|
514
|
+
still hides its bar. */
|
|
515
|
+
@layer base {
|
|
516
|
+
/* WebView2. Only where `scrollbar-color` works: a web view that knows `scrollbar-width` alone would drop the
|
|
517
|
+
`::-webkit-scrollbar` rules below, and the colors with them. `scrollbar-width` is not inherited. */
|
|
518
|
+
@supports (scrollbar-color: auto) {
|
|
519
|
+
:root {
|
|
520
|
+
scrollbar-color: var(--h-scrollbar-thumb-color) var(--h-scrollbar-track-color);
|
|
521
|
+
}
|
|
522
|
+
:root,
|
|
523
|
+
:where(*) {
|
|
524
|
+
scrollbar-width: var(--h-scrollbar-width);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/* WebKitGTK and WKWebView */
|
|
529
|
+
::-webkit-scrollbar {
|
|
530
|
+
width: var(--h-space-2);
|
|
531
|
+
height: var(--h-space-2);
|
|
532
|
+
}
|
|
533
|
+
::-webkit-scrollbar-thumb {
|
|
534
|
+
background: var(--h-scrollbar-thumb-color);
|
|
535
|
+
border-radius: var(--h-border-radius-md);
|
|
536
|
+
}
|
|
537
|
+
::-webkit-scrollbar-track {
|
|
538
|
+
background: var(--h-scrollbar-track-color);
|
|
539
|
+
}
|
|
540
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,70 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"description": "Helix app framework for Angular: frames, view contract, settings, commands. Placeholder of the first publish; the real versions are published by the release workflow of GravionLabs/helix.",
|
|
2
|
+
"description": "Helix desktop frame for Angular: activity bar, views, status bar and the platform switch. Tauri bindings in the optional /tauri entry.",
|
|
5
3
|
"license": "MIT",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"helix",
|
|
6
|
+
"angular",
|
|
7
|
+
"desktop",
|
|
8
|
+
"tauri"
|
|
9
|
+
],
|
|
6
10
|
"repository": {
|
|
7
11
|
"type": "git",
|
|
8
|
-
"url": "
|
|
12
|
+
"url": "https://github.com/GravionLabs/helix.git",
|
|
9
13
|
"directory": "projects/app"
|
|
10
14
|
},
|
|
11
15
|
"publishConfig": {
|
|
12
16
|
"access": "public"
|
|
13
|
-
}
|
|
17
|
+
},
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"@angular/cdk": ">=22",
|
|
20
|
+
"@angular/common": ">=22",
|
|
21
|
+
"@angular/core": ">=22",
|
|
22
|
+
"@gravionlabs/helix-ui": ">=0.1.0",
|
|
23
|
+
"@tauri-apps/api": ">=2",
|
|
24
|
+
"@tauri-apps/plugin-process": ">=2",
|
|
25
|
+
"@tauri-apps/plugin-updater": ">=2"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"tslib": "^2.3.0"
|
|
29
|
+
},
|
|
30
|
+
"sideEffects": [
|
|
31
|
+
"**/*.css"
|
|
32
|
+
],
|
|
33
|
+
"peerDependenciesMeta": {
|
|
34
|
+
"@tauri-apps/api": {
|
|
35
|
+
"optional": true
|
|
36
|
+
},
|
|
37
|
+
"@tauri-apps/plugin-process": {
|
|
38
|
+
"optional": true
|
|
39
|
+
},
|
|
40
|
+
"@tauri-apps/plugin-updater": {
|
|
41
|
+
"optional": true
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"name": "@gravionlabs/helix-app",
|
|
45
|
+
"type": "module",
|
|
46
|
+
"main": "./fesm2022/gravionlabs-helix-app.mjs",
|
|
47
|
+
"module": "./fesm2022/gravionlabs-helix-app.mjs",
|
|
48
|
+
"typings": "./types/gravionlabs-helix-app.d.ts",
|
|
49
|
+
"types": "./types/gravionlabs-helix-app.d.ts",
|
|
50
|
+
"exports": {
|
|
51
|
+
".": {
|
|
52
|
+
"types": "./types/gravionlabs-helix-app.d.ts",
|
|
53
|
+
"default": "./fesm2022/gravionlabs-helix-app.mjs"
|
|
54
|
+
},
|
|
55
|
+
"./tauri": {
|
|
56
|
+
"types": "./types/gravionlabs-helix-app-tauri.d.ts",
|
|
57
|
+
"default": "./fesm2022/gravionlabs-helix-app-tauri.mjs"
|
|
58
|
+
},
|
|
59
|
+
"./frame": {
|
|
60
|
+
"types": "./types/gravionlabs-helix-app-frame.d.ts",
|
|
61
|
+
"default": "./fesm2022/gravionlabs-helix-app-frame.mjs"
|
|
62
|
+
},
|
|
63
|
+
"./package.json": {
|
|
64
|
+
"default": "./package.json"
|
|
65
|
+
},
|
|
66
|
+
"./styles.css": "./styles.css",
|
|
67
|
+
"./frame.css": "./frame.css"
|
|
68
|
+
},
|
|
69
|
+
"version": "22.20.0"
|
|
14
70
|
}
|
package/styles.css
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @gravionlabs/helix-app: the stylesheet of the main entry. The frame has its own, `frame.css`
|
|
3
|
+
* (ADR 0036), so a web app that loads only this file gets no CSS of the frame.
|
|
4
|
+
*/
|
|
5
|
+
/* The layer order Tailwind uses, stated here so it holds whichever stylesheet loads first. */
|
|
6
|
+
@layer theme, base, components, utilities;
|
|
7
|
+
|
|
8
|
+
/* The UI font chosen in the settings (`provideHxSettings`). Unlayered and only while it is set, so it wins over
|
|
9
|
+
the font of the page and changes nothing otherwise. */
|
|
10
|
+
html[style*="--hx-font-family"] body {
|
|
11
|
+
font-family: var(--hx-font-family);
|
|
12
|
+
}
|