@segmentify/ui 0.0.47 → 0.0.48

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.
@@ -0,0 +1,34 @@
1
+ export type MessageFormat = 'TEXT' | 'IMAGE';
2
+ export type MessageButtonType = 'URL' | 'PHONE_NUMBER' | 'QUICK_REPLY';
3
+ export type MessageButton = {
4
+ text: string;
5
+ type?: MessageButtonType;
6
+ url?: string;
7
+ };
8
+ export type MessageHeader = {
9
+ format: MessageFormat;
10
+ text?: string;
11
+ image?: string;
12
+ };
13
+ export type MessageBody = {
14
+ text: string;
15
+ };
16
+ export type MessageFooter = {
17
+ text: string;
18
+ };
19
+ export type MessageCarouselCard = {
20
+ body: {
21
+ text: string;
22
+ };
23
+ buttons: MessageButton[];
24
+ header?: MessageHeader;
25
+ };
26
+ export type MessagingPhoneProps = {
27
+ header?: MessageHeader;
28
+ body: MessageBody;
29
+ footer?: MessageFooter;
30
+ buttons?: MessageButton[];
31
+ carousel?: {
32
+ cards: MessageCarouselCard[];
33
+ };
34
+ };
package/dist/ui.css CHANGED
@@ -36,11 +36,13 @@
36
36
  --ui-color-rose-600: oklch(58.6% 0.253 17.585);
37
37
  --ui-color-slate-50: oklch(98.4% 0.003 247.858);
38
38
  --ui-color-slate-200: oklch(92.9% 0.013 255.508);
39
+ --ui-color-gray-100: #f4f5f7;
39
40
  --ui-color-gray-200: #e5e7eb;
40
41
  --ui-color-gray-300: #d2d6dc;
41
42
  --ui-color-gray-400: #9fa6b2;
42
43
  --ui-color-gray-500: #6b7280;
43
44
  --ui-color-gray-600: #4b5563;
45
+ --ui-color-gray-800: #252f3f;
44
46
  --ui-color-zinc-50: oklch(98.5% 0 0);
45
47
  --ui-color-neutral-500: oklch(55.6% 0 0);
46
48
  --ui-color-neutral-700: oklch(37.1% 0 0);
@@ -118,6 +120,7 @@
118
120
  --ui-color-kashmir-blue-200: #d1dbe6;
119
121
  --ui-color-kashmir-blue-500: #547494;
120
122
  --ui-color-kashmir-blue-600: #466283;
123
+ --ui-color-gray-650: #0a0a0a;
121
124
  --ui-color-black-250: #71717a;
122
125
  --ui-color-black-900: #09090b;
123
126
  --ui-color-black-950: #18181b;
@@ -170,6 +173,12 @@
170
173
  .ui\:inset-y-0 {
171
174
  inset-block: calc(var(--ui-spacing) * 0);
172
175
  }
176
+ .ui\:-start-\[17px\] {
177
+ inset-inline-start: calc(17px * -1);
178
+ }
179
+ .ui\:-end-\[17px\] {
180
+ inset-inline-end: calc(17px * -1);
181
+ }
173
182
  .ui\:-top-12 {
174
183
  top: calc(var(--ui-spacing) * -12);
175
184
  }
@@ -194,6 +203,15 @@
194
203
  .ui\:top-\[50\%\] {
195
204
  top: 50%;
196
205
  }
206
+ .ui\:top-\[124px\] {
207
+ top: 124px;
208
+ }
209
+ .ui\:top-\[142px\] {
210
+ top: 142px;
211
+ }
212
+ .ui\:top-\[178px\] {
213
+ top: 178px;
214
+ }
197
215
  .ui\:-right-12 {
198
216
  right: calc(var(--ui-spacing) * -12);
199
217
  }
@@ -221,6 +239,9 @@
221
239
  .ui\:bottom-4 {
222
240
  bottom: calc(var(--ui-spacing) * 4);
223
241
  }
