@repobit/dex-system-design 0.11.0 → 0.12.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 +18 -0
- package/package.json +2 -2
- package/src/assets/icons/Identity_protection.png +0 -0
- package/src/assets/icons/arrow_down.png +0 -0
- package/src/assets/icons/arrow_up.png +0 -0
- package/src/assets/icons/device_protection.png +0 -0
- package/src/assets/icons/financial_insurance.png +0 -0
- package/src/assets/icons/privacy_protection.png +0 -0
- package/src/assets/icons/user_guide.png +0 -0
- package/src/components/Button/Button.js +19 -16
- package/src/components/Button/button.css.js +18 -16
- package/src/components/Button/icons.js +8 -8
- package/src/components/FAQ/faq.css.js +48 -49
- package/src/components/FAQ/faq.js +0 -86
- package/src/components/Input/Input.js +68 -6
- package/src/components/Input/custom-form.stories.js +88 -0
- package/src/components/Input/input-clipboard.css.js +168 -0
- package/src/components/Input/input-clipboard.js +137 -0
- package/src/components/Input/input.css.js +122 -42
- package/src/components/accordion/accordion-bg.css.js +117 -0
- package/src/components/accordion/accordion-bg.js +80 -0
- package/src/components/accordion/accordion-no-bg.css.js +114 -0
- package/src/components/accordion/accordion-no-bg.js +80 -0
- package/src/components/accordion/accordion.css.js +88 -0
- package/src/components/accordion/accordion.js +81 -0
- package/src/components/anchor/anchor-nav.css.js +15 -15
- package/src/components/anchor/anchor-nav.js +0 -1
- package/src/components/anchor/anchor.stories.js +10 -13
- package/src/components/badge/badge.css.js +6 -6
- package/src/components/badge/badge.js +1 -2
- package/src/components/badge/badge.stories.js +6 -6
- package/src/components/carousel/carousel.css.js +60 -60
- package/src/components/carousel/carousel.js +26 -30
- package/src/components/carousel/carousel.stories.js +55 -55
- package/src/components/checkbox/checkbox.css.js +14 -14
- package/src/components/divider/divider-horizontal.js +19 -14
- package/src/components/divider/divider-vertical.js +23 -14
- package/src/components/divider/divider.css.js +19 -0
- package/src/components/dropdown/dropdown.css.js +138 -0
- package/src/components/dropdown/dropdown.js +111 -0
- package/src/components/footer/footer-links-group.css.js +42 -0
- package/src/components/footer/footer-links-group.js +25 -0
- package/src/components/footer/footer-lp.css.js +625 -0
- package/src/components/footer/footer-lp.js +368 -0
- package/src/components/footer/footer-lp.stories.js +69 -0
- package/src/components/footer/footer-nav-menu.css.js +24 -0
- package/src/components/footer/footer-nav-menu.js +36 -0
- package/src/components/footer/footer.css.js +625 -0
- package/src/components/footer/footer.js +465 -0
- package/src/components/footer/footer.stories.js +60 -0
- package/src/components/footer/localeMap.js +1 -0
- package/src/components/grid/grid.css.js +38 -0
- package/src/components/grid/grid.js +55 -0
- package/src/components/header/header.css.js +81 -52
- package/src/components/header/header.js +19 -19
- package/src/components/highlight/highlight.css.js +32 -22
- package/src/components/highlight/highlight.js +15 -4
- package/src/components/highlight/highlight.stories.js +4 -4
- package/src/components/light-carousel/light-carousel-simple.css.js +183 -0
- package/src/components/light-carousel/light-carousel-simple.js +73 -0
- package/src/components/light-carousel/light-carousel.css.js +50 -31
- package/src/components/light-carousel/light-carousel.js +14 -57
- package/src/components/light-carousel/light-carousel.stories.js +51 -10
- package/src/components/link/link.css.js +41 -0
- package/src/components/link/link.js +54 -0
- package/src/components/modal/modal.css.js +75 -0
- package/src/components/modal/modal.js +41 -0
- package/src/components/modal/modal.stories.js +40 -0
- package/src/components/paragraph/paragraph.css.js +1 -3
- package/src/components/pricing-cards/new-pricing-card.js +30 -0
- package/src/components/pricing-cards/new-pricing.css.js +58 -0
- package/src/components/pricing-cards/pricing-card-actions.css.js +16 -0
- package/src/components/pricing-cards/pricing-card-actions.js +20 -0
- package/src/components/pricing-cards/pricing-card-container.css.js +41 -0
- package/src/components/pricing-cards/pricing-card-container.js +31 -0
- package/src/components/pricing-cards/pricing-card-header.css.js +70 -0
- package/src/components/pricing-cards/pricing-card-header.js +46 -0
- package/src/components/pricing-cards/pricing-card-pricing.css.js +63 -0
- package/src/components/pricing-cards/pricing-card-pricing.js +101 -0
- package/src/components/pricing-cards/pricing-card-show-more.css.js +22 -0
- package/src/components/pricing-cards/pricing-card-show-more.js +33 -0
- package/src/components/pricing-cards/pricing-card.css.js +91 -89
- package/src/components/pricing-cards/pricing-card.js +13 -16
- package/src/components/pricing-cards/pricing-feature-item.css.js +18 -0
- package/src/components/pricing-cards/pricing-feature-item.js +14 -0
- package/src/components/radio/radio.css.js +18 -18
- package/src/components/radio/radio.js +1 -0
- package/src/components/tabs/tabs.css.js +21 -11
- package/src/components/tabs/tabs.js +24 -18
- package/src/components/termsOfUse/terms.css.js +6 -6
- package/src/components/termsOfUse/terms.js +0 -1
- package/src/stories/demo.stories.js +271 -0
- package/src/tokens/colors.js +10 -10
- package/src/tokens/fonts.stories.js +5 -5
- package/src/tokens/layout.css +4 -3
- package/src/tokens/new-tokens.css +698 -0
- package/src/tokens/spacing.stories.js +1 -1
- package/src/tokens/tokens.css +1063 -0
- package/src/tokens/tokens.stories.js +3 -3
- package/src/tokens/typography.css.js +0 -4
- package/src/tokens/typography.stories.js +2 -2
- package/src/components/Input/index.js +0 -0
- package/src/components/highlight/highlight-s.css.js +0 -88
- package/src/components/highlight/highlight-s.js +0 -35
- package/src/components/highlight/highlight-s.stories.js +0 -22
|
@@ -18,7 +18,7 @@ export const Colors = () => html`
|
|
|
18
18
|
margin-bottom: 32px;
|
|
19
19
|
}
|
|
20
20
|
.color-group-title {
|
|
21
|
-
font-family: var(--
|
|
21
|
+
font-family: var(--typography-fontFamily-sans);
|
|
22
22
|
font-weight: 600;
|
|
23
23
|
font-size: var(--heading-medium);
|
|
24
24
|
margin-bottom: 16px;
|
|
@@ -32,7 +32,7 @@ export const Colors = () => html`
|
|
|
32
32
|
width: 80px;
|
|
33
33
|
height: 80px;
|
|
34
34
|
margin: 6px;
|
|
35
|
-
border-radius:
|
|
35
|
+
border-radius: var(--radius-lg);
|
|
36
36
|
box-shadow: 0 0 4px rgba(0,0,0,0.1);
|
|
37
37
|
color: white;
|
|
38
38
|
font-family: var(--font-family-mono);
|
|
@@ -44,7 +44,7 @@ export const Colors = () => html`
|
|
|
44
44
|
margin-top: 6px;
|
|
45
45
|
color: var(--color-neutral-900);
|
|
46
46
|
font-weight: 600;
|
|
47
|
-
font-family: var(--
|
|
47
|
+
font-family: var(--typography-fontFamily-sans);
|
|
48
48
|
font-size: 10px;
|
|
49
49
|
white-space: nowrap;
|
|
50
50
|
}
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
|
|
7
7
|
const typographyTokens = {
|
|
8
8
|
families: {
|
|
9
|
-
'Sans': 'var(--
|
|
9
|
+
'Sans': 'var(--typography-fontFamily-sans, "IBM Plex Sans", Arial, sans-serif)',
|
|
10
10
|
'Mono': 'var(--font-family-mono, "IBM Plex Mono", monospace)',
|
|
11
11
|
},
|
|
12
12
|
sizes: {
|
|
@@ -26,7 +26,7 @@ const typographyTokens = {
|
|
|
26
26
|
export const Typography = () => html`
|
|
27
27
|
<style>
|
|
28
28
|
h3 {
|
|
29
|
-
font-family: var(--
|
|
29
|
+
font-family: var(--typography-fontFamily-sans);
|
|
30
30
|
font-weight: 600;
|
|
31
31
|
font-size: var(--heading-medium);
|
|
32
32
|
margin-bottom: 16px;
|
|
File without changes
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
export const highlightTextStyles = css`
|
|
4
|
-
:host {
|
|
5
|
-
--base-font-size: 32px;
|
|
6
|
-
--deco-height-multiplier: 1.4375; /* 46px / 32px */
|
|
7
|
-
--rect-height-multiplier: 1.1875; /* 38px / 32px */
|
|
8
|
-
--ellipse-size-multiplier: 0.25; /* 8px / 32px */
|
|
9
|
-
|
|
10
|
-
--deco-height: calc(var(--base-font-size) * var(--deco-height-multiplier));
|
|
11
|
-
--rect-height: calc(var(--base-font-size) * var(--rect-height-multiplier));
|
|
12
|
-
--ellipse-size: calc(var(--base-font-size) * var(--ellipse-size-multiplier));
|
|
13
|
-
|
|
14
|
-
display: inline-block;
|
|
15
|
-
font-family: 'IBM Plex Sans', sans-serif;
|
|
16
|
-
font-weight: 700;
|
|
17
|
-
font-size: var(--base-font-size);
|
|
18
|
-
line-height: 1.3;
|
|
19
|
-
color: #000;
|
|
20
|
-
text-align: center;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.highlight {
|
|
24
|
-
background: none;
|
|
25
|
-
color: #000;
|
|
26
|
-
display: inline-block;
|
|
27
|
-
font: inherit;
|
|
28
|
-
font-weight: inherit;
|
|
29
|
-
font-size: inherit;
|
|
30
|
-
line-height: inherit;
|
|
31
|
-
position: relative;
|
|
32
|
-
vertical-align: middle;
|
|
33
|
-
top: -4px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.highlight-bg {
|
|
37
|
-
background: #F1F7FE;
|
|
38
|
-
display: inline-block;
|
|
39
|
-
position: relative;
|
|
40
|
-
padding: 0 4px;
|
|
41
|
-
margin-left: 4px;
|
|
42
|
-
margin-right: 4px;
|
|
43
|
-
z-index: 1;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.highlight-deco {
|
|
47
|
-
position: absolute;
|
|
48
|
-
top: 0;
|
|
49
|
-
width: var(--ellipse-size);
|
|
50
|
-
height: var(--deco-height);
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
align-items: center;
|
|
54
|
-
justify-content: flex-start;
|
|
55
|
-
pointer-events: none;
|
|
56
|
-
z-index: 2;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.highlight-deco.left {
|
|
60
|
-
left: -3px;
|
|
61
|
-
top: -4px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.highlight-deco.right {
|
|
65
|
-
right: -3px;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.highlight-svg-ellipse-top,
|
|
69
|
-
.highlight-svg-ellipse-bottom {
|
|
70
|
-
width: var(--ellipse-size);
|
|
71
|
-
height: var(--ellipse-size);
|
|
72
|
-
fill: #006DFF;
|
|
73
|
-
display: block;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.highlight-svg-rect {
|
|
77
|
-
width: calc(var(--ellipse-size) * 0.25); /* 2px when ellipse is 8px */
|
|
78
|
-
height: var(--rect-height);
|
|
79
|
-
fill: #006DFF;
|
|
80
|
-
display: block;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@media (max-width: 600px) {
|
|
84
|
-
:host {
|
|
85
|
-
--base-font-size: 20px;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
`;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { LitElement, html } from 'lit';
|
|
2
|
-
import { highlightTextStyles } from './highlight-s.css.js';
|
|
3
|
-
|
|
4
|
-
export class HighlightText extends LitElement {
|
|
5
|
-
static styles = highlightTextStyles;
|
|
6
|
-
|
|
7
|
-
render() {
|
|
8
|
-
return html`
|
|
9
|
-
<span class="highlight">
|
|
10
|
-
<span class="highlight-bg">
|
|
11
|
-
<span class="highlight-deco left">
|
|
12
|
-
<svg class="highlight-svg-ellipse-top" viewBox="0 0 8 8">
|
|
13
|
-
<ellipse cx="4" cy="4" rx="4" ry="4" />
|
|
14
|
-
</svg>
|
|
15
|
-
<svg class="highlight-svg-rect" viewBox="0 0 2 42">
|
|
16
|
-
<rect x="0" y="0" width="2" height="42" />
|
|
17
|
-
</svg>
|
|
18
|
-
</span>
|
|
19
|
-
<slot></slot>
|
|
20
|
-
<span class="highlight-deco right">
|
|
21
|
-
<svg class="highlight-svg-rect" viewBox="0 0 2 42">
|
|
22
|
-
<rect x="0" y="0" width="2" height="42" />
|
|
23
|
-
</svg>
|
|
24
|
-
<svg class="highlight-svg-ellipse-bottom" viewBox="0 0 8 8">
|
|
25
|
-
<ellipse cx="4" cy="4" rx="4" ry="4" />
|
|
26
|
-
</svg>
|
|
27
|
-
</span>
|
|
28
|
-
</span>
|
|
29
|
-
</span>
|
|
30
|
-
`;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
customElements.define('highlight-text-s', HighlightText);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
import './highlight-s.js';
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: 'Components/HighlightText',
|
|
6
|
-
component: 'highlight-text-s',
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
const Template = ({ beforeText, highlightText, afterText }) => html`
|
|
10
|
-
<h1>
|
|
11
|
-
${beforeText}
|
|
12
|
-
<highlight-text-s>${highlightText}</highlight-text-s>
|
|
13
|
-
${afterText}
|
|
14
|
-
</h1>
|
|
15
|
-
`;
|
|
16
|
-
|
|
17
|
-
export const InlineText = Template.bind({});
|
|
18
|
-
InlineText.args = {
|
|
19
|
-
beforeText: 'Introducing ',
|
|
20
|
-
highlightText: 'the next generation',
|
|
21
|
-
afterText: ' of digital security: your personalized shield for a worry-free online experience.',
|
|
22
|
-
};
|