@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.
- package/CHANGELOG.md +91 -0
- package/README.md +2 -1
- package/package.json +14 -27
- package/schemas/component-manifest.json +233 -33
- package/schemas/manifest-omissions.json +23 -0
- package/src/components/accordion/accordion-bg.css.js +39 -30
- package/src/components/accordion/accordion-bg.js +17 -28
- package/src/components/accordion/accordion-bg.stories.js +5 -0
- package/src/components/accordion/accordion-panel.js +24 -0
- package/src/components/accordion/accordion.css.js +105 -111
- package/src/components/accordion/accordion.js +23 -37
- package/src/components/accordion/accordion.stories.js +5 -1
- package/src/components/anchor/anchor-nav.css.js +131 -53
- package/src/components/anchor/anchor-nav.js +276 -201
- package/src/components/annotation/annotation.css.js +7 -4
- package/src/components/architecture.stories.js +8 -7
- package/src/components/audience-card/audience-card.css.js +30 -4
- package/src/components/audience-card/audience-card.js +8 -13
- package/src/components/awards/awards-flex.css.js +23 -6
- package/src/components/awards/awards-flex.js +21 -6
- package/src/components/awards/awards-spotlight.css.js +25 -5
- package/src/components/awards/awards-spotlight.js +19 -7
- package/src/components/awards/awards.css.js +20 -8
- package/src/components/awards/awards.js +30 -91
- package/src/components/awards/awards.stories.js +5 -5
- package/src/components/awards/scroll-slides.js +128 -0
- package/src/components/back/back.css.js +2 -0
- package/src/components/badge/badge.css.js +15 -0
- package/src/components/bento-grid/bento-grid.css.js +105 -11
- package/src/components/bento-grid/bento-grid.js +37 -124
- package/src/components/bento-grid/bento-grid.stories.js +3 -2
- package/src/components/bento-grid/bento-item.css.js +71 -32
- package/src/components/bento-grid/bento-item.js +1 -30
- package/src/components/blockquote/blockquote.css.js +2 -2
- package/src/components/breadcrumb/breadcrumb.css.js +10 -9
- package/src/components/breadcrumb/breadcrumb.js +35 -34
- package/src/components/button/button.css.js +42 -17
- package/src/components/button/button.js +84 -3
- package/src/components/button/button.stories.js +17 -0
- package/src/components/card-features/card-features.css.js +23 -2
- package/src/components/card-features/card-features.js +6 -48
- package/src/components/cards/card.css.js +43 -14
- package/src/components/cards/card.js +43 -177
- package/src/components/cards/card.stories.js +8 -10
- package/src/components/carousel/carousel.css.js +101 -70
- package/src/components/carousel/carousel.js +107 -71
- package/src/components/carousel/carousel.stories.js +18 -16
- package/src/components/checkbox/checkbox.css.js +26 -9
- package/src/components/checkbox/checkbox.js +73 -39
- package/src/components/checkbox/checkbox.stories.js +35 -18
- package/src/components/compare/compare.css.js +68 -10
- package/src/components/compare/compare.js +40 -103
- package/src/components/compare/compare.stories.js +1 -1
- package/src/components/compatibility-table/compatibility-table.css.js +70 -37
- package/src/components/compatibility-table/compatibility-table.js +47 -40
- package/src/components/compatibility-table/compatibility-table.stories.js +78 -1
- package/src/components/display/display.css.js +7 -0
- package/src/components/dropdown/dropdown.css.js +20 -3
- package/src/components/dropdown/dropdown.js +57 -21
- package/src/components/dropdown/dropdown.stories.js +31 -9
- package/src/components/features/features.css.js +56 -21
- package/src/components/features/features.js +7 -117
- package/src/components/fieldset/fieldset.stories.js +68 -0
- package/src/components/footer/footer-images.js +34 -0
- package/src/components/footer/footer-links-group.css.js +10 -10
- package/src/components/footer/footer-locale.js +47 -0
- package/src/components/footer/footer-lp.js +27 -114
- package/src/components/footer/footer-lp.stories.js +2 -2
- package/src/components/footer/footer-nav-menu.css.js +2 -2
- package/src/components/footer/footer-nav-menu.js +8 -3
- package/src/components/footer/footer.css.js +228 -197
- package/src/components/footer/footer.js +109 -187
- package/src/components/footer/footer.stories.js +14 -4
- package/src/components/grid/grid.css.js +56 -20
- package/src/components/grid/grid.js +20 -15
- package/src/components/grid/grid.stories.js +39 -11
- package/src/components/header/header-code.css.js +20 -11
- package/src/components/header/header-code.js +1 -1
- package/src/components/header/header.css.js +20 -14
- package/src/components/header/header.js +6 -7
- package/src/components/header/header.stories.js +29 -24
- package/src/components/heading/heading.css.js +11 -0
- package/src/components/hero/hero.js +10 -2
- package/src/components/highlight/highlight.css.js +30 -6
- package/src/components/icons/arrow-icon.js +4 -1
- package/src/components/icons/arrow-right-icon.js +5 -1
- package/src/components/icons/icon-element.js +18 -0
- package/src/components/image/image.js +29 -9
- package/src/components/image/image.stories.js +38 -2
- package/src/components/input/custom-form.stories.js +38 -7
- package/src/components/input/input-clipboard.css.js +15 -1
- package/src/components/input/input-clipboard.js +84 -21
- package/src/components/input/input.js +27 -7
- package/src/components/install-options/install-options.css.js +26 -6
- package/src/components/install-options/install-options.js +32 -8
- package/src/components/label/label.css.js +1 -1
- package/src/components/light-carousel/light-carousel.css.js +100 -48
- package/src/components/light-carousel/light-carousel.js +43 -5
- package/src/components/link/link.css.js +15 -15
- package/src/components/link/link.js +17 -1
- package/src/components/link/link.stories.js +20 -7
- package/src/components/list/list.css.js +3 -3
- package/src/components/logo-marquee/logo-marquee.css.js +12 -1
- package/src/components/logo-marquee/logo-marquee.js +33 -8
- package/src/components/logo-marquee/logo-marquee.stories.js +10 -4
- package/src/components/modal/modal.css.js +74 -40
- package/src/components/modal/modal.js +85 -74
- package/src/components/modal/modal.stories.js +27 -14
- package/src/components/motion-art/motion-art.js +67 -1
- package/src/components/page-switcher/page-switcher.css.js +27 -9
- package/src/components/page-switcher/page-switcher.js +11 -8
- package/src/components/partner-banner/partner-banner.css.js +2 -0
- package/src/components/picture/picture.css.js +4 -4
- package/src/components/picture/picture.js +13 -3
- package/src/components/picture/picture.stories.js +28 -2
- package/src/components/post-card/post-card.css.js +18 -3
- package/src/components/pricing-cards/adopt-styles.js +16 -0
- package/src/components/pricing-cards/new-pricing-card.js +2 -4
- package/src/components/pricing-cards/new-pricing-card.stories.js +20 -22
- package/src/components/pricing-cards/pricing-card-actions.css.js +8 -12
- package/src/components/pricing-cards/pricing-card-actions.js +26 -13
- package/src/components/pricing-cards/pricing-card-container.css.js +4 -3
- package/src/components/pricing-cards/pricing-card-container.js +10 -4
- package/src/components/pricing-cards/pricing-card-header.css.js +5 -4
- package/src/components/pricing-cards/pricing-card-header.js +18 -31
- package/src/components/pricing-cards/pricing-card-pricing.css.js +84 -61
- package/src/components/pricing-cards/pricing-card-pricing.js +38 -24
- package/src/components/pricing-cards/pricing-card-show-more.js +8 -3
- package/src/components/pricing-cards/pricing-card.css.js +75 -41
- package/src/components/pricing-cards/pricing-card.js +356 -308
- package/src/components/progress/progress.css.js +58 -13
- package/src/components/progress/progress.js +13 -10
- package/src/components/progress/progress.stories.js +9 -7
- package/src/components/radio/radio-group.css.js +42 -0
- package/src/components/radio/radio-group.js +89 -0
- package/src/components/radio/radio.css.js +63 -6
- package/src/components/radio/radio.js +173 -140
- package/src/components/radio/radio.stories.js +99 -44
- package/src/components/radio/toggle-radio.js +44 -0
- package/src/components/review/review-grid.css.js +5 -1
- package/src/components/review/review-grid.js +2 -0
- package/src/components/review/review.js +13 -0
- package/src/components/shared/announcer.js +37 -0
- package/src/components/shared/fill-width.css.js +29 -0
- package/src/components/shared/form-control.js +194 -0
- package/src/components/shared/form-field.css.js +31 -3
- package/src/components/shared/token-scales.js +75 -26
- package/src/components/spotlight-section/spotlight-section.js +2 -2
- package/src/components/stat/stat-highlight.js +1 -1
- package/src/components/stat/stat.css.js +18 -3
- package/src/components/switch/switch.css.js +58 -5
- package/src/components/switch/switch.js +53 -5
- package/src/components/switch/switch.stories.js +30 -8
- package/src/components/tab-list/tab-list.css.js +51 -13
- package/src/components/tab-list/tab-list.js +7 -2
- package/src/components/tab-list/tab-list.stories.js +2 -2
- package/src/components/tabs/tabs.css.js +18 -1
- package/src/components/tabs/tabs.js +119 -41
- package/src/components/terminal/terminal-message.css.js +6 -1
- package/src/components/termsOfUse/terms.css.js +4 -2
- package/src/components/textarea/textarea.js +22 -7
- package/src/components/textarea/textarea.stories.js +12 -9
- package/src/components/trust-panel/trust-panel.css.js +13 -3
- package/src/components/ultimate-security-demo.stories.js +5 -5
- package/src/components/video/video.css.js +5 -0
- package/src/components/video/video.js +5 -0
- package/src/components/video/video.stories.js +12 -0
- package/src/components/video-player/video-player.css.js +20 -8
- package/src/components/video-player/video-player.js +74 -20
- package/src/components/video-player/video-player.stories.js +17 -3
- package/src/tokens/brands.stories.js +1 -1
- package/src/tokens/themes/index.js +2 -2
- package/src/tokens/typography.stories.js +4 -3
- package/src/vendor/motion-art/README.md +4 -1
- package/src/components/footer/footer-lp.css.js +0 -159
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { css, unsafeCSS } from 'lit';
|
|
2
|
-
import { below } from '../shared/token-scales.js';
|
|
3
|
-
|
|
4
|
-
export default css`
|
|
5
|
-
:host {
|
|
6
|
-
display: block;
|
|
7
|
-
/* no role: the masthead's ground, and it stays a primitive on purpose.
|
|
8
|
-
blue-600 is this system's brand INK step -- six roles resolve to it
|
|
9
|
-
(--color-text-brand, --status-brand-text, --status-brand-accent,
|
|
10
|
-
--status-info-text, --color-action-primary-hover and
|
|
11
|
-
--citation-reference-color) and every one of them is ink or an action,
|
|
12
|
-
not a surface.
|
|
13
|
-
.
|
|
14
|
-
So a --color-surface-brand-strong at this value would not be a missing
|
|
15
|
-
role, it would be a trap: brand ink on a brand-strong surface measures
|
|
16
|
-
1.00:1 -- identical colours, invisible text -- and the primary action
|
|
17
|
-
colour on it is 1.36:1, which is where a button in a footer sits. The
|
|
18
|
-
role that reads here is --color-text-inverse at 6.18:1, which is what
|
|
19
|
-
the next line uses.
|
|
20
|
-
.
|
|
21
|
-
Two consumers, both footers, against the twelve that justified
|
|
22
|
-
--color-surface-container. See plans/reports/phase-2-vocab-e-has-role-pass.md
|
|
23
|
-
question E2. */
|
|
24
|
-
background-color: var(--color-brand-600);
|
|
25
|
-
color: var(--color-text-inverse);
|
|
26
|
-
font-family: var(--typography-fontFamily-sans);
|
|
27
|
-
font-size: var(--typography-body-small-fontSize);
|
|
28
|
-
/* The role's own leading -- see footer.css.js's :host. Deleting it was
|
|
29
|
-
measured to drop this footer to the font metric too. */
|
|
30
|
-
line-height: var(--typography-body-small-lineHeight);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
bd-divider-vertical {
|
|
34
|
-
display: inline-block;
|
|
35
|
-
width: var(--form-input-default-borderWidth);
|
|
36
|
-
height: var(--dimension-20);
|
|
37
|
-
background-color: var(--color-surface-default);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
bd-divider-horizontal {
|
|
41
|
-
display: block;
|
|
42
|
-
background-color: var(--color-surface-default);
|
|
43
|
-
opacity: 0.25;
|
|
44
|
-
margin: var(--spacing-16) 0;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
footer {
|
|
48
|
-
padding: var(--spacing-32) var(--spacing-16);
|
|
49
|
-
margin: auto;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.footer-top {
|
|
53
|
-
display: flex;
|
|
54
|
-
justify-content: space-between;
|
|
55
|
-
align-items: center;
|
|
56
|
-
background-color: var(--color-surface-brand);
|
|
57
|
-
padding: var(--spacing-24) 0;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.footer-main-content {
|
|
61
|
-
padding: var(--spacing-24) 0;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/* Wraps the "secondary-nav" slot (Legal / Privacy Policy / etc). This
|
|
65
|
-
rule previously only had padding — no display:flex/gap — so the
|
|
66
|
-
slotted links ran together with no spacing between them, same root
|
|
67
|
-
cause as the bug that was fixed in bd-footer's own footer.css.js. */
|
|
68
|
-
.footer-secondary-nav {
|
|
69
|
-
display: flex;
|
|
70
|
-
align-items: center;
|
|
71
|
-
flex-wrap: wrap;
|
|
72
|
-
gap: var(--spacing-16);
|
|
73
|
-
padding: var(--spacing-24) 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.footer-extra {
|
|
77
|
-
display: flex;
|
|
78
|
-
justify-content: space-between;
|
|
79
|
-
align-items: center;
|
|
80
|
-
gap: var(--spacing-16);
|
|
81
|
-
padding-top: var(--spacing-24);
|
|
82
|
-
flex-wrap: wrap;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.footer-copy {
|
|
86
|
-
/* No font-size: as footer.css.js's twin of this rule -- :host already
|
|
87
|
-
resolves --typography-body-small-fontSize and this restated the same
|
|
88
|
-
14px as the primitive. The colour stays. */
|
|
89
|
-
/* no role: --color-text-muted-inverse is the role for this job -- dimmed ink
|
|
90
|
-
on a dark ground -- and it CANNOT be used here. Measured against the
|
|
91
|
-
host's blue-600: neutral-100 is 4.80:1 and passes body text; the role's
|
|
92
|
-
neutral-300 is 2.72:1 and fails. The role was built against
|
|
93
|
-
surface-inverse (neutral-900), where neutral-300 reaches 7.92:1; on a
|
|
94
|
-
brand ground two steps lighter it runs out of room.
|
|
95
|
-
.
|
|
96
|
-
So the value stays a primitive deliberately. Adopting the role here would
|
|
97
|
-
be a category-correct, job-correct, ACCESSIBILITY-BREAKING change, which
|
|
98
|
-
is the case worth a marker rather than a silent primitive. */
|
|
99
|
-
color: var(--color-neutral-100);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.footer-anpc-lp {
|
|
103
|
-
flex: 1;
|
|
104
|
-
text-align: center;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.container {
|
|
108
|
-
margin: 0 auto;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.footer-top-bleed {
|
|
112
|
-
background: var(--color-surface-brand);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/* No a, a:hover, a:focus or .footer-nav-main rules. This template renders no
|
|
116
|
-
anchor of its own -- the links are slotted, and bd-footer-nav renders
|
|
117
|
-
.footer-nav-main into its own shadow root -- so none of the four could
|
|
118
|
-
match: measured 0 across the 22 built footer stories in 11 bd-footer-lp
|
|
119
|
-
roots. The secondary nav's ink and focus ring are footer-nav-menu.css.js',
|
|
120
|
-
which is the sheet in the same tree as the anchors.
|
|
121
|
-
|
|
122
|
-
One of them expressed an intent worth recording rather than resurrecting:
|
|
123
|
-
the mobile query dropped .footer-nav-main to gap 8, where the live sheet
|
|
124
|
-
keeps 16 at both. So the composed rhythm today is 16px stacked and 33px in
|
|
125
|
-
a row -- 16 either side of a 1px divider -- and tightening stacked tap
|
|
126
|
-
targets from 40px of pitch to 32 is a decision, not a repair. */
|
|
127
|
-
|
|
128
|
-
/* Responsive styles */
|
|
129
|
-
@media ${unsafeCSS(below('md'))} {
|
|
130
|
-
.footer-top {
|
|
131
|
-
flex-direction: column;
|
|
132
|
-
gap: var(--spacing-16);
|
|
133
|
-
text-align: center;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.footer-extra {
|
|
137
|
-
flex-direction: column;
|
|
138
|
-
align-items: center;
|
|
139
|
-
text-align: center;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.footer-anpc-lp {
|
|
143
|
-
order: -1;
|
|
144
|
-
margin-bottom: var(--spacing-16);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/* Stacked on a phone. The slot is display: contents, so the slotted
|
|
148
|
-
links are this flex box's items -- and only ::slotted reaches them. */
|
|
149
|
-
.footer-secondary-nav {
|
|
150
|
-
flex-direction: column;
|
|
151
|
-
align-items: flex-start;
|
|
152
|
-
gap: var(--spacing-8);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.footer-secondary-nav ::slotted(bd-divider-vertical) {
|
|
156
|
-
display: none !important;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
`;
|