@foundrykit/blocks 1.0.3 → 1.0.5

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
@@ -1,5 +1,24 @@
1
1
  # @foundrykit/blocks
2
2
 
3
+ ## 1.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - refactoring for build errors
8
+ - Updated dependencies
9
+ - @foundrykit/animation@1.0.4
10
+ - @foundrykit/components@1.0.4
11
+ - @foundrykit/primitives@1.0.4
12
+ - @foundrykit/types@1.0.4
13
+ - @foundrykit/utils@1.0.2
14
+
15
+ ## 1.0.4
16
+
17
+ ### Patch Changes
18
+
19
+ - Updating blocks config to have the correct dependencies as well as updating
20
+ how the cli pulls them and the registry caches them
21
+
3
22
  ## 1.0.3
4
23
 
5
24
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foundrykit/blocks",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
@@ -24,11 +24,11 @@
24
24
  "react": "^19.1.1",
25
25
  "react-dom": "^19.1.1",
26
26
  "tailwind-merge": "^3.3.1",
27
- "@foundrykit/animation": "1.0.3",
28
- "@foundrykit/components": "1.0.3",
29
- "@foundrykit/primitives": "1.0.3",
30
- "@foundrykit/types": "1.0.3",
31
- "@foundrykit/utils": "1.0.1"
27
+ "@foundrykit/animation": "1.0.4",
28
+ "@foundrykit/components": "1.0.4",
29
+ "@foundrykit/primitives": "1.0.4",
30
+ "@foundrykit/types": "1.0.4",
31
+ "@foundrykit/utils": "1.0.2"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^20.19.9",
@@ -37,8 +37,8 @@
37
37
  "eslint": "^9.0.0",
38
38
  "tsup": "^8.0.0",
39
39
  "typescript": "^5.9.2",
40
- "@foundrykit/eslint-config": "1.0.1",
41
- "@foundrykit/typescript-config": "1.0.1"
40
+ "@foundrykit/eslint-config": "1.0.2",
41
+ "@foundrykit/typescript-config": "1.0.2"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": "^19.1.1",
@@ -54,6 +54,6 @@ export const heroMinimalConfig: ComponentConfig = {
54
54
  },
55
55
  },
56
56
  ],
57
- dependencies: ['primitives', 'utils'],
57
+ dependencies: ['button', 'utils'],
58
58
  files: ['components/hero-minimal/index.tsx'],
59
59
  };
@@ -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: 'Interactive Regions Map is designed for sites with multiple hotels across multiple global regions.',
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: "Europe" },
31
- { countries: ['iraq', 'iran'], name: "Middle East" },
32
- { countries: ['madagascar', 'south-africa', 'kenya'], name: "Africa" }
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: 'Discover luxury accommodations across multiple continents. Click on any region to learn more about our properties in that area.',
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
- { countries: ['united-states', 'canada'], name: "North America", color: "#3b82f6" },
57
- { countries: ['france', 'germany', 'spain'], name: "Europe", color: "#10b981" },
58
- { countries: ['iraq', 'iran'], name: "Middle East", color: "#f59e0b" }
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
- { countries: ['france', 'germany', 'spain'], name: "Western Europe", color: "#8b5cf6" },
82
- { countries: ['iraq', 'iran', 'saudi-arabia'], name: "Middle East", color: "#ef4444" },
83
- { countries: ['south-africa', 'kenya', 'madagascar'], name: "Africa", color: "#f97316" },
84
- { countries: ['united-states', 'canada'], name: "North America", color: "#06b6d4" }
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
- { countries: ['france', 'spain'], name: "Southern Europe", color: "#3b82f6", href: "/hotels/southern-europe" },
110
- { countries: ['germany'], name: "Central Europe", color: "#10b981", href: "/hotels/central-europe" },
111
- { countries: ['iraq', 'iran'], name: "Middle East", color: "#f59e0b", href: "/hotels/middle-east" },
112
- { countries: ['south-africa', 'kenya'], name: "Africa", color: "#ef4444", href: "/hotels/africa" }
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: 'Our extensive portfolio spans continents with premium properties in key destinations',
192
+ content:
193
+ 'Our extensive portfolio spans continents with premium properties in key destinations',
140
194
  regions: [
141
- { countries: ['united-states', 'canada'], name: "North America", color: "#3b82f6" },
142
- { countries: ['brazil', 'argentina', 'mexico'], name: "Latin America", color: "#10b981" },
143
- { countries: ['france', 'germany', 'spain', 'italy', 'united-kingdom'], name: "Europe", color: "#8b5cf6" },
144
- { countries: ['iraq', 'iran', 'saudi-arabia'], name: "Middle East", color: "#f59e0b" },
145
- { countries: ['south-africa', 'kenya', 'madagascar', 'egypt'], name: "Africa", color: "#ef4444" },
146
- { countries: ['china', 'japan', 'india'], name: "Asia", color: "#06b6d4" },
147
- { countries: ['australia'], name: "Oceania", color: "#f97316" },
148
- { countries: ['russia'], name: "Eastern Europe", color: "#84cc16" }
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: "United States" },
170
- { countries: ['france', 'germany'], name: "Europe" }
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: ['primitives', 'utils'],
260
+ dependencies: ['card', 'badge', 'utils'],
177
261
  files: ['components/interactive-regions-map/index.tsx'],
178
262
  };
@@ -101,6 +101,6 @@ export const pricingConfig: ComponentConfig = {
101
101
  },
102
102
  },
103
103
  ],
104
- dependencies: ['primitives', 'utils'],
104
+ dependencies: ['button', 'card', 'badge', 'utils'],
105
105
  files: ['components/pricing/index.tsx'],
106
106
  };
@@ -89,6 +89,6 @@ export const testimonialsConfig: ComponentConfig = {
89
89
  },
90
90
  },
91
91
  ],
92
- dependencies: ['primitives', 'utils'],
92
+ dependencies: ['card', 'avatar', 'utils'],
93
93
  files: ['components/testimonials/index.tsx'],
94
94
  };