vue-lib-exo-corrected 1.0.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/README.md +12 -0
- package/dist/components/Molecules/MarkdownText/MarkdownText.vue.d.ts +26 -0
- package/dist/components/Organisms/Layout/Layout.vue.d.ts +2 -0
- package/dist/index.d.ts +13 -0
- package/dist/lidinAppKitConfig/createLidinAppKit.d.ts +85 -0
- package/dist/lidinAppKitConfig/vuetifyConfig/defaultVuetifyConfig.d.ts +62 -0
- package/dist/lidinAppKitConfig/vuetifyConfig/themes.d.ts +5 -0
- package/dist/lidinAppKitConfig/vuetifyConfig/tw-colors.d.ts +290 -0
- package/dist/modules/globalAppData/composables/useLanguage.d.ts +4 -0
- package/dist/modules/globalAppData/composables/useTheme.d.ts +6 -0
- package/dist/modules/globalAppData/store/globalAppDataStore.d.ts +20 -0
- package/dist/services/utils/randomId.d.ts +1 -0
- package/dist/style.css +5 -0
- package/dist/types/sizes.d.ts +2 -0
- package/dist/vue-lib-exo-corrected.js +24238 -0
- package/dist/vue-lib-exo-corrected.umd.cjs +4 -0
- package/package.json +114 -0
- package/src/styles/_breakpoint.scss +15 -0
- package/src/styles/_components.scss +4 -0
- package/src/styles/_spacing.scss +13 -0
- package/src/styles/_typography.scss +186 -0
- package/src/styles/app-kit/_markdown-text.scss +44 -0
- package/src/styles/app-kit/global-item-size.scss +6 -0
- package/src/styles/override/typography-override.scss +47 -0
- package/src/styles/vue-lib-exo-corrected.scss +9 -0
package/package.json
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vue-lib-exo-corrected",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"packageManager": "yarn@4.5.0",
|
|
6
|
+
"description": "A lightweight UI kit for Vue 3",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "vite build && yarn postbuild",
|
|
10
|
+
"postbuild": "node postprocess-dts.cjs",
|
|
11
|
+
"dev": "vite --config playground/vite.config.ts",
|
|
12
|
+
"lint": "eslint . --ext .ts,.vue",
|
|
13
|
+
"prepare": "yarn build",
|
|
14
|
+
"storybook": "storybook dev -p 6006",
|
|
15
|
+
"build-storybook": "storybook build",
|
|
16
|
+
"format": "prettier -c \"./src/**/*.{js,ts,tsx,scss,css,json,vue}\"",
|
|
17
|
+
"format:fix": "yarn format --write",
|
|
18
|
+
"updrade-version:beta": "npm version prerelease --preid=beta",
|
|
19
|
+
"publish-beta": "npm publish --tag beta --userconfig ~/.npmrc"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"src/styles/"
|
|
24
|
+
],
|
|
25
|
+
"main": "./dist/vue-lib-exo-corrected.umd.cjs",
|
|
26
|
+
"module": "./dist/vue-lib-exo-corrected.js",
|
|
27
|
+
"style": "./dist/main.scss",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"tnpes": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/vue-lib-exo-corrected.js",
|
|
32
|
+
"require": "./dist/vue-lib-exo-corrected.umd.cjs"
|
|
33
|
+
},
|
|
34
|
+
"./styles/vue-lib-exo-corrected.scss": "./src/styles/vue-lib-exo-corrected.scss",
|
|
35
|
+
"./style.css": {
|
|
36
|
+
"import": "./dist/style.css",
|
|
37
|
+
"require": "./dist/style.css"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"lodash-es": "^4.17.21",
|
|
42
|
+
"markdown-it": "^14.1.0",
|
|
43
|
+
"pinia": "^3.0.2",
|
|
44
|
+
"pinia-plugin-persistedstate": "^4.1.1",
|
|
45
|
+
"sass": "^1.80.4",
|
|
46
|
+
"uuid": "^9.0.0",
|
|
47
|
+
"vue": "^3.0.0",
|
|
48
|
+
"vue-i18n": "^9.14.2",
|
|
49
|
+
"vuedraggable": "^4.1.0",
|
|
50
|
+
"vuetify": "^3.7.3",
|
|
51
|
+
"zod": "^3.25.32"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@chromatic-com/storybook": "^3.2.4",
|
|
55
|
+
"@storybook/addon-a11y": "^8.3.5",
|
|
56
|
+
"@storybook/addon-actions": "^8.3.5",
|
|
57
|
+
"@storybook/addon-docs": "^8.5.3",
|
|
58
|
+
"@storybook/addon-essentials": "^8.3.5",
|
|
59
|
+
"@storybook/addon-interactions": "^8.3.5",
|
|
60
|
+
"@storybook/addon-knobs": "^8.0.1",
|
|
61
|
+
"@storybook/addon-links": "^8.3.5",
|
|
62
|
+
"@storybook/addon-onboarding": "^8.3.5",
|
|
63
|
+
"@storybook/addon-postcss": "^2.0.0",
|
|
64
|
+
"@storybook/blocks": "^8.5.3",
|
|
65
|
+
"@storybook/builder-vite": "^8.5.3",
|
|
66
|
+
"@storybook/test": "^8.5.3",
|
|
67
|
+
"@storybook/vue3": "^8.5.3",
|
|
68
|
+
"@storybook/vue3-vite": "^8.5.3",
|
|
69
|
+
"@types/lodash-es": "^4.17.12",
|
|
70
|
+
"@types/markdown-it": "^14.1.2",
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "^8.33.1",
|
|
72
|
+
"@typescript-eslint/parser": "^8.33.1",
|
|
73
|
+
"@vitejs/plugin-vue": "^4.1.0",
|
|
74
|
+
"@vue/eslint-config-typescript": "^14.5.0",
|
|
75
|
+
"@vue/tsconfig": "^0.7.0",
|
|
76
|
+
"eslint": "^8.52.0",
|
|
77
|
+
"eslint-plugin-storybook": "^0.11.2",
|
|
78
|
+
"eslint-plugin-vue": "^10.1.0",
|
|
79
|
+
"lodash-es": "^4.17.21",
|
|
80
|
+
"markdown-it": "^14.1.0",
|
|
81
|
+
"path": "^0.12.7",
|
|
82
|
+
"pinia": "^3.0.2",
|
|
83
|
+
"pinia-plugin-persistedstate": "^4.1.1",
|
|
84
|
+
"prettier": "^3.5.3",
|
|
85
|
+
"rollup": "^3.28.1",
|
|
86
|
+
"sass": "^1.80.4",
|
|
87
|
+
"storybook": "^8.5.3",
|
|
88
|
+
"typescript": "^5.0.2",
|
|
89
|
+
"uuid": "^9.0.0",
|
|
90
|
+
"vite": "^4.3.9",
|
|
91
|
+
"vite-plugin-dts": "^2.3.0",
|
|
92
|
+
"vue": "^3.5.13",
|
|
93
|
+
"vue-i18n": "^9.14.2",
|
|
94
|
+
"vue-tsc": "^1.4.2",
|
|
95
|
+
"vuedraggable": "^4.1.0",
|
|
96
|
+
"vuetify": "^3.7.3",
|
|
97
|
+
"zod": "^3.25.32"
|
|
98
|
+
},
|
|
99
|
+
"keywords": [
|
|
100
|
+
"vue",
|
|
101
|
+
"ui-kit",
|
|
102
|
+
"components",
|
|
103
|
+
"vue3",
|
|
104
|
+
"lidin"
|
|
105
|
+
],
|
|
106
|
+
"engines": {
|
|
107
|
+
"node": ">=16.0.0"
|
|
108
|
+
},
|
|
109
|
+
"eslintConfig": {
|
|
110
|
+
"extends": [
|
|
111
|
+
"plugin:storybook/recommended"
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// width breakpoint
|
|
2
|
+
$breakpoint-xs: 375px;
|
|
3
|
+
$breakpoint-s: 700px;
|
|
4
|
+
$breakpoint-m: 992px;
|
|
5
|
+
$breakpoint-l: 1280px;
|
|
6
|
+
$breakpoint-xl: 1440px;
|
|
7
|
+
$breakpoint-xxl: 1680px;
|
|
8
|
+
|
|
9
|
+
// height breakpoint
|
|
10
|
+
$breakpoint-height-xs: 600px;
|
|
11
|
+
$breakpoint-height-s: 700px;
|
|
12
|
+
$breakpoint-height-m: 768px;
|
|
13
|
+
$breakpoint-height-l: 900px;
|
|
14
|
+
$breakpoint-height-xl: 1080px;
|
|
15
|
+
$breakpoint-height-xxl: 1200px;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
$spacing-4: 4px;
|
|
2
|
+
$spacing-8: 8px;
|
|
3
|
+
$spacing-12: 12px;
|
|
4
|
+
$spacing-16: 16px;
|
|
5
|
+
$spacing-24: 24px;
|
|
6
|
+
$spacing-32: 32px;
|
|
7
|
+
$spacing-36: 36px;
|
|
8
|
+
$spacing-40: 40px;
|
|
9
|
+
$spacing-48: 48px;
|
|
10
|
+
$spacing-56: 56px;
|
|
11
|
+
$spacing-64: 64px;
|
|
12
|
+
$spacing-72: 72px;
|
|
13
|
+
$spacing-80: 80px;
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
@use "sass:math"; // Import the Sass math module
|
|
2
|
+
@use "breakpoint" as breakpoint;
|
|
3
|
+
|
|
4
|
+
$font-family-montserrat: montserrat, sans-serif;
|
|
5
|
+
$font-family-roboto: roboto, sans-serif;
|
|
6
|
+
|
|
7
|
+
$base-font-size: 16px;
|
|
8
|
+
|
|
9
|
+
@mixin text($size) {
|
|
10
|
+
font-size: math.div($size, $base-font-size) * 1rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@mixin textFull($size, $weight: 400, $font: $font-family-roboto) {
|
|
14
|
+
@include text($size);
|
|
15
|
+
font-weight: $weight;
|
|
16
|
+
font-family: $font;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@mixin typo-heading-01 {
|
|
20
|
+
@include textFull(28px, 600, $font-family-montserrat);
|
|
21
|
+
|
|
22
|
+
@media (min-width: breakpoint.$breakpoint-m) {
|
|
23
|
+
@include text(44px);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media (min-width: breakpoint.$breakpoint-l) {
|
|
27
|
+
@include text(60px);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@mixin typo-heading-02 {
|
|
32
|
+
@include textFull(24px, 600, $font-family-montserrat);
|
|
33
|
+
|
|
34
|
+
@media (min-width: breakpoint.$breakpoint-m) {
|
|
35
|
+
@include text(34px);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@media (min-width: breakpoint.$breakpoint-l) {
|
|
39
|
+
@include text(44px);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@mixin typo-heading-03 {
|
|
44
|
+
@include textFull(22px, 600, $font-family-montserrat);
|
|
45
|
+
|
|
46
|
+
@media (min-width: breakpoint.$breakpoint-m) {
|
|
47
|
+
@include text(28px);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media (min-width: breakpoint.$breakpoint-l) {
|
|
51
|
+
@include text(34px);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@mixin typo-heading-04 {
|
|
56
|
+
@include textFull(20px, 600, $font-family-montserrat);
|
|
57
|
+
|
|
58
|
+
@media (min-width: breakpoint.$breakpoint-m) {
|
|
59
|
+
@include text(26px);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media (min-width: breakpoint.$breakpoint-l) {
|
|
63
|
+
@include text(28px);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@mixin typo-heading-05 {
|
|
68
|
+
@include textFull(20px, 600, $font-family-montserrat);
|
|
69
|
+
|
|
70
|
+
@media (min-width: breakpoint.$breakpoint-m) {
|
|
71
|
+
@include text(22px);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@media (min-width: breakpoint.$breakpoint-l) {
|
|
75
|
+
@include text(24px);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@mixin typo-heading-06 {
|
|
80
|
+
@include textFull(18px, 400, $font-family-montserrat);
|
|
81
|
+
|
|
82
|
+
@media (min-width: breakpoint.$breakpoint-m) {
|
|
83
|
+
@include text(20px);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@media (min-width: breakpoint.$breakpoint-l) {
|
|
87
|
+
@include text(20px);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@mixin typo-heading-07 {
|
|
92
|
+
@include textFull(14px, 400, $font-family-montserrat);
|
|
93
|
+
|
|
94
|
+
@media (min-width: breakpoint.$breakpoint-m) {
|
|
95
|
+
@include text(16px);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@media (min-width: breakpoint.$breakpoint-l) {
|
|
99
|
+
@include text(18px);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@mixin typo-subtitle {
|
|
104
|
+
@include textFull($size: 18px, $line: 24px, $weight: 700);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@mixin typo-body-large {
|
|
108
|
+
@include textFull($size: 16px, $line: 20px);
|
|
109
|
+
|
|
110
|
+
@media (min-width: breakpoint.$breakpoint-m) {
|
|
111
|
+
@include text(17px, 22px);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@media (min-width: breakpoint.$breakpoint-l) {
|
|
115
|
+
@include text(18px, 24px);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@mixin typo-body {
|
|
120
|
+
@include textFull($size: 16px);
|
|
121
|
+
|
|
122
|
+
@media (min-width: breakpoint.$breakpoint-m) {
|
|
123
|
+
@include text(17px);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@media (min-width: breakpoint.$breakpoint-l) {
|
|
127
|
+
@include text(18px);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@mixin typo-body-small {
|
|
132
|
+
@include textFull($size: 15px);
|
|
133
|
+
|
|
134
|
+
@media (min-width: breakpoint.$breakpoint-m) {
|
|
135
|
+
@include text(16px);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@media (min-width: breakpoint.$breakpoint-l) {
|
|
139
|
+
@include text(17px);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@mixin typo-caption {
|
|
144
|
+
@include textFull($size: 16px);
|
|
145
|
+
color: #717171;
|
|
146
|
+
|
|
147
|
+
@media (min-width: breakpoint.$breakpoint-m) {
|
|
148
|
+
@include text(17px);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@media (min-width: breakpoint.$breakpoint-l) {
|
|
152
|
+
@include text(18px);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
body {
|
|
157
|
+
h1 {
|
|
158
|
+
@include typo-heading-01;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
h2 {
|
|
162
|
+
@include typo-heading-02;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
h3 {
|
|
166
|
+
@include typo-heading-03;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
h4 {
|
|
170
|
+
@include typo-heading-04;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
h5 {
|
|
174
|
+
@include typo-heading-05;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
h6 {
|
|
178
|
+
@include typo-heading-06;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
p {
|
|
182
|
+
margin-top: 0;
|
|
183
|
+
margin-bottom: 0;
|
|
184
|
+
@include typo-body;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
$markdown-size: (
|
|
2
|
+
xsmall: 0.95rem,
|
|
3
|
+
small: 1.2rem,
|
|
4
|
+
medium: 1.6rem,
|
|
5
|
+
large: 1.9rem,
|
|
6
|
+
);
|
|
7
|
+
|
|
8
|
+
@mixin markdown-size($size) {
|
|
9
|
+
@each $name, $size in $markdown-size {
|
|
10
|
+
--text-size-#{$name}: #{$size};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Définit la taille du texte et des headers */
|
|
14
|
+
--text-size: var(--text-size-#{$size});
|
|
15
|
+
--header-size: calc(
|
|
16
|
+
var(--text-size) * 1.25
|
|
17
|
+
); /* Les titres sont 25% plus grands */
|
|
18
|
+
|
|
19
|
+
/* Facteur de réduction (chaque niveau est 83% du précédent) */
|
|
20
|
+
--scale-factor: 0.83;
|
|
21
|
+
|
|
22
|
+
/* h1 prend la valeur de --header-size */
|
|
23
|
+
h1 {
|
|
24
|
+
font-size: var(--header-size);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Génération dynamique des tailles pour h2 à h6 */
|
|
28
|
+
@for $i from 2 through 6 {
|
|
29
|
+
h#{$i} {
|
|
30
|
+
font-size: calc(var(--header-size) * #{pow(0.83, $i - 1)});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Réduction de la taille du texte standard */
|
|
35
|
+
p,
|
|
36
|
+
li,
|
|
37
|
+
span,
|
|
38
|
+
a,
|
|
39
|
+
blockquote,
|
|
40
|
+
td,
|
|
41
|
+
th {
|
|
42
|
+
font-size: calc(var(--text-size) * 0.85);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use "../typography" as typo;
|
|
2
|
+
|
|
3
|
+
body {
|
|
4
|
+
h1,
|
|
5
|
+
h2,
|
|
6
|
+
h3,
|
|
7
|
+
h4,
|
|
8
|
+
h5 {
|
|
9
|
+
font-weight: 800;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
h6 {
|
|
13
|
+
font-weight: 600;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
body {
|
|
18
|
+
h1 {
|
|
19
|
+
@include typo.typo-heading-03;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
h2 {
|
|
23
|
+
@include typo.typo-heading-04;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
h3 {
|
|
27
|
+
@include typo.typo-heading-05;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
h4 {
|
|
31
|
+
@include typo.typo-heading-06;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
h5 {
|
|
35
|
+
@include typo.typo-heading-07;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
h6 {
|
|
39
|
+
@include typo.typo-heading-07;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
p {
|
|
43
|
+
margin-top: 0;
|
|
44
|
+
margin-bottom: 0;
|
|
45
|
+
@include typo.typo-body;
|
|
46
|
+
}
|
|
47
|
+
}
|