@repobit/dex-system-design 0.22.11 → 0.23.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.
- package/CHANGELOG.md +40 -0
- package/package.json +4 -3
- package/src/components/Button/button.stories.js +292 -120
- package/src/components/accordion/accordion-bg.css.js +7 -2
- package/src/components/accordion/accordion-bg.stories.js +268 -449
- package/src/components/accordion/accordion.stories.js +259 -265
- package/src/components/anchor/anchor.stories.js +160 -159
- package/src/components/awards/awards-icon.js +44 -0
- package/src/components/awards/awards.css.js +328 -0
- package/src/components/awards/awards.js +224 -0
- package/src/components/awards/awards.stories.js +447 -0
- package/src/components/back/back.stories.js +100 -375
- package/src/components/badge/badge.stories.js +241 -129
- package/src/components/breadcrumb/breadcrumb.stories.js +218 -219
- package/src/components/cards/card.stories.js +174 -622
- package/src/components/carousel/carousel.stories.js +196 -225
- package/src/components/checkbox/checkbox.stories.js +136 -51
- package/src/components/compare/compare.css.js +237 -0
- package/src/components/compare/compare.js +253 -0
- package/src/components/compare/compare.stories.js +372 -0
- package/src/components/display/display.stories.js +91 -297
- package/src/components/divider/divider.stories.js +160 -342
- package/src/components/footer/footer.stories.js +177 -402
- package/src/components/header/header.stories.js +130 -338
- package/src/components/heading/heading.js +8 -5
- package/src/components/heading/heading.stories.js +162 -471
- package/src/components/highlight/highlight.stories.js +153 -38
- package/src/components/image/image.stories.js +135 -563
- package/src/components/input/custom-form.stories.js +761 -224
- package/src/components/link/link.js +29 -12
- package/src/components/link/link.stories.js +130 -468
- package/src/components/modal/modal.stories.js +174 -28
- package/src/components/paragraph/paragraph.css.js +10 -1
- package/src/components/paragraph/paragraph.stories.js +85 -410
- package/src/components/picture/picture.stories.js +147 -561
- package/src/components/radio/radio.stories.js +230 -81
- package/src/components/tabs/tabs.stories.js +126 -10
- package/src/components/termsOfUse/terms.stories.js +223 -8
- package/src/tokens/tokens.js +1 -0
|
@@ -1,443 +1,118 @@
|
|
|
1
1
|
import { html } from 'lit';
|
|
2
|
-
import '../cards/card.js';
|
|
3
|
-
import '../heading/heading.js';
|
|
4
2
|
import './paragraph.js';
|
|
5
3
|
|
|
6
4
|
export default {
|
|
7
|
-
title
|
|
8
|
-
|
|
9
|
-
tags : ['autodocs'],
|
|
10
|
-
argTypes : {
|
|
11
|
-
kind: {
|
|
12
|
-
control : { type: 'select' },
|
|
13
|
-
options : ['regular', 'large', 'small', 'lead'],
|
|
14
|
-
description: 'Paragraph size and emphasis variant',
|
|
15
|
-
table : {
|
|
16
|
-
type : { summary: 'string' },
|
|
17
|
-
defaultValue: { summary: 'regular' }
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
align: {
|
|
21
|
-
control : { type: 'select' },
|
|
22
|
-
options : ['left', 'center', 'right', 'justify'],
|
|
23
|
-
description: 'Text alignment',
|
|
24
|
-
table : {
|
|
25
|
-
type : { summary: 'string' },
|
|
26
|
-
defaultValue: { summary: 'left' }
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
color: {
|
|
30
|
-
control : 'color',
|
|
31
|
-
description: 'Custom text color',
|
|
32
|
-
table : {
|
|
33
|
-
type : { summary: 'string' },
|
|
34
|
-
defaultValue: { summary: 'inherit' }
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
content: {
|
|
38
|
-
control : 'text',
|
|
39
|
-
description: 'Paragraph text content',
|
|
40
|
-
table : {
|
|
41
|
-
type : { summary: 'string' },
|
|
42
|
-
defaultValue: { summary: 'Paragraph text' }
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
5
|
+
title : 'Components/Paragraph',
|
|
6
|
+
tags : ['autodocs'],
|
|
46
7
|
parameters: {
|
|
47
8
|
docs: {
|
|
48
9
|
description: {
|
|
49
|
-
component:
|
|
10
|
+
component: `
|
|
11
|
+
**BdP** is a Lit paragraph component that renders a \`<p>\` tag with kind-based typography styling.
|
|
12
|
+
|
|
13
|
+
### Usage
|
|
14
|
+
\`\`\`html
|
|
15
|
+
<bd-p kind="large">Large paragraph text</bd-p>
|
|
16
|
+
<bd-p kind="regular">Regular body text</bd-p>
|
|
17
|
+
<bd-p kind="small">Small supporting text</bd-p>
|
|
18
|
+
\`\`\`
|
|
19
|
+
|
|
20
|
+
### Kind Values
|
|
21
|
+
The \`kind\` attribute is reflected and used as a CSS selector for typography styling:
|
|
22
|
+
| Kind | Use case |
|
|
23
|
+
|---|---|
|
|
24
|
+
| \`large\` | Lead text, intro paragraphs |
|
|
25
|
+
| \`regular\` | Default body text |
|
|
26
|
+
| \`small\` | Captions, disclaimers, supporting text |
|
|
27
|
+
|
|
28
|
+
### Notes
|
|
29
|
+
- Content is passed via \`<slot>\`
|
|
30
|
+
- Supports rich HTML content inside the slot (strong, em, a, etc.)
|
|
31
|
+
`
|
|
50
32
|
}
|
|
51
33
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
>
|
|
60
|
-
${content}
|
|
61
|
-
</bd-p>
|
|
62
|
-
`;
|
|
63
|
-
|
|
64
|
-
// ============ STORIES ============
|
|
65
|
-
|
|
66
|
-
export const Default = Template.bind({});
|
|
67
|
-
Default.args = {
|
|
68
|
-
kind : 'regular',
|
|
69
|
-
align : 'left',
|
|
70
|
-
color : '',
|
|
71
|
-
content: 'Default paragraph with regular styling for standard body text content.'
|
|
72
|
-
};
|
|
73
|
-
Default.parameters = {
|
|
74
|
-
docs: {
|
|
75
|
-
description: {
|
|
76
|
-
story: 'Default paragraph component with regular size and left alignment. Perfect for most body text content throughout the application.'
|
|
34
|
+
},
|
|
35
|
+
argTypes: {
|
|
36
|
+
kind: {
|
|
37
|
+
control : { type: 'select' },
|
|
38
|
+
options : ['large', 'regular', 'small'],
|
|
39
|
+
description: 'Typography size variant, reflected as an attribute for CSS targeting',
|
|
40
|
+
table : { type: { summary: "'large'|'regular'|'small'" }, defaultValue: { summary: 'regular' }, category: 'Appearance' }
|
|
77
41
|
}
|
|
78
42
|
}
|
|
79
43
|
};
|
|
80
44
|
|
|
81
|
-
|
|
82
|
-
<div style="display: flex; flex-direction: column; gap: 2rem; max-width: 800px; margin: 0 auto; padding: 2rem;">
|
|
83
|
-
<bd-h as="h2" style="margin-bottom: 1rem;">All Paragraph Variants</bd-h>
|
|
84
|
-
<bd-p kind="regular" style="margin-bottom: 2rem;">
|
|
85
|
-
Explore all available paragraph variants with their specific use cases and typographic characteristics.
|
|
86
|
-
</bd-p>
|
|
87
|
-
|
|
88
|
-
<div style="border: 2px solid #e2e8f0; padding: 2rem; border-radius: 8px;">
|
|
89
|
-
<bd-p kind="lead" style="margin-bottom: 1rem;">Lead Paragraph - Introduction and Emphasis</bd-p>
|
|
90
|
-
<bd-p kind="regular" style="color: #64748b;">
|
|
91
|
-
<strong>Use case:</strong> Introductory text, article openings, key summaries<br>
|
|
92
|
-
<strong>CSS Variables:</strong> --typography-paragraph-lead-fontSize, --typography-paragraph-lead-lineHeight<br>
|
|
93
|
-
<strong>Characteristics:</strong> Larger font size, increased line height for better readability
|
|
94
|
-
</bd-p>
|
|
95
|
-
</div>
|
|
45
|
+
const sampleText = 'Bitdefender delivers award-winning cybersecurity to over 500 million users and 150,000 companies worldwide.';
|
|
96
46
|
|
|
97
|
-
|
|
98
|
-
<bd-p kind="large" style="margin-bottom: 1rem;">Large Paragraph - Emphasized Content</bd-p>
|
|
99
|
-
<bd-p kind="regular" style="color: #64748b;">
|
|
100
|
-
<strong>Use case:</strong> Important content, feature highlights, prominent sections<br>
|
|
101
|
-
<strong>CSS Variables:</strong> --typography-paragraph-large-fontSize, --typography-paragraph-large-lineHeight<br>
|
|
102
|
-
<strong>Characteristics:</strong> Slightly larger than regular, maintains hierarchy
|
|
103
|
-
</bd-p>
|
|
104
|
-
</div>
|
|
47
|
+
// ─── Stories ───────────────────────────────────────────────────────────────
|
|
105
48
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
<strong>CSS Variables:</strong> --typography-paragraph-regular-fontSize, --typography-paragraph-regular-lineHeight<br>
|
|
111
|
-
<strong>Characteristics:</strong> Balanced size and spacing for optimal reading
|
|
112
|
-
</bd-p>
|
|
113
|
-
</div>
|
|
114
|
-
|
|
115
|
-
<div style="border: 2px solid #e2e8f0; padding: 2rem; border-radius: 8px;">
|
|
116
|
-
<bd-p kind="small" style="margin-bottom: 1rem;">Small Paragraph - Secondary Information</bd-p>
|
|
117
|
-
<bd-p kind="regular" style="color: #64748b;">
|
|
118
|
-
<strong>Use case:</strong> Captions, footnotes, legal text, supplementary info<br>
|
|
119
|
-
<strong>CSS Variables:</strong> --typography-paragraph-small-fontSize, --typography-paragraph-small-lineHeight<br>
|
|
120
|
-
<strong>Characteristics:</strong> Compact size, reduced visual weight
|
|
121
|
-
</bd-p>
|
|
122
|
-
</div>
|
|
123
|
-
</div>
|
|
124
|
-
`;
|
|
125
|
-
AllVariants.parameters = {
|
|
126
|
-
docs: {
|
|
127
|
-
description: {
|
|
128
|
-
story: 'Comprehensive overview of all paragraph variants with detailed usage guidelines, CSS variable references, and typographic characteristics for each size option.'
|
|
129
|
-
}
|
|
130
|
-
}
|
|
49
|
+
export const Default = {
|
|
50
|
+
name : 'Default (Regular)',
|
|
51
|
+
render : () => html`<bd-p kind="regular">${sampleText}</bd-p>`,
|
|
52
|
+
parameters: { docs: { description: { story: 'Default regular paragraph.' } } }
|
|
131
53
|
};
|
|
132
54
|
|
|
133
|
-
export const
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
story: 'Lead paragraph variant - Use for introductory text, article openings, and key summaries. Features larger font size and increased line height for enhanced readability and visual prominence.'
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
export const Large = Template.bind({});
|
|
149
|
-
Large.args = {
|
|
150
|
-
kind : 'large',
|
|
151
|
-
align : 'left',
|
|
152
|
-
color : '',
|
|
153
|
-
content: 'This is a large paragraph for emphasized content that requires more attention. Perfect for highlighting important features or key information within your content.'
|
|
154
|
-
};
|
|
155
|
-
Large.parameters = {
|
|
156
|
-
docs: {
|
|
157
|
-
description: {
|
|
158
|
-
story: 'Large paragraph variant - Ideal for important content, feature highlights, and prominent sections that need slightly more emphasis than regular body text while maintaining proper hierarchy.'
|
|
159
|
-
}
|
|
160
|
-
}
|
|
55
|
+
export const AllKinds = {
|
|
56
|
+
name : 'All Kinds',
|
|
57
|
+
render: () => html`
|
|
58
|
+
<div style="display:flex; flex-direction:column; gap:16px;">
|
|
59
|
+
<bd-p kind="large">${sampleText}</bd-p>
|
|
60
|
+
<bd-p kind="regular">${sampleText}</bd-p>
|
|
61
|
+
<bd-p kind="small">${sampleText}</bd-p>
|
|
62
|
+
</div>
|
|
63
|
+
`,
|
|
64
|
+
parameters: { docs: { description: { story: 'All three kind values stacked for typographic scale comparison: large, regular, small.' } } }
|
|
161
65
|
};
|
|
162
66
|
|
|
163
|
-
export const
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
color : '',
|
|
168
|
-
content: 'This is a regular paragraph with standard body text styling. It provides the perfect balance of readability and space efficiency for most content throughout your application.'
|
|
169
|
-
};
|
|
170
|
-
Regular.parameters = {
|
|
171
|
-
docs: {
|
|
172
|
-
description: {
|
|
173
|
-
story: 'Regular paragraph variant - The default choice for main content, article body, and standard text blocks. Offers optimal readability with balanced typographic proportions.'
|
|
174
|
-
}
|
|
175
|
-
}
|
|
67
|
+
export const LargeKind = {
|
|
68
|
+
name : 'Kind — Large',
|
|
69
|
+
render : () => html`<bd-p kind="large">${sampleText}</bd-p>`,
|
|
70
|
+
parameters: { docs: { description: { story: 'Large paragraph — suited for lead or intro text.' } } }
|
|
176
71
|
};
|
|
177
72
|
|
|
178
|
-
export const
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
color : '',
|
|
183
|
-
content: 'This is a small paragraph designed for secondary information, captions, and supplementary content. It maintains readability while reducing visual weight.'
|
|
184
|
-
};
|
|
185
|
-
Small.parameters = {
|
|
186
|
-
docs: {
|
|
187
|
-
description: {
|
|
188
|
-
story: 'Small paragraph variant - Perfect for captions, footnotes, legal text, and supplementary information where reduced visual weight and compact spacing are desired.'
|
|
189
|
-
}
|
|
190
|
-
}
|
|
73
|
+
export const SmallKind = {
|
|
74
|
+
name : 'Kind — Small',
|
|
75
|
+
render : () => html`<bd-p kind="small">${sampleText}</bd-p>`,
|
|
76
|
+
parameters: { docs: { description: { story: 'Small paragraph — suited for captions, disclaimers, and supporting text.' } } }
|
|
191
77
|
};
|
|
192
78
|
|
|
193
|
-
export const
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
<bd-p kind="regular"
|
|
197
|
-
|
|
79
|
+
export const RichContent = {
|
|
80
|
+
name : 'Rich Slotted Content',
|
|
81
|
+
render: () => html`
|
|
82
|
+
<bd-p kind="regular">
|
|
83
|
+
Protect your devices with <strong>award-winning</strong> security.
|
|
84
|
+
Visit our <a href="/products">products page</a> or <em>contact us</em> for more info.
|
|
198
85
|
</bd-p>
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
<bd-p kind="large" style="text-align: left; margin-bottom: 1rem;">Left Aligned Paragraph</bd-p>
|
|
202
|
-
<bd-p kind="regular" style="text-align: left; color: #64748b;">
|
|
203
|
-
Default alignment. Best for most content, articles, and body text. Provides optimal readability for left-to-right languages and follows natural reading patterns.
|
|
204
|
-
</bd-p>
|
|
205
|
-
</div>
|
|
206
|
-
|
|
207
|
-
<div style="border: 2px solid #e2e8f0; padding: 2rem; border-radius: 8px;">
|
|
208
|
-
<bd-p kind="large" style="text-align: center; margin-bottom: 1rem;">Center Aligned Paragraph</bd-p>
|
|
209
|
-
<bd-p kind="regular" style="text-align: center; color: #64748b;">
|
|
210
|
-
Ideal for short quotes, testimonials, and introductory text. Creates visual balance and emphasis for specific content pieces that need to stand out.
|
|
211
|
-
</bd-p>
|
|
212
|
-
</div>
|
|
213
|
-
|
|
214
|
-
<div style="border: 2px solid #e2e8f0; padding: 2rem; border-radius: 8px;">
|
|
215
|
-
<bd-p kind="large" style="text-align: right; margin-bottom: 1rem;">Right Aligned Paragraph</bd-p>
|
|
216
|
-
<bd-p kind="regular" style="text-align: right; color: #64748b;">
|
|
217
|
-
Useful for asymmetric layouts, captions, and specific design compositions. Use sparingly for intentional visual effects and creative typographic treatments.
|
|
218
|
-
</bd-p>
|
|
219
|
-
</div>
|
|
220
|
-
|
|
221
|
-
<div style="border: 2px solid #e2e8f0; padding: 2rem; border-radius: 8px;">
|
|
222
|
-
<bd-p kind="large" style="text-align: justify; margin-bottom: 1rem;">Justified Paragraph</bd-p>
|
|
223
|
-
<bd-p kind="regular" style="text-align: justify; color: #64748b;">
|
|
224
|
-
Creates clean edges on both sides of the text block. Best for formal documents, printed materials, and content where precise alignment is important. May require hyphenation for optimal results in longer texts.
|
|
225
|
-
</bd-p>
|
|
226
|
-
</div>
|
|
227
|
-
</div>
|
|
228
|
-
`;
|
|
229
|
-
TextAlignment.parameters = {
|
|
230
|
-
docs: {
|
|
231
|
-
description: {
|
|
232
|
-
story: 'Demonstration of different text alignment options with recommendations for when to use left, center, right, or justified alignment based on content type and design context.'
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
export const ColorCustomization = () => html`
|
|
238
|
-
<div style="display: flex; flex-direction: column; gap: 2rem; max-width: 800px; margin: 0 auto; padding: 2rem;">
|
|
239
|
-
<bd-h as="h2" style="margin-bottom: 1rem;">Color Customization Examples</bd-h>
|
|
240
|
-
<bd-p kind="regular" style="margin-bottom: 2rem;">
|
|
241
|
-
Paragraphs can be customized with different colors to match various contexts, themes, and semantic meanings.
|
|
242
|
-
</bd-p>
|
|
243
|
-
|
|
244
|
-
<div style="background: #1e293b; padding: 2rem; border-radius: 8px;">
|
|
245
|
-
<bd-p kind="large" style="color: #ffffff; margin-bottom: 1rem;">White Text on Dark Background</bd-p>
|
|
246
|
-
<bd-p kind="regular" style="color: #cbd5e1;">
|
|
247
|
-
Perfect for dark theme sections, hero areas, and high-contrast designs. Maintains excellent readability while providing sophisticated visual appeal.
|
|
248
|
-
</bd-p>
|
|
249
|
-
</div>
|
|
250
|
-
|
|
251
|
-
<div style="background: #dbeafe; padding: 2rem; border-radius: 8px;">
|
|
252
|
-
<bd-p kind="large" style="color: #1e40af; margin-bottom: 1rem;">Primary Brand Color</bd-p>
|
|
253
|
-
<bd-p kind="regular" style="color: #374151;">
|
|
254
|
-
Using brand colors for visual consistency and emphasis. Helps maintain brand identity across different content sections and application areas.
|
|
255
|
-
</bd-p>
|
|
256
|
-
</div>
|
|
257
|
-
|
|
258
|
-
<div style="background: #f0fdf4; padding: 2rem; border-radius: 8px;">
|
|
259
|
-
<bd-p kind="large" style="color: #166534; margin-bottom: 1rem;">Success Green Color</bd-p>
|
|
260
|
-
<bd-p kind="regular" style="color: #374151;">
|
|
261
|
-
Color coding for success states, positive outcomes, and confirmation messages. Provides clear visual feedback for successful operations.
|
|
262
|
-
</bd-p>
|
|
263
|
-
</div>
|
|
264
|
-
|
|
265
|
-
<div style="background: #fef2f2; padding: 2rem; border-radius: 8px;">
|
|
266
|
-
<bd-p kind="large" style="color: #dc2626; margin-bottom: 1rem;">Error Red Color</bd-p>
|
|
267
|
-
<bd-p kind="regular" style="color: #374151;">
|
|
268
|
-
Using red for error states, warnings, and critical information. Draws attention to important alerts and requires-action content.
|
|
269
|
-
</bd-p>
|
|
270
|
-
</div>
|
|
271
|
-
|
|
272
|
-
<div style="background: #f8fafc; padding: 2rem; border-radius: 8px;">
|
|
273
|
-
<bd-p kind="large" style="color: #6b7280; margin-bottom: 1rem;">Neutral Gray Color</bd-p>
|
|
274
|
-
<bd-p kind="regular" style="color: #374151;">
|
|
275
|
-
Subtle gray tones for secondary content, disabled states, and low-emphasis information. Maintains readability while reducing visual weight.
|
|
276
|
-
</bd-p>
|
|
277
|
-
</div>
|
|
278
|
-
</div>
|
|
279
|
-
`;
|
|
280
|
-
ColorCustomization.parameters = {
|
|
281
|
-
docs: {
|
|
282
|
-
description: {
|
|
283
|
-
story: 'Examples of color customization for paragraphs in different contexts including dark themes, brand colors, semantic color coding, and accessibility considerations.'
|
|
284
|
-
}
|
|
285
|
-
}
|
|
86
|
+
`,
|
|
87
|
+
parameters: { docs: { description: { story: 'Rich HTML inside the slot: bold, anchor, and italic elements.' } } }
|
|
286
88
|
};
|
|
287
89
|
|
|
288
|
-
export const
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
<bd-p kind="
|
|
292
|
-
|
|
90
|
+
export const Disclaimer = {
|
|
91
|
+
name : 'Disclaimer Use Case',
|
|
92
|
+
render: () => html`
|
|
93
|
+
<bd-p kind="small">
|
|
94
|
+
Protection for 1 account & 5 PCs, Macs, tablets, or smartphones.
|
|
95
|
+
Windows® | macOS® | Android™ | iOS®
|
|
293
96
|
</bd-p>
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
<bd-p kind="large" style="margin-bottom: 1rem;">
|
|
297
|
-
Implementing proactive security measures is essential for preventing cyber attacks before they can cause damage to your systems and data.
|
|
298
|
-
</bd-p>
|
|
299
|
-
<bd-p kind="regular" style="margin-bottom: 2rem;">
|
|
300
|
-
Regular software updates, strong password policies, and employee training form the foundation of effective threat prevention. These basic measures, when consistently applied, can prevent the majority of common cyber attacks targeting organizations today.
|
|
301
|
-
</bd-p>
|
|
302
|
-
|
|
303
|
-
<bd-h as="h3">Real-time Monitoring</bd-h>
|
|
304
|
-
<bd-p kind="regular" style="margin-bottom: 1.5rem;">
|
|
305
|
-
Continuous monitoring of network traffic and system activities allows for immediate detection of suspicious behavior and potential security breaches.
|
|
306
|
-
</bd-p>
|
|
307
|
-
<bd-p kind="small" style="color: #64748b; margin-bottom: 2rem;">
|
|
308
|
-
Monitoring systems should be configured to alert security personnel of any anomalous activities that deviate from established baseline patterns.
|
|
309
|
-
</bd-p>
|
|
310
|
-
|
|
311
|
-
<bd-h as="h2">Incident Response Planning</bd-h>
|
|
312
|
-
<bd-p kind="regular" style="margin-bottom: 1.5rem;">
|
|
313
|
-
Having a well-defined incident response plan ensures that your organization can quickly and effectively respond to security incidents when they occur.
|
|
314
|
-
</bd-p>
|
|
315
|
-
<bd-p kind="small" style="color: #64748b;">
|
|
316
|
-
Response plans should include clear escalation procedures, communication protocols, and recovery steps tailored to different types of security incidents.
|
|
317
|
-
</bd-p>
|
|
318
|
-
</div>
|
|
319
|
-
`;
|
|
320
|
-
ContentHierarchy.parameters = {
|
|
321
|
-
docs: {
|
|
322
|
-
description: {
|
|
323
|
-
story: 'Demonstrates proper content hierarchy using different paragraph variants in combination with headings. Shows how lead, large, regular, and small paragraphs work together to create clear information structure and reading flow.'
|
|
324
|
-
}
|
|
325
|
-
}
|
|
97
|
+
`,
|
|
98
|
+
parameters: { docs: { description: { story: 'Small kind used as a product disclaimer below pricing or CTA buttons.' } } }
|
|
326
99
|
};
|
|
327
100
|
|
|
328
|
-
export const
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
<bd-
|
|
334
|
-
|
|
335
|
-
icon="/api/placeholder/40/40"
|
|
336
|
-
align="center"
|
|
337
|
-
>
|
|
338
|
-
<bd-p kind="lead" style="text-align: center;">Real-time protection against evolving cyber threats</bd-p>
|
|
339
|
-
<bd-p kind="regular" style="text-align: center;">
|
|
340
|
-
Comprehensive security against malware, ransomware, and online threats with advanced behavioral analysis and machine learning algorithms.
|
|
341
|
-
</bd-p>
|
|
342
|
-
<bd-p kind="small" style="text-align: center; color: #64748b;">
|
|
343
|
-
Includes automatic threat detection, quarantine, and removal capabilities
|
|
344
|
-
</bd-p>
|
|
345
|
-
</bd-card-item>
|
|
346
|
-
|
|
347
|
-
<bd-card-item
|
|
348
|
-
title="Privacy & Identity Protection"
|
|
349
|
-
icon="/api/placeholder/40/40"
|
|
350
|
-
align="center"
|
|
351
|
-
>
|
|
352
|
-
<bd-p kind="large" style="text-align: center;">Safeguard your personal information</bd-p>
|
|
353
|
-
<bd-p kind="regular" style="text-align: center;">
|
|
354
|
-
VPN, password manager, and webcam protection work together to keep your data secure from unauthorized access and identity theft.
|
|
355
|
-
</bd-p>
|
|
356
|
-
<bd-p kind="small" style="text-align: center; color: #64748b;">
|
|
357
|
-
Military-grade encryption for all sensitive data transmission
|
|
358
|
-
</bd-p>
|
|
359
|
-
</bd-card-item>
|
|
360
|
-
|
|
361
|
-
<bd-card-item
|
|
362
|
-
title="Performance Optimization"
|
|
363
|
-
icon="/api/placeholder/40/40"
|
|
364
|
-
align="center"
|
|
365
|
-
>
|
|
366
|
-
<bd-p kind="regular" style="text-align: center;">
|
|
367
|
-
Lightweight design ensures minimal impact on system resources while providing maximum protection and security coverage.
|
|
368
|
-
</bd-p>
|
|
369
|
-
<bd-p kind="small" style="text-align: center; color: #64748b;">
|
|
370
|
-
Average CPU usage: less than 2% • Memory usage: ~150MB
|
|
371
|
-
</bd-p>
|
|
372
|
-
<bd-p kind="small" style="text-align: center; color: #64748b;">
|
|
373
|
-
Compatible with all major operating systems and devices
|
|
374
|
-
</bd-p>
|
|
375
|
-
</bd-card-item>
|
|
376
|
-
</bd-card-section>
|
|
377
|
-
</div>
|
|
378
|
-
`;
|
|
379
|
-
InCardContext.parameters = {
|
|
380
|
-
docs: {
|
|
381
|
-
description: {
|
|
382
|
-
story: 'Real-world example showing paragraph variants used within card components. Demonstrates how different paragraph sizes create clear hierarchy and improve content organization in feature cards and product descriptions.'
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
};
|
|
386
|
-
|
|
387
|
-
export const AccessibilityGuidelines = () => html`
|
|
388
|
-
<div style="max-width: 800px; margin: 0 auto; padding: 2rem;">
|
|
389
|
-
<bd-h as="h2">Accessibility Best Practices</bd-h>
|
|
390
|
-
|
|
391
|
-
<bd-p kind="lead" style="margin-bottom: 2rem;">
|
|
392
|
-
Proper paragraph styling is essential for creating accessible, readable content that works well for all users, including those with visual impairments or reading difficulties.
|
|
393
|
-
</bd-p>
|
|
394
|
-
|
|
395
|
-
<div style="background: #f0f9ff; padding: 2rem; border-radius: 8px; margin-bottom: 2rem;">
|
|
396
|
-
<bd-h as="h3" style="color: #0369a1;">✅ Accessible Typography</bd-h>
|
|
397
|
-
<bd-p kind="regular" style="margin-bottom: 1rem;">
|
|
398
|
-
All paragraph variants maintain WCAG AA compliance for contrast ratios and readability. The typographic scale ensures comfortable reading experiences across different content types.
|
|
399
|
-
</bd-p>
|
|
400
|
-
<bd-p kind="small" style="color: #64748b;">
|
|
401
|
-
• Minimum contrast ratio of 4.5:1 for normal text<br>
|
|
402
|
-
• Line height optimized for readability<br>
|
|
403
|
-
• Responsive font sizes for different viewports<br>
|
|
404
|
-
• Clear hierarchy without relying solely on color
|
|
405
|
-
</bd-p>
|
|
406
|
-
</div>
|
|
407
|
-
|
|
408
|
-
<div style="background: #f8fafc; padding: 2rem; border-radius: 8px;">
|
|
409
|
-
<bd-h as="h3" style="color: #374151;">Screen Reader Compatibility</bd-h>
|
|
410
|
-
<bd-p kind="regular" style="margin-bottom: 1rem;">
|
|
411
|
-
Paragraph components provide proper semantic structure and are fully compatible with screen readers and other assistive technologies.
|
|
412
|
-
</bd-p>
|
|
413
|
-
<bd-p kind="small" style="color: #64748b;">
|
|
414
|
-
• Semantic HTML structure<br>
|
|
415
|
-
• Proper heading and paragraph relationships<br>
|
|
416
|
-
• Logical reading order<br>
|
|
417
|
-
• Support for text resizing and zooming
|
|
418
|
-
</bd-p>
|
|
101
|
+
export const MultiParagraph = {
|
|
102
|
+
name : 'Multiple Paragraphs',
|
|
103
|
+
render: () => html`
|
|
104
|
+
<div style="display:flex; flex-direction:column; gap:12px;">
|
|
105
|
+
<bd-p kind="large">Complete protection for your digital life.</bd-p>
|
|
106
|
+
<bd-p kind="regular">Bitdefender Total Security combines award-winning antivirus protection with advanced features including VPN, parental controls, and identity protection.</bd-p>
|
|
107
|
+
<bd-p kind="small">Available on Windows, macOS, Android, and iOS. Subscription required.</bd-p>
|
|
419
108
|
</div>
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
AccessibilityGuidelines.parameters = {
|
|
423
|
-
docs: {
|
|
424
|
-
description: {
|
|
425
|
-
story: 'Accessibility guidelines and best practices for paragraph components, including contrast ratios, readability optimization, screen reader compatibility, and semantic HTML structure considerations.'
|
|
426
|
-
}
|
|
427
|
-
}
|
|
109
|
+
`,
|
|
110
|
+
parameters: { docs: { description: { story: 'Three paragraphs of different kinds used together as a typical content block.' } } }
|
|
428
111
|
};
|
|
429
112
|
|
|
430
|
-
export const
|
|
431
|
-
|
|
432
|
-
kind
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
content: 'Customize this paragraph to see how different variants, alignments, and colors affect the appearance and readability of your text content.'
|
|
436
|
-
};
|
|
437
|
-
InteractivePlayground.parameters = {
|
|
438
|
-
docs: {
|
|
439
|
-
description: {
|
|
440
|
-
story: 'Interactive playground where you can test all paragraph properties in real-time. Use the controls panel to modify the paragraph variant, alignment, color, and content to see immediate results.'
|
|
441
|
-
}
|
|
442
|
-
}
|
|
113
|
+
export const Playground = {
|
|
114
|
+
name : '🛝 Playground',
|
|
115
|
+
args : { kind: 'regular' },
|
|
116
|
+
render : (args) => html`<bd-p kind="${args.kind}">${sampleText}</bd-p>`,
|
|
117
|
+
parameters: { docs: { description: { story: 'Interactive playground. Switch between large, regular, and small via Controls.' } } }
|
|
443
118
|
};
|