@deriv-web-design/ui 0.1.28 → 0.1.30

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.
@@ -4793,8 +4793,8 @@
4793
4793
  "name": "Navbar",
4794
4794
  "component": "Navbar",
4795
4795
  "category": "chrome",
4796
- "description": "Global site header with logo, mega-nav dropdowns, language picker, login, and primary open-account CTA.",
4797
- "purpose": "Global site header for marketing pages: brand logo, primary navigation (with optional mega-dropdowns), language picker, Log in, and Open account CTA. Themes adapt to light or dark content beneath. This block is designed as fixed page chrome — not a mid-page content section.",
4796
+ "description": "Global site header with logo, mega-nav dropdowns, language picker, login, and primary open-account CTA. Desktop dual logo/CTA copies for the scroll pill transition; inactive copy is inert (out of tab order / a11y tree).",
4797
+ "purpose": "Global site header for marketing pages: brand logo, primary navigation (with optional mega-dropdowns), language picker, Log in, and Open account CTA. Themes adapt to light or dark content beneath. This block is designed as fixed page chrome — not a mid-page content section. On desktop (≥992px) the logo and auth CTAs exist in two visual copies (outer bar vs condensed pill) so the scroll transition can crossfade. The inactive copy is marked `inert` — it is removed from the keyboard tab order and the accessibility tree — so consumers must not add their own `tabindex`/`aria-hidden` workarounds for “hidden” navbar CTAs, and must not treat missing focus rings on those copies as a `Button` defect (visible buttons already ship a `:focus-visible` ring).",
4798
4798
  "keywords": [
4799
4799
  "navigation",
4800
4800
  "navbar",
@@ -5822,8 +5822,8 @@
5822
5822
  "name": "Sticky Market Cards",
5823
5823
  "component": "StickyMarketCards",
5824
5824
  "category": "cards",
5825
- "description": "Scroll-driven stack of overlapping market cards that pile up via position sticky, scaling and dimming as each card slides over the previous one. Default cards use a tinted background image; the lottie variant places a manual-play animation beside stacked title and copy (tactical indices).",
5826
- "purpose": "A scroll-driven stack of overlapping, text-first market cards. Each card piles on top of the previous one via `position: sticky` as the user scrolls, scaling down and dimming the card underneath for a layered depth effect. This block is designed to showcase a list of markets, products, or benefits one at a time as the user scrolls, with a maximum of 4 cards visibly stacked at once regardless of total count. The `lottie` variant swaps the background image for a manual-play animation panel beside the copy — the same pattern as tactical indices cards on the live site.",
5825
+ "description": "Scroll-driven stack of overlapping, text-first market cards that pile up via position sticky, scaling and dimming as each card slides over the previous one.",
5826
+ "purpose": "A scroll-driven stack of overlapping, text-first market cards. Each card piles on top of the previous one via `position: sticky` as the user scrolls, scaling down and dimming the card underneath for a layered depth effect. This block is designed to showcase a list of markets, products, or benefits one at a time as the user scrolls, with a maximum of 4 cards visibly stacked at once regardless of total count.",
5827
5827
  "keywords": [
5828
5828
  "sticky",
5829
5829
  "cards",
@@ -5837,10 +5837,7 @@
5837
5837
  "synthetics",
5838
5838
  "cfd",
5839
5839
  "trading",
5840
- "deriv",
5841
- "lottie",
5842
- "tactical",
5843
- "animation"
5840
+ "deriv"
5844
5841
  ],
5845
5842
  "sectionType": "sticky-cards",
5846
5843
  "global": false,
@@ -5849,12 +5846,10 @@
5849
5846
  "items"
5850
5847
  ],
5851
5848
  "optionalFields": [
5852
- "sectionDescription",
5853
- "variant"
5849
+ "sectionDescription"
5854
5850
  ],
5855
5851
  "variants": [
5856
- "default",
5857
- "lottie"
5852
+ "default"
5858
5853
  ],
5859
5854
  "recommendedPosition": 3,
5860
5855
  "placement": [
@@ -5873,21 +5868,15 @@
5873
5868
  "cardImage": true,
5874
5869
  "cardThemes": true,
5875
5870
  "scrollAnimation": true,
5876
- "lottie": true,
5877
- "manualPlayback": true,
5878
5871
  "primaryButton": false,
5879
5872
  "secondaryButton": false,
5880
5873
  "badge": false,
5881
5874
  "avatar": false
5882
5875
  },
