@foundrykit/blocks 1.0.3 → 1.0.4
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,8 @@ import { ComponentConfig } from '@foundrykit/types';
|
|
|
2
2
|
|
|
3
3
|
export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
4
4
|
name: 'Interactive Regions Map',
|
|
5
|
-
description:
|
|
5
|
+
description:
|
|
6
|
+
'Interactive Regions Map is designed for sites with multiple hotels across multiple global regions.',
|
|
6
7
|
category: 'blocks',
|
|
7
8
|
tags: ['map', 'interactive', 'hotels', 'regions', 'geography'],
|
|
8
9
|
preview: {
|
|
@@ -13,13 +14,13 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
13
14
|
{
|
|
14
15
|
name: 'Default',
|
|
15
16
|
description: 'Basic interactive regions map with default styling',
|
|
16
|
-
code: `<InteractiveRegionsMap
|
|
17
|
-
title="Our Global Presence"
|
|
17
|
+
code: `<InteractiveRegionsMap
|
|
18
|
+
title="Our Global Presence"
|
|
18
19
|
regions={[
|
|
19
20
|
{ countries: ["france", "germany", "spain"], name: "Europe" },
|
|
20
21
|
{ countries: ["iraq", "iran"], name: "Middle East" },
|
|
21
22
|
{ countries: ["madagascar", "south-africa", "kenya"], name: "Africa" }
|
|
22
|
-
]}
|
|
23
|
+
]}
|
|
23
24
|
/>`,
|
|
24
25
|
preview: {
|
|
25
26
|
type: 'component',
|
|
@@ -27,50 +28,66 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
27
28
|
props: {
|
|
28
29
|
title: 'Our Global Presence',
|
|
29
30
|
regions: [
|
|
30
|
-
{ countries: ['france', 'germany', 'spain'], name:
|
|
31
|
-
{ countries: ['iraq', 'iran'], name:
|
|
32
|
-
{
|
|
33
|
-
|
|
31
|
+
{ countries: ['france', 'germany', 'spain'], name: 'Europe' },
|
|
32
|
+
{ countries: ['iraq', 'iran'], name: 'Middle East' },
|
|
33
|
+
{
|
|
34
|
+
countries: ['madagascar', 'south-africa', 'kenya'],
|
|
35
|
+
name: 'Africa',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
34
38
|
},
|
|
35
39
|
},
|
|
36
40
|
},
|
|
37
41
|
{
|
|
38
42
|
name: 'With Content',
|
|
39
43
|
description: 'Map with descriptive content below the title',
|
|
40
|
-
code: `<InteractiveRegionsMap
|
|
41
|
-
title="Explore Our Hotel Destinations"
|
|
44
|
+
code: `<InteractiveRegionsMap
|
|
45
|
+
title="Explore Our Hotel Destinations"
|
|
42
46
|
content="Discover luxury accommodations across multiple continents. Click on any region to learn more about our properties in that area."
|
|
43
47
|
regions={[
|
|
44
48
|
{ countries: ["united-states", "canada"], name: "North America", color: "#3b82f6" },
|
|
45
49
|
{ countries: ["france", "germany", "spain"], name: "Europe", color: "#10b981" },
|
|
46
50
|
{ countries: ["iraq", "iran"], name: "Middle East", color: "#f59e0b" }
|
|
47
|
-
]}
|
|
51
|
+
]}
|
|
48
52
|
/>`,
|
|
49
53
|
preview: {
|
|
50
54
|
type: 'component',
|
|
51
55
|
component: 'InteractiveRegionsMap',
|
|
52
56
|
props: {
|
|
53
57
|
title: 'Explore Our Hotel Destinations',
|
|
54
|
-
content:
|
|
58
|
+
content:
|
|
59
|
+
'Discover luxury accommodations across multiple continents. Click on any region to learn more about our properties in that area.',
|
|
55
60
|
regions: [
|
|
56
|
-
{
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
{
|
|
62
|
+
countries: ['united-states', 'canada'],
|
|
63
|
+
name: 'North America',
|
|
64
|
+
color: '#3b82f6',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
countries: ['france', 'germany', 'spain'],
|
|
68
|
+
name: 'Europe',
|
|
69
|
+
color: '#10b981',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
countries: ['iraq', 'iran'],
|
|
73
|
+
name: 'Middle East',
|
|
74
|
+
color: '#f59e0b',
|
|
75
|
+
},
|
|
76
|
+
],
|
|
60
77
|
},
|
|
61
78
|
},
|
|
62
79
|
},
|
|
63
80
|
{
|
|
64
81
|
name: 'Custom Colors',
|
|
65
82
|
description: 'Regions with custom color schemes',
|
|
66
|
-
code: `<InteractiveRegionsMap
|
|
67
|
-
title="Regional Divisions"
|
|
83
|
+
code: `<InteractiveRegionsMap
|
|
84
|
+
title="Regional Divisions"
|
|
68
85
|
regions={[
|
|
69
86
|
{ countries: ["france", "germany", "spain"], name: "Western Europe", color: "#8b5cf6" },
|
|
70
87
|
{ countries: ["iraq", "iran", "saudi-arabia"], name: "Middle East", color: "#ef4444" },
|
|
71
88
|
{ countries: ["south-africa", "kenya", "madagascar"], name: "Africa", color: "#f97316" },
|
|
72
89
|
{ countries: ["united-states", "canada"], name: "North America", color: "#06b6d4" }
|
|
73
|
-
]}
|
|
90
|
+
]}
|
|
74
91
|
/>`,
|
|
75
92
|
preview: {
|
|
76
93
|
type: 'component',
|
|
@@ -78,26 +95,42 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
78
95
|
props: {
|
|
79
96
|
title: 'Regional Divisions',
|
|
80
97
|
regions: [
|
|
81
|
-
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
98
|
+
{
|
|
99
|
+
countries: ['france', 'germany', 'spain'],
|
|
100
|
+
name: 'Western Europe',
|
|
101
|
+
color: '#8b5cf6',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
countries: ['iraq', 'iran', 'saudi-arabia'],
|
|
105
|
+
name: 'Middle East',
|
|
106
|
+
color: '#ef4444',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
countries: ['south-africa', 'kenya', 'madagascar'],
|
|
110
|
+
name: 'Africa',
|
|
111
|
+
color: '#f97316',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
countries: ['united-states', 'canada'],
|
|
115
|
+
name: 'North America',
|
|
116
|
+
color: '#06b6d4',
|
|
117
|
+
},
|
|
118
|
+
],
|
|
86
119
|
},
|
|
87
120
|
},
|
|
88
121
|
},
|
|
89
122
|
{
|
|
90
123
|
name: 'With Navigation',
|
|
91
124
|
description: 'Regions configured with href navigation links',
|
|
92
|
-
code: `<InteractiveRegionsMap
|
|
93
|
-
title="Hotel Locations by Region"
|
|
125
|
+
code: `<InteractiveRegionsMap
|
|
126
|
+
title="Hotel Locations by Region"
|
|
94
127
|
content="Click on any region to view available properties"
|
|
95
128
|
regions={[
|
|
96
129
|
{ countries: ["france", "spain"], name: "Southern Europe", color: "#3b82f6", href: "/hotels/southern-europe" },
|
|
97
130
|
{ countries: ["germany"], name: "Central Europe", color: "#10b981", href: "/hotels/central-europe" },
|
|
98
131
|
{ countries: ["iraq", "iran"], name: "Middle East", color: "#f59e0b", href: "/hotels/middle-east" },
|
|
99
132
|
{ countries: ["south-africa", "kenya"], name: "Africa", color: "#ef4444", href: "/hotels/africa" }
|
|
100
|
-
]}
|
|
133
|
+
]}
|
|
101
134
|
/>`,
|
|
102
135
|
preview: {
|
|
103
136
|
type: 'component',
|
|
@@ -106,19 +139,39 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
106
139
|
title: 'Hotel Locations by Region',
|
|
107
140
|
content: 'Click on any region to view available properties',
|
|
108
141
|
regions: [
|
|
109
|
-
{
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
142
|
+
{
|
|
143
|
+
countries: ['france', 'spain'],
|
|
144
|
+
name: 'Southern Europe',
|
|
145
|
+
color: '#3b82f6',
|
|
146
|
+
href: '/hotels/southern-europe',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
countries: ['germany'],
|
|
150
|
+
name: 'Central Europe',
|
|
151
|
+
color: '#10b981',
|
|
152
|
+
href: '/hotels/central-europe',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
countries: ['iraq', 'iran'],
|
|
156
|
+
name: 'Middle East',
|
|
157
|
+
color: '#f59e0b',
|
|
158
|
+
href: '/hotels/middle-east',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
countries: ['south-africa', 'kenya'],
|
|
162
|
+
name: 'Africa',
|
|
163
|
+
color: '#ef4444',
|
|
164
|
+
href: '/hotels/africa',
|
|
165
|
+
},
|
|
166
|
+
],
|
|
114
167
|
},
|
|
115
168
|
},
|
|
116
169
|
},
|
|
117
170
|
{
|
|
118
171
|
name: 'Comprehensive Coverage',
|
|
119
172
|
description: 'Maximum regions showcasing all supported countries',
|
|
120
|
-
code: `<InteractiveRegionsMap
|
|
121
|
-
title="Global Hotel Network"
|
|
173
|
+
code: `<InteractiveRegionsMap
|
|
174
|
+
title="Global Hotel Network"
|
|
122
175
|
content="Our extensive portfolio spans continents with premium properties in key destinations"
|
|
123
176
|
regions={[
|
|
124
177
|
{ countries: ["united-states", "canada"], name: "North America", color: "#3b82f6" },
|
|
@@ -129,36 +182,67 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
129
182
|
{ countries: ["china", "japan", "india"], name: "Asia", color: "#06b6d4" },
|
|
130
183
|
{ countries: ["australia"], name: "Oceania", color: "#f97316" },
|
|
131
184
|
{ countries: ["russia"], name: "Eastern Europe", color: "#84cc16" }
|
|
132
|
-
]}
|
|
185
|
+
]}
|
|
133
186
|
/>`,
|
|
134
187
|
preview: {
|
|
135
188
|
type: 'component',
|
|
136
189
|
component: 'InteractiveRegionsMap',
|
|
137
190
|
props: {
|
|
138
191
|
title: 'Global Hotel Network',
|
|
139
|
-
content:
|
|
192
|
+
content:
|
|
193
|
+
'Our extensive portfolio spans continents with premium properties in key destinations',
|
|
140
194
|
regions: [
|
|
141
|
-
{
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
{
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
195
|
+
{
|
|
196
|
+
countries: ['united-states', 'canada'],
|
|
197
|
+
name: 'North America',
|
|
198
|
+
color: '#3b82f6',
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
countries: ['brazil', 'argentina', 'mexico'],
|
|
202
|
+
name: 'Latin America',
|
|
203
|
+
color: '#10b981',
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
countries: [
|
|
207
|
+
'france',
|
|
208
|
+
'germany',
|
|
209
|
+
'spain',
|
|
210
|
+
'italy',
|
|
211
|
+
'united-kingdom',
|
|
212
|
+
],
|
|
213
|
+
name: 'Europe',
|
|
214
|
+
color: '#8b5cf6',
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
countries: ['iraq', 'iran', 'saudi-arabia'],
|
|
218
|
+
name: 'Middle East',
|
|
219
|
+
color: '#f59e0b',
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
countries: ['south-africa', 'kenya', 'madagascar', 'egypt'],
|
|
223
|
+
name: 'Africa',
|
|
224
|
+
color: '#ef4444',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
countries: ['china', 'japan', 'india'],
|
|
228
|
+
name: 'Asia',
|
|
229
|
+
color: '#06b6d4',
|
|
230
|
+
},
|
|
231
|
+
{ countries: ['australia'], name: 'Oceania', color: '#f97316' },
|
|
232
|
+
{ countries: ['russia'], name: 'Eastern Europe', color: '#84cc16' },
|
|
233
|
+
],
|
|
150
234
|
},
|
|
151
235
|
},
|
|
152
236
|
},
|
|
153
237
|
{
|
|
154
238
|
name: 'Minimal',
|
|
155
239
|
description: 'Simple two-region setup with minimal styling',
|
|
156
|
-
code: `<InteractiveRegionsMap
|
|
157
|
-
title="Primary Markets"
|
|
240
|
+
code: `<InteractiveRegionsMap
|
|
241
|
+
title="Primary Markets"
|
|
158
242
|
regions={[
|
|
159
243
|
{ countries: ["united-states"], name: "United States" },
|
|
160
244
|
{ countries: ["france", "germany"], name: "Europe" }
|
|
161
|
-
]}
|
|
245
|
+
]}
|
|
162
246
|
/>`,
|
|
163
247
|
preview: {
|
|
164
248
|
type: 'component',
|
|
@@ -166,13 +250,13 @@ export const interactiveRegionsMapConfig: ComponentConfig = {
|
|
|
166
250
|
props: {
|
|
167
251
|
title: 'Primary Markets',
|
|
168
252
|
regions: [
|
|
169
|
-
{ countries: ['united-states'], name:
|
|
170
|
-
{ countries: ['france', 'germany'], name:
|
|
171
|
-
]
|
|
253
|
+
{ countries: ['united-states'], name: 'United States' },
|
|
254
|
+
{ countries: ['france', 'germany'], name: 'Europe' },
|
|
255
|
+
],
|
|
172
256
|
},
|
|
173
257
|
},
|
|
174
|
-
}
|
|
258
|
+
},
|
|
175
259
|
],
|
|
176
|
-
dependencies: ['
|
|
260
|
+
dependencies: ['card', 'badge', 'utils'],
|
|
177
261
|
files: ['components/interactive-regions-map/index.tsx'],
|
|
178
262
|
};
|