update patterns to isPro (#869)

This commit is contained in:
Konnor Rogers
2025-04-14 14:59:27 -04:00
committed by GitHub
parent 971200cc88
commit 58fbcede51
38 changed files with 89 additions and 53 deletions

View File

@@ -2,6 +2,7 @@
title: Action Panel title: Action Panel
description: 'Help users complete tasks efficiently with quick access to key actions.' description: 'Help users complete tasks efficiently with quick access to key actions.'
icon: action-panel icon: action-panel
isPro: true
--- ---
## Simple ## Simple

View File

@@ -1,6 +1,7 @@
--- ---
title: Activity Log title: Activity Log
description: 'Track and organize recent user actions or events.' description: 'Track and organize recent user actions or events.'
--- ---
## Simple ## Simple
@@ -260,7 +261,7 @@ description: 'Track and organize recent user actions or events.'
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>
</div> </div>
``` ```

View File

@@ -1,6 +1,7 @@
--- ---
title: Comments title: Comments
description: 'Enable users to engage in discussions, provide feedback, or record their thoughts.' description: 'Enable users to engage in discussions, provide feedback, or record their thoughts.'
isPro: true
--- ---
## Card with Header & Footer ## Card with Header & Footer
@@ -91,7 +92,7 @@ description: 'Enable users to engage in discussions, provide feedback, or record
<wa-icon-button name="face-smile" label="Add Sticker" id="sticker-button"></wa-icon-button> <wa-icon-button name="face-smile" label="Add Sticker" id="sticker-button"></wa-icon-button>
<wa-tooltip for="sticker-button">Add Sticker</wa-tooltip> <wa-tooltip for="sticker-button">Add Sticker</wa-tooltip>
</div> </div>
<wa-button variant="brand">Comment</wa-button> <wa-button variant="brand">Comment</wa-button>
</div> </div>
</div> </div>
</div> </div>
@@ -107,9 +108,9 @@ description: 'Enable users to engage in discussions, provide feedback, or record
<div class="wa-stack"> <div class="wa-stack">
<div class="wa-flank" style="--flank-size: 3rem"> <div class="wa-flank" style="--flank-size: 3rem">
<div class="wa-frame:portrait wa-border-radius-s"> <div class="wa-frame:portrait wa-border-radius-s">
<img <img
src="https://images.unsplash.com/photo-1607675742178-f616ae75044b?q=80&w=3435&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" src="https://images.unsplash.com/photo-1607675742178-f616ae75044b?q=80&w=3435&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
alt="the cover image for the film" alt="the cover image for the film"
/> />
</div> </div>
<span class="wa-heading-l">Heretic</span> <span class="wa-heading-l">Heretic</span>

View File

@@ -1,10 +1,11 @@
--- ---
title: Data Display title: Data Display
description: 'Convey insights, metrics, and aggregate data at a glance.' description: 'Convey insights, metrics, and aggregate data at a glance.'
isPro: true
--- ---
## Simple ## Simple
```html {.example} ```html {.example}
<wa-card> <wa-card>
<div class="wa-grid wa-gap-3xl" style="--min-column-size: 24ch;"> <div class="wa-grid wa-gap-3xl" style="--min-column-size: 24ch;">
@@ -170,4 +171,4 @@ description: 'Convey insights, metrics, and aggregate data at a glance.'
</article> </article>
</div> </div>
</wa-card> </wa-card>
``` ```

View File

@@ -1,6 +1,7 @@
--- ---
title: Description List title: Description List
description: 'Help users digest detailed information in a structured, easy-to-scan format.' description: 'Help users digest detailed information in a structured, easy-to-scan format.'
isPro: true
--- ---
## Left Aligned ## Left Aligned
@@ -249,4 +250,4 @@ description: 'Help users digest detailed information in a structured, easy-to-sc
</a> </a>
</div> </div>
</wa-card> </wa-card>
``` ```

View File

@@ -1,6 +1,7 @@
--- ---
title: Empty State title: Empty State
description: 'Guide users with helpful prompts and visuals when no content is available.' description: 'Guide users with helpful prompts and visuals when no content is available.'
isPro: true
--- ---
## Simple ## Simple
@@ -125,7 +126,7 @@ description: 'Guide users with helpful prompts and visuals when no content is av
</div> </div>
</wa-card> </wa-card>
``` ```
## Add people ## Add people
```html {.example} ```html {.example}
<wa-card style="max-width: 60ch; margin: 0 auto;"> <wa-card style="max-width: 60ch; margin: 0 auto;">
<div class="wa-stack wa-gap-xs"> <div class="wa-stack wa-gap-xs">
@@ -146,7 +147,7 @@ description: 'Guide users with helpful prompts and visuals when no content is av
<span class="wa-caption-m">DevOps</span> <span class="wa-caption-m">DevOps</span>
</div> </div>
<wa-button appearance="plain"> <wa-button appearance="plain">
<wa-icon name="user-plus" slot="prefix"></wa-icon> <wa-icon name="user-plus" slot="prefix"></wa-icon>
Invite Invite
</wa-button> </wa-button>
</div> </div>
@@ -162,7 +163,7 @@ description: 'Guide users with helpful prompts and visuals when no content is av
<span class="wa-caption-m">Captain</span> <span class="wa-caption-m">Captain</span>
</div> </div>
<wa-button appearance="plain"> <wa-button appearance="plain">
<wa-icon name="user-plus" slot="prefix"></wa-icon> <wa-icon name="user-plus" slot="prefix"></wa-icon>
Invite Invite
</wa-button> </wa-button>
</div> </div>
@@ -178,7 +179,7 @@ description: 'Guide users with helpful prompts and visuals when no content is av
<span class="wa-caption-m">Cloud Engineer</span> <span class="wa-caption-m">Cloud Engineer</span>
</div> </div>
<wa-button appearance="plain"> <wa-button appearance="plain">
<wa-icon name="user-plus" slot="prefix"></wa-icon> <wa-icon name="user-plus" slot="prefix"></wa-icon>
Invite Invite
</wa-button> </wa-button>
</div> </div>
@@ -193,7 +194,7 @@ description: 'Guide users with helpful prompts and visuals when no content is av
<span class="wa-caption-m">UX Writer</span> <span class="wa-caption-m">UX Writer</span>
</div> </div>
<wa-button appearance="plain"> <wa-button appearance="plain">
<wa-icon name="user-plus" slot="prefix"></wa-icon> <wa-icon name="user-plus" slot="prefix"></wa-icon>
Invite Invite
</wa-button> </wa-button>
</div> </div>

View File

@@ -1,6 +1,7 @@
--- ---
title: FAQ title: FAQ
description: 'Empower users to learn more with a structured list of questions and answers.' description: 'Empower users to learn more with a structured list of questions and answers.'
isPro: true
--- ---
## With Flanked Heading & Description ## With Flanked Heading & Description
@@ -86,7 +87,7 @@ description: 'Empower users to learn more with a structured list of questions an
<dt class="wa-heading-m">How often do you update your courses?</dt> <dt class="wa-heading-m">How often do you update your courses?</dt>
<dd>A course is updated once there is a fundamental shift in the language or librarys underlying API. You can check our <a href="#">workshop</a> list to see if a new version of a given course is on the schedule. You may also write to us as <a href="#">support@frontendmasters.com</a> with suggestions for updates.</dd> <dd>A course is updated once there is a fundamental shift in the language or librarys underlying API. You can check our <a href="#">workshop</a> list to see if a new version of a given course is on the schedule. You may also write to us as <a href="#">support@frontendmasters.com</a> with suggestions for updates.</dd>
</div> </div>
<div class="wa-stack wa-gap-xs"> <div class="wa-stack wa-gap-xs">
<dt class="wa-heading-m">Do you offer certificates of completion?</dt> <dt class="wa-heading-m">Do you offer certificates of completion?</dt>
<dd>You can download certificates of completion from the <a href="#">Completed Courses</a> list in your Learning Library. Click the diploma icon next to the course to download the certificate in light or dark mode. A link to your Public Profile is included on each certificate if youve created one. Public Profiles showcase your learning journey and are a fantastic way to share progress with friends, co-workers, or employers. Public Profiles are available to members with an active Frontend Masters subscription who have watched ten or more hours of content. Visit the <a href="#">Public Profile</a> section in My Account to get started.</dd> <dd>You can download certificates of completion from the <a href="#">Completed Courses</a> list in your Learning Library. Click the diploma icon next to the course to download the certificate in light or dark mode. A link to your Public Profile is included on each certificate if youve created one. Public Profiles showcase your learning journey and are a fantastic way to share progress with friends, co-workers, or employers. Public Profiles are available to members with an active Frontend Masters subscription who have watched ten or more hours of content. Visit the <a href="#">Public Profile</a> section in My Account to get started.</dd>
@@ -103,16 +104,16 @@ description: 'Empower users to learn more with a structured list of questions an
</ul> </ul>
</dd> </dd>
</div> </div>
<div class="wa-stack wa-gap-xs"> <div class="wa-stack wa-gap-xs">
<dt class="wa-heading-m">Do you have discounts for students?</dt> <dt class="wa-heading-m">Do you have discounts for students?</dt>
<dd>We are part of the <a href="#">GitHub Student Developer Pack</a>, allowing students six months of free access to the entire platform.</dd> <dd>We are part of the <a href="#">GitHub Student Developer Pack</a>, allowing students six months of free access to the entire platform.</dd>
</div> </div>
<div class="wa-stack wa-gap-xs"> <div class="wa-stack wa-gap-xs">
<dt class="wa-heading-m">How do I cancel my plan?</dt> <dt class="wa-heading-m">How do I cancel my plan?</dt>
<dd>You can cancel your Frontend Masters subscription by visiting the <a href="#">Subscription tab</a> in your My Account area.</dd> <dd>You can cancel your Frontend Masters subscription by visiting the <a href="#">Subscription tab</a> in your My Account area.</dd>
</div> </div>
</dl> </dl>
</div> </div>
``` ```

View File

@@ -1,6 +1,7 @@
--- ---
title: Grid List title: Grid List
description: 'Improve browsing and selection by organizing data in a structured grid layout.' description: 'Improve browsing and selection by organizing data in a structured grid layout.'
isPro: true
--- ---
## Cards with Footer Actions ## Cards with Footer Actions
@@ -397,8 +398,8 @@ description: 'Improve browsing and selection by organizing data in a structured
<div class="wa-stack"> <div class="wa-stack">
<div class="wa-cluster wa-gap-s"><span>Draft</span> <wa-badge appearance="filled outlined" variant="neutral">1</wa-badge></div> <div class="wa-cluster wa-gap-s"><span>Draft</span> <wa-badge appearance="filled outlined" variant="neutral">1</wa-badge></div>
<wa-card> <wa-card>
<div class="wa-flank:end"> <div class="wa-flank:end">
<div class="wa-stack wa-gap-2xs"> <div class="wa-stack wa-gap-2xs">
@@ -426,12 +427,12 @@ description: 'Improve browsing and selection by organizing data in a structured
<wa-icon name="plus"></wa-icon> <wa-icon name="plus"></wa-icon>
Add Task Add Task
</wa-button> </wa-button>
</div> </div>
<div class="wa-stack"> <div class="wa-stack">
<div class="wa-cluster wa-gap-s"><span>In Progress</span> <wa-badge appearance="filled outlined" variant="neutral">2</wa-badge></div> <div class="wa-cluster wa-gap-s"><span>In Progress</span> <wa-badge appearance="filled outlined" variant="neutral">2</wa-badge></div>
<wa-card> <wa-card>
<div class="wa-flank:end"> <div class="wa-flank:end">
<div class="wa-stack wa-gap-2xs"> <div class="wa-stack wa-gap-2xs">
@@ -481,7 +482,7 @@ description: 'Improve browsing and selection by organizing data in a structured
<wa-icon name="plus"></wa-icon> <wa-icon name="plus"></wa-icon>
Add Task Add Task
</wa-button> </wa-button>
</div> </div>
<div class="wa-stack"> <div class="wa-stack">
@@ -508,18 +509,17 @@ description: 'Improve browsing and selection by organizing data in a structured
<wa-avatar initials="KK" label="Avatar with initials: KK"></wa-avatar> <wa-avatar initials="KK" label="Avatar with initials: KK"></wa-avatar>
</div> </div>
</wa-card> </wa-card>
<wa-button appearance="plain"> <wa-button appearance="plain">
<wa-icon name="plus"></wa-icon> <wa-icon name="plus"></wa-icon>
Add Task Add Task
</wa-button> </wa-button>
</div> </div>
</div> </div>
</div> </div>
``` ```

View File

@@ -5,4 +5,5 @@ parent: patterns
layout: overview layout: overview
override:tags: [] override:tags: []
listChildren: true listChildren: true
isPro: false
--- ---

View File

@@ -1,6 +1,7 @@
--- ---
title: Leaderboard title: Leaderboard
description: 'Engage and motivate users by highlighting top performers, scores, and achievements.' description: 'Engage and motivate users by highlighting top performers, scores, and achievements.'
isPro: true
--- ---
## Simple ## Simple

View File

@@ -1,6 +1,7 @@
--- ---
title: Pagination title: Pagination
description: 'Improve navigation and performance by breaking long lists or content into manageable pages.' description: 'Improve navigation and performance by breaking long lists or content into manageable pages.'
isPro: true
--- ---
## Simple ## Simple

View File

@@ -1,6 +1,7 @@
--- ---
title: Permissions title: Permissions
description: 'Permission patterns provide or restrict access to users.' description: 'Permission patterns provide or restrict access to users.'
isPro: true
--- ---
## With Form Inputs ## With Form Inputs
@@ -118,7 +119,7 @@ description: 'Permission patterns provide or restrict access to users.'
<wa-button size="small" variant="brand" pill>Generate</wa-button> <wa-button size="small" variant="brand" pill>Generate</wa-button>
</div> </div>
</div> </div>
</wa-card> </wa-card>
``` ```
@@ -170,7 +171,7 @@ description: 'Permission patterns provide or restrict access to users.'
<wa-option value="moderator">Moderator</wa-option> <wa-option value="moderator">Moderator</wa-option>
<wa-option value="contributor">Contributor</wa-option> <wa-option value="contributor">Contributor</wa-option>
<wa-option value="reader">Reader</wa-option> <wa-option value="reader">Reader</wa-option>
</wa-select> </wa-select>
</td> </td>
</tr> </tr>
<tr> <tr>
@@ -222,7 +223,7 @@ description: 'Permission patterns provide or restrict access to users.'
</tbody> </tbody>
</table> </table>
</wa-tab-panel> </wa-tab-panel>
</wa-tab-group> </wa-tab-group>
</div> </div>
``` ```

View File

@@ -1,6 +1,7 @@
--- ---
title: Pricing title: Pricing
description: 'Help users make informed purchasing decisions with clear, structured pricing.' description: 'Help users make informed purchasing decisions with clear, structured pricing.'
isPro: true
--- ---
## Three Tiers ## Three Tiers
@@ -164,4 +165,4 @@ description: 'Help users make informed purchasing decisions with clear, structur
</wa-callout> </wa-callout>
</div> </div>
</wa-card> </wa-card>
``` ```

View File

@@ -2,6 +2,7 @@
title: Blog title: Blog
description: TODO description: TODO
unlisted: true unlisted: true
isPro: true
--- ---
TODO Page Description TODO Page Description
@@ -367,4 +368,4 @@ TODO Page Description
} }
</style> </style>
``` ```

