@ambasada/ui 0.0.0-stage → 0.6.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 +21 -0
- package/README.md +107 -2
- package/dist/ambasada-ui.css +615 -0
- package/dist/components.css +452 -0
- package/dist/fonts/OFL-inter.txt +93 -0
- package/dist/fonts/OFL-jetbrains-mono.txt +93 -0
- package/dist/fonts/inter-variable-latin-ext.woff2 +0 -0
- package/dist/fonts/inter-variable-latin.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-variable-latin-ext.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-variable-latin.woff2 +0 -0
- package/dist/fonts.css +39 -0
- package/dist/react.d.ts +70 -0
- package/dist/react.js +114 -0
- package/dist/tokens.css +121 -0
- package/package.json +66 -3
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @ambasada/ui components, in plain CSS: page, card, buttons, list rows, pill, bottom sheet, stepper,
|
|
3
|
+
* empty state, skeleton, the mono label. Tokens only (tokens.css): no raw colours.
|
|
4
|
+
* Markup for each one: packages/ui/README.md, or the React wrappers in @ambasada/ui/react.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* ── base ───────────────────────────────────────────────────────────────────
|
|
8
|
+
* Zero specificity, so any rule of the app's own wins. Enough for a plain HTML page to look right. */
|
|
9
|
+
|
|
10
|
+
*,
|
|
11
|
+
*::before,
|
|
12
|
+
*::after {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
}
|
|
15
|
+
:where(html) {
|
|
16
|
+
font-family: var(--font-sans);
|
|
17
|
+
background: var(--color-bg);
|
|
18
|
+
color: var(--color-ink);
|
|
19
|
+
-webkit-font-smoothing: antialiased;
|
|
20
|
+
-moz-osx-font-smoothing: grayscale;
|
|
21
|
+
-webkit-text-size-adjust: 100%;
|
|
22
|
+
-webkit-tap-highlight-color: transparent;
|
|
23
|
+
}
|
|
24
|
+
:where(body) {
|
|
25
|
+
margin: 0;
|
|
26
|
+
font-size: var(--text-base);
|
|
27
|
+
line-height: 1.5;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* ── page ───────────────────────────────────────────────────────────────────
|
|
31
|
+
* The mini-app column, clear of the shell's host bar and the safe areas (docs/MINI-APPS.md §6). */
|
|
32
|
+
|
|
33
|
+
.ui-page {
|
|
34
|
+
max-width: var(--page-max);
|
|
35
|
+
margin: 0 auto;
|
|
36
|
+
padding:
|
|
37
|
+
calc(var(--space-4) + var(--ambasada-safe-area-top, 0px) + var(--ambasada-host-bar, 0px))
|
|
38
|
+
calc(var(--space-4) + var(--ambasada-safe-area-right, 0px))
|
|
39
|
+
calc(var(--space-8) + var(--ambasada-safe-area-bottom, 0px))
|
|
40
|
+
calc(var(--space-4) + var(--ambasada-safe-area-left, 0px));
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
gap: var(--space-4);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* The mono label: the hub's .section-label. For small captions, never for sentences. */
|
|
47
|
+
.ui-label {
|
|
48
|
+
font-family: var(--font-mono);
|
|
49
|
+
font-size: var(--text-label);
|
|
50
|
+
font-weight: var(--weight-medium);
|
|
51
|
+
letter-spacing: var(--tracking-label);
|
|
52
|
+
text-transform: uppercase;
|
|
53
|
+
color: var(--color-ink-3);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* ── card ───────────────────────────────────────────────────────────────────
|
|
57
|
+
* The hub's .card: white, hairline border, 16px radius, flat. */
|
|
58
|
+
|
|
59
|
+
.ui-card {
|
|
60
|
+
background: var(--color-surface);
|
|
61
|
+
border: 1px solid var(--color-line);
|
|
62
|
+
border-radius: var(--radius-card);
|
|
63
|
+
box-shadow: var(--shadow-card);
|
|
64
|
+
padding: var(--space-5);
|
|
65
|
+
}
|
|
66
|
+
.ui-card-title {
|
|
67
|
+
margin: 0 0 var(--space-3);
|
|
68
|
+
font-size: var(--text-lg);
|
|
69
|
+
font-weight: var(--weight-semibold);
|
|
70
|
+
letter-spacing: var(--tracking-tight);
|
|
71
|
+
line-height: 1.2;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* ── buttons ────────────────────────────────────────────────────────────────
|
|
75
|
+
* The hub's Button. Primary: brand red, white text (one per screen). Secondary: surface, hairline, red on hover. */
|
|
76
|
+
|
|
77
|
+
.ui-button {
|
|
78
|
+
display: inline-flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
gap: var(--space-2);
|
|
82
|
+
min-height: var(--tap);
|
|
83
|
+
padding: 10px 18px;
|
|
84
|
+
border: 1px solid transparent;
|
|
85
|
+
border-radius: var(--radius-sm);
|
|
86
|
+
background: var(--color-accent);
|
|
87
|
+
color: var(--color-on-accent);
|
|
88
|
+
font: inherit;
|
|
89
|
+
font-size: 0.9375rem;
|
|
90
|
+
font-weight: var(--weight-medium);
|
|
91
|
+
line-height: 1.25;
|
|
92
|
+
text-align: center;
|
|
93
|
+
text-decoration: none;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
touch-action: manipulation;
|
|
96
|
+
transition: filter var(--duration) var(--ease), background-color var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
|
|
97
|
+
}
|
|
98
|
+
.ui-button:hover {
|
|
99
|
+
filter: brightness(0.92);
|
|
100
|
+
color: var(--color-on-accent);
|
|
101
|
+
}
|
|
102
|
+
.ui-button:active {
|
|
103
|
+
filter: brightness(0.85);
|
|
104
|
+
}
|
|
105
|
+
.ui-button:focus-visible {
|
|
106
|
+
outline: 2px solid var(--color-accent);
|
|
107
|
+
outline-offset: 2px;
|
|
108
|
+
}
|
|
109
|
+
.ui-button:disabled,
|
|
110
|
+
.ui-button[aria-disabled="true"] {
|
|
111
|
+
opacity: 0.45;
|
|
112
|
+
cursor: default;
|
|
113
|
+
filter: none;
|
|
114
|
+
}
|
|
115
|
+
.ui-button.secondary {
|
|
116
|
+
background: var(--color-surface);
|
|
117
|
+
color: var(--color-ink);
|
|
118
|
+
border-color: var(--color-line);
|
|
119
|
+
}
|
|
120
|
+
.ui-button.secondary:hover {
|
|
121
|
+
filter: none;
|
|
122
|
+
border-color: var(--color-accent-ring);
|
|
123
|
+
color: var(--color-accent-text);
|
|
124
|
+
}
|
|
125
|
+
.ui-button.block {
|
|
126
|
+
width: 100%;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* ── list: a group of rows ──────────────────────────────────────────────── */
|
|
130
|
+
|
|
131
|
+
.ui-group {
|
|
132
|
+
display: flex;
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
gap: var(--space-2);
|
|
135
|
+
}
|
|
136
|
+
.ui-group-head {
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
justify-content: space-between;
|
|
140
|
+
gap: var(--space-3);
|
|
141
|
+
padding: 0 var(--space-1);
|
|
142
|
+
}
|
|
143
|
+
.ui-group-head h2 {
|
|
144
|
+
margin: 0;
|
|
145
|
+
font-size: var(--text-sm);
|
|
146
|
+
font-weight: var(--weight-semibold);
|
|
147
|
+
color: var(--color-ink-2);
|
|
148
|
+
}
|
|
149
|
+
.ui-group-body {
|
|
150
|
+
background: var(--color-surface);
|
|
151
|
+
border: 1px solid var(--color-line);
|
|
152
|
+
border-radius: var(--radius-card);
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
}
|
|
155
|
+
.ui-group-body > .ui-row + .ui-row {
|
|
156
|
+
border-top: 1px solid var(--color-line);
|
|
157
|
+
}
|
|
158
|
+
.ui-group-body > .pad {
|
|
159
|
+
padding: var(--space-4);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* List row: icon, title and subtitle, a value or a chevron. A <button> or <a> when tappable. */
|
|
163
|
+
.ui-row {
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
gap: var(--space-3);
|
|
167
|
+
width: 100%;
|
|
168
|
+
min-height: 56px;
|
|
169
|
+
padding: var(--space-3) var(--space-4);
|
|
170
|
+
background: none;
|
|
171
|
+
border: 0;
|
|
172
|
+
border-radius: 0;
|
|
173
|
+
color: var(--color-ink);
|
|
174
|
+
text-align: left;
|
|
175
|
+
text-decoration: none;
|
|
176
|
+
font: inherit;
|
|
177
|
+
font-weight: var(--weight-regular);
|
|
178
|
+
}
|
|
179
|
+
.ui-row.tappable {
|
|
180
|
+
cursor: pointer;
|
|
181
|
+
transition: background-color var(--duration) var(--ease);
|
|
182
|
+
}
|
|
183
|
+
.ui-row.tappable:hover,
|
|
184
|
+
.ui-row.tappable:active {
|
|
185
|
+
background: var(--color-surface-2);
|
|
186
|
+
filter: none;
|
|
187
|
+
}
|
|
188
|
+
.ui-row.danger .row-title {
|
|
189
|
+
color: var(--color-danger);
|
|
190
|
+
}
|
|
191
|
+
.ui-row.muted {
|
|
192
|
+
opacity: 0.55;
|
|
193
|
+
}
|
|
194
|
+
.row-icon {
|
|
195
|
+
flex: none;
|
|
196
|
+
display: grid;
|
|
197
|
+
place-items: center;
|
|
198
|
+
width: 38px;
|
|
199
|
+
height: 38px;
|
|
200
|
+
border-radius: var(--radius-md);
|
|
201
|
+
background: var(--color-surface-2);
|
|
202
|
+
color: var(--color-ink-2);
|
|
203
|
+
}
|
|
204
|
+
.row-icon.accent {
|
|
205
|
+
background: var(--color-accent-soft);
|
|
206
|
+
color: var(--color-accent-text);
|
|
207
|
+
}
|
|
208
|
+
.row-icon.good {
|
|
209
|
+
background: var(--color-success-soft);
|
|
210
|
+
color: var(--color-success);
|
|
211
|
+
}
|
|
212
|
+
.row-icon.bad {
|
|
213
|
+
background: var(--color-danger-soft);
|
|
214
|
+
color: var(--color-danger);
|
|
215
|
+
}
|
|
216
|
+
.row-text {
|
|
217
|
+
flex: 1;
|
|
218
|
+
min-width: 0;
|
|
219
|
+
display: flex;
|
|
220
|
+
flex-direction: column;
|
|
221
|
+
gap: 2px;
|
|
222
|
+
}
|
|
223
|
+
.row-title {
|
|
224
|
+
font-weight: var(--weight-medium);
|
|
225
|
+
overflow-wrap: anywhere;
|
|
226
|
+
}
|
|
227
|
+
.row-sub {
|
|
228
|
+
font-size: var(--text-sm);
|
|
229
|
+
color: var(--color-ink-3);
|
|
230
|
+
overflow-wrap: anywhere;
|
|
231
|
+
}
|
|
232
|
+
.row-right {
|
|
233
|
+
flex: none;
|
|
234
|
+
font-variant-numeric: tabular-nums;
|
|
235
|
+
font-weight: var(--weight-semibold);
|
|
236
|
+
text-align: right;
|
|
237
|
+
}
|
|
238
|
+
.row-right.plus { color: var(--color-success); }
|
|
239
|
+
.row-chev {
|
|
240
|
+
flex: none;
|
|
241
|
+
color: var(--color-ink-3);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* ── pill ───────────────────────────────────────────────────────────────── */
|
|
245
|
+
|
|
246
|
+
.ui-pill {
|
|
247
|
+
display: inline-flex;
|
|
248
|
+
align-items: center;
|
|
249
|
+
gap: 6px;
|
|
250
|
+
padding: 4px 10px 4px 8px;
|
|
251
|
+
border-radius: var(--radius-pill);
|
|
252
|
+
font-size: var(--text-xs);
|
|
253
|
+
font-weight: var(--weight-medium);
|
|
254
|
+
white-space: nowrap;
|
|
255
|
+
background: var(--color-surface-2);
|
|
256
|
+
color: var(--color-ink-2);
|
|
257
|
+
}
|
|
258
|
+
.ui-pill i {
|
|
259
|
+
width: 7px;
|
|
260
|
+
height: 7px;
|
|
261
|
+
border-radius: 50%;
|
|
262
|
+
background: currentColor;
|
|
263
|
+
}
|
|
264
|
+
.ui-pill.good { background: var(--color-success-soft); color: var(--color-success); }
|
|
265
|
+
.ui-pill.bad { background: var(--color-danger-soft); color: var(--color-danger); }
|
|
266
|
+
.ui-pill.warn { background: var(--color-warn-soft); color: var(--color-warn); }
|
|
267
|
+
.ui-pill.accent { background: var(--color-accent-soft); color: var(--color-accent-text); }
|
|
268
|
+
.ui-pill.pulse i {
|
|
269
|
+
animation: ui-pulse 1.6s ease-in-out infinite;
|
|
270
|
+
}
|
|
271
|
+
@keyframes ui-pulse {
|
|
272
|
+
0%, 100% { opacity: 1; transform: scale(1); }
|
|
273
|
+
50% { opacity: 0.4; transform: scale(0.7); }
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* ── bottom sheet ───────────────────────────────────────────────────────────
|
|
277
|
+
* Forms and details open in a sheet, not a new page. A centred dialog from 640px up. */
|
|
278
|
+
|
|
279
|
+
body.ui-sheet-open { overflow: hidden; }
|
|
280
|
+
.ui-sheet-backdrop {
|
|
281
|
+
position: fixed;
|
|
282
|
+
inset: 0;
|
|
283
|
+
z-index: 50;
|
|
284
|
+
background: var(--color-backdrop);
|
|
285
|
+
display: flex;
|
|
286
|
+
align-items: flex-end;
|
|
287
|
+
justify-content: center;
|
|
288
|
+
animation: ui-fade var(--duration) var(--ease);
|
|
289
|
+
}
|
|
290
|
+
.ui-sheet {
|
|
291
|
+
width: 100%;
|
|
292
|
+
max-width: var(--page-max);
|
|
293
|
+
max-height: 92dvh;
|
|
294
|
+
display: flex;
|
|
295
|
+
flex-direction: column;
|
|
296
|
+
background: var(--color-bg);
|
|
297
|
+
border-radius: var(--radius-hero) var(--radius-hero) 0 0;
|
|
298
|
+
box-shadow: var(--shadow-raised);
|
|
299
|
+
animation: ui-rise 260ms var(--ease);
|
|
300
|
+
padding-bottom: var(--ambasada-safe-area-bottom, 0px);
|
|
301
|
+
}
|
|
302
|
+
.ui-sheet-grip {
|
|
303
|
+
width: 36px;
|
|
304
|
+
height: 4px;
|
|
305
|
+
margin: 8px auto 0;
|
|
306
|
+
border-radius: 2px;
|
|
307
|
+
background: var(--color-line-strong);
|
|
308
|
+
}
|
|
309
|
+
.ui-sheet-head {
|
|
310
|
+
display: flex;
|
|
311
|
+
align-items: center;
|
|
312
|
+
justify-content: space-between;
|
|
313
|
+
padding: var(--space-3) var(--space-4) 0 var(--space-5);
|
|
314
|
+
}
|
|
315
|
+
.ui-sheet-head h2 {
|
|
316
|
+
margin: 0;
|
|
317
|
+
font-size: var(--text-xl);
|
|
318
|
+
}
|
|
319
|
+
.ui-sheet-body {
|
|
320
|
+
overflow-y: auto;
|
|
321
|
+
padding: var(--space-4) var(--space-5);
|
|
322
|
+
display: flex;
|
|
323
|
+
flex-direction: column;
|
|
324
|
+
gap: var(--space-4);
|
|
325
|
+
}
|
|
326
|
+
.ui-sheet-foot {
|
|
327
|
+
padding: var(--space-3) var(--space-5) var(--space-4);
|
|
328
|
+
border-top: 1px solid var(--color-line);
|
|
329
|
+
display: flex;
|
|
330
|
+
gap: var(--space-2);
|
|
331
|
+
}
|
|
332
|
+
.ui-sheet-foot > button,
|
|
333
|
+
.ui-sheet-foot > .ui-button { flex: 1; }
|
|
334
|
+
@keyframes ui-rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
|
|
335
|
+
@keyframes ui-fade { from { opacity: 0; } to { opacity: 1; } }
|
|
336
|
+
@media (min-width: 640px) {
|
|
337
|
+
.ui-sheet-backdrop { align-items: center; padding: var(--space-6); }
|
|
338
|
+
.ui-sheet { border-radius: var(--radius-hero); max-height: 86dvh; }
|
|
339
|
+
.ui-sheet-grip { display: none; }
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* Round icon button (the sheet's close). */
|
|
343
|
+
.ui-icon-btn {
|
|
344
|
+
width: var(--tap);
|
|
345
|
+
height: var(--tap);
|
|
346
|
+
min-height: 0;
|
|
347
|
+
padding: 0;
|
|
348
|
+
display: grid;
|
|
349
|
+
place-items: center;
|
|
350
|
+
border-radius: 50%;
|
|
351
|
+
background: var(--color-surface-2);
|
|
352
|
+
color: var(--color-ink-2);
|
|
353
|
+
border: 0;
|
|
354
|
+
cursor: pointer;
|
|
355
|
+
}
|
|
356
|
+
.ui-icon-btn:hover { filter: none; color: var(--color-ink); }
|
|
357
|
+
|
|
358
|
+
/* ── stepper ────────────────────────────────────────────────────────────────
|
|
359
|
+
* − value + for amounts, with optional preset chips underneath. */
|
|
360
|
+
|
|
361
|
+
.ui-stepper-wrap { display: flex; flex-direction: column; gap: var(--space-2); }
|
|
362
|
+
.ui-stepper {
|
|
363
|
+
display: flex;
|
|
364
|
+
align-items: center;
|
|
365
|
+
justify-content: space-between;
|
|
366
|
+
border: 1px solid var(--color-line);
|
|
367
|
+
border-radius: var(--radius-md);
|
|
368
|
+
background: var(--color-surface);
|
|
369
|
+
padding: 4px;
|
|
370
|
+
}
|
|
371
|
+
.ui-stepper button {
|
|
372
|
+
width: 48px;
|
|
373
|
+
height: 44px;
|
|
374
|
+
min-height: 0;
|
|
375
|
+
padding: 0;
|
|
376
|
+
display: grid;
|
|
377
|
+
place-items: center;
|
|
378
|
+
border-radius: 9px;
|
|
379
|
+
background: var(--color-surface-2);
|
|
380
|
+
color: var(--color-ink);
|
|
381
|
+
border: 0;
|
|
382
|
+
cursor: pointer;
|
|
383
|
+
}
|
|
384
|
+
.ui-stepper button:hover { filter: none; background: var(--color-line); }
|
|
385
|
+
.ui-stepper button:disabled { opacity: 0.45; cursor: default; }
|
|
386
|
+
.ui-stepper-value {
|
|
387
|
+
font-size: 1.25rem;
|
|
388
|
+
font-weight: var(--weight-semibold);
|
|
389
|
+
font-variant-numeric: tabular-nums;
|
|
390
|
+
}
|
|
391
|
+
.ui-stepper-value small { font-size: var(--text-xs); color: var(--color-ink-3); font-weight: var(--weight-regular); }
|
|
392
|
+
.ui-presets { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
393
|
+
.ui-presets button {
|
|
394
|
+
min-height: 34px;
|
|
395
|
+
padding: 4px 12px;
|
|
396
|
+
border-radius: var(--radius-pill);
|
|
397
|
+
background: var(--color-surface);
|
|
398
|
+
color: var(--color-ink-2);
|
|
399
|
+
border: 1px solid var(--color-line);
|
|
400
|
+
font-family: inherit;
|
|
401
|
+
font-size: var(--text-sm);
|
|
402
|
+
cursor: pointer;
|
|
403
|
+
}
|
|
404
|
+
.ui-presets button:hover { filter: none; border-color: var(--color-line-strong); }
|
|
405
|
+
.ui-presets button.on { background: var(--color-ink); color: var(--color-bg); border-color: var(--color-ink); }
|
|
406
|
+
|
|
407
|
+
/* ── empty state ────────────────────────────────────────────────────────── */
|
|
408
|
+
|
|
409
|
+
.ui-empty {
|
|
410
|
+
display: flex;
|
|
411
|
+
flex-direction: column;
|
|
412
|
+
align-items: center;
|
|
413
|
+
gap: var(--space-2);
|
|
414
|
+
padding: var(--space-8) var(--space-4);
|
|
415
|
+
text-align: center;
|
|
416
|
+
color: var(--color-ink-2);
|
|
417
|
+
}
|
|
418
|
+
.ui-empty-icon {
|
|
419
|
+
display: grid;
|
|
420
|
+
place-items: center;
|
|
421
|
+
width: 64px;
|
|
422
|
+
height: 64px;
|
|
423
|
+
border-radius: 50%;
|
|
424
|
+
background: var(--color-surface-2);
|
|
425
|
+
color: var(--color-ink-3);
|
|
426
|
+
margin-bottom: var(--space-2);
|
|
427
|
+
}
|
|
428
|
+
.ui-empty strong { color: var(--color-ink); font-size: var(--text-lg); }
|
|
429
|
+
.ui-empty > button, .ui-empty > a.button, .ui-empty > .ui-button { margin-top: var(--space-3); }
|
|
430
|
+
|
|
431
|
+
/* ── skeleton ───────────────────────────────────────────────────────────────
|
|
432
|
+
* Grey bars where the content will be: skeletons, not spinners. */
|
|
433
|
+
|
|
434
|
+
.ui-skeleton { display: flex; flex-direction: column; gap: 10px; padding: var(--space-4); }
|
|
435
|
+
.ui-skeleton span {
|
|
436
|
+
display: block;
|
|
437
|
+
height: 14px;
|
|
438
|
+
border-radius: 7px;
|
|
439
|
+
background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-line) 50%, var(--color-surface-2) 75%);
|
|
440
|
+
background-size: 200% 100%;
|
|
441
|
+
animation: ui-shimmer 1.4s linear infinite;
|
|
442
|
+
}
|
|
443
|
+
@keyframes ui-shimmer { to { background-position: -200% 0; } }
|
|
444
|
+
|
|
445
|
+
@media (prefers-reduced-motion: reduce) {
|
|
446
|
+
.ui-sheet,
|
|
447
|
+
.ui-sheet-backdrop,
|
|
448
|
+
.ui-pill.pulse i,
|
|
449
|
+
.ui-skeleton span {
|
|
450
|
+
animation: none;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) JetBrainsMono-Italic[wght].ttf: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/fonts.css
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Inter and JetBrains Mono, self-hosted (variable, SIL Open Font License 1.1: fonts/OFL-*.txt). Latin and
|
|
3
|
+
* Latin Extended, so Romanian ț and ș render. The URLs are relative to this file: bundlers copy the files,
|
|
4
|
+
* and the CDN build (dist/ambasada-ui.css) finds them in dist/fonts/. Already serving the fonts yourself?
|
|
5
|
+
* Import tokens.css and components.css instead of the whole package.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@font-face {
|
|
9
|
+
font-family: "Inter";
|
|
10
|
+
font-style: normal;
|
|
11
|
+
font-weight: 100 900;
|
|
12
|
+
font-display: swap;
|
|
13
|
+
src: url("./fonts/inter-variable-latin-ext.woff2") format("woff2");
|
|
14
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
15
|
+
}
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: "Inter";
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-weight: 100 900;
|
|
20
|
+
font-display: swap;
|
|
21
|
+
src: url("./fonts/inter-variable-latin.woff2") format("woff2");
|
|
22
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
23
|
+
}
|
|
24
|
+
@font-face {
|
|
25
|
+
font-family: "JetBrains Mono";
|
|
26
|
+
font-style: normal;
|
|
27
|
+
font-weight: 100 800;
|
|
28
|
+
font-display: swap;
|
|
29
|
+
src: url("./fonts/jetbrains-mono-variable-latin-ext.woff2") format("woff2");
|
|
30
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
31
|
+
}
|
|
32
|
+
@font-face {
|
|
33
|
+
font-family: "JetBrains Mono";
|
|
34
|
+
font-style: normal;
|
|
35
|
+
font-weight: 100 800;
|
|
36
|
+
font-display: swap;
|
|
37
|
+
src: url("./fonts/jetbrains-mono-variable-latin.woff2") format("woff2");
|
|
38
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
39
|
+
}
|