@repobit/dex-system-design 0.20.0 → 0.21.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 (63) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/package.json +2 -2
  3. package/src/components/Button/button.stories.js +51 -51
  4. package/src/components/accordion/accordion-bg.css.js +141 -123
  5. package/src/components/accordion/accordion-bg.stories.js +102 -72
  6. package/src/components/accordion/accordion-light.stories.js +78 -53
  7. package/src/components/anchor/anchor.stories.js +24 -22
  8. package/src/components/back/back.css.js +56 -0
  9. package/src/components/back/back.js +39 -0
  10. package/src/components/back/back.stories.js +184 -0
  11. package/src/components/badge/badge.stories.js +3 -10
  12. package/src/components/breadcrumb/breadcrumb.css.js +98 -0
  13. package/src/components/breadcrumb/breadcrumb.js +136 -0
  14. package/src/components/breadcrumb/breadcrumb.stories.js +109 -0
  15. package/src/components/cards/card.js +2 -1
  16. package/src/components/cards/card.stories.js +49 -49
  17. package/src/components/carousel/carousel.css.js +8 -1
  18. package/src/components/carousel/carousel.js +0 -1
  19. package/src/components/carousel/carousel.stories.js +21 -17
  20. package/src/components/display/display.css.js +68 -0
  21. package/src/components/display/display.js +26 -0
  22. package/src/components/display/display.stories.js +339 -0
  23. package/src/components/divider/divider-horizontal.js +1 -1
  24. package/src/components/footer/footer-links-group.js +3 -3
  25. package/src/components/footer/footer-lp.stories.js +0 -1
  26. package/src/components/footer/footer.css.js +0 -6
  27. package/src/components/footer/footer.js +21 -41
  28. package/src/components/footer/footer.stories.js +0 -1
  29. package/src/components/header/header.js +11 -11
  30. package/src/components/header/header.stories.js +36 -4
  31. package/src/components/heading/heading.css.js +79 -0
  32. package/src/components/heading/heading.js +79 -0
  33. package/src/components/heading/heading.stories.js +260 -0
  34. package/src/components/highlight/highlight.stories.js +1 -1
  35. package/src/components/image/image.css.js +101 -0
  36. package/src/components/image/image.js +57 -0
  37. package/src/components/image/image.stories.js +245 -0
  38. package/src/components/light-carousel/light-carousel-simple.js +3 -2
  39. package/src/components/light-carousel/light-carousel.js +3 -7
  40. package/src/components/light-carousel/light-carousel.stories.js +12 -13
  41. package/src/components/link/link.css.js +107 -18
  42. package/src/components/link/link.js +16 -12
  43. package/src/components/link/link.stories.js +177 -0
  44. package/src/components/list/list-item/list-item.css.js +106 -0
  45. package/src/components/list/list-item/list-item.js +43 -0
  46. package/src/components/list/list-item/list-item.stories.js +79 -0
  47. package/src/components/list/list.css.js +175 -0
  48. package/src/components/list/list.js +44 -0
  49. package/src/components/modal/modal.js +6 -5
  50. package/src/components/paragraph/paragraph.css.js +41 -11
  51. package/src/components/paragraph/paragraph.js +7 -45
  52. package/src/components/paragraph/paragraph.stories.js +235 -0
  53. package/src/components/picture/picture.css.js +0 -0
  54. package/src/components/picture/picture.js +46 -0
  55. package/src/components/picture/picture.stories.js +275 -0
  56. package/src/components/pricing-cards/pricing-card-header.js +9 -7
  57. package/src/components/pricing-cards/pricing-card-pricing.js +11 -12
  58. package/src/components/pricing-cards/pricing-card.js +37 -36
  59. package/src/components/tabs/tabs.js +44 -47
  60. package/src/components/termsOfUse/terms.js +77 -161
  61. package/src/components/termsOfUse/terms.stories.js +4 -3
  62. package/src/stories/Header.js +6 -6
  63. package/src/tokens/tokens.stories.js +9 -8
@@ -1,6 +1,6 @@
1
1
  import { html } from 'lit';
2
+ import '../heading/heading.js';
2
3
  import './card.js';