View File

@@ -2,8 +2,9 @@
title: Business title: Business
description: TODO description: TODO
unlisted: true unlisted: true
isPro: true
--- ---
TODO Page Description TODO Page Description
## Examples ## Examples

View File

@@ -2,6 +2,7 @@
title: Category Filter title: Category Filter
description: 'Helps the user find the right products with filters to refine search results by specific attributes.' description: 'Helps the user find the right products with filters to refine search results by specific attributes.'
icon: checkbox icon: checkbox
isPro: true
--- ---
## Sidebar with Checkboxes & Expandable Filters ## Sidebar with Checkboxes & Expandable Filters
@@ -80,4 +81,4 @@ icon: checkbox
</div> </div>
<div class="wa-placeholder"></div> <div class="wa-placeholder"></div>
</div> </div>
``` ```

View File

@@ -2,6 +2,7 @@
title: Category Preview title: Category Preview
description: 'Help shoppers discover your product offerings with showcases of product categories.' description: 'Help shoppers discover your product offerings with showcases of product categories.'
icon: preview icon: preview
isPro: true
--- ---
## Split with Image Grid ## Split with Image Grid
@@ -159,4 +160,4 @@ icon: preview
</div> </div>
</div> </div>
</div> </div>
``` ```

View File

@@ -1,6 +1,7 @@
--- ---
title: Checkout Form title: Checkout Form
description: 'Let shoppers checkout with ease with streamlined forms to capture shipping and payment info.' description: 'Let shoppers checkout with ease with streamlined forms to capture shipping and payment info.'
isPro: true
--- ---
@@ -241,4 +242,4 @@ description: 'Let shoppers checkout with ease with streamlined forms to capture
</div> </div>
</div> </div>
</div> </div>
``` ```

