@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,664 +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 Span
16
- blocks:
17
- - id: span_basic
18
- type: Span
19
- blocks:
20
- - id: span_basic_text
21
- type: Html
22
- properties:
23
- html: This is text inside a Span block using the content area.
24
-
25
- - id: span_basic_empty
26
- type: Span
27
- properties:
28
- content: A Span with no child blocks, using the content property instead.
29
-
30
- - title: Content Property
31
- blocks:
32
- - id: span_content_plain
33
- type: Span
34
- properties:
35
- content: Plain text rendered via the content property.
36
- - id: span_content_html
37
- type: Span
38
- properties:
39
- content: '<b>Bold</b>, <i>italic</i>, and <u>underlined</u> via the content property.'
40
- - id: span_content_overrides
41
- type: Span
42
- properties:
43
- content: This content property overrides the content area below.
44
- blocks:
45
- - id: span_content_overrides_child
46
- type: Html
47
- properties:
48
- html: This child block is hidden because the content property takes priority.
49
-
50
- - title: Content Area with Child Blocks
51
- blocks:
52
- - id: span_content_area
53
- type: Span
54
- blocks:
55
- - id: span_content_area_icon
56
- type: Icon
57
- layout:
58
- flex: 0 0 auto
59
- properties:
60
- name: AiOutlineInfoCircle
61
- size: 14
62
- color: '#1677ff'
63
- - id: span_content_area_text
64
- type: Html
65
- layout:
66
- flex: 0 0 auto
67
- properties:
68
- html: Child blocks render inside the content area when no content property is set.
69
-
70
- - title: onClick Event
71
- blocks:
72
- - id: span_click_basic
73
- type: Span
74
- style:
75
- .element:
76
- color: '#1677ff'
77
- textDecoration: underline
78
- cursor: pointer
79
- properties:
80
- content: Click me to show a message
81
- events:
82
- onClick:
83
- - id: span_click_basic_msg
84
- type: DisplayMessage
85
- params:
86
- content: You clicked the Span!
87
- status: success
88
-
89
- - id: span_click_set_state
90
- type: Span
91
- style:
92
- .element:
93
- background: '#e6f4ff'
94
- padding: 4px 12px
95
- borderRadius: 4
96
- color: '#1677ff'
97
- fontWeight: bold
98
- properties:
99
- content: Click to update state
100
- events:
101
- onClick:
102
- - id: span_click_set_state_action
103
- type: SetState
104
- params:
105
- spanClicked: true
106
- clickedAt:
107
- _date: now
108
-
109
- - id: span_click_link
110
- type: Span
111
- style:
112
- .element:
113
- color: '#722ed1'
114
- textDecoration: underline
115
- properties:
116
- content: Click to navigate
117
- events:
118
- onClick:
119
- - id: span_click_link_action
120
- type: Link
121
- params:
122
- url: https://docs.lowdefy.com
123
- newTab: true
124
-
125
- - title: Style Overrides
126
- blocks:
127
- - id: span_style_underline
128
- type: Span
129
- layout:
130
- flex: 0 0 auto
131
- style:
132
- .element:
133
- textDecoration: underline
134
- textDecorationColor: '#1677ff'
135
- textUnderlineOffset: 4px
136
- properties:
137
- content: Underlined span
138
- - id: span_style_uppercase
139
- type: Span
140
- layout:
141
- flex: 0 0 auto
142
- style:
143
- .element:
144
- textTransform: uppercase
145
- letterSpacing: 2
146
- fontSize: 12
147
- fontWeight: bold
148
- color: '#8c8c8c'
149
- properties:
150
- content: uppercase span
151
- - id: span_style_mono
152
- type: Span
153
- layout:
154
- flex: 0 0 auto
155
- style:
156
- .element:
157
- fontFamily: monospace
158
- background: '#f5f5f5'
159
- padding: 2px 6px
160
- borderRadius: 4
161
- fontSize: 13
162
- color: '#cf1322'
163
- properties:
164
- content: monospace code style
165
- - id: span_style_gradient
166
- type: Span
167
- layout:
168
- flex: 0 0 auto
169
- style:
170
- .element:
171
- background: linear-gradient(90deg, #1677ff, #722ed1)
172
- color: '#ffffff'
173
- padding: 4px 12px
174
- borderRadius: 6
175
- fontWeight: bold
176
- properties:
177
- content: Gradient span
178
-
179
- - title: Tailwind CSS Classes
180
- blocks:
181
- - id: span_tw_bold_blue
182
- type: Span
183
- layout:
184
- flex: 0 0 auto
185
- class:
186
- element: font-bold text-blue-600
187
- properties:
188
- content: Bold blue text via Tailwind
189
- - id: span_tw_bg_pill
190
- type: Span
191
- layout:
192
- flex: 0 0 auto
193
- class:
194
- element: bg-green-100 text-green-800 px-3 py-1 rounded-full text-sm font-medium
195
- properties:
196
- content: Pill badge
197
- - id: span_tw_hover
198
- type: Span
199
- layout:
200
- flex: 0 0 auto
201
- class:
202
- element: text-gray-600 hover:text-blue-600 hover:underline transition-colors duration-200 cursor-pointer
203
- properties:
204
- content: Hover for effect
205
- - id: span_tw_ring
206
- type: Span
207
- layout:
208
- flex: 0 0 auto
209
- class:
210
- element: ring-2 ring-purple-300 bg-purple-50 text-purple-700 px-3 py-1 rounded-md text-sm
211
- properties:
212
- content: Ring outline
213
-
214
- - title: Inline with Text
215
- blocks:
216
- - id: span_inline_wrapper
217
- type: Box
218
- blocks:
219
- - id: span_inline_before
220
- type: Span
221
- layout:
222
- flex: 0 0 auto
223
- properties:
224
- content: 'This paragraph has an '
225
- - id: span_inline_highlight
226
- type: Span
227
- layout:
228
- flex: 0 0 auto
229
- style:
230
- .element:
231
- color: '#1677ff'
232
- fontWeight: bold
233
- properties:
234
- content: inline highlighted Span
235
- - id: span_inline_after
236
- type: Span
237
- layout:
238
- flex: 0 0 auto
239
- properties:
240
- content: ' mixed with regular text.'
241
-
242
- - title: Multiple Inline Spans
243
- blocks:
244
- - id: span_multi_wrapper
245
- type: Box
246
- blocks:
247
- - id: span_multi_hello
248
- type: Span
249
- layout:
250
- flex: 0 0 auto
251
- style:
252
- .element:
253
- fontWeight: bold
254
- properties:
255
- content: 'Hello, '
256
- - id: span_multi_world
257
- type: Span
258
- layout:
259
- flex: 0 0 auto
260
- style:
261
- .element:
262
- color: '#1677ff'
263
- properties:
264
- content: 'world'
265
- - id: span_multi_excl
266
- type: Span
267
- layout:
268
- flex: 0 0 auto
269
- properties:
270
- content: '!'
271
-
272
- - title: Nested Spans
273
- blocks:
274
- - id: span_nested_outer
275
- type: Span
276
- style:
277
- .element:
278
- padding: 8px 12px
279
- background: '#f5f5f5'
280
- borderRadius: 6
281
- display: inline-flex
282
- alignItems: center
283
- gap: 8
284
- blocks:
285
- - id: span_nested_label
286
- type: Span
287
- layout:
288
- flex: 0 0 auto
289
- style:
290
- .element:
291
- fontWeight: bold
292
- color: '#262626'
293
- properties:
294
- content: 'Status:'
295
- - id: span_nested_value
296
- type: Span
297
- layout:
298
- flex: 0 0 auto
299
- style:
300
- .element:
301
- color: '#52c41a'
302
- blocks:
303
- - id: span_nested_value_icon
304
- type: Icon
305
- layout:
306
- flex: 0 0 auto
307
- properties:
308
- name: AiOutlineCheckCircle
309
- size: 14
310
- color: '#52c41a'
311
- - id: span_nested_value_text
312
- type: Html
313
- layout:
314
- flex: 0 0 auto
315
- properties:
316
- html: Active
317
-
318
- - title: Colored Tags
319
- blocks:
320
- - id: span_tag_blue
321
- type: Span
322
- layout:
323
- flex: 0 0 auto
324
- style:
325
- .element:
326
- background: '#e6f4ff'
327
- color: '#1677ff'
328
- padding: 2px 8px
329
- borderRadius: 4
330
- fontSize: 12
331
- border: 1px solid #91caff
332
- properties:
333
- content: Info
334
- - id: span_tag_green
335
- type: Span
336
- layout:
337
- flex: 0 0 auto
338
- style:
339
- .element:
340
- background: '#f6ffed'
341
- color: '#52c41a'
342
- padding: 2px 8px
343
- borderRadius: 4
344
- fontSize: 12
345
- border: 1px solid #b7eb8f
346
- properties:
347
- content: Success
348
- - id: span_tag_red
349
- type: Span
350
- layout:
351
- flex: 0 0 auto
352
- style:
353
- .element:
354
- background: '#fff2f0'
355
- color: '#ff4d4f'
356
- padding: 2px 8px
357
- borderRadius: 4
358
- fontSize: 12
359
- border: 1px solid #ffccc7
360
- properties:
361
- content: Error
362
-
363
- - title: Badge-Style Spans
364
- blocks:
365
- - id: span_badge_primary
366
- type: Span
367
- layout:
368
- flex: 0 0 auto
369
- style:
370
- .element:
371
- background: '#1677ff'
372
- color: '#ffffff'
373
- padding: 2px 10px
374
- borderRadius: 12
375
- fontSize: 12
376
- fontWeight: bold
377
- properties:
378
- content: NEW
379
- - id: span_badge_danger
380
- type: Span
381
- layout:
382
- flex: 0 0 auto
383
- style:
384
- .element:
385
- background: '#ff4d4f'
386
- color: '#ffffff'
387
- padding: 2px 10px
388
- borderRadius: 12
389
- fontSize: 12
390
- fontWeight: bold
391
- properties:
392
- content: '3'
393
- - id: span_badge_success
394
- type: Span
395
- layout:
396
- flex: 0 0 auto
397
- style:
398
- .element:
399
- background: '#52c41a'
400
- color: '#ffffff'
401
- padding: 2px 10px
402
- borderRadius: 12
403
- fontSize: 12
404
- fontWeight: bold
405
- properties:
406
- content: LIVE
407
-
408
- - title: Inline Icon and Text
409
- blocks:
410
- - id: span_icon_smile
411
- type: Span
412
- style:
413
- .element:
414
- display: inline-flex
415
- alignItems: center
416
- gap: 6
417
- blocks:
418
- - id: span_icon_smile_icon
419
- type: Icon
420
- layout:
421
- flex: 0 0 auto
422
- properties:
423
- name: AiOutlineSmile
424
- size: 16
425
- color: '#faad14'
426
- - id: span_icon_smile_label
427
- type: Html
428
- layout:
429
- flex: 0 0 auto
430
- properties:
431
- html: Happy face
432
- - id: span_icon_check
433
- type: Span
434
- style:
435
- .element:
436
- display: inline-flex
437
- alignItems: center
438
- gap: 6
439
- blocks:
440
- - id: span_icon_check_icon
441
- type: Icon
442
- layout:
443
- flex: 0 0 auto
444
- properties:
445
- name: AiOutlineCheckCircle
446
- size: 16
447
- color: '#52c41a'
448
- - id: span_icon_check_label
449
- type: Html
450
- layout:
451
- flex: 0 0 auto
452
- properties:
453
- html: Approved
454
- - id: span_icon_warning
455
- type: Span
456
- style:
457
- .element:
458
- display: inline-flex
459
- alignItems: center
460
- gap: 6
461
- blocks:
462
- - id: span_icon_warning_icon
463
- type: Icon
464
- layout:
465
- flex: 0 0 auto
466
- properties:
467
- name: AiOutlineWarning
468
- size: 16
469
- color: '#ff4d4f'
470
- - id: span_icon_warning_label
471
- type: Html
472
- layout:
473
- flex: 0 0 auto
474
- properties:
475
- html: Warning
476
-
477
- - title: Order Status Indicator
478
- blocks:
479
- - id: span_order_wrapper
480
- type: Box
481
- layout:
482
- gap: 16
483
- align: center
484
- blocks:
485
- - id: span_order_label
486
- type: Span
487
- layout:
488
- flex: 0 0 auto
489
- style:
490
- .element:
491
- fontWeight: bold
492
- color: '#262626'
493
- properties:
494
- content: 'Order #10482:'
495
- - id: span_order_shipped
496
- type: Span
497
- layout:
498
- flex: 0 0 auto
499
- style:
500
- .element:
501
- display: inline-flex
502
- alignItems: center
503
- gap: 6
504
- background: '#f6ffed'
505
- color: '#52c41a'
506
- padding: 4px 12px
507
- borderRadius: 12
508
- fontSize: 13
509
- fontWeight: 500
510
- border: 1px solid #b7eb8f
511
- blocks:
512
- - id: span_order_shipped_icon
513
- type: Icon
514
- layout:
515
- flex: 0 0 auto
516
- properties:
517
- name: AiOutlineCheckCircle
518
- size: 14
519
- color: '#52c41a'
520
- - id: span_order_shipped_text
521
- type: Html
522
- layout:
523
- flex: 0 0 auto
524
- properties:
525
- html: Shipped
526
- - id: span_order_date
527
- type: Span
528
- layout:
529
- flex: 0 0 auto
530
- style:
531
- .element:
532
- color: '#8c8c8c'
533
- fontSize: 13
534
- properties:
535
- content: Estimated delivery Mar 18, 2026
536
-
537
- - title: Breadcrumb Navigation
538
- blocks:
539
- - id: span_breadcrumb_wrapper
540
- type: Box
541
- layout:
542
- gap: 8
543
- align: center
544
- blocks:
545
- - id: span_breadcrumb_home
546
- type: Span
547
- layout:
548
- flex: 0 0 auto
549
- style:
550
- .element:
551
- color: '#1677ff'
552
- cursor: pointer
553
- properties:
554
- content: Home
555
- events:
556
- onClick:
557
- - id: span_breadcrumb_home_click
558
- type: Link
559
- params:
560
- url: /
561
- - id: span_breadcrumb_sep1
562
- type: Span
563
- layout:
564
- flex: 0 0 auto
565
- style:
566
- .element:
567
- color: '#d9d9d9'
568
- properties:
569
- content: /
570
- - id: span_breadcrumb_products
571
- type: Span
572
- layout:
573
- flex: 0 0 auto
574
- style:
575
- .element:
576
- color: '#1677ff'
577
- cursor: pointer
578
- properties:
579
- content: Products
580
- events:
581
- onClick:
582
- - id: span_breadcrumb_products_click
583
- type: Link
584
- params:
585
- url: /products
586
- - id: span_breadcrumb_sep2
587
- type: Span
588
- layout:
589
- flex: 0 0 auto
590
- style:
591
- .element:
592
- color: '#d9d9d9'
593
- properties:
594
- content: /
595
- - id: span_breadcrumb_current
596
- type: Span
597
- layout:
598
- flex: 0 0 auto
599
- style:
600
- .element:
601
- color: '#595959'
602
- fontWeight: 500
603
- properties:
604
- content: Widget Pro X
605
-
606
- - title: User Profile Badge
607
- blocks:
608
- - id: span_profile_wrapper
609
- type: Box
610
- layout:
611
- gap: 12
612
- align: center
613
- blocks:
614
- - id: span_profile_avatar
615
- type: Icon
616
- layout:
617
- flex: 0 0 auto
618
- properties:
619
- name: AiOutlineUser
620
- size: 20
621
- color: '#1677ff'
622
- - id: span_profile_name
623
- type: Span
624
- layout:
625
- flex: 0 0 auto
626
- style:
627
- .element:
628
- fontWeight: bold
629
- fontSize: 14
630
- color: '#262626'
631
- properties:
632
- content: Sarah Mitchell
633
- - id: span_profile_role
634
- type: Span
635
- layout:
636
- flex: 0 0 auto
637
- class:
638
- element: bg-purple-100 text-purple-700 px-2 py-0.5 rounded-full text-xs font-medium
639
- properties:
640
- content: Admin
641
- - id: span_profile_status
642
- type: Span
643
- layout:
644
- flex: 0 0 auto
645
- style:
646
- .element:
647
- display: inline-flex
648
- alignItems: center
649
- gap: 4
650
- fontSize: 12
651
- color: '#52c41a'
652
- blocks:
653
- - id: span_profile_status_dot
654
- type: Html
655
- layout:
656
- flex: 0 0 auto
657
- properties:
658
- html: '<span style="width:6px;height:6px;background:#52c41a;border-radius:50%;display:inline-block;"></span>'
659
- - id: span_profile_status_text
660
- type: Html
661
- layout:
662
- flex: 0 0 auto
663
- properties:
664
- html: Online
@@ -1,59 +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: span
16
- type: Box
17
-
18
- blocks:
19
- - id: span_basic
20
- type: Span
21
-
22
- - id: span_content
23
- type: Span
24
- properties:
25
- content: Hello from Span
26
-
27
- - id: span_styled
28
- type: Span
29
- properties:
30
- content: Styled Span
31
- style:
32
- color: rgb(255, 0, 0)
33
- fontWeight: bold
34
-
35
- - id: span_with_children
36
- type: Span
37
- blocks:
38
- - id: child_span
39
- type: Span
40
- properties:
41
- content: Child content
42
-
43
- - id: span_clickable
44
- type: Span
45
- properties:
46
- content:
47
- _if:
48
- test:
49
- _eq:
50
- - _state: span_clicked
51
- - true
52
- then: Clicked!
53
- else: Click me
54
- events:
55
- onClick:
56
- - id: set_clicked
57
- type: SetState
58
- params:
59
- span_clicked: true