spoko-design-system 0.6.5 → 0.6.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.
@@ -1 +1 @@
1
- [["Map",1,2],"meta::meta",["Map",3,4,5,6],"astro-version","5.3.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},\"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\":\"shiki\",\"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,\"serializeConfig\":false},\"legacy\":{\"collections\":false}}"]
1
+ [["Map",1,2],"meta::meta",["Map",3,4,5,6],"astro-version","5.5.5","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,\"serializeConfig\":false,\"headingIdCompat\":false,\"preserveScriptOrder\":false},\"legacy\":{\"collections\":false}}"]
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "_variables": {
3
- "lastUpdateCheck": 1739874307323
3
+ "lastUpdateCheck": 1743420319526
4
4
  }
5
5
  }
package/icon.config.ts CHANGED
@@ -30,7 +30,8 @@ export const iconCollections = [
30
30
  'ph',
31
31
  'simple-icons',
32
32
  'system-uicons',
33
- 'uil'
33
+ 'uil',
34
+ 'lucide',
34
35
  ] as const;
35
36
 
36
37
  export type IconCollectionName = typeof iconCollections[number];
@@ -198,6 +199,15 @@ export const iconConfig: IconConfig = {
198
199
  "tag-alt"
199
200
  ],
200
201
 
202
+ lucide: [
203
+ "info",
204
+ "car",
205
+ "car-front",
206
+ "book-text",
207
+ "qr-code",
208
+ "scan-qr-code"
209
+ ],
210
+
201
211
  "simple-icons": [
202
212
  "ebay",
203
213
  "allegro",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "0.6.5",
3
+ "version": "0.6.7",
4
4
  "private": false,
5
5
  "main": "./index.ts",
6
6
  "module": "./index.ts",
@@ -40,12 +40,12 @@
40
40
  "spoko design system"
41
41
  ],
42
42
  "dependencies": {
43
- "@algolia/client-search": "^5.21.0",
44
- "@astrojs/mdx": "^4.2.1",
43
+ "@algolia/client-search": "^5.23.0",
44
+ "@astrojs/mdx": "^4.2.2",
45
45
  "@astrojs/node": "^9.1.3",
46
46
  "@astrojs/sitemap": "^3.3.0",
47
47
  "@astrojs/ts-plugin": "^1.10.4",
48
- "@astrojs/vue": "^5.0.7",
48
+ "@astrojs/vue": "^5.0.8",
49
49
  "@docsearch/css": "^3.9.0",
50
50
  "@iconify-json/ant-design": "^1.2.5",
51
51
  "@iconify-json/bi": "^1.2.2",
@@ -56,39 +56,39 @@
56
56
  "@iconify-json/el": "^1.2.1",
57
57
  "@iconify-json/eos-icons": "^1.2.2",
58
58
  "@iconify-json/et": "^1.2.1",
59
- "@iconify-json/flowbite": "^1.2.4",
60
- "@iconify-json/fluent": "^1.2.16",
59
+ "@iconify-json/flowbite": "^1.2.5",
60
+ "@iconify-json/fluent": "^1.2.17",
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.16",
65
+ "@iconify-json/material-symbols-light": "^1.2.17",
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",
69
69
  "@iconify-json/ph": "^1.2.2",
70
- "@iconify-json/simple-icons": "^1.2.29",
70
+ "@iconify-json/simple-icons": "^1.2.30",
71
71
  "@iconify-json/system-uicons": "^1.2.2",
72
72
  "@iconify-json/uil": "^1.2.3",
73
- "@iconify/json": "^2.2.318",
73
+ "@iconify/json": "^2.2.322",
74
74
  "@iconify/vue": "^4.3.0",
75
- "@playform/compress": "^0.1.7",
76
- "@playform/inline": "^0.1.1",
77
- "@unocss/astro": "66.1.0-beta.6",
78
- "@unocss/preset-attributify": "66.1.0-beta.6",
79
- "@unocss/preset-typography": "66.1.0-beta.6",
80
- "@unocss/preset-uno": "66.1.0-beta.6",
81
- "@unocss/preset-web-fonts": "66.1.0-beta.6",
82
- "@unocss/preset-wind": "66.1.0-beta.6",
83
- "@unocss/reset": "66.1.0-beta.6",
84
- "@vite-pwa/astro": "^0.5.0",
75
+ "@playform/compress": "^0.1.8",
76
+ "@playform/inline": "^0.1.2",
77
+ "@unocss/astro": "66.1.0-beta.8",
78
+ "@unocss/preset-attributify": "66.1.0-beta.8",
79
+ "@unocss/preset-typography": "66.1.0-beta.8",
80
+ "@unocss/preset-uno": "66.1.0-beta.8",
81
+ "@unocss/preset-web-fonts": "66.1.0-beta.8",
82
+ "@unocss/preset-wind": "66.1.0-beta.8",
83
+ "@unocss/reset": "66.1.0-beta.8",
84
+ "@vite-pwa/astro": "^1.0.0",
85
85
  "@vueuse/core": "^13.0.0",
86
86
  "astro-i18next": "1.0.0-beta.21",
87
87
  "astro-icon": "^1.1.5",
88
88
  "astro-meta-tags": "^0.3.1",
89
89
  "astro-navbar": "^2.3.9",
90
90
  "astro-pagefind": "^1.8.3",
91
- "astro-remote": "^0.3.3",
91
+ "astro-remote": "^0.3.4",
92
92
  "dotenv": "^16.4.7",
93
93
  "i18next": "^24.2.3",
94
94
  "i18next-browser-languagedetector": "^8.0.4",
@@ -96,18 +96,18 @@
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.6",
99
+ "unocss": "66.1.0-beta.8",
100
100
  "vue": "^3.5.13"
101
101
  },
