-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(demo): added Complex Markup / Lists story #516
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import type {StoryObj} from '@storybook/react'; | ||
|
||
import {PlaygroundMini as component} from '../../components/PlaygroundMini'; | ||
import {args} from '../../defaults/args'; | ||
import {excludedControls} from '../../defaults/excluded-controls'; | ||
|
||
import {markup} from './markup'; | ||
|
||
export const Lists: StoryObj<typeof component> = { | ||
args: {initial: markup.lists}, | ||
}; | ||
|
||
export default { | ||
title: 'Experiments / Complex Markup', | ||
component, | ||
args: args, | ||
parameters: { | ||
controls: { | ||
exclude: excludedControls.concat('directiveSyntax'), | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
export const markup = { | ||
lists: ` | ||
# Complex Lists | ||
|
||
### Comprehensive Travel Planning Guide | ||
|
||
1. Choosing a Destination | ||
- Determine travel goals: | ||
- Active leisure (skiing, trekking, surfing) | ||
- Cultural tourism (museums, architecture, gastronomy) | ||
- Family vacations (beach, amusement parks) | ||
- Compare destination options: | ||
- Europe (Italy, France, Germany) | ||
- Asia (Thailand, Japan, India) | ||
- America (USA, Mexico, Brazil) | ||
|
||
{% note info "COVID-19" %} | ||
|
||
Are all countries open for travel now with no COVID-19 restrictions? | ||
|
||
{% endnote %} | ||
|
||
- Consider the season: | ||
- Summer (June – August) | ||
- Winter (December – February) | ||
- Off-season (March – May, September – November) | ||
|
||
1. Planning the Route | ||
- Explore main attractions: | ||
1. Create a "must-see" list for each city. | ||
2. Categorize by type: | ||
- Historical sites | ||
- Natural landmarks | ||
- Entertainment and active recreation | ||
3. Estimate the time required for each activity. | ||
- Choose transportation: | ||
- Flights: | ||
- Compare airlines | ||
- Check ticket prices | ||
- Consider low-cost carriers and baggage policies | ||
- Ground transportation: | ||
- Car rental (verify international driving license requirements) | ||
- Trains and buses (study schedules and book tickets in advance) | ||
- Address logistics: | ||
- Select main cities for overnight stays | ||
- Plan transfers between destinations (see more details) | ||
|
||
{% cut "More details" %} | ||
|
||
TODO | ||
|
||
{% endcut %} | ||
|
||
2. Accommodation Selection | ||
- Types of lodging: | ||
- Hotels (3*, 4*, 5*) | ||
- Apartments and private homes | ||
- Hostels | ||
- Key considerations: | ||
1. Location relative to attractions | ||
2. Reviews on booking platforms | ||
- Important details: | ||
- Free cancellation options | ||
- Breakfast and other services | ||
- Late check-in conditions | ||
3. Price and payment terms | ||
|
||
3. Budgeting | ||
1) Major expense categories: | ||
- Transportation: | ||
- Flights | ||
- Taxis/car rentals | ||
- Accommodation: | ||
- Daily/nightly rates | ||
- Cleaning fees | ||
- Food: | ||
- Cafes/restaurants | ||
- Grocery stores | ||
2) Calculate additional expenses: | ||
- Entrance fees to museums | ||
- Entertainment (parks, guided tours) | ||
- Souvenirs | ||
3) Emergency funds: | ||
- Medical needs | ||
- Unforeseen expenses | ||
|
||
4. Document Preparation | ||
- Check passport validity. | ||
- Visa process: | ||
- Gather required documents | ||
- Schedule submission appointments | ||
- Pay visa fees | ||
- Insurance: | ||
- Medical coverage: | ||
- COVID-19 coverage | ||
- Confirm covered events | ||
- Baggage insurance | ||
- Recommendations: | ||
- Save copies of all documents | ||
- Verify entry requirements (vaccination, PCR tests) | ||
5. Packing Essentials | ||
- Main luggage: | ||
- Weather-appropriate clothing: | ||
- Summer: T-shirts, shorts, swimsuits | ||
- Winter: coats, thermal wear | ||
It is also important to remember that additional items are needed in winter to ensure comfort and safety during your trip. Warm clothing such as thermal underwear, insulated jackets, gloves, and scarves are essential to combat the cold. Don’t forget sturdy, waterproof footwear to navigate snowy or icy terrain. Packing extra layers, such as sweaters and wool socks, can make a big difference in keeping you warm. Additionally, items like hand warmers, a thermos for hot beverages, and lip balm for protecting your skin from the harsh weather can greatly enhance your winter travel experience. | ||
- Shoes: | ||
- Athletic | ||
- Beachwear | ||
- Everyday | ||
- Hand luggage: | ||
- Gadgets (phone, chargers) | ||
- Documents (passport, tickets) | ||
- Medicines | ||
- Special categories: | ||
1. Sports equipment: | ||
- Ski gear | ||
- Diving kit | ||
2. Gifts/souvenirs: | ||
- For friends and family | ||
|
||
`.trim(), | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cut block is needed?
if needed, lets use directive syntax