@repobit/dex-system-design 2.5.1 → 2.7.0

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 (175) hide show
  1. package/CHANGELOG.md +91 -0
  2. package/README.md +2 -1
  3. package/package.json +14 -27
  4. package/schemas/component-manifest.json +233 -33
  5. package/schemas/manifest-omissions.json +23 -0
  6. package/src/components/accordion/accordion-bg.css.js +39 -30
  7. package/src/components/accordion/accordion-bg.js +17 -28
  8. package/src/components/accordion/accordion-bg.stories.js +5 -0
  9. package/src/components/accordion/accordion-panel.js +24 -0
  10. package/src/components/accordion/accordion.css.js +105 -111
  11. package/src/components/accordion/accordion.js +23 -37
  12. package/src/components/accordion/accordion.stories.js +5 -1
  13. package/src/components/anchor/anchor-nav.css.js +131 -53
  14. package/src/components/anchor/anchor-nav.js +276 -201
  15. package/src/components/annotation/annotation.css.js +7 -4
  16. package/src/components/architecture.stories.js +8 -7
  17. package/src/components/audience-card/audience-card.css.js +30 -4
  18. package/src/components/audience-card/audience-card.js +8 -13
  19. package/src/components/awards/awards-flex.css.js +23 -6
  20. package/src/components/awards/awards-flex.js +21 -6
  21. package/src/components/awards/awards-spotlight.css.js +25 -5
  22. package/src/components/awards/awards-spotlight.js +19 -7
  23. package/src/components/awards/awards.css.js +20 -8
  24. package/src/components/awards/awards.js +30 -91
  25. package/src/components/awards/awards.stories.js +5 -5
  26. package/src/components/awards/scroll-slides.js +128 -0
  27. package/src/components/back/back.css.js +2 -0
  28. package/src/components/badge/badge.css.js +15 -0
  29. package/src/components/bento-grid/bento-grid.css.js +105 -11
  30. package/src/components/bento-grid/bento-grid.js +37 -124
  31. package/src/components/bento-grid/bento-grid.stories.js +3 -2
  32. package/src/components/bento-grid/bento-item.css.js +71 -32
  33. package/src/components/bento-grid/bento-item.js +1 -30
  34. package/src/components/blockquote/blockquote.css.js +2 -2
  35. package/src/components/breadcrumb/breadcrumb.css.js +10 -9
  36. package/src/components/breadcrumb/breadcrumb.js +35 -34
  37. package/src/components/button/button.css.js +42 -17
  38. package/src/components/button/button.js +84 -3
  39. package/src/components/button/button.stories.js +17 -0
  40. package/src/components/card-features/card-features.css.js +23 -2
  41. package/src/components/card-features/card-features.js +6 -48
  42. package/src/components/cards/card.css.js +43 -14
  43. package/src/components/cards/card.js +43 -177
  44. package/src/components/cards/card.stories.js +8 -10
  45. package/src/components/carousel/carousel.css.js +101 -70
  46. package/src/components/carousel/carousel.js +107 -71
  47. package/src/components/carousel/carousel.stories.js +18 -16
  48. package/src/components/checkbox/checkbox.css.js +26 -9
  49. package/src/components/checkbox/checkbox.js +73 -39
  50. package/src/components/checkbox/checkbox.stories.js +35 -18
  51. package/src/components/compare/compare.css.js +68 -10
  52. package/src/components/compare/compare.js +40 -103
  53. package/src/components/compare/compare.stories.js +1 -1
  54. package/src/components/compatibility-table/compatibility-table.css.js +70 -37
  55. package/src/components/compatibility-table/compatibility-table.js +47 -40
  56. package/src/components/compatibility-table/compatibility-table.stories.js +78 -1
  57. package/src/components/display/display.css.js +7 -0
  58. package/src/components/dropdown/dropdown.css.js +20 -3
  59. package/src/components/dropdown/dropdown.js +57 -21
  60. package/src/components/dropdown/dropdown.stories.js +31 -9
  61. package/src/components/features/features.css.js +56 -21
  62. package/src/components/features/features.js +7 -117
  63. package/src/components/fieldset/fieldset.stories.js +68 -0
  64. package/src/components/footer/footer-images.js +34 -0
  65. package/src/components/footer/footer-links-group.css.js +10 -10
  66. package/src/components/footer/footer-locale.js +47 -0
  67. package/src/components/footer/footer-lp.js +27 -114
  68. package/src/components/footer/footer-lp.stories.js +2 -2
  69. package/src/components/footer/footer-nav-menu.css.js +2 -2
  70. package/src/components/footer/footer-nav-menu.js +8 -3
  71. package/src/components/footer/footer.css.js +228 -197
  72. package/src/components/footer/footer.js +109 -187
  73. package/src/components/footer/footer.stories.js +14 -4
  74. package/src/components/grid/grid.css.js +56 -20
  75. package/src/components/grid/grid.js +20 -15
  76. package/src/components/grid/grid.stories.js +39 -11
  77. package/src/components/header/header-code.css.js +20 -11
  78. package/src/components/header/header-code.js +1 -1
  79. package/src/components/header/header.css.js +20 -14
  80. package/src/components/header/header.js +6 -7
  81. package/src/components/header/header.stories.js +29 -24
  82. package/src/components/heading/heading.css.js +11 -0
  83. package/src/components/hero/hero.js +10 -2
  84. package/src/components/highlight/highlight.css.js +30 -6
  85. package/src/components/icons/arrow-icon.js +4 -1
  86. package/src/components/icons/arrow-right-icon.js +5 -1
  87. package/src/components/icons/icon-element.js +18 -0
  88. package/src/components/image/image.js +29 -9
  89. package/src/components/image/image.stories.js +38 -2
  90. package/src/components/input/custom-form.stories.js +38 -7
  91. package/src/components/input/input-clipboard.css.js +15 -1
  92. package/src/components/input/input-clipboard.js +84 -21
  93. package/src/components/input/input.js +27 -7
  94. package/src/components/install-options/install-options.css.js +26 -6
  95. package/src/components/install-options/install-options.js +32 -8
  96. package/src/components/label/label.css.js +1 -1
  97. package/src/components/light-carousel/light-carousel.css.js +100 -48
  98. package/src/components/light-carousel/light-carousel.js +43 -5
  99. package/src/components/link/link.css.js +15 -15
  100. package/src/components/link/link.js +17 -1
  101. package/src/components/link/link.stories.js +20 -7
  102. package/src/components/list/list.css.js +3 -3
  103. package/src/components/logo-marquee/logo-marquee.css.js +12 -1
  104. package/src/components/logo-marquee/logo-marquee.js +33 -8
  105. package/src/components/logo-marquee/logo-marquee.stories.js +10 -4
  106. package/src/components/modal/modal.css.js +74 -40
  107. package/src/components/modal/modal.js +85 -74
  108. package/src/components/modal/modal.stories.js +27 -14
  109. package/src/components/motion-art/motion-art.js +67 -1
  110. package/src/components/page-switcher/page-switcher.css.js +27 -9
  111. package/src/components/page-switcher/page-switcher.js +11 -8
  112. package/src/components/partner-banner/partner-banner.css.js +2 -0
  113. package/src/components/picture/picture.css.js +4 -4
  114. package/src/components/picture/picture.js +13 -3
  115. package/src/components/picture/picture.stories.js +28 -2
  116. package/src/components/post-card/post-card.css.js +18 -3
  117. package/src/components/pricing-cards/adopt-styles.js +16 -0
  118. package/src/components/pricing-cards/new-pricing-card.js +2 -4
  119. package/src/components/pricing-cards/new-pricing-card.stories.js +20 -22
  120. package/src/components/pricing-cards/pricing-card-actions.css.js +8 -12
  121. package/src/components/pricing-cards/pricing-card-actions.js +26 -13
  122. package/src/components/pricing-cards/pricing-card-container.css.js +4 -3
  123. package/src/components/pricing-cards/pricing-card-container.js +10 -4
  124. package/src/components/pricing-cards/pricing-card-header.css.js +5 -4
  125. package/src/components/pricing-cards/pricing-card-header.js +18 -31
  126. package/src/components/pricing-cards/pricing-card-pricing.css.js +84 -61
  127. package/src/components/pricing-cards/pricing-card-pricing.js +38 -24
  128. package/src/components/pricing-cards/pricing-card-show-more.js +8 -3
  129. package/src/components/pricing-cards/pricing-card.css.js +75 -41
  130. package/src/components/pricing-cards/pricing-card.js +356 -308
  131. package/src/components/progress/progress.css.js +58 -13
  132. package/src/components/progress/progress.js +13 -10
  133. package/src/components/progress/progress.stories.js +9 -7
  134. package/src/components/radio/radio-group.css.js +42 -0
  135. package/src/components/radio/radio-group.js +89 -0
  136. package/src/components/radio/radio.css.js +63 -6
  137. package/src/components/radio/radio.js +173 -140
  138. package/src/components/radio/radio.stories.js +99 -44
  139. package/src/components/radio/toggle-radio.js +44 -0
  140. package/src/components/review/review-grid.css.js +5 -1
  141. package/src/components/review/review-grid.js +2 -0
  142. package/src/components/review/review.js +13 -0
  143. package/src/components/shared/announcer.js +37 -0
  144. package/src/components/shared/fill-width.css.js +29 -0
  145. package/src/components/shared/form-control.js +194 -0
  146. package/src/components/shared/form-field.css.js +31 -3
  147. package/src/components/shared/token-scales.js +75 -26
  148. package/src/components/spotlight-section/spotlight-section.js +2 -2
  149. package/src/components/stat/stat-highlight.js +1 -1
  150. package/src/components/stat/stat.css.js +18 -3
  151. package/src/components/switch/switch.css.js +58 -5
  152. package/src/components/switch/switch.js +53 -5
  153. package/src/components/switch/switch.stories.js +30 -8
  154. package/src/components/tab-list/tab-list.css.js +51 -13
  155. package/src/components/tab-list/tab-list.js +7 -2
  156. package/src/components/tab-list/tab-list.stories.js +2 -2
  157. package/src/components/tabs/tabs.css.js +18 -1
  158. package/src/components/tabs/tabs.js +119 -41
  159. package/src/components/terminal/terminal-message.css.js +6 -1
  160. package/src/components/termsOfUse/terms.css.js +4 -2
  161. package/src/components/textarea/textarea.js +22 -7
  162. package/src/components/textarea/textarea.stories.js +12 -9
  163. package/src/components/trust-panel/trust-panel.css.js +13 -3
  164. package/src/components/ultimate-security-demo.stories.js +5 -5
  165. package/src/components/video/video.css.js +5 -0
  166. package/src/components/video/video.js +5 -0
  167. package/src/components/video/video.stories.js +12 -0
  168. package/src/components/video-player/video-player.css.js +20 -8
  169. package/src/components/video-player/video-player.js +74 -20
  170. package/src/components/video-player/video-player.stories.js +17 -3
  171. package/src/tokens/brands.stories.js +1 -1
  172. package/src/tokens/themes/index.js +2 -2
  173. package/src/tokens/typography.stories.js +4 -3
  174. package/src/vendor/motion-art/README.md +4 -1
  175. package/src/components/footer/footer-lp.css.js +0 -159
