@autoafleveren/ui 0.0.2-beta → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.d.ts +1 -0
- package/composables.d.ts +1 -0
- package/{src → dist}/config/eslint.cjs +19 -11
- package/{src → dist}/config/nuxt.cjs +3 -1
- package/{src → dist}/config/tailwind/config.cjs +12 -9
- package/dist/icons.cjs +1 -0
- package/dist/icons.js +5025 -0
- package/dist/style.css +1 -0
- package/dist/types/components/AppButton/AppButton.vue.d.ts +56 -0
- package/dist/types/components/AppButton/ButtonIconSlot.vue.d.ts +22 -0
- package/dist/types/components/AppButton/index.d.ts +3 -0
- package/dist/types/components/AppLoader/AppLoader.vue.d.ts +27 -0
- package/dist/types/components/AppLoader/index.d.ts +2 -0
- package/dist/types/components/AppNavigationMenu/AppNavigationMenu.vue.d.ts +2 -0
- package/dist/types/components/AppNavigationMenu/Mobile.vue.d.ts +2 -0
- package/dist/types/components/AppNavigationMenu/NavigationItem.vue.d.ts +16 -0
- package/{src/modules/components/index.ts → dist/types/components/index.d.ts} +1 -1
- package/{src/modules/composables/index.ts → dist/types/composables/index.d.ts} +1 -0
- package/dist/types/composables/useLayout/index.d.ts +14 -0
- package/dist/types/composables/useNavigation/__mocks__/navigation.d.ts +2 -0
- package/dist/types/composables/useNavigation/index.d.ts +140 -0
- package/dist/types/icons/heroicons.d.ts +4 -0
- package/dist/types/icons/index.d.ts +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/layouts/Auth/Auth.vue.d.ts +9 -0
- package/dist/types/layouts/index.d.ts +2 -0
- package/dist/ui-library.css +3 -0
- package/dist/ui.cjs +2 -0
- package/dist/ui.js +402 -0
- package/icons.d.ts +1 -0
- package/index.d.ts +4 -0
- package/layouts.d.ts +1 -0
- package/package.json +76 -62
- package/.babelrc +0 -6
- package/.env.example +0 -1
- package/.eslintrc.cjs +0 -4
- package/.gitignore +0 -32
- package/.storybook/main.ts +0 -42
- package/.storybook/manager.ts +0 -6
- package/.storybook/preview-head.html +0 -3
- package/.storybook/preview.ts +0 -30
- package/.storybook/theme/dark.ts +0 -12
- package/.storybook/theme/index.ts +0 -2
- package/.storybook/theme/light.ts +0 -12
- package/.yarn/install-state.gz +0 -0
- package/.yarn/releases/yarn-4.0.0-rc.40.cjs +0 -876
- package/.yarnrc.yml +0 -13
- package/index.html +0 -16
- package/postcss.config.cjs +0 -6
- package/shims-vue.d.ts +0 -6
- package/src/App.vue +0 -7
- package/src/css/main.css +0 -16
- package/src/main.ts +0 -8
- package/src/modules/components/AppButton/AppButton.vue +0 -42
- package/src/modules/components/AppButton/__tests__/app-button.spec.ts +0 -15
- package/src/modules/components/AppButton/index.ts +0 -37
- package/src/modules/components/AppIcon/AppIcon.vue +0 -21
- package/src/modules/components/AppIcon/index.ts +0 -1
- package/src/modules/components/AppNavigationMenu/AppNavigationMenu.vue +0 -16
- package/src/modules/components/AppNavigationMenu/Mobile.vue +0 -81
- package/src/modules/components/AppNavigationMenu/NavigationItem.vue +0 -15
- package/src/modules/composables/useNavigation.ts +0 -51
- package/src/modules/icons/heroicons.ts +0 -5
- package/src/modules/icons/index.ts +0 -1
- package/src/modules/layouts/Auth/Auth.vue +0 -11
- package/src/modules/layouts/Base/Base.vue +0 -20
- package/src/modules/layouts/index.ts +0 -7
- package/src/stories/Introduction.stories.mdx +0 -153
- package/src/stories/assets/code-brackets.svg +0 -1
- package/src/stories/assets/colors.svg +0 -1
- package/src/stories/assets/comments.svg +0 -1
- package/src/stories/assets/direction.svg +0 -1
- package/src/stories/assets/flow.svg +0 -1
- package/src/stories/assets/plugin.svg +0 -1
- package/src/stories/assets/repo.svg +0 -1
- package/src/stories/assets/stackalt.svg +0 -1
- package/src/stories/components/Button/Button.stories.ts +0 -69
- package/src/stories/layouts/Auth.stories.ts +0 -26
- package/src/stories/layouts/Base.stories.ts +0 -26
- package/tailwind.config.cjs +0 -13
- package/tsconfig.app.json +0 -19
- package/tsconfig.json +0 -14
- package/tsconfig.node.json +0 -8
- package/tsconfig.vitest.json +0 -9
- package/vite.config.ts +0 -58
- package/vitest.config.ts +0 -16
- package/vitest.setup.ts +0 -7
- /package/{src → dist}/config/tailwind/screens.json +0 -0
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { AppButton } from '../../../modules/components';
|
|
2
|
-
|
|
3
|
-
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
4
|
-
|
|
5
|
-
const typeOptions = ['primary', 'secondary', 'error'];
|
|
6
|
-
const sizeOptions = ['small', 'medium', 'large'];
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
title: 'Form/Button',
|
|
10
|
-
component: AppButton,
|
|
11
|
-
argTypes: {
|
|
12
|
-
type: {
|
|
13
|
-
control: { type: 'select' },
|
|
14
|
-
options: typeOptions,
|
|
15
|
-
},
|
|
16
|
-
size: {
|
|
17
|
-
control: { type: 'select' },
|
|
18
|
-
options: sizeOptions,
|
|
19
|
-
},
|
|
20
|
-
loading: { control: { type: 'boolean' } },
|
|
21
|
-
disabled: { control: { type: 'boolean' } },
|
|
22
|
-
icon: { control: { type: 'boolean' } },
|
|
23
|
-
},
|
|
24
|
-
} as Meta;
|
|
25
|
-
|
|
26
|
-
const createTemplate = (
|
|
27
|
-
argumentOverrideKey: string,
|
|
28
|
-
argumentOverrideValues: unknown[],
|
|
29
|
-
): StoryFn<typeof AppButton> => {
|
|
30
|
-
return bindArguments => ({
|
|
31
|
-
components: {
|
|
32
|
-
AppButton,
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
setup(): unknown {
|
|
36
|
-
return { bindArguments, argumentOverrideKey, argumentOverrideValues };
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
template: `
|
|
40
|
-
<div class="flex space-x-2">
|
|
41
|
-
<AppButton
|
|
42
|
-
v-for="argumentOverrideValue in argumentOverrideValues"
|
|
43
|
-
v-bind="{ ...bindArguments, [argumentOverrideKey]: argumentOverrideValue }"
|
|
44
|
-
class="capitalize"
|
|
45
|
-
>
|
|
46
|
-
{{ argumentOverrideValue }}
|
|
47
|
-
</AppButton>
|
|
48
|
-
</div>
|
|
49
|
-
`,
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export const sizes = createTemplate('size', sizeOptions).bind({});
|
|
54
|
-
sizes.args = {
|
|
55
|
-
type: 'primary',
|
|
56
|
-
disabled: false,
|
|
57
|
-
readonly: false,
|
|
58
|
-
loading: false,
|
|
59
|
-
icon: false,
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export const types = createTemplate('type', typeOptions).bind({});
|
|
63
|
-
types.args = {
|
|
64
|
-
type: 'primary',
|
|
65
|
-
disabled: false,
|
|
66
|
-
readonly: false,
|
|
67
|
-
loading: false,
|
|
68
|
-
icon: false,
|
|
69
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { AuthLayout } from '../../modules/layouts';
|
|
2
|
-
|
|
3
|
-
import type { Meta, Story } from '@storybook/vue3';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'Structure/Layout',
|
|
7
|
-
component: AuthLayout,
|
|
8
|
-
} as Meta;
|
|
9
|
-
|
|
10
|
-
const template: Story<typeof AuthLayout> = (args: typeof AuthLayout) => ({
|
|
11
|
-
components: {
|
|
12
|
-
AuthLayout,
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
setup(): unknown {
|
|
16
|
-
return { args };
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
template: `
|
|
20
|
-
<AuthLayout>
|
|
21
|
-
Content within the layout
|
|
22
|
-
</AuthLayout>
|
|
23
|
-
`,
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
export const auth = template.bind({});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { BaseLayout } from '../../modules/layouts';
|
|
2
|
-
|
|
3
|
-
import type { Meta, Story } from '@storybook/vue3';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'Structure/Layout',
|
|
7
|
-
component: BaseLayout,
|
|
8
|
-
} as Meta;
|
|
9
|
-
|
|
10
|
-
const template: Story<typeof BaseLayout> = (args: typeof BaseLayout) => ({
|
|
11
|
-
components: {
|
|
12
|
-
BaseLayout,
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
setup(): unknown {
|
|
16
|
-
return { args };
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
template: `
|
|
20
|
-
<BaseLayout>
|
|
21
|
-
Content within the layout
|
|
22
|
-
</BaseLayout>
|
|
23
|
-
`,
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
export const base = template.bind({});
|
package/tailwind.config.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
const config = require('./src/config/tailwind/config.cjs');
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
...config,
|
|
6
|
-
|
|
7
|
-
content: [
|
|
8
|
-
'./src/modules/**/**/*.{js,vue,ts}',
|
|
9
|
-
'./src/stories/**/**/*.stories.ts',
|
|
10
|
-
'./src/main.ts',
|
|
11
|
-
'./src/App.vue'
|
|
12
|
-
],
|
|
13
|
-
};
|
package/tsconfig.app.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@vue/tsconfig/tsconfig.web.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"composite": true,
|
|
5
|
-
"baseUrl": ".",
|
|
6
|
-
"paths": {
|
|
7
|
-
"~": ["./src"],
|
|
8
|
-
"~/*": ["./src/*"],
|
|
9
|
-
"~components": ["./src/modules/components"],
|
|
10
|
-
"~components/*": ["./src/modules/components/*"],
|
|
11
|
-
"~composables": ["./src/modules/composables"],
|
|
12
|
-
"~composables/*": ["./src/modules/composables/*"],
|
|
13
|
-
"~layouts": ["./src/modules/layouts"],
|
|
14
|
-
"~layouts/*": ["./src/modules/layouts/*"],
|
|
15
|
-
"~icons": ["./src/modules/icons"],
|
|
16
|
-
"~icons/*": ["./src/modules/icons/*"]
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
package/tsconfig.json
DELETED
package/tsconfig.node.json
DELETED
package/tsconfig.vitest.json
DELETED
package/vite.config.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import { defineConfig } from 'vite';
|
|
4
|
-
import Vue from '@vitejs/plugin-vue';
|
|
5
|
-
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
server: {
|
|
8
|
-
host: true,
|
|
9
|
-
strictPort: true,
|
|
10
|
-
port: 80,
|
|
11
|
-
watch: {
|
|
12
|
-
usePolling: true,
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
resolve: {
|
|
17
|
-
alias: {
|
|
18
|
-
'~': path.resolve(__dirname, 'src'),
|
|
19
|
-
'~components': path.resolve(__dirname, 'src/modules/components'),
|
|
20
|
-
'~layouts': path.resolve(__dirname, 'src/modules/layouts'),
|
|
21
|
-
'~composables': path.resolve(__dirname, 'src/modules/composables'),
|
|
22
|
-
'~icons': path.resolve(__dirname, 'src/modules/icons'),
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
build: {
|
|
27
|
-
emptyOutDir: true,
|
|
28
|
-
copyPublicDir: false,
|
|
29
|
-
outDir: './dist',
|
|
30
|
-
sourcemap: false,
|
|
31
|
-
target: 'modules',
|
|
32
|
-
lib: {
|
|
33
|
-
entry: {
|
|
34
|
-
components: path.resolve(__dirname, 'src/modules/components/index.ts'),
|
|
35
|
-
layouts: path.resolve(__dirname, 'src/modules/layouts/index.ts'),
|
|
36
|
-
composables: path.resolve(__dirname, 'src/modules/composables/index.ts'),
|
|
37
|
-
icons: path.resolve(__dirname, 'src/modules/icons/index.ts'),
|
|
38
|
-
},
|
|
39
|
-
formats: ['es'],
|
|
40
|
-
},
|
|
41
|
-
rollupOptions: {
|
|
42
|
-
external: [
|
|
43
|
-
'vue',
|
|
44
|
-
'@headlessui/vue',
|
|
45
|
-
],
|
|
46
|
-
output: {
|
|
47
|
-
preserveModules: true,
|
|
48
|
-
globals: {
|
|
49
|
-
vue: 'Vue',
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
plugins: [
|
|
56
|
-
Vue(),
|
|
57
|
-
],
|
|
58
|
-
});
|
package/vitest.config.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
|
-
import { defineConfig } from 'vitest/config';
|
|
3
|
-
import Vue from '@vitejs/plugin-vue';
|
|
4
|
-
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
plugins: [
|
|
7
|
-
// @ts-expect-error vitest has wrong typing for plugins
|
|
8
|
-
Vue(),
|
|
9
|
-
],
|
|
10
|
-
|
|
11
|
-
test: {
|
|
12
|
-
globals: true,
|
|
13
|
-
environment: 'jsdom',
|
|
14
|
-
setupFiles: ['vitest.setup.ts'],
|
|
15
|
-
},
|
|
16
|
-
});
|
package/vitest.setup.ts
DELETED
|
File without changes
|