spoko-design-system 0.2.6 → 0.2.8
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/.github/todo.yml +3 -0
- package/.github/workflows/deploy.yml +2 -2
- package/dev-dist/sw.js +1 -1
- package/package.json +17 -15
- package/renovate.json +6 -0
- package/src/components/Jumbatron.vue +9 -16
- package/src/components/ProductNumber.astro +7 -0
- package/uno.config.ts +6 -5
package/.github/todo.yml
ADDED
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
runs-on: ubuntu-latest
|
|
20
20
|
steps:
|
|
21
21
|
- name: Checkout your repository using git
|
|
22
|
-
uses: actions/checkout@
|
|
22
|
+
uses: actions/checkout@v4
|
|
23
23
|
- name: Install, build, and upload your site
|
|
24
24
|
uses: withastro/action@v1
|
|
25
25
|
with:
|
|
@@ -37,4 +37,4 @@ jobs:
|
|
|
37
37
|
steps:
|
|
38
38
|
- name: Deploy to GitHub Pages
|
|
39
39
|
id: deployment
|
|
40
|
-
uses: actions/deploy-pages@
|
|
40
|
+
uses: actions/deploy-pages@v4
|
package/dev-dist/sw.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spoko-design-system",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "astro dev",
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@algolia/client-search": "^4.22.1",
|
|
31
31
|
"@astrojs/mdx": "^2.1.1",
|
|
32
|
-
"@astrojs/node": "^
|
|
32
|
+
"@astrojs/node": "^8.2.0",
|
|
33
33
|
"@astrojs/sitemap": "^3.0.5",
|
|
34
34
|
"@astrojs/vue": "^4.0.8",
|
|
35
35
|
"@docsearch/css": "^3.5.2",
|
|
36
36
|
"@iconify-json/ant-design": "^1.1.15",
|
|
37
37
|
"@iconify-json/bi": "^1.1.23",
|
|
38
38
|
"@iconify-json/bx": "^1.1.10",
|
|
39
|
-
"@iconify-json/carbon": "^1.1.
|
|
39
|
+
"@iconify-json/carbon": "^1.1.30",
|
|
40
40
|
"@iconify-json/circle-flags": "^1.1.46",
|
|
41
41
|
"@iconify-json/el": "^1.1.8",
|
|
42
42
|
"@iconify-json/eos-icons": "^1.1.10",
|
|
43
43
|
"@iconify-json/flowbite": "^1.1.1",
|
|
44
|
-
"@iconify-json/fluent": "^1.1.
|
|
44
|
+
"@iconify-json/fluent": "^1.1.48",
|
|
45
45
|
"@iconify-json/fluent-emoji": "1.1.18",
|
|
46
46
|
"@iconify-json/icon-park-outline": "^1.1.15",
|
|
47
47
|
"@iconify-json/la": "^1.1.8",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"@iconify-json/noto-v1": "^1.1.11",
|
|
50
50
|
"@iconify-json/octicon": "^1.1.52",
|
|
51
51
|
"@iconify-json/ph": "^1.1.11",
|
|
52
|
-
"@iconify-json/simple-icons": "^1.1.
|
|
52
|
+
"@iconify-json/simple-icons": "^1.1.91",
|
|
53
53
|
"@iconify-json/uil": "^1.1.8",
|
|
54
|
-
"@iconify/json": "^2.2.
|
|
54
|
+
"@iconify/json": "^2.2.183",
|
|
55
55
|
"@iconify/vue": "^4.1.1",
|
|
56
|
-
"@types/node": "^20.11.
|
|
56
|
+
"@types/node": "^20.11.19",
|
|
57
57
|
"@unocss/astro": "^0.58.5",
|
|
58
58
|
"@unocss/preset-attributify": "^0.58.5",
|
|
59
59
|
"@unocss/preset-typography": "^0.58.5",
|
|
@@ -63,31 +63,33 @@
|
|
|
63
63
|
"@unocss/reset": "^0.58.5",
|
|
64
64
|
"@vite-pwa/astro": "^0.2.0",
|
|
65
65
|
"@vueuse/core": "^10.7.2",
|
|
66
|
-
"astro-compress": "^2.2.
|
|
66
|
+
"astro-compress": "^2.2.10",
|
|
67
67
|
"astro-i18next": "1.0.0-beta.21",
|
|
68
68
|
"astro-icon": "^1.1.0",
|
|
69
|
-
"astro-navbar": "^2.3.
|
|
69
|
+
"astro-navbar": "^2.3.1",
|
|
70
70
|
"astro-pagefind": "^1.4.0",
|
|
71
71
|
"i18next": "^23.8.2",
|
|
72
72
|
"i18next-browser-languagedetector": "^7.2.0",
|
|
73
73
|
"i18next-fs-backend": "^2.3.1",
|
|
74
74
|
"i18next-http-backend": "^2.4.3",
|
|
75
|
-
"i18next-vue": "^
|
|
75
|
+
"i18next-vue": "^4.0.0",
|
|
76
76
|
"sass": "^1.70.0",
|
|
77
77
|
"swiper": "^11.0.6",
|
|
78
|
-
"unocss": "^0.
|
|
79
|
-
"vite": "^5.
|
|
80
|
-
"vue": "^3.4.
|
|
78
|
+
"unocss": "^0.58.5",
|
|
79
|
+
"vite": "^5.1.3",
|
|
80
|
+
"vue": "^3.4.19"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@unocss/transformer-variant-group": "^0.58.5",
|
|
84
|
-
"astro": "^4.
|
|
84
|
+
"astro": "^4.4.0",
|
|
85
85
|
"unocss": "^0.58.3"
|
|
86
86
|
},
|
|
87
|
+
"packageManager": "pnpm@8.15.2",
|
|
87
88
|
"pnpm": {
|
|
89
|
+
"default": "8.15.2",
|
|
88
90
|
"overrides": {
|
|
89
91
|
"file-type@>=17.0.0 <17.1.3": ">=17.1.3",
|
|
90
92
|
"sharp@<0.30.5": ">=0.30.5"
|
|
91
93
|
}
|
|
92
94
|
}
|
|
93
|
-
}
|
|
95
|
+
}
|
package/renovate.json
ADDED
|
@@ -16,22 +16,15 @@ const props = defineProps({
|
|
|
16
16
|
|
|
17
17
|
<template>
|
|
18
18
|
<div class="relative flex bg-vw " :class="props.small ? 'md:min-h-xs' : 'md:min-h-md'">
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<div class="mt-5 sm:(mt-8 flex justify-center)" v-if="hasSlot('cta')">
|
|
29
|
-
<slot name="cta" />
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</header>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
19
|
+
<header class="max-w-7xl mx-auto my-auto py-8 lg:w-full px-6 lg:px-8 text-center" :class="props.small ? 'sm:py-12 md:py-14 lg:py-16 xl:py-20' : 'sm:py-16 md:py-20 lg:py-28 xl:py-32'">
|
|
20
|
+
<h1 class="text-3xl tracking-tight font-headlight text-white sm:(text-4xl pt-0) md:text-5xl lg:text-6xl ">
|
|
21
|
+
<slot name="intro" />
|
|
22
|
+
</h1>
|
|
23
|
+
<slot name="subtitle" />
|
|
24
|
+
<div class="mt-5 sm:(mt-8 flex justify-center)" v-if="hasSlot('cta')">
|
|
25
|
+
<slot name="cta" />
|
|
26
|
+
</div>
|
|
27
|
+
</header>
|
|
35
28
|
</div>
|
|
36
29
|
</template>
|
|
37
30
|
<style lang="scss">
|
|
@@ -63,6 +63,13 @@ const niceName = (string: string, separator = "\u00A0") => {
|
|
|
63
63
|
.replace(/(^\s+|\s+$)/, "");
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
// remove single separator from the end of string:
|
|
67
|
+
let lastCharacter = word.split('').pop() || '';
|
|
68
|
+
|
|
69
|
+
if (!Boolean(lastCharacter.match(/[a-zA-Z0-9]/))) {
|
|
70
|
+
word = word.slice(0, -1)
|
|
71
|
+
}
|
|
72
|
+
|
|
66
73
|
return word.replace(" ", separator);
|
|
67
74
|
};
|
|
68
75
|
|
package/uno.config.ts
CHANGED
|
@@ -51,7 +51,7 @@ export default defineConfig({
|
|
|
51
51
|
['btn-secondary-outline', 'border-gray-500 border text-gray-500 font-medium inline-flex items-center justify-center shadow text-base hover:(text-white bg-gray-500)'],
|
|
52
52
|
['btn-tertiary', 'inline-flex border border-transparent items-center font-medium text-center text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300'],
|
|
53
53
|
['btn-tertiary-outline', 'inline-flex border items-center font-medium text-center text-blue-700 border-blue-700 transition-all hover:(bg-blue-700 text-white) focus:ring-4 focus:outline-none focus:ring-blue-300 '],
|
|
54
|
-
['btn-text', 'text-gray-
|
|
54
|
+
['btn-text', 'text-gray-500 border border-transparent hover:underline transition-all'],
|
|
55
55
|
['btn-tag', 'bg-blue-100 text-blue-800 font-medium mr-2 dark:bg-gray-700 dark:text-blue-400 border border-blue-400 hover:border-blue-600 justify-center'],
|
|
56
56
|
['btn-normal', 'md:px-10 md:py-2 md:text-lg px-8 py-3 whitespace-nowrap'],
|
|
57
57
|
['btn-sm', 'px-6 py-2 text-sm whitespace-nowrap '],
|
|
@@ -62,7 +62,7 @@ export default defineConfig({
|
|
|
62
62
|
['cat-menu','fixed bottom-[-4px] w-full z-10 border-t-1 border-gray-300 bg-white dark:bg-blue-900 text-center sm:(static z-auto border-t-none) sm:min-h-32'],
|
|
63
63
|
['cats-slide','transition duration-300 ease-linear mb-0.5 min-h-tile-mobile sm:(min-h-tile h-tile mb-2 p-3) text-black dark:text-white hover:(text-white even:bg-blue-600 odd:bg-lightBlue-500) cursor-pointer flex items-center flex-col justify-center transition ease-in-out duration-700 px-1.5 cursor-grab active:cursor-grabbing overflow-hidden'],
|
|
64
64
|
['cats-img','w-full h-8 md:h-icon group-hover:filter-invert dark:filter-invert relative'],
|
|
65
|
-
['subcat', '
|
|
65
|
+
['subcat', 'cursor-pointer text-light-blue-700 hover:text-lightBlue-600 font-light mb-1 py-2 md:py-0'],
|
|
66
66
|
['product-row','bg-white flex flex-wrap odd:(pr-2.5 pl-3.5 sm:px-0) even:(pl-2.5 pr-3.5 sm:px-0) w-1/2 sm:w-auto sm:grid sm:grid-cols-3 gap-x-1 gap-y-0 md:(grid-cols-product gap-x-4) justify-start content-start content-start place-content-start py-4 pb-6 sm:pb-4'],
|
|
67
67
|
['product-row__photo','aspect-ratio-[4/3] mb-2 sm:mb-0 after:(content-empty bg-black bg-opacity-[.03] absolute w-full h-full top-0) w-100 col-span-1 row-span-3 max-w-full text-left overflow-hidden relative bg-gray-100 md:(col-span-1 row-span-1) box-content'], //filter drop-shadow-sm
|
|
68
68
|
['product-row__description', 'text-xs text-gray-900 leading-tight mt-2 font-textlight line-clamp-3 whitespace-normal md:(text-sm mt-0 font-textregular whitespace-pre-wrap)'],
|
|
@@ -76,7 +76,7 @@ export default defineConfig({
|
|
|
76
76
|
['btn', 'px-4 py-1 rounded inline-block bg-teal-600 text-white cursor-pointer hover:bg-teal-700 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'],
|
|
77
77
|
['icon-btn', 'text-[0.9em] inline-block cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:(opacity-100 text-teal-600)'],
|
|
78
78
|
['sidebar-title','font-headregular text-light-blue-500 text-xl md:(text-2xl px-4) mb-2 px-14 sm:px-3 flex items-center justify-center sm:justify-start py-3'],
|
|
79
|
-
['product-info','text-gray-
|
|
79
|
+
['product-info','text-gray-500 text-xxs font-textlight leading-none mt-0.5 md:(mt-0 text-xs)'],
|
|
80
80
|
['product-button', 'text-blue-500 cursor-pointer text-base leading-none inline-flex items-center justify-center w-8 h-8 min-w-8 transition-colors duration-150 bg-white dark:bg-blue-901 focus:(text-blue-500) hover:(text-blue-500)'],
|
|
81
81
|
['pdp-headline','text-2xl sm:text-4xl 2xl:text-5xl font-headlight mb-6 font-bold sm:font-normal pr-7 lg:pr-0 pt-0 leading-none'],
|
|
82
82
|
['pdp-detail-row','text-sm mt-1 md:mt-4 mb-4 grid grid-cols-2 sm:(grid-cols-details-desktop grid-flow-col auto-cols-max) gap-4'],
|
|
@@ -94,7 +94,7 @@ export default defineConfig({
|
|
|
94
94
|
['cat-link','whitespace-nowrap cursor-pointer text-blue-901 dark:text-white hover:text-lightBlue-400 font-light uppercase py-2 md:py-0'],
|
|
95
95
|
['plp-name','flex items-center leading-none font-headregular cursor-pointer sm:pr-6 md:pr-12'],
|
|
96
96
|
['plp-replacements','col-span-3 md:col-span-1 md:col-start-2 text-xs mt-3 md:mt-4'],
|
|
97
|
-
['product-code','text-blue-
|
|
97
|
+
['product-code','text-blue-600 mr-1 leading-none tracking-wide select-all'],
|
|
98
98
|
['code-formatted','font-novamono leading-none mt-0 relative text-xs'],
|
|
99
99
|
['btn-copy', 'leading-none opacity-10 hover:opacity-80 ml-auto w-6 h-6 -right-7 sm:(h-4 w-4 -right-5) absolute'],
|
|
100
100
|
['btn-copy-text','shadow-sm py-0.5 px-1 bg-gray-100 -ml-1 -mt-4 text-xxs whitespace-nowrap'],
|
|
@@ -108,7 +108,7 @@ export default defineConfig({
|
|
|
108
108
|
['search-container', 'mb-2 sm:mb-0'],
|
|
109
109
|
['l-main', 'text-gray-700 dark:text-gray-200 pt-24 sm:pt-14 bg-white dark:bg-blue-901'],
|
|
110
110
|
['category-section', 'pb-4 w-full bg-white mb-4 overflow-x-hidden flex flex-wrap max-w-full'],
|
|
111
|
-
['number-secondary', 'block absolute inset-0 text-gray-
|
|
111
|
+
['number-secondary', 'block absolute inset-0 text-gray-500 select-all bg-white dark:bg-blue-901'],
|
|
112
112
|
['product-list', 'flex flex-wrap sm:block bg-white dark:bg-blue-901 sm:divide-y-1 sm:divide-solid divide-gray-200 dark:divide-white dark:divide-opacity-10 md:px-2 md:pl-4 mb-4 w-full bg-gray-100 dark:bg-gray-700 mb-auto'],
|
|
113
113
|
['btn-prcode', 'relative inline-block text-center leading-none px-1 py-0.5 mr-1 cursor-pointer font-mono border-solid border-1 border-gray-200 select-none text-gray-500 last:mr-0 not-last:mr-2 not-last:after:content-[+] after:(text-blue-700 absolute w-4 pl-0.5)']
|
|
114
114
|
],
|
|
@@ -116,6 +116,7 @@ export default defineConfig({
|
|
|
116
116
|
colors: {
|
|
117
117
|
blue: {
|
|
118
118
|
500: '#3b82f6',
|
|
119
|
+
550: '#0040c5',
|
|
119
120
|
600: '#02307d',
|
|
120
121
|
700: '#001e50',
|
|
121
122
|
800: '#00437a',
|