242
+ .ui\:bottom-\[40px\] {
243
+ bottom: 40px;
244
+ }
224
245
  .ui\:-left-12 {
225
246
  left: calc(var(--ui-spacing) * -12);
226
247
  }
@@ -236,6 +257,9 @@
236
257
  .ui\:left-5 {
237
258
  left: calc(var(--ui-spacing) * 5);
238
259
  }
260
+ .ui\:left-\[5\%\] {
261
+ left: 5%;
262
+ }
239
263
  .ui\:left-\[50\%\] {
240
264
  left: 50%;
241
265
  }
@@ -530,12 +554,27 @@
530
554
  .ui\:h-\[1\.15rem\] {
531
555
  height: 1.15rem;
532
556
  }
557
+ .ui\:h-\[18px\] {
558
+ height: 18px;
559
+ }
560
+ .ui\:h-\[46px\] {
561
+ height: 46px;
562
+ }
563
+ .ui\:h-\[64px\] {
564
+ height: 64px;
565
+ }
533
566
  .ui\:h-\[120px\] {
534
567
  height: 120px;
535
568
  }
536
569
  .ui\:h-\[200px\] {
537
570
  height: 200px;
538
571
  }
572
+ .ui\:h-\[572px\] {
573
+ height: 572px;
574
+ }
575
+ .ui\:h-\[600px\] {
576
+ height: 600px;
577
+ }
539
578
  .ui\:h-\[calc\(--spacing\(5\.5\)\)\] {
540
579
  height: calc(calc(var(--ui-spacing) * 5.5));
541
580
  }
@@ -572,6 +611,9 @@
572
611
  .ui\:max-h-\[80vh\] {
573
612
  max-height: 80vh;
574
613
  }
614
+ .ui\:max-h-\[100px\] {
615
+ max-height: 100px;
616
+ }
575
617
  .ui\:max-h-\[300px\] {
576
618
  max-height: 300px;
577
619
  }
@@ -662,9 +704,15 @@
662
704
  .ui\:w-80 {
663
705
  width: calc(var(--ui-spacing) * 80);
664
706
  }
707
+ .ui\:w-\[3px\] {
708
+ width: 3px;
709
+ }
665
710
  .ui\:w-\[100px\] {
666
711
  width: 100px;
667
712
  }
713
+ .ui\:w-\[148px\] {
714
+ width: 148px;
715
+ }
668
716
  .ui\:w-\[180px\] {
669
717
  width: 180px;
670
718
  }
@@ -674,12 +722,21 @@
674
722
  .ui\:w-\[240px\] {
675
723
  width: 240px;
676
724
  }
725
+ .ui\:w-\[272px\] {
726
+ width: 272px;
727
+ }
677
728
  .ui\:w-\[280px\] {
678
729
  width: 280px;
679
730
  }
731
+ .ui\:w-\[300px\] {
732
+ width: 300px;
733
+ }
680
734
  .ui\:w-\[350px\] {
681
735
  width: 350px;
682
736
  }
737
+ .ui\:w-\[calc\(100\%-10\%\)\] {
738
+ width: calc(100% - 10%);
739
+ }
683
740
  .ui\:w-auto {
684
741
  width: auto;
685
742
  }
@@ -719,6 +776,9 @@
719
776
  .ui\:max-w-96 {
720
777
  max-width: calc(var(--ui-spacing) * 96);
721
778
  }
779
+ .ui\:max-w-\[90\%\] {
780
+ max-width: 90%;
781
+ }
722
782
  .ui\:max-w-\[200px\] {
723
783
  max-width: 200px;
724
784
  }
@@ -770,9 +830,15 @@
770
830
  .ui\:min-w-\[calc\(var\(--anchor-width\)\+--spacing\(7\)\)\] {
771
831
  min-width: calc(var(--anchor-width) + calc(var(--ui-spacing) * 7));
772
832
  }
833
+ .ui\:flex-0 {
834
+ flex: 0;
835
+ }
773
836
  .ui\:flex-1 {
774
837
  flex: 1;
775
838
  }
