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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "astro dev",
@@ -17,8 +17,8 @@ const props = defineProps({
17
17
  </script>
18
18
 
19
19
  <template>
20
- <h2 class="font-headregular mb-6 font-medium text-lg colon-after" v-if="props.caption">{{ props.caption }}</h2>
21
- <ul class="mb-4">
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
+ ```
@@ -32,7 +32,8 @@
32
32
  {FONTS.types.map(({name, value}) => (
33
33
  <div class="w-full">
34
34
  <div class={`${value} text-3xl`} >Lorem Ipsum</div>
35
- <div class="">{name}</div>
35
+ <div class="">{name}</div>
36
+ <code>{value}</code>
36
37
  </div>
37
38
  ))}
38
39
  </div>
@@ -101,12 +101,6 @@ html {
101
101
  opacity: 0;
102
102
  }
103
103
 
104
- .colon-after {
105
- &:after {
106
- content: ':'
107
- }
108
- }
109
-
110
104
  .items {
111
105
  &>.item {
112
106
  &:not(:last-child) {
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)'],