@repobit/dex-system-design 0.21.2 → 0.22.1

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 (52) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/package.json +4 -2
  3. package/src/components/Button/Button.js +7 -2
  4. package/src/components/Button/button.css.js +30 -0
  5. package/src/components/accordion/accordion-bg.stories.js +341 -171
  6. package/src/components/accordion/accordion.stories.js +345 -0
  7. package/src/components/anchor/anchor.stories.js +134 -76
  8. package/src/components/back/back.css.js +1 -1
  9. package/src/components/back/back.stories.js +301 -63
  10. package/src/components/badge/badge.js +4 -7
  11. package/src/components/badge/badge.stories.js +89 -96
  12. package/src/components/breadcrumb/breadcrumb.stories.js +167 -3
  13. package/src/components/cards/card.stories.js +153 -3
  14. package/src/components/display/display.css.js +7 -10
  15. package/src/components/display/display.js +14 -2
  16. package/src/components/display/display.stories.js +213 -219
  17. package/src/components/divider/divider.stories.js +337 -30
  18. package/src/components/footer/footer-lp.stories.js +346 -3
  19. package/src/components/footer/footer.js +0 -3
  20. package/src/components/footer/footer.stories.js +267 -4
  21. package/src/components/header/header.css.js +1 -1
  22. package/src/components/header/header.js +77 -56
  23. package/src/components/header/header.stories.js +298 -22
  24. package/src/components/heading/heading.css.js +1 -1
  25. package/src/components/heading/heading.stories.js +355 -113
  26. package/src/components/image/image.css.js +146 -98
  27. package/src/components/image/image.js +13 -2
  28. package/src/components/image/image.stories.js +546 -160
  29. package/src/components/input/custom-form.stories.js +209 -12
  30. package/src/components/link/link.css.js +2 -2
  31. package/src/components/link/link.stories.js +383 -53
  32. package/src/components/paragraph/paragraph.css.js +1 -1
  33. package/src/components/paragraph/paragraph.stories.js +365 -157
  34. package/src/components/picture/picture.css.js +209 -0
  35. package/src/components/picture/picture.js +16 -2
  36. package/src/components/picture/picture.stories.js +525 -180
  37. package/src/components/pricing-cards/new-pricing-card.js +19 -4
  38. package/src/components/pricing-cards/new-pricing-card.stories.js +422 -0
  39. package/src/components/pricing-cards/new-pricing.css.js +8 -0
  40. package/src/components/pricing-cards/pricing-card-actions.js +49 -9
  41. package/src/components/pricing-cards/pricing-card-container.css.js +1 -1
  42. package/src/components/pricing-cards/pricing-card-header.css.js +73 -63
  43. package/src/components/pricing-cards/pricing-card-header.js +44 -10
  44. package/src/components/pricing-cards/pricing-card-pricing.js +63 -64
  45. package/src/components/pricing-cards/pricing-card.css.js +7 -15
  46. package/src/components/pricing-cards/pricing-card.js +353 -270
  47. package/src/components/pricing-cards/pricing-card.stories.js +3 -3
  48. package/src/tokens/fonts.stories.js +335 -8
  49. package/src/tokens/spacing.stories.js +701 -34
  50. package/src/tokens/tokens-grid.stories.js +897 -48
  51. package/src/tokens/typography.stories.js +980 -38
  52. package/src/components/accordion/accordion-light.stories.js +0 -241
