@lundal/zed-css 0.0.8 → 0.0.10

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.
Files changed (2) hide show
  1. package/dist/style.css +60 -2
  2. package/package.json +1 -1
package/dist/style.css CHANGED
@@ -20,7 +20,6 @@
20
20
  border: none;
21
21
  }
22
22
  .z-button {
23
- height: 36px;
24
23
  padding: 6px 24px;
25
24
  border-radius: 6px;
26
25
  cursor: pointer;
@@ -42,6 +41,7 @@
42
41
 
43
42
  .z-button[aria-busy="true"] {
44
43
  color: transparent;
44
+ position: relative;
45
45
  }
46
46
 
47
47
  .z-button[aria-busy="true"]::before {
@@ -53,7 +53,8 @@
53
53
  border: 3px solid transparent;
54
54
  border-top-color: var(--z-button-text);
55
55
  animation: 0.5s linear infinite z-spin;
56
- margin: 0 auto;
56
+ position: absolute;
57
+ inset: calc(50% - 12px);
57
58
  }
58
59
 
59
60
  .z-button--icon {
@@ -294,6 +295,42 @@ dialog:focus-visible {
294
295
  .z-link:focus-visible {
295
296
  outline-color: var(--z-focus);
296
297
  }
298
+ .z-message {
299
+ width: 100%;
300
+ display: flex;
301
+ align-items: center;
302
+ gap: 12px;
303
+ padding: 12px;
304
+ border-radius: 6px;
305
+ background: var(--background);
306
+ border: 2px solid var(--border);
307
+ }
308
+
309
+ .z-message--icon {
310
+ width: 24px;
311
+ height: 24px;
312
+ color: var(--border);
313
+ }
314
+
315
+ .z-message--error {
316
+ --background: var(--z-message-error-background);
317
+ --border: var(--z-message-error-border);
318
+ }
319
+
320
+ .z-message--warning {
321
+ --background: var(--z-message-warning-background);
322
+ --border: var(--z-message-warning-border);
323
+ }
324
+
325
+ .z-message--info {
326
+ --background: var(--z-message-info-background);
327
+ --border: var(--z-message-info-border);
328
+ }
329
+
330
+ .z-message--success {
331
+ --background: var(--z-message-success-background);
332
+ --border: var(--z-message-success-border);
333
+ }
297
334
  .z-nav {
298
335
  min-width: 200px;
299
336
  padding-bottom: 12px;
@@ -355,6 +392,7 @@ dialog:focus-visible {
355
392
  color: var(--z-text-body);
356
393
 
357
394
  font-family: "Inter", sans-serif;
395
+ font-feature-settings: "calt" 0;
358
396
  font-size: 16px;
359
397
  font-weight: 400;
360
398
  }
@@ -578,6 +616,16 @@ dialog:focus-visible {
578
616
  --z-input-active-fill: #5252ff; /* Lc 75 */
579
617
  --z-input-error-border: #ff5252; /* Lc 60 */
580
618
  --z-input-error-fill: #cf1b1b; /* Lc 75 */
619
+
620
+ /* TODO: Tweak colors */
621
+ --z-message-error-border: #db3a32;
622
+ --z-message-error-background: #db3a3220;
623
+ --z-message-warning-border: #c47f2c;
624
+ --z-message-warning-background: #c47f2c20;
625
+ --z-message-info-border: #3276db;
626
+ --z-message-info-background: #3276db20;
627
+ --z-message-success-border: #21a341;
628
+ --z-message-success-background: #21a34120;
581
629
  }
582
630
 
583
631
  .z-theme--dark {
@@ -600,4 +648,14 @@ dialog:focus-visible {
600
648
  --z-input-active-fill: #7882ff; /* Lc 40 */
601
649
  --z-input-error-border: #db3a32; /* Lc 30 */
602
650
  --z-input-error-fill: #ff483f; /* Lc 40 */
651
+
652
+ /* TODO: Tweak colors */
653
+ --z-message-error-border: #db3a32;
654
+ --z-message-error-background: #db3a3220;
655
+ --z-message-warning-border: #c47f2c;
656
+ --z-message-warning-background: #c47f2c20;
657
+ --z-message-info-border: #3276db;
658
+ --z-message-info-background: #3276db20;
659
+ --z-message-success-border: #21a341;
660
+ --z-message-success-background: #21a34120;
603
661
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lundal/zed-css",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "license": "LGPL-3.0-or-later",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",