spoko-design-system 0.7.5 → 0.7.7
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/.astro/data-store.json +1 -1
- package/.astro/types.d.ts +1 -0
- package/package.json +17 -17
- package/src/components/ProductDetailsList.vue +2 -2
- package/uno-config/index.ts +24 -7
package/.astro/data-store.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[["Map",1,2],"meta::meta",["Map",3,4,5,6],"astro-version","5.
|
|
1
|
+
[["Map",1,2],"meta::meta",["Map",3,4,5,6],"astro-version","5.6.1","astro-config-digest","{\"root\":{},\"srcDir\":{},\"publicDir\":{},\"outDir\":{},\"cacheDir\":{},\"site\":\"https://sds.spoko.space/\",\"compressHTML\":true,\"base\":\"/\",\"trailingSlash\":\"ignore\",\"output\":\"static\",\"scopedStyleStrategy\":\"attribute\",\"build\":{\"format\":\"directory\",\"client\":{},\"server\":{},\"assets\":\"_astro\",\"serverEntry\":\"entry.mjs\",\"redirects\":true,\"inlineStylesheets\":\"auto\",\"concurrency\":1},\"server\":{\"open\":false,\"host\":false,\"port\":1234,\"streaming\":true,\"allowedHosts\":[]},\"redirects\":{},\"image\":{\"endpoint\":{\"route\":\"/_image\"},\"service\":{\"entrypoint\":\"astro/assets/services/sharp\",\"config\":{}},\"domains\":[\"placehold.co\",\"api.polo.blue\",\"polo.blue\",\"media.istockphoto.com\",\"freepik.com\",\"img.freepik.com\",\"polo6r.pl\"],\"remotePatterns\":[]},\"devToolbar\":{\"enabled\":true},\"markdown\":{\"syntaxHighlight\":{\"type\":\"shiki\",\"excludeLangs\":[\"math\"]},\"shikiConfig\":{\"langs\":[],\"langAlias\":{},\"theme\":\"github-dark\",\"themes\":{},\"wrap\":false,\"transformers\":[]},\"remarkPlugins\":[],\"rehypePlugins\":[],\"remarkRehype\":{},\"gfm\":true,\"smartypants\":true},\"security\":{\"checkOrigin\":true},\"env\":{\"schema\":{},\"validateSecrets\":false},\"experimental\":{\"clientPrerender\":false,\"contentIntellisense\":false,\"responsiveImages\":false,\"svg\":false,\"serializeConfig\":false,\"headingIdCompat\":false,\"preserveScriptOrder\":false},\"legacy\":{\"collections\":false}}"]
|
package/.astro/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spoko-design-system",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "./index.ts",
|
|
6
6
|
"module": "./index.ts",
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"@iconify-json/eos-icons": "^1.2.2",
|
|
58
58
|
"@iconify-json/et": "^1.2.1",
|
|
59
59
|
"@iconify-json/flowbite": "^1.2.5",
|
|
60
|
-
"@iconify-json/fluent": "^1.2.
|
|
60
|
+
"@iconify-json/fluent": "^1.2.19",
|
|
61
61
|
"@iconify-json/fluent-emoji": "1.2.3",
|
|
62
62
|
"@iconify-json/ic": "^1.2.2",
|
|
63
63
|
"@iconify-json/icon-park-outline": "^1.2.2",
|
|
64
64
|
"@iconify-json/la": "^1.2.1",
|
|
65
|
-
"@iconify-json/material-symbols-light": "^1.2.
|
|
65
|
+
"@iconify-json/material-symbols-light": "^1.2.19",
|
|
66
66
|
"@iconify-json/mdi": "^1.2.3",
|
|
67
67
|
"@iconify-json/noto-v1": "^1.2.2",
|
|
68
68
|
"@iconify-json/octicon": "^1.2.5",
|
|
@@ -70,18 +70,18 @@
|
|
|
70
70
|
"@iconify-json/simple-icons": "^1.2.31",
|
|
71
71
|
"@iconify-json/system-uicons": "^1.2.2",
|
|
72
72
|
"@iconify-json/uil": "^1.2.3",
|
|
73
|
-
"@iconify/json": "^2.2.
|
|
73
|
+
"@iconify/json": "^2.2.326",
|
|
74
74
|
"@iconify/vue": "^4.3.0",
|
|
75
75
|
"@playform/compress": "^0.1.9",
|
|
76
76
|
"@playform/inline": "^0.1.2",
|
|
77
|
-
"@unocss/astro": "66.1.0-beta.
|
|
78
|
-
"@unocss/preset-attributify": "66.1.0-beta.
|
|
79
|
-
"@unocss/preset-typography": "66.1.0-beta.
|
|
80
|
-
"@unocss/preset-uno": "66.1.0-beta.
|
|
81
|
-
"@unocss/preset-web-fonts": "66.1.0-beta.
|
|
82
|
-
"@unocss/preset-wind": "66.1.0-beta.
|
|
83
|
-
"@unocss/reset": "66.1.0-beta.
|
|
84
|
-
"@vite-pwa/astro": "^1.0.
|
|
77
|
+
"@unocss/astro": "66.1.0-beta.11",
|
|
78
|
+
"@unocss/preset-attributify": "66.1.0-beta.11",
|
|
79
|
+
"@unocss/preset-typography": "66.1.0-beta.11",
|
|
80
|
+
"@unocss/preset-uno": "66.1.0-beta.11",
|
|
81
|
+
"@unocss/preset-web-fonts": "66.1.0-beta.11",
|
|
82
|
+
"@unocss/preset-wind": "66.1.0-beta.11",
|
|
83
|
+
"@unocss/reset": "66.1.0-beta.11",
|
|
84
|
+
"@vite-pwa/astro": "^1.0.1",
|
|
85
85
|
"@vueuse/core": "^13.1.0",
|
|
86
86
|
"astro-i18next": "1.0.0-beta.21",
|
|
87
87
|
"astro-icon": "^1.1.5",
|
|
@@ -89,25 +89,25 @@
|
|
|
89
89
|
"astro-navbar": "^2.3.9",
|
|
90
90
|
"astro-pagefind": "^1.8.3",
|
|
91
91
|
"astro-remote": "^0.3.4",
|
|
92
|
-
"dotenv": "^16.
|
|
92
|
+
"dotenv": "^16.5.0",
|
|
93
93
|
"i18next": "^24.2.3",
|
|
94
94
|
"i18next-browser-languagedetector": "^8.0.4",
|
|
95
95
|
"i18next-fs-backend": "^2.6.0",
|
|
96
96
|
"i18next-http-backend": "^3.0.2",
|
|
97
97
|
"i18next-vue": "^5.2.0",
|
|
98
98
|
"swiper": "^11.2.6",
|
|
99
|
-
"unocss": "66.1.0-beta.
|
|
99
|
+
"unocss": "66.1.0-beta.11",
|
|
100
100
|
"vue": "^3.5.13"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
103
|
"@types/gtag.js": "^0.0.20",
|
|
104
|
-
"@types/node": "^22.14.
|
|
105
|
-
"@unocss/transformer-variant-group": "66.1.0-beta.
|
|
104
|
+
"@types/node": "^22.14.1",
|
|
105
|
+
"@unocss/transformer-variant-group": "66.1.0-beta.11",
|
|
106
106
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
107
107
|
"@vue/compiler-sfc": "^3.5.13",
|
|
108
108
|
"astro": "^5.6.1",
|
|
109
109
|
"unocss": "^0.65.0",
|
|
110
|
-
"vite": "^6.2.
|
|
110
|
+
"vite": "^6.2.6"
|
|
111
111
|
},
|
|
112
112
|
"packageManager": "pnpm@9.15.3",
|
|
113
113
|
"pnpm": {
|
|
@@ -108,7 +108,7 @@ const groupedItems = computed(() => {
|
|
|
108
108
|
<td v-if="'links' in row" class="link-cell">
|
|
109
109
|
<ul class="list-none p-0 m-0">
|
|
110
110
|
<li v-for="(link, linkIndex) in row.links" :key="linkIndex" class="mb-2 last:mb-0 flex items-center">
|
|
111
|
-
<span :class="[getLinkIconClass(row.id), 'leading-none inline-block mr-2 w-4 h-4 text-gray-400']" />
|
|
111
|
+
<span :class="[getLinkIconClass(row.id), 'leading-none inline-block mr-2 w-4 min-w-4 h-4 text-gray-400']" />
|
|
112
112
|
<a :href="link.value" target="_blank" rel="noopener noreferrer" class="link-primary">
|
|
113
113
|
{{ link.name }}
|
|
114
114
|
</a>
|
|
@@ -153,6 +153,6 @@ const groupedItems = computed(() => {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.link-primary {
|
|
156
|
-
@apply text-
|
|
156
|
+
@apply leading-none text-brand-primary hover:text-accent-light hover:underline;
|
|
157
157
|
}
|
|
158
158
|
</style>
|
package/uno-config/index.ts
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
// uno-config/index.ts
|
|
2
2
|
import type { UserConfig, UserShortcuts } from 'unocss'
|
|
3
3
|
import { defineConfig } from 'unocss';
|
|
4
|
+
|
|
5
|
+
// REQUIRED IMPORTS: These imports are used in the createSdsConfig function
|
|
6
|
+
// Removing or commenting out any of these will break the UnoCSS configuration
|
|
4
7
|
import {
|
|
5
|
-
transformerDirectives,
|
|
6
|
-
transformerVariantGroup,
|
|
7
|
-
presetAttributify,
|
|
8
|
-
presetIcons,
|
|
9
|
-
presetTypography,
|
|
10
|
-
presetUno,
|
|
11
|
-
presetWebFonts,
|
|
8
|
+
transformerDirectives, // Used in transformers array
|
|
9
|
+
transformerVariantGroup, // Used in transformers array
|
|
10
|
+
presetAttributify, // Used in presets array
|
|
11
|
+
presetIcons, // Used in presets array with specific configuration
|
|
12
12
|
} from 'unocss';
|
|
13
13
|
|
|
14
|
+
// These presets must be imported explicitly to be used in the configuration
|
|
15
|
+
import presetUno from '@unocss/preset-uno'; // Primary UnoCSS preset
|
|
16
|
+
import presetTypography from '@unocss/preset-typography'; // Typography preset
|
|
17
|
+
import presetWebFonts from '@unocss/preset-web-fonts'; // Web fonts preset
|
|
18
|
+
|
|
14
19
|
import { shortcuts } from './theme/shortcuts';
|
|
15
20
|
import { theme } from './theme';
|
|
16
21
|
|
|
@@ -39,8 +44,19 @@ interface CustomConfig extends Partial<UserConfig> {
|
|
|
39
44
|
theme?: Partial<typeof theme>;
|
|
40
45
|
}
|
|
41
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Creates a UnoCSS configuration with Spoko Design System defaults
|
|
49
|
+
*
|
|
50
|
+
* IMPORTANT: This function requires all the imported UnoCSS presets and transformers.
|
|
51
|
+
* Do not remove any imports at the top of this file as they are necessary for
|
|
52
|
+
* proper functioning of the UnoCSS configuration.
|
|
53
|
+
*
|
|
54
|
+
* @param customConfig - Optional custom configuration to merge with defaults
|
|
55
|
+
* @returns Complete UnoCSS configuration
|
|
56
|
+
*/
|
|
42
57
|
export function createSdsConfig(customConfig: CustomConfig = {}) {
|
|
43
58
|
return defineConfig({
|
|
59
|
+
// Transform directives and variant groups
|
|
44
60
|
transformers: [
|
|
45
61
|
transformerDirectives(),
|
|
46
62
|
transformerVariantGroup(),
|
|
@@ -207,6 +223,7 @@ export function createSdsConfig(customConfig: CustomConfig = {}) {
|
|
|
207
223
|
},
|
|
208
224
|
},
|
|
209
225
|
],
|
|
226
|
+
// IMPORTANT: All of these presets are required for proper functioning
|
|
210
227
|
presets: [
|
|
211
228
|
presetUno(),
|
|
212
229
|
presetAttributify(),
|