refactor parts and exported parts

This commit is contained in:
Cory LaViska
2022-03-09 15:54:18 -05:00
parent c5fe481c33
commit a5cd9a4968
45 changed files with 180 additions and 81 deletions

View File

@@ -1,6 +1,5 @@
export default function (plop) {
plop.setHelper('tagWithoutPrefix', tag => tag.replace(/^sl-/, ''));
plop.setHelper('tagToHumanReadableName', tag => tag.replace(/^sl-/, '').replace(/-/g, ' '));
plop.setHelper('tagToTitle', tag => {
const withoutPrefix = plop.getHelper('tagWithoutPrefix');

View File

@@ -15,7 +15,7 @@ import styles from './{{ tagWithoutPrefix tag }}.styles';
* @slot - The default slot.
* @slot example - An example slot.
*
* @csspart {{ tagWithoutPrefix tag }} - The internal wrapper for the {{ tagToHumanReadableName tag }}.
* @csspart base - The component's internal wrapper.
*
* @cssproperty --example - An example CSS custom property.
*/