@lowdefy/blocks-basic 0.0.0-experimental-20260720072521 → 0.0.0-experimental-20260720135014

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.
Files changed (33) hide show
  1. package/dist/blocks.js +0 -1
  2. package/dist/e2e.js +0 -1
  3. package/dist/metas.js +0 -1
  4. package/package.json +10 -10
  5. package/dist/blocks/Anchor/gallery.yaml +0 -316
  6. package/dist/blocks/Anchor/tests/Anchor.e2e.yaml +0 -78
  7. package/dist/blocks/Anchor/tests.yaml +0 -109
  8. package/dist/blocks/Box/gallery.yaml +0 -1369
  9. package/dist/blocks/Box/tests/Box.e2e.yaml +0 -78
  10. package/dist/blocks/Box/tests.yaml +0 -43
  11. package/dist/blocks/DangerousHtml/gallery.yaml +0 -182
  12. package/dist/blocks/DangerousHtml/tests/DangerousHtml.e2e.yaml +0 -33
  13. package/dist/blocks/DangerousHtml/tests.yaml +0 -83
  14. package/dist/blocks/Dynamic/Dynamic.js +0 -35
  15. package/dist/blocks/Dynamic/e2e.js +0 -16
  16. package/dist/blocks/Dynamic/meta.js +0 -76
  17. package/dist/blocks/Html/gallery.yaml +0 -239
  18. package/dist/blocks/Html/tests/Html.e2e.yaml +0 -56
  19. package/dist/blocks/Html/tests.yaml +0 -75
  20. package/dist/blocks/Icon/gallery.yaml +0 -702
  21. package/dist/blocks/Icon/tests/Icon.e2e.yaml +0 -43
  22. package/dist/blocks/Icon/tests.yaml +0 -54
  23. package/dist/blocks/Img/gallery.yaml +0 -446
  24. package/dist/blocks/Img/tests/Img.e2e.yaml +0 -61
  25. package/dist/blocks/Img/tests.yaml +0 -74
  26. package/dist/blocks/List/gallery.yaml +0 -523
  27. package/dist/blocks/List/tests/List.e2e.yaml +0 -199
  28. package/dist/blocks/List/tests.yaml +0 -471
  29. package/dist/blocks/Span/gallery.yaml +0 -664
  30. package/dist/blocks/Span/tests/Span.e2e.yaml +0 -59
  31. package/dist/blocks/Span/tests.yaml +0 -43
  32. package/dist/blocks/Throw/gallery.yaml +0 -40
  33. package/dist/blocks/Throw/tests.yaml +0 -20
