turbowrap-issue-widget 0.1.0 → 0.1.2

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.
@@ -2,7 +2,7 @@ export interface WidgetConfig {
2
2
  apiUrl: string;
3
3
  apiKey: string;
4
4
  teamId: string;
5
- position?: 'bottom-right' | 'bottom-left';
5
+ position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
6
6
  theme?: 'light' | 'dark' | 'auto';
7
7
  buttonText?: string;
8
8
  accentColor?: string;
@@ -5098,7 +5098,7 @@ const Jc = `
5098
5098
  .iw-trigger {
5099
5099
  position: fixed;
5100
5100
  z-index: 2147483647;
5101
- padding: 14px 24px;
5101
+ padding: 14px;
5102
5102
  border-radius: 50px;
5103
5103
  background: linear-gradient(135deg, var(--iw-accent) 0%, #8b5cf6 100%);
5104
5104
  color: white;
@@ -5110,15 +5110,30 @@ const Jc = `
5110
5110
  font-weight: 500;
5111
5111
  display: flex;
5112
5112
  align-items: center;
5113
- gap: 8px;
5114
- transition: all 0.2s ease;
5113
+ gap: 0;
5114
+ overflow: hidden;
5115
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
5116
+ }
5117
+
5118
+ .iw-trigger span {
5119
+ max-width: 0;
5120
+ opacity: 0;
5121
+ white-space: nowrap;
5122
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
5115
5123
  }
5116
5124
 
5117
5125
  .iw-trigger:hover {
5126
+ padding: 14px 20px;
5127
+ gap: 8px;
5118
5128
  transform: translateY(-2px);
5119
5129
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
5120
5130
  }
5121
5131
 
5132
+ .iw-trigger:hover span {
5133
+ max-width: 150px;
5134
+ opacity: 1;
5135
+ }
5136
+
5122
5137
  .iw-trigger.bottom-right {
5123
5138
  bottom: 24px;
5124
5139
  right: 24px;
@@ -5129,6 +5144,16 @@ const Jc = `
5129
5144
  left: 24px;
5130
5145
  }
5131
5146
 
5147
+ .iw-trigger.top-right {
5148
+ top: 24px;
5149
+ right: 24px;
5150
+ }
5151
+
5152
+ .iw-trigger.top-left {
5153
+ top: 24px;
5154
+ left: 24px;
5155
+ }
5156
+
5132
5157
  .iw-trigger svg {
5133
5158
  width: 18px;
5134
5159
  height: 18px;
@@ -5186,6 +5211,16 @@ const Jc = `
5186
5211
  left: 24px;
5187
5212
  }
5188
5213
 
5214
+ .iw-modal.top-right {
5215
+ top: 100px;
5216
+ right: 24px;
5217
+ }
5218
+
5219
+ .iw-modal.top-left {
5220
+ top: 100px;
5221
+ left: 24px;
5222
+ }
5223
+
5189
5224
  .iw-header {
5190
5225
  display: flex;
5191
5226
  align-items: center;
@@ -5491,7 +5526,10 @@ const Jc = `
5491
5526
  }
5492
5527
 
5493
5528
  .iw-modal.bottom-right,
5494
- .iw-modal.bottom-left {
5529
+ .iw-modal.bottom-left,
5530
+ .iw-modal.top-right,
5531
+ .iw-modal.top-left {
5532
+ top: 0;
5495
5533
  bottom: 0;
5496
5534
  left: 0;
5497
5535
  right: 0;