Update DocShell and feature doc source links (#1960)

This commit is contained in:
Chris Simmons
2023-08-28 14:13:52 -05:00
committed by GitHub
parent fb57dfad01
commit 6d0fc8fbf0
52 changed files with 56 additions and 55 deletions

View File

@@ -10,8 +10,9 @@
const cChip = 'chip variant-soft hover:variant-filled'; const cChip = 'chip variant-soft hover:variant-filled';
// Local // Local
const githubSourcePath = 'https://github.com/skeletonlabs/skeleton/tree/master/packages/skeleton/src'; const githubBranch = 'master'; // IMPORTANT: for testing only, keep as 'master'
const githubDocSourcePath = 'https://github.com/skeletonlabs/skeleton/blob/master/sites/skeleton.dev/src'; const githubFeatureSourcePath = `https://github.com/skeletonlabs/skeleton/blob/${githubBranch}`;
const githubPageSourcePath = `https://github.com/skeletonlabs/skeleton/blob/${githubBranch}/sites/skeleton.dev/src`;
function formatImportSnippet(): string { function formatImportSnippet(): string {
let snippet = ``; let snippet = ``;
@@ -53,14 +54,14 @@
{/if} --> {/if} -->
<!-- Source --> <!-- Source -->
{#if pageData.source} {#if pageData.source}
<a class={cChip} href={`${githubSourcePath}/lib/${pageData.source}`} target="_blank" rel="noreferrer"> <a class={cChip} href={`${githubFeatureSourcePath}/${pageData.source}`} target="_blank" rel="noreferrer">
<i class="fa-brands fa-github text-[16px]" /> <i class="fa-brands fa-github text-[16px]" />
<span>Source</span> <span>Source</span>
</a> </a>
{/if} {/if}
<!-- Doc Source --> <!-- Doc Source -->
{#if pageData.docsPath} {#if pageData.docsPath}
<a class={cChip} href={`${githubDocSourcePath}/routes/(inner)${pageData.docsPath}/+page.svelte`} target="_blank" rel="noreferrer"> <a class={cChip} href={`${githubPageSourcePath}/routes/(inner)${pageData.docsPath}/+page.svelte`} target="_blank" rel="noreferrer">
<i class="fa-solid fa-code" /> <i class="fa-solid fa-code" />
<span>Page Source</span> <span>Page Source</span>
</a> </a>

View File

@@ -11,7 +11,7 @@
name: 'Clipboard', name: 'Clipboard',
description: 'Allows you to quickly copy data to the clipboard.', description: 'Allows you to quickly copy data to the clipboard.',
imports: ['clipboard'], imports: ['clipboard'],
source: 'actions/Clipboard', source: 'packages/skeleton/src/lib/actions/Clipboard',
parameters: [ parameters: [
['<code class="code">element</code>', 'string', '-', '-', `HTML element's <em>data-clipboard</em> ID value.`], ['<code class="code">element</code>', 'string', '-', '-', `HTML element's <em>data-clipboard</em> ID value.`],
['<code class="code">input</code>', 'string', '-', '-', `Input element's <em>data-clipboard</em> ID value.`] ['<code class="code">input</code>', 'string', '-', '-', `Input element's <em>data-clipboard</em> ID value.`]

View File

@@ -16,7 +16,7 @@
name: 'Filters', name: 'Filters',
description: 'Apply Instagram-like filter effects to images.', description: 'Apply Instagram-like filter effects to images.',
imports: ['filter'], imports: ['filter'],
source: 'actions/Filters', source: 'packages/skeleton/src/lib/actions/Filters',
parameters: [['<code class="code">(default)</code>', 'string', '-', '-', 'The name of the filter, such as "Apollo".']] parameters: [['<code class="code">(default)</code>', 'string', '-', '-', 'The name of the filter, such as "Apollo".']]
}; };

View File

@@ -11,7 +11,7 @@
name: 'Focus Trap', name: 'Focus Trap',
description: 'Allows you to contain tab focus within a target element on-demand.', description: 'Allows you to contain tab focus within a target element on-demand.',
imports: ['focusTrap'], imports: ['focusTrap'],
source: 'actions/FocusTrap', source: 'packages/skeleton/src/lib/actions/FocusTrap',
parameters: [['<code class="code">(default)</code>', 'boolean', '-', '-', `When TRUE, enables focus capture.`]] parameters: [['<code class="code">(default)</code>', 'boolean', '-', '-', `When TRUE, enables focus capture.`]]
}; };

View File

@@ -16,7 +16,7 @@
name: 'Accordions', name: 'Accordions',
description: 'Divide content into collapsible sections.', description: 'Divide content into collapsible sections.',
imports: ['Accordion', 'AccordionItem'], imports: ['Accordion', 'AccordionItem'],
source: 'components/Accordion', source: 'packages/skeleton/src/lib/components/Accordion',
aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/accordion/', aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/accordion/',
components: [ components: [
{ label: 'Accordion', sveld: sveldAccordion }, { label: 'Accordion', sveld: sveldAccordion },

View File

@@ -15,7 +15,7 @@
description: description:
'A header element for the top of your page layout. Pairs well with the <a class="anchor" href="/components/app-shell">App Shell</a>.', 'A header element for the top of your page layout. Pairs well with the <a class="anchor" href="/components/app-shell">App Shell</a>.',
imports: ['AppBar'], imports: ['AppBar'],
source: 'components/AppBar', source: 'packages/skeleton/src/lib/components/AppBar',
aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/', aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/',
components: [{ sveld: sveldAppBar }] components: [{ sveld: sveldAppBar }]
}; };

View File

@@ -19,7 +19,7 @@
name: 'App Rail', name: 'App Rail',
description: 'A side navigation rail component', description: 'A side navigation rail component',
imports: ['AppRail', 'AppRailTile', 'AppRailAnchor'], imports: ['AppRail', 'AppRailTile', 'AppRailAnchor'],
source: 'components/AppRail', source: 'packages/skeleton/src/lib/components/AppRail',
// aria: 'https://www.w3.org/WAI/ARIA/apg/', // aria: 'https://www.w3.org/WAI/ARIA/apg/',
components: [ components: [
{ label: 'AppRail', sveld: sveldAppRail }, { label: 'AppRail', sveld: sveldAppRail },

View File

@@ -14,7 +14,7 @@
name: 'App Shell', name: 'App Shell',
description: 'Responsive shell for controlling application layout.', description: 'Responsive shell for controlling application layout.',
imports: ['AppShell'], imports: ['AppShell'],
source: 'components/AppShell', source: 'packages/skeleton/src/lib/components/AppShell',
components: [{ sveld: sveldAppShell }] components: [{ sveld: sveldAppShell }]
}; };

View File

@@ -17,7 +17,7 @@
description: 'Displays a list of suggested options.', description: 'Displays a list of suggested options.',
imports: ['Autocomplete'], imports: ['Autocomplete'],
types: ['AutocompleteOption'], types: ['AutocompleteOption'],
source: 'components/Autocomplete', source: 'packages/skeleton/src/lib/components/Autocomplete',
// aria: 'https://www.w3.org/WAI/ARIA/apg/', // aria: 'https://www.w3.org/WAI/ARIA/apg/',
components: [{ sveld: sveldAutocomplete }], components: [{ sveld: sveldAutocomplete }],
keyboard: [ keyboard: [

View File

@@ -17,7 +17,7 @@
name: 'Avatars', name: 'Avatars',
description: 'Display user avatars with an image or initials.', description: 'Display user avatars with an image or initials.',
imports: ['Avatar'], imports: ['Avatar'],
source: 'components/Avatar', source: 'packages/skeleton/src/lib/components/Avatar',
components: [{ sveld: sveldAvatar }] components: [{ sveld: sveldAvatar }]
}; };

View File

@@ -14,7 +14,7 @@
description: 'Create conic gradient data visualizations for pie charts, loading spinners, and more.', description: 'Create conic gradient data visualizations for pie charts, loading spinners, and more.',
imports: ['ConicGradient'], imports: ['ConicGradient'],
types: ['ConicStop'], types: ['ConicStop'],
source: 'components/ConicGradient', source: 'packages/skeleton/src/lib/components/ConicGradient',
components: [{ sveld: sveldConicGradient }] components: [{ sveld: sveldConicGradient }]
}; };

View File

@@ -13,7 +13,7 @@
name: 'File Buttons', name: 'File Buttons',
description: 'Allows you to select files with a single click.', description: 'Allows you to select files with a single click.',
imports: ['FileButton'], imports: ['FileButton'],
source: 'components/FileButton', source: 'packages/skeleton/src/lib/components/FileButton',
components: [{ sveld: sveldFileButton }], components: [{ sveld: sveldFileButton }],
restProps: 'input' restProps: 'input'
}; };

