accomadesc 0.0.7 → 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.
- package/dist/AccoCard.svelte +16 -12
- package/dist/CalendarAvailable.svelte +6 -1
- package/dist/PricingShort.svelte +8 -0
- package/dist/Section.svelte +2 -2
- package/dist/Section.svelte.d.ts +2 -2
- package/dist/types.d.ts +8 -8
- package/package.json +4 -4
package/dist/AccoCard.svelte
CHANGED
|
@@ -22,11 +22,13 @@
|
|
|
22
22
|
{#if cardContent}
|
|
23
23
|
<div class="title-with-slug">
|
|
24
24
|
<h2>{displayName}</h2>
|
|
25
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
package/dist/PricingShort.svelte
CHANGED
|
@@ -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/Section.svelte
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import AccoDescription from './AccoDescription.svelte';
|
|
14
14
|
|
|
15
15
|
import {
|
|
16
|
-
type Section,
|
|
16
|
+
type Section as SectionI,
|
|
17
17
|
type I18nFacade,
|
|
18
18
|
isAmenitiesCore,
|
|
19
19
|
isLeafletMap,
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
formatFunc,
|
|
41
41
|
currentLang,
|
|
42
42
|
calendarTranslation,
|
|
43
|
-
}:
|
|
43
|
+
}: SectionI & I18nFacade = $props();
|
|
44
44
|
|
|
45
45
|
let translatedHeader = $derived(header && translateFunc ? translateFunc(header) : '');
|
|
46
46
|
|
package/dist/Section.svelte.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Section } from './types.ts';
|
|
2
|
-
declare const Section:
|
|
1
|
+
import { type Section as SectionI, type I18nFacade } from './types.ts';
|
|
2
|
+
declare const Section: import("svelte").Component<SectionI & I18nFacade, {}, "padding">;
|
|
3
3
|
type Section = ReturnType<typeof Section>;
|
|
4
4
|
export default Section;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { type Dinero, type DineroSnapshot } from 'dinero.js';
|
|
2
2
|
import type { DateTime } from 'luxon';
|
|
3
3
|
import type { I18n } from 'occuplan';
|
|
4
|
-
export interface Acco {
|
|
5
|
-
path: string;
|
|
6
|
-
displayName: string;
|
|
7
|
-
cardContent?: AccoCardContent;
|
|
8
|
-
siteContent?: Section[];
|
|
9
|
-
}
|
|
10
4
|
export interface GridPhoto {
|
|
11
5
|
photo: Photo;
|
|
12
6
|
zoomed: boolean;
|
|
@@ -39,7 +33,7 @@ export interface CalendarAvailable {
|
|
|
39
33
|
export interface CalendarAvailableContent {
|
|
40
34
|
calUrl: string;
|
|
41
35
|
search: number[];
|
|
42
|
-
maxFutureDate
|
|
36
|
+
maxFutureDate?: string;
|
|
43
37
|
}
|
|
44
38
|
export interface Text {
|
|
45
39
|
id: string;
|
|
@@ -170,6 +164,12 @@ export interface AmenitiesCoreContent {
|
|
|
170
164
|
parking: boolean;
|
|
171
165
|
showParking?: boolean;
|
|
172
166
|
}
|
|
167
|
+
export interface Acco {
|
|
168
|
+
path: string;
|
|
169
|
+
displayName: string;
|
|
170
|
+
cardContent?: AccoCardContent;
|
|
171
|
+
siteContent?: Section[];
|
|
172
|
+
}
|
|
173
173
|
export interface AccoCard {
|
|
174
174
|
id: string;
|
|
175
175
|
kind: 'acco-card';
|
|
@@ -180,7 +180,7 @@ export interface AccoCardContent {
|
|
|
180
180
|
displayName: string;
|
|
181
181
|
}
|
|
182
182
|
export interface CardContent {
|
|
183
|
-
coverPhoto:
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
38
|
+
"vitest": "^2.1.5"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@dinero.js/currencies": "2.0.0-alpha.14",
|