@repobit/dex-system-design 0.10.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.
Files changed (107) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/package.json +2 -2
  3. package/src/assets/icons/Identity_protection.png +0 -0
  4. package/src/assets/icons/arrow_down.png +0 -0
  5. package/src/assets/icons/arrow_up.png +0 -0
  6. package/src/assets/icons/device_protection.png +0 -0
  7. package/src/assets/icons/financial_insurance.png +0 -0
  8. package/src/assets/icons/privacy_protection.png +0 -0
  9. package/src/assets/icons/user_guide.png +0 -0
  10. package/src/components/Button/Button.js +19 -16
  11. package/src/components/Button/button.css.js +18 -16
  12. package/src/components/Button/icons.js +8 -8
  13. package/src/components/FAQ/faq.css.js +48 -49
  14. package/src/components/FAQ/faq.js +0 -86
  15. package/src/components/Input/Input.js +68 -6
  16. package/src/components/Input/custom-form.stories.js +88 -0
  17. package/src/components/Input/input-clipboard.css.js +168 -0
  18. package/src/components/Input/input-clipboard.js +137 -0
  19. package/src/components/Input/input.css.js +122 -42
  20. package/src/components/accordion/accordion-bg.css.js +117 -0
  21. package/src/components/accordion/accordion-bg.js +80 -0
  22. package/src/components/accordion/accordion-no-bg.css.js +114 -0
  23. package/src/components/accordion/accordion-no-bg.js +80 -0
  24. package/src/components/accordion/accordion.css.js +88 -0
  25. package/src/components/accordion/accordion.js +81 -0
  26. package/src/components/anchor/anchor-nav.css.js +15 -15
  27. package/src/components/anchor/anchor-nav.js +0 -1
  28. package/src/components/anchor/anchor.stories.js +10 -13
  29. package/src/components/badge/badge.css.js +6 -6
  30. package/src/components/badge/badge.js +1 -2
  31. package/src/components/badge/badge.stories.js +6 -6
  32. package/src/components/carousel/carousel.css.js +60 -60
  33. package/src/components/carousel/carousel.js +26 -30
  34. package/src/components/carousel/carousel.stories.js +55 -55
  35. package/src/components/checkbox/checkbox.css.js +14 -14
  36. package/src/components/divider/divider-horizontal.js +19 -14
  37. package/src/components/divider/divider-vertical.js +23 -14
  38. package/src/components/divider/divider.css.js +19 -0
  39. package/src/components/dropdown/dropdown.css.js +138 -0
  40. package/src/components/dropdown/dropdown.js +111 -0
  41. package/src/components/footer/footer-links-group.css.js +42 -0
  42. package/src/components/footer/footer-links-group.js +25 -0
  43. package/src/components/footer/footer-lp.css.js +625 -0
  44. package/src/components/footer/footer-lp.js +368 -0
  45. package/src/components/footer/footer-lp.stories.js +69 -0
  46. package/src/components/footer/footer-nav-menu.css.js +24 -0
  47. package/src/components/footer/footer-nav-menu.js +36 -0
  48. package/src/components/footer/footer.css.js +625 -0
  49. package/src/components/footer/footer.js +465 -0
  50. package/src/components/footer/footer.stories.js +60 -0
  51. package/src/components/footer/localeMap.js +1 -0
  52. package/src/components/grid/grid.css.js +38 -0
  53. package/src/components/grid/grid.js +55 -0
  54. package/src/components/header/header.css.js +81 -52
  55. package/src/components/header/header.js +19 -19
  56. package/src/components/highlight/highlight.css.js +32 -22
  57. package/src/components/highlight/highlight.js +15 -4
  58. package/src/components/highlight/highlight.stories.js +4 -4
  59. package/src/components/light-carousel/light-carousel-simple.css.js +183 -0
  60. package/src/components/light-carousel/light-carousel-simple.js +73 -0
  61. package/src/components/light-carousel/light-carousel.css.js +50 -31
  62. package/src/components/light-carousel/light-carousel.js +14 -57
  63. package/src/components/light-carousel/light-carousel.stories.js +51 -10
  64. package/src/components/link/link.css.js +41 -0
  65. package/src/components/link/link.js +54 -0
  66. package/src/components/modal/modal.css.js +75 -0
  67. package/src/components/modal/modal.js +41 -0
  68. package/src/components/modal/modal.stories.js +40 -0
  69. package/src/components/paragraph/paragraph.css.js +1 -3
  70. package/src/components/pricing-cards/new-pricing-card.js +30 -0
  71. package/src/components/pricing-cards/new-pricing.css.js +58 -0
  72. package/src/components/pricing-cards/pricing-card-actions.css.js +16 -0
  73. package/src/components/pricing-cards/pricing-card-actions.js +20 -0
  74. package/src/components/pricing-cards/pricing-card-container.css.js +41 -0
  75. package/src/components/pricing-cards/pricing-card-container.js +31 -0
  76. package/src/components/pricing-cards/pricing-card-header.css.js +70 -0
  77. package/src/components/pricing-cards/pricing-card-header.js +46 -0
  78. package/src/components/pricing-cards/pricing-card-pricing.css.js +63 -0
  79. package/src/components/pricing-cards/pricing-card-pricing.js +101 -0
  80. package/src/components/pricing-cards/pricing-card-show-more.css.js +22 -0
  81. package/src/components/pricing-cards/pricing-card-show-more.js +33 -0
  82. package/src/components/pricing-cards/pricing-card.css.js +91 -89
  83. package/src/components/pricing-cards/pricing-card.js +13 -16
  84. package/src/components/pricing-cards/pricing-feature-item.css.js +18 -0
  85. package/src/components/pricing-cards/pricing-feature-item.js +14 -0
  86. package/src/components/radio/radio.css.js +18 -18
  87. package/src/components/radio/radio.js +1 -0
  88. package/src/components/tabs/tabs.css.js +21 -11
  89. package/src/components/tabs/tabs.js +24 -18
  90. package/src/components/termsOfUse/terms.css.js +6 -6
  91. package/src/components/termsOfUse/terms.js +0 -1
  92. package/src/stories/demo.stories.js +271 -0
  93. package/src/tokens/colors.js +10 -10
  94. package/src/tokens/fonts.css +166 -0
  95. package/src/tokens/fonts.stories.js +5 -5
  96. package/src/tokens/layout.css +4 -3
  97. package/src/tokens/new-tokens.css +698 -0
  98. package/src/tokens/spacing.stories.js +1 -1
  99. package/src/tokens/tokens.css +1063 -0
  100. package/src/tokens/tokens.js +0 -133
  101. package/src/tokens/tokens.stories.js +3 -3
  102. package/src/tokens/typography.css.js +0 -4
  103. package/src/tokens/typography.stories.js +2 -2
  104. package/src/components/Input/index.js +0 -0
  105. package/src/components/highlight/highlight-s.css.js +0 -88
  106. package/src/components/highlight/highlight-s.js +0 -35
  107. package/src/components/highlight/highlight-s.stories.js +0 -22