View File

@@ -13,7 +13,7 @@
name: 'File Dropzone', name: 'File Dropzone',
description: 'Allow upload of files with drag and drop.', description: 'Allow upload of files with drag and drop.',
imports: ['FileDropzone'], imports: ['FileDropzone'],
source: 'components/FileDropzone', source: 'packages/skeleton/src/lib/components/FileDropzone',
components: [{ sveld: sveldFileDropzone }], components: [{ sveld: sveldFileDropzone }],
restProps: 'input' restProps: 'input'
}; };

View File

@@ -15,7 +15,7 @@
imports: ['InputChip'], imports: ['InputChip'],
stylesheetIncludes: ['all', 'elements'], stylesheetIncludes: ['all', 'elements'],
stylesheets: ['elements/forms', 'elements/chips'], stylesheets: ['elements/forms', 'elements/chips'],
source: 'components/InputChip', source: 'packages/skeleton/src/lib/components/InputChip',
components: [{ sveld: sveldInputChip }], components: [{ sveld: sveldInputChip }],
// aria: 'https://www.w3.org/WAI/ARIA/apg/', // aria: 'https://www.w3.org/WAI/ARIA/apg/',
restProps: 'input', restProps: 'input',

View File

@@ -14,7 +14,7 @@
name: 'Listboxes', name: 'Listboxes',
description: 'Interactive listboxes that maintain selection state.', description: 'Interactive listboxes that maintain selection state.',
imports: ['ListBox', 'ListBoxItem'], imports: ['ListBox', 'ListBoxItem'],
source: 'components/ListBox', source: 'packages/skeleton/src/lib/components/ListBox',
aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/listbox/', aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/listbox/',
components: [ components: [
{ label: 'ListBox', sveld: sveldListBox }, { label: 'ListBox', sveld: sveldListBox },

View File

@@ -15,7 +15,7 @@
name: 'Paginators', name: 'Paginators',
description: 'Navigate between multiple pages of content.', description: 'Navigate between multiple pages of content.',
imports: ['Paginator'], imports: ['Paginator'],
source: 'components/Paginator', source: 'packages/skeleton/src/lib/components/Paginator',
components: [{ sveld: sveldPaginator }] components: [{ sveld: sveldPaginator }]
}; };

