spoko-design-system 0.1.7 → 0.1.9
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 +1 -1
- package/src/components/FeaturesList.vue +2 -2
- package/src/components/Quote.vue +23 -0
- package/src/config.ts +1 -0
- package/src/pages/components/quote.mdx +33 -0
- package/src/pages/core/typography.astro +2 -1
- package/src/styles/base/_base.scss +0 -6
- package/uno.config.ts +1 -0
package/package.json
CHANGED
|
@@ -17,8 +17,8 @@ const props = defineProps({
|
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
19
|
<template>
|
|
20
|
-
<h2 class="
|
|
21
|
-
<ul class="mb-
|
|
20
|
+
<h2 class="mb-2 colon-after text-xl font-textbold block" v-if="props.caption">{{ props.caption }}</h2>
|
|
21
|
+
<ul class="mb-6">
|
|
22
22
|
<li v-for="item in props.items" class="leading-5">
|
|
23
23
|
{{ item }}
|
|
24
24
|
</li>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
as: {
|
|
6
|
+
type: String as PropType<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'div' | 'span'>,
|
|
7
|
+
default: 'div',
|
|
8
|
+
required: true,
|
|
9
|
+
},
|
|
10
|
+
text: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: '',
|
|
13
|
+
required: true,
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<component :is="props.as"
|
|
20
|
+
class="px-8 sm:px-8 mx-4 sm:mx-6 lg:max-w-4xl drop-shadow-primary text-2xl md:text-4xl lg:text-4.5xl relative font-light after:left-0 after:content-empty after:rounded-3xl after:top-0 after:absolute after:h-full after:border-solid after:border-[var(--primary)] after:border-l-3 after:-z-10">
|
|
21
|
+
{{ props.text }}
|
|
22
|
+
</component>
|
|
23
|
+
</template>
|
package/src/config.ts
CHANGED
|
@@ -43,6 +43,7 @@ export const SIDEBAR = [
|
|
|
43
43
|
{ text: "Product Number", link: "/components/product-number/" },
|
|
44
44
|
{ text: "Product Tile", link: "/components/product-tile/" },
|
|
45
45
|
{ text: "Table", link: "/components/table/" },
|
|
46
|
+
{ text: "Quote", link: "/components/quote/" },
|
|
46
47
|
|
|
47
48
|
{ text: "Extras", header: true },
|
|
48
49
|
{ text: "Flags", link: "/components/flags/" },
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Quote"
|
|
3
|
+
layout: "../../layouts/MainLayout.astro"
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import Quote from '../../components/Quote.vue'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# Quote
|
|
11
|
+
|
|
12
|
+
Simple Quote component with left border in primary color.
|
|
13
|
+
|
|
14
|
+
<div class="component-preview">
|
|
15
|
+
<Quote text="Est adipisicing officia eiusmod consequat aliqua qui amet sunt magna in." />
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<Quote text="Est adipisicing officia eiusmod consequat aliqua qui amet sunt magna in." />
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
<div class="component-preview">
|
|
27
|
+
<Quote class="font-headlight text-center" text="Est adipisicing officia eiusmod consequat aliqua qui amet sunt magna in." />
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
```html
|
|
32
|
+
<Quote class="font-headlight text-center" text="Est adipisicing officia eiusmod consequat aliqua qui amet sunt magna in." />
|
|
33
|
+
```
|
package/uno.config.ts
CHANGED
|
@@ -28,6 +28,7 @@ export default defineConfig({
|
|
|
28
28
|
transformerVariantGroup(),
|
|
29
29
|
],
|
|
30
30
|
shortcuts: [
|
|
31
|
+
['colon-after', 'after:content-[":"]'],
|
|
31
32
|
['headline','font-headlight font-bold '],
|
|
32
33
|
['badge', 'px-1.5 py-px text-white text-xs mb-1 max-w-fit whitespace-nowrap'],
|
|
33
34
|
['img--overlay','after:(content-empty bg-black bg-opacity-[.03] absolute w-full h-full top-0)'],
|