accomadesc 0.0.8 → 0.0.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.
@@ -22,11 +22,13 @@
22
22
  {#if cardContent}
23
23
  <div class="title-with-slug">
24
24
  <h2>{displayName}</h2>
25
- <div class="slug">{@html translatedSlug}</div>
25
+ {#if cardContent.slug}
26
+ <div class="slug">{@html translatedSlug}</div>
27
+ {/if}
26
28
  </div>
27
29
  {#if cardContent.coverPhoto}
28
30
  <div class="photo">
29
- <Photo {...cardContent.coverPhoto.content} {translateFunc} />
31
+ <Photo {...cardContent.coverPhoto} {translateFunc} />
30
32
  </div>
31
33
  {/if}
32
34
  {#if cardContent.blocks}
@@ -39,7 +41,7 @@
39
41
  {:else if isCalendarAvailable(b)}
40
42
  <CalendarAvailable {...b.content} {translateFunc} {formatFunc} />
41
43
  {:else}
42
- <span class="wart">Unsupported</span>
44
+ <span>Unsupported</span>
43
45
  {/if}
44
46
  </div>
45
47
  {/each}
@@ -82,15 +84,17 @@
82
84
  padding: 2rem;
83
85
  margin: 2rem;
84
86
  border-radius: 2rem;
85
- box-shadow:
86
- -1.2px -3.7px 4.5px rgba(0, 0, 0, 0.017),
87
- -1.4px -4.4px 8.9px rgba(0, 0, 0, 0.024),
88
- -0.4px -1.3px 13.3px rgba(0, 0, 0, 0.03),
89
- 1.7px 5.5px 17.9px rgba(0, 0, 0, 0.035),
90
- 4.9px 15.5px 23.3px rgba(0, 0, 0, 0.04),
91
- 8.9px 28.2px 30.7px rgba(0, 0, 0, 0.046),
92
- 13.7px 43.1px 43.8px rgba(0, 0, 0, 0.053),
93
- 19px 60px 80px rgba(0, 0, 0, 0.07);
87
+ box-shadow: var(--acco-card-shadow);
88
+
89
+ background-color: var(--acco-card-bg);
90
+ color: var(--acco-card-font);
91
+
92
+ * {
93
+ --main-font-color: var(--acco-card-font);
94
+ --main-bg-color: var(--acco-card-bg);
95
+ background-color: var(--acco-card-bg);
96
+ color: var(--acco-card-font);
97
+ }
94
98
  }
95
99
 
96
100
  .accocard-wrapper h2 {
@@ -52,10 +52,16 @@
52
52
 
53
53
  <style>
54
54
  .cal-wrapper {
55
+ color: var(--main-font-color);
56
+ background-color: var(--main-bg-color);
55
57
  position: relative;
56
58
  display: flex;
57
59
  flex-direction: column;
58
60
  align-content: center;
61
+ * {
62
+ color: var(--main-font-color);
63
+ background-color: var(--main-bg-color);
64
+ }
59
65
  }
60
66
 
61
67
  h3 {
@@ -75,4 +81,3 @@
75
81
  font-size: 1.2rem;
76
82
  }
77
83
  </style>
78
-
@@ -92,9 +92,17 @@
92
92
 
93
93
  <style>
94
94
  .pricing-short-wrapper {
95
+ color: var(--main-font-color);
96
+ background-color: var(--main-bg-color);
97
+
95
98
  display: flex;
96
99
  flex-direction: column;
97
100
  align-items: center;
101
+
102
+ * {
103
+ color: var(--main-font-color);
104
+ background-color: var(--main-bg-color);
105
+ }
98
106
  }
99
107
 
100
108
  .pricing-short-wrapper h3 {
package/dist/types.d.ts CHANGED
@@ -33,7 +33,7 @@ export interface CalendarAvailable {
33
33
  export interface CalendarAvailableContent {
34
34
  calUrl: string;
35
35
  search: number[];
36
- maxFutureDate: string;
36
+ maxFutureDate?: string;
37
37
  }
38
38
  export interface Text {
39
39
  id: string;
@@ -180,7 +180,7 @@ export interface AccoCardContent {
180
180
  displayName: string;
181
181
  }
182
182
  export interface CardContent {
183
- coverPhoto: Photo;
183
+ coverPhoto: PhotoContent;
184
184
  slug?: string;
185
185
  blocks: Block[];
186
186
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accomadesc",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",
@@ -24,18 +24,18 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@sveltejs/adapter-auto": "^3.3.1",
27
- "@sveltejs/kit": "^2.8.0",
27
+ "@sveltejs/kit": "^2.8.1",
28
28
  "@sveltejs/package": "^2.3.7",
29
29
  "@sveltejs/vite-plugin-svelte": "^4.0.0",
30
30
  "@types/luxon": "^3.4.2",
31
31
  "prettier": "^3.3.3",
32
32
  "prettier-plugin-svelte": "^3.2.8",
33
33
  "publint": "^0.2.12",
34
- "svelte": "^5.1.15",
34
+ "svelte": "^5.1.16",
35
35
  "svelte-check": "^4.0.7",
36
36
  "typescript": "^5.6.3",
37
37
  "vite": "^5.4.11",
38
- "vitest": "^2.1.4"
38
+ "vitest": "^2.1.5"
39
39
  },
40
40
  "dependencies": {
41
41
  "@dinero.js/currencies": "2.0.0-alpha.14",