@@ -96,7 +96,13 @@ export default css`
96
96
  border-top-left-radius: var(--spacing-20);
97
97
  border-top-right-radius: var(--spacing-20);
98
98
  position: absolute;
99
- top: -2.67em; /* echivalent cu -3rem */
99
+ /* -30px is what every banner rendered. A "-2.67em" stood here and lost to
100
+ a ".pricing-cards .card:nth-child(2) .highlight-banner { top: -30px }"
101
+ rule, which looked like "the second card" and matched every card
102
+ instead: each card's .card came second, after the <style> copy of this
103
+ sheet the card used to render before it. With the copies gone the rule
104
+ matched nothing, so its value moves here. */
105
+ top: -30px;
100
106
  left: 50%;
101
107
  transform: translateX(-50%);
102
108
  width: 85%;
@@ -107,9 +113,6 @@ export default css`
107
113
  line-height: var(--typography-lineHeight-tight);
108
114
  z-index: var(--z-base);
109
115
  }
110
- .pricing-cards .card:nth-child(2) .highlight-banner {
111
- top: -30px;
112
- }
113
116
  .card-header {
114
117
  text-align: start;
115
118
  }
@@ -216,21 +219,24 @@ export default css`
216
219
  margin: var(--spacing-0);
217
220
  }
218
221
 
222
+ /* The price is a <p> now, not a bd-h at h3 (pricing-card.js, renderPricing),
223
+ and keeps the look it had by reading the heading-h3 role's axes directly,
224
+ as the hero's final price reads heading-h2.
225
+
226
+ What stood here was a 40px / 700 / leading-none rule on the bd-h host,
227
+ plus 32, 28 and 24px at three viewport widths, and none of it ever
228
+ painted: the atom sets size, weight and leading on its own inner heading,
229
+ which a host declaration cannot reach (proved by sabotage when this rule
230
+ was last touched). Moving the rule onto the paragraph as it was would have
231
+ switched all of it on, so it is replaced, not moved. */
219
232
  .price {
220
- /* No colour here. This selector is a bd-h host, where color is INERT per
221
- scripts/atom-inert-properties.json -- the atom sets it on its own inner
222
- .bd-heading, so a host declaration cannot reach the text. A neutral-950
223
- stood here and painted nothing; the heading renders the ink role, which
224
- the atom supplies. Proved by sabotage in both story families: forcing all
225
- five of this rule's declared properties on the host with !important left
226
- the rendered heading byte-identical. The four declarations below are dead
227
- by the same mechanism -- deleting the whole rule is a larger call, and is
228
- an item in plans/foundation-plan.md rather than part of this change. */
229
- font-size: 40px;
230
- font-weight: 700;
231
- font-family: var(--typography-fontFamily-sans);
232
- /* 40px text; was 34px (0.85) — the line box was smaller than the text */
233
- line-height: var(--typography-lineHeight-none);
233
+ margin: 0;
234
+ font-family: var(--typography-heading-h3-fontFamily);
235
+ font-size: var(--typography-heading-h3-fontSize);
236
+ font-weight: var(--typography-heading-h3-fontWeight);
237
+ line-height: var(--typography-heading-h3-lineHeight);
238
+ letter-spacing: var(--typography-heading-h3-letterSpacing);
239
+ color: var(--color-text-primary);
234
240
  }
235
241
 
236
242
  .terms {
@@ -280,7 +286,9 @@ export default css`
280
286
  }
