spoko-design-system 0.2.28 → 0.2.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "0.2.28",
3
+ "version": "0.2.30",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "astro dev",
@@ -27,10 +27,10 @@
27
27
  "spoko design system"
28
28
  ],
29
29
  "dependencies": {
30
- "@algolia/client-search": "^4.22.1",
31
- "@astrojs/mdx": "^2.2.1",
30
+ "@algolia/client-search": "^4.23.1",
31
+ "@astrojs/mdx": "^2.2.2",
32
32
  "@astrojs/node": "^8.2.5",
33
- "@astrojs/sitemap": "^3.1.1",
33
+ "@astrojs/sitemap": "^3.1.2",
34
34
  "@astrojs/vue": "^4.0.9",
35
35
  "@docsearch/css": "^3.6.0",
36
36
  "@iconify-json/ant-design": "^1.1.15",
@@ -54,16 +54,16 @@
54
54
  "@iconify/json": "^2.2.196",
55
55
  "@iconify/vue": "^4.1.1",
56
56
  "@types/node": "^20.11.30",
57
- "@unocss/astro": "^0.58.6",
58
- "@unocss/preset-attributify": "^0.58.6",
59
- "@unocss/preset-typography": "^0.58.6",
60
- "@unocss/preset-uno": "^0.58.6",
61
- "@unocss/preset-web-fonts": "^0.58.6",
62
- "@unocss/preset-wind": "^0.58.6",
63
- "@unocss/reset": "^0.58.6",
57
+ "@unocss/astro": "^0.58.7",
58
+ "@unocss/preset-attributify": "^0.58.7",
59
+ "@unocss/preset-typography": "^0.58.7",
60
+ "@unocss/preset-uno": "^0.58.7",
61
+ "@unocss/preset-web-fonts": "^0.58.7",
62
+ "@unocss/preset-wind": "^0.58.7",
63
+ "@unocss/reset": "^0.58.7",
64
64
  "@vite-pwa/astro": "^0.3.1",
65
65
  "@vueuse/core": "^10.9.0",
66
- "astro-compress": "^2.2.17",
66
+ "astro-compress": "^2.2.19",
67
67
  "astro-i18next": "1.0.0-beta.21",
68
68
  "astro-icon": "^1.1.0",
69
69
  "astro-meta-tags": "^0.2.2",
@@ -76,13 +76,13 @@
76
76
  "i18next-vue": "^4.0.0",
77
77
  "sass": "^1.72.0",
78
78
  "swiper": "^11.0.7",
79
- "unocss": "^0.58.6",
79
+ "unocss": "^0.58.7",
80
80
  "vite": "^5.2.6",
81
81
  "vue": "^3.4.21"
82
82
  },
83
83
  "devDependencies": {
84
- "@unocss/transformer-variant-group": "^0.58.6",
85
- "astro": "^4.5.9",
84
+ "@unocss/transformer-variant-group": "^0.58.7",
85
+ "astro": "^4.5.10",
86
86
  "unocss": "^0.58.3"
87
87
  },
88
88
  "packageManager": "pnpm@8.15.5",
@@ -15,8 +15,7 @@ const toggleVisibility = () => {
15
15
  </script>
16
16
 
17
17
  <template>
18
- <div v-if="isShow" data-pagefind-ignore
19
- class="slimbanner bg-lightBlue-400/70 drop-shadow-md z-2 px-4 py-3 flex items-center justify-center text-xs sm:(text-base px-8) leading-none text-blue-700 relative print-hidden">
18
+ <div v-if="isShow" data-pagefind-ignore class="slimbanner">
20
19
  <span
21
20
  class="inline-block text-4xl w-6 h-3.5 min-w-[1.25rem] mr-3 bg-gradient-to-b stops-[#0057b7_50%,50%,#ffd700_100%]" />
22
21
  <span class="leading-none "><span
@@ -10,20 +10,26 @@ SlimBanner - solidarity with Ukraine.
10
10
 
11
11
  <div class="component-preview">
12
12
  <SlimBanner
13
- class="w-full"
13
+ class="w-full drop-shadow"
14
14
  client:load
15
15
  showCloseButton
16
16
  transition:name="slim-banner"
17
17
  transition:persist
18
+
18
19
  />
19
20
  </div>
20
21
 
21
22
  ```js
22
23
  <SlimBanner
23
- class="w-full"
24
+ class="w-full drop-shadow"
24
25
  client:load
25
26
  showCloseButton
26
27
  transition:name="slim-banner"
27
28
  transition:persist
28
29
  />
29
30
  ```
31
+
32
+ ## uno.config.ts / shortcuts
33
+ ```js
34
+ ['slimbanner','px-4 sm:px-8 flex items-center justify-center text-xs sm:text-base leading-none relative bg-gray-100 z-2 px-4 py-3 sm:(text-base px-8) text-blue-700 print-hidden'],
35
+ ```
package/uno.config.ts CHANGED
@@ -91,7 +91,7 @@ export default defineConfig({
91
91
  ['slide-thumb__img','pointer-events-none pb-px h-full m-auto object-cover bg-white dark:bg-blue-901'],
92
92
  ['cat-card','p-4 text-base md:text-sm'],
93
93
  ['flag-ua', 'inline-block text-4xl w-6 h-3.5 min-w-[1.25rem] mr-3 bg-gradient-to-b stops-[#0057b7_50%,50%,#ffd700_100%]'],
94
- ['slimbanner','px-4 sm:px-8 py-3 flex items-center justify-center text-xs sm:text-base leading-none text-white relative'],
94
+ ['slimbanner','px-4 sm:px-8 flex items-center justify-center text-xs sm:text-base leading-none relative bg-gray-100 z-2 px-4 py-3 sm:(text-base px-8) text-blue-700 print-hidden'],
95
95
  ['similar-products','flex items-center space-y-4 gap-8 flex-wrap px-4 md:grid grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5'],
96
96
  ['products-grid','flex w-full flex-nowrap items-center pr-4 md:grid grid-rows-1 overflow-hidden grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5 max-h-[6rem]'],
97
97
  ['cat-link','whitespace-nowrap cursor-pointer text-blue-901 dark:text-white hover:text-lightBlue-400 font-light uppercase py-2 md:py-0'],