ct-rich-text-editor 1.2.6 → 1.2.7

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.
@@ -620,10 +620,18 @@ video {
620
620
  bottom: 0px;
621
621
  }
622
622
 
623
+ .cteditor-bottom-3\/4{
624
+ bottom: 75%;
625
+ }
626
+
623
627
  .cteditor-left-0{
624
628
  left: 0px;
625
629
  }
626
630
 
631
+ .cteditor-left-1\/2{
632
+ left: 50%;
633
+ }
634
+
627
635
  .cteditor-left-2{
628
636
  left: 0.5rem;
629
637
  }
@@ -668,10 +676,18 @@ video {
668
676
  top: 50%;
669
677
  }
670
678
 
679
+ .cteditor-top-full{
680
+ top: 100%;
681
+ }
682
+
671
683
  .\!cteditor-z-\[99999\]{
672
684
  z-index: 99999 !important;
673
685
  }
674
686
 
687
+ .cteditor-z-50{
688
+ z-index: 50;
689
+ }
690
+
675
691
  .cteditor-z-\[9999\]{
676
692
  z-index: 9999;
677
693
  }
@@ -724,6 +740,10 @@ video {
724
740
  margin-bottom: 1rem;
725
741
  }
726
742
 
743
+ .cteditor-ml-1{
744
+ margin-left: 0.25rem;
745
+ }
746
+
727
747
  .cteditor-ml-2{
728
748
  margin-left: 0.5rem;
729
749
  }
@@ -772,6 +792,10 @@ video {
772
792
  margin-top: 1.5rem;
773
793
  }
774
794
 
795
+ .cteditor-box-border{
796
+ box-sizing: border-box;
797
+ }
798
+
775
799
  .\!cteditor-block{
776
800
  display: block !important;
777
801
  }
@@ -819,6 +843,11 @@ video {
819
843
  height: 18px !important;
820
844
  }
821
845
 