View File

@@ -1,6 +1,7 @@
--- ---
title: Incentives title: Incentives
description: 'Encourage shoppers to buy your products with value propositions, discounts, and promotions.' description: 'Encourage shoppers to buy your products with value propositions, discounts, and promotions.'
isPro: true
--- ---
## 3 Column ## 3 Column
@@ -120,4 +121,4 @@ description: 'Encourage shoppers to buy your products with value propositions, d
</div> </div>
</div> </div>
</div> </div>
``` ```

View File

@@ -4,4 +4,5 @@ description: Pre-built product overviews, shopping carts, and more to help you b
parent: patterns parent: patterns
layout: overview layout: overview
override:tags: [] override:tags: []
isPro: false
--- ---

View File

@@ -1,6 +1,7 @@
--- ---
title: Order History title: Order History
description: 'Empower your customers to view past purchases and track upcoming orders with comprehensive order histories.' description: 'Empower your customers to view past purchases and track upcoming orders with comprehensive order histories.'
isPro: true
--- ---
## List ## List

View File

@@ -1,6 +1,7 @@
--- ---
title: Order Summary title: Order Summary
description: 'Give shoppers confidence in their purchases with summaries of everything included in their order.' description: 'Give shoppers confidence in their purchases with summaries of everything included in their order.'
isPro: true
--- ---
## Simple ## Simple
@@ -291,4 +292,4 @@ description: 'Give shoppers confidence in their purchases with summaries of ever
</div> </div>
</wa-callout> </wa-callout>
</div> </div>
``` ```

