@deriv-web-design/ui 0.0.12 → 0.0.13

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/dist/index.css CHANGED
@@ -1444,7 +1444,7 @@
1444
1444
  font-family: var(--font-family-base);
1445
1445
  font-size: var(--font-size-sm);
1446
1446
  font-weight: var(--font-weight-regular);
1447
- line-height: 1.375rem;
1447
+ line-height: var(--line-height-sm);
1448
1448
  text-align: center;
1449
1449
  white-space: nowrap;
1450
1450
  cursor: pointer;
@@ -1472,7 +1472,7 @@
1472
1472
  font-family: var(--font-family-base);
1473
1473
  font-size: var(--font-size-sm);
1474
1474
  font-weight: var(--font-weight-regular);
1475
- line-height: 1.375rem;
1475
+ line-height: var(--line-height-sm);
1476
1476
  user-select: none;
1477
1477
  }
1478
1478
  .pagination .navButton {
@@ -1542,10 +1542,10 @@
1542
1542
  }
1543
1543
  }
1544
1544
  .fc-sectionTitle {
1545
- font-family: var(--font-family-base);
1546
- font-size: var(--font-size-4xl);
1547
- font-weight: var(--font-weight-extra-bold);
1548
- line-height: var(--line-height-4xl);
1545
+ font-family: var(--typography-h2-font-family);
1546
+ font-size: var(--typography-h2-font-size);
1547
+ font-weight: var(--typography-h2-font-weight);
1548
+ line-height: var(--typography-h2-line-height);
1549
1549
  color: var(--color-slate-1200);
1550
1550
  margin: 0;
1551
1551
  }
@@ -2056,14 +2056,14 @@
2056
2056
  --hero-light-bg: var(--color-slate-75);
2057
2057
  --hero-text-light: var(--color-slate-50);
2058
2058
  --hero-text-dark: var(--color-slate-1200);
2059
- --hero-subtitle-size: var(--font-size-md);
2060
- --hero-subtitle-lh: var(--line-height-md);
2061
- --hero-title-size-mobile: var(--font-size-4xl);
2062
- --hero-title-lh-mobile: var(--line-height-4xl);
2063
- --hero-title-size: var(--font-size-5xl);
2064
- --hero-title-lh: var(--line-height-5xl);
2065
- --hero-body-size: var(--font-size-sm);
2066
- --hero-body-lh: var(--line-height-md);
2059
+ --hero-subtitle-size: var(--typography-body-md-font-size);
2060
+ --hero-subtitle-lh: var(--typography-body-md-line-height);
2061
+ --hero-title-size-mobile: var(--typography-h2-font-size);
2062
+ --hero-title-lh-mobile: var(--typography-h2-line-height);
2063
+ --hero-title-size: var(--typography-h1-font-size);
2064
+ --hero-title-lh: var(--typography-h1-line-height);
2065
+ --hero-body-size: var(--typography-body-sm-font-size);
2066
+ --hero-body-lh: var(--typography-body-md-line-height);
2067
2067
  }
2068
2068
  .hero {
2069
2069
  position: relative;
@@ -2105,19 +2105,19 @@
2105
2105
  }
2106
2106
  .hero__subtitle {
2107
2107
  font-size: var(--hero-subtitle-size);
2108
- font-weight: var(--font-weight-extra-bold);
2108
+ font-weight: var(--typography-h2-font-weight);
2109
2109
  line-height: var(--hero-subtitle-lh);
2110
2110
  margin: 0;
2111
2111
  }
2112
2112
  .hero__title {
2113
2113
  font-size: var(--hero-title-size-mobile);
2114
- font-weight: var(--font-weight-extra-bold);
2114
+ font-weight: var(--typography-h1-font-weight);
2115
2115
  line-height: var(--hero-title-lh-mobile);
2116
2116
  margin: 0;
2117
2117
  }
