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.
Files changed (30) hide show
  1. package/index.ts +8 -0
  2. package/package.json +1 -1
  3. package/src/components/Breadcrumbs.vue +17 -20
  4. package/src/components/Category/CategoriesCarousel.astro +2 -2
  5. package/src/components/Category/CategoriesSidebar.astro +1 -1
  6. package/src/components/Category/CategoryDetails.astro +1 -1
  7. package/src/components/Category/CategorySection.astro +1 -1
  8. package/src/components/FeaturesList.vue +1 -1
  9. package/src/components/FuckRussia.vue +17 -35
  10. package/src/components/HandDrive.astro +1 -1
  11. package/src/components/Header/Header.astro +151 -155
  12. package/src/components/Headline.vue +1 -1
  13. package/src/components/Jumbatron.vue +1 -1
  14. package/src/components/Modal.astro +1 -1
  15. package/src/components/PostHeader.astro +1 -1
  16. package/src/components/PrCode.vue +111 -126
  17. package/src/components/Product/ProductCodes.vue +103 -96
  18. package/src/components/Product/ProductColors.vue +42 -0
  19. package/src/components/Product/ProductDetailName.vue +22 -0
  20. package/src/components/Product/ProductDetails.vue +99 -0
  21. package/src/components/Product/ProductDoc.vue +25 -0
  22. package/src/components/Product/ProductEngineType.vue +1 -1
  23. package/src/components/Product/ProductModel.vue +24 -0
  24. package/src/components/Product/ProductModels.vue +31 -0
  25. package/src/components/Product/ProductName.vue +15 -0
  26. package/src/components/Product/ProductPositions.vue +34 -0
  27. package/src/components/ProductDetailName.vue +2 -2
  28. package/src/components/ProductDetailsList.vue +1 -1
  29. package/src/components/layout/Header.astro +1 -1
  30. 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,15 @@
1
+ <script lang="ts" setup>
2
+ const props = defineProps({
3
+ name: {
4
+ type: String,
5
+ default: '',
6
+ required: true,
7
+ },
8
+ })
9
+ </script>
10
+
11
+ <template>
12
+ <h1 class="pdp-headline select-all">
13
+ {{ props.name }}
14
+ </h1>
15
+ </template>
@@ -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 lang="scss">
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;
@@ -35,7 +35,7 @@ const props = defineProps({
35
35
  </table>
36
36
  </template>
37
37
 
38
- <style lang="scss" scoped>
38
+ <style scoped>
39
39
  .details {
40
40
  @apply border-none shadow-none w-full md:w-auto
41
41
  box-shadow: none;
@@ -72,7 +72,7 @@ const navItemsLeft = [
72
72
  </div>
73
73
  </nav>
74
74
 
75
- <style lang="scss" is:global>
75
+ <style is:global>
76
76
  nav {
77
77
  /* display: grid; */
78
78
  place-items: center;
package/tsconfig.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "moduleResolution": "node",
19
19
  "jsx": "preserve",
20
20
  "allowJs": true,
21
- "types": ["vitest, vite/client", "@astrojs/ts","unplugin-vue-macros/macros-global", "unplugin-icons/types/astro", "src/types/astro.d.ts", "@astrojs/ts-plugin"],
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/*"],