spoko-design-system 1.5.2 → 1.6.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
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [1.6.0](https://github.com/polo-blue/sds/compare/v1.5.3...v1.6.0) (2025-10-28)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* add accent.medium color ([#0082d6](https://github.com/polo-blue/sds/issues/0082d6)) to theme palette ([0cb1f3b](https://github.com/polo-blue/sds/commit/0cb1f3b095a745a4991e5062af5ee5d5679297c7)), closes [#0099da](https://github.com/polo-blue/sds/issues/0099da) [#0087c1](https://github.com/polo-blue/sds/issues/0087c1)
|
|
6
|
+
|
|
7
|
+
## [1.5.3](https://github.com/polo-blue/sds/compare/v1.5.2...v1.5.3) (2025-10-28)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove brackets from combined PR code display ([aabb786](https://github.com/polo-blue/sds/commit/aabb78618f994dadac50605b708455ffbb5f21e5))
|
|
12
|
+
|
|
1
13
|
## [1.5.2](https://github.com/polo-blue/sds/compare/v1.5.1...v1.5.2) (2025-10-28)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -69,20 +69,16 @@ const getVariantCategory = (code: string, fallback?: string): string | undefined
|
|
|
69
69
|
/>
|
|
70
70
|
<span v-else class="inline-flex items-center gap-1">
|
|
71
71
|
<template v-for="(code, idx) in prcode.code.split('+')" :key="idx">
|
|
72
|
-
<span v-if="idx > 0" class="text-sm opacity-75
|
|
73
|
-
<
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
:prcode
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
:isPdp="isPdp"
|
|
83
|
-
/>
|
|
84
|
-
<span class="opacity-75">]</span>
|
|
85
|
-
</span>
|
|
72
|
+
<span v-if="idx > 0" class="text-sm opacity-75">+</span>
|
|
73
|
+
<PrCode
|
|
74
|
+
:prcode="{
|
|
75
|
+
code: code.trim(),
|
|
76
|
+
group: prcode.group,
|
|
77
|
+
description: null,
|
|
78
|
+
variant_category: getVariantCategory(code.trim(), prcode.variant_category)
|
|
79
|
+
}"
|
|
80
|
+
:isPdp="isPdp"
|
|
81
|
+
/>
|
|
86
82
|
</template>
|
|
87
83
|
</span>
|
|
88
84
|
</template>
|
|
@@ -198,7 +198,7 @@ When using data from the API, pass the `pr_codes` array directly:
|
|
|
198
198
|
- ✅ **Dark Mode**: Supports dark mode with appropriate color adjustments
|
|
199
199
|
- ✅ **Accessible**: Uses semantic HTML and proper ARIA attributes
|
|
200
200
|
- ✅ **Search Friendly**: Includes `data-pagefind-filter` for search indexing
|
|
201
|
-
- ✅ **Combination Support**: Handles combined PR codes like "1AT+1ZR"
|
|
201
|
+
- ✅ **Combination Support**: Handles combined PR codes like "1AT+1ZR"
|
|
202
202
|
- ✅ **Individual Colors**: Each code in a combination gets its own color based on variant category
|
|
203
203
|
- ✅ **Defensive**: Gracefully handles invalid or malformed data
|
|
204
204
|
|
|
@@ -206,7 +206,7 @@ When using data from the API, pass the `pr_codes` array directly:
|
|
|
206
206
|
|
|
207
207
|
- Hover over any PR code to see its full description
|
|
208
208
|
- Colors are based on semantic variant categories, not hardcoded per code
|
|
209
|
-
- Combined codes are displayed as `
|
|
209
|
+
- Combined codes are displayed as `CODE+CODE` with each code colored independently
|
|
210
210
|
- The component uses a static mapping for variant categories to ensure consistent coloring
|
|
211
211
|
- The tooltip design matches the ProductEngine component style
|
|
212
212
|
- All 14,000+ PR codes in the database have English descriptions
|