2118
2118
  .hero__description {
2119
2119
  font-size: var(--hero-body-size);
2120
- font-weight: var(--font-weight-regular);
2120
+ font-weight: var(--typography-body-sm-font-weight);
2121
2121
  line-height: var(--hero-body-lh);
2122
2122
  margin: 0;
2123
2123
  }
@@ -2381,12 +2381,12 @@
2381
2381
  gap: var(--spacing-32);
2382
2382
  }
2383
2383
  .hero--homepage .hero__subtitle {
2384
- font-size: var(--font-size-2xl);
2385
- line-height: var(--line-height-xl);
2384
+ font-size: var(--typography-h4-font-size);
2385
+ line-height: var(--typography-h5-line-height);
2386
2386
  }
2387
2387
  .hero--homepage .hero__title {
2388
- font-size: var(--font-size-5xl);
2389
- line-height: var(--line-height-5xl);
2388
+ font-size: var(--typography-h1-font-size);
2389
+ line-height: var(--typography-h1-line-height);
2390
2390
  }
2391
2391
  .hero--homepage .hero__image-slot {
2392
2392
  position: absolute;
@@ -2473,10 +2473,10 @@
2473
2473
  --stats-bg: var(--color-slate-50);
2474
2474
  --stats-card-bg: var(--color-slate-75);
2475
2475
  --stats-text-primary: var(--color-slate-1200);
2476
- --stats-title-size: var(--font-size-4xl);
2477
- --stats-title-lh: var(--line-height-4xl);
2478
- --stats-desc-size: var(--font-size-md);
2479
- --stats-desc-lh: var(--line-height-md);
2476
+ --stats-title-size: var(--typography-h2-font-size);
2477
+ --stats-title-lh: var(--typography-h2-line-height);
2478
+ --stats-desc-size: var(--typography-body-md-font-size);
2479
+ --stats-desc-lh: var(--typography-body-md-line-height);
2480
2480
  --stats-value-size: var(--font-size-3xl);
2481
2481
  --stats-value-lh: var(--line-height-3xl);
2482
2482
  --stats-value-featured-size: var(--font-size-5xl);
@@ -2576,7 +2576,7 @@
2576
2576
  .stats__stat--active .stats__stat-value {
2577
2577
  font-size: var(--stats-value-featured-size);
2578
2578
  line-height: var(--stats-value-featured-lh);
2579
- font-weight: 900;
2579
+ font-weight: var(--font-weight-extra-bold);
2580
2580
  }
2581
2581
  .stats__stat--inactive .stats__stat-value {
2582
2582
  font-size: var(--stats-value-size);
@@ -2700,28 +2700,20 @@
2700
2700
  --scrolly-link-color: var(--color-coral-500);
2701
2701
  --scrolly-link-hover: var(--color-coral-600);
2702
2702
  --scrolly-media-bg: var(--color-slate-200);
2703
- --scrolly-header-size: var(--font-size-3xl);
2704
- --scrolly-header-lh: var(--line-height-3xl);
2705
- --scrolly-title-size: var(--font-size-2xl);
2706
- --scrolly-title-lh: var(--line-height-2xl);
2707
- --scrolly-body-size: var(--font-size-md);
2708
- --scrolly-body-lh: var(--line-height-md);
2709
- --scrolly-link-size: var(--font-size-md);
2710
- --scrolly-link-lh: var(--line-height-sm);
2703
+ --scrolly-header-size: var(--typography-h2-font-size);
2704
+ --scrolly-header-lh: var(--typography-h2-line-height);
2705
+ --scrolly-title-size: var(--typography-h3-font-size);
2706
+ --scrolly-title-lh: var(--typography-h3-line-height);
2707
+ --scrolly-body-size: var(--typography-body-md-font-size);
2708
+ --scrolly-body-lh: var(--typography-body-md-line-height);
2709
+ --scrolly-link-size: var(--typography-link-md-font-size);
2710
+ --scrolly-link-lh: var(--typography-link-md-line-height);
2711
2711
  --scrolly-col-gap: var(--spacing-112);
2712
2712
  --scrolly-media-radius: var(--radius-2xl);
2713
2713
  --scrolly-mobile-radius: var(--radius-2xl);
2714
2714
  --scrolly-item-min-height: 60vh;
2715
2715
  --scrolly-sticky-top: var(--spacing-80);
2716
2716
  }
2717
- @media (min-width: 992px) {
2718
- :root {
2719
- --scrolly-header-size: var(--font-size-4xl);
2720
- --scrolly-header-lh: var(--line-height-4xl);
2721
- --scrolly-title-size: var(--font-size-3xl);
2722
- --scrolly-title-lh: var(--line-height-3xl);
2723
- }
2724
- }
2725
2717
  .scrolly {
2726
2718
  width: 100%;
2727
2719
  background-color: var(--scrolly-bg);
@@ -2910,12 +2902,12 @@
2910
2902
  --ssc-card-coral-text: var(--color-slate-50);
2911
2903
  --ssc-card-dark-bg: var(--color-slate-1200);
2912
2904
  --ssc-card-dark-text: var(--color-slate-50);
2913
- --ssc-header-size: var(--font-size-4xl);
2914
- --ssc-header-lh: var(--line-height-4xl);
2915
- --ssc-title-size: var(--font-size-3xl);
2916
- --ssc-title-lh: var(--line-height-3xl);
2917
- --ssc-body-size: var(--font-size-md);
2918
- --ssc-body-lh: var(--line-height-md);
2905
+ --ssc-header-size: var(--typography-h2-font-size);
2906
+ --ssc-header-lh: var(--typography-h2-line-height);
2907
+ --ssc-title-size: var(--typography-h3-font-size);
2908
+ --ssc-title-lh: var(--typography-h3-line-height);
2909
+ --ssc-body-size: var(--typography-body-md-font-size);
2910
+ --ssc-body-lh: var(--typography-body-md-line-height);
2919
2911
  --ssc-card-radius: var(--radius-2xl);
2920
2912
  --ssc-content-gap: var(--spacing-24);
2921
2913
  --ssc-sticky-top: var(--spacing-80);
@@ -3182,10 +3174,10 @@
3182
3174
  }
3183
3175
  .ctab__headline {
3184
3176
  margin: 0;
3185
- font-family: var(--font-family-base);
3186
- font-size: var(--font-size-5xl);
3187
- font-weight: var(--font-weight-extra-bold);
3188
- line-height: var(--line-height-5xl);
3177
+ font-family: var(--typography-h1-font-family);
3178
+ font-size: var(--typography-h1-font-size);
3179
+ font-weight: var(--typography-h1-font-weight);
3180
+ line-height: var(--typography-h1-line-height);
3189
3181
  color: var(--color-slate-50);
3190
3182
  }
3191
3183
  .ctab__avatar {
@@ -3368,6 +3360,106 @@
3368
3360
  .navbar--dark .navbar__pill .navbar__lang-globe {
3369
3361
  filter: brightness(0) invert(1);
3370
3362
  }
3363
+ .navbar__lang-wrapper {
3364
+ position: relative;
3365
+ }
3366
+ .navbar__lang-dropdown {
3367
+ position: absolute;
3368
+ top: calc(100% + var(--spacing-8));
3369
+ left: calc(50% - 352px);
3370
+ width: 704px;
3371
+ background-color: var(--color-slate-50);
3372
+ border: 1px solid var(--color-slate-100);
3373
+ border-radius: var(--navbar-dropdown-radius);
3374
+ box-shadow: 0px 8px 16px 2px rgba(0, 0, 0, 0.04), 0px -14px 16px 2px rgba(0, 0, 0, 0.02);
3375
+ padding: var(--spacing-24) var(--spacing-32);
3376
+ z-index: var(--navbar-z-dropdown);
3377
+ box-sizing: border-box;
3378
+ overflow: hidden;
3379
+ }
3380
+ .navbar__lang-dropdown-grid {
3381
+ display: grid;
3382
+ grid-template-columns: repeat(3, 1fr);
3383
+ grid-auto-flow: column;
3384
+ grid-template-rows: repeat(var(--lang-rows, 7), auto);
3385
+ gap: 0;
3386
+ }
3387
+ .navbar__lang-dropdown-item {
3388
+ display: block;
3389
+ width: 100%;
3390
+ padding: var(--spacing-8) 0;
3391
+ border: none;
3392
+ background: transparent;
3393
+ font-family: var(--font-family-base);
3394
+ font-size: var(--font-size-sm);
3395
+ font-weight: var(--font-weight-regular);
3396
+ line-height: var(--line-height-md);
3397
+ color: var(--color-slate-1200);
3398
+ text-align: left;
3399
+ cursor: pointer;
3400
+ transition: color 120ms ease;
3401
+ box-sizing: border-box;
3402
+ white-space: nowrap;
3403
+ }
3404
+ .navbar__lang-dropdown-item:hover {
3405
+ color: #ff444f;
3406
+ }
3407
+ .navbar__lang-dropdown-item--active {
3408
+ color: #ff444f;
3409
+ font-weight: var(--font-weight-semi-bold);
3410
+ }
3411
+ .navbar__drawer-lang-panel {
3412
+ position: absolute;
3413
+ inset: 0;
3414
+ background-color: var(--color-slate-50);
3415
+ display: flex;
3416
+ flex-direction: column;
3417
+ padding: 0 var(--spacing-24);
3418
+ overflow-y: auto;
3419
+ z-index: 1;
3420
+ }
3421
+ .navbar__drawer-lang-back {
3422
+ display: flex;
3423
+ align-items: center;
3424
+ justify-content: flex-start;
3425
+ width: 2.5rem;
3426
+ height: 2.5rem;
3427
+ border: none;
3428
+ background: transparent;
3429
+ color: var(--color-slate-1200);
3430
+ cursor: pointer;
3431
+ padding: 0;
3432
+ margin: var(--spacing-8) 0;
3433
+ flex-shrink: 0;
3434
+ }
3435
+ .navbar__drawer-lang-grid {
3436
+ display: grid;
3437
+ grid-template-columns: repeat(2, 1fr);
3438
+ gap: 0;
3439
+ padding: var(--spacing-8) 0 var(--spacing-16);
3440
+ }
3441
+ .navbar__drawer-lang-item {
3442
+ display: block;
3443
+ width: 100%;
3444
+ padding: var(--spacing-12) 0;
3445
+ border: none;
3446
+ background: transparent;
3447
+ font-family: var(--font-family-base);
3448
+ font-size: var(--font-size-md);
3449
+ font-weight: var(--font-weight-regular);
3450
+ line-height: var(--line-height-md);
3451
+ color: var(--color-slate-1200);
3452
+ text-align: left;
3453
+ cursor: pointer;
3454
+ transition: color 120ms ease;
3455
+ }
3456
+ .navbar__drawer-lang-item:hover {
3457
+ color: #ff444f;
3458
+ }
3459
+ .navbar__drawer-lang-item--active {
3460
+ color: #ff444f;
3461
+ font-weight: var(--font-weight-semi-bold);
3462
+ }
3371
3463
  .navbar__actions {
3372
3464
  grid-column: 3;
3373
3465
  grid-row: 1;
@@ -3683,8 +3775,8 @@
3683
3775
  background-color: var(--color-slate-50);
3684
3776
  }
3685
3777
  .navbar__drawer-panel-cols {
3686
- display: flex;
3687
- flex-direction: column;
3778
+ display: grid;
3779
+ grid-template-columns: repeat(2, 1fr);
3688
3780
  gap: var(--spacing-16);
3689
3781
  }
3690
3782
  .navbar__drawer-panel-col {
@@ -3893,9 +3985,9 @@
3893
3985
 
3894
3986
  /* templates/DayNightTransition/DayNightTransition.css */
3895
3987
  :root {
3896
- --dnt-headline-size: var(--font-size-4xl);
3897
- --dnt-headline-lh: var(--line-height-4xl);
3898
- --dnt-headline-weight: var(--font-weight-extra-bold);
3988
+ --dnt-headline-size: var(--typography-h2-font-size);
3989
+ --dnt-headline-lh: var(--typography-h2-line-height);
3990
+ --dnt-headline-weight: var(--typography-h2-font-weight);
3899
3991
  --dnt-text-day: var(--color-slate-1400);
3900
3992
  --dnt-text-night: var(--color-slate-50);
3901
3993
  --dnt-btn-bg: var(--color-coral-500);
@@ -3911,9 +4003,9 @@
3911
4003
  --dnt-content-max-width: 37.5rem;
3912
4004
  --dnt-content-py: var(--spacing-80);
3913
4005
  --dnt-content-px: var(--spacing-16);
3914
- --dnt-desc-size: var(--font-size-md);
3915
- --dnt-desc-lh: var(--line-height-md);
3916
- --dnt-desc-weight: var(--font-weight-regular);
4006
+ --dnt-desc-size: var(--typography-body-md-font-size);
4007
+ --dnt-desc-lh: var(--typography-body-md-line-height);
4008
+ --dnt-desc-weight: var(--typography-body-md-font-weight);
3917
4009
  --dnt-gap: var(--spacing-16);
3918
4010
  }
3919
4011
  @media (min-width: 992px) {
@@ -4038,21 +4130,21 @@
4038
4130
  --pm-carousel-height: 39.375rem;
4039
4131
  --pm-carousel-height-mob: 20.5rem;
4040
4132
  --pm-fade-height: var(--spacing-64);
4041
- --pm-headline-size: var(--font-size-4xl);
4042
- --pm-headline-lh: var(--line-height-4xl);
4133
+ --pm-headline-size: var(--typography-h2-font-size);
4134
+ --pm-headline-lh: var(--typography-h2-line-height);
4043
4135
  --pm-headline-color: var(--color-slate-50);
4044
- --pm-headline-weight: var(--font-weight-extra-bold);
4045
- --pm-body-size: var(--font-size-md);
4046
- --pm-body-lh: var(--line-height-md);
4136
+ --pm-headline-weight: var(--typography-h2-font-weight);
4137
+ --pm-body-size: var(--typography-body-md-font-size);
4138
+ --pm-body-lh: var(--typography-body-md-line-height);
4047
4139
  --pm-body-color: var(--color-slate-50);
4048
- --pm-body-weight: var(--font-weight-regular);
4049
- --pm-disc-size: var(--font-size-sm);
4050
- --pm-disc-lh: var(--line-height-sm);
4140
+ --pm-body-weight: var(--typography-body-md-font-weight);
4141
+ --pm-disc-size: var(--typography-body-sm-font-size);
4142
+ --pm-disc-lh: var(--typography-body-sm-line-height);
4051
4143
  --pm-disc-color: var(--color-slate-400);
4052
- --pm-disc-weight: var(--font-weight-regular);
4144
+ --pm-disc-weight: var(--typography-body-sm-font-weight);
4053
4145
  --pm-link-color: var(--color-coral-500);
4054
- --pm-link-size: var(--font-size-md);
4055
- --pm-link-weight: var(--font-weight-semi-bold);
4146
+ --pm-link-size: var(--typography-link-md-font-size);
4147
+ --pm-link-weight: var(--typography-link-md-font-weight);
4056
4148
  --pm-text-width: 32.625rem;
4057
4149
  --pm-section-py-mobile: var(--spacing-48);
4058
4150
  --pm-section-px-mobile: var(--spacing-16);