Commit e4c62f7
Add icon argument to smartblock buttons (#134)
* Add icon customization for SmartBlock buttons with Blueprint icons
Co-authored-by: mclicks <mclicks@gmail.com>
* Update documentation for SmartBlock icon parameter and refactor icon handling in code
- Corrected capitalization of the `icon` parameter to `Icon` in documentation.
- Enhanced examples to reflect the updated parameter name.
- Refactored icon handling logic in the code to validate Blueprint icon names and improve icon display logic.
- Adjusted default icon display behavior based on the new parameter structure.
* 1.11.0
* Update SmartBlock icon examples in documentation to reflect actual Blueprint.js icons
* Update SmartBlock icon documentation to clarify Blueprint.js icon names
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>1 parent 4983f74 commit e4c62f7
File tree
4 files changed
+71
-25
lines changed- docs
- src
4 files changed
+71
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
113 | 132 | | |
114 | 133 | | |
115 | 134 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
556 | 557 | | |
557 | 558 | | |
558 | 559 | | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
559 | 569 | | |
560 | 570 | | |
561 | 571 | | |
562 | 572 | | |
563 | 573 | | |
| 574 | + | |
564 | 575 | | |
565 | 576 | | |
566 | 577 | | |
| |||
570 | 581 | | |
571 | 582 | | |
572 | 583 | | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | 584 | | |
586 | 585 | | |
587 | 586 | | |
| |||
710 | 709 | | |
711 | 710 | | |
712 | 711 | | |
| 712 | + | |
713 | 713 | | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
722 | 748 | | |
723 | | - | |
| 749 | + | |
724 | 750 | | |
725 | 751 | | |
726 | 752 | | |
| 753 | + | |
727 | 754 | | |
728 | 755 | | |
729 | 756 | | |
| |||
0 commit comments