@repobit/dex-system-design 0.18.0 → 0.19.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.
@@ -1,5 +0,0 @@
1
- .arrow-icon {
2
- width: 24px;
3
- height: 24px;
4
- fill: #000;
5
- }
File without changes
@@ -1,117 +0,0 @@
1
- import { css } from "lit";
2
-
3
- export default css`
4
- :host {
5
- --background-card-grey: var(--color-neutral-25);
6
- --border-card-grey: var(--color-neutral-50);
7
- --border-card-green: var(--color-green-700);
8
- --badge-background: var(--color-blue-500);
9
- --text-color-white: var(--color-neutral-0);
10
- --bd-accesibility-focus: var(--color-blue-500);
11
- display: block;
12
- }
13
-
14
- .bd-accordion-bg-item {
15
- margin-bottom: var(--spacing-16);
16
- border-radius: var(--spacing-8);
17
- background-color: var(--color-blue-50);
18
- overflow: hidden;
19
- transition: box-shadow 0.3s ease;
20
- }
21
-
22
- .bd-accordion-bg-item:hover {
23
- .bd-accordion-bg-question-text {
24
- text-decoration-line: underline;
25
- }
26
- }
27
-
28
- .bd-accordion-bg-question {
29
- cursor: pointer;
30
- display: flex;
31
- justify-content: flex-start;
32
- align-items: center;
33
- gap: var(--spacing-10);
34
- padding: var(--spacing-16);
35
- font-weight: bold;
36
- background-color: var(--color-blue-50);
37
- color: #333;
38
- transition: background-color 0.3s ease, color 0.3s ease;
39
- }
40
-
41
- .bd-accordion-bg-header {
42
- margin-bottom: var(--spacing-32);
43
- }
44
-
45
- .bd-accordion-bg-question:hover {
46
- color: #0073e6;
47
- }
48
-
49
- .bd-accordion-bg-item:focus-visible {
50
- outline: var(--spacing-2) solid var(--bd-accesibility-focus);
51
- outline-offset: var(--spacing-2);
52
- border-radius: var(--space-2xs);
53
- }
54
-
55
- .bd-accordion-bg-item:focus {
56
- .bd-accordion-bg-question-text {
57
- font-weight: 600;
58
- text-decoration-line: underline;
59
- color: var(--color-blue-600);
60
- text-decoration-thickness: var(--spacing-2);
61
- }
62
- }
63
-
64
- .bd-accordion-bg-question-text {
65
- font-family: var(--typography-fontFamily-sans);
66
- font-weight: var(--typography-fontWeight-semibold);
67
- }
68
-
69
- .bd-accordion-bg-title {
70
- font-family: var(--typography-fontFamily-sans);
71
- font-weight: var(--typography-fontWeight-semibold);
72
- margin-left: auto;
73
- margin-right: auto;
74
- text-align: center;
75
- }
76
-
77
- .bd-accordion-bg-icon {
78
- transition: transform 0.3s ease;
79
- width: var(--spacing-14);
80
- height: var(--spacing-14);
81
- color: var(--color-blue-500);
82
- text-align: center;
83
- position: relative;
84
- bottom: 1px;
85
- }
86
-
87
- .bd-accordion-bg-answer {
88
- overflow: hidden;
89
- max-height: 0;
90
- opacity: 0;
91
- padding: 0 15px;
92
- background-color: var(--color-blue-50);
93
- font-family: var(--typography-fontFamily-sans);
94
- font-weight: var(--font-weight-sans-medium);
95
- }
96
-
97
- .bd-accordion-bg-item.open .bd-accordion-bg-answer {
98
- max-height: 1000px;
99
- opacity: 1;
100
- padding: var(--spacing-0) var(--spacing-40);
101
- }
102
-
103
- .bd-accordion-bg-answer > div {
104
- overflow: hidden;
105
- }
106
-
107
- .bd-accordion-bg-container {
108
- width: 90%;
109
- margin: auto;
110
- padding-top: var(--spacing-64);
111
- padding-bottom: var(--spacing-64);
112
- }
113
-
114
- .bd-accordion-bg-link-noline {
115
- text-decoration: none;
116
- }
117
- `;
File without changes
@@ -1,66 +0,0 @@
1
- import { html } from 'lit';
2
- import './faq.js';
3
-
4
- export default {
5
- title: 'Components/FAQ Section',
6
- component: 'bd-faq-section',
7
- tags: ['autodocs'],
8
- argTypes: {
9
- title: { control: 'text' },
10
-
11
- item1Title: { control: 'text', name: 'Item 1 Title' },
12
- item1Content: {
13
- control: 'text',
14
- name: 'Item 1 Content (separate paragraphs with \\n\\n)',
15
- defaultValue: 'Paragraph 1\n\nParagraph 2\n\nParagraph 3'
16
- },
17
-
18
- item2Title: { control: 'text', name: 'Item 2 Title' },
19
- item2Content: {
20
- control: 'text',
21
- name: 'Item 2 Content (separate paragraphs with \\n\\n)',
22
- defaultValue: 'Paragraph 1\n\nParagraph 2'
23
- },
24
-
25
- item3Title: { control: 'text', name: 'Item 3 Title' },
26
- item3Content: {
27
- control: 'text',
28
- name: 'Item 3 Content (separate paragraphs with \\n\\n)',
29
- defaultValue: 'Paragraph 1\n\nParagraph 2\n\nParagraph 3'
30
- },
31
- },
32
- };
33
-
34
- const renderParagraphs = (text) => {
35
- return text.split('\n\n').map(paragraph => html`<p>${paragraph}</p>`);
36
- };
37
-
38
- const Template = (args) => html`
39
- <bd-faq-section title="${args.title}">
40
- <bd-faq-section-item title="${args.item1Title}">
41
- ${renderParagraphs(args.item1Content)}
42
- </bd-faq-section-item>
43
-
44
- <bd-faq-section-item title="${args.item2Title}">
45
- ${renderParagraphs(args.item2Content)}
46
- </bd-faq-section-item>
47
-
48
- <bd-faq-section-item title="${args.item3Title}">
49
- ${renderParagraphs(args.item3Content)}
50
- </bd-faq-section-item>
51
- </bd-faq-section>
52
- `;
53
-
54
- export const Default = Template.bind({});
55
- Default.args = {
56
- title: 'Questions? Answers.',
57
-
58
- item1Title: 'How does Bitdefender Internet Security protect me?',
59
- item1Content: 'Bitdefender Internet Security provides the best protection...\n\nBitdefender Internet Security provides the best protection...\n\nBitdefender Internet Security provides the best protection...',
60
-
61
- item2Title: 'Does Bitdefender protect me against ransomware?',
62
- item2Content: 'Yes! Bitdefender Internet Security offers unbeatable ransomware protection...\n\nIt detects ransomware threats in real-time.',
63
-
64
- item3Title: 'Do I get a VPN with Bitdefender Internet Security?',
65
- item3Content: 'Bitdefender Internet Security includes a basic VPN with 200MB per day.\n\nYou can upgrade for unlimited VPN usage.\n\nThe VPN protects your online privacy.',
66
- };