@@ -252,139 +252,6 @@ export const tokens = css`
252
252
  --breakpoint-lg: 992px;
253
253
  --breakpoint-xl: 1200px;
254
254
  --breakpoint-xxl: 1400px;
255
- /* =====================
256
- FONT-FACE DEFINITIONS
257
- ====================== */
258
-
259
- @font-face {
260
- font-family: 'IBM Plex Mono';
261
- font-style: normal;
262
- font-weight: 700;
263
- src: url('/assets/fonts/IBMPlexMono-Bold.woff2') format('woff2');
264
- }
265
- @font-face {
266
- font-family: 'IBM Plex Mono';
267
- font-style: normal;
268
- font-weight: 700;
269
- src: url('/assets/fonts/IBMPlexMono-BoldItalic.woff2') format('woff2');
270
- }
271
-
272
- @font-face {
273
- font-family: 'IBM Plex Mono';
274
- font-style: italic;
275
- font-weight: 300;
276
- src: url('/assets/fonts/IBMPlexMono-Italic.woff2') format('woff2');
277
- }
278
- @font-face {
279
- font-family: 'IBM Plex Mono';
280
- font-style: normal;
281
- font-weight: 300;
282
- src: url('/assets/fonts/IBMPlexMono-Light.woff2') format('woff2');
283
- }
284
- @font-face {
285
- font-family: 'IBM Plex Mono';
286
- font-style: italic;
287
- font-weight: 300;
288
- src: url('/assets/fonts/IBMPlexMono-LightItalic.woff2') format('woff2');
289
- }
290
-
291
- @font-face {
292
- font-family: 'IBM Plex Mono';
293
- font-style: italic;
294
- font-weight: 500;
295
- src: url('/assets/fonts/IBMPlexMono-Medium.woff2') format('woff2');
296
- }
297
- @font-face {
298
- font-family: 'IBM Plex Mono';
299
- font-style: italic;
300
- font-weight: 500;
301
- src: url('/assets/fonts/IBMPlexMono-MediumItalic.woff2') format('woff2');
302
- }
303
- @font-face {
304
- font-family: 'IBM Plex Mono';
305
- font-style: italic;
306
- font-weight: 400;
307
- src: url('/assets/fonts/IBMPlexMono-Regular.woff2') format('woff2');
308
- }
309
- @font-face {
310
- font-family: 'IBM Plex Mono';
311
- font-style: italic;
312
- font-weight: 600;
313
- src: url('/assets/fonts/IBMPlexMono-SemiBold.woff2') format('woff2');
314
- }
315
- @font-face {
316
- font-family: 'IBM Plex Mono';
317
- font-style: italic;
318
- font-weight: 600;
319
- src: url('/assets/fonts/IBMPlexMono-SemiBoldItalic.woff2') format('woff2');
320
- }
321
-
322
- /*
323
- IBM PLEX SANS
324
- */
325
-
326
- @font-face {
327
- font-family: 'IBMPlexSans';
328
- font-style: normal;
329
- font-weight: 700;
330
- src: url('/assets/fonts/IBMPlexSans-Bold.woff2') format('woff2');
331
- }
332
- @font-face {
333
- font-family: 'IBMPlexSans';
334
- font-style: normal;
335
- font-weight: 700;
336
- src: url('/assets/fonts/IBMPlexSans-BoldItalic.woff2') format('woff2');
337
- }
338
-
339
- @font-face {
340
- font-family: 'IBMPlexSans';
341
- font-style: italic;
342
- font-weight: 300;
343
- src: url('/assets/fonts/IBMPlexSans-Italic.woff2') format('woff2');
344
- }
345
- @font-face {
346
- font-family: 'IBMPlexSans';
347
- font-style: normal;
348
- font-weight: 300;
349
- src: url('/assets/fonts/IBMPlexSans-Light.woff2') format('woff2');
350
- }
351
- @font-face {
352
- font-family: 'IBMPlexSans';
353
- font-style: italic;
354
- font-weight: 300;
355
- src: url('/assets/fonts/IBMPlexSans-LightItalic.woff2') format('woff2');
356
- }
357
-
358
- @font-face {
359
- font-family: 'IBMPlexSans';
360
- font-style: italic;
361
- font-weight: 500;
362
- src: url('/assets/fonts/IBMPlexSans-Medium.woff2') format('woff2');
363
- }
364
- @font-face {
365
- font-family: 'IBMPlexSans';
366
- font-style: italic;
367
- font-weight: 500;
368
- src: url('/assets/fonts/IBMPlexSans-MediumItalic.woff2') format('woff2');
369
- }
370
- @font-face {
371
- font-family: 'IBMPlexSans';
372
- font-style: italic;
373
- font-weight: 400;
374
- src: url('/assets/fonts/IBMPlexSans-Regular.woff2') format('woff2');
375
- }
376
- @font-face {
377
- font-family: 'IBMPlexSans';
378
- font-style: italic;
379
- font-weight: 600;
380
- src: url('/assets/fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
381
- }
382
- @font-face {
383
- font-family: 'IBMPlexSans';
384
- font-style: italic;
385
- font-weight: 600;
386
- src: url('/assets/fonts/IBMPlexSans-SemiBoldItalic.woff2') format('woff2');
387
- }
388
255
 
389
256
  /* =====================
390
257
  FONT TOKENS
@@ -18,7 +18,7 @@ export const Colors = () => html`
18
18
  margin-bottom: 32px;
19
19
  }
20
20
  .color-group-title {
21
- font-family: var(--font-family-sans);
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: 8px;
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(--font-family-sans);
47
+ font-family: var(--typography-fontFamily-sans);
48
48
  font-size: 10px;
49
49
  white-space: nowrap;
50
50
  }
@@ -2,12 +2,8 @@ import { css } from "lit";
2
2
 
3
3
  export default css`
4
4
 
5
- /*<!-- typography -->*/
6
5
 
7
6
 
8
-
9
- /* <!-- display -->/
10
- /* <!-- desktop -->*/
11
7
  .text-display-xlarge {
12
8
  font-family: 'Arial',sans-serif;
13
9
  font-size: 4em;
@@ -6,7 +6,7 @@ export default {
6
6
 
7
7
  const typographyTokens = {
8
8
  families: {
9
- 'Sans': 'var(--font-family-sans, "IBM Plex Sans", Arial, sans-serif)',
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(--font-family-sans);
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
- };