View File

@@ -1,6 +1,7 @@
--- ---
title: Product Lists title: Product Lists
description: 'Let shoppers browse and compare products with detailed lists of the products in your store.' description: 'Let shoppers browse and compare products with detailed lists of the products in your store.'
isPro: true
--- ---
## Simple Grid with Ratings ## Simple Grid with Ratings
@@ -179,4 +180,4 @@ description: 'Let shoppers browse and compare products with detailed lists of th
</a> </a>
</div> </div>
</div> </div>
``` ```

View File

@@ -1,6 +1,7 @@
--- ---
title: Product Overview title: Product Overview
description: 'Showcase your products with overviews including images, ratings, features, options, and more.' description: 'Showcase your products with overviews including images, ratings, features, options, and more.'
isPro: true
--- ---
## Split with Image ## Split with Image
@@ -426,4 +427,4 @@ description: 'Showcase your products with overviews including images, ratings, f
</ul> </ul>
</div> </div>
</div> </div>
``` ```

View File

@@ -2,6 +2,7 @@
title: Product Preview title: Product Preview
description: 'Give shoppers a quick look at your products as they browse with modal previews.' description: 'Give shoppers a quick look at your products as they browse with modal previews.'
icon: preview icon: preview
isPro: true
--- ---
## With Product Options ## With Product Options
@@ -157,4 +158,4 @@ icon: preview
</div> </div>
</div> </div>
</wa-card> </wa-card>
``` ```