5883
5876
  "imageRoles": [
5884
- "card-background",
5885
- "animation",
5886
- "poster"
5877
+ "card-background"
5887
5878
  ],
5888
- "defaultValues": {
5889
- "variant": "default"
5890
- },
5879
+ "defaultValues": {},
5891
5880
  "fields": {
5892
5881
  "items": {
5893
5882
  "type": "array",
@@ -5896,22 +5885,11 @@
5896
5885
  "description": {
5897
5886
  "type": "string",
5898
5887
  "required": true,
5899
- "maxLength": 300
5888
+ "maxLength": 150
5900
5889
  },
5901
5890
  "imageUrl": {
5902
5891
  "type": "image",
5903
- "required": false,
5904
- "description": "Background image for the default variant. Ignored when variant is \"lottie\"."
5905
- },
5906
- "lottiePosterUrl": {
5907
- "type": "image",
5908
- "required": false,
5909
- "description": "Optional still frame while the Lottie is paused or loading."
5910
- },
5911
- "lottieSrc": {
5912
- "type": "string",
5913
- "required": false,
5914
- "description": "`.lottie` URL for the media panel when variant is \"lottie\"."
5892
+ "required": false
5915
5893
  },
5916
5894
  "theme": {
5917
5895
  "type": "string",
@@ -5941,16 +5919,6 @@
5941
5919
  "type": "string",
5942
5920
  "required": true,
5943
5921
  "maxLength": 80
5944
- },
5945
- "variant": {
5946
- "type": "string",
5947
- "required": false,
5948
- "default": "default",
5949
- "enum": [
5950
- "default",
5951
- "lottie"
5952
- ],
5953
- "description": "Card layout mode. \"default\" uses a background image with title | description columns; \"lottie\" uses a solid theme card with a manual-play Lottie panel and stacked copy (tactical-indices)."
5954
5922
  }
5955
5923
  }
5956
5924
  },
@@ -3357,17 +3357,7 @@
3357
3357
  "imageUrl": {
3358
3358
  "type": "string",
3359
3359
  "required": false,
3360
- "description": "URL of the card's hero image (default variant). Ignored when the section `variant` is `\"lottie\"`."
3361
- },
3362
- "lottiePosterUrl": {
3363
- "type": "string",
3364
- "required": false,
3365
- "description": "Optional still frame shown while the Lottie is paused / loading (`variant: \"lottie\"` only)."
3366
- },
3367
- "lottieSrc": {
3368
- "type": "string",
3369
- "required": false,
3370
- "description": "`.lottie` (or animation-hosting `.json`) URL for the card media panel. Used when the section `variant` is `\"lottie\"`."
3360
+ "description": "URL of the card's hero image."
3371
3361
  },
3372
3362
  "theme": {
3373
3363
  "type": "StickyMarketCardTheme",
@@ -3390,12 +3380,6 @@
3390
3380
  "type": "string",
3391
3381
  "required": true,
3392
3382
  "description": "Section heading rendered as H2"
3393
- },
3394
- "variant": {
3395
- "type": "StickyMarketCardsVariant",
3396
- "required": false,
3397
- "description": "Card layout mode.",
3398
- "default": "default"
3399
3383
  }
3400
3384
  }
3401
3385
  },
package/dist/index.css CHANGED
@@ -4871,6 +4871,8 @@
4871
4871
  gap: var(--spacing-8);
4872
4872
  flex-shrink: 0;
4873
4873
  overflow: hidden;
4874
+ overflow: clip;
4875
+ overflow-clip-margin: 4px;
4874
4876
  white-space: nowrap;
4875
4877
  max-width: 0;
4876
4878
  opacity: 0;
@@ -6326,15 +6328,6 @@
6326
6328
  246,
6327
6329
  247,
6328
6330
  248;
6329
- --smc-lottie-min-height: 18.75rem;
6330
- --smc-lottie-aspect: 1312 / 854;
6331
- --smc-lottie-panel-bg: transparent;
6332
- --smc-lottie-radius: var(--radius-xl);
6333
- --smc-lottie-gap: var(--spacing-32);
6334
- --smc-control-bg: var(--color-slate-50);
6335
- --smc-control-color: var(--color-slate-1200);
6336
- --smc-scrim: rgb(0 0 0 / 10%);
6337
- --smc-focus: var(--border-focus);
6338
6331
  }