@@ -1,241 +0,0 @@
1
- import { html } from 'lit';
2
- import '../list/list-item/list-item.js'; // Păstrăm bd-li
3
- import '../list/list.js'; // Importul nou pentru componenta unificată bd-list
4
- import '../paragraph/paragraph.js';
5
- import './accordion.js';
6
-
7
- export default {
8
- title : 'Components/Accordion Light',
9
- component : 'bd-accordion-section',
10
- subcomponents: {
11
- 'bd-accordion-item' : 'bd-accordion-item',
12
- 'bd-accordion-section': 'bd-accordion-section',
13
- 'bd-li' : 'bd-li'
14
- },
15
- argTypes: {
16
- title: {
17
- control : 'text',
18
- description: 'Title of the accordion section'
19
- },
20
- guideIcon: {
21
- control : 'text',
22
- description: 'URL for the guide icon image'
23
- },
24
- guideLabel: {
25
- control : 'text',
26
- description: 'Text label for the guide link'
27
- },
28
- guideHref: {
29
- control : 'text',
30
- description: 'URL for the guide link'
31
- }
32
- },
33
- parameters: {
34
- docs: {
35
- description: {
36
- component: 'A lightweight accordion component ideal for menus, terms of use, FAQs, and other content that requires expandable sections. Features a clean, minimalist design with optional user guide links.'
37
- }
38
- }
39
- }
40
- };
41
-
42
- const BasicTemplate = ({ title, guideIcon, guideLabel, guideHref }) => html`
43
- <bd-accordion-section
44
- title="${title}"
45
- guide-icon="${guideIcon}"
46
- guide-label="${guideLabel}"
47
- guide-href="${guideHref}"
48
- >
49
- <bd-accordion-item title="What is Bitdefender?">
50
- <bd-p kind="regular">Bitdefender is a leading cybersecurity company delivering robust security solutions to over 500 million users in more than 150 countries.</bd-p>
51
- <bd-p kind="regular">Our products protect devices, data, and privacy against the full spectrum of cyberthreats.</bd-p>
52
- </bd-accordion-item>
53
-
54
- <bd-accordion-item title="System Requirements">
55
- <bd-p kind="regular"><strong>Operating Systems:</strong> Windows 10/11, macOS 10.12+, Android 5.0+, iOS 12+</bd-p>
56
- <bd-p kind="regular"><strong>Hardware:</strong> 1GB RAM minimum, 2.5GB free disk space</bd-p>
57
- <bd-p kind="regular"><strong>Internet:</strong> Required for activation and updates</bd-p>
58
- </bd-accordion-item>
59
-
60
- <bd-accordion-item title="Installation Process">
61
- <bd-p kind="regular">Follow these simple steps to install Bitdefender:</bd-p>
62
- <bd-list type="unordered" spacing="md" variant="default" orientation="vertical">
63
- <bd-li kind="bullet" size="md">Download the installation file from our website</bd-li>
64
- <bd-li kind="bullet" size="md">Run the installer and follow on-screen instructions</bd-li>
65
- <bd-li kind="bullet" size="md">Activate with your product key</bd-li>
66
- <bd-li kind="bullet" size="md">Run your first scan</bd-li>
67
- </bd-list>
68
- </bd-accordion-item>
69
- </bd-accordion-section>
70
- `;
71
-
72
- export const Default = BasicTemplate.bind({});
73
- Default.args = {
74
- title : 'Product Information',
75
- guideIcon : '',
76
- guideLabel: '',
77
- guideHref : '#'
78
- };
79
- Default.parameters = {
80
- docs: {
81
- description: {
82
- story: 'Default lightweight accordion with simple toggle indicators and clean design.'
83
- }
84
- }
85
- };
86
-
87
- export const WithUserGuide = BasicTemplate.bind({});
88
- WithUserGuide.args = {
89
- title : 'Installation Guide',
90
- guideIcon : '/assets/user_guide.png',
91
- guideLabel: 'View Complete User Guide',
92
- guideHref : '/user-guide'
93
- };
94
- WithUserGuide.parameters = {
95
- docs: {
96
- description: {
97
- story: 'Accordion with user guide link, perfect for documentation and help sections.'
98
- }
99
- }
100
- };
101
-
102
- export const TermsOfUse = () => html`
103
- <bd-accordion-section title="Terms of Use">
104
- <bd-accordion-item title="Acceptance of Terms">
105
- <bd-p kind="regular">By accessing and using Bitdefender products, you accept and agree to be bound by the terms and provision of this agreement.</bd-p>
106
- <bd-p kind="regular"><strong>Last Updated:</strong> January 15, 2024</bd-p>
107
- </bd-accordion-item>
108
-
109
- <bd-accordion-item title="License Grant">
110
- <bd-p kind="regular">Bitdefender grants you a limited, non-exclusive, non-transferable license to use the software for personal or internal business purposes.</bd-p>
111
- <bd-list type="unordered" spacing="md" variant="default" orientation="vertical">
112
- <bd-li kind="bullet" size="md">Single-user license for personal use</bd-li>
113
- <bd-li kind="bullet" size="md">Multi-device options available</bd-li>
114
- <bd-li kind="bullet" size="md">Non-commercial use unless specified</bd-li>
115
- </bd-list>
116
- </bd-accordion-item>
117
-
118
- <bd-accordion-item title="Privacy Policy">
119
- <bd-p kind="regular">Our privacy policy explains how we collect, use, and protect your personal information.</bd-p>
120
- <bd-p kind="regular"><strong>Data Collection:</strong> We collect minimal data necessary for security functionality.</bd-p>
121
- <bd-p kind="regular"><strong>Data Usage:</strong> Data is used solely for threat detection and product improvement.</bd-p>
122
- </bd-accordion-item>
123
-
124
- <bd-accordion-item title="Limitation of Liability">
125
- <bd-p kind="regular">To the maximum extent permitted by law, Bitdefender shall not be liable for any indirect, special, incidental, or consequential damages.</bd-p>
126
- <bd-p kind="regular">This includes but is not limited to damages for loss of profits, business interruption, or loss of information.</bd-p>
127
- </bd-accordion-item>
128
- </bd-accordion-section>
129
- `;
130
- TermsOfUse.parameters = {
131
- docs: {
132
- description: {
133
- story: 'Perfect for legal documents like Terms of Use with multiple expandable sections.'
134
- }
135
- }
136
- };
137
-
138
- export const NavigationMenu = () => html`
139
- <bd-accordion-section>
140
- <bd-accordion-item title="Products">
141
- <bd-list type="unordered" spacing="sm" variant="default" orientation="vertical">
142
- <bd-li kind="none" size="md">
143
- <a href="/antivirus" style="text-decoration: none; color: #0066cc; display: block; padding: 8px 0;">Antivirus Plus</a>
144
- </bd-li>
145
- <bd-li kind="none" size="md">
146
- <a href="/internet-security" style="text-decoration: none; color: #0066cc; display: block; padding: 8px 0;">Internet Security</a>
147
- </bd-li>
148
- <bd-li kind="none" size="md">
149
- <a href="/total-security" style="text-decoration: none; color: #0066cc; display: block; padding: 8px 0;">Total Security</a>
150
- </bd-li>
151
- <bd-li kind="none" size="md">
152
- <a href="/premium-security" style="text-decoration: none; color: #0066cc; display: block; padding: 8px 0;">Premium Security</a>
153
- </bd-li>
154
- </bd-list>
155
- </bd-accordion-item>
156
-
157
- <bd-accordion-item title="Support">
158
- <bd-list type="unordered" spacing="sm" variant="default" orientation="vertical">
159
- <bd-li kind="none" size="md">
160
- <a href="/downloads" style="text-decoration: none; color: #0066cc; display: block; padding: 8px 0;">Downloads</a>
161
- </bd-li>
162
- <bd-li kind="none" size="md">
163
- <a href="/knowledge-base" style="text-decoration: none; color: #0066cc; display: block; padding: 8px 0;">Knowledge Base</a>
164
- </bd-li>
165
- <bd-li kind="none" size="md">
166
- <a href="/contact" style="text-decoration: none; color: #0066cc; display: block; padding: 8px 0;">Contact Support</a>
167
- </bd-li>
168
- <bd-li kind="none" size="md">
169
- <a href="/community" style="text-decoration: none; color: #0066cc; display: block; padding: 8px 0;">Community Forum</a>
170
- </bd-li>
171
- </bd-list>
172
- </bd-accordion-item>
173
-
174
- <bd-accordion-item title="Company">
175
- <bd-list type="unordered" spacing="sm" variant="default" orientation="vertical">
176
- <bd-li kind="none" size="md">
177
- <a href="/about" style="text-decoration: none; color: #0066cc; display: block; padding: 8px 0;">About Us</a>
178
- </bd-li>
179
- <bd-li kind="none" size="md">
180
- <a href="/press" style="text-decoration: none; color: #0066cc; display: block; padding: 8px 0;">Press Center</a>
181
- </bd-li>
182
- <bd-li kind="none" size="md">
183
- <a href="/careers" style="text-decoration: none; color: #0066cc; display: block; padding: 8px 0;">Careers</a>
184
- </bd-li>
185
- <bd-li kind="none" size="md">
186
- <a href="/partners" style="text-decoration: none; color: #0066cc; display: block; padding: 8px 0;">Partners</a>
187
- </bd-li>
188
- </bd-list>
189
- </bd-accordion-item>
190
- </bd-accordion-section>
191
- `;
192
- NavigationMenu.parameters = {
193
- docs: {
194
- description: {
195
- story: 'Used as a navigation menu with expandable categories and internal links.'
196
- }
197
- }
198
- };
199
-
200
- export const MultipleSections = () => html`
201
- <div style="display: flex; flex-direction: column; gap: 40px;">
202
- <bd-accordion-section title="Getting Started">
203
- <bd-accordion-item title="System Requirements">
204
- <bd-p kind="regular">Minimum requirements for optimal performance...</bd-p>
205
- </bd-accordion-item>
206
- <bd-accordion-item title="Installation Guide">
207
- <bd-p kind="regular">Step-by-step installation instructions...</bd-p>
208
- </bd-accordion-item>
209
- </bd-accordion-section>
210
-
211
- <bd-accordion-section
212
- title="Troubleshooting"
213
- guide-icon="/assets/user_guide.png"
214
- guide-label="Advanced Troubleshooting Guide"
215
- guide-href="/troubleshooting"
216
- >
217
- <bd-accordion-item title="Common Installation Issues">
218
- <bd-p kind="regular">Solutions for frequent installation problems...</bd-p>
219
- </bd-accordion-item>
220
- <bd-accordion-item title="Performance Optimization">
221
- <bd-p kind="regular">Tips to improve system performance...</bd-p>
222
- </bd-accordion-item>
223
- </bd-accordion-section>
224
-
225
- <bd-accordion-section title="Advanced Features">
226
- <bd-accordion-item title="VPN Configuration">
227
- <bd-p kind="regular">How to set up and use the included VPN...</bd-p>
228
- </bd-accordion-item>
229
- <bd-accordion-item title="Parental Controls">
230
- <bd-p kind="regular">Setting up and managing parental controls...</bd-p>
231
- </bd-accordion-item>
232
- </bd-accordion-section>
233
- </div>
234
- `;
235
- MultipleSections.parameters = {
236
- docs: {
237
- description: {
238
- story: 'Multiple accordion sections grouped together, perfect for comprehensive documentation.'
239
- }
240
- }
241
- };