@deriv-web-design/ui 0.1.12 → 0.1.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/block-registry.json +19 -1
- package/components.manifest.json +18 -2
- package/dist/index.css +60 -38
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +26 -4
- package/dist/index.d.ts +26 -4
- package/dist/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/block-registry.json
CHANGED
|
@@ -1815,6 +1815,23 @@
|
|
|
1815
1815
|
"default": false,
|
|
1816
1816
|
"defaultSource": "effective"
|
|
1817
1817
|
},
|
|
1818
|
+
"steps": {
|
|
1819
|
+
"type": "array",
|
|
1820
|
+
"required": false,
|
|
1821
|
+
"description": "Numbered entries for \"steps\" blocks, rendered via the Steps template; the block's own `text` field is used as the section title.",
|
|
1822
|
+
"itemFields": {
|
|
1823
|
+
"description": {
|
|
1824
|
+
"type": "string",
|
|
1825
|
+
"required": true,
|
|
1826
|
+
"maxLength": 200
|
|
1827
|
+
},
|
|
1828
|
+
"title": {
|
|
1829
|
+
"type": "string",
|
|
1830
|
+
"required": true,
|
|
1831
|
+
"maxLength": 60
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
},
|
|
1818
1835
|
"text": {
|
|
1819
1836
|
"type": "string",
|
|
1820
1837
|
"required": false,
|
|
@@ -1828,7 +1845,8 @@
|
|
|
1828
1845
|
"paragraph",
|
|
1829
1846
|
"list",
|
|
1830
1847
|
"quote",
|
|
1831
|
-
"image"
|
|
1848
|
+
"image",
|
|
1849
|
+
"steps"
|
|
1832
1850
|
]
|
|
1833
1851
|
}
|
|
1834
1852
|
}
|
package/components.manifest.json
CHANGED
|
@@ -1407,15 +1407,20 @@
|
|
|
1407
1407
|
"required": false,
|
|
1408
1408
|
"description": "Render a \"list\" block as `<ol>` instead of `<ul>` (default: false)"
|
|
1409
1409
|
},
|
|
1410
|
+
"steps": {
|
|
1411
|
+
"type": "FeatureBlogStepItem[]",
|
|
1412
|
+
"required": false,
|
|
1413
|
+
"description": "Numbered entries for \"steps\" blocks — rendered via the Steps template"
|
|
1414
|
+
},
|
|
1410
1415
|
"text": {
|
|
1411
1416
|
"type": "string",
|
|
1412
1417
|
"required": false,
|
|
1413
|
-
"description": "Text content for \"heading\" / \"paragraph\" / \"quote\" blocks"
|
|
1418
|
+
"description": "Text content for \"heading\" / \"paragraph\" / \"quote\" blocks; section title for \"steps\" blocks"
|
|
1414
1419
|
},
|
|
1415
1420
|
"type": {
|
|
1416
1421
|
"type": "FeatureBlogContentBlockType",
|
|
1417
1422
|
"required": true,
|
|
1418
|
-
"description": "Block kind — \"heading\"/\"paragraph\"/\"quote\" use `text`, \"list\" uses `items`, \"image\" uses `image`"
|
|
1423
|
+
"description": "Block kind — \"heading\"/\"paragraph\"/\"quote\" use `text`, \"list\" uses `items`, \"image\" uses `image`, \"steps\" uses `text` (section title) + `steps`"
|
|
1419
1424
|
}
|
|
1420
1425
|
}
|
|
1421
1426
|
},
|
|
@@ -2708,6 +2713,12 @@
|
|
|
2708
2713
|
"name": "Steps",
|
|
2709
2714
|
"source": "templates/Steps/Steps.tsx",
|
|
2710
2715
|
"props": {
|
|
2716
|
+
"embedded": {
|
|
2717
|
+
"type": "boolean",
|
|
2718
|
+
"required": false,
|
|
2719
|
+
"description": "Render without the standalone page-section shell (no section background, no section-level block padding, and a `<div>` instead of a `<section>` landmark) for embedding inline inside another template's content flow, e.g. `FeatureBlogPage`'s article body (default: false).",
|
|
2720
|
+
"default": false
|
|
2721
|
+
},
|
|
2711
2722
|
"image": {
|
|
2712
2723
|
"type": "string",
|
|
2713
2724
|
"required": false,
|
|
@@ -2746,6 +2757,11 @@
|
|
|
2746
2757
|
"type": "string",
|
|
2747
2758
|
"required": true,
|
|
2748
2759
|
"description": "Section headline (H2)"
|
|
2760
|
+
},
|
|
2761
|
+
"titleId": {
|
|
2762
|
+
"type": "string",
|
|
2763
|
+
"required": false,
|
|
2764
|
+
"description": "Anchor id applied to the title `<h2>` instead of the section wrapper — lets an embedding parent (e.g. a table of contents) scroll-target the heading itself."
|
|
2749
2765
|
}
|
|
2750
2766
|
}
|
|
2751
2767
|
},
|
package/dist/index.css
CHANGED
|
@@ -1846,7 +1846,7 @@
|
|
|
1846
1846
|
font-size: var(--typography-body-md-font-size);
|
|
1847
1847
|
font-weight: var(--typography-body-md-font-weight);
|
|
1848
1848
|
line-height: var(--typography-body-md-line-height);
|
|
1849
|
-
color: var(--
|
|
1849
|
+
color: var(--text-primary);
|
|
1850
1850
|
margin: 0;
|
|
1851
1851
|
max-width: 640px;
|
|
1852
1852
|
}
|
|
@@ -2145,7 +2145,7 @@
|
|
|
2145
2145
|
font-size: var(--typography-body-md-font-size);
|
|
2146
2146
|
font-weight: var(--typography-body-md-font-weight);
|
|
2147
2147
|
line-height: var(--typography-body-md-line-height);
|
|
2148
|
-
color: var(--
|
|
2148
|
+
color: var(--text-primary);
|
|
2149
2149
|
margin: 0;
|
|
2150
2150
|
max-width: 640px;
|
|
2151
2151
|
}
|
|
@@ -2238,7 +2238,7 @@
|
|
|
2238
2238
|
align-items: flex-start;
|
|
2239
2239
|
gap: var(--spacing-16);
|
|
2240
2240
|
padding: var(--spacing-16) 0;
|
|
2241
|
-
border-bottom: 1px solid var(--color-slate-
|
|
2241
|
+
border-bottom: 1px solid var(--color-opacity-slate-8);
|
|
2242
2242
|
}
|
|
2243
2243
|
.feature-bullets__bullet-item:first-child {
|
|
2244
2244
|
padding-top: 0;
|
|
@@ -2267,7 +2267,7 @@
|
|
|
2267
2267
|
font-size: var(--typography-body-md-font-size);
|
|
2268
2268
|
font-weight: var(--typography-body-md-font-weight);
|
|
2269
2269
|
line-height: var(--typography-body-md-line-height);
|
|
2270
|
-
color: var(--
|
|
2270
|
+
color: var(--text-primary);
|
|
2271
2271
|
margin: 0;
|
|
2272
2272
|
}
|
|
2273
2273
|
.feature-bullets__image-wrapper {
|
|
@@ -2897,7 +2897,6 @@
|
|
|
2897
2897
|
line-height: var(--hero-body-lh);
|
|
2898
2898
|
color: var(--hero-text-light);
|
|
2899
2899
|
margin: 0;
|
|
2900
|
-
opacity: 0.8;
|
|
2901
2900
|
}
|
|
2902
2901
|
.hero__buttons {
|
|
2903
2902
|
display: flex;
|
|
@@ -2906,6 +2905,10 @@
|
|
|
2906
2905
|
width: 100%;
|
|
2907
2906
|
align-items: stretch;
|
|
2908
2907
|
}
|
|
2908
|
+
.hero__buttons a,
|
|
2909
|
+
.hero__buttons .button {
|
|
2910
|
+
width: 100%;
|
|
2911
|
+
}
|
|
2909
2912
|
.hero__body {
|
|
2910
2913
|
display: flex;
|
|
2911
2914
|
flex-direction: column;
|
|
@@ -2996,7 +2999,6 @@
|
|
|
2996
2999
|
}
|
|
2997
3000
|
.hero--split .hero__description {
|
|
2998
3001
|
margin-top: var(--spacing-16);
|
|
2999
|
-
opacity: 1;
|
|
3000
3002
|
}
|
|
3001
3003
|
.hero--split .hero__buttons {
|
|
3002
3004
|
align-items: stretch;
|
|
@@ -3161,6 +3163,10 @@
|
|
|
3161
3163
|
.hero__inner {
|
|
3162
3164
|
padding: var(--spacing-40) var(--spacing-24);
|
|
3163
3165
|
}
|
|
3166
|
+
.hero__buttons a,
|
|
3167
|
+
.hero__buttons .button {
|
|
3168
|
+
width: auto;
|
|
3169
|
+
}
|
|
3164
3170
|
.hero--split .hero__inner {
|
|
3165
3171
|
padding-top: var(--hero-split-padding-top-tablet);
|
|
3166
3172
|
padding-bottom: var(--spacing-40);
|
|
@@ -3924,7 +3930,7 @@
|
|
|
3924
3930
|
:root {
|
|
3925
3931
|
--fs-bg: var(--color-slate-50);
|
|
3926
3932
|
--fs-text-primary: var(--text-primary);
|
|
3927
|
-
--fs-text-muted: var(--
|
|
3933
|
+
--fs-text-muted: var(--text-primary);
|
|
3928
3934
|
--fs-link-color: var(--color-coral-700);
|
|
3929
3935
|
--fs-link-hover: var(--color-coral-800);
|
|
3930
3936
|
--fs-media-bg: transparent;
|
|
@@ -4208,7 +4214,7 @@
|
|
|
4208
4214
|
font-size: var(--typography-body-md-font-size);
|
|
4209
4215
|
font-weight: var(--typography-body-md-font-weight);
|
|
4210
4216
|
line-height: var(--typography-body-md-line-height);
|
|
4211
|
-
color: var(--
|
|
4217
|
+
color: var(--text-primary);
|
|
4212
4218
|
margin: 0;
|
|
4213
4219
|
}
|
|
4214
4220
|
.feature-split__image-wrapper {
|
|
@@ -4527,6 +4533,12 @@
|
|
|
4527
4533
|
text-align: center;
|
|
4528
4534
|
padding: var(--spacing-48) 0;
|
|
4529
4535
|
}
|
|
4536
|
+
@media (max-width: 991px) {
|
|
4537
|
+
.ctab__hero a,
|
|
4538
|
+
.ctab__hero .button {
|
|
4539
|
+
width: 100%;
|
|
4540
|
+
}
|
|
4541
|
+
}
|
|
4530
4542
|
.ctab__headline {
|
|
4531
4543
|
margin: 0;
|
|
4532
4544
|
font-family: var(--typography-h1-font-family);
|
|
@@ -5909,9 +5921,10 @@
|
|
|
5909
5921
|
--steps-bg: var(--color-slate-50);
|
|
5910
5922
|
--steps-title-color: var(--text-primary);
|
|
5911
5923
|
--steps-number-color: var(--color-coral-700);
|
|
5924
|
+
--steps-number-size: var(--spacing-40);
|
|
5912
5925
|
--steps-item-title-color: var(--text-primary);
|
|
5913
|
-
--steps-item-desc-color: var(--
|
|
5914
|
-
--steps-divider-color: var(--color-slate-
|
|
5926
|
+
--steps-item-desc-color: var(--text-primary);
|
|
5927
|
+
--steps-divider-color: var(--color-opacity-slate-8);
|
|
5915
5928
|
}
|
|
5916
5929
|
.steps {
|
|
5917
5930
|
width: 100%;
|
|
@@ -5919,6 +5932,12 @@
|
|
|
5919
5932
|
font-family: var(--font-family-base);
|
|
5920
5933
|
box-sizing: border-box;
|
|
5921
5934
|
}
|
|
5935
|
+
.steps--embedded {
|
|
5936
|
+
background-color: transparent;
|
|
5937
|
+
}
|
|
5938
|
+
.steps--embedded .steps__title {
|
|
5939
|
+
scroll-margin-top: var(--spacing-96);
|
|
5940
|
+
}
|
|
5922
5941
|
.steps__container {
|
|
5923
5942
|
max-width: var(--content-width-1280);
|
|
5924
5943
|
margin: 0 auto;
|
|
@@ -5939,6 +5958,9 @@
|
|
|
5939
5958
|
flex-direction: row-reverse;
|
|
5940
5959
|
}
|
|
5941
5960
|
}
|
|
5961
|
+
.steps--embedded .steps__container {
|
|
5962
|
+
padding: 0;
|
|
5963
|
+
}
|
|
5942
5964
|
.steps__image-wrapper {
|
|
5943
5965
|
width: 100%;
|
|
5944
5966
|
aspect-ratio: 1 / 1;
|
|
@@ -6002,13 +6024,12 @@
|
|
|
6002
6024
|
}
|
|
6003
6025
|
.steps__number {
|
|
6004
6026
|
font-family: var(--font-family-base);
|
|
6005
|
-
font-size: var(--
|
|
6027
|
+
font-size: var(--steps-number-size);
|
|
6006
6028
|
font-weight: var(--font-weight-extra-bold);
|
|
6007
|
-
line-height:
|
|
6029
|
+
line-height: 1;
|
|
6008
6030
|
color: var(--steps-number-color);
|
|
6009
6031
|
flex-shrink: 0;
|
|
6010
|
-
min-width: var(--
|
|
6011
|
-
padding-top: 2px;
|
|
6032
|
+
min-width: var(--steps-number-size);
|
|
6012
6033
|
}
|
|
6013
6034
|
.steps__item-body {
|
|
6014
6035
|
display: flex;
|
|
@@ -6016,10 +6037,10 @@
|
|
|
6016
6037
|
gap: var(--spacing-4);
|
|
6017
6038
|
}
|
|
6018
6039
|
.steps__item-title {
|
|
6019
|
-
font-family: var(--typography-
|
|
6020
|
-
font-size: var(--typography-
|
|
6021
|
-
font-weight: var(--typography-
|
|
6022
|
-
line-height: var(--typography-
|
|
6040
|
+
font-family: var(--typography-h6-font-family);
|
|
6041
|
+
font-size: var(--typography-h6-font-size);
|
|
6042
|
+
font-weight: var(--typography-h6-font-weight);
|
|
6043
|
+
line-height: var(--typography-h6-line-height);
|
|
6023
6044
|
color: var(--steps-item-title-color);
|
|
6024
6045
|
margin: 0;
|
|
6025
6046
|
}
|
|
@@ -6349,7 +6370,7 @@
|
|
|
6349
6370
|
font-size: var(--typography-body-lg-font-size);
|
|
6350
6371
|
font-weight: var(--typography-body-lg-font-weight);
|
|
6351
6372
|
line-height: var(--typography-body-lg-line-height);
|
|
6352
|
-
color: var(--
|
|
6373
|
+
color: var(--smc-header-color);
|
|
6353
6374
|
margin: 0;
|
|
6354
6375
|
max-width: 640px;
|
|
6355
6376
|
}
|
|
@@ -6461,7 +6482,7 @@
|
|
|
6461
6482
|
/* templates/Table/Table.css */
|
|
6462
6483
|
:root {
|
|
6463
6484
|
--tbl-bg: var(--color-slate-50);
|
|
6464
|
-
--tbl-border: var(--color-slate-
|
|
6485
|
+
--tbl-border: var(--color-opacity-slate-8);
|
|
6465
6486
|
--tbl-header-bg: var(--color-slate-75);
|
|
6466
6487
|
--tbl-row-hover-bg: var(--color-slate-75);
|
|
6467
6488
|
--tbl-text: var(--text-primary);
|
|
@@ -6772,7 +6793,7 @@
|
|
|
6772
6793
|
--dtbl-section-bg: var(--color-slate-75);
|
|
6773
6794
|
--dtbl-bg: var(--color-slate-50);
|
|
6774
6795
|
--dtbl-header-bg: var(--color-slate-75);
|
|
6775
|
-
--dtbl-border: var(--color-slate-
|
|
6796
|
+
--dtbl-border: var(--color-opacity-slate-8);
|
|
6776
6797
|
--dtbl-text: var(--text-primary);
|
|
6777
6798
|
--dtbl-font-family: var(--font-family-base);
|
|
6778
6799
|
--dtbl-radius: var(--radius-2xl);
|
|
@@ -6949,7 +6970,7 @@
|
|
|
6949
6970
|
font-size: var(--typography-h2-font-size);
|
|
6950
6971
|
font-weight: var(--typography-h2-font-weight);
|
|
6951
6972
|
line-height: var(--typography-h2-line-height);
|
|
6952
|
-
color: var(--
|
|
6973
|
+
color: var(--text-primary);
|
|
6953
6974
|
margin: 0;
|
|
6954
6975
|
}
|
|
6955
6976
|
.avatar-grid__description {
|
|
@@ -6957,7 +6978,7 @@
|
|
|
6957
6978
|
font-size: var(--typography-body-lg-font-size);
|
|
6958
6979
|
font-weight: var(--typography-body-lg-font-weight);
|
|
6959
6980
|
line-height: var(--typography-body-lg-line-height);
|
|
6960
|
-
color: var(--
|
|
6981
|
+
color: var(--text-primary);
|
|
6961
6982
|
margin: 0;
|
|
6962
6983
|
}
|
|
6963
6984
|
.avatar-grid__grid-wrapper {
|
|
@@ -7221,7 +7242,6 @@
|
|
|
7221
7242
|
line-height: var(--typography-body-md-line-height);
|
|
7222
7243
|
color: var(--color-slate-50);
|
|
7223
7244
|
margin: 0;
|
|
7224
|
-
opacity: 0.9;
|
|
7225
7245
|
max-width: 42ch;
|
|
7226
7246
|
}
|
|
7227
7247
|
.image-banner__actions {
|
|
@@ -7298,10 +7318,10 @@
|
|
|
7298
7318
|
--testimonial-card-radius: 2rem;
|
|
7299
7319
|
--testimonial-card-shadow: none;
|
|
7300
7320
|
--testimonial-card-min-height: 416px;
|
|
7301
|
-
--testimonial-title-color: var(--
|
|
7302
|
-
--testimonial-quote-color: var(--
|
|
7303
|
-
--testimonial-author-name-color: var(--
|
|
7304
|
-
--testimonial-author-location-color: var(--
|
|
7321
|
+
--testimonial-title-color: var(--text-primary);
|
|
7322
|
+
--testimonial-quote-color: var(--text-primary);
|
|
7323
|
+
--testimonial-author-name-color: var(--text-primary);
|
|
7324
|
+
--testimonial-author-location-color: var(--text-primary);
|
|
7305
7325
|
--testimonial-dot-color: var(--color-slate-300);
|
|
7306
7326
|
--testimonial-dot-active-color: var(--color-slate-1200);
|
|
7307
7327
|
--testimonial-quotemark-color: var(--color-slate-200);
|
|
@@ -7310,8 +7330,8 @@
|
|
|
7310
7330
|
--testimonial-trustpilot-card-radius: var(--radius-xl);
|
|
7311
7331
|
--testimonial-trustpilot-card-shadow: var(--shadow-sm);
|
|
7312
7332
|
--testimonial-trustpilot-card-shadow-hover: var(--shadow-md);
|
|
7313
|
-
--testimonial-trustpilot-quote-color: var(--
|
|
7314
|
-
--testimonial-trustpilot-author-color: var(--
|
|
7333
|
+
--testimonial-trustpilot-quote-color: var(--text-primary);
|
|
7334
|
+
--testimonial-trustpilot-author-color: var(--text-primary);
|
|
7315
7335
|
--testimonial-trustpilot-star-empty: #dcdce6;
|
|
7316
7336
|
--testimonial-trustpilot-star-glyph: #ffffff;
|
|
7317
7337
|
--testimonial-trustpilot-nav-border: var(--color-slate-300);
|
|
@@ -8417,8 +8437,8 @@
|
|
|
8417
8437
|
--fa-bg: var(--color-slate-50);
|
|
8418
8438
|
--fa-max-width: var(--content-width-1280);
|
|
8419
8439
|
--fa-title-color: var(--text-primary);
|
|
8420
|
-
--fa-item-title-color: var(--
|
|
8421
|
-
--fa-item-subtitle-color: var(--
|
|
8440
|
+
--fa-item-title-color: var(--text-primary);
|
|
8441
|
+
--fa-item-subtitle-color: var(--text-primary);
|
|
8422
8442
|
--fa-item-basis: 12.5rem;
|
|
8423
8443
|
--fa-item-max: 16rem;
|
|
8424
8444
|
--fa-item-gap-x: var(--spacing-24);
|
|
@@ -8806,7 +8826,7 @@
|
|
|
8806
8826
|
font-size: var(--typography-body-md-font-size);
|
|
8807
8827
|
font-weight: var(--typography-body-md-font-weight);
|
|
8808
8828
|
line-height: var(--typography-body-md-line-height);
|
|
8809
|
-
color: var(--
|
|
8829
|
+
color: var(--text-primary);
|
|
8810
8830
|
margin: 0;
|
|
8811
8831
|
max-width: 640px;
|
|
8812
8832
|
}
|
|
@@ -9491,6 +9511,9 @@
|
|
|
9491
9511
|
margin: 0;
|
|
9492
9512
|
width: 100%;
|
|
9493
9513
|
}
|
|
9514
|
+
.fbp-blockSteps {
|
|
9515
|
+
width: 100%;
|
|
9516
|
+
}
|
|
9494
9517
|
.fbp-blockImage {
|
|
9495
9518
|
display: block;
|
|
9496
9519
|
width: 100%;
|
|
@@ -9753,7 +9776,6 @@
|
|
|
9753
9776
|
line-height: var(--typography-body-md-line-height);
|
|
9754
9777
|
color: var(--color-slate-50);
|
|
9755
9778
|
margin: 0;
|
|
9756
|
-
opacity: 0.9;
|
|
9757
9779
|
max-width: 42ch;
|
|
9758
9780
|
}
|
|
9759
9781
|
.parallax-banner__actions {
|
|
@@ -9826,7 +9848,7 @@
|
|
|
9826
9848
|
font-size: var(--typography-body-md-font-size);
|
|
9827
9849
|
font-weight: var(--typography-body-md-font-weight);
|
|
9828
9850
|
line-height: var(--typography-body-md-line-height);
|
|
9829
|
-
color: var(--
|
|
9851
|
+
color: var(--text-primary);
|
|
9830
9852
|
margin: 0;
|
|
9831
9853
|
}
|
|
9832
9854
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -9971,7 +9993,7 @@
|
|
|
9971
9993
|
display: flex;
|
|
9972
9994
|
flex-direction: column;
|
|
9973
9995
|
padding: var(--spacing-12) var(--spacing-16) var(--spacing-8);
|
|
9974
|
-
border-bottom: 1px solid var(--color-slate-
|
|
9996
|
+
border-bottom: 1px solid var(--color-opacity-slate-8);
|
|
9975
9997
|
cursor: pointer;
|
|
9976
9998
|
}
|
|
9977
9999
|
.tcalc-dropdownGroup:last-child .tcalc-dropdownOption:last-child {
|
|
@@ -10115,7 +10137,7 @@
|
|
|
10115
10137
|
font-family: var(--font-family-base);
|
|
10116
10138
|
font-size: var(--typography-body-lg-font-size);
|
|
10117
10139
|
line-height: var(--typography-body-lg-line-height);
|
|
10118
|
-
color: var(--text-
|
|
10140
|
+
color: var(--text-primary);
|
|
10119
10141
|
margin: 0;
|
|
10120
10142
|
}
|
|
10121
10143
|
.tchow-tabs {
|
|
@@ -10352,7 +10374,7 @@
|
|
|
10352
10374
|
font-size: var(--typography-body-md-font-size);
|
|
10353
10375
|
font-weight: var(--typography-body-md-font-weight);
|
|
10354
10376
|
line-height: var(--typography-body-md-line-height);
|
|
10355
|
-
color: var(--
|
|
10377
|
+
color: var(--text-primary);
|
|
10356
10378
|
margin: 0;
|
|
10357
10379
|
}
|
|
10358
10380
|
.fo-linkWrap {
|