spoko-design-system 0.2.45 → 0.2.48
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/index.ts +8 -0
- package/package.json +1 -1
- package/src/components/Breadcrumbs.vue +17 -20
- package/src/components/Category/CategoriesCarousel.astro +2 -2
- package/src/components/Category/CategoriesSidebar.astro +1 -1
- package/src/components/Category/CategoryDetails.astro +1 -1
- package/src/components/Category/CategorySection.astro +1 -1
- package/src/components/FeaturesList.vue +1 -1
- package/src/components/FuckRussia.vue +17 -35
- package/src/components/HandDrive.astro +1 -1
- package/src/components/Header/Header.astro +151 -155
- package/src/components/Headline.vue +1 -1
- package/src/components/Jumbatron.vue +1 -1
- package/src/components/Modal.astro +1 -1
- package/src/components/PostHeader.astro +1 -1
- package/src/components/PrCode.vue +111 -126
- package/src/components/Product/ProductCodes.vue +103 -96
- package/src/components/Product/ProductColors.vue +42 -0
- package/src/components/Product/ProductDetailName.vue +22 -0
- package/src/components/Product/ProductDetails.vue +99 -0
- package/src/components/Product/ProductDoc.vue +25 -0
- package/src/components/Product/ProductEngineType.vue +1 -1
- package/src/components/Product/ProductModel.vue +24 -0
- package/src/components/Product/ProductModels.vue +31 -0
- package/src/components/Product/ProductName.vue +15 -0
- package/src/components/Product/ProductPositions.vue +34 -0
- package/src/components/ProductDetailName.vue +2 -2
- package/src/components/ProductDetailsList.vue +1 -1
- package/src/components/layout/Header.astro +1 -1
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
const props = defineProps({
|
|
3
|
+
modelIds: {
|
|
4
|
+
type: Array,
|
|
5
|
+
default: null,
|
|
6
|
+
required: true,
|
|
7
|
+
},
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<div inline-flex flex-wrap max-w-max>
|
|
14
|
+
<span v-for="(modelId, index) in modelIds"
|
|
15
|
+
:key="index"
|
|
16
|
+
class="product-model block"
|
|
17
|
+
>
|
|
18
|
+
<ProductModel :id="modelId" />
|
|
19
|
+
</span>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<style>
|
|
24
|
+
.product-model:not(:last-child) {
|
|
25
|
+
@apply mr-1;
|
|
26
|
+
|
|
27
|
+
&:after {
|
|
28
|
+
content: ','
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
|
|
3
|
+
import type { Position } from 'types/index'
|
|
4
|
+
import type { PropType } from 'vue';
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
positions: {
|
|
7
|
+
type: Object as PropType<Position[]>,
|
|
8
|
+
default: null,
|
|
9
|
+
required: true,
|
|
10
|
+
},
|
|
11
|
+
locale: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: null,
|
|
14
|
+
required: false,
|
|
15
|
+
}
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<span v-for="(position) in positions" :key="position.sort" class="product-position">
|
|
22
|
+
{{ position.name }}
|
|
23
|
+
</span>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<style >
|
|
27
|
+
.product-position:not(:last-child) {
|
|
28
|
+
margin-right: 0.25rem;
|
|
29
|
+
|
|
30
|
+
&:after {
|
|
31
|
+
content: ','
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
</style>
|
|
@@ -29,7 +29,7 @@ const props = defineProps({
|
|
|
29
29
|
</template>
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
<style
|
|
32
|
+
<style>
|
|
33
33
|
.detail-name {
|
|
34
34
|
@apply overflow-hidden relative;
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@ const props = defineProps({
|
|
|
37
37
|
@apply block bg-white relative z-10 pr-1.5 w-full;
|
|
38
38
|
|
|
39
39
|
&:before {
|
|
40
|
-
// order: 2;
|
|
40
|
+
/* // order: 2; */
|
|
41
41
|
@apply text-gray-300 absolute select-none border-b border-gray-200 w-full -z-1 absolute content-empty left-0;
|
|
42
42
|
height: 1em;
|
|
43
43
|
white-space: nowrap;
|
package/tsconfig.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"moduleResolution": "node",
|
|
19
19
|
"jsx": "preserve",
|
|
20
20
|
"allowJs": true,
|
|
21
|
-
"types": ["vitest,
|
|
21
|
+
"types": ["vite/client", "vitest", "@vue/runtime-dom", "@astrojs/ts", "@astrojs/ts-plugin", "unplugin-vue-macros/macros-global", "unplugin-icons/types/astro"],
|
|
22
22
|
"paths": {
|
|
23
23
|
"@components/*": ["components/*"],
|
|
24
24
|
"@utils/*": ["utils/*"],
|