839
+ .ui\:flex-shrink-0 {
840
+ flex-shrink: 0;
841
+ }
776
842
  .ui\:shrink-0 {
777
843
  flex-shrink: 0;
778
844
  }
@@ -1058,9 +1124,15 @@
1058
1124
  .ui\:rounded {
1059
1125
  border-radius: 0.25rem;
1060
1126
  }
1127
+ .ui\:rounded-\[2\.5rem\] {
1128
+ border-radius: 2.5rem;
1129
+ }
1061
1130
  .ui\:rounded-\[2px\] {
1062
1131
  border-radius: 2px;
1063
1132
  }
1133
+ .ui\:rounded-\[2rem\] {
1134
+ border-radius: 2rem;
1135
+ }
1064
1136
  .ui\:rounded-\[4px\] {
1065
1137
  border-radius: 4px;
1066
1138
  }
@@ -1100,6 +1172,14 @@
1100
1172
  .ui\:rounded-xs {
1101
1173
  border-radius: var(--ui-radius-xs);
1102
1174
  }
1175
+ .ui\:rounded-s-lg {
1176
+ border-start-start-radius: var(--ui-radius-lg);
1177
+ border-end-start-radius: var(--ui-radius-lg);
1178
+ }
1179
+ .ui\:rounded-e-lg {
1180
+ border-start-end-radius: var(--ui-radius-lg);
1181
+ border-end-end-radius: var(--ui-radius-lg);
1182
+ }
1103
1183
  .ui\:rounded-t-\[10px\] {
1104
1184
  border-top-left-radius: 10px;
1105
1185
  border-top-right-radius: 10px;
@@ -1108,10 +1188,17 @@
1108
1188
  border-top-left-radius: var(--ui-radius-md);
1109
1189
  border-bottom-left-radius: var(--ui-radius-md);
1110
1190
  }
1191
+ .ui\:rounded-tl-none {
1192
+ border-top-left-radius: 0;
1193
+ }
1111
1194
  .ui\:rounded-r-md {
1112
1195
  border-top-right-radius: var(--ui-radius-md);
1113
1196
  border-bottom-right-radius: var(--ui-radius-md);
1114
1197
  }
1198
+ .ui\:rounded-b-\[1rem\] {
1199
+ border-bottom-right-radius: 1rem;
1200
+ border-bottom-left-radius: 1rem;
1201
+ }
1115
1202
  .ui\:rounded-b-lg {
1116
1203
  border-bottom-right-radius: var(--ui-radius-lg);
1117
1204
  border-bottom-left-radius: var(--ui-radius-lg);
@@ -1136,6 +1223,10 @@
1136
1223
  border-style: var(--tw-border-style);
1137
1224
  border-width: 1.5px;
1138
1225
  }
