spoko-design-system 1.23.2 → 1.24.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/CHANGELOG.md +6 -0
- package/index.ts +1 -0
- package/package.json +1 -1
- package/src/components/Category/CategoryTile.astro +18 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [1.24.0](https://github.com/polo-blue/sds/compare/v1.23.2...v1.24.0) (2025-12-16)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* export useFormatProductNumber utility ([4e585e4](https://github.com/polo-blue/sds/commit/4e585e4bf500049f1ab8e325ae7a0daa6dd2ade6))
|
|
6
|
+
|
|
1
7
|
## [1.23.2](https://github.com/polo-blue/sds/compare/v1.23.1...v1.23.2) (2025-12-16)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/index.ts
CHANGED
|
@@ -61,6 +61,7 @@ export { default as getPriceFormatted } from './src/utils/product/getPriceFormat
|
|
|
61
61
|
export { default as getProductChecklist } from './src/utils/product/getProductChecklist';
|
|
62
62
|
export { getEngineTooltipContent } from './src/utils/product/getEngineTooltipContent';
|
|
63
63
|
export type { Engine, EngineTranslations } from './src/utils/product/getEngineTooltipContent';
|
|
64
|
+
export { default as useFormatProductNumber } from './src/utils/product/useFormatProductNumber';
|
|
64
65
|
|
|
65
66
|
// Utils: SEO
|
|
66
67
|
export { default as getShorterDescription } from './src/utils/seo/getShorterDescription';
|
package/package.json
CHANGED
|
@@ -18,19 +18,21 @@ const { CategoryObject } = Astro.props;
|
|
|
18
18
|
const { height = 70, width = 70, path } = CategoryObject;
|
|
19
19
|
---
|
|
20
20
|
|
|
21
|
-
<
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</
|
|
21
|
+
<span itemprop="name">
|
|
22
|
+
<a itemprop="url" href={path} class="carousel-item" data-astro-prefetch>
|
|
23
|
+
<Image
|
|
24
|
+
src={CategoryObject.photo}
|
|
25
|
+
alt={CategoryObject.alt}
|
|
26
|
+
height={height}
|
|
27
|
+
width={width}
|
|
28
|
+
format="avif"
|
|
29
|
+
loading="eager"
|
|
30
|
+
onerror="this.style.display='none';"
|
|
31
|
+
class="cats-img"
|
|
32
|
+
/>
|
|
33
|
+
<div class="swiper-lazy-preloader"></div>
|
|
34
|
+
<div class="cat-name">
|
|
35
|
+
{CategoryObject.name}
|
|
36
|
+
</div>
|
|
37
|
+
</a>
|
|
38
|
+
</span>
|