102
102
  "devDependencies": {
103
103
  "@types/gtag.js": "^0.0.20",
104
- "@types/node": "^22.13.10",
105
- "@unocss/transformer-variant-group": "66.1.0-beta.6",
104
+ "@types/node": "^22.13.14",
105
+ "@unocss/transformer-variant-group": "66.1.0-beta.8",
106
106
  "@vitejs/plugin-vue": "^5.2.3",
107
107
  "@vue/compiler-sfc": "^3.5.13",
108
- "astro": "^5.5.3",
108
+ "astro": "^5.5.5",
109
109
  "unocss": "^0.65.0",
110
- "vite": "^6.2.2"
110
+ "vite": "^6.2.4"
111
111
  },
112
112
  "packageManager": "pnpm@9.15.3",
113
113
  "pnpm": {
@@ -16,6 +16,7 @@ interface Props {
16
16
  author?: Author;
17
17
  categories?: Category[];
18
18
  backgroundClass?: string;
19
+ lang?: string;
19
20
  }
20
21
 
21
22
  const {
@@ -28,7 +29,8 @@ const {
28
29
  date,
29
30
  author,
30
31
  categories = [],
31
- backgroundClass = 'bg-blue-darker'
32
+ backgroundClass = 'bg-blue-darker',
33
+ lang = 'en'
32
34
  } = Astro.props;
33
35
 
34
36
  // Helper (function to check if a slot has content)
@@ -56,6 +58,7 @@ const commonProps = {
56
58
  hasMetadata,
57
59
  hasCategories,
58
60
  backgroundClass,
61
+ lang,
59
62
  };
60
63
  ---
61
64
 
@@ -12,6 +12,7 @@ interface Props {
12
12
  categories?: Category[];
13
13
  hasMetadata: boolean;
14
14
  hasCategories: boolean;
15
+ lang?: string;
15
16
  }
16
17
 
17
18
  const {
@@ -22,6 +23,7 @@ const {
22
23
  categories = [],
23
24
  hasMetadata,
24
25
  hasCategories,
26
+ lang = 'en'
25
27
  } = Astro.props;
26
28
  ---
27
29
 
@@ -34,7 +36,7 @@ const {
34
36
 
35
37
  {hasCategories && (
36
38
  <div class="order-1">
37
- <PostCategories categories={categories} />
39
+ <PostCategories categories={categories} lang={lang} />
38
40
  </div>
39
41
  )}
40
42
 
@@ -12,6 +12,7 @@ interface Props {
12
12
  categories?: Category[];
13
13
  hasMetadata: boolean;
14
14
  hasCategories: boolean;
15
+ lang: string;
15
16
  }
16
17
 
17
18
  const {
@@ -22,6 +23,7 @@ const {
22
23
  categories = [],
23
24
  hasMetadata,
24
25
  hasCategories,
26
+ lang='en'
25
27
  } = Astro.props;
26
28
 
27
29
  // Helper function to remove HTML tags
@@ -42,7 +44,7 @@ const cleanTitle = stripHtml(title);
42
44
 
43
45
  {hasCategories && (
44
46
  <div class="jumbotron-categories">
45
- <PostCategories categories={categories} />
47
+ <PostCategories categories={categories} lang={lang} />
46
48
  </div>
47
49
  )}
48
50
 
@@ -11,9 +11,13 @@ interface Category {
11
11
 
12
12
  interface Props {
13
13
  categories: Category[];
14
+ lang?: string;
14
15
  }
15
16
 
16
- const { categories } = Astro.props;
17
+ const { categories, lang = 'en' } = Astro.props;
18
+
19
+ // Determine the category label based on language
20
+ const categoryLabel = lang === 'pl' ? 'Kategoria' : 'Category';
17
21
  ---
18
22
 
19
23
  <div class="text-brand-secondary uppercase text-base z-3 relative w-full">
@@ -25,8 +29,8 @@ const { categories } = Astro.props;
25
29
  <span class="w-px h-2.5 bg-gray-300 mx-2.5 inline-block relative" />
26
30
  )}
27
31
  <a
28
- class="term-link text-sm sm:text-base hover:text-light-blue-400
29
- "
32
+ class="term-link text-sm sm:text-base hover:text-light-blue-400"
33
+ data-pagefind-filter={`${categoryLabel}:${category.name}`}
30
34
  href={category.link}
31
35
  >
32
36
  {category.name}
@@ -16,7 +16,7 @@ interface Props {
16
16
  }[];
17
17
  }
18
18
 
19
- const { image, title, categories, date, author } = Astro.props;
19
+ const { image, title, categories, date, author, lang } = Astro.props;
20
20
  import PostCategories from "./Post/PostCategories.astro";
21
21
  import Date from "./Date.astro";
22
22
  ---
@@ -33,7 +33,7 @@ import Date from "./Date.astro";
33
33
  >
34
34
  {title}
35
35
  </h1>
36
- <PostCategories categories={categories} />
36
+ <PostCategories categories={categories} lang={lang} />
37
37
  <div class="order-3 flex items-center text-gray-1 00">
38
38
  {
39
39
  author && (
@@ -18,6 +18,7 @@ WordPress PostHeader - post top component for WordPress Single Post template dat
18
18
  <div class="relative w-full">
19
19
  <PostHeader
20
20
  author={author}
21
+ lang="en"
21
22
  categories={categories}
22
23
  title="Lorem Ipsum"
23
24
  date={date}
@@ -30,6 +31,7 @@ WordPress PostHeader - post top component for WordPress Single Post template dat
30
31
  <div class="relative">
31
32
  <PostHeader
32
33
  author={ { firstName: 'Szymon', name: 'CNK' } }
34
+ lang="en"
33
35
  categories={ [{"name":"Tools & garage accessories","uri":"/category/garage/tools-garage-accessories/"}, , {"name":"Lorem Ipsum","uri":"#"}] }
34
36
  title="Lorem Ipsum"
35
37
  date="2023-07-13T01:35:03"
@@ -45,6 +47,7 @@ WordPress PostHeader - post top component for WordPress Single Post template dat
45
47
  <div class="relative w-full">
46
48
  <PostHeader
47
49
  title="Lorem Ipsum"
50
+ lang="en"
48
51
  image="https://img.freepik.com/free-photo/painting-mountain-lake-with-mountain-background_188544-9126.jpg?w=1380&t=st=1706297408~exp=1706298008~hmac=34fe549db6a665d24269d38a8ecdd7eb3f82cfea6346c8a4039ee3c03b62aad8"
49
52
  />
50
53
  </div>
@@ -54,6 +57,7 @@ WordPress PostHeader - post top component for WordPress Single Post template dat
54
57
  <div class="relative">
55
58
  <PostHeader
56
59
  title="Lorem Ipsum"
60
+ lang="en"
57
61
  image="https://img.freepik.com/free-photo/painting-mountain-lake-with-mountain-background_188544-9126.jpg?w=1380&t=st=1706297408~exp=1706298008~hmac=34fe549db6a665d24269d38a8ecdd7eb3f82cfea6346c8a4039ee3c03b62aad8"
58
62
  />
59
63
  </div>
@@ -116,6 +116,9 @@ const navItems = [
116
116
  <li class="leading-5 me-6 mb-4 lg:mb-0">
117
117
  <a href="https://sale.polo.blue/" class="example-link" target="_blank">sale.polo.blue</a>
118
118
  </li>
119
+ <li class="leading-5 me-6 mb-4 lg:mb-0">
120
+ <a href="https://polo6r.pl" class="example-link" target="_blank">polo6r.pl</a>
121
+ </li>
119
122
  </ul>
120
123
  </div>
121
124