View File

@@ -1,6 +1,7 @@
--- ---
title: Product Reviews title: Product Reviews
description: 'Help shoppers make informed decisions with ratings, reviews, and testimonials from your customers.' description: 'Help shoppers make informed decisions with ratings, reviews, and testimonials from your customers.'
isPro: true
--- ---
## Multi column ## Multi column
@@ -208,4 +209,4 @@ description: 'Help shoppers make informed decisions with ratings, reviews, and t
</div> </div>
<wa-divider></wa-divider> <wa-divider></wa-divider>
</div> </div>
``` ```

View File

@@ -1,6 +1,7 @@
--- ---
title: Shopping Cart title: Shopping Cart
description: 'Give shoppers an overview of selected items with shopping carts that let them edit items and proceed to checkout.' description: 'Give shoppers an overview of selected items with shopping carts that let them edit items and proceed to checkout.'
isPro: true
--- ---
## Two Columns with Summary Card ## Two Columns with Summary Card
@@ -274,4 +275,4 @@ description: 'Give shoppers an overview of selected items with shopping carts th
</wa-button> </wa-button>
</div> </div>
</wa-drawer> </wa-drawer>
``` ```

View File

@@ -2,6 +2,7 @@
title: Store Navigation title: Store Navigation
description: 'Help shoppers explore categories and find products with all of the links they need to navigate your store.' description: 'Help shoppers explore categories and find products with all of the links they need to navigate your store.'
unlisted: true unlisted: true
isPro: true
--- ---
## Popup Menu ## Popup Menu
@@ -81,4 +82,4 @@ unlisted: true
</style> </style>
``` ```

