@marianmeres/stuic 3.20.0 → 3.21.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.
@@ -6,18 +6,13 @@
6
6
  --stuic-checkout-delivery-option-border-color: var(--stuic-color-border);
7
7
  --stuic-checkout-delivery-option-border-color-selected: var(--stuic-color-ring);
8
8
  --stuic-checkout-delivery-option-bg: var(--stuic-color-background);
9
- --stuic-checkout-delivery-option-bg-selected: color-mix(
10
- in srgb,
11
- var(--stuic-color-accent) 10%,
12
- transparent
13
- );
14
- --stuic-checkout-delivery-option-bg-hover: color-mix(
15
- in srgb,
16
- var(--stuic-color-muted) 10%,
17
- transparent
18
- );
9
+ --stuic-checkout-delivery-option-bg-selected: var(--stuic-color-surface);
10
+ --stuic-checkout-delivery-option-bg-hover: var(--stuic-color-muted);
19
11
  --stuic-checkout-delivery-free-color: #16a34a;
20
12
  --stuic-checkout-delivery-description-color: var(--stuic-color-muted-foreground);
13
+ --stuic-checkout-delivery-description-color-selected: var(
14
+ --stuic-color-surface-foreground
15
+ );
21
16
  --stuic-checkout-delivery-description-font-size: var(--text-base);
22
17
  --stuic-checkout-delivery-updating-opacity: 0.6;
23
18
  }
@@ -67,6 +62,12 @@
67
62
  background: var(--stuic-checkout-delivery-option-bg-selected);
68
63
  }
69
64
 
65
+ .stuic-checkout-delivery-option--selected .stuic-checkout-delivery-option-description,
66
+ .stuic-checkout-delivery-option--selected .stuic-checkout-delivery-option-estimate,
67
+ .stuic-checkout-delivery-option--selected .stuic-checkout-delivery-option-threshold {
68
+ color: var(--stuic-checkout-delivery-description-color-selected);
69
+ }
70
+
70
71
  .stuic-checkout-delivery-option-header {
71
72
  display: flex;
72
73
  align-items: center;
@@ -2,11 +2,7 @@
2
2
  /* CheckoutOrderConfirmation */
3
3
  --stuic-checkout-confirmation-section-gap: 2rem;
4
4
  --stuic-checkout-confirmation-success-color: #16a34a;
5
- --stuic-checkout-confirmation-order-number-bg: color-mix(
6
- in srgb,
7
- var(--stuic-color-muted) 30%,
8
- transparent
9
- );
5
+ --stuic-checkout-confirmation-order-number-bg: var(--stuic-color-muted);
10
6
  --stuic-checkout-confirmation-order-number-font: ui-monospace, monospace;
11
7
  --stuic-checkout-confirmation-order-number-padding: 0.5rem 1rem;
12
8
  --stuic-checkout-confirmation-order-number-radius: 0.375rem;
@@ -4,22 +4,10 @@
4
4
  --stuic-checkout-progress-font-size: var(--text-base);
5
5
  --stuic-checkout-progress-current-color: var(--stuic-color-foreground);
6
6
  --stuic-checkout-progress-current-font-weight: 700;
7
- --stuic-checkout-progress-past-color: var(--stuic-color-muted-foreground);
8
- --stuic-checkout-progress-future-color: color-mix(
9
- in srgb,
10
- var(--stuic-color-muted-foreground) 50%,
11
- transparent
12
- );
13
- --stuic-checkout-progress-separator-color: color-mix(
14
- in srgb,
15
- var(--stuic-color-muted-foreground) 30%,
16
- transparent
17
- );
18
- --stuic-checkout-progress-button-hover-bg: color-mix(
19
- in srgb,
20
- var(--stuic-color-muted) 20%,
21
- transparent
22
- );
7
+ --stuic-checkout-progress-past-color: var(--stuic-color-foreground);
8
+ --stuic-checkout-progress-future-color: var(--stuic-color-muted-foreground);
9
+ --stuic-checkout-progress-separator-color: var(--stuic-color-border);
10
+ --stuic-checkout-progress-button-hover-bg: var(--stuic-color-muted);
23
11
  --stuic-checkout-progress-button-radius: 0.25rem;
24
12
  }
25
13
 
@@ -23,16 +23,8 @@
23
23
  /* Error styling */
24
24
  --stuic-checkout-error-color: var(--stuic-color-destructive);
25
25
  --stuic-checkout-error-font-size: var(--text-base);
26
- --stuic-checkout-error-bg: color-mix(
27
- in srgb,
28
- var(--stuic-color-destructive) 5%,
29
- transparent
30
- );
31
- --stuic-checkout-error-border-color: color-mix(
32
- in srgb,
33
- var(--stuic-color-destructive) 30%,
34
- transparent
35
- );
26
+ --stuic-checkout-error-bg: var(--stuic-color-surface-destructive);
27
+ --stuic-checkout-error-border-color: var(--stuic-color-surface-destructive-border);
36
28
 
37
29
  /* Card sections (used in ReviewStep, OrderReview, etc.) */
38
30
  --stuic-checkout-card-border-color: var(--stuic-color-border);
@@ -160,6 +160,21 @@
160
160
  <strong>Accent Highlight</strong>
161
161
  <p>This box uses accent colors to draw attention.</p>
162
162
  </div>
163
+
164
+ <div class="highlight-box destructive">
165
+ <strong>Destructive Highlight</strong>
166
+ <p>This box uses destructive intent colors for error or danger content.</p>
167
+ </div>
168
+
169
+ <div class="highlight-box warning">
170
+ <strong>Warning Highlight</strong>
171
+ <p>This box uses warning intent colors for cautionary content.</p>
172
+ </div>
173
+
174
+ <div class="highlight-box success">
175
+ <strong>Success Highlight</strong>
176
+ <p>This box uses success intent colors for positive feedback.</p>
177
+ </div>
163
178
  </section>
164
179
 
165
180
  <!-- INTENT BUTTONS -->
@@ -385,6 +385,24 @@
385
385
  border: 1px solid var(--stuic-color-surface-accent-border);
386
386
  }
387
387
 
388
+ .stuic-theme-preview .highlight-box.destructive {
389
+ background: var(--stuic-color-surface-destructive);
390
+ color: var(--stuic-color-surface-destructive-foreground);
391
+ border: 1px solid var(--stuic-color-surface-destructive-border);
392
+ }
393
+
394
+ .stuic-theme-preview .highlight-box.warning {
395
+ background: var(--stuic-color-surface-warning);
396
+ color: var(--stuic-color-surface-warning-foreground);
397
+ border: 1px solid var(--stuic-color-surface-warning-border);
398
+ }
399
+
400
+ .stuic-theme-preview .highlight-box.success {
401
+ background: var(--stuic-color-surface-success);
402
+ color: var(--stuic-color-surface-success-foreground);
403
+ border: 1px solid var(--stuic-color-surface-success-border);
404
+ }
405
+
388
406
  /* ============================================================================
389
407
  TYPOGRAPHY SECTION
390
408
  ============================================================================ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "3.20.0",
3
+ "version": "3.21.1",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",