846
+ .cteditor-size-9{
847
+ width: 2.25rem;
848
+ height: 2.25rem;
849
+ }
850
+
822
851
  .cteditor-size-\[18px\]{
823
852
  width: 18px;
824
853
  height: 18px;
@@ -916,10 +945,6 @@ video {
916
945
  max-height: 400px;
917
946
  }
918
947
 
919
- .cteditor-max-h-\[500px\]{
920
- max-height: 500px;
921
- }
922
-
923
948
  .cteditor-max-h-\[var\(--radix-dropdown-menu-content-available-height\)\]{
924
949
  max-height: var(--radix-dropdown-menu-content-available-height);
925
950
  }
@@ -1060,6 +1085,10 @@ video {
1060
1085
  min-width: 0px;
1061
1086
  }
1062
1087
 
1088
+ .cteditor-min-w-56{
1089
+ min-width: 14rem;
1090
+ }
1091
+
1063
1092
  .cteditor-min-w-\[180px\]{
1064
1093
  min-width: 180px;
1065
1094
  }
@@ -1120,6 +1149,11 @@ video {
1120
1149
  transform-origin: var(--radix-tooltip-content-transform-origin);
1121
1150
  }
1122
1151
 
1152
+ .-cteditor-translate-x-1\/2{
1153
+ --tw-translate-x: -50%;
1154
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1155
+ }
1156
+
1123
1157
  .-cteditor-translate-y-1\/2{
1124
1158
  --tw-translate-y: -50%;
1125
1159
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
@@ -1135,6 +1169,23 @@ video {
1135
1169
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1136
1170
  }
1137
1171
 
1172
+ .cteditor-scale-150{
1173
+ --tw-scale-x: 1.5;
1174
+ --tw-scale-y: 1.5;
1175
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1176
+ }
1177
+
1178
+ @keyframes cteditor-spin{
1179
+
1180
+ to{
1181
+ transform: rotate(360deg);
1182
+ }
1183
+ }
1184
+
1185
+ .cteditor-animate-spin{
1186
+ animation: cteditor-spin 1s linear infinite;
1187
+ }
1188
+
1138
1189
  .cteditor-cursor-pointer{
1139
1190
  cursor: pointer;
1140
1191
  }
@@ -1383,6 +1434,10 @@ video {
1383
1434
  border-color: rgb(224 224 224 / var(--tw-border-opacity, 1));
1384
1435
  }
1385
1436
 
1437
+ .cteditor-border-accent{
1438
+ border-color: hsl(var(--cteditorf47ac10b-accent));
1439
+ }
1440
+
1386
1441
  .cteditor-border-amber-200{
1387
1442
  --tw-border-opacity: 1;
1388
1443
  border-color: rgb(253 230 138 / var(--tw-border-opacity, 1));
@@ -1406,6 +1461,10 @@ video {
1406
1461
  border-color: hsl(var(--cteditorf47ac10b-foreground) / 0.15);
1407
1462
  }
1408
1463
 
1464
+ .cteditor-border-foreground\/5{
1465
+ border-color: hsl(var(--cteditorf47ac10b-foreground) / 0.05);
1466
+ }
1467
+
1409
1468
  .cteditor-border-gray-200{
1410
1469
  --tw-border-opacity: 1;
1411
1470
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
@@ -1704,6 +1763,11 @@ video {
1704
1763
  padding-right: 0.25rem;
1705
1764
  }
1706
1765
 
1766
+ .cteditor-px-1\.5{
1767
+ padding-left: 0.375rem;
1768
+ padding-right: 0.375rem;
1769
+ }
1770
+
1707
1771
  .cteditor-px-2{
1708
1772
  padding-left: 0.5rem;
1709
1773
  padding-right: 0.5rem;
@@ -1876,6 +1940,10 @@ video {
1876
1940
  font-weight: 600;
1877
1941
  }
1878
1942
 
1943
+ .cteditor-uppercase{
1944
+ text-transform: uppercase;
1945
+ }
1946
+
1879
1947
  .cteditor-capitalize{
1880
1948
  text-transform: capitalize;
1881
1949
  }
@@ -1896,6 +1964,10 @@ video {
1896
1964
  letter-spacing: -0.025em;
1897
1965
  }
1898
1966
 
1967
+ .cteditor-tracking-wide{
1968
+ letter-spacing: 0.025em;
1969
+ }
1970
+
1899
1971
  .cteditor-tracking-widest{
1900
1972
  letter-spacing: 0.1em;
1901
1973
  }
@@ -2163,6 +2235,10 @@ video {
2163
2235
  transition-duration: 150ms;
2164
2236
  }
2165
2237
 
2238
+ .cteditor-duration-150{
2239
+ transition-duration: 150ms;
2240
+ }
2241
+
2166
2242
  .cteditor-duration-200{
2167
2243
  transition-duration: 200ms;
2168
2244
  }
@@ -2205,6 +2281,10 @@ video {
2205
2281
  --tw-enter-scale: .95;
2206
2282
  }
2207
2283
 
2284
+ .cteditor-duration-150{
2285
+ animation-duration: 150ms;
2286
+ }
2287
+
2208
2288
  .cteditor-duration-200{
2209
2289
  animation-duration: 200ms;
2210
2290
  }
@@ -2402,6 +2482,16 @@ body .ai-chat-popup .ai-chat-input {
2402
2482
  color: hsl(var(--cteditorf47ac10b-muted-foreground));
2403
2483
  }
2404
2484
 
2485
+ .checked\:cteditor-border-blue-600:checked{
2486
+ --tw-border-opacity: 1;
2487
+ border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));
2488
+ }
2489
+
2490
+ .checked\:cteditor-bg-blue-600:checked{
2491
+ --tw-bg-opacity: 1;
2492
+ background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
2493
+ }
2494
+
2405
2495
  .empty\:before\:cteditor-text-muted-foreground\/60:empty::before{
2406
2496
  content: var(--tw-content);
2407
2497
  color: hsl(var(--cteditorf47ac10b-muted-foreground) / 0.6);
@@ -2424,6 +2514,11 @@ body .ai-chat-popup .ai-chat-input {
2424
2514
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
2425
2515
  }
2426
2516
 
2517
+ .hover\:cteditor-border-blue-500:hover{
2518
+ --tw-border-opacity: 1;
2519
+ border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
2520
+ }
2521
+
2427
2522
  .hover\:cteditor-border-primary:hover{
2428
2523
  border-color: hsl(var(--cteditorf47ac10b-primary));
2429
2524
  }
@@ -2468,6 +2563,10 @@ body .ai-chat-popup .ai-chat-input {
2468
2563
  background-color: hsl(var(--cteditorf47ac10b-destructive) / 0.9);
2469
2564
  }
2470
2565
 
2566
+ .hover\:cteditor-bg-foreground\/5:hover{
2567
+ background-color: hsl(var(--cteditorf47ac10b-foreground) / 0.05);
2568
+ }
2569
+
2471
2570
  .hover\:cteditor-bg-gray-300:hover{
2472
2571
  --tw-bg-opacity: 1;
2473
2572
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
@@ -2536,6 +2635,11 @@ body .ai-chat-popup .ai-chat-input {
2536
2635
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
2537
2636
  }
2538
2637
 
2638
+ .focus\:cteditor-border-blue-500:focus{
2639
+ --tw-border-opacity: 1;
2640
+ border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
2641
+ }
2642
+
2539
2643
  .focus\:cteditor-border-primary\/60:focus{
2540
2644
  border-color: hsl(var(--cteditorf47ac10b-primary) / 0.6);
2541
2645
  }
@@ -2620,6 +2724,10 @@ body .ai-chat-popup .ai-chat-input {
2620
2724
  opacity: 0.5;
2621
2725
  }
2622
2726
 
2727
+ .cteditor-peer:checked ~ .peer-checked\:cteditor-opacity-100{
2728
+ opacity: 1;
2729
+ }
2730
+
2623
2731
  .cteditor-peer:disabled ~ .peer-disabled\:cteditor-cursor-not-allowed{
2624
2732
  cursor: not-allowed;
2625
2733
  }
@@ -2982,6 +3090,37 @@ body .ai-chat-popup .ai-chat-input {
2982
3090
  }
2983
3091
  }
2984
3092
 
3093
+ .\[\&\>button\:hover\>span\]\:cteditor-bottom-full>button:hover>span{
3094
+ bottom: 100%;
3095
+ }
3096
+
3097
+ .\[\&\>button\:hover\>span\]\:cteditor-opacity-100>button:hover>span{
3098
+ opacity: 1;
3099
+ }
3100
+
3101
+ .\[\&\>button\>span\]\:cteditor-border>button>span{
3102
+ border-width: 1px;
3103
+ }
3104
+
3105
+ .\[\&\>button\>span\]\:cteditor-border-black>button>span{
3106
+ --tw-border-opacity: 1;
3107
+ border-color: rgb(0 0 0 / var(--tw-border-opacity, 1));
3108
+ }
3109
+
3110
+ .\[\&\>button\]\:cteditor-relative>button{
3111
+ position: relative;
3112
+ }
3113
+
3114
+ .\[\&\>button\]\:\!cteditor-size-6>button{
3115
+ width: 1.5rem !important;
3116
+ height: 1.5rem !important;
3117
+ }
3118
+
3119
+ .\[\&\>button\]\:cteditor-outline-none>button{
3120
+ outline: 2px solid transparent;
3121
+ outline-offset: 2px;
3122
+ }
3123
+
2985
3124
  .\[\&\>hr\]\:cteditor-h-\[2px\]>hr{
2986
3125
  height: 2px;
2987
3126
  }
@@ -2997,6 +3136,18 @@ body .ai-chat-popup .ai-chat-input {
2997
3136
  -webkit-line-clamp: 1;
2998
3137
  }
2999
3138
 
3139
+ .\[\&\>span\]\:checked\:cteditor-opacity-100:checked>span{
3140
+ opacity: 1;
3141
+ }
3142
+
3143
+ .\[\&\>span\]\:hover\:cteditor-bottom-full:hover>span{
3144
+ bottom: 100%;
3145
+ }
3146
+
3147
+ .\[\&\>span\]\:hover\:cteditor-opacity-100:hover>span{
3148
+ opacity: 1;
3149
+ }
3150
+
3000
3151
  .\[\&\>svg\]\:\!cteditor-size-4>svg{
3001
3152
  width: 1rem !important;
3002
3153
  height: 1rem !important;
@@ -3017,22 +3168,6 @@ body .ai-chat-popup .ai-chat-input {
3017
3168
  height: 1.25rem;
3018
3169
  }
3019
3170
 
3020
- .\[\&\>svg\]\:cteditor-h-4>svg{
3021
- height: 1rem;
3022
- }
3023
-
3024
- .\[\&\>svg\]\:cteditor-w-4>svg{
3025
- width: 1rem;
3026
- }
3027
-
3028
- .\[\&\>svg\]\:cteditor-w-5>svg{
3029
- width: 1.25rem;
3030
- }
3031
-
3032
- .\[\&\>svg\]\:cteditor-w-6>svg{
3033
- width: 1.5rem;
3034
- }
3035
-
3036
3171
  .\[\&\>svg\]\:cteditor-shrink-0>svg{
3037
3172
  flex-shrink: 0;
3038
3173
  }
@@ -3254,6 +3389,8 @@ body .ai-chat-popup .ai-chat-input {
3254
3389
  .ol1 {
3255
3390
  padding: 0;
3256
3391
  margin: 0;
3392
+ /* Ensure numbers show even if global CSS resets them */
3393
+ list-style-type: decimal;
3257
3394
  list-style-position: inside;
3258
3395
  }
3259
3396
 
@@ -3288,6 +3425,8 @@ body .ai-chat-popup .ai-chat-input {
3288
3425
  .ul {
3289
3426
  padding: 0;
3290
3427
  margin: 0;
3428
+ /* Ensure bullets render despite resets */
3429
+ list-style-type: disc;
3291
3430
  list-style-position: inside;
3292
3431
  }
3293
3432
 
@@ -3977,6 +4116,8 @@ body .ai-chat-popup .ai-chat-input {
3977
4116
  .PlaygroundEditorTheme__ol1 {
3978
4117
  padding: 0;
3979
4118
  margin: 0;
4119
+ /* Ensure default numbering shows even if a global reset removes it */
4120
+ list-style-type: decimal;
3980
4121
  list-style-position: outside;
3981
4122
  }
3982
4123
 
@@ -4011,6 +4152,8 @@ body .ai-chat-popup .ai-chat-input {
4011
4152
  .PlaygroundEditorTheme__ul {
4012
4153
  padding: 0;
4013
4154
  margin: 0;
4155
+ /* Ensure bullets show even if a global reset sets list-style: none */
4156
+ list-style-type: disc;
4014
4157
  list-style-position: outside;
4015
4158
  }
4016
4159
 
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+
3
+ /**
4
+ * Demo component to showcase auto-expanding height functionality
5
+ */
6
+ export declare const AutoExpandingDemo: React.FC;
7
+ export default AutoExpandingDemo;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Checkbox };
@@ -0,0 +1,15 @@
1
+ interface UseAutoExpandingHeightOptions {
2
+ minHeight?: number;
3
+ maxHeight?: number;
4
+ transitionDuration?: number;
5
+ }
6
+ export declare const useAutoExpandingHeight: ({ minHeight, maxHeight, transitionDuration }?: UseAutoExpandingHeightOptions) => {
7
+ height: number;
8
+ contentRef: import('react').RefObject<HTMLElement>;
9
+ style: {
10
+ height: string;
11
+ transition: string;
12
+ overflow: string;
13
+ };
14
+ };
15
+ export {};