spoko-design-system 0.2.5 → 0.2.7

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.
@@ -0,0 +1,3 @@
1
+ - name: todo-issue
2
+ uses: DerJuulsn/todo-issue@v1.1.4
3
+
@@ -19,7 +19,7 @@ jobs:
19
19
  runs-on: ubuntu-latest
20
20
  steps:
21
21
  - name: Checkout your repository using git
22
- uses: actions/checkout@v3
22
+ uses: actions/checkout@v4
23
23
  - name: Install, build, and upload your site
24
24
  uses: withastro/action@v1
25
25
  with:
@@ -37,4 +37,4 @@ jobs:
37
37
  steps:
38
38
  - name: Deploy to GitHub Pages
39
39
  id: deployment
40
- uses: actions/deploy-pages@v1
40
+ uses: actions/deploy-pages@v4
package/dev-dist/sw.js CHANGED
@@ -79,7 +79,7 @@ define(['./workbox-c676b6d3'], (function (workbox) { 'use strict';
79
79
  */
80
80
  workbox.precacheAndRoute([{
81
81
  "url": "/",
82
- "revision": "0.4ahhr8qv03"
82
+ "revision": "0.l72um16i6s"
83
83
  }], {
84
84
  "directoryIndex": "index.html"
85
85
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "astro dev",
@@ -29,19 +29,19 @@
29
29
  "dependencies": {
30
30
  "@algolia/client-search": "^4.22.1",
31
31
  "@astrojs/mdx": "^2.1.1",
32
- "@astrojs/node": "^7.0.4",
32
+ "@astrojs/node": "^8.2.0",
33
33
  "@astrojs/sitemap": "^3.0.5",
34
34
  "@astrojs/vue": "^4.0.8",
35
35
  "@docsearch/css": "^3.5.2",
36
36
  "@iconify-json/ant-design": "^1.1.15",
37
37
  "@iconify-json/bi": "^1.1.23",
38
38
  "@iconify-json/bx": "^1.1.10",
39
- "@iconify-json/carbon": "^1.1.28",
39
+ "@iconify-json/carbon": "^1.1.30",
40
40
  "@iconify-json/circle-flags": "^1.1.46",
41
41
  "@iconify-json/el": "^1.1.8",
42
42
  "@iconify-json/eos-icons": "^1.1.10",
43
43
  "@iconify-json/flowbite": "^1.1.1",
44
- "@iconify-json/fluent": "^1.1.47",
44
+ "@iconify-json/fluent": "^1.1.48",
45
45
  "@iconify-json/fluent-emoji": "1.1.18",
46
46
  "@iconify-json/icon-park-outline": "^1.1.15",
47
47
  "@iconify-json/la": "^1.1.8",
@@ -49,11 +49,11 @@
49
49
  "@iconify-json/noto-v1": "^1.1.11",
50
50
  "@iconify-json/octicon": "^1.1.52",
51
51
  "@iconify-json/ph": "^1.1.11",
52
- "@iconify-json/simple-icons": "^1.1.90",
52
+ "@iconify-json/simple-icons": "^1.1.91",
53
53
  "@iconify-json/uil": "^1.1.8",
54
- "@iconify/json": "^2.2.180",
54
+ "@iconify/json": "^2.2.182",
55
55
  "@iconify/vue": "^4.1.1",
56
- "@types/node": "^20.11.16",
56
+ "@types/node": "^20.11.17",
57
57
  "@unocss/astro": "^0.58.5",
58
58
  "@unocss/preset-attributify": "^0.58.5",
59
59
  "@unocss/preset-typography": "^0.58.5",
@@ -63,31 +63,33 @@
63
63
  "@unocss/reset": "^0.58.5",
64
64
  "@vite-pwa/astro": "^0.2.0",
65
65
  "@vueuse/core": "^10.7.2",
66
- "astro-compress": "^2.2.9",
66
+ "astro-compress": "^2.2.10",
67
67
  "astro-i18next": "1.0.0-beta.21",
68
68
  "astro-icon": "^1.1.0",
69
- "astro-navbar": "^2.3.0",
69
+ "astro-navbar": "^2.3.1",
70
70
  "astro-pagefind": "^1.4.0",
71
71
  "i18next": "^23.8.2",
72
72
  "i18next-browser-languagedetector": "^7.2.0",
73
73
  "i18next-fs-backend": "^2.3.1",
74
74
  "i18next-http-backend": "^2.4.3",
75
- "i18next-vue": "^3.0.0",
75
+ "i18next-vue": "^4.0.0",
76
76
  "sass": "^1.70.0",
77
77
  "swiper": "^11.0.6",
78
- "unocss": "^0.57.7",
79
- "vite": "^5.0.12",
80
- "vue": "^3.4.15"
78
+ "unocss": "^0.58.5",
79
+ "vite": "^5.1.1",
80
+ "vue": "^3.4.19"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@unocss/transformer-variant-group": "^0.58.5",
84
- "astro": "^4.3.3",
84
+ "astro": "^4.3.6",
85
85
  "unocss": "^0.58.3"
86
86
  },
87
+ "packageManager": "pnpm@8.15.2",
87
88
  "pnpm": {
89
+ "default": "8.15.2",
88
90
  "overrides": {
89
91
  "file-type@>=17.0.0 <17.1.3": ">=17.1.3",
90
92
  "sharp@<0.30.5": ">=0.30.5"
91
93
  }
92
94
  }
93
- }
95
+ }
package/renovate.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:recommended"
5
+ ]
6
+ }
@@ -16,22 +16,15 @@ const props = defineProps({
16
16
 
17
17
  <template>
18
18
  <div class="relative flex bg-vw " :class="props.small ? 'md:min-h-xs' : 'md:min-h-md'">
19
- <div class="max-w-7xl mx-auto my-auto">
20
- <div class="py-8 lg:w-full"
21
- :class="props.small ? 'sm:py-12 md:py-14 lg:py-16 xl:py-20' : 'sm:py-16 md:py-20 lg:py-28 xl:py-32'">
22
- <header class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
23
- <div class="text-center">
24
- <h1 class="text-3xl tracking-tight font-headlight text-white sm:(text-4xl pt-0) md:text-5xl lg:text-6xl ">
25
- <slot name="intro" />
26
- </h1>
27
- <slot name="subtitle" />
28
- <div class="mt-5 sm:(mt-8 flex justify-center)" v-if="hasSlot('cta')">
29
- <slot name="cta" />
30
- </div>
31
- </div>
32
- </header>
33
- </div>
34
- </div>
19
+ <header class="max-w-7xl mx-auto my-auto py-8 lg:w-full px-6 lg:px-8 text-center" :class="props.small ? 'sm:py-12 md:py-14 lg:py-16 xl:py-20' : 'sm:py-16 md:py-20 lg:py-28 xl:py-32'">
20
+ <h1 class="text-3xl tracking-tight font-headlight text-white sm:(text-4xl pt-0) md:text-5xl lg:text-6xl ">
21
+ <slot name="intro" />
22
+ </h1>
23
+ <slot name="subtitle" />
24
+ <div class="mt-5 sm:(mt-8 flex justify-center)" v-if="hasSlot('cta')">
25
+ <slot name="cta" />
26
+ </div>
27
+ </header>
35
28
  </div>
36
29
  </template>
37
30
  <style lang="scss">
@@ -35,7 +35,7 @@ const props = defineProps({
35
35
  </table>
36
36
  </template>
37
37
 
38
- <style lang="scss">
38
+ <style lang="scss" scoped>
39
39
  .details {
40
40
  @apply border-none shadow-none w-full md:w-auto
41
41
  box-shadow: none;
@@ -63,6 +63,13 @@ const niceName = (string: string, separator = "\u00A0") => {
63
63
  .replace(/(^\s+|\s+$)/, "");
64
64
  }
65
65
 
66
+ // remove single separator from the end of string:
67
+ let lastCharacter = word.split('').pop() || '';
68
+
69
+ if (!Boolean(lastCharacter.match(/[a-zA-Z0-9]/))) {
70
+ word = word.slice(0, -1)
71
+ }
72
+
66
73
  return word.replace(" ", separator);
67
74
  };
68
75