@copilotz/chat-ui 0.1.0 → 0.1.4
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/README.md +405 -13
- package/dist/index.cjs +467 -133
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +38 -1
- package/dist/index.d.ts +38 -1
- package/dist/index.js +511 -174
- package/dist/index.js.map +1 -1
- package/dist/styles.css +260 -72
- package/package.json +7 -2
package/dist/styles.css
CHANGED
|
@@ -53,11 +53,13 @@
|
|
|
53
53
|
--tracking-wider: 0.05em;
|
|
54
54
|
--tracking-widest: 0.1em;
|
|
55
55
|
--leading-tight: 1.25;
|
|
56
|
+
--leading-snug: 1.375;
|
|
56
57
|
--radius-xs: 0.125rem;
|
|
57
58
|
--radius-sm: 0.25rem;
|
|
58
59
|
--radius-md: 0.375rem;
|
|
59
60
|
--radius-lg: 0.5rem;
|
|
60
61
|
--radius-xl: 0.75rem;
|
|
62
|
+
--radius-2xl: 1rem;
|
|
61
63
|
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
62
64
|
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
63
65
|
--animate-spin: spin 1s linear infinite;
|
|
@@ -271,6 +273,9 @@
|
|
|
271
273
|
.relative {
|
|
272
274
|
position: relative;
|
|
273
275
|
}
|
|
276
|
+
.static {
|
|
277
|
+
position: static;
|
|
278
|
+
}
|
|
274
279
|
.inset-0 {
|
|
275
280
|
inset: calc(var(--spacing) * 0);
|
|
276
281
|
}
|
|
@@ -310,6 +315,9 @@
|
|
|
310
315
|
.right-1 {
|
|
311
316
|
right: calc(var(--spacing) * 1);
|
|
312
317
|
}
|
|
318
|
+
.right-2 {
|
|
319
|
+
right: calc(var(--spacing) * 2);
|
|
320
|
+
}
|
|
313
321
|
.right-3 {
|
|
314
322
|
right: calc(var(--spacing) * 3);
|
|
315
323
|
}
|
|
@@ -355,6 +363,24 @@
|
|
|
355
363
|
.row-start-1 {
|
|
356
364
|
grid-row-start: 1;
|
|
357
365
|
}
|
|
366
|
+
.container {
|
|
367
|
+
width: 100%;
|
|
368
|
+
@media (width >= 40rem) {
|
|
369
|
+
max-width: 40rem;
|
|
370
|
+
}
|
|
371
|
+
@media (width >= 48rem) {
|
|
372
|
+
max-width: 48rem;
|
|
373
|
+
}
|
|
374
|
+
@media (width >= 64rem) {
|
|
375
|
+
max-width: 64rem;
|
|
376
|
+
}
|
|
377
|
+
@media (width >= 80rem) {
|
|
378
|
+
max-width: 80rem;
|
|
379
|
+
}
|
|
380
|
+
@media (width >= 96rem) {
|
|
381
|
+
max-width: 96rem;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
358
384
|
.m-auto {
|
|
359
385
|
margin: auto;
|
|
360
386
|
}
|
|
@@ -987,6 +1013,9 @@
|
|
|
987
1013
|
margin-bottom: 0;
|
|
988
1014
|
}
|
|
989
1015
|
}
|
|
1016
|
+
.-mt-2 {
|
|
1017
|
+
margin-top: calc(var(--spacing) * -2);
|
|
1018
|
+
}
|
|
990
1019
|
.mt-0 {
|
|
991
1020
|
margin-top: calc(var(--spacing) * 0);
|
|
992
1021
|
}
|
|
@@ -1002,8 +1031,8 @@
|
|
|
1002
1031
|
.mt-3 {
|
|
1003
1032
|
margin-top: calc(var(--spacing) * 3);
|
|
1004
1033
|
}
|
|
1005
|
-
.mt-
|
|
1006
|
-
margin-top: calc(var(--spacing) *
|
|
1034
|
+
.mt-4 {
|
|
1035
|
+
margin-top: calc(var(--spacing) * 4);
|
|
1007
1036
|
}
|
|
1008
1037
|
.mt-auto {
|
|
1009
1038
|
margin-top: auto;
|
|
@@ -1014,6 +1043,12 @@
|
|
|
1014
1043
|
.mr-2 {
|
|
1015
1044
|
margin-right: calc(var(--spacing) * 2);
|
|
1016
1045
|
}
|
|
1046
|
+
.mr-9 {
|
|
1047
|
+
margin-right: calc(var(--spacing) * 9);
|
|
1048
|
+
}
|
|
1049
|
+
.mr-11 {
|
|
1050
|
+
margin-right: calc(var(--spacing) * 11);
|
|
1051
|
+
}
|
|
1017
1052
|
.mb-0\.5 {
|
|
1018
1053
|
margin-bottom: calc(var(--spacing) * 0.5);
|
|
1019
1054
|
}
|
|
@@ -1029,8 +1064,8 @@
|
|
|
1029
1064
|
.mb-4 {
|
|
1030
1065
|
margin-bottom: calc(var(--spacing) * 4);
|
|
1031
1066
|
}
|
|
1032
|
-
.mb-
|
|
1033
|
-
margin-bottom: calc(var(--spacing) *
|
|
1067
|
+
.mb-8 {
|
|
1068
|
+
margin-bottom: calc(var(--spacing) * 8);
|
|
1034
1069
|
}
|
|
1035
1070
|
.-ml-1 {
|
|
1036
1071
|
margin-left: calc(var(--spacing) * -1);
|
|
@@ -1038,9 +1073,24 @@
|
|
|
1038
1073
|
.ml-1 {
|
|
1039
1074
|
margin-left: calc(var(--spacing) * 1);
|
|
1040
1075
|
}
|
|
1076
|
+
.ml-2 {
|
|
1077
|
+
margin-left: calc(var(--spacing) * 2);
|
|
1078
|
+
}
|
|
1079
|
+
.ml-9 {
|
|
1080
|
+
margin-left: calc(var(--spacing) * 9);
|
|
1081
|
+
}
|
|
1082
|
+
.ml-11 {
|
|
1083
|
+
margin-left: calc(var(--spacing) * 11);
|
|
1084
|
+
}
|
|
1041
1085
|
.ml-auto {
|
|
1042
1086
|
margin-left: auto;
|
|
1043
1087
|
}
|
|
1088
|
+
.line-clamp-2 {
|
|
1089
|
+
overflow: hidden;
|
|
1090
|
+
display: -webkit-box;
|
|
1091
|
+
-webkit-box-orient: vertical;
|
|
1092
|
+
-webkit-line-clamp: 2;
|
|
1093
|
+
}
|
|
1044
1094
|
.\!inline {
|
|
1045
1095
|
display: inline !important;
|
|
1046
1096
|
}
|
|
@@ -1139,8 +1189,8 @@
|
|
|
1139
1189
|
.h-12 {
|
|
1140
1190
|
height: calc(var(--spacing) * 12);
|
|
1141
1191
|
}
|
|
1142
|
-
.h-
|
|
1143
|
-
height: calc(var(--spacing) *
|
|
1192
|
+
.h-14 {
|
|
1193
|
+
height: calc(var(--spacing) * 14);
|
|
1144
1194
|
}
|
|
1145
1195
|
.h-20 {
|
|
1146
1196
|
height: calc(var(--spacing) * 20);
|
|
@@ -1154,6 +1204,9 @@
|
|
|
1154
1204
|
.h-\[calc\(100vh-280px\)\] {
|
|
1155
1205
|
height: calc(100vh - 280px);
|
|
1156
1206
|
}
|
|
1207
|
+
.h-\[var\(--radix-select-trigger-height\)\] {
|
|
1208
|
+
height: var(--radix-select-trigger-height);
|
|
1209
|
+
}
|
|
1157
1210
|
.h-auto {
|
|
1158
1211
|
height: auto;
|
|
1159
1212
|
}
|
|
@@ -1163,8 +1216,8 @@
|
|
|
1163
1216
|
.h-px {
|
|
1164
1217
|
height: 1px;
|
|
1165
1218
|
}
|
|
1166
|
-
.h-
|
|
1167
|
-
height:
|
|
1219
|
+
.h-screen {
|
|
1220
|
+
height: 100vh;
|
|
1168
1221
|
}
|
|
1169
1222
|
.max-h-\(--radix-context-menu-content-available-height\) {
|
|
1170
1223
|
max-height: var(--radix-context-menu-content-available-height);
|
|
@@ -1181,6 +1234,9 @@
|
|
|
1181
1234
|
.min-h-\[60px\] {
|
|
1182
1235
|
min-height: 60px;
|
|
1183
1236
|
}
|
|
1237
|
+
.min-h-\[60vh\] {
|
|
1238
|
+
min-height: 60vh;
|
|
1239
|
+
}
|
|
1184
1240
|
.min-h-\[100px\] {
|
|
1185
1241
|
min-height: 100px;
|
|
1186
1242
|
}
|
|
@@ -1229,8 +1285,8 @@
|
|
|
1229
1285
|
.w-12 {
|
|
1230
1286
|
width: calc(var(--spacing) * 12);
|
|
1231
1287
|
}
|
|
1232
|
-
.w-
|
|
1233
|
-
width: calc(var(--spacing) *
|
|
1288
|
+
.w-14 {
|
|
1289
|
+
width: calc(var(--spacing) * 14);
|
|
1234
1290
|
}
|
|
1235
1291
|
.w-24 {
|
|
1236
1292
|
width: calc(var(--spacing) * 24);
|
|
@@ -1244,6 +1300,9 @@
|
|
|
1244
1300
|
.w-\[--radix-dropdown-menu-trigger-width\] {
|
|
1245
1301
|
width: --radix-dropdown-menu-trigger-width;
|
|
1246
1302
|
}
|
|
1303
|
+
.w-\[280px\] {
|
|
1304
|
+
width: 280px;
|
|
1305
|
+
}
|
|
1247
1306
|
.w-auto {
|
|
1248
1307
|
width: auto;
|
|
1249
1308
|
}
|
|
@@ -1271,6 +1330,9 @@
|
|
|
1271
1330
|
.max-w-\[150px\] {
|
|
1272
1331
|
max-width: 150px;
|
|
1273
1332
|
}
|
|
1333
|
+
.max-w-\[200px\] {
|
|
1334
|
+
max-width: 200px;
|
|
1335
|
+
}
|
|
1274
1336
|
.max-w-\[800px\] {
|
|
1275
1337
|
max-width: 800px;
|
|
1276
1338
|
}
|
|
@@ -1304,6 +1366,9 @@
|
|
|
1304
1366
|
.min-w-\[8rem\] {
|
|
1305
1367
|
min-width: 8rem;
|
|
1306
1368
|
}
|
|
1369
|
+
.min-w-\[var\(--radix-select-trigger-width\)\] {
|
|
1370
|
+
min-width: var(--radix-select-trigger-width);
|
|
1371
|
+
}
|
|
1307
1372
|
.flex-1 {
|
|
1308
1373
|
flex: 1;
|
|
1309
1374
|
}
|
|
@@ -1350,6 +1415,10 @@
|
|
|
1350
1415
|
--tw-translate-y: calc(calc(1/2 * 100%) * -1);
|
|
1351
1416
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1352
1417
|
}
|
|
1418
|
+
.translate-y-1 {
|
|
1419
|
+
--tw-translate-y: calc(var(--spacing) * 1);
|
|
1420
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1421
|
+
}
|
|
1353
1422
|
.translate-y-\[-50\%\] {
|
|
1354
1423
|
--tw-translate-y: -50%;
|
|
1355
1424
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -1418,6 +1487,9 @@
|
|
|
1418
1487
|
.flex-row-reverse {
|
|
1419
1488
|
flex-direction: row-reverse;
|
|
1420
1489
|
}
|
|
1490
|
+
.flex-wrap {
|
|
1491
|
+
flex-wrap: wrap;
|
|
1492
|
+
}
|
|
1421
1493
|
.items-center {
|
|
1422
1494
|
align-items: center;
|
|
1423
1495
|
}
|
|
@@ -1460,6 +1532,13 @@
|
|
|
1460
1532
|
.gap-6 {
|
|
1461
1533
|
gap: calc(var(--spacing) * 6);
|
|
1462
1534
|
}
|
|
1535
|
+
.space-y-1 {
|
|
1536
|
+
:where(& > :not(:last-child)) {
|
|
1537
|
+
--tw-space-y-reverse: 0;
|
|
1538
|
+
margin-block-start: calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));
|
|
1539
|
+
margin-block-end: calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1463
1542
|
.space-y-2 {
|
|
1464
1543
|
:where(& > :not(:last-child)) {
|
|
1465
1544
|
--tw-space-y-reverse: 0;
|
|
@@ -1520,6 +1599,9 @@
|
|
|
1520
1599
|
.rounded {
|
|
1521
1600
|
border-radius: 0.25rem;
|
|
1522
1601
|
}
|
|
1602
|
+
.rounded-2xl {
|
|
1603
|
+
border-radius: var(--radius-2xl);
|
|
1604
|
+
}
|
|
1523
1605
|
.rounded-\[2px\] {
|
|
1524
1606
|
border-radius: 2px;
|
|
1525
1607
|
}
|
|
@@ -1583,6 +1665,9 @@
|
|
|
1583
1665
|
--tw-border-style: dashed;
|
|
1584
1666
|
border-style: dashed;
|
|
1585
1667
|
}
|
|
1668
|
+
.border-border {
|
|
1669
|
+
border-color: var(--color-border);
|
|
1670
|
+
}
|
|
1586
1671
|
.border-input {
|
|
1587
1672
|
border-color: var(--color-input);
|
|
1588
1673
|
}
|
|
@@ -1727,6 +1812,24 @@
|
|
|
1727
1812
|
.bg-transparent {
|
|
1728
1813
|
background-color: transparent;
|
|
1729
1814
|
}
|
|
1815
|
+
.bg-gradient-to-br {
|
|
1816
|
+
--tw-gradient-position: to bottom right in oklab;
|
|
1817
|
+
background-image: linear-gradient(var(--tw-gradient-stops));
|
|
1818
|
+
}
|
|
1819
|
+
.from-primary\/20 {
|
|
1820
|
+
--tw-gradient-from: color-mix(in srgb, hsl(var(--primary)) 20%, transparent);
|
|
1821
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1822
|
+
--tw-gradient-from: color-mix(in oklab, var(--color-primary) 20%, transparent);
|
|
1823
|
+
}
|
|
1824
|
+
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
1825
|
+
}
|
|
1826
|
+
.to-primary\/5 {
|
|
1827
|
+
--tw-gradient-to: color-mix(in srgb, hsl(var(--primary)) 5%, transparent);
|
|
1828
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1829
|
+
--tw-gradient-to: color-mix(in oklab, var(--color-primary) 5%, transparent);
|
|
1830
|
+
}
|
|
1831
|
+
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
1832
|
+
}
|
|
1730
1833
|
.fill-current {
|
|
1731
1834
|
fill: currentcolor;
|
|
1732
1835
|
}
|
|
@@ -1793,6 +1896,9 @@
|
|
|
1793
1896
|
.py-2 {
|
|
1794
1897
|
padding-block: calc(var(--spacing) * 2);
|
|
1795
1898
|
}
|
|
1899
|
+
.py-3 {
|
|
1900
|
+
padding-block: calc(var(--spacing) * 3);
|
|
1901
|
+
}
|
|
1796
1902
|
.py-4 {
|
|
1797
1903
|
padding-block: calc(var(--spacing) * 4);
|
|
1798
1904
|
}
|
|
@@ -1808,6 +1914,12 @@
|
|
|
1808
1914
|
.pr-2 {
|
|
1809
1915
|
padding-right: calc(var(--spacing) * 2);
|
|
1810
1916
|
}
|
|
1917
|
+
.pr-6 {
|
|
1918
|
+
padding-right: calc(var(--spacing) * 6);
|
|
1919
|
+
}
|
|
1920
|
+
.pr-8 {
|
|
1921
|
+
padding-right: calc(var(--spacing) * 8);
|
|
1922
|
+
}
|
|
1811
1923
|
.pb-1 {
|
|
1812
1924
|
padding-bottom: calc(var(--spacing) * 1);
|
|
1813
1925
|
}
|
|
@@ -1820,6 +1932,9 @@
|
|
|
1820
1932
|
.pb-\[env\(safe-area-inset-bottom\)\] {
|
|
1821
1933
|
padding-bottom: env(safe-area-inset-bottom);
|
|
1822
1934
|
}
|
|
1935
|
+
.pl-2 {
|
|
1936
|
+
padding-left: calc(var(--spacing) * 2);
|
|
1937
|
+
}
|
|
1823
1938
|
.pl-8 {
|
|
1824
1939
|
padding-left: calc(var(--spacing) * 8);
|
|
1825
1940
|
}
|
|
@@ -1866,6 +1981,10 @@
|
|
|
1866
1981
|
--tw-leading: 1;
|
|
1867
1982
|
line-height: 1;
|
|
1868
1983
|
}
|
|
1984
|
+
.leading-snug {
|
|
1985
|
+
--tw-leading: var(--leading-snug);
|
|
1986
|
+
line-height: var(--leading-snug);
|
|
1987
|
+
}
|
|
1869
1988
|
.leading-tight {
|
|
1870
1989
|
--tw-leading: var(--leading-tight);
|
|
1871
1990
|
line-height: var(--leading-tight);
|
|
@@ -1921,6 +2040,12 @@
|
|
|
1921
2040
|
.text-foreground {
|
|
1922
2041
|
color: var(--color-foreground);
|
|
1923
2042
|
}
|
|
2043
|
+
.text-foreground\/80 {
|
|
2044
|
+
color: color-mix(in srgb, hsl(var(--foreground)) 80%, transparent);
|
|
2045
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2046
|
+
color: color-mix(in oklab, var(--color-foreground) 80%, transparent);
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
1924
2049
|
.text-green-500 {
|
|
1925
2050
|
color: var(--color-green-500);
|
|
1926
2051
|
}
|
|
@@ -2091,6 +2216,10 @@
|
|
|
2091
2216
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
2092
2217
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
2093
2218
|
}
|
|
2219
|
+
.duration-150 {
|
|
2220
|
+
--tw-duration: 150ms;
|
|
2221
|
+
transition-duration: 150ms;
|
|
2222
|
+
}
|
|
2094
2223
|
.duration-200 {
|
|
2095
2224
|
--tw-duration: 200ms;
|
|
2096
2225
|
transition-duration: 200ms;
|
|
@@ -2138,6 +2267,16 @@
|
|
|
2138
2267
|
opacity: 100%;
|
|
2139
2268
|
}
|
|
2140
2269
|
}
|
|
2270
|
+
.group-hover\:bg-primary\/15 {
|
|
2271
|
+
&:is(:where(.group):hover *) {
|
|
2272
|
+
@media (hover: hover) {
|
|
2273
|
+
background-color: color-mix(in srgb, hsl(var(--primary)) 15%, transparent);
|
|
2274
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2275
|
+
background-color: color-mix(in oklab, var(--color-primary) 15%, transparent);
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2141
2280
|
.group-hover\:opacity-100 {
|
|
2142
2281
|
&:is(:where(.group):hover *) {
|
|
2143
2282
|
@media (hover: hover) {
|
|
@@ -2178,21 +2317,6 @@
|
|
|
2178
2317
|
height: calc(var(--spacing) * 8) !important;
|
|
2179
2318
|
}
|
|
2180
2319
|
}
|
|
2181
|
-
.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\) {
|
|
2182
|
-
&:is(:where(.group)[data-collapsible="icon"] *) {
|
|
2183
|
-
width: var(--sidebar-width-icon);
|
|
2184
|
-
}
|
|
2185
|
-
}
|
|
2186
|
-
.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\] {
|
|
2187
|
-
&:is(:where(.group)[data-collapsible="icon"] *) {
|
|
2188
|
-
width: calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)));
|
|
2189
|
-
}
|
|
2190
|
-
}
|
|
2191
|
-
.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\] {
|
|
2192
|
-
&:is(:where(.group)[data-collapsible="icon"] *) {
|
|
2193
|
-
width: calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)) + 2px);
|
|
2194
|
-
}
|
|
2195
|
-
}
|
|
2196
2320
|
.group-data-\[collapsible\=icon\]\:justify-center {
|
|
2197
2321
|
&:is(:where(.group)[data-collapsible="icon"] *) {
|
|
2198
2322
|
justify-content: center;
|
|
@@ -2218,21 +2342,6 @@
|
|
|
2218
2342
|
opacity: 0%;
|
|
2219
2343
|
}
|
|
2220
2344
|
}
|
|
2221
|
-
.group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\] {
|
|
2222
|
-
&:is(:where(.group)[data-collapsible="offcanvas"] *) {
|
|
2223
|
-
right: calc(var(--sidebar-width) * -1);
|
|
2224
|
-
}
|
|
2225
|
-
}
|
|
2226
|
-
.group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\] {
|
|
2227
|
-
&:is(:where(.group)[data-collapsible="offcanvas"] *) {
|
|
2228
|
-
left: calc(var(--sidebar-width) * -1);
|
|
2229
|
-
}
|
|
2230
|
-
}
|
|
2231
|
-
.group-data-\[collapsible\=offcanvas\]\:w-0 {
|
|
2232
|
-
&:is(:where(.group)[data-collapsible="offcanvas"] *) {
|
|
2233
|
-
width: calc(var(--spacing) * 0);
|
|
2234
|
-
}
|
|
2235
|
-
}
|
|
2236
2345
|
.group-data-\[collapsible\=offcanvas\]\:translate-x-0 {
|
|
2237
2346
|
&:is(:where(.group)[data-collapsible="offcanvas"] *) {
|
|
2238
2347
|
--tw-translate-x: calc(var(--spacing) * 0);
|
|
@@ -2244,12 +2353,6 @@
|
|
|
2244
2353
|
right: calc(var(--spacing) * -4);
|
|
2245
2354
|
}
|
|
2246
2355
|
}
|
|
2247
|
-
.group-data-\[side\=left\]\:border-r {
|
|
2248
|
-
&:is(:where(.group)[data-side="left"] *) {
|
|
2249
|
-
border-right-style: var(--tw-border-style);
|
|
2250
|
-
border-right-width: 1px;
|
|
2251
|
-
}
|
|
2252
|
-
}
|
|
2253
2356
|
.group-data-\[side\=right\]\:left-0 {
|
|
2254
2357
|
&:is(:where(.group)[data-side="right"] *) {
|
|
2255
2358
|
left: calc(var(--spacing) * 0);
|
|
@@ -2260,12 +2363,6 @@
|
|
|
2260
2363
|
rotate: 180deg;
|
|
2261
2364
|
}
|
|
2262
2365
|
}
|
|
2263
|
-
.group-data-\[side\=right\]\:border-l {
|
|
2264
|
-
&:is(:where(.group)[data-side="right"] *) {
|
|
2265
|
-
border-left-style: var(--tw-border-style);
|
|
2266
|
-
border-left-width: 1px;
|
|
2267
|
-
}
|
|
2268
|
-
}
|
|
2269
2366
|
.group-data-\[variant\=floating\]\:rounded-lg {
|
|
2270
2367
|
&:is(:where(.group)[data-variant="floating"] *) {
|
|
2271
2368
|
border-radius: var(--radius-lg);
|
|
@@ -2412,6 +2509,23 @@
|
|
|
2412
2509
|
}
|
|
2413
2510
|
}
|
|
2414
2511
|
}
|
|
2512
|
+
.hover\:border-accent {
|
|
2513
|
+
&:hover {
|
|
2514
|
+
@media (hover: hover) {
|
|
2515
|
+
border-color: var(--color-accent);
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
.hover\:border-accent-foreground\/20 {
|
|
2520
|
+
&:hover {
|
|
2521
|
+
@media (hover: hover) {
|
|
2522
|
+
border-color: color-mix(in srgb, hsl(var(--accent-foreground)) 20%, transparent);
|
|
2523
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2524
|
+
border-color: color-mix(in oklab, var(--color-accent-foreground) 20%, transparent);
|
|
2525
|
+
}
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2415
2529
|
.hover\:bg-accent {
|
|
2416
2530
|
&:hover {
|
|
2417
2531
|
@media (hover: hover) {
|
|
@@ -2419,6 +2533,16 @@
|
|
|
2419
2533
|
}
|
|
2420
2534
|
}
|
|
2421
2535
|
}
|
|
2536
|
+
.hover\:bg-accent\/50 {
|
|
2537
|
+
&:hover {
|
|
2538
|
+
@media (hover: hover) {
|
|
2539
|
+
background-color: color-mix(in srgb, hsl(var(--accent)) 50%, transparent);
|
|
2540
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2541
|
+
background-color: color-mix(in oklab, var(--color-accent) 50%, transparent);
|
|
2542
|
+
}
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2422
2546
|
.hover\:bg-destructive\/90 {
|
|
2423
2547
|
&:hover {
|
|
2424
2548
|
@media (hover: hover) {
|
|
@@ -2473,6 +2597,13 @@
|
|
|
2473
2597
|
}
|
|
2474
2598
|
}
|
|
2475
2599
|
}
|
|
2600
|
+
.hover\:text-foreground {
|
|
2601
|
+
&:hover {
|
|
2602
|
+
@media (hover: hover) {
|
|
2603
|
+
color: var(--color-foreground);
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2476
2607
|
.hover\:text-sidebar-accent-foreground {
|
|
2477
2608
|
&:hover {
|
|
2478
2609
|
@media (hover: hover) {
|
|
@@ -2510,6 +2641,14 @@
|
|
|
2510
2641
|
}
|
|
2511
2642
|
}
|
|
2512
2643
|
}
|
|
2644
|
+
.hover\:shadow-sm {
|
|
2645
|
+
&:hover {
|
|
2646
|
+
@media (hover: hover) {
|
|
2647
|
+
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
2648
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2649
|
+
}
|
|
2650
|
+
}
|
|
2651
|
+
}
|
|
2513
2652
|
.hover\:group-data-\[collapsible\=offcanvas\]\:bg-sidebar {
|
|
2514
2653
|
&:hover {
|
|
2515
2654
|
@media (hover: hover) {
|
|
@@ -2558,6 +2697,14 @@
|
|
|
2558
2697
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2559
2698
|
}
|
|
2560
2699
|
}
|
|
2700
|
+
.focus\:ring-primary\/40 {
|
|
2701
|
+
&:focus {
|
|
2702
|
+
--tw-ring-color: color-mix(in srgb, hsl(var(--primary)) 40%, transparent);
|
|
2703
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2704
|
+
--tw-ring-color: color-mix(in oklab, var(--color-primary) 40%, transparent);
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
}
|
|
2561
2708
|
.focus\:ring-ring {
|
|
2562
2709
|
&:focus {
|
|
2563
2710
|
--tw-ring-color: var(--color-ring);
|
|
@@ -2795,6 +2942,11 @@
|
|
|
2795
2942
|
--tw-enter-translate-y: calc(2*var(--spacing));
|
|
2796
2943
|
}
|
|
2797
2944
|
}
|
|
2945
|
+
.data-\[state\=closed\]\:pointer-events-none {
|
|
2946
|
+
&[data-state="closed"] {
|
|
2947
|
+
pointer-events: none;
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2798
2950
|
.data-\[state\=closed\]\:animate-accordion-up {
|
|
2799
2951
|
&[data-state="closed"] {
|
|
2800
2952
|
animation: accordion-up var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
|
|
@@ -2994,6 +3146,11 @@
|
|
|
2994
3146
|
max-width: var(--container-sm);
|
|
2995
3147
|
}
|
|
2996
3148
|
}
|
|
3149
|
+
.sm\:grid-cols-2 {
|
|
3150
|
+
@media (width >= 40rem) {
|
|
3151
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
2997
3154
|
.sm\:flex-row {
|
|
2998
3155
|
@media (width >= 40rem) {
|
|
2999
3156
|
flex-direction: row;
|
|
@@ -3009,21 +3166,6 @@
|
|
|
3009
3166
|
text-align: left;
|
|
3010
3167
|
}
|
|
3011
3168
|
}
|
|
3012
|
-
.md\:block {
|
|
3013
|
-
@media (width >= 48rem) {
|
|
3014
|
-
display: block;
|
|
3015
|
-
}
|
|
3016
|
-
}
|
|
3017
|
-
.md\:flex {
|
|
3018
|
-
@media (width >= 48rem) {
|
|
3019
|
-
display: flex;
|
|
3020
|
-
}
|
|
3021
|
-
}
|
|
3022
|
-
.md\:hidden {
|
|
3023
|
-
@media (width >= 48rem) {
|
|
3024
|
-
display: none;
|
|
3025
|
-
}
|
|
3026
|
-
}
|
|
3027
3169
|
.md\:h-screen {
|
|
3028
3170
|
@media (width >= 48rem) {
|
|
3029
3171
|
height: 100vh;
|
|
@@ -3034,11 +3176,6 @@
|
|
|
3034
3176
|
min-width: var(--container-3xl);
|
|
3035
3177
|
}
|
|
3036
3178
|
}
|
|
3037
|
-
.md\:grid-cols-2 {
|
|
3038
|
-
@media (width >= 48rem) {
|
|
3039
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3040
|
-
}
|
|
3041
|
-
}
|
|
3042
3179
|
.md\:p-2 {
|
|
3043
3180
|
@media (width >= 48rem) {
|
|
3044
3181
|
padding: calc(var(--spacing) * 2);
|
|
@@ -3834,6 +3971,48 @@ code.hljs {
|
|
|
3834
3971
|
inherits: false;
|
|
3835
3972
|
initial-value: solid;
|
|
3836
3973
|
}
|
|
3974
|
+
@property --tw-gradient-position {
|
|
3975
|
+
syntax: "*";
|
|
3976
|
+
inherits: false;
|
|
3977
|
+
}
|
|
3978
|
+
@property --tw-gradient-from {
|
|
3979
|
+
syntax: "<color>";
|
|
3980
|
+
inherits: false;
|
|
3981
|
+
initial-value: #0000;
|
|
3982
|
+
}
|
|
3983
|
+
@property --tw-gradient-via {
|
|
3984
|
+
syntax: "<color>";
|
|
3985
|
+
inherits: false;
|
|
3986
|
+
initial-value: #0000;
|
|
3987
|
+
}
|
|
3988
|
+
@property --tw-gradient-to {
|
|
3989
|
+
syntax: "<color>";
|
|
3990
|
+
inherits: false;
|
|
3991
|
+
initial-value: #0000;
|
|
3992
|
+
}
|
|
3993
|
+
@property --tw-gradient-stops {
|
|
3994
|
+
syntax: "*";
|
|
3995
|
+
inherits: false;
|
|
3996
|
+
}
|
|
3997
|
+
@property --tw-gradient-via-stops {
|
|
3998
|
+
syntax: "*";
|
|
3999
|
+
inherits: false;
|
|
4000
|
+
}
|
|
4001
|
+
@property --tw-gradient-from-position {
|
|
4002
|
+
syntax: "<length-percentage>";
|
|
4003
|
+
inherits: false;
|
|
4004
|
+
initial-value: 0%;
|
|
4005
|
+
}
|
|
4006
|
+
@property --tw-gradient-via-position {
|
|
4007
|
+
syntax: "<length-percentage>";
|
|
4008
|
+
inherits: false;
|
|
4009
|
+
initial-value: 50%;
|
|
4010
|
+
}
|
|
4011
|
+
@property --tw-gradient-to-position {
|
|
4012
|
+
syntax: "<length-percentage>";
|
|
4013
|
+
inherits: false;
|
|
4014
|
+
initial-value: 100%;
|
|
4015
|
+
}
|
|
3837
4016
|
@property --tw-leading {
|
|
3838
4017
|
syntax: "*";
|
|
3839
4018
|
inherits: false;
|
|
@@ -4101,6 +4280,15 @@ code.hljs {
|
|
|
4101
4280
|
--tw-skew-y: initial;
|
|
4102
4281
|
--tw-space-y-reverse: 0;
|
|
4103
4282
|
--tw-border-style: solid;
|
|
4283
|
+
--tw-gradient-position: initial;
|
|
4284
|
+
--tw-gradient-from: #0000;
|
|
4285
|
+
--tw-gradient-via: #0000;
|
|
4286
|
+
--tw-gradient-to: #0000;
|
|
4287
|
+
--tw-gradient-stops: initial;
|
|
4288
|
+
--tw-gradient-via-stops: initial;
|
|
4289
|
+
--tw-gradient-from-position: 0%;
|
|
4290
|
+
--tw-gradient-via-position: 50%;
|
|
4291
|
+
--tw-gradient-to-position: 100%;
|
|
4104
4292
|
--tw-leading: initial;
|
|
4105
4293
|
--tw-font-weight: initial;
|
|
4106
4294
|
--tw-tracking: initial;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotz/chat-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Copilotz chat UI components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -21,8 +21,11 @@
|
|
|
21
21
|
"**/*.css"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
-
"build": "tsup",
|
|
24
|
+
"build": "tsup && npm run build:css",
|
|
25
25
|
"build:css": "tailwindcss -c tailwind.config.ts -i ./src/styles.css -o ./dist/styles.css",
|
|
26
|
+
"build:watch": "tsup --watch",
|
|
27
|
+
"build:css:watch": "tailwindcss -c tailwind.config.ts -i ./src/styles.css -o ./dist/styles.css --watch",
|
|
28
|
+
"dev": "npm run build:watch & npm run build:css:watch",
|
|
26
29
|
"prepack": "npm run build && npm run build:css"
|
|
27
30
|
},
|
|
28
31
|
"peerDependencies": {
|
|
@@ -38,6 +41,7 @@
|
|
|
38
41
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
39
42
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
40
43
|
"@radix-ui/react-progress": "^1.1.7",
|
|
44
|
+
"@radix-ui/react-select": "^2.1.7",
|
|
41
45
|
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
42
46
|
"@radix-ui/react-separator": "^1.1.7",
|
|
43
47
|
"@radix-ui/react-slot": "^1.2.3",
|
|
@@ -50,6 +54,7 @@
|
|
|
50
54
|
"react-markdown": "^9.1.0",
|
|
51
55
|
"rehype-highlight": "^7.0.2",
|
|
52
56
|
"rehype-raw": "^7.0.0",
|
|
57
|
+
"remark-breaks": "^4.0.0",
|
|
53
58
|
"remark-gfm": "^4.0.1",
|
|
54
59
|
"tailwind-merge": "^3.3.1",
|
|
55
60
|
"tw-animate-css": "^1.3.7"
|