1226
+ .ui\:border-\[14px\] {
1227
+ border-style: var(--tw-border-style);
1228
+ border-width: 14px;
1229
+ }
1139
1230
  .ui\:border-y {
1140
1231
  border-block-style: var(--tw-border-style);
1141
1232
  border-block-width: 1px;
@@ -1195,6 +1286,12 @@
1195
1286
  .ui\:border-gray-200 {
1196
1287
  border-color: var(--ui-color-gray-200);
1197
1288
  }
1289
+ .ui\:border-gray-300 {
1290
+ border-color: var(--ui-color-gray-300);
1291
+ }
1292
+ .ui\:border-gray-800 {
1293
+ border-color: var(--ui-color-gray-800);
1294
+ }
1198
1295
  .ui\:border-green-200 {
1199
1296
  border-color: var(--ui-color-green-200);
1200
1297
  }
@@ -1315,12 +1412,18 @@
1315
1412
  .ui\:bg-foreground {
1316
1413
  background-color: var(--ui-color-foreground);
1317
1414
  }
1415
+ .ui\:bg-gray-100 {
1416
+ background-color: var(--ui-color-gray-100);
1417
+ }
1318
1418
  .ui\:bg-gray-200 {
1319
1419
  background-color: var(--ui-color-gray-200);
1320
1420
  }
1321
1421
  .ui\:bg-gray-500 {
1322
1422
  background-color: var(--ui-color-gray-500);
1323
1423
  }
1424
+ .ui\:bg-gray-800 {
1425
+ background-color: var(--ui-color-gray-800);
1426
+ }
1324
1427
  .ui\:bg-green-50 {
1325
1428
  background-color: var(--ui-color-green-50);
1326
1429
  }
@@ -1459,6 +1562,9 @@
1459
1562
  .ui\:bg-yellow-500 {
1460
1563
  background-color: var(--ui-color-yellow-500);
1461
1564
  }
1565
+ .ui\:bg-whatsapp-bg {
1566
+ background-image: var(--image-whatsapp-bg);
1567
+ }
1462
1568
  .ui\:bg-clip-padding {
1463
1569
  background-clip: padding-box;
1464
1570
  }
@@ -1733,6 +1839,9 @@
1733
1839
  .ui\:whitespace-nowrap {
1734
1840
  white-space: nowrap;
1735
1841
  }
1842
+ .ui\:whitespace-pre-line {
1843
+ white-space: pre-line;
1844
+ }
1736
1845
  .ui\:text-accent-foreground {
1737
1846
  color: var(--ui-color-accent-foreground);
1738
1847
  }
@@ -1760,6 +1869,9 @@
1760
1869
  .ui\:text-black-950\! {
1761
1870
  color: var(--ui-color-black-950) !important;
1762
1871
  }
1872
+ .ui\:text-blue-500 {
1873
+ color: var(--ui-color-blue-500);
1874
+ }
1763
1875
  .ui\:text-blue-600 {
1764
1876
  color: var(--ui-color-blue-600);
1765
1877
  }
@@ -1790,12 +1902,18 @@
1790
1902
  .ui\:text-foreground {
1791
1903
  color: var(--ui-color-foreground);
1792
1904
  }
1905
+ .ui\:text-gray-400 {
1906
+ color: var(--ui-color-gray-400);
1907
+ }
1793
1908
  .ui\:text-gray-500 {
1794
1909
  color: var(--ui-color-gray-500);
1795
1910
  }
1796
1911
  .ui\:text-gray-600 {
1797
1912
  color: var(--ui-color-gray-600);
1798
1913
  }
1914
+ .ui\:text-gray-650 {
1915
+ color: var(--ui-color-gray-650);
1916
+ }
1799
1917
  .ui\:text-green-700 {
1800
1918
  color: var(--ui-color-green-700);
1801
1919
  }
@@ -4199,6 +4317,11 @@
4199
4317
  grid-template-columns: repeat(3, minmax(0, 1fr));
4200
4318
  }
4201
4319
  }
4320
+ .ui\:dark\:border-gray-800 {
4321
+ &:is(.dark *) {
4322
+ border-color: var(--ui-color-gray-800);
4323
+ }
4324
+ }
4202
4325
  .ui\:dark\:bg-input\/30 {
4203
4326
  &:is(.dark *) {
4204
4327
  background-color: var(--ui-color-input);
@@ -5012,6 +5135,7 @@
5012
5135
  --ui-sidebar-accent-foreground: 6 87% 61%;
5013
5136
  --ui-sidebar-border: 220 13% 91%;
5014
5137
  --ui-sidebar-ring: 217.2 91.2% 59.8%;
5138
+ --image-whatsapp-bg: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
5015
5139
  }
5016
5140
  .dark {
5017
5141
  --ui-background: 0 0% 3.9%;
@@ -5042,6 +5166,7 @@
5042
5166
  --ui-sidebar-accent-foreground: 240 4.8% 95.9%;
5043
5167
  --ui-sidebar-border: 240 3.7% 15.9%;
5044
5168
  --ui-sidebar-ring: 217.2 91.2% 59.8%;
5169
+ --image-whatsapp-bg: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
5045
5170
  }
5046
5171
  }
5047
5172
  @layer base {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@segmentify/ui",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "A collection of reusable React UI components built with Tailwind CSS and Radix UI",
5
5
  "repository": {
6
6
  "type": "git",