Skip to content

Commit 1ec74d4

Browse files
feat(image): split logic into "fill" and "default" variants with fallback size resolution (#153)
1 parent 440fcd8 commit 1ec74d4

27 files changed

Lines changed: 141 additions & 61 deletions

apps/csk-marketing-site/content/componentPattern/192fccfb-4b6b-4fbd-bd6d-e7c5234a497e.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ composition:
2929
- _id: 688fb6a0-a384-4b57-a1c1-33ada8f49db3
3030
type: image
3131
parameters:
32+
fill:
33+
type: checkbox
34+
value: true
3235
image:
3336
type: asset
3437
value:
@@ -40,7 +43,7 @@ composition:
4043
value: ff044480-8310-44f4-9991-82176767a172
4144
url:
4245
value: >-
43-
https://img.uniform.global/p/ZfA3kJm3TDeKyWey802IkQ/RIaWVdb1SW6lEURx4PYk0g-featured-bg.png
46+
https://img.uniform.global/p/4Ac1zi8UQeOXsvDsKwotZQ/FjBsimm9TZOn3dMX6sp1hg-featured-bg.png
4447
type: text
4548
file:
4649
type: file
@@ -192,8 +195,8 @@ composition:
192195
parameters:
193196
displayName: 'yes'
194197
hideLockedParameters: true
195-
created: '2025-02-17T16:01:09.994983+00:00'
196-
modified: '2025-02-17T16:01:09.994983+00:00'
198+
created: '2025-01-29T11:28:34.593532+00:00'
199+
modified: '2025-06-20T13:31:24.216118+00:00'
197200
pattern: true
198201
previewImageUrl: >-
199202
https://res.cloudinary.com/uniform-demos/image/upload/csk-v-next/baseline/preview-images/featured-card.jpg

apps/csk-marketing-site/content/componentPattern/4a8a7a31-8425-4dee-bc8a-ba0adce84cb1.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ composition:
111111
- _id: 76b7803a-2786-4d5c-a1e3-0d80b542108e
112112
type: image
113113
parameters:
114+
fill:
115+
type: checkbox
116+
value: true
114117
image:
115118
type: asset
116119
value:
@@ -173,8 +176,8 @@ composition:
173176
link: 'yes'
174177
enableComponentPreview: 'yes'
175178
hideLockedParameters: true
176-
created: '2025-03-03T09:52:28.309497+00:00'
177-
modified: '2025-03-03T09:52:28.309497+00:00'
179+
created: '2025-06-20T12:39:36.975076+00:00'
180+
modified: '2025-06-20T13:09:30.266431+00:00'
178181
pattern: true
179182
description: >-
180183
This example is constructed utilizing the Hero component, which incorporates a

apps/csk-marketing-site/content/componentPattern/6d0cf521-5c04-48f5-8ee8-8eab2c50835e.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ composition:
174174
- _id: 0b146a50-8d3c-489f-9274-6048e43089d4
175175
type: image
176176
parameters:
177+
fill:
178+
type: checkbox
179+
value: true
177180
image:
178181
type: asset
179182
value:
@@ -185,7 +188,7 @@ composition:
185188
value: 0e5575b8-ef94-46c9-8567-d8ce3f4bf206
186189
url:
187190
value: >-
188-
https://img.uniform.global/p/ZfA3kJm3TDeKyWey802IkQ/hvhbQwotSOaMT3ue0zwRtA-Group-670.png
191+
https://img.uniform.global/p/4Ac1zi8UQeOXsvDsKwotZQ/FB_XRyjqSaWUBgJKw_frCw-Group-670.png
189192
type: text
190193
file:
191194
type: file
@@ -215,6 +218,6 @@ composition:
215218
text:
216219
type: text
217220
value: Book a free demo now
218-
created: '2025-02-17T16:01:11.919188+00:00'
219-
modified: '2025-02-17T16:01:11.919188+00:00'
221+
created: '2025-01-29T11:28:36.529124+00:00'
222+
modified: '2025-06-20T13:08:38.371755+00:00'
220223
pattern: true

apps/csk-marketing-site/content/componentPattern/7f0d0a65-02dd-4291-8b81-fb13ae23a48d.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ composition:
4444
- _id: c8a1dabe-e928-418b-9c41-88f45d6b6695
4545
type: image
4646
parameters:
47+
fill:
48+
type: checkbox
49+
value: true
4750
image:
4851
type: asset
4952
value:
@@ -167,8 +170,8 @@ composition:
167170
spacing: 'no'
168171
enableComponentPreview: 'yes'
169172
hideLockedParameters: true
170-
created: '2025-03-03T09:52:29.093569+00:00'
171-
modified: '2025-03-03T09:52:29.093569+00:00'
173+
created: '2025-06-20T12:39:37.877702+00:00'
174+
modified: '2025-06-20T13:10:20.65129+00:00'
172175
pattern: true
173176
description: >-
174177
This example is constructed utilizing the Hero component, which incorporates

apps/csk-marketing-site/content/componentPattern/ad31c0d5-4901-4f2c-a973-409ef0fb493e.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ composition:
4444
- _id: f3f8c957-3d15-4c89-a15d-6b0dc1c6cad7
4545
type: image
4646
parameters:
47+
fill:
48+
type: checkbox
49+
value: true
4750
image:
4851
type: asset
4952
value:
@@ -166,8 +169,8 @@ composition:
166169
link: 'yes'
167170
enableComponentPreview: 'yes'
168171
hideLockedParameters: true
169-
created: '2025-03-03T09:52:31.072393+00:00'
170-
modified: '2025-03-03T09:52:31.072393+00:00'
172+
created: '2025-06-20T12:39:39.874722+00:00'
173+
modified: '2025-06-20T13:04:43.991885+00:00'
171174
pattern: true
172175
description: >-
173176
This example is constructed utilizing the Hero component, which incorporates

apps/csk-marketing-site/content/componentPattern/b6b1a64a-063d-4e60-974d-f1c083ddd8dd.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ composition:
111111
- _id: 5ac91a20-9ec5-4b0e-80f9-860e6fc00887
112112
type: image
113113
parameters:
114+
fill:
115+
type: checkbox
116+
value: true
114117
image:
115118
type: asset
116119
value:
@@ -207,8 +210,8 @@ composition:
207210
link: 'yes'
208211
enableComponentPreview: 'yes'
209212
hideLockedParameters: true
210-
created: '2025-03-03T09:52:31.199025+00:00'
211-
modified: '2025-03-03T09:52:31.199025+00:00'
213+
created: '2025-06-20T12:39:40.07013+00:00'
214+
modified: '2025-06-20T13:04:01.730524+00:00'
212215
pattern: true
213216
description: >-
214217
This example is constructed utilizing the Hero component, which incorporates a

apps/csk-marketing-site/content/componentPattern/ba89404c-71eb-4690-b3a8-de4260b19239.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ composition:
3737
- _id: e8107cdf-1a07-433f-a897-557f3c5bccd5
3838
type: image
3939
parameters:
40+
fill:
41+
type: checkbox
42+
value: true
4043
image:
4144
type: asset
4245
value:
@@ -139,7 +142,7 @@ composition:
139142
link: 'yes'
140143
enableComponentPreview: 'yes'
141144
hideLockedParameters: true
142-
created: '2025-03-03T09:52:31.083218+00:00'
143-
modified: '2025-03-03T10:47:30.482645+00:00'
145+
created: '2025-06-20T12:39:40.847387+00:00'
146+
modified: '2025-06-20T13:02:33.138909+00:00'
144147
pattern: true
145148
categoryId: 096fd5ed-5e2a-4bfa-834b-fb805d1d1ce9

apps/csk-marketing-site/content/componentPattern/c83614e9-1a4c-41b6-9a16-9b07cc341d07.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ composition:
4444
- _id: 64fa10f0-d43c-408e-b09a-1783f2e77398
4545
type: image
4646
parameters:
47+
fill:
48+
type: checkbox
49+
value: true
4750
image:
4851
type: asset
4952
value:
@@ -158,8 +161,8 @@ composition:
158161
backgroundColor: 'no'
159162
enableComponentPreview: 'yes'
160163
hideLockedParameters: true
161-
created: '2025-03-03T09:52:32.091248+00:00'
162-
modified: '2025-03-03T10:39:40.126656+00:00'
164+
created: '2025-06-20T12:39:41.850306+00:00'
165+
modified: '2025-06-20T12:59:54.031647+00:00'
163166
pattern: true
164167
description: >-
165168
This example is constructed utilizing the Hero component, which incorporates

apps/csk-marketing-site/content/componentPattern/db9c43cb-1bc0-43a1-bfd0-96b6aca664d3.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ composition:
3737
- _id: 24da591f-710f-4796-9a05-b032b6cd8243
3838
type: image
3939
parameters:
40+
fill:
41+
type: checkbox
42+
value: true
4043
image:
4144
type: asset
4245
value:
@@ -154,8 +157,8 @@ composition:
154157
link: 'yes'
155158
enableComponentPreview: 'yes'
156159
hideLockedParameters: true
157-
created: '2025-03-03T09:52:33.375009+00:00'
158-
modified: '2025-03-03T09:52:33.375009+00:00'
160+
created: '2025-06-20T12:39:42.80432+00:00'
161+
modified: '2025-06-20T12:50:57.27766+00:00'
159162
pattern: true
160163
description: >-
161164
This example is constructed utilizing the Hero component, which incorporates a

apps/csk-marketing-site/content/componentPattern/ec3d2ee4-f077-4158-aab0-4c3c5bf5cf81.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ composition:
111111
- _id: 5ac91a20-9ec5-4b0e-80f9-860e6fc00887
112112
type: image
113113
parameters:
114+
fill:
115+
type: checkbox
116+
value: true
114117
image:
115118
type: asset
116119
value:
@@ -122,7 +125,7 @@ composition:
122125
value: ff044480-8310-44f4-9991-82176767a172
123126
url:
124127
value: >-
125-
https://img.uniform.global/p/ZfA3kJm3TDeKyWey802IkQ/RIaWVdb1SW6lEURx4PYk0g-featured-bg.png
128+
https://img.uniform.global/p/4Ac1zi8UQeOXsvDsKwotZQ/FjBsimm9TZOn3dMX6sp1hg-featured-bg.png
126129
type: text
127130
file:
128131
type: file
@@ -195,8 +198,8 @@ composition:
195198
link: 'yes'
196199
enableComponentPreview: 'yes'
197200
hideLockedParameters: true
198-
created: '2025-03-03T09:52:33.385075+00:00'
199-
modified: '2025-03-03T09:52:33.385075+00:00'
201+
created: '2025-06-20T12:39:42.905667+00:00'
202+
modified: '2025-06-20T12:49:29.247614+00:00'
200203
pattern: true
201204
description: >-
202205
This example is constructed utilizing the Hero component, which incorporates a

0 commit comments

Comments
 (0)