281
287
 
282
288
  .features ul {
283
- padding-left: var(--spacing-0);
289
+ /* inline-start, not left: in a right-to-left page "padding-left: 0" left
290
+ the browser's own 40px list indent standing on the right */
291
+ padding-inline-start: var(--spacing-0);
284
292
  padding-top: var(--spacing-16);
285
293
  }
286
294
 
@@ -294,7 +302,8 @@ export default css`
294
302
  text-align: start;
295
303
  }
296
304
  .additional-info li {
297
- /* No colour here either, and for a DIFFERENT reason than .price above. This
305
+ /* No colour here, and for a different reason than a bd-h host's colour is
306
+ inert (see .price above). This
298
307
  li is a plain element, not an atom host: its text lives in a bd-p child,
299
308
  and paragraph.css.js declares the ink on that atom's own :host. A direct
300
309
  declaration on an element beats a value inherited into it, so a colour set
@@ -323,7 +332,7 @@ export default css`
323
332
  }
324
333
 
325
334
  .badge-icon {
326
- margin-right: var(--spacing-8);
335
+ margin-inline-end: var(--spacing-8);
327
336
  }
328
337
  .features h4 {
329
338
  text-align: start;
@@ -434,14 +443,41 @@ export default css`
434
443
  position: relative;
435
444
  display: flex;
436
445
  align-items: center;
446
+ }
447
+
448
+ /* The feature's name, as the button that opens its description
449
+ (pricing-card.js, FeatureTips): it reads as the text it was, and the ring
450
+ is the shared one at the top of this sheet. */
451
+ .feature-toggle {
452
+ margin: 0;
453
+ padding: 0;
454
+ border: 0;
455
+ background: none;
456
+ font: inherit;
457
+ letter-spacing: inherit;
458
+ color: inherit;
459
+ text-align: inherit;
437
460
  cursor: pointer;
461
+ border-radius: var(--focus-outline-radius);
462
+ }
463
+
464
+ /* The whole row is the button's target, as the whole row was the hover's. */
465
+ .feature-toggle::after {
466
+ content: "";
467
+ position: absolute;
468
+ inset: 0;
438
469
  }
439
470
 
440
471
  .feature-item .tooltip {
441
472
  display: none;
442
473
  position: absolute;
443
- top: -70px;
444
- left: 0;
474
+ /* Above the row, by its own height: the arrow below the box ends on the
475
+ row's top edge. It was top: -70px, and every description is taller than
476
+ that -- measured 75 to 156px -- so the open box always covered the name
477
+ it describes, which once the name is a button means covering the focused
478
+ control and taking the tap meant to close it. */
479
+ bottom: calc(100% + var(--spacing-8));
480
+ inset-inline-start: 0;
445
481
  background-color: var(--color-surface-container);
446
482
  /* Tooltip copy: supporting, not primary. */
447
483
  color: var(--color-text-secondary);
@@ -464,17 +500,27 @@ export default css`
464
500
  content: "";
465
501
  position: absolute;
466
502
  bottom: -8px;
467
- left: 20%;
468
- transform: translateX(-50%);
503
+ /* centred on 20% from the start: half the arrow's width is one of the two
504
+ --spacing-8 borders that draw it, which a translate could not flip */
505
+ inset-inline-start: calc(20% - var(--spacing-8));
469
506
  border-left: var(--spacing-8) solid transparent;
470
507
  border-right: var(--spacing-8) solid transparent;
471
508
  /* the arrow, same role as the box above -- they are one shape */
472
509
  border-top: var(--spacing-8) solid var(--color-border-subtle);
473
510
  }