6339
6332
  .smc {
6340
6333
  width: 100%;
@@ -6469,106 +6462,6 @@
6469
6462
  .smc__card-desc-wrap {
6470
6463
  flex: 1;
6471
6464
  }
6472
- .smc__card-inner--lottie {
6473
- padding: var(--smc-lottie-gap);
6474
- min-height: var(--smc-lottie-min-height);
6475
- align-items: stretch;
6476
- }
6477
- .smc__card-content--lottie {
6478
- grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
6479
- align-items: stretch;
6480
- gap: var(--smc-lottie-gap);
6481
- }
6482
- .smc__card-text {
6483
- display: flex;
6484
- flex-direction: column;
6485
- justify-content: flex-start;
6486
- align-items: flex-start;
6487
- gap: var(--spacing-16);
6488
- height: 100%;
6489
- min-width: 0;
6490
- }
6491
- .smc__lottie {
6492
- position: relative;
6493
- isolation: isolate;
6494
- align-self: start;
6495
- width: 100%;
6496
- min-width: 0;
6497
- aspect-ratio: var(--smc-lottie-aspect);
6498
- overflow: hidden;
6499
- border-radius: var(--smc-lottie-radius);
6500
- background-color: var(--smc-lottie-panel-bg);
6501
- }
6502
- .smc__lottie-media {
6503
- position: absolute;
6504
- z-index: 1;
6505
- inset: 0;
6506
- }
6507
- .smc__lottie-media > *,
6508
- .smc__lottie-player {
6509
- width: 100% !important;
6510
- height: 100% !important;
6511
- }
6512
- .smc__lottie-player {
6513
- display: flex !important;
6514
- align-items: stretch !important;
6515
- justify-content: stretch !important;
6516
- }
6517
- .smc__lottie-media canvas,
6518
- .smc__lottie-player canvas {
6519
- width: 100% !important;
6520
- height: 100% !important;
6521
- display: block;
6522
- }
6523
- .smc__lottie-media img,
6524
- .smc__lottie-poster {
6525
- width: 100%;
6526
- height: 100%;
6527
- object-fit: cover;
6528
- object-position: center;
6529
- }
6530
- .smc__lottie-poster {
6531
- position: absolute;
6532
- z-index: 2;
6533
- inset: 0;
6534
- }
6535
- .smc__playback-toggle {
6536
- position: absolute;
6537
- z-index: 3;
6538
- display: grid;
6539
- inset: 0;
6540
- padding: 0;
6541
- place-items: center;
6542
- border: 0;
6543
- background: var(--smc-scrim);
6544
- cursor: pointer;
6545
- }
6546
- .smc__playback-toggle--playing {
6547
- background: transparent;
6548
- }
6549
- .smc__playback-toggle:focus-visible {
6550
- outline: 2px solid var(--smc-focus);
6551
- outline-offset: -4px;
6552
- }
6553
- .smc__control-icon {
6554
- width: 64px;
6555
- height: 64px;
6556
- transition: opacity 150ms ease;
6557
- }
6558
- .smc__playback-toggle--playing .smc__control-icon {
6559
- opacity: 0;
6560
- }
6561
- .smc__playback-toggle--playing:hover .smc__control-icon,
6562
- .smc__playback-toggle--playing:focus-visible .smc__control-icon {
6563
- opacity: 1;
6564
- }
6565
- .smc__control-disc {
6566
- fill: var(--smc-control-bg);
6567
- fill-opacity: 0.88;
6568
- }
6569
- .smc__control-glyph {
6570
- fill: var(--smc-control-color);
6571
- }
6572
6465
  .smc__card-title {
6573
6466
  margin: 0;
6574
6467
  font-family: var(--font-family-base);
@@ -6590,18 +6483,11 @@
6590
6483
  .smc__card-inner {
6591
6484
  padding: var(--spacing-24) var(--spacing-32);
6592
6485
  }
6593
- .smc__card-inner--lottie {
6594
- padding: var(--spacing-24);
6595
- }
6596
6486
  .smc__card-content {
6597
6487
  grid-template-columns: 1fr;
6598
6488
  align-items: flex-start;
6599
6489
  gap: var(--spacing-24);
6600
6490
  }
6601
- .smc__card-content--lottie {
6602
- grid-template-columns: 1fr;
6603
- gap: var(--spacing-24);
6604
- }
6605
6491
  }
6606
6492
 
6607
6493
  /* templates/Table/Table.css */