@@ -1,43 +0,0 @@
1
- # Copyright 2020-2026 Lowdefy, Inc
2
-
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
-
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- id: icon
16
- type: Box
17
-
18
- blocks:
19
- - id: icon_default
20
- type: Icon
21
-
22
- - id: icon_custom
23
- type: Icon
24
- properties:
25
- name: AiOutlineHome
26
-
27
- - id: icon_clickable
28
- type: Icon
29
- properties:
30
- name:
31
- _if:
32
- test:
33
- _eq:
34
- - _state: icon_clicked
35
- - true
36
- then: AiOutlineCheck
37
- else: AiOutlineClose
38
- events:
39
- onClick:
40
- - id: set_clicked
41
- type: SetState
42
- params:
43
- icon_clicked: true
@@ -1,54 +0,0 @@
1
- # Copyright 2020-2026 Lowdefy, Inc
2
-
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
-
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- - id: default
16
- type: Icon
17
- - id: properties.icon
18
- type: Icon
19
- properties:
20
- name: AiOutlineRocket
21
- - id: 'properties.disableLoadingIcon: true'
22
- type: Icon
23
- properties:
24
- name: AiOutlineRocket
25
- disableLoadingIcon: true
26
- - id: 'properties.size: 30'
27
- type: Icon
28
- properties:
29
- name: AiOutlineRocket
30
- size: 30
31
- - id: 'properties.rotate: 90'
32
- type: Icon
33
- properties:
34
- name: AiOutlineRocket
35
- size: 30
36
- rotate: 90
37
- - id: 'properties.spin: true'
38
- type: Icon
39
- properties:
40
- name: AiOutlineRocket
41
- size: 30
42
- spin: true
43
- - id: 'properties.color'
44
- type: Icon
45
- properties:
46
- name: AiOutlineRocket
47
- size: 25
48
- color: '#9c27b0'
49
- - id: 'properties.style: border: 1px solid red'
50
- type: Icon
51
- properties:
52
- name: AiOutlineRocket
53
- style:
54
- border: 1px solid red
@@ -1,446 +0,0 @@
1
- # Copyright 2020-2026 Lowdefy, Inc
2
-
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
-
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- - title: Basic
16
- blocks:
17
- - id: basic_image
18
- type: Img
19
- layout:
20
- flex: 0 0 auto
21
- properties:
22
- src: https://placehold.co/300x200
23
- alt: Placeholder image
24
-
25
- - title: Sizes
26
- blocks:
27
- - id: size_tiny
28
- type: Img
29
- layout:
30
- flex: 0 0 auto
31
- properties:
32
- src: https://placehold.co/60x60
33
- alt: Tiny image
34
- width: 60
35
- height: 60
36
- - id: size_small
37
- type: Img
38
- layout:
39
- flex: 0 0 auto
40
- properties:
41
- src: https://placehold.co/100x100
42
- alt: Small image
43
- width: 100
44
- height: 100
45
- - id: size_medium
46
- type: Img
47
- layout:
48
- flex: 0 0 auto
49
- properties:
50
- src: https://placehold.co/200x150
51
- alt: Medium image
52
- width: 200
53
- height: 150
54
- - id: size_large
55
- type: Img
56
- layout:
57
- flex: 0 0 auto
58
- properties:
59
- src: https://placehold.co/400x200
60
- alt: Large image
61
- width: 400
62
- height: 200
63
- - id: size_wide
64
- type: Img
65
- layout:
66
- flex: 0 0 auto
67
- properties:
68
- src: https://placehold.co/500x100
69
- alt: Wide banner image
70
- width: 500
71
- height: 100
72
- - id: size_tall
73
- type: Img
74
- layout:
75
- flex: 0 0 auto
76
- properties:
77
- src: https://placehold.co/150x300
78
- alt: Tall image
79
- width: 150
80
- height: 300
81
-
82
- - title: Alt Text
83
- blocks:
84
- - id: alt_product
85
- type: Img
86
- layout:
87
- flex: 0 0 auto
88
- properties:
89
- src: https://placehold.co/250x150/0066cc/ffffff?text=Product
90
- alt: Product showcase image
91
- width: 250
92
- height: 150
93
- - id: alt_banner
94
- type: Img
95
- layout:
96
- flex: 0 0 auto
97
- properties:
98
- src: https://placehold.co/250x150/52c41a/ffffff?text=Banner
99
- alt: Promotional banner
100
- width: 250
101
- height: 150
102
- - id: alt_logo
103
- type: Img
104
- layout:
105
- flex: 0 0 auto
106
- properties:
107
- src: https://placehold.co/150x150/722ed1/ffffff?text=Logo
108
- alt: Company logo
109
- width: 150
110
- height: 150
111
-
112
- - title: Loading Strategy
113
- blocks:
114
- - id: loading_eager_label
115
- type: Markdown
116
- properties:
117
- content: '**Eager loading (default):**'
118
- - id: loading_eager
119
- type: Img
120
- layout:
121
- flex: 0 0 auto
122
- properties:
123
- src: https://placehold.co/250x150/1677ff/ffffff?text=Eager
124
- alt: Eagerly loaded image
125
- width: 250
126
- height: 150
127
- loading: eager
128
- - id: loading_lazy_label
129
- type: Markdown
130
- properties:
131
- content: '**Lazy loading:**'
132
- - id: loading_lazy
133
- type: Img
134
- layout:
135
- flex: 0 0 auto
136
- properties:
137
- src: https://placehold.co/250x150/fa8c16/ffffff?text=Lazy
138
- alt: Lazily loaded image
139
- width: 250
140
- height: 150
141
- loading: lazy
142
-
143
- - title: Decoding
144
- blocks:
145
- - id: decoding_sync_label
146
- type: Markdown
147
- properties:
148
- content: '**Sync decoding:**'
149
- - id: decoding_sync
150
- type: Img
151
- layout:
152
- flex: 0 0 auto
153
- properties:
154
- src: https://placehold.co/200x150/1677ff/ffffff?text=Sync
155
- alt: Sync decoded image
156
- width: 200
157
- height: 150
158
- decoding: sync
159
- - id: decoding_async_label
160
- type: Markdown
161
- properties:
162
- content: '**Async decoding:**'
163
- - id: decoding_async
164
- type: Img
165
- layout:
166
- flex: 0 0 auto
167
- properties:
168
- src: https://placehold.co/200x150/52c41a/ffffff?text=Async
169
- alt: Async decoded image
170
- width: 200
171
- height: 150
172
- decoding: async
173
- - id: decoding_auto_label
174
- type: Markdown
175
- properties:
176
- content: '**Auto decoding:**'
177
- - id: decoding_auto
178
- type: Img
179
- layout:
180
- flex: 0 0 auto
181
- properties:
182
- src: https://placehold.co/200x150/722ed1/ffffff?text=Auto
183
- alt: Auto decoded image
184
- width: 200
185
- height: 150
186
- decoding: auto
187
-
188
- - title: Broken URL Fallback
189
- blocks:
190
- - id: fallback_broken
191
- type: Img
192
- layout:
193
- flex: 0 0 auto
194
- properties:
195
- src: https://invalid-url.example/missing.png
196
- alt: This alt text shows when the image fails to load
197
- width: 200
198
- height: 150
199
-
200
- - title: Object-Fit via Style
201
- blocks:
202
- - id: fit_cover_label
203
- type: Markdown
204
- properties:
205
- content: '**object-fit: cover (crops to fill):**'
206
- - id: fit_cover
207
- type: Img
208
- layout:
209
- flex: 0 0 auto
210
- style:
211
- .element:
212
- objectFit: cover
213
- properties:
214
- src: https://placehold.co/600x400
215
- alt: Cover fit image
216
- width: 200
217
- height: 200
218
- - id: fit_contain_label
219
- type: Markdown
220
- properties:
221
- content: '**object-fit: contain (shows all):**'
222
- - id: fit_contain
223
- type: Img
224
- layout:
225
- flex: 0 0 auto
226
- style:
227
- .element:
228
- objectFit: contain
229
- background: '#f5f5f5'
230
- properties:
231
- src: https://placehold.co/600x400
232
- alt: Contain fit image
233
- width: 200
234
- height: 200
235
- - id: fit_fill_label
236
- type: Markdown
237
- properties:
238
- content: '**object-fit: fill (stretches):**'
239
- - id: fit_fill
240
- type: Img
241
- layout:
242
- flex: 0 0 auto
243
- style:
244
- .element:
245
- objectFit: fill
246
- properties:
247
- src: https://placehold.co/600x400
248
- alt: Fill fit image
249
- width: 200
250
- height: 200
251
-
252
- - title: Rounded and Circular via Style
253
- blocks:
254
- - id: rounded_small
255
- type: Img
256
- layout:
257
- flex: 0 0 auto
258
- style:
259
- .element:
260
- borderRadius: 8
261
- properties:
262
- src: https://placehold.co/150x150/1677ff/ffffff?text=Rounded
263
- alt: Rounded corners image
264
- width: 150
265
- height: 150
266
- - id: rounded_large
267
- type: Img
268
- layout:
269
- flex: 0 0 auto
270
- style:
271
- .element:
272
- borderRadius: 20
273
- properties:
274
- src: https://placehold.co/150x150/52c41a/ffffff?text=More+Round
275
- alt: Large rounded corners image
276
- width: 150
277
- height: 150
278
- - id: circular
279
- type: Img
280
- layout:
281
- flex: 0 0 auto
282
- style:
283
- .element:
284
- borderRadius: 50%
285
- properties:
286
- src: https://placehold.co/150x150/722ed1/ffffff?text=Circle
287
- alt: Circular image
288
- width: 150
289
- height: 150
290
-
291
- - title: Bordered via Style
292
- blocks:
293
- - id: border_thin
294
- type: Img
295
- layout:
296
- flex: 0 0 auto
297
- style:
298
- .element:
299
- border: 1px solid #d9d9d9
300
- properties:
301
- src: https://placehold.co/200x150
302
- alt: Thin bordered image
303
- width: 200
304
- height: 150
305
- - id: border_thick
306
- type: Img
307
- layout:
308
- flex: 0 0 auto
309
- style:
310
- .element:
311
- border: 3px solid #1677ff
312
- borderRadius: 8
313
- properties:
314
- src: https://placehold.co/200x150
315
- alt: Thick blue bordered image
316
- width: 200
317
- height: 150
318
- - id: border_dashed
319
- type: Img
320
- layout:
321
- flex: 0 0 auto
322
- style:
323
- .element:
324
- border: 2px dashed #fa8c16
325
- borderRadius: 8
326
- properties:
327
- src: https://placehold.co/200x150
328
- alt: Dashed bordered image
329
- width: 200
330
- height: 150
331
- - id: border_shadow
332
- type: Img
333
- layout:
334
- flex: 0 0 auto
335
- style:
336
- .element:
337
- borderRadius: 12
338
- boxShadow: 0 4px 12px rgba(0, 0, 0, 0.15)
339
- properties:
340
- src: https://placehold.co/200x150
341
- alt: Image with shadow
342
- width: 200
343
- height: 150
344
-
345
- - title: Responsive Width via Style
346
- blocks:
347
- - id: responsive_full_label
348
- type: Markdown
349
- properties:
350
- content: '**Full width (100%):**'
351
- - id: responsive_full
352
- type: Img
353
- style:
354
- .element:
355
- width: 100%
356
- height: auto
357
- borderRadius: 8
358
- properties:
359
- src: https://placehold.co/800x200
360
- alt: Full width responsive image
361
- - id: responsive_half_label
362
- type: Markdown
363
- properties:
364
- content: '**Half width (50%):**'
365
- - id: responsive_half
366
- type: Img
367
- style:
368
- .element:
369
- width: 50%
370
- height: auto
371
- borderRadius: 8
372
- properties:
373
- src: https://placehold.co/800x200
374
- alt: Half width responsive image
375
- - id: responsive_max_label
376
- type: Markdown
377
- properties:
378
- content: '**Max width constrained (300px):**'
379
- - id: responsive_max
380
- type: Img
381
- style:
382
- .element:
383
- maxWidth: 300
384
- width: 100%
385
- height: auto
386
- borderRadius: 8
387
- properties:
388
- src: https://placehold.co/800x200
389
- alt: Max width constrained image
390
-
391
- - title: Style Overrides
392
- blocks:
393
- - id: style_opacity
394
- type: Img
395
- layout:
396
- flex: 0 0 auto
397
- style:
398
- .element:
399
- opacity: 0.5
400
- properties:
401
- src: https://placehold.co/200x150/1677ff/ffffff?text=50%25+Opacity
402
- alt: Semi-transparent image
403
- width: 200
404
- height: 150
405
- - id: style_grayscale
406
- type: Img
407
- layout:
408
- flex: 0 0 auto
409
- style:
410
- .element:
411
- filter: grayscale(100%)
412
- properties:
413
- src: https://placehold.co/200x150/ff4d4f/ffffff?text=Grayscale
414
- alt: Grayscale filtered image
415
- width: 200
416
- height: 150
417
- - id: style_rotate
418
- type: Img
419
- layout:
420
- flex: 0 0 auto
421
- style:
422
- .element:
423
- transform: rotate(5deg)
424
- borderRadius: 8
425
- boxShadow: 0 4px 12px rgba(0, 0, 0, 0.15)
426
- properties:
427
- src: https://placehold.co/200x150
428
- alt: Slightly rotated image
429
- width: 200
430
- height: 150
431
- - id: style_padded_frame
432
- type: Img
433
- layout:
434
- flex: 0 0 auto
435
- style:
436
- .element:
437
- padding: 8
438
- background: '#ffffff'
439
- border: 1px solid #d9d9d9
440
- borderRadius: 4
441
- boxShadow: 0 2px 8px rgba(0, 0, 0, 0.1)
442
- properties:
443
- src: https://placehold.co/180x130
444
- alt: Photo frame style image
445
- width: 180
446
- height: 130
@@ -1,61 +0,0 @@
1
- # Copyright 2020-2026 Lowdefy, Inc
2
-
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
-
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- id: img
16
- type: Box
17
-
18
- blocks:
19
- - id: img_basic
20
- type: Img
21
- properties:
22
- src: https://via.placeholder.com/100
23
-
24
- - id: img_sized
25
- type: Img
26
- properties:
27
- src: https://via.placeholder.com/200
28
- width: 150
29
- height: 100
30
-
31
- - id: img_alt
32
- type: Img
33
- properties:
34
- src: https://via.placeholder.com/100
35
- alt: Test image description
36
-
37
- - id: img_lazy
38
- type: Img
39
- properties:
40
- src: https://via.placeholder.com/100
41
- loading: lazy
42
-
43
- - id: img_clickable
44
- type: Img
45
- properties:
46
- src: https://via.placeholder.com/100
47
- style:
48
- border:
49
- _if:
50
- test:
51
- _eq:
52
- - _state: img_clicked
53
- - true
54
- then: 2px solid green
55
- else: 2px solid red
56
- events:
57
- onClick:
58
- - id: set_clicked
59
- type: SetState
60
- params:
61
- img_clicked: true
@@ -1,74 +0,0 @@
1
- # Copyright 2020-2026 Lowdefy, Inc
2
-
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
-
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- - id: default
16
- type: Img
17
- - id: src
18
- type: Img
19
- properties:
20
- src: https://docs.lowdefy.com/public/logo-light-theme.png
21
- - id: srcSet
22
- type: Img
23
- properties:
24
- src: https://docs.lowdefy.com/public/logo-light-theme.png
25
- srcSet: https://docs.lowdefy.com/public/logo-dark-theme.png
26
- - id: alt
27
- type: Img
28
- properties:
29
- src: https://docs.lowdefy.com/public/logo-light-theme.png
30
- alt: This is the alt
31
- - id: alt
32
- type: Img
33
- properties:
34
- src: https://docs.lowdefy.com/public/logo-light-theme.png
35
- crossOrigin: anonymous
36
- - id: decoding
37
- type: Img
38
- properties:
39
- src: https://docs.lowdefy.com/public/logo-light-theme.png
40
- decoding: sync
41
- - id: height
42
- type: Img
43
- properties:
44
- src: https://docs.lowdefy.com/public/logo-light-theme.png
45
- height: 30
46
- - id: loading
47
- type: Img
48
- properties:
49
- src: https://docs.lowdefy.com/public/logo-light-theme.png
50
- loading: lazy
51
- - id: sizes
52
- type: Img
53
- properties:
54
- src: https://docs.lowdefy.com/public/logo-light-theme.png
55
- sizes: 20px
56
- - id: style
57
- type: Img
58
- properties:
59
- src: https://docs.lowdefy.com/public/logo-light-theme.png
60
- style:
61
- border: 1px solid red
62
- - id: width
63
- type: Img
64
- properties:
65
- src: https://docs.lowdefy.com/public/logo-light-theme.png
66
- height: 10
67
- - id: onClick
68
- type: Img
69
- properties:
70
- src: https://docs.lowdefy.com/public/logo-light-theme.png
71
- events:
72
- onClick:
73
- - id: testAction
74
- type: Text