@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
package/components.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/types/components';
|
package/composables.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/types/composables';
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
const path = require('node:path');
|
|
2
|
-
|
|
3
1
|
const typescriptOverride = require('@programic/eslint-plugin/lib/configs/typescript-override');
|
|
4
2
|
|
|
5
|
-
const namingConventionsTestFileRule = [
|
|
6
|
-
...typescriptOverride.rules['@typescript-eslint/naming-convention'],
|
|
7
|
-
];
|
|
8
|
-
|
|
9
3
|
const tsConfigPath = 'tsconfig.vitest.json';
|
|
10
|
-
|
|
11
|
-
const variableIndex = namingConventionsTestFileRule.findIndex(selector => {
|
|
12
|
-
return typeof selector === 'object' && selector.selector === 'variable';
|
|
13
|
-
});
|
|
4
|
+
const tailwindConfigPath = 'tailwind.config.cjs';
|
|
14
5
|
|
|
15
6
|
const defaultTypescriptOverride = {
|
|
16
7
|
parser: '@typescript-eslint/parser',
|
|
@@ -27,6 +18,14 @@ const defaultTypescriptOverride = {
|
|
|
27
18
|
],
|
|
28
19
|
};
|
|
29
20
|
|
|
21
|
+
const namingConventionsTestFileRule = [
|
|
22
|
+
...typescriptOverride.rules['@typescript-eslint/naming-convention'],
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
const variableIndex = namingConventionsTestFileRule.findIndex(selector => {
|
|
26
|
+
return typeof selector === 'object' && selector.selector === 'variable';
|
|
27
|
+
});
|
|
28
|
+
|
|
30
29
|
if (variableIndex > -1) {
|
|
31
30
|
namingConventionsTestFileRule.splice(variableIndex, 1, {
|
|
32
31
|
selector: 'variable',
|
|
@@ -45,6 +44,7 @@ module.exports = {
|
|
|
45
44
|
'vitest',
|
|
46
45
|
],
|
|
47
46
|
extends: [
|
|
47
|
+
'plugin:@programic/tailwindcss',
|
|
48
48
|
'plugin:@programic/vue-typescript',
|
|
49
49
|
],
|
|
50
50
|
settings: {
|
|
@@ -53,6 +53,9 @@ module.exports = {
|
|
|
53
53
|
project: tsConfigPath,
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
|
+
tailwindcss: {
|
|
57
|
+
config: tailwindConfigPath,
|
|
58
|
+
},
|
|
56
59
|
},
|
|
57
60
|
parserOptions: {
|
|
58
61
|
ecmaVersion: 2020,
|
|
@@ -87,11 +90,13 @@ module.exports = {
|
|
|
87
90
|
'vitest/no-done-callback': 'error',
|
|
88
91
|
'vitest/no-duplicate-hooks': 'error',
|
|
89
92
|
'vitest/no-focused-tests': 'error',
|
|
90
|
-
'vitest/no-skipped-tests': 'error',
|
|
91
93
|
'vitest/no-standalone-expect': 'error',
|
|
92
94
|
'vitest/no-test-return-statement': 'error',
|
|
93
95
|
'vitest/prefer-called-with': 'error',
|
|
94
96
|
'vitest/prefer-lowercase-title': 'error',
|
|
97
|
+
'vitest/prefer-strict-equal': 'error',
|
|
98
|
+
'vitest/prefer-to-be-object': 'error',
|
|
99
|
+
'vitest/prefer-to-have-length': 'error',
|
|
95
100
|
},
|
|
96
101
|
},
|
|
97
102
|
{
|
|
@@ -112,6 +117,9 @@ module.exports = {
|
|
|
112
117
|
},
|
|
113
118
|
],
|
|
114
119
|
rules: {
|
|
120
|
+
'tailwindcss/no-custom-classname': ['error', {
|
|
121
|
+
whitelist: ['^app-.+$'],
|
|
122
|
+
}],
|
|
115
123
|
'vitest/consistent-test-filename': ['error', {
|
|
116
124
|
pattern: '.*\\.spec\\.[tj]sx?$',
|
|
117
125
|
allTestPattern: '.*\\.(test|spec)\\.[tj]sx?$',
|
|
@@ -14,8 +14,8 @@ module.exports = {
|
|
|
14
14
|
mono: 'Inter',
|
|
15
15
|
},
|
|
16
16
|
colors: {
|
|
17
|
-
transparent: 'transparent',
|
|
18
17
|
current: 'currentColor',
|
|
18
|
+
transparent: 'transparent',
|
|
19
19
|
primary: 'var(--color-primary)',
|
|
20
20
|
'primary-active': 'var(--color-primary-active)',
|
|
21
21
|
secondary: 'var(--color-secondary)',
|
|
@@ -26,14 +26,17 @@ module.exports = {
|
|
|
26
26
|
50: '#FCFCFD',
|
|
27
27
|
},
|
|
28
28
|
white: '#FFFFFF',
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
zinc: {
|
|
30
|
+
50: '#FAFAFA',
|
|
31
|
+
100: '#F4F4F5',
|
|
32
|
+
200: '#E4E4E7',
|
|
33
|
+
300: '#D4D4D8',
|
|
34
|
+
400: '#A1A1AA',
|
|
35
|
+
500: '#71717A',
|
|
36
|
+
600: '#52525B',
|
|
37
|
+
700: '#3F3F46',
|
|
38
|
+
800: '#27272A',
|
|
39
|
+
900: '#18181B',
|
|
37
40
|
},
|
|
38
41
|
},
|
|
39
42
|
screens,
|