3
-
4
4
  export default {
5
5
  title : 'Components/Card',
6
6
  component : 'bd-card-section',
@@ -25,10 +25,10 @@ const Template = (args) => html`
25
25
  icon="/assets/device_protection.png"
26
26
  align="${args.align}"
27
27
  >
28
- <p>
28
+ <bd-p kind="small">
29
29
  Specialized AI chatbot that helps you identify suspicious online
30
30
  interactions so you don't become a victim.
31
- </p>
31
+ </bd-p>
32
32
  </bd-card-item>
33
33
 
34
34
  <bd-card-item
@@ -36,10 +36,10 @@ const Template = (args) => html`
36
36
  icon="/assets/privacy_protection.png"
37
37
  align="${args.align}"
38
38
  >
39
- <p>
39
+ <bd-p kind="small">
40
40
  Specialized AI chatbot that helps you identify suspicious online
41
41
  interactions so you don't become a victim.
42
- </p>
42
+ </bd-p>
43
43
  </bd-card-item>
44
44
 
45
45
  <bd-card-item
@@ -47,10 +47,10 @@ const Template = (args) => html`
47
47
  icon="/assets/identity_protection.png"
48
48
  align="${args.align}"
49
49
  >
50
- <p>
50
+ <bd-p kind="small">
51
51
  Stay informed with real-time alerts about ongoing scam outbreaks
52
52
  detected in your area automatically.
53
- </p>
53
+ </bd-p>
54
54
  </bd-card-item>
55
55
 
56
56
  <bd-card-item
@@ -58,10 +58,10 @@ const Template = (args) => html`
58
58
  icon="/assets/financial_insurance.png"
59
59
  align="${args.align}"
60
60
  >
61
- <p>
61
+ <bd-p kind="small">
62
62
  Focused on browsing activities, it specializes in detecting the newest
63
63
  scam patterns and tactics.
64
- </p>
64
+ </bd-p>
65
65
  </bd-card-item>
66
66
  </bd-card-section>
67
67
  `;
@@ -141,7 +141,7 @@ export const MixedContentTypes = () => html`
141
141
  icon="/assets/device_protection.png"
142
142
  align="start"
143
143
  >
144
- <p>This card has both icon, title and description text below.</p>
144
+ <bd-p kind="small">This card has both icon, title and description text below.</bd-p>
145
145
  </bd-card-item>
146
146
 
147
147
  <bd-card-item
@@ -155,7 +155,7 @@ export const MixedContentTypes = () => html`
155
155
  icon="/assets/identity_protection.png"
156
156
  align="start"
157
157
  >
158
- <p>This card includes detailed description about the feature.</p>
158
+ <bd-p kind="small">This card includes detailed description about the feature.</bd-p>
159
159
  </bd-card-item>
160
160
 
161
161
  <bd-card-item
@@ -173,7 +173,7 @@ export const MixedContentTypesCentered = () => html`
173
173
  icon="/assets/device_protection.png"
174
174
  align="center"
175
175
  >
176
- <p>This card has both icon, title and description text below.</p>
176
+ <bd-p kind="small">This card has both icon, title and description text below.</bd-p>
177
177
  </bd-card-item>
178
178
 
179
179
  <bd-card-item
@@ -187,7 +187,7 @@ export const MixedContentTypesCentered = () => html`
187
187
  icon="/assets/identity_protection.png"
188
188
  align="center"
189
189
  >
190
- <p>This card includes detailed description about the feature.</p>
190
+ <bd-p kind="small">This card includes detailed description about the feature.</bd-p>
191
191
  </bd-card-item>
192
192
 
193
193
  <bd-card-item
@@ -217,7 +217,7 @@ export const SingleCard = (args) => html`
217
217
  icon="${args.icon}"
218
218
  align="${args.align}"
219
219
  >
220
- <p>${args.content}</p>
220
+ <bd-p kind="small">${args.content}</bd-p>
221
221
  </bd-card-item>
222
222
  </bd-card-section>
223
223
  `;
@@ -267,7 +267,7 @@ export const MultipleCardsGrid = (args) => html`
267
267
  icon="${args.icon}"
268
268
  align="${args.align}"
269
269
  >
270
- <p>${args.content} This is card number ${i + 1}.</p>
270
+ <bd-p kind="small">${args.content} This is card number ${i + 1}.</bd-p>
271
271
  </bd-card-item>
272
272
  `)}
273
273
  </bd-card-section>
@@ -297,7 +297,7 @@ export const CardItemVariations = () => html`
297
297
  icon="/assets/device_protection.png"
298
298
  align="start"
299
299
  >
300
- <p>This card has both an icon and a title with description.</p>
300
+ <bd-p kind="small">This card has both an icon and a title with description.</bd-p>
301
301
  </bd-card-item>
302
302
 
303
303
  <bd-card-item
@@ -310,18 +310,18 @@ export const CardItemVariations = () => html`
310
310
  title="Title Only"
311
311
  align="start"
312
312
  >
313
- <p>This card has only a title without an icon, aligned to start.</p>
313
+ <bd-p kind="small">This card has only a title without an icon, aligned to start.</bd-p>
314
314
  </bd-card-item>
315
315
 
316
316
  <bd-card-item
317
317
  icon="/assets/privacy_protection.png"
318
318
  align="start"
319
319
  >
320
- <p>This card has only an icon without a title, aligned to start.</p>
320
+ <bd-p kind="small">This card has only an icon without a title, aligned to start.</bd-p>
321
321
  </bd-card-item>
322
322
 
323
323
  <bd-card-item align="start">
324
- <p>This card has neither icon nor title - just content, aligned to start.</p>
324
+ <bd-p kind="small">This card has neither icon nor title - just content, aligned to start.</bd-p>
325
325
  </bd-card-item>
326
326
  </bd-card-section>
327
327
 
@@ -332,7 +332,7 @@ export const CardItemVariations = () => html`
332
332
  icon="/assets/device_protection.png"
333
333
  align="center"
334
334
  >
335
- <p>This card has both an icon and a title with description.</p>
335
+ <bd-p kind="small">This card has both an icon and a title with description.</bd-p>
336
336
  </bd-card-item>
337
337
 
338
338
  <bd-card-item
@@ -345,18 +345,18 @@ export const CardItemVariations = () => html`
345
345
  title="Title Only"
346
346
  align="center"
347
347
  >
348
- <p>This card has only a title without an icon, centered alignment.</p>
348
+ <bd-p kind="small">This card has only a title without an icon, centered alignment.</bd-p>
349
349
  </bd-card-item>
350
350
 
351
351
  <bd-card-item
352
352
  icon="/assets/privacy_protection.png"
353
353
  align="center"
354
354
  >
355
- <p>This card has only an icon without a title, centered alignment.</p>
355
+ <bd-p kind="small">This card has only an icon without a title, centered alignment.</bd-p>
356
356
  </bd-card-item>
357
357
 
358
358
  <bd-card-item align="center">
359
- <p>This card has neither icon nor title - just content, centered alignment.</p>
359
+ <bd-p kind="small">This card has neither icon nor title - just content, centered alignment.</bd-p>
360
360
  </bd-card-item>
361
361
  </bd-card-section>
362
362
  </div>
@@ -371,16 +371,16 @@ export const LongContent = () => html`
371
371
  icon="/assets/identity_protection.png"
372
372
  align="start"
373
373
  >
374
- <p>
374
+ <bd-p kind="small">
375
375
  This is a much longer description that might wrap across multiple lines.
376
376
  It provides comprehensive details about the feature, its benefits,
377
377
  and how it helps protect users from various types of online threats
378
378
  and scams in today's digital landscape.
379
- </p>
380
- <p>
379
+ </bd-p>
380
+ <bd-p kind="small">
381
381
  Additional paragraph to demonstrate how multiple paragraphs of content
382
382
  would appear within the card component.
383
- </p>
383
+ </bd-p>
384
384
  </bd-card-item>
385
385
 
386
386
  <bd-card-item
@@ -388,7 +388,7 @@ export const LongContent = () => html`
388
388
  icon="/assets/financial_insurance.png"
389
389
  align="start"
390
390
  >
391
- <p>Regular content with an exceptionally long title, aligned to start.</p>
391
+ <bd-p kind="small">Regular content with an exceptionally long title, aligned to start.</bd-p>
392
392
  </bd-card-item>
393
393
  </bd-card-section>
394
394
 
@@ -399,16 +399,16 @@ export const LongContent = () => html`
399
399
  icon="/assets/identity_protection.png"
400
400
  align="center"
401
401
  >
402
- <p>
402
+ <bd-p kind="small">
403
403
  This is a much longer description that might wrap across multiple lines.
404
404
  It provides comprehensive details about the feature, its benefits,
405
405
  and how it helps protect users from various types of online threats
406
406
  and scams in today's digital landscape.
407
- </p>
408
- <p>
407
+ </bd-p>
408
+ <bd-p kind="small">
409
409
  Additional paragraph to demonstrate how multiple paragraphs of content
410
410
  would appear within the card component.
411
- </p>
411
+ </bd-p>
412
412
  </bd-card-item>
413
413
 
414
414
  <bd-card-item
@@ -416,7 +416,7 @@ export const LongContent = () => html`
416
416
  icon="/assets/financial_insurance.png"
417
417
  align="center"
418
418
  >
419
- <p>Regular content with an exceptionally long title, centered alignment.</p>
419
+ <bd-p kind="small">Regular content with an exceptionally long title, centered alignment.</bd-p>
420
420
  </bd-card-item>
421
421
  </bd-card-section>
422
422
  </div>
@@ -429,8 +429,8 @@ export const MixedAlignment = () => html`
429
429
  icon="/assets/device_protection.png"
430
430
  align="start"
431
431
  >
432
- <p>This card is left aligned with content starting from the left side.</p>
433
- <p>Perfect for longer text content that reads better when left aligned.</p>
432
+ <bd-p kind="small">This card is left aligned with content starting from the left side.</bd-p>
433
+ <bd-p kind="small">Perfect for longer text content that reads better when left aligned.</bd-p>
434
434
  </bd-card-item>
435
435
 
436
436
  <bd-card-item
@@ -438,8 +438,8 @@ export const MixedAlignment = () => html`
438
438
  icon="/assets/privacy_protection.png"
439
439
  align="center"
440
440
  >
441
- <p>This card is center aligned with everything centered.</p>
442
- <p>Great for highlight features or call-to-action cards.</p>
441
+ <bd-p kind="small">This card is center aligned with everything centered.</bd-p>
442
+ <bd-p kind="small">Great for highlight features or call-to-action cards.</bd-p>
443
443
  </bd-card-item>
444
444
 
445
445
  <bd-card-item
@@ -447,7 +447,7 @@ export const MixedAlignment = () => html`
447
447
  icon="/assets/identity_protection.png"
448
448
  align="start"
449
449
  >
450
- <p>Another left aligned card with detailed description.</p>
450
+ <bd-p kind="small">Another left aligned card with detailed description.</bd-p>
451
451
  </bd-card-item>
452
452
 
453
453
  <bd-card-item
@@ -455,7 +455,7 @@ export const MixedAlignment = () => html`
455
455
  icon="/assets/financial_insurance.png"
456
456
  align="center"
457
457
  >
458
- <p>Another center aligned card for balanced presentation.</p>
458
+ <bd-p kind="small">Another center aligned card for balanced presentation.</bd-p>
459
459
  </bd-card-item>
460
460
  </bd-card-section>
461
461
  `;
@@ -464,25 +464,25 @@ export const AlignmentComparison = () => html`
464
464
  <bd-card-section title="Alignment Comparison">
465
465
  <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem;">
466
466
  <div>
467
- <h3 style="text-align: center; color: #333;">Start Aligned</h3>
467
+ <bd-h as="h4" style="text-align: center; color: #333; padding: 10px 0;">Start Aligned</bd-h>
468
468
  <bd-card-item
469
469
  title="Start Aligned Example"
470
470
  icon="/assets/device_protection.png"
471
471
  align="start"
472
472
  >
473
- <p>This card shows start alignment where content begins from the left.</p>
474
- <p>Ideal for readability and longer text content.</p>
473
+ <bd-p kind="small">This card shows start alignment where content begins from the left.</bd-p>
474
+ <bd-p kind="small">Ideal for readability and longer text content.</bd-p>
475
475
  </bd-card-item>
476
476
  </div>
477
477
  <div>
478
- <h3 style="text-align: center; color: #333;">Center Aligned</h3>
478
+ <bd-h as="h4" style="text-align: center; color: #333; padding: 10px 0;">Center Aligned</bd-h>
479
479
  <bd-card-item
480
480
  title="Center Aligned Example"
481
481
  icon="/assets/device_protection.png"
482
482
  align="center"
483
483
  >
484
- <p>This card shows center alignment with balanced presentation.</p>
485
- <p>Perfect for feature highlights and visual balance.</p>
484
+ <bd-p kind="small">This card shows center alignment with balanced presentation.</bd-p>
485
+ <bd-p kind="small">Perfect for feature highlights and visual balance.</bd-p>
486
486
  </bd-card-item>
487
487
  </div>
488
488
  </div>
@@ -496,8 +496,8 @@ export const ResponsiveAlignment = () => html`
496
496
  icon="/assets/device_protection.png"
497
497
  align="start"
498
498
  >
499
- <p>This card maintains start alignment across all screen sizes.</p>
500
- <p>On mobile devices, the content will still be aligned to the start.</p>
499
+ <bd-p kind="small">This card maintains start alignment across all screen sizes.</bd-p>
500
+ <bd-p kind="small">On mobile devices, the content will still be aligned to the start.</bd-p>
501
501
  </bd-card-item>
502
502
 
503
503
  <bd-card-item
@@ -505,8 +505,8 @@ export const ResponsiveAlignment = () => html`
505
505
  icon="/assets/privacy_protection.png"
506
506
  align="center"
507
507
  >
508
- <p>This card maintains center alignment across all screen sizes.</p>
509
- <p>On mobile devices, the content will remain centered for consistency.</p>
508
+ <bd-p kind="small">This card maintains center alignment across all screen sizes.</bd-p>
509
+ <bd-p kind="small">On mobile devices, the content will remain centered for consistency.</bd-p>
510
510
  </bd-card-item>
511
511
  </bd-card-section>
512
512
  `;
@@ -9,6 +9,8 @@ export default css`
9
9
  --bd-accesibility-focus: var(--color-blue-800);
10
10
  }
11
11
 
12
+
13
+ p{ font-size: 40px;}
12
14
  .bd-carousel {
13
15
  display: block;
14
16
  align-items: center;
@@ -47,6 +49,9 @@ export default css`
47
49
  margin-bottom: 50px;
48
50
  margin-top: 50px;
49
51
  }