474
511
 
475
- .feature-item:hover .tooltip {
512
+ /* Open on the button, and previewed on hover where there is a hover. A
513
+ touch screen's emulated hover sticks after a tap, so without the query the
514
+ tap that closes the description would leave it showing. */
515
+ .feature-item .tooltip.open {
476
516
  display: block;
477
517
  }
518
+
519
+ @media (hover: hover) {
520
+ .feature-item:hover .tooltip {
521
+ display: block;
522
+ }
523
+ }
478
524
  .badge-feature {
479
525
  background-color: var(--color-surface-brand);
480
526
  color: var(--color-text-inverse);
@@ -485,7 +531,7 @@ export default css`
485
531
  align-items: center;
486
532
  justify-content: center;
487
533
  font-size: 12px;
488
- margin-left: var(--spacing-8);
534
+ margin-inline-start: var(--spacing-8);
489
535
  text-align: center;
490
536
  padding: var(--spacing-2);
491
537
  }
@@ -497,7 +543,7 @@ export default css`
497
543
  width: var(--spacing-20) !important;
498
544
  height: var(--spacing-20) !important;
499
545
  top: var(--spacing-2);
500
- padding-right: var(--spacing-4);
546
+ padding-inline-end: var(--spacing-4);
501
547
  }
502
548
  .family-text {
503
549
  position: relative;
@@ -519,10 +565,6 @@ export default css`
519
565
  font-size: 1.5em;
520
566
  }
521
567
 
522
- .price {
523
- font-size: 32px;
524
- }
525
-
526
568
  .highlight-banner {
527
569
  font-size: 16px;
528
570
  width: 90%;
@@ -542,10 +584,6 @@ export default css`
542
584
  font-size: 1.3em;
543
585
  }
544
586
 
545
- .price {
546
- font-size: 28px;
547
- }
548
-
549
587
  .badge-subtitle,
550
588
  .original-price,
551
589
  .discount,
@@ -579,10 +617,6 @@ export default css`
579
617
  font-size: 1.1em;
580
618
  }
581
619
 
582
- .price {
583
- font-size: 24px;
584
- }
585
-
586
620
  .badge-subtitle,
587
621
  .original-price,
588
622
  .discount,
@@ -616,7 +650,7 @@ export default css`
616
650
  also a raw literal. If the gap is wanted, it should be asked for on its own
617
651
  terms. */
618
652
  .text-left {
619
- text-align: left !important;
653
+ text-align: start !important;
620
654
  padding-bottom: 15px;
621
655
  }
622
656