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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "1.5.2",
3
+ "version": "1.6.0",
4
4
  "private": false,
5
5
  "main": "./index.ts",
6
6
  "module": "./index.ts",
@@ -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 font-bold">+</span>
73
- <span class="inline-flex items-center">
74
- <span class="opacity-75">[</span>
75
- <PrCode
76
- :prcode="{
77
- code: code.trim(),
78
- group: prcode.group,
79
- description: null,
80
- variant_category: getVariantCategory(code.trim(), prcode.variant_category)
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" with format `[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 `[CODE]+[CODE]` with each code colored independently
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
@@ -21,6 +21,7 @@ export const colors = {
21
21
  // Secondary colors - accent palette
22
22
  accent: {
23
23
  light: '#0099da',
24
+ medium: '#0082d6', // Medium accent blue
24
25
  default: '#0087c1', // Default accent
25
26
  dark: '#006ea6',
26
27
  darker: '#00437a',