52
+
53
+ .bd-heading{
54
+ padding: 20px}
50
55
  .bd-carousel-container {
51
56
  display: flex;
52
57
  flex-direction: column;
@@ -179,11 +184,13 @@ export default css`
179
184
  z-index: 2;
180
185
  }
181
186
 
182
- .bd-box h3 {
187
+ .bd-box bd-h {
183
188
  font-size: var(--spacing-18);
184
189
  margin: var(--spacing-0) var(--spacing-0) 0.5em var(--spacing-0);
185
190
  font-weight: 600;
186
191
  font-family: var(--typography-fontFamily-sans);
192
+ padding: 10px 0; /* Adaugă aici */
193
+
187
194
  }
188
195
 
189
196
  .bd-box p {
@@ -2,7 +2,6 @@ import { LitElement, html } from "lit";
2
2
  import { tokens } from "../../tokens/tokens.js";
3
3
  import carouselCSS from "../carousel/carousel.css.js";
4
4
  import "../modal/modal.js";
5
-
6
5
  export class CarouselItem extends LitElement {
7
6
  static properties = {
8
7
  icon : { type: String },
@@ -1,4 +1,7 @@
1
1
  import { html } from "lit";
2
+ import "../heading/heading.js";
3
+ import "../paragraph/paragraph.js";
4
+
2
5
  import "./carousel.js";
3
6
 
4
7
  export default {
@@ -69,7 +72,7 @@ export default {
69
72
  const renderParagraphs = (text) =>
70
73
  text
71
74
  ? text.split("\n\n").map(
72
- (paragraph) => html`<p>${paragraph}</p>`
75
+ (paragraph) => html`<bd-p>${paragraph}</bd-p>`
73
76
  )
74
77
  : null;
75
78
 
@@ -81,7 +84,7 @@ const Template = (args) => html`
81
84
  modalText="${args.item1ModalText}"
82
85
  icon="${args.item1Icon}"
83
86
  >
84
- <h3>${args.item1Title}</h3>
87
+ <bd-h as="h4" padding="10px 0">${args.item1Title}</bd-h>
85
88
  ${renderParagraphs(args.item1Content)}
86
89
  </bd-carousel-item>
87
90
 
@@ -91,7 +94,7 @@ const Template = (args) => html`
91
94
  modalText="${args.item2ModalText}"
92
95
  icon="${args.item2Icon}"
93
96
  >
94
- <h3>${args.item2Title}</h3>
97
+ <bd-h as="h4" padding="10px 0">${args.item2Title}</bd-h>
95
98
  ${renderParagraphs(args.item2Content)}
96
99
  </bd-carousel-item>
97
100
 
@@ -101,7 +104,7 @@ const Template = (args) => html`
101
104
  modalText="${args.item3ModalText}"
102
105
  icon="${args.item3Icon}"
103
106
  >
104
- <h3>${args.item3Title}</h3>
107
+ <bd-h as="h4" padding="10px 0">${args.item3Title}</bd-h>
105
108
  ${renderParagraphs(args.item3Content)}
106
109
  </bd-carousel-item>
107
110
 
@@ -111,7 +114,7 @@ const Template = (args) => html`
111
114
  modalText="${args.item4ModalText}"
112
115
  icon="${args.item4Icon}"
113
116
  >
114
- <h3>${args.item4Title}</h3>
117
+ <bd-h as="h4" padding="10px 0">${args.item4Title}</bd-h>
115
118
  ${renderParagraphs(args.item4Content)}
116
119
  </bd-carousel-item>
117
120
 
@@ -121,7 +124,7 @@ const Template = (args) => html`
121
124
  modalText="${args.item5ModalText}"
122
125
  icon="${args.item5Icon}"
123
126
  >
124
- <h3>${args.item5Title}</h3>
127
+ <bd-h as="h4" padding="10px 0">${args.item5Title}</bd-h>
125
128
  ${renderParagraphs(args.item5Content)}
126
129
  </bd-carousel-item>
127
130
 
@@ -131,7 +134,7 @@ const Template = (args) => html`
131
134
  modalText="${args.item6ModalText}"
132
135
  icon="${args.item6Icon}"
133
136
  >
134
- <h3>${args.item6Title}</h3>
137
+ <bd-h as="h4" padding="10px 0">${args.item6Title}</bd-h>
135
138
  ${renderParagraphs(args.item6Content)}
136
139
  </bd-carousel-item>
137
140
 
@@ -141,7 +144,7 @@ const Template = (args) => html`
141
144
  modalText="${args.item7ModalText}"
142
145
  icon="${args.item7Icon}"
143
146
  >
144
- <h3>${args.item7Title}</h3>
147
+ <bd-h as="h4" padding="10px 0">${args.item7Title}</bd-h>
145
148
  ${renderParagraphs(args.item7Content)}
146
149
  </bd-carousel-item>
147
150
 
@@ -151,7 +154,7 @@ const Template = (args) => html`
151
154
  modalText="${args.item8ModalText}"
152
155
  icon="${args.item8Icon}"
153
156
  >
154
- <h3>${args.item8Title}</h3>
157
+ <bd-h as="h4" padding="10px 0">${args.item8Title}</bd-h>
155
158
  ${renderParagraphs(args.item8Content)}
156
159
  </bd-carousel-item>
157
160
  </bd-carousel-section>
@@ -163,11 +166,11 @@ Default.args = {
163
166
 
164
167
  item1Title: "Scam Copilot Bot",
165
168
  item1SubTitle:
166
- "Specialized AI chatbot that helps you identify suspicious online interactions so you dont become a victim",
169
+ "Specialized AI chatbot that helps you identify suspicious online interactions so you don't become a victim",
167
170
  item1ModalText:
168
- "Specialized AI chatbot that helps you identify suspicious online interactions so you dont become a victim",
171
+ "Specialized AI chatbot that helps you identify suspicious online interactions so you don't become a victim",
169
172
  item1Icon : "/assets/light-carousel-img1.png",
170
- item1Content: `Specialized AI chatbot that helps you identify suspicious online interactions so you dont become a victim.\n\nSpecialized AI chatbot that helps you identify suspicious online interactions so you dont become a victim.\n\nTest Scam Copilot Bot`,
173
+ item1Content: `Specialized AI chatbot that helps you identify suspicious online interactions so you don't become a victim.\n\nSpecialized AI chatbot that helps you identify suspicious online interactions so you don't become a victim.\n\nTest Scam Copilot Bot`,
171
174
 
172
175
  item2Title : "Scam Wave Alerts",
173
176
  item2SubTitle : "Proactively informs you about scam outbreaks in your region",
@@ -218,12 +221,13 @@ Default.args = {
218
221
  "A platform where users can report scams and share experiences to help protect others",
219
222
  item7Icon : "/assets/light-carousel-img1.png",
220
223
  item7Content: "A platform where users can report scams and share experiences to help protect others.",
221
- item8Title : "Fraud Prevention Workshops",
224
+
225
+ item8Title: "Fraud Prevention Workshops",
222
226
  item8SubTitle:
223
- "Interactive workshops that educate users on identifying and avoiding scams",
227
+ "Interactive workshops that educate users on identifying and avoiding scams",
224
228
  item8ModalText:
225
- "Interactive workshops that educate users on identifying and avoiding scams",
229
+ "Interactive workshops that educate users on identifying and avoiding scams",
226
230
  item8Icon: "/assets/light-carousel-img1.png",
227
231
  item8Content:
228
- "Interactive workshops that educate users on identifying and avoiding scams."
229
- };
232
+ "Interactive workshops that educate users on identifying and avoiding scams."
233
+ };
@@ -0,0 +1,68 @@
1
+ import { css } from "lit";
2
+
3
+ export default css`
4
+ @layer bd-components {
5
+ .bd-display {
6
+ margin: 0;
7
+ padding: 0;
8
+ font-family: var(--typography-display-lg-fontFamily);
9
+ color: var(--color-neutral-900);
10
+ }
11
+
12
+ /* 3xl - Largest display */
13
+ .bd-display['3xl'],
14
+ .bd-display.k3xl {
15
+ font-size: var(--typography-display-3xl-fontSize);
16
+ font-weight: var(--typography-display-3xl-fontWeight);
17
+ line-height: var(--typography-display-3xl-lineHeight);
18
+ letter-spacing: var(--typography-display-3xl-letterSpacing);
19
+ font-family: var(--typography-display-3xl-fontFamily);
20
+ }
21
+
22
+ /* 2xl */
23
+ .bd-display['2xl'],
24
+ .bd-display.k2xl {
25
+ font-size: var(--typography-display-2xl-fontSize);
26
+ font-weight: var(--typography-display-2xl-fontWeight);
27
+ line-height: var(--typography-display-2xl-lineHeight);
28
+ letter-spacing: var(--typography-display-2xl-letterSpacing);
29
+ font-family: var(--typography-display-2xl-fontFamily);
30
+ }
31
+
32
+ /* xl */
33
+ .bd-display.xl {
34
+ font-size: var(--typography-display-xl-fontSize);
35
+ font-weight: var(--typography-display-xl-fontWeight);
36
+ line-height: var(--typography-display-xl-lineHeight);
37
+ letter-spacing: var(--typography-display-xl-letterSpacing);
38
+ font-family: var(--typography-display-xl-fontFamily);
39
+ }
40
+
41
+ /* lg */
42
+ .bd-display.lg {
43
+ font-size: var(--typography-display-lg-fontSize);
44
+ font-weight: var(--typography-display-lg-fontWeight);
45
+ line-height: var(--typography-display-lg-lineHeight);
46
+ letter-spacing: var(--typography-display-lg-letterSpacing);
47
+ font-family: var(--typography-display-lg-fontFamily);
48
+ }
49
+
50
+ /* md */
51
+ .bd-display.md {
52
+ font-size: var(--typography-display-md-fontSize);
53
+ font-weight: var(--typography-display-md-fontWeight);
54
+ line-height: var(--typography-display-md-lineHeight);
55
+ letter-spacing: var(--typography-display-md-letterSpacing);
56
+ font-family: var(--typography-display-md-fontFamily);
57
+ }
58
+
59
+ /* sm - Smallest display */
60
+ .bd-display.sm {
61
+ font-size: var(--typography-display-sm-fontSize);
62
+ font-weight: var(--typography-display-sm-fontWeight);
63
+ line-height: var(--typography-display-sm-lineHeight);
64
+ letter-spacing: var(--typography-display-sm-letterSpacing);
65
+ font-family: var(--typography-display-sm-fontFamily);
66
+ }
67
+ }
68
+ `;
@@ -0,0 +1,26 @@
1
+ import { LitElement, html } from "lit";
2
+ import { tokens } from "../../tokens/tokens.js";
3
+ import displayCSS from "./display.css.js";
4
+
5
+ export class BdDisplay extends LitElement {
6
+ static properties = {
7
+ kind: { type: String, reflect: true } // "3xl", "2xl", "xl", "lg", "md", "sm"
8
+ };
9
+
10
+ constructor() {
11
+ super();
12
+ this.kind = "lg"; // Default medium display
13
+ }
14
+
15
+ render() {
16
+ return html`
17
+ <div class="bd-display ${this.kind}">
18
+ <slot></slot>
19
+ </div>
20
+ `;
21
+ }
22
+
23
+ static styles = [tokens, displayCSS];
24
+ }
25
+
26
+ customElements.define("bd-display", BdDisplay);