spoko-design-system 0.2.89 → 0.2.91
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.
|
|
3
|
+
"version": "0.2.91",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "./index.ts",
|
|
6
6
|
"module": "./index.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"./styles/*": "./src/styles/*",
|
|
14
14
|
"./icons": "./icon.config.ts",
|
|
15
|
-
"./uno-config": "./
|
|
15
|
+
"./uno-config": "./uno-config/index.ts"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"dev": "astro dev",
|
package/uno-config/index.ts
CHANGED
|
@@ -4,7 +4,9 @@ import { ASPECT_RATIO } from './constants'
|
|
|
4
4
|
|
|
5
5
|
export const componentShortcuts = [
|
|
6
6
|
// Product related
|
|
7
|
-
['product-row',
|
|
7
|
+
['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 grid 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'],
|
|
8
|
+
|
|
9
|
+
|
|
8
10
|
['product-row__photo', `${ASPECT_RATIO} 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-neutral-lightest md:(col-span-1 row-span-1) box-content`],
|
|
9
11
|
['product-row__description', 'text-xs text-slate-darkest dark:text-neutral-light leading-tight mt-2 font-textlight line-clamp-3 whitespace-normal md:(text-sm mt-0 font-textregular whitespace-pre-wrap)'],
|
|
10
12
|
['product-row__main', 'w-full sm:w-auto col-span-2 leading-none relative sm:pl-1 md:(pl-0 row-start-1 col-start-2 col-span-1)'],
|
|
@@ -70,7 +72,7 @@ export const componentShortcuts = [
|
|
|
70
72
|
['slide-img', 'cursor-zoom-in my-auto z-50 h-full max-w-screen-2xl object-center object-contain pointer-events-none'],
|
|
71
73
|
['slide-pic', 'w-full flex justify-end absolute top-0 bottom-0'],
|
|
72
74
|
['slide-thumb', `block bg-gray-100 ${ASPECT_RATIO} w-30 h-22.5 cursor-grab active:cursor-grabbing`],
|
|
73
|
-
['slide-thumb__img', 'pointer-events-none pb-px h-22.5 w-30 m-auto object-cover bg-white dark:bg-
|
|
75
|
+
['slide-thumb__img', 'pointer-events-none pb-px h-22.5 w-30 m-auto object-cover bg-white dark:bg-accent-deepBlue'],
|
|
74
76
|
['product-carousel', 'flex-wrap content-between w-64 min-w-64 flex ml-1 first:ml-4'],
|
|
75
77
|
['pdp-slide', `h-full bg-gray-100 ${ASPECT_RATIO} relative overflow-hidden border border-transparent`],
|
|
76
78
|
['product-link', 'relative flex w-full bg-white after:(absolute bg-lightBlue-500 w-[calc(100%-1rem)] left-0 h-px top-[calc(100%-1px)] bottom-1 content-empty scale-x-0 transition-transform-300 origin-top-right) hover:after:(origin-top-left scale-x-100)'],
|
|
@@ -54,6 +54,6 @@ export const layoutShortcuts = [
|
|
|
54
54
|
['adsbygoogle', 'w-full text-center'],
|
|
55
55
|
|
|
56
56
|
['underline-on-hover', 'relative flex w-full bg-white pb-1 after:absolute after:bg-lightBlue-55000 after:w-[calc(100%-1rem)] after:left-0 after:h-px after:top-[calc(100%-1px)] after:bottom-1 after:content-empty after:scale-x-0 after:transition-transform-300 after:origin-top-right hover:after:origin-top-left hover:after:scale-x-100'],
|
|
57
|
-
['cat-link', 'cursor-pointer text-
|
|
57
|
+
['cat-link', 'cursor-pointer text-accent-deepBlue dark:text-white hover:(text-lightBlue-400 underline) uppercase py-2 md:py-0'],
|
|
58
58
|
|
|
59
59
|
];
|