diff --git a/src/components/navigation/navigation.stories.svelte b/src/components/navigation/navigation.stories.svelte new file mode 100644 index 000000000..593292317 --- /dev/null +++ b/src/components/navigation/navigation.stories.svelte @@ -0,0 +1,63 @@ + + + + + + + + + diff --git a/src/components/navigation/navigation.svelte b/src/components/navigation/navigation.svelte new file mode 100644 index 000000000..e88c8d7ac --- /dev/null +++ b/src/components/navigation/navigation.svelte @@ -0,0 +1,42 @@ + + + + + diff --git a/src/components/navigation/navigationActions.svelte b/src/components/navigation/navigationActions.svelte new file mode 100644 index 000000000..430221123 --- /dev/null +++ b/src/components/navigation/navigationActions.svelte @@ -0,0 +1,10 @@ + + + diff --git a/src/components/navigation/navigationHeader.svelte b/src/components/navigation/navigationHeader.svelte new file mode 100644 index 000000000..cb2a474d3 --- /dev/null +++ b/src/components/navigation/navigationHeader.svelte @@ -0,0 +1,14 @@ +
+ + +
+ + diff --git a/src/components/navigation/navigationItem.svelte b/src/components/navigation/navigationItem.svelte new file mode 100644 index 000000000..6de384ba6 --- /dev/null +++ b/src/components/navigation/navigationItem.svelte @@ -0,0 +1,86 @@ + + +
  • + + {#if icon} + + {/if} + + + + {#if $$slots.subnav} + + {/if} +
  • + + diff --git a/src/tokens/transformation/tailwind/static/plugins/components/index.ts b/src/tokens/transformation/tailwind/static/plugins/components/index.ts new file mode 100644 index 000000000..9f223fe0e --- /dev/null +++ b/src/tokens/transformation/tailwind/static/plugins/components/index.ts @@ -0,0 +1,18 @@ +const components: string[] = [] + +// Prevent global issues with TS +;(function () { + const { readdirSync } = require('fs') + const { parse } = require('path') + + for (const file of readdirSync(__dirname, { withFileTypes: true })) { + const { name } = parse(file.name) + if (file.isFile() && name !== 'index' && !name.startsWith('_')) { + components.push(name) + } + } +})() + +module.exports = components.map((file) => { + return require(`./${file}`) +})