spoko-design-system 0.8.5 → 0.8.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/.astro/content.d.ts +43 -0
- package/.astro/data-store.json +1 -1
- package/.astro/settings.json +1 -1
- package/.astro/types.d.ts +1 -0
- package/icon.config.ts +1 -0
- package/index.ts +3 -1
- package/package.json +2 -1
- package/public/arrow-bottom.svg +7 -0
- package/src/components/Headline.vue +42 -2
- package/src/components/Layout/CallToAction.astro +53 -0
- package/src/pages/components/headline.mdx +69 -84
- package/uno-config/theme/shortcuts/components.ts +1 -1
- package/uno-config/theme/shortcuts/constants.ts +13 -3
- package/uno-config/theme/shortcuts/layout.ts +13 -3
- /package/src/components/{layout → Layout}/Container.astro +0 -0
- /package/src/components/{layout → Layout}/Header.astro +0 -0
package/.astro/content.d.ts
CHANGED
|
@@ -56,6 +56,10 @@ declare module 'astro:content' {
|
|
|
56
56
|
collection: C;
|
|
57
57
|
slug: E;
|
|
58
58
|
};
|
|
59
|
+
export type ReferenceLiveEntry<C extends keyof LiveContentConfig['collections']> = {
|
|
60
|
+
collection: C;
|
|
61
|
+
id: string;
|
|
62
|
+
};
|
|
59
63
|
|
|
60
64
|
/** @deprecated Use `getEntry` instead. */
|
|
61
65
|
export function getEntryBySlug<
|
|
@@ -84,6 +88,13 @@ declare module 'astro:content' {
|
|
|
84
88
|
filter?: (entry: CollectionEntry<C>) => unknown,
|
|
85
89
|
): Promise<CollectionEntry<C>[]>;
|
|
86
90
|
|
|
91
|
+
export function getLiveCollection<C extends keyof LiveContentConfig['collections']>(
|
|
92
|
+
collection: C,
|
|
93
|
+
filter?: LiveLoaderCollectionFilterType<C>,
|
|
94
|
+
): Promise<
|
|
95
|
+
import('astro').LiveDataCollectionResult<LiveLoaderDataType<C>, LiveLoaderErrorType<C>>
|
|
96
|
+
>;
|
|
97
|
+
|
|
87
98
|
export function getEntry<
|
|
88
99
|
C extends keyof ContentEntryMap,
|
|
89
100
|
E extends ValidContentEntrySlug<C> | (string & {}),
|
|
@@ -120,6 +131,10 @@ declare module 'astro:content' {
|
|
|
120
131
|
? Promise<DataEntryMap[C][E]> | undefined
|
|
121
132
|
: Promise<DataEntryMap[C][E]>
|
|
122
133
|
: Promise<CollectionEntry<C> | undefined>;
|
|
134
|
+
export function getLiveEntry<C extends keyof LiveContentConfig['collections']>(
|
|
135
|
+
collection: C,
|
|
136
|
+
filter: string | LiveLoaderEntryFilterType<C>,
|
|
137
|
+
): Promise<import('astro').LiveDataEntryResult<LiveLoaderDataType<C>, LiveLoaderErrorType<C>>>;
|
|
123
138
|
|
|
124
139
|
/** Resolve an array of entry references from the same collection */
|
|
125
140
|
export function getEntries<C extends keyof ContentEntryMap>(
|
|
@@ -163,5 +178,33 @@ declare module 'astro:content' {
|
|
|
163
178
|
|
|
164
179
|
type AnyEntryMap = ContentEntryMap & DataEntryMap;
|
|
165
180
|
|
|
181
|
+
type ExtractLoaderTypes<T> = T extends import('astro/loaders').LiveLoader<
|
|
182
|
+
infer TData,
|
|
183
|
+
infer TEntryFilter,
|
|
184
|
+
infer TCollectionFilter,
|
|
185
|
+
infer TError
|
|
186
|
+
>
|
|
187
|
+
? { data: TData; entryFilter: TEntryFilter; collectionFilter: TCollectionFilter; error: TError }
|
|
188
|
+
: { data: never; entryFilter: never; collectionFilter: never; error: never };
|
|
189
|
+
type ExtractDataType<T> = ExtractLoaderTypes<T>['data'];
|
|
190
|
+
type ExtractEntryFilterType<T> = ExtractLoaderTypes<T>['entryFilter'];
|
|
191
|
+
type ExtractCollectionFilterType<T> = ExtractLoaderTypes<T>['collectionFilter'];
|
|
192
|
+
type ExtractErrorType<T> = ExtractLoaderTypes<T>['error'];
|
|
193
|
+
|
|
194
|
+
type LiveLoaderDataType<C extends keyof LiveContentConfig['collections']> =
|
|
195
|
+
LiveContentConfig['collections'][C]['schema'] extends undefined
|
|
196
|
+
? ExtractDataType<LiveContentConfig['collections'][C]['loader']>
|
|
197
|
+
: import('astro/zod').infer<
|
|
198
|
+
Exclude<LiveContentConfig['collections'][C]['schema'], undefined>
|
|
199
|
+
>;
|
|
200
|
+
type LiveLoaderEntryFilterType<C extends keyof LiveContentConfig['collections']> =
|
|
201
|
+
ExtractEntryFilterType<LiveContentConfig['collections'][C]['loader']>;
|
|
202
|
+
type LiveLoaderCollectionFilterType<C extends keyof LiveContentConfig['collections']> =
|
|
203
|
+
ExtractCollectionFilterType<LiveContentConfig['collections'][C]['loader']>;
|
|
204
|
+
type LiveLoaderErrorType<C extends keyof LiveContentConfig['collections']> = ExtractErrorType<
|
|
205
|
+
LiveContentConfig['collections'][C]['loader']
|
|
206
|
+
>;
|
|
207
|
+
|
|
166
208
|
export type ContentConfig = typeof import("./../src/content.config.mjs");
|
|
209
|
+
export type LiveContentConfig = never;
|
|
167
210
|
}
|
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.11.0","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\":[],\"responsiveStyles\":false},\"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,\"headingIdCompat\":false,\"preserveScriptOrder\":false,\"liveContentCollections\":false,\"csp\":false},\"legacy\":{\"collections\":false}}"]
|
package/.astro/settings.json
CHANGED
package/.astro/types.d.ts
CHANGED
package/icon.config.ts
CHANGED
package/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { default as ProductDetailsList } from './src/components/ProductDetailsLi
|
|
|
16
16
|
export { default as FeaturesList } from './src/components/FeaturesList.vue';
|
|
17
17
|
export { default as ProductCodes } from './src/components/ProductCodes.vue';
|
|
18
18
|
export { default as Headline } from './src/components/Headline.vue';
|
|
19
|
+
export { default as Quote } from './src/components/Quote.vue';
|
|
19
20
|
|
|
20
21
|
export { default as ProductEngineType } from './src/components/Product/ProductEngineType.vue';
|
|
21
22
|
export { default as ProductButton } from './src/components/Product/ProductButton.vue';
|
|
@@ -43,7 +44,8 @@ export { default as Copyright } from './src/components/Copyright.astro';
|
|
|
43
44
|
export { default as HandDrive } from './src/components/HandDrive.astro';
|
|
44
45
|
export { default as Faq } from './src/components/Faq.astro';
|
|
45
46
|
export { default as FaqItem } from './src/components/FaqItem.astro';
|
|
46
|
-
export { default as ButtonCopy } from './src/components/ButtonCopy.astro';
|
|
47
|
+
export { default as ButtonCopy } from './src/components/ButtonCopy.astro';
|
|
48
|
+
export { default as CallToAction } from './src/components/Layout/CallToAction.vue';
|
|
47
49
|
|
|
48
50
|
export { default as ProductImage } from './src/components/Product/ProductImage.astro';
|
|
49
51
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spoko-design-system",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "./index.ts",
|
|
6
6
|
"module": "./index.ts",
|
|
@@ -62,6 +62,7 @@
|
|
|
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/lucide": "^1.2.54",
|
|
65
66
|
"@iconify-json/material-symbols-light": "^1.2.28",
|
|
66
67
|
"@iconify-json/mdi": "^1.2.3",
|
|
67
68
|
"@iconify-json/noto-v1": "^1.2.2",
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<svg width="100%" height="100%" viewBox="0 0 18 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
|
4
|
+
<g transform="matrix(-0.0247114,-3.02628e-18,2.90782e-18,-0.0237442,23.7506,13.5573)">
|
|
5
|
+
<path d="M254.6,477.479C259.711,473.272 561.717,170.223 561.717,170.223C561.717,170.223 576.205,153.951 597.839,153.983C621.181,154.019 636.425,170.096 636.425,170.096C636.425,170.096 939.167,475.94 940.854,477.463C967.2,501.255 956.012,536.939 942.827,551.356C928.606,566.906 896.33,575.498 868.319,549.101C865.351,546.304 604.846,285.516 604.846,285.516C604.846,285.516 601.137,280.823 597.481,280.661C594.25,280.517 589.683,285.449 589.683,285.449C589.683,285.449 332.794,543.858 326.478,549.801C312.614,562.847 276.463,576.895 252.279,552.019C218.24,517.006 250.72,480.673 254.6,477.479Z" style="fill:rgb(48,53,59);"/>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
@@ -12,17 +12,57 @@ const props = defineProps({
|
|
|
12
12
|
required: false,
|
|
13
13
|
default: null
|
|
14
14
|
},
|
|
15
|
+
fontFamily: {
|
|
16
|
+
type: String as PropType<'head' | 'text' | 'novamono' | 'mono'>,
|
|
17
|
+
required: false,
|
|
18
|
+
default: 'head'
|
|
19
|
+
},
|
|
20
|
+
fontWeight: {
|
|
21
|
+
type: String as PropType<'light' | 'regular' | 'bold' | 'light-bold' | 'light-thin'>,
|
|
22
|
+
required: false,
|
|
23
|
+
default: 'regular'
|
|
24
|
+
},
|
|
15
25
|
underline: {
|
|
16
26
|
type: Boolean,
|
|
17
27
|
required: false,
|
|
18
28
|
default: false
|
|
19
29
|
}
|
|
20
30
|
})
|
|
31
|
+
|
|
32
|
+
// Generate the typography class based on font family and weight
|
|
33
|
+
const getTypographyClass = (): string => {
|
|
34
|
+
const family = props.fontFamily
|
|
35
|
+
const weight = props.fontWeight
|
|
36
|
+
|
|
37
|
+
// Handle special cases for mono fonts
|
|
38
|
+
if (family === 'novamono' || family === 'mono') {
|
|
39
|
+
return `font-${family}`
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// For head family, generate specific classes
|
|
43
|
+
if (family === 'head') {
|
|
44
|
+
if (weight === 'light') return 'headline-light'
|
|
45
|
+
if (weight === 'bold') return 'headline-bold'
|
|
46
|
+
if (weight === 'light-bold') return 'headline-light-bold'
|
|
47
|
+
if (weight === 'light-thin') return 'headline-light-thin'
|
|
48
|
+
return 'headline' // for regular weight
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// For text family, generate appropriate class
|
|
52
|
+
if (family === 'text') {
|
|
53
|
+
return `font-text${weight}`
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Default fallback
|
|
57
|
+
return 'headline'
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const typographyClass = getTypographyClass()
|
|
21
61
|
</script>
|
|
22
62
|
|
|
23
63
|
<template>
|
|
24
64
|
<component :is="props.as" class="mb-2.5 flex sm:block md:flex items-center leading-none"
|
|
25
|
-
:class="
|
|
65
|
+
:class="`${typographyClass} ${props.textSize ? `text-${props.textSize}` : 'text-xl'} ${props.underline ? 'headline--underline' : ''}`">
|
|
26
66
|
<slot />
|
|
27
67
|
</component>
|
|
28
68
|
</template>
|
|
@@ -45,4 +85,4 @@ const props = defineProps({
|
|
|
45
85
|
background-color: #64748b
|
|
46
86
|
}
|
|
47
87
|
}
|
|
48
|
-
</style>
|
|
88
|
+
</style>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
import Button from "./../Button.vue"
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
class?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const { class: additionalClasses, title: propTitle, description: propDescription } = Astro.props;
|
|
11
|
+
|
|
12
|
+
// Sprawdzamy, czy slot 'description' ma jakąkolwiek zawartość
|
|
13
|
+
const hasDescriptionSlotContent = Astro.slots.has('description');
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<section
|
|
17
|
+
class:list={[
|
|
18
|
+
"full-width border-blue-medium bg-blue-darker/5 border-t-4 md:(border-t-0 px-6 bg-white) my-8",
|
|
19
|
+
additionalClasses,
|
|
20
|
+
]}
|
|
21
|
+
>
|
|
22
|
+
<div class="flex flex-col items-center gap-4 md:(flex-row border-l-4 border-blue-medium bg-blue-darker/5 px-6) py-6">
|
|
23
|
+
<div class="flex-shrink-0 hidden md:block">
|
|
24
|
+
<slot name="icon">
|
|
25
|
+
<span i-ph:sparkle-thin class="mr-1 text-8 md:text-10 text-brand-secondary"></span>
|
|
26
|
+
</slot>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="flex-1 text-center md:text-left">
|
|
29
|
+
<h3 class="text-lg font-semibold text-blue-darker">
|
|
30
|
+
<slot name="title">
|
|
31
|
+
{propTitle || 'Domyślny tytuł akcji'}
|
|
32
|
+
</slot>
|
|
33
|
+
</h3>
|
|
34
|
+
{(propDescription || hasDescriptionSlotContent) && (
|
|
35
|
+
<p class="text-blue-darker mt-1">
|
|
36
|
+
<slot name="description">
|
|
37
|
+
{propDescription || 'Domyślny opis, który zachęca do działania.'}
|
|
38
|
+
</slot>
|
|
39
|
+
</p>
|
|
40
|
+
)}
|
|
41
|
+
</div>
|
|
42
|
+
<slot name="action">
|
|
43
|
+
<Button
|
|
44
|
+
type="button"
|
|
45
|
+
class:list="w-fit place-self-center gap-2"
|
|
46
|
+
tertiary
|
|
47
|
+
rounded
|
|
48
|
+
title="Domyślny przycisk akcji">
|
|
49
|
+
Kliknij mnie!
|
|
50
|
+
</Button>
|
|
51
|
+
</slot>
|
|
52
|
+
</div>
|
|
53
|
+
</section>
|
|
@@ -29,7 +29,7 @@ supported parameters
|
|
|
29
29
|
```js
|
|
30
30
|
as: {
|
|
31
31
|
type: String as PropType<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'div' | 'span'>,
|
|
32
|
-
default:
|
|
32
|
+
default: 'span',
|
|
33
33
|
required: true,
|
|
34
34
|
},
|
|
35
35
|
textSize: {
|
|
@@ -40,113 +40,98 @@ textSize: {
|
|
|
40
40
|
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
## Headline H1
|
|
44
43
|
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
## Examples
|
|
45
|
+
|
|
46
|
+
<div class="component-preview flex-wrap flex-col justify-start !items-start">
|
|
47
|
+
<ul class="list-decimal list-outside">
|
|
48
|
+
<li class="px-4 pb-4"><Headline as="h1" font-family="head" font-weight="regular">Regular Headline</Headline></li>
|
|
49
|
+
<li class="px-4 pb-4"><Headline as="h2" font-family="head" font-weight="light">Light Headline</Headline></li>
|
|
50
|
+
<li class="px-4 pb-4"><Headline as="h2" font-family="head" font-weight="light">Light Headline</Headline></li>
|
|
51
|
+
<li class="px-4 pb-4"><Headline as="h3" font-family="head" font-weight="bold">Bold Headline</Headline></li>
|
|
52
|
+
<li class="px-4 pb-4"><Headline as="h4" font-family="head" font-weight="light-bold">Light Bold Headline</Headline></li>
|
|
53
|
+
<li class="px-4 pb-4"><Headline as="h5" font-family="head" font-weight="light-thin">Light Thin Headline</Headline></li>
|
|
54
|
+
<li class="px-4 pb-4"><Headline as="p" font-family="text" font-weight="light">Light Text Content</Headline></li>
|
|
55
|
+
<li class="px-4 pb-4"><Headline as="p" font-family="text" font-weight="bold">Bold Text Content</Headline></li>
|
|
56
|
+
<li class="px-4 pb-4"><Headline as="p" font-family="text" font-weight="light-bold">Light Bold Text Content</Headline></li>
|
|
57
|
+
<li class="px-4 pb-4"><Headline as="p" font-family="text" font-weight="light-thin">Light Thin Text Content</Headline></li>
|
|
58
|
+
<li class="px-4 pb-4"><Headline as="code" font-family="novamono">Nova Mono Code Text</Headline></li>
|
|
59
|
+
<li class="px-4 pb-4"><Headline as="code" font-family="mono">Mono Code Text</Headline></li>
|
|
60
|
+
<li class="px-4 pb-4"><Headline as="h1" font-family="head" font-weight="bold" text-size="4xl">Large Bold Headline</Headline></li>
|
|
61
|
+
<li class="px-4 pb-4"><Headline as="h2" font-family="head" font-weight="light-thin" text-size="3xl" underline>Underlined Light Thin Headline</Headline></li>
|
|
62
|
+
<li class="px-4 pb-4"><Headline as="h3" font-family="head" font-weight="bold" text-size="2xl">
|
|
63
|
+
<Icon name="ph:cat-thin" class="inline-block mr-4" />
|
|
64
|
+
Headline with Icon
|
|
65
|
+
</Headline></li>
|
|
66
|
+
<li class="px-4 pb-4"><Headline as="h1">Default Headline</Headline></li>
|
|
67
|
+
<li class="px-4 pb-4"><Headline as="h1" font-family="head" font-weight="light-bold" text-size="4xl" underline>
|
|
68
|
+
<Icon name="ph:cat-thin" class="inline-block mr-4" />
|
|
69
|
+
Complete Example
|
|
70
|
+
</Headline></li>
|
|
71
|
+
</ul>
|
|
47
72
|
</div>
|
|
48
73
|
|
|
49
74
|
```js
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</Headline>
|
|
75
|
+
/* 1 */
|
|
76
|
+
<Headline as="h1" font-family="head" font-weight="regular">Regular Headline</Headline>
|
|
53
77
|
|
|
54
|
-
|
|
78
|
+
/* 2 */
|
|
79
|
+
<Headline as="h2" font-family="head" font-weight="light">Light Headline</Headline>
|
|
55
80
|
|
|
81
|
+
/* 3 */
|
|
82
|
+
<Headline as="h3" font-family="head" font-weight="bold">Bold Headline</Headline>
|
|
56
83
|
|
|
57
|
-
|
|
84
|
+
/* 4 */
|
|
85
|
+
<Headline as="h4" font-family="head" font-weight="light-bold">Light Bold Headline</Headline>
|
|
58
86
|
|
|
59
|
-
|
|
60
|
-
<Headline as="
|
|
61
|
-
</div>
|
|
87
|
+
/* 5 */
|
|
88
|
+
<Headline as="h5" font-family="head" font-weight="light-thin">Light Thin Headline</Headline>
|
|
62
89
|
|
|
63
|
-
|
|
64
|
-
<Headline as="
|
|
65
|
-
<Icon name="ph:cat-thin" class="mb-0 sm:mb-2.5 md:mb-0 md:(mr-4)" aria-hidden="true" />
|
|
66
|
-
Lorem Ipsum
|
|
67
|
-
</Headline>
|
|
90
|
+
/* 6 */
|
|
91
|
+
<Headline as="p" font-family="text" font-weight="light">Light Text Content</Headline>
|
|
68
92
|
|
|
69
|
-
|
|
93
|
+
/* 7 */
|
|
94
|
+
<Headline as="p" font-family="text" font-weight="regular">Regular Text Content</Headline>
|
|
70
95
|
|
|
71
|
-
|
|
96
|
+
/* 8 */
|
|
97
|
+
<Headline as="p" font-family="text" font-weight="bold">Bold Text Content</Headline>
|
|
72
98
|
|
|
73
|
-
|
|
74
|
-
<Headline as="
|
|
75
|
-
</div>
|
|
99
|
+
/* 9 */
|
|
100
|
+
<Headline as="p" font-family="text" font-weight="light-bold">Light Bold Text Content</Headline>
|
|
76
101
|
|
|
77
|
-
|
|
78
|
-
<Headline as="
|
|
79
|
-
<Icon name="ph:cat-thin" class="inline-block mb-0 sm:mb-2.5 md:mb-0 md:(mr-4) text-blue-wrc" aria-hidden="true" />
|
|
80
|
-
Lorem Ipsum
|
|
81
|
-
</Headline>
|
|
102
|
+
/* 10 */
|
|
103
|
+
<Headline as="p" font-family="text" font-weight="light-thin">Light Thin Text Content</Headline>
|
|
82
104
|
|
|
83
|
-
|
|
105
|
+
/* 11 */
|
|
106
|
+
<Headline as="code" font-family="novamono">Nova Mono Code Text</Headline>
|
|
84
107
|
|
|
85
|
-
|
|
86
|
-
|
|
108
|
+
/* 12 */
|
|
109
|
+
<Headline as="code" font-family="mono">Mono Code Text</Headline>
|
|
87
110
|
|
|
88
|
-
|
|
89
|
-
<Headline as="
|
|
90
|
-
</div>
|
|
111
|
+
/* 13 */
|
|
112
|
+
<Headline as="h1" font-family="head" font-weight="bold" text-size="4xl">Large Bold Headline</Headline>
|
|
91
113
|
|
|
92
|
-
|
|
93
|
-
<Headline as="
|
|
94
|
-
<Icon name="ph:cat-thin" class="inline-block text-4xl mb-0 sm:mb-2.5 md:mb-0 md:(mr-4) text-4xl text-blue-wrc" aria-hidden="true" />
|
|
95
|
-
Lorem Ipsum
|
|
96
|
-
</Headline>
|
|
97
|
-
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Headline without icon
|
|
114
|
+
/* 14 */
|
|
115
|
+
<Headline as="h2" font-family="head" font-weight="light-thin" text-size="3xl" underline>Underlined Light Thin Headline</Headline>
|
|
101
116
|
|
|
102
|
-
|
|
103
|
-
<Headline as="
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
```js
|
|
107
|
-
<Headline as="p">Lorem Ipsum</Headline>
|
|
108
|
-
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
## Headline without icon, text size 4xl
|
|
112
|
-
|
|
113
|
-
<div class="component-preview">
|
|
114
|
-
<Headline as="h1" text-size="4xl">Lorem Ipsum</Headline>
|
|
115
|
-
</div>
|
|
116
|
-
|
|
117
|
-
```js
|
|
118
|
-
<Headline as="h1" text-size="4xl">Lorem Ipsum</Headline>
|
|
119
|
-
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
## Headline without icon, text size 4xl with blue icon
|
|
124
|
-
|
|
125
|
-
<div class="component-preview">
|
|
126
|
-
<Headline as="h1" text-size="4xl"><Icon name="ph:cat-thin" class="inline-block text-4xl mb-0 sm:mb-2.5 md:mb-0 md:(mr-4) text-4xl text-blue-wrc" aria-hidden="true" />Lorem Ipsum</Headline>
|
|
127
|
-
</div>
|
|
128
|
-
|
|
129
|
-
```js
|
|
130
|
-
<Headline as="h1" text-size="4xl" icon-color="blue-wrc">
|
|
131
|
-
<Icon name="ph:cat-thin" class="inline-block text-4xl mb-0 sm:mb-2.5 md:mb-0 md:(mr-4) text-4xl text-blue-wrc" aria-hidden="true" />
|
|
132
|
-
Lorem Ipsum
|
|
117
|
+
/* 15 */
|
|
118
|
+
<Headline as="h3" font-family="head" font-weight="bold" text-size="2xl">
|
|
119
|
+
<Icon name="ph:cat-thin" class="inline-block mr-4 text-blue-wrc" />
|
|
120
|
+
Headline with Icon
|
|
133
121
|
</Headline>
|
|
134
122
|
|
|
135
|
-
|
|
136
|
-
|
|
123
|
+
/* 16 */
|
|
124
|
+
<Headline as="h1">Default Headline</Headline>
|
|
137
125
|
|
|
138
|
-
|
|
126
|
+
/* 17 */
|
|
127
|
+
<Headline as="h1" font-family="head" font-weight="light-bold" text-size="4xl" underline>
|
|
128
|
+
<Icon name="ph:cat-thin" class="inline-block mr-4 text-blue-wrc" />
|
|
129
|
+
Complete Example
|
|
130
|
+
</Headline>
|
|
139
131
|
|
|
140
|
-
<div class="component-preview">
|
|
141
|
-
<Headline as="h1" text-size="4xl" underline><Icon name="ph:cat-thin" class="inline-block text-4xl mb-0 sm:mb-2.5 md:mb-0 md:(mr-4) text-4xl text-blue-wrc" aria-hidden="true" />Lorem Ipsum</Headline>
|
|
142
|
-
</div>
|
|
143
132
|
|
|
144
|
-
```js
|
|
145
|
-
<Headline as="h1" text-size="4xl" icon-color="blue-wrc" underline>
|
|
146
|
-
<Icon name="ph:cat-thin" class="inline-block text-4xl mb-0 sm:mb-2.5 md:mb-0 md:(mr-4) text-4xl text-blue-wrc" aria-hidden="true" />
|
|
147
|
-
Lorem Ipsum
|
|
148
|
-
</Headline>
|
|
149
133
|
|
|
150
134
|
```
|
|
151
135
|
|
|
136
|
+
|
|
152
137
|
#
|
|
@@ -46,7 +46,7 @@ export const componentShortcuts = [
|
|
|
46
46
|
// Carousel
|
|
47
47
|
['carousel-tile', `${LAYOUT.flex.base} w-52 min-w-52 ml-1 lg:ml-1.5`],
|
|
48
48
|
['carousel-product-tile', `${LAYOUT.flex.wrap} sm:flex-nowrap content-between w-64 min-w-64 lg:(w-28.57% min-w-28.57%) 2xl:(w-24.09% min-w-24.09%) relative`],
|
|
49
|
-
['carousel-item', `w-full w-full group-hover:filter-invert relative ${LAYOUT.flex.col}`],
|
|
49
|
+
['carousel-item', `w-full pt-1 w-full group-hover:filter-invert relative ${LAYOUT.flex.col}`],
|
|
50
50
|
['carousel-big', 'shadow-[inset_0_10px_60px_-15px_rgba(0,0,0,0.1)] w-full h-full'],
|
|
51
51
|
|
|
52
52
|
// PDP (Product Detail Page)
|
|
@@ -105,11 +105,21 @@ export const BUTTON_STYLES = {
|
|
|
105
105
|
// Common typography styles
|
|
106
106
|
export const TYPOGRAPHY = {
|
|
107
107
|
headline: {
|
|
108
|
-
base: 'font-
|
|
109
|
-
bold: 'font-
|
|
110
|
-
light: 'font-headlight
|
|
108
|
+
base: 'font-headregular',
|
|
109
|
+
bold: 'font-headbold', // dedykowany font bold
|
|
110
|
+
light: 'font-headlight',
|
|
111
|
+
lightBold: 'font-headlight font-bold', // light font + CSS bold
|
|
112
|
+
lightThin: 'font-headlight font-300 tracking-tight', // light + thin + tracking
|
|
113
|
+
// base: 'font-headregular',
|
|
114
|
+
// bold: 'font-headlight font-bold',
|
|
115
|
+
// light: 'font-headlight font-300 tracking-tight',
|
|
111
116
|
},
|
|
112
117
|
text: {
|
|
118
|
+
light: 'font-textlight',
|
|
119
|
+
regular: 'font-textregular',
|
|
120
|
+
bold: 'font-textbold',
|
|
121
|
+
lightBold: 'font-textlight font-bold', // light font + CSS bold
|
|
122
|
+
lightThin: 'font-textlight font-300 tracking-tight', // light + th
|
|
113
123
|
xs: 'text-3',
|
|
114
124
|
sm: 'text 3.5',
|
|
115
125
|
base: 'text-4',
|
|
@@ -15,6 +15,13 @@ const imageShortcuts = Object.entries(aspectRatios).map(([ratio, aspect]) => [
|
|
|
15
15
|
])
|
|
16
16
|
|
|
17
17
|
export const layoutShortcuts = [
|
|
18
|
+
|
|
19
|
+
// Headers and Banners
|
|
20
|
+
['headline', TYPOGRAPHY.headline.bold],
|
|
21
|
+
['headline-light', TYPOGRAPHY.headline.light],
|
|
22
|
+
['slimbanner', `px-4 sm:px-8 ${LAYOUT.flex.center} text-xs sm:text-base leading-none ${LAYOUT.position.relative} bg-gray-50 z-2 px-4 py-3 sm:(text-base px-8) text-blue-darker print-hidden`],
|
|
23
|
+
|
|
24
|
+
|
|
18
25
|
// Main Layout
|
|
19
26
|
['l-main', `text-slate-dark ${LAYOUT.spacing.topPadding} ${COLORS.bgWhite}`],
|
|
20
27
|
['main', `text-slate-dark ${COLORS.textNeutralLight} ${COLORS.bgDark} ${LAYOUT.spacing.topPadding} ${LAYOUT.position.relative}`],
|
|
@@ -37,7 +44,7 @@ export const layoutShortcuts = [
|
|
|
37
44
|
['cat-menu', `fixed h-21 bottom-[-6px] w-full z-10 border-t-1 border-neutral-light ${COLORS.bgWhite} dark:bg-blue-darkest text-center sm:(static z-auto border-t-none h-28)`],
|
|
38
45
|
['cat-card', 'p-4 text-base break-inside-avoid-column'],
|
|
39
46
|
['cat-name', 'mt-2 h-[2em] text-xs leading-none group-hover:filter-invert 3xl:text-3.25'],
|
|
40
|
-
['cats-slide', `${TRANSITIONS.base} mb-0.5 min-h-tile-mobile sm:(min-h-tile h-tile mb-2 p-3) text-black ${COLORS.textNeutralLight} hover:(text-white even:bg-blue-medium odd:bg-accent-light) cursor-pointer ${LAYOUT.flex.colCenter} px-1.5 cursor-grab active:cursor-grabbing overflow-hidden`],
|
|
47
|
+
['cats-slide', `${TRANSITIONS.base} pt-1 mb-0.5 min-h-tile-mobile sm:(min-h-tile h-tile mb-2 p-3) text-black ${COLORS.textNeutralLight} hover:(text-white even:bg-blue-medium odd:bg-accent-light) cursor-pointer ${LAYOUT.flex.colCenter} px-1.5 cursor-grab active:cursor-grabbing overflow-hidden`],
|
|
41
48
|
['cats-img', `max-w-full h-8 md:h-icon ${IMAGE_STYLES.objectContain} w-full left-0 right-0 top-0 bottom-0`],
|
|
42
49
|
|
|
43
50
|
// Sidebars and Navigation
|
|
@@ -46,8 +53,11 @@ export const layoutShortcuts = [
|
|
|
46
53
|
['subsubcat', 'pl-2'],
|
|
47
54
|
|
|
48
55
|
// Headers and Banners
|
|
49
|
-
['headline', TYPOGRAPHY.headline.
|
|
50
|
-
['headline-light', TYPOGRAPHY.headline.light],
|
|
56
|
+
['headline', TYPOGRAPHY.headline.base],
|
|
57
|
+
['headline-light', TYPOGRAPHY.headline.light],
|
|
58
|
+
['headline-bold', TYPOGRAPHY.headline.bold],
|
|
59
|
+
['headline-light-bold', TYPOGRAPHY.headline.lightBold],
|
|
60
|
+
['headline-light-thin', TYPOGRAPHY.headline.lightThin],
|
|
51
61
|
['slimbanner', `px-4 sm:px-8 ${LAYOUT.flex.center} text-xs sm:text-base leading-none ${LAYOUT.position.relative} bg-gray-50 z-2 px-4 py-3 sm:(text-base px-8) text-blue-darker print-hidden`],
|
|
52
62
|
|
|
53
63
|
// Image Shortcuts
|
|
File without changes
|
|
File without changes
|