View File

@@ -18,7 +18,7 @@
name: 'Progress Bars', name: 'Progress Bars',
description: 'An indicator showing the progress or completion of a task.', description: 'An indicator showing the progress or completion of a task.',
imports: ['ProgressBar'], imports: ['ProgressBar'],
source: 'components/ProgressBar', source: 'packages/skeleton/src/lib/components/ProgressBar',
aria: 'https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/progressbar_role', aria: 'https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/progressbar_role',
components: [{ sveld: sveldProgressBar }] components: [{ sveld: sveldProgressBar }]
}; };

View File

@@ -13,7 +13,7 @@
name: 'Progress Radials', name: 'Progress Radials',
description: 'Displays a radial indicator showing the progress or completion of a task.', description: 'Displays a radial indicator showing the progress or completion of a task.',
imports: ['ProgressRadial'], imports: ['ProgressRadial'],
source: 'components/ProgressRadial', source: 'packages/skeleton/src/lib/components/ProgressRadial',
aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/meter/', aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/meter/',
components: [{ sveld: sveldProgressRadial }] components: [{ sveld: sveldProgressRadial }]
}; };

View File

@@ -14,7 +14,7 @@
name: 'Radio Groups', name: 'Radio Groups',
description: 'Capture feedback limited to a small set of options.', description: 'Capture feedback limited to a small set of options.',
imports: ['RadioGroup', 'RadioItem'], imports: ['RadioGroup', 'RadioItem'],
source: 'components/Radio', source: 'packages/skeleton/src/lib/components/Radio',
aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/radiobutton/', aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/radiobutton/',
restProps: 'RadioItem input', restProps: 'RadioItem input',
components: [ components: [

View File

@@ -13,7 +13,7 @@
name: 'Range Sliders', name: 'Range Sliders',
description: 'Capture input from a range of values, including optional ticks.', description: 'Capture input from a range of values, including optional ticks.',
imports: ['RangeSlider'], imports: ['RangeSlider'],
source: 'components/RangeSlider', source: 'packages/skeleton/src/lib/components/RangeSlider',
aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/slider/', aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/slider/',
components: [{ sveld: sveldRangeSlider }], components: [{ sveld: sveldRangeSlider }],
restProps: 'input', restProps: 'input',

View File

@@ -14,7 +14,7 @@
name: 'Ratings', name: 'Ratings',
description: 'Create an visual representation of a numeric range.', description: 'Create an visual representation of a numeric range.',
imports: ['Ratings'], imports: ['Ratings'],
source: 'components/Ratings', source: 'packages/skeleton/src/lib/components/Ratings',
components: [{ label: 'Ratings', sveld: sveldRatings }] components: [{ label: 'Ratings', sveld: sveldRatings }]
}; };

View File

@@ -13,7 +13,7 @@
name: 'Slide Toggles', name: 'Slide Toggles',
description: 'A sliding toggle element that can capture input from a user.', description: 'A sliding toggle element that can capture input from a user.',
imports: ['SlideToggle'], imports: ['SlideToggle'],
source: 'components/SlideToggle', source: 'packages/skeleton/src/lib/components/SlideToggle',
aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/switch/', aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/switch/',
components: [{ sveld: sveldSlideToggle }], components: [{ sveld: sveldSlideToggle }],
restProps: 'input' restProps: 'input'

View File

@@ -14,7 +14,7 @@
name: 'Steppers', name: 'Steppers',
description: 'Divide and present content in sequenced steps.', description: 'Divide and present content in sequenced steps.',
imports: ['Stepper', 'Step'], imports: ['Stepper', 'Step'],
source: 'components/Stepper', source: 'packages/skeleton/src/lib/components/Stepper',
components: [ components: [
{ label: 'Stepper', sveld: sveldStepper }, { label: 'Stepper', sveld: sveldStepper },
{ {

View File

@@ -22,7 +22,7 @@
description: 'Utilize a data-driven model to create simple presentational tables.', description: 'Utilize a data-driven model to create simple presentational tables.',
imports: ['Table'], imports: ['Table'],
types: ['TableSource'], types: ['TableSource'],
source: 'components/Table', source: 'packages/skeleton/src/lib/components/Table',
aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/grid/', aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/grid/',
components: [{ sveld: sveldTable }], components: [{ sveld: sveldTable }],
keyboard: [ keyboard: [

View File

@@ -15,7 +15,7 @@
name: 'Tabs', name: 'Tabs',
description: 'Use tabs to quickly switch between different views and pages.', description: 'Use tabs to quickly switch between different views and pages.',
imports: ['TabGroup', 'Tab', 'TabAnchor'], imports: ['TabGroup', 'Tab', 'TabAnchor'],
source: 'components/Tab', source: 'packages/skeleton/src/lib/components/Tab',
aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/tabpanel/', aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/tabpanel/',
components: [ components: [
{ label: 'TabGroup', sveld: sveldTabGroup }, { label: 'TabGroup', sveld: sveldTabGroup },

View File

@@ -16,7 +16,7 @@
name: 'Tree Views', name: 'Tree Views',
description: 'Display information in a hierarchical structure using collapsible nodes.', description: 'Display information in a hierarchical structure using collapsible nodes.',
imports: ['TreeView', 'TreeViewItem', 'type TreeViewNode'], imports: ['TreeView', 'TreeViewItem', 'type TreeViewNode'],
source: 'components/TreeView', source: 'packages/skeleton/src/lib/components/TreeView',
aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/treeview/', aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/treeview/',
components: [ components: [
{ label: 'TreeView', sveld: sveldTreeView }, { label: 'TreeView', sveld: sveldTreeView },

View File

@@ -10,7 +10,7 @@
name: 'Design Tokens', name: 'Design Tokens',
description: 'The Skeleton Tailwind plugin provides a set of utility classes that adjust to your theme settings.', description: 'The Skeleton Tailwind plugin provides a set of utility classes that adjust to your theme settings.',
// stylesheetIncludes: ['all', 'tokens'], // stylesheetIncludes: ['all', 'tokens'],
source: 'tailwind/tokens' source: 'packages/plugin/src/tailwind/tokens'
}; };
// Local // Local

View File

@@ -10,7 +10,7 @@
feature: DocsFeature.Element, feature: DocsFeature.Element,
name: 'Variants', name: 'Variants',
description: 'Canned styles available to easily customize elements, components, and more.', description: 'Canned styles available to easily customize elements, components, and more.',
source: 'tailwind/tokens' source: 'packages/plugin/src/styles/components/variants.css'
}; };
</script> </script>

View File

@@ -16,7 +16,7 @@
description: 'Displays customizable alerts to attract attention and provide critical actions.', description: 'Displays customizable alerts to attract attention and provide critical actions.',
stylesheetIncludes: ['all', 'elements'], stylesheetIncludes: ['all', 'elements'],
stylesheets: ['elements/alerts'], stylesheets: ['elements/alerts'],
source: 'styles/elements/alerts.css', source: 'packages/plugin/src/styles/components/alerts.css',
classes: [ classes: [
['<code class="code">alert</code>', '', 'Provide basic alert styles to a block element.'], ['<code class="code">alert</code>', '', 'Provide basic alert styles to a block element.'],
['<code class="code">alert-message</code>', '', 'The message body styles. Contains a title and message.'], ['<code class="code">alert-message</code>', '', 'The message body styles. Contains a title and message.'],

View File

@@ -13,7 +13,7 @@
description: 'Provides a robust set of non-interactive badge styles.', description: 'Provides a robust set of non-interactive badge styles.',
stylesheetIncludes: ['all', 'elements'], stylesheetIncludes: ['all', 'elements'],
stylesheets: ['elements/badges'], stylesheets: ['elements/badges'],
source: 'styles/elements/badges.css', source: 'packages/plugin/src/styles/components/badges.css',
classes: [ classes: [
['<code class="code">badge</code>', '-', 'Provides the standard Badge style.'], ['<code class="code">badge</code>', '-', 'Provides the standard Badge style.'],
['<code class="code">badge-icon</code>', '-', 'Provides the Icon Badge style.'] ['<code class="code">badge-icon</code>', '-', 'Provides the Icon Badge style.']

View File

@@ -13,7 +13,7 @@
description: 'Displays the current navigation hierarchy.', description: 'Displays the current navigation hierarchy.',
stylesheetIncludes: ['all', 'elements'], stylesheetIncludes: ['all', 'elements'],
stylesheets: ['elements/breadcrumbs'], stylesheets: ['elements/breadcrumbs'],
source: 'styles/elements/breadcrumbs.css', source: 'packages/plugin/src/styles/components/breadcrumbs.css',
classes: [ classes: [
['<code class="code">breadcrumb</code>', '-', 'Add to an <em>ol</em> tag element.'], ['<code class="code">breadcrumb</code>', '-', 'Add to an <em>ol</em> tag element.'],
['<code class="code">breadcrumb-nonresponsive</code>', '-', 'Shows all crumbs on small mobile breakpoints.'], ['<code class="code">breadcrumb-nonresponsive</code>', '-', 'Shows all crumbs on small mobile breakpoints.'],

View File

@@ -14,7 +14,7 @@
description: 'Provides a robust set of button styles, including preset variants.', description: 'Provides a robust set of button styles, including preset variants.',
stylesheetIncludes: ['all', 'elements'], stylesheetIncludes: ['all', 'elements'],
stylesheets: ['elements/buttons'], stylesheets: ['elements/buttons'],
source: 'styles/elements/buttons.css', source: 'packages/plugin/src/styles/components/buttons.css',
classes: [ classes: [
['<code class="code">.btn</code>', '-', 'Creates a text button using a button or anchor.'], ['<code class="code">.btn</code>', '-', 'Creates a text button using a button or anchor.'],
['<code class="code">.btn-icon</code>', '-', 'Creates a text icon button using a button or anchor.'], ['<code class="code">.btn-icon</code>', '-', 'Creates a text icon button using a button or anchor.'],

View File

@@ -14,7 +14,7 @@
description: 'Provides container elements that wrap and separate content', description: 'Provides container elements that wrap and separate content',
stylesheetIncludes: ['all', 'elements'], stylesheetIncludes: ['all', 'elements'],
stylesheets: ['elements/cards'], stylesheets: ['elements/cards'],
source: 'styles/elements/cards.css', source: 'packages/plugin/src/styles/components/cards.css',
classes: [ classes: [
['<code class="code">.card</code>', '-', 'Adds basic card styling to any block element.'], ['<code class="code">.card</code>', '-', 'Adds basic card styling to any block element.'],
['<code class="code">.card-header</code>', '-', 'The header region of the card.'], ['<code class="code">.card-header</code>', '-', 'The header region of the card.'],

View File

@@ -13,7 +13,7 @@
description: 'Interactive elements for actions, selection, or filtering.', description: 'Interactive elements for actions, selection, or filtering.',
stylesheetIncludes: ['all', 'elements'], stylesheetIncludes: ['all', 'elements'],
stylesheets: ['elements/chips'], stylesheets: ['elements/chips'],
source: 'styles/elements/chips.css', source: 'packages/plugin/src/styles/components/chips.css',
classes: [ classes: [
['<code class="code">chip</code>', '', 'Provides the standard chip style.'], ['<code class="code">chip</code>', '', 'Provides the standard chip style.'],
['<code class="code">chip-[color]</code>', '<a class="anchor" href="/docs/colors">Any theme color.</a>', 'Applies a variant style.'], ['<code class="code">chip-[color]</code>', '<a class="anchor" href="/docs/colors">Any theme color.</a>', 'Applies a variant style.'],

View File

@@ -12,7 +12,7 @@
name: 'Core', name: 'Core',
description: 'Provides a variety of globally scoped styles.', description: 'Provides a variety of globally scoped styles.',
stylesheetIncludes: ['skeleton', 'core'], stylesheetIncludes: ['skeleton', 'core'],
source: 'styles/partials/core.css' source: 'packages/plugin/src/styles/base/core.css'
}; };
</script> </script>

View File

@@ -13,7 +13,7 @@
name: 'Forms', name: 'Forms',
description: 'Pair with the Tailwind Forms plugin to style various input fields.', description: 'Pair with the Tailwind Forms plugin to style various input fields.',
stylesheetIncludes: ['all', 'forms'], stylesheetIncludes: ['all', 'forms'],
source: 'styles/elements/forms.css', source: 'packages/plugin/src/styles/base/forms.css',
dependencies: [{ label: 'Tailwind Forms Plugin', url: 'https://github.com/tailwindlabs/tailwindcss-forms' }], dependencies: [{ label: 'Tailwind Forms Plugin', url: 'https://github.com/tailwindlabs/tailwindcss-forms' }],
classes: [ classes: [
['<code class="code">.legend</code>', '', 'Provides theme styles to legend elements.'], ['<code class="code">.legend</code>', '', 'Provides theme styles to legend elements.'],

View File

@@ -13,7 +13,7 @@
name: 'Gradient Headings', name: 'Gradient Headings',
description: 'Create gradient-colored heading styles.', description: 'Create gradient-colored heading styles.',
// imports: ['GradientHeading'], // imports: ['GradientHeading'],
// source: 'components/GradientHeading' // source: 'packages/skeleton/src/lib/components/GradientHeading'
dependencies: [{ label: 'Tailwind Gradients', url: 'https://tailwindcss.com/docs/gradient-color-stops' }] dependencies: [{ label: 'Tailwind Gradients', url: 'https://tailwindcss.com/docs/gradient-color-stops' }]
}; };
</script> </script>

View File

@@ -17,7 +17,7 @@
// types: ['Template'], // types: ['Template'],
// stylesheetIncludes: ['all', 'elements'], // stylesheetIncludes: ['all', 'elements'],
// stylesheets: ['elements/template'], // stylesheets: ['elements/template'],
// source: 'components/Template', // source: 'packages/skeleton/src/lib/components/Template',
// aria: 'https://www.w3.org/WAI/ARIA/apg/' // aria: 'https://www.w3.org/WAI/ARIA/apg/'
// dependencies: [{ label: 'Highlight.js', url: 'https://highlightjs.org/' }], // dependencies: [{ label: 'Highlight.js', url: 'https://highlightjs.org/' }],
// components: [{sveld: sveldComp}], // components: [{sveld: sveldComp}],

View File

@@ -15,7 +15,7 @@
description: 'Provides styles for static list elements.', description: 'Provides styles for static list elements.',
stylesheetIncludes: ['all', 'elements'], stylesheetIncludes: ['all', 'elements'],
stylesheets: ['elements/lists'], stylesheets: ['elements/lists'],
source: 'styles/elements/lists.css', source: 'packages/plugin/src/styles/components/lists.css',
classes: [ classes: [
['<code class="code">.list</code>', '-', 'Class for defining an unordered or ordered list.'], ['<code class="code">.list</code>', '-', 'Class for defining an unordered or ordered list.'],
['<code class="code">.list-dl</code>', '-', 'Class for defining a description list.'], ['<code class="code">.list-dl</code>', '-', 'Class for defining a description list.'],

View File

@@ -15,7 +15,7 @@
description: 'Provides a grid for presenting a set of logos, brands, or sponsors.', description: 'Provides a grid for presenting a set of logos, brands, or sponsors.',
stylesheetIncludes: ['all', 'elements'], stylesheetIncludes: ['all', 'elements'],
stylesheets: ['elements/logo-clouds'], stylesheets: ['elements/logo-clouds'],
source: 'styles/elements/logo-clouds.css', source: 'packages/plugin/src/styles/components/logo-clouds.css',
classes: [ classes: [
['<code class="code">.logo-cloud</code>', '-', 'Apply to a wrapping block element around a set of logos.'], ['<code class="code">.logo-cloud</code>', '-', 'Apply to a wrapping block element around a set of logos.'],
['<code class="code">.logo-item</code>', '-', 'Apply to each logo child element.'] ['<code class="code">.logo-item</code>', '-', 'Apply to each logo child element.']

View File

@@ -12,7 +12,7 @@
description: 'Provides "skeleton" placeholders that can display while content loads.', description: 'Provides "skeleton" placeholders that can display while content loads.',
stylesheetIncludes: ['all', 'elements'], stylesheetIncludes: ['all', 'elements'],
stylesheets: ['elements/placeholders'], stylesheets: ['elements/placeholders'],
source: 'styles/elements/placeholders.css', source: 'packages/plugin/src/styles/components/placeholders.css',
classes: [ classes: [
['<code class="code">placeholder</code>', '-', 'Applies the default placeholder style.'], ['<code class="code">placeholder</code>', '-', 'Applies the default placeholder style.'],
['<code class="code">placeholder-circle</code>', '-', 'Applies the circular placeholder style.'] ['<code class="code">placeholder-circle</code>', '-', 'Applies the circular placeholder style.']

View File

@@ -14,7 +14,7 @@
description: 'Provides a set of styles for native HTML table elements.', description: 'Provides a set of styles for native HTML table elements.',
stylesheetIncludes: ['all', 'elements'], stylesheetIncludes: ['all', 'elements'],
stylesheets: ['elements/tables'], stylesheets: ['elements/tables'],
source: 'styles/elements/tables.css', source: 'packages/plugin/src/styles/components/tables.css',
classes: [ classes: [
['<code class="code">.table-container</code>', '-', 'Apply to a wrapping parent element to enable responsive scrolling.'], ['<code class="code">.table-container</code>', '-', 'Apply to a wrapping parent element to enable responsive scrolling.'],
['<code class="code">.table</code>', '-', 'Apply to a native HTML table element to add table styles.'], ['<code class="code">.table</code>', '-', 'Apply to a native HTML table element to add table styles.'],

View File

@@ -11,7 +11,7 @@
name: 'Typography', name: 'Typography',
description: 'Provides a variety of globally scoped typographic styles. Keeps common tags styled consistently throughout an app.', description: 'Provides a variety of globally scoped typographic styles. Keeps common tags styled consistently throughout an app.',
stylesheetIncludes: ['skeleton', 'typography'], stylesheetIncludes: ['skeleton', 'typography'],
source: 'styles/partials/typography.css' source: 'packages/plugin/src/styles/components/typography.css'
}; };
</script> </script>

View File

@@ -17,7 +17,7 @@
types: ['Template'], types: ['Template'],
stylesheetIncludes: ['all', 'elements'], stylesheetIncludes: ['all', 'elements'],
stylesheets: ['elements/template'], stylesheets: ['elements/template'],
source: 'components/Template', source: 'packages/skeleton/src/lib/components/Template',
aria: 'https://www.w3.org/WAI/ARIA/apg/' aria: 'https://www.w3.org/WAI/ARIA/apg/'
// dependencies: [{ label: 'Highlight.js', url: 'https://highlightjs.org/' }], // dependencies: [{ label: 'Highlight.js', url: 'https://highlightjs.org/' }],
// components: [{sveld: sveldComp}], // components: [{sveld: sveldComp}],

View File

@@ -15,7 +15,7 @@
'Displays pre-formatted source code, with optional support for <a href="https://highlightjs.org/" target="_blank" rel="noreferrer">Highlight.js</a> syntax highlighting.', 'Displays pre-formatted source code, with optional support for <a href="https://highlightjs.org/" target="_blank" rel="noreferrer">Highlight.js</a> syntax highlighting.',
imports: ['CodeBlock'], imports: ['CodeBlock'],
stylesheets: ['highlight-js'], stylesheets: ['highlight-js'],
source: 'utilities/CodeBlock', source: 'packages/skeleton/src/lib/utilities/CodeBlock',
components: [{ sveld: sveldCodeBlock }], components: [{ sveld: sveldCodeBlock }],
dependencies: [{ label: 'Highlight.js', url: 'https://highlightjs.org/' }] dependencies: [{ label: 'Highlight.js', url: 'https://highlightjs.org/' }]
}; };

View File

@@ -18,7 +18,7 @@
description: 'Displays an overlay panel that attaches to any side of the screen.', description: 'Displays an overlay panel that attaches to any side of the screen.',
imports: ['Drawer', 'getDrawerStore'], imports: ['Drawer', 'getDrawerStore'],
types: ['DrawerSettings', 'DrawerStore'], types: ['DrawerSettings', 'DrawerStore'],
source: 'utilities/Drawer', source: 'packages/skeleton/src/lib/utilities/Drawer',
aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/dialogmodal/', aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/dialogmodal/',
components: [{ sveld: sveldDrawer }], components: [{ sveld: sveldDrawer }],
keyboard: [['<kbd class="kbd">Esc</kbd>', ' Closes the drawer.']] keyboard: [['<kbd class="kbd">Esc</kbd>', ' Closes the drawer.']]

View File

@@ -13,7 +13,7 @@
name: 'Lightswitch', name: 'Lightswitch',
description: `Components and utilities to toggle <a class="anchor" href="https://tailwindcss.com/docs/dark-mode" target="_blank" rel="noreferrer">Tailwind's dark mode</a>.`, description: `Components and utilities to toggle <a class="anchor" href="https://tailwindcss.com/docs/dark-mode" target="_blank" rel="noreferrer">Tailwind's dark mode</a>.`,
imports: ['LightSwitch'], imports: ['LightSwitch'],
source: 'utilities/LightSwitch', source: 'packages/skeleton/src/lib/utilities/LightSwitch',
aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/switch/', aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/switch/',
components: [{ sveld: sveldLightSwitch }], components: [{ sveld: sveldLightSwitch }],
keyboard: [['<kbd class="kbd">Space</kbd> or <kbd class="kbd">Enter</kbd>', 'Toggle the switch state.']] keyboard: [['<kbd class="kbd">Space</kbd> or <kbd class="kbd">Enter</kbd>', 'Toggle the switch state.']]

View File

@@ -11,7 +11,7 @@
description: description:
'An extended version of the <a class="anchor" href="https://svelte.dev/tutorial/writable-stores" target="_blank" rel="noreferrer">Svelte writable store</a> that includes pub/sub to local storage.', 'An extended version of the <a class="anchor" href="https://svelte.dev/tutorial/writable-stores" target="_blank" rel="noreferrer">Svelte writable store</a> that includes pub/sub to local storage.',
imports: ['localStorageStore'], imports: ['localStorageStore'],
source: 'utilities/LocalStorageStore' source: 'packages/skeleton/src/lib/utilities/LocalStorageStore'
}; };
</script> </script>

View File

@@ -27,7 +27,7 @@
description: 'High priority dialogs and modals using a dynamic queue system.', description: 'High priority dialogs and modals using a dynamic queue system.',
imports: ['Modal', 'getModalStore'], imports: ['Modal', 'getModalStore'],
types: ['ModalSettings', 'ModalComponent', 'ModalStore'], types: ['ModalSettings', 'ModalComponent', 'ModalStore'],
source: 'utilities/Modal', source: 'packages/skeleton/src/lib/utilities/Modal',
aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/', aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/',
components: [{ sveld: sveldModal }], components: [{ sveld: sveldModal }],
keyboard: [['<kbd class="kbd">Esc</kbd>', ' Dismisses the foremost modal.']], keyboard: [['<kbd class="kbd">Esc</kbd>', ' Dismisses the foremost modal.']],

View File

@@ -17,7 +17,7 @@
types: ['PopupSettings'], types: ['PopupSettings'],
stylesheetIncludes: ['all', 'elements'], stylesheetIncludes: ['all', 'elements'],
stylesheets: ['elements/popups'], stylesheets: ['elements/popups'],
source: 'utilities/Popup', source: 'packages/skeleton/src/lib/utilities/Popup',
aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/menu/', aria: 'https://www.w3.org/WAI/ARIA/apg/patterns/menu/',
classes: [ classes: [
['<code class="code">[data-popup]</code>', '', `Follows Floating UI's best practices. Sets hidden by default.`], ['<code class="code">[data-popup]</code>', '', `Follows Floating UI's best practices. Sets hidden by default.`],

View File

@@ -13,7 +13,7 @@
name: 'Table of Contents', name: 'Table of Contents',
description: 'Allows you to quickly navigate the hierarchy of headings for the current page.', description: 'Allows you to quickly navigate the hierarchy of headings for the current page.',
imports: ['TableOfContents', 'tocCrawler'], imports: ['TableOfContents', 'tocCrawler'],
source: 'components/TableOfContents', source: 'packages/skeleton/src/lib/utilities/TableOfContents',
components: [{ sveld: sveldTableOfContents }] components: [{ sveld: sveldTableOfContents }]
}; };
</script> </script>

View File

@@ -18,7 +18,7 @@
description: 'Simple notifications utilizing a dynamic queue system.', description: 'Simple notifications utilizing a dynamic queue system.',
imports: ['Toast', 'getToastStore'], imports: ['Toast', 'getToastStore'],
types: ['ToastSettings', 'ToastStore'], types: ['ToastSettings', 'ToastStore'],
source: 'utilities/Toast', source: 'packages/skeleton/src/lib/utilities/Toast',
components: [{ sveld: sveldToast }], components: [{ sveld: sveldToast }],
transitionIn: 'fly', transitionIn: 'fly',
transitionOut: 'fly' transitionOut: 'fly'