View File

@@ -2,8 +2,9 @@
title: Business title: Business
description: TODO description: TODO
unlisted: true unlisted: true
isPro: true
--- ---
TODO Page Description TODO Page Description
## Examples ## Examples

View File

@@ -2,8 +2,9 @@
title: Entertainment title: Entertainment
description: TODO description: TODO
unlisted: true unlisted: true
isPro: true
--- ---
TODO Page Description TODO Page Description
## Examples ## Examples

View File

@@ -3,6 +3,7 @@ title: Patterns
description: Patterns are reusable UI solutions to common design problems, ready to copy and paste into any project. description: Patterns are reusable UI solutions to common design problems, ready to copy and paste into any project.
layout: overview layout: overview
override:tags: [] override:tags: []
isPro: false
--- ---
<div class="max-line-length"> <div class="max-line-length">

View File

@@ -2,8 +2,9 @@
title: Membership title: Membership
description: TODO description: TODO
unlisted: true unlisted: true
isPro: true
--- ---
TODO Page Description TODO Page Description
## Examples ## Examples

View File

@@ -2,6 +2,7 @@
title: News title: News
description: TODO description: TODO
unlisted: true unlisted: true
isPro: true
--- ---
TODO Page Description TODO Page Description
@@ -157,4 +158,4 @@ TODO Page Description
} }
} }
</style> </style>
``` ```

View File

@@ -2,8 +2,9 @@
title: Non-profit title: Non-profit
description: TODO description: TODO
unlisted: true unlisted: true
isPro: true
--- ---
TODO Page Description TODO Page Description
## Examples ## Examples

View File

@@ -2,5 +2,6 @@
"layout": "patterns.njk", "layout": "patterns.njk",
"tags": ["patterns"], "tags": ["patterns"],
"wide": true, "wide": true,
"noAlpha": true "noAlpha": true,
"isPro": true
} }

View File

@@ -2,8 +2,9 @@
title: Portfolio title: Portfolio
description: TODO description: TODO
unlisted: true unlisted: true
isPro: true
--- ---
TODO Page Description TODO Page Description
## Examples ## Examples

View File

@@ -2,8 +2,9 @@
title: Product Landing title: Product Landing
description: TODO description: TODO
unlisted: true unlisted: true
isPro: true
--- ---
TODO Page Description TODO Page Description
## Examples ## Examples

2
package-lock.json generated
View File

@@ -10,7 +10,7 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@ctrl/tinycolor": "^4.1.0", "@ctrl/tinycolor": "^4.1.0",
"@floating-ui/dom": "^1.6.12", "@floating-ui/dom": "^1.6.13",
"@shoelace-style/animations": "^1.2.0", "@shoelace-style/animations": "^1.2.0",
"@shoelace-style/localize": "^3.2.1", "@shoelace-style/localize": "^3.2.1",
"composed-offset-position": "^0.0.6", "composed-offset-position": "^0.0.6",