tetrons 2.3.96 → 2.3.98
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/dist/index.cjs +359 -121
- package/dist/index.mjs +347 -109
- package/dist/styles/tetrons.css +281 -7
- package/package.json +1 -1
package/dist/styles/tetrons.css
CHANGED
|
@@ -108,7 +108,8 @@
|
|
|
108
108
|
font-size: 0.875rem;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
ul,
|
|
111
|
+
ul,
|
|
112
|
+
ol {
|
|
112
113
|
padding-left: 1.5rem;
|
|
113
114
|
margin: 0.5rem 0;
|
|
114
115
|
list-style-position: outside;
|
|
@@ -430,7 +431,9 @@ li {
|
|
|
430
431
|
border-radius: 6px;
|
|
431
432
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
|
432
433
|
cursor: pointer;
|
|
433
|
-
transition:
|
|
434
|
+
transition:
|
|
435
|
+
background 0.3s ease,
|
|
436
|
+
transform 0.2s ease;
|
|
434
437
|
}
|
|
435
438
|
|
|
436
439
|
.ai-button:hover {
|
|
@@ -657,7 +660,9 @@ li {
|
|
|
657
660
|
border-radius: 6px;
|
|
658
661
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
|
659
662
|
cursor: pointer;
|
|
660
|
-
transition:
|
|
663
|
+
transition:
|
|
664
|
+
background 0.3s ease,
|
|
665
|
+
transform 0.2s ease;
|
|
661
666
|
}
|
|
662
667
|
|
|
663
668
|
.addon-btn:hover {
|
|
@@ -669,7 +674,7 @@ li {
|
|
|
669
674
|
transform: scale(0.97);
|
|
670
675
|
}
|
|
671
676
|
|
|
672
|
-
.run-code{
|
|
677
|
+
.run-code {
|
|
673
678
|
margin-left: auto;
|
|
674
679
|
background-color: black;
|
|
675
680
|
color: white;
|
|
@@ -685,13 +690,13 @@ li {
|
|
|
685
690
|
cursor: not-allowed;
|
|
686
691
|
}
|
|
687
692
|
|
|
688
|
-
.code-submit-buttons-container{
|
|
693
|
+
.code-submit-buttons-container {
|
|
689
694
|
display: flex;
|
|
690
695
|
justify-content: space-between;
|
|
691
696
|
gap: 10px;
|
|
692
697
|
}
|
|
693
698
|
|
|
694
|
-
.code-submit-buttons{
|
|
699
|
+
.code-submit-buttons {
|
|
695
700
|
background-color: black;
|
|
696
701
|
color: white;
|
|
697
702
|
padding: 16px;
|
|
@@ -704,4 +709,273 @@ li {
|
|
|
704
709
|
.code-submit-buttons:disabled {
|
|
705
710
|
opacity: 0.6;
|
|
706
711
|
cursor: not-allowed;
|
|
707
|
-
}
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.container {
|
|
715
|
+
display: flex;
|
|
716
|
+
flex-direction: column;
|
|
717
|
+
gap: 1.25rem;
|
|
718
|
+
max-width: 700px;
|
|
719
|
+
margin: 0 auto;
|
|
720
|
+
padding: 1rem;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.field {
|
|
724
|
+
display: flex;
|
|
725
|
+
flex-direction: column;
|
|
726
|
+
gap: 0.5rem;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.label {
|
|
730
|
+
font-weight: 600;
|
|
731
|
+
color: #222;
|
|
732
|
+
font-size: 0.95rem;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.select,
|
|
736
|
+
.textarea {
|
|
737
|
+
width: 100%;
|
|
738
|
+
padding: 0.75rem;
|
|
739
|
+
font-size: 1rem;
|
|
740
|
+
border: 1px solid #ccc;
|
|
741
|
+
border-radius: 8px;
|
|
742
|
+
transition:
|
|
743
|
+
border-color 0.2s ease,
|
|
744
|
+
box-shadow 0.2s ease;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
.textarea {
|
|
748
|
+
min-height: 120px;
|
|
749
|
+
resize: vertical;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.select:focus,
|
|
753
|
+
.textarea:focus {
|
|
754
|
+
outline: none;
|
|
755
|
+
border-color: #0070f3;
|
|
756
|
+
box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.2);
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
.button {
|
|
760
|
+
padding: 0.7rem 1.4rem;
|
|
761
|
+
font-size: 1rem;
|
|
762
|
+
border: none;
|
|
763
|
+
border-radius: 8px;
|
|
764
|
+
background: #0070f3;
|
|
765
|
+
color: #fff;
|
|
766
|
+
cursor: pointer;
|
|
767
|
+
font-weight: 500;
|
|
768
|
+
align-self: flex-start;
|
|
769
|
+
transition: background 0.2s ease;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
.button:hover {
|
|
773
|
+
background: #0059c1;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
.textareaWrapper {
|
|
777
|
+
display: flex;
|
|
778
|
+
align-items: center;
|
|
779
|
+
gap: 0.5rem;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.iconButton {
|
|
783
|
+
background: transparent;
|
|
784
|
+
border: none;
|
|
785
|
+
cursor: pointer;
|
|
786
|
+
font-size: 1.3rem;
|
|
787
|
+
color: #444;
|
|
788
|
+
transition:
|
|
789
|
+
color 0.2s ease,
|
|
790
|
+
transform 0.2s ease;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.iconButton:hover {
|
|
794
|
+
color: #0070f3;
|
|
795
|
+
transform: scale(1.1);
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.outputWrapper {
|
|
799
|
+
display: flex;
|
|
800
|
+
align-items: center;
|
|
801
|
+
gap: 0.75rem;
|
|
802
|
+
margin-top: 0.5rem;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
.output {
|
|
806
|
+
flex: 1;
|
|
807
|
+
padding: 1rem;
|
|
808
|
+
border: 1px solid #ddd;
|
|
809
|
+
border-radius: 8px;
|
|
810
|
+
background: #f9f9f9;
|
|
811
|
+
min-height: 60px;
|
|
812
|
+
font-size: 1rem;
|
|
813
|
+
line-height: 1.4;
|
|
814
|
+
color: #222;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
.tabHeader {
|
|
818
|
+
display: flex;
|
|
819
|
+
justify-content: center;
|
|
820
|
+
align-items: stretch;
|
|
821
|
+
margin-bottom: 1rem;
|
|
822
|
+
border-bottom: 2px solid #ddd;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
.tabButton {
|
|
826
|
+
flex: 1;
|
|
827
|
+
text-align: center;
|
|
828
|
+
padding: 0.75rem 1rem;
|
|
829
|
+
font-size: 1rem;
|
|
830
|
+
font-weight: 500;
|
|
831
|
+
background: var(--background);
|
|
832
|
+
color: var(--foreground);
|
|
833
|
+
border: none;
|
|
834
|
+
border-bottom: 3px solid transparent;
|
|
835
|
+
cursor: pointer;
|
|
836
|
+
transition: all 0.2s ease-in-out;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.tabButton:hover {
|
|
840
|
+
background: rgba(0, 0, 0, 0.05);
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
.active {
|
|
844
|
+
border-bottom: 3px solid var(--primary);
|
|
845
|
+
color: var(--primary);
|
|
846
|
+
font-weight: 600;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
.tabContent {
|
|
850
|
+
padding: 1.5rem;
|
|
851
|
+
border: 1px solid #ddd;
|
|
852
|
+
border-radius: 0 0 10px 10px;
|
|
853
|
+
background: var(--background);
|
|
854
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
.container {
|
|
858
|
+
display: flex;
|
|
859
|
+
flex-direction: column;
|
|
860
|
+
gap: 1.25rem;
|
|
861
|
+
max-width: 700px;
|
|
862
|
+
margin: 0 auto;
|
|
863
|
+
padding: 1rem;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
.field {
|
|
867
|
+
display: flex;
|
|
868
|
+
flex-direction: column;
|
|
869
|
+
gap: 0.5rem;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.label {
|
|
873
|
+
font-weight: 600;
|
|
874
|
+
color: #222;
|
|
875
|
+
font-size: 0.95rem;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.select,
|
|
879
|
+
.textarea {
|
|
880
|
+
width: 100%;
|
|
881
|
+
padding: 0.75rem;
|
|
882
|
+
font-size: 1rem;
|
|
883
|
+
border: 1px solid #ccc;
|
|
884
|
+
border-radius: 8px;
|
|
885
|
+
transition:
|
|
886
|
+
border-color 0.2s ease,
|
|
887
|
+
box-shadow 0.2s ease;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
.textarea {
|
|
891
|
+
min-height: 120px;
|
|
892
|
+
resize: vertical;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.select:focus,
|
|
896
|
+
.textarea:focus {
|
|
897
|
+
outline: none;
|
|
898
|
+
border-color: #0070f3;
|
|
899
|
+
box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.2);
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
.button {
|
|
903
|
+
padding: 0.7rem 1.4rem;
|
|
904
|
+
font-size: 1rem;
|
|
905
|
+
border: none;
|
|
906
|
+
border-radius: 8px;
|
|
907
|
+
background: #0070f3;
|
|
908
|
+
color: #fff;
|
|
909
|
+
cursor: pointer;
|
|
910
|
+
font-weight: 500;
|
|
911
|
+
align-self: flex-start;
|
|
912
|
+
transition: background 0.2s ease;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
.button:hover {
|
|
916
|
+
background: #0059c1;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.textareaWrapper {
|
|
920
|
+
display: flex;
|
|
921
|
+
align-items: center;
|
|
922
|
+
gap: 0.5rem;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.iconButton {
|
|
926
|
+
background: transparent;
|
|
927
|
+
border: none;
|
|
928
|
+
cursor: pointer;
|
|
929
|
+
font-size: 1.3rem;
|
|
930
|
+
color: #444;
|
|
931
|
+
transition:
|
|
932
|
+
color 0.2s ease,
|
|
933
|
+
transform 0.2s ease;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.iconButton:hover {
|
|
937
|
+
color: #0070f3;
|
|
938
|
+
transform: scale(1.1);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.outputWrapper {
|
|
942
|
+
display: flex;
|
|
943
|
+
align-items: center;
|
|
944
|
+
gap: 0.75rem;
|
|
945
|
+
margin-top: 0.5rem;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.output {
|
|
949
|
+
flex: 1;
|
|
950
|
+
padding: 1rem;
|
|
951
|
+
border: 1px solid #ddd;
|
|
952
|
+
border-radius: 8px;
|
|
953
|
+
background: #f9f9f9;
|
|
954
|
+
min-height: 60px;
|
|
955
|
+
font-size: 1rem;
|
|
956
|
+
line-height: 1.4;
|
|
957
|
+
color: #222;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
.lang-button {
|
|
961
|
+
padding: 8px 16px;
|
|
962
|
+
margin-left: 0.75rem;
|
|
963
|
+
background: linear-gradient(to right, #10b981, #059669);
|
|
964
|
+
color: white;
|
|
965
|
+
font-weight: bold;
|
|
966
|
+
border: none;
|
|
967
|
+
border-radius: 6px;
|
|
968
|
+
cursor: pointer;
|
|
969
|
+
transition:
|
|
970
|
+
background 0.3s ease,
|
|
971
|
+
transform 0.2s ease;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
.lang-button:hover {
|
|
975
|
+
background: linear-gradient(to right, #059669, #047857);
|
|
976
|
+
transform: translateY(-1px);
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
.lang-button:active {
|
|
980
|
+
transform: scale(0.97);
|
|
981
|
+
}
|