reachat 2.1.0-alpha.14 → 2.1.0-alpha.15

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.css CHANGED
@@ -44,7 +44,6 @@
44
44
  --radius-xs: 0.125rem;
45
45
  --radius-md: 0.375rem;
46
46
  --radius-xl: 0.75rem;
47
- --radius-2xl: 1rem;
48
47
  --radius-3xl: 1.5rem;
49
48
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
50
49
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
@@ -831,6 +830,9 @@
831
830
  .relative {
832
831
  position: relative;
833
832
  }
833
+ .static {
834
+ position: static;
835
+ }
834
836
  .sticky {
835
837
  position: sticky;
836
838
  }
@@ -882,6 +884,9 @@
882
884
  .bottom-0 {
883
885
  bottom: calc(var(--spacing) * 0);
884
886
  }
887
+ .bottom-1 {
888
+ bottom: calc(var(--spacing) * 1);
889
+ }
885
890
  .bottom-5 {
886
891
  bottom: calc(var(--spacing) * 5);
887
892
  }
@@ -1387,9 +1392,6 @@
1387
1392
  .h-11 {
1388
1393
  height: calc(var(--spacing) * 11);
1389
1394
  }
1390
- .h-24 {
1391
- height: calc(var(--spacing) * 24);
1392
- }
1393
1395
  .h-46 {
1394
1396
  height: calc(var(--spacing) * 46);
1395
1397
  }
@@ -1423,9 +1425,6 @@
1423
1425
  .h-\[60px\] {
1424
1426
  height: 60px;
1425
1427
  }
1426
- .h-\[100px\] {
1427
- height: 100px;
1428
- }
1429
1428
  .h-\[300px\] {
1430
1429
  height: 300px;
1431
1430
  }
@@ -1546,9 +1545,6 @@
1546
1545
  .w-3\.5 {
1547
1546
  width: calc(var(--spacing) * 3.5);
1548
1547
  }
1549
- .w-3\/4 {
1550
- width: calc(3/4 * 100%);
1551
- }
1552
1548
  .w-3\/5 {
1553
1549
  width: calc(3/5 * 100%);
1554
1550
  }
@@ -1558,9 +1554,6 @@
1558
1554
  .w-5 {
1559
1555
  width: calc(var(--spacing) * 5);
1560
1556
  }
1561
- .w-5\/6 {
1562
- width: calc(5/6 * 100%);
1563
- }
1564
1557
  .w-6 {
1565
1558
  width: calc(var(--spacing) * 6);
1566
1559
  }
@@ -1579,9 +1572,6 @@
1579
1572
  .w-16 {
1580
1573
  width: calc(var(--spacing) * 16);
1581
1574
  }
1582
- .w-24 {
1583
- width: calc(var(--spacing) * 24);
1584
- }
1585
1575
  .w-\[9px\] {
1586
1576
  width: 9px;
1587
1577
  }
@@ -1594,27 +1584,12 @@
1594
1584
  .w-\[50px\] {
1595
1585
  width: 50px;
1596
1586
  }
1597
- .w-\[60\%\] {
1598
- width: 60%;
1599
- }
1600
1587
  .w-\[60px\] {
1601
1588
  width: 60px;
1602
1589
  }
1603
- .w-\[70\%\] {
1604
- width: 70%;
1605
- }
1606
1590
  .w-\[80\%\] {
1607
1591
  width: 80%;
1608
1592
  }
1609
- .w-\[90\%\] {
1610
- width: 90%;
1611
- }
1612
- .w-\[100px\] {
1613
- width: 100px;
1614
- }
1615
- .w-\[200px\] {
1616
- width: 200px;
1617
- }
1618
1593
  .w-\[250px\] {
1619
1594
  width: 250px;
1620
1595
  }
@@ -1787,8 +1762,8 @@
1787
1762
  .rotate-180 {
1788
1763
  rotate: 180deg;
1789
1764
  }
1790
- .animate-\[pulse_1\.5s_ease-in-out_infinite\] {
1791
- animation: pulse 1.5s ease-in-out infinite;
1765
+ .transform {
1766
+ transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
1792
1767
  }
1793
1768
  .cursor-\[initial\] {
1794
1769
  cursor: initial;
@@ -2074,9 +2049,6 @@
2074
2049
  .rounded-\(--tags-details-corner-radius-base\) {
2075
2050
  border-radius: var(--tags-details-corner-radius-base);
2076
2051
  }
2077
- .rounded-2xl {
2078
- border-radius: var(--radius-2xl);
2079
- }
2080
2052
  .rounded-3xl {
2081
2053
  border-radius: var(--radius-3xl);
2082
2054
  }
@@ -2578,9 +2550,6 @@
2578
2550
  .bg-background-neutral-raised-3 {
2579
2551
  background-color: var(--background-neutral-raised-3);
2580
2552
  }
2581
- .bg-background-neutral-raised-4 {
2582
- background-color: var(--background-neutral-raised-4);
2583
- }
2584
2553
  .bg-background-neutral-raised-5 {
2585
2554
  background-color: var(--background-neutral-raised-5);
2586
2555
  }
@@ -3061,10 +3030,6 @@
3061
3030
  }
3062
3031
  background-image: linear-gradient(var(--tw-gradient-stops));
3063
3032
  }
3064
- .bg-gradient-to-r {
3065
- --tw-gradient-position: to right in oklab;
3066
- background-image: linear-gradient(var(--tw-gradient-stops));
3067
- }
3068
3033
  .\[background-image\:linear-gradient\(-126\.85deg\,_rgba\(30\,_30\,_46\,_0\)_63\.1678\%\,_\#2F6AFF_88\.9438\%\)\] {
3069
3034
  background-image: linear-gradient(-126.85deg, rgba(30, 30, 46, 0) 63.1678%, #2F6AFF 88.9438%);
3070
3035
  }
@@ -3074,10 +3039,6 @@
3074
3039
  .bg-none {
3075
3040
  background-image: none;
3076
3041
  }
3077
- .from-background-neutral-raised-3 {
3078
- --tw-gradient-from: var(--background-neutral-raised-3);
3079
- --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));
3080
- }
3081
3042
  .from-blue-skybolt-a-500 {
3082
3043
  --tw-gradient-from: var(--color-blue-skybolt-a-500);
3083
3044
  --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));
@@ -3090,19 +3051,10 @@
3090
3051
  --tw-gradient-from: transparent;
3091
3052
  --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));
3092
3053
  }
3093
- .via-background-neutral-raised-4 {
3094
- --tw-gradient-via: var(--background-neutral-raised-4);
3095
- --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
3096
- --tw-gradient-stops: var(--tw-gradient-via-stops);
3097
- }
3098
3054
  .to-background-brand-base {
3099
3055
  --tw-gradient-to: var(--background-brand-base);
3100
3056
  --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));
3101
3057
  }
3102
- .to-background-neutral-raised-3 {
3103
- --tw-gradient-to: var(--background-neutral-raised-3);
3104
- --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));
3105
- }
3106
3058
  .to-blue-hyperstream-500 {
3107
3059
  --tw-gradient-to: var(--color-blue-hyperstream-500);
3108
3060
  --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));
@@ -3119,9 +3071,6 @@
3119
3071
  --tw-gradient-to: transparent;
3120
3072
  --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));
3121
3073
  }
3122
- .bg-\[length\:200\%_100\%\] {
3123
- background-size: 200% 100%;
3124
- }
3125
3074
  .bg-cover {
3126
3075
  background-size: cover;
3127
3076
  }
@@ -4223,12 +4172,19 @@
4223
4172
  .capitalize {
4224
4173
  text-transform: capitalize;
4225
4174
  }
4175
+ .lowercase {
4176
+ text-transform: lowercase;
4177
+ }
4226
4178
  .uppercase {
4227
4179
  text-transform: uppercase;
4228
4180
  }
4229
4181
  .italic {
4230
4182
  font-style: italic;
4231
4183
  }
4184
+ .ordinal {
4185
+ --tw-ordinal: ordinal;
4186
+ font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
4187
+ }
4232
4188
  .underline {
4233
4189
  text-decoration-line: underline;
4234
4190
  }
@@ -4241,9 +4197,6 @@
4241
4197
  .opacity-10 {
4242
4198
  opacity: 10%;
4243
4199
  }
4244
- .opacity-30 {
4245
- opacity: 30%;
4246
- }
4247
4200
  .opacity-40 {
4248
4201
  opacity: 40%;
4249
4202
  }
@@ -4268,6 +4221,10 @@
4268
4221
  .opacity-100 {
4269
4222
  opacity: 100%;
4270
4223
  }
4224
+ .shadow {
4225
+ --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));
4226
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4227
+ }
4271
4228
  .shadow-2xl {
4272
4229
  --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
4273
4230
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -4569,15 +4526,6 @@
4569
4526
  }
4570
4527
  }
4571
4528
  }
4572
- .group-hover\:stroke-selectors-colors-checkbox-selected-assets-hover {
4573
- &:is(:where(.group):hover *) {
4574
- @media (hover: hover) {
4575
- stroke: var(
4576
- --content-assets-on-color-light-light
4577
- );
4578
- }
4579
- }
4580
- }
4581
4529
  .group-hover\:text-buttons-colors-core-icon-ghost-text-hover {
4582
4530
  &:is(:where(.group):hover *) {
4583
4531
  @media (hover: hover) {
@@ -6478,6 +6426,23 @@
6478
6426
  }
6479
6427
  }
6480
6428
  }
6429
+ .focus-visible\:outline-1 {
6430
+ &:focus-visible {
6431
+ outline-style: var(--tw-outline-style);
6432
+ outline-width: 1px;
6433
+ }
6434
+ }
6435
+ .focus-visible\:outline-offset-2 {
6436
+ &:focus-visible {
6437
+ outline-offset: 2px;
6438
+ }
6439
+ }
6440
+ .focus-visible\:outline-dashed {
6441
+ &:focus-visible {
6442
+ --tw-outline-style: dashed;
6443
+ outline-style: dashed;
6444
+ }
6445
+ }
6481
6446
  .focus-visible\:outline-none {
6482
6447
  &:focus-visible {
6483
6448
  --tw-outline-style: none;
@@ -6864,12 +6829,6 @@
6864
6829
  background-color: var(--background-neutral-raised-4);
6865
6830
  }
6866
6831
  }
6867
- .dark\:bg-gradient-to-r {
6868
- &:where(.theme-dark, .theme-dark *, [data-theme=dark], [data-theme=dark] *) {
6869
- --tw-gradient-position: to right in oklab;
6870
- background-image: linear-gradient(var(--tw-gradient-stops));
6871
- }
6872
- }
6873
6832
  .dark\:bg-\[radial-gradient\(circle\,rgba\(36\,36\,66\,0\.3\)_2\%\,rgba\(2\,2\,15\,1\)_80\%\)\] {
6874
6833
  &:where(.theme-dark, .theme-dark *, [data-theme=dark], [data-theme=dark] *) {
6875
6834
  background-image: radial-gradient(circle,rgba(36,36,66,0.3) 2%,rgba(2,2,15,1) 80%);
@@ -6923,12 +6882,6 @@
6923
6882
  background-color: var(--color-neutrals-pure-white-dnt-1000);
6924
6883
  }
6925
6884
  }
6926
- .light\:bg-gradient-to-r {
6927
- &:where(.theme-light, .theme-light *, [data-theme=light], [data-theme=light] *) {
6928
- --tw-gradient-position: to right in oklab;
6929
- background-image: linear-gradient(var(--tw-gradient-stops));
6930
- }
6931
- }
6932
6885
  .light\:bg-\[radial-gradient\(circle\,rgba\(224\,224\,232\,0\.3\)_2\%\,rgba\(247\,247\,250\,1\)_80\%\)\] {
6933
6886
  &:where(.theme-light, .theme-light *, [data-theme=light], [data-theme=light] *) {
6934
6887
  background-image: radial-gradient(circle,rgba(224,224,232,0.3) 2%,rgba(247,247,250,1) 80%);
@@ -9764,6 +9717,26 @@ body {
9764
9717
  inherits: false;
9765
9718
  initial-value: 0;
9766
9719
  }
9720
+ @property --tw-rotate-x {
9721
+ syntax: "*";
9722
+ inherits: false;
9723
+ }
9724
+ @property --tw-rotate-y {
9725
+ syntax: "*";
9726
+ inherits: false;
9727
+ }
9728
+ @property --tw-rotate-z {
9729
+ syntax: "*";
9730
+ inherits: false;
9731
+ }
9732
+ @property --tw-skew-x {
9733
+ syntax: "*";
9734
+ inherits: false;
9735
+ }
9736
+ @property --tw-skew-y {
9737
+ syntax: "*";
9738
+ inherits: false;
9739
+ }
9767
9740
  @property --tw-pan-x {
9768
9741
  syntax: "*";
9769
9742
  inherits: false;
@@ -9841,6 +9814,26 @@ body {
9841
9814
  syntax: "*";
9842
9815
  inherits: false;
9843
9816
  }
9817
+ @property --tw-ordinal {
9818
+ syntax: "*";
9819
+ inherits: false;
9820
+ }
9821
+ @property --tw-slashed-zero {
9822
+ syntax: "*";
9823
+ inherits: false;
9824
+ }
9825
+ @property --tw-numeric-figure {
9826
+ syntax: "*";
9827
+ inherits: false;
9828
+ }
9829
+ @property --tw-numeric-spacing {
9830
+ syntax: "*";
9831
+ inherits: false;
9832
+ }
9833
+ @property --tw-numeric-fraction {
9834
+ syntax: "*";
9835
+ inherits: false;
9836
+ }
9844
9837
  @property --tw-shadow {
9845
9838
  syntax: "*";
9846
9839
  inherits: false;
@@ -10028,22 +10021,17 @@ body {
10028
10021
  inherits: false;
10029
10022
  initial-value: 1;
10030
10023
  }
10031
- @keyframes pulse {
10032
- 50% {
10033
- opacity: 0.5;
10034
- }
10035
- }
10036
- @keyframes pulse {
10037
- 50% {
10038
- opacity: 0.5;
10039
- }
10040
- }
10041
10024
  @layer properties {
10042
10025
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
10043
10026
  *, ::before, ::after, ::backdrop {
10044
10027
  --tw-translate-x: 0;
10045
10028
  --tw-translate-y: 0;
10046
10029
  --tw-translate-z: 0;
10030
+ --tw-rotate-x: initial;
10031
+ --tw-rotate-y: initial;
10032
+ --tw-rotate-z: initial;
10033
+ --tw-skew-x: initial;
10034
+ --tw-skew-y: initial;
10047
10035
  --tw-pan-x: initial;
10048
10036
  --tw-pan-y: initial;
10049
10037
  --tw-pinch-zoom: initial;
@@ -10061,6 +10049,11 @@ body {
10061
10049
  --tw-gradient-to-position: 100%;
10062
10050
  --tw-leading: initial;
10063
10051
  --tw-font-weight: initial;
10052
+ --tw-ordinal: initial;
10053
+ --tw-slashed-zero: initial;
10054
+ --tw-numeric-figure: initial;
10055
+ --tw-numeric-spacing: initial;
10056
+ --tw-numeric-fraction: initial;
10064
10057
  --tw-shadow: 0 0 #0000;
10065
10058
  --tw-shadow-color: initial;
10066
10059
  --tw-shadow-alpha: 100%;
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@
10
10
  console.error("vite-plugin-css-injected-by-js", e);
11
11
  }
12
12
  })();
13
- import { A, b, c, C, d, e, F, M, j, k, m, n, o, p, q, N, i, w, x, s, t, u, v, y, z, T, g, f, B, h, D, l, r } from "./index--Kv_qij4.js";
13
+ import { A, b, c, C, d, e, F, M, j, k, m, n, o, p, q, N, i, w, x, s, t, u, v, y, z, T, g, f, B, h, D, l, r } from "./index-LrxJaJRy.js";
14
14
  import "react/jsx-runtime";
15
15
  import "motion/react";
16
16
  import "reablocks";
@@ -310,6 +310,7 @@
310
310
  const SvgPaperclip = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: "24px", height: "24px", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { d: "M25.3,56.007c-3.409,0-6.818-1.297-9.414-3.893c-2.595-2.596-3.893-6.005-3.893-9.415c0-3.409,1.298-6.819,3.893-9.414 l20.4-20.4c1.847-1.847,4.302-2.864,6.914-2.864c2.611,0,5.067,1.017,6.914,2.864c3.812,3.813,3.812,10.016,0,13.829l-20.4,20.4 c-2.438,2.439-6.385,2.441-8.828,0c-2.434-2.435-2.434-6.395,0-8.829l13.7-13.7c0.781-0.781,2.047-0.781,2.828,0 c0.781,0.781,0.781,2.047,0,2.828l-13.7,13.7c-0.874,0.875-0.874,2.297,0.001,3.172c0.847,0.846,2.324,0.846,3.171,0l20.4-20.4 c2.252-2.253,2.252-5.919,0-8.172c-1.092-1.091-2.543-1.692-4.086-1.692c-1.544,0-2.994,0.601-4.086,1.692l-20.4,20.4 c-1.815,1.816-2.723,4.201-2.723,6.586c0,2.385,0.908,4.77,2.723,6.586c1.816,1.815,4.201,2.723,6.586,2.723 c2.385,0,4.771-0.907,6.586-2.723l12.7-12.7c0.781-0.781,2.047-0.781,2.828,0c0.781,0.781,0.781,2.047,0,2.828l-12.7,12.7 C32.119,54.709,28.71,56.007,25.3,56.007z", fill: "currentColor" }));
311
311
  const FileInput = ({
312
312
  allowedFiles,
313
+ multiple,
313
314
  onFileUpload,
314
315
  isLoading,
315
316
  disabled,
@@ -325,6 +326,7 @@
325
326
  ref: fileInputRef,
326
327
  className: "hidden",
327
328
  accept: allowedFiles.join(","),
329
+ multiple,
328
330
  onChange: (e) => {
329
331
  onFileUpload(e);
330
332
  if (fileInputRef.current) {
@@ -349,6 +351,7 @@
349
351
  const ChatInput = React.forwardRef(
350
352
  ({
351
353
  allowedFiles,
354
+ allowMultipleFiles = false,
352
355
  placeholder,
353
356
  defaultValue,
354
357
  className,
@@ -405,9 +408,16 @@
405
408
  }
406
409
  };
407
410
  const handleFileUpload = (event) => {
408
- const file = event.target.files?.[0];
409
- if (file && fileUpload) {
410
- fileUpload(file);
411
+ const files = event.target.files;
412
+ if (files && fileUpload) {
413
+ if (allowMultipleFiles) {
414
+ Array.from(files).forEach((file) => fileUpload(file));
415
+ } else {
416
+ const file = files[0];
417
+ if (file) {
418
+ fileUpload(file);
419
+ }
420
+ }
411
421
  }
412
422
  };
413
423
  const handleMessageChange = React.useCallback(
@@ -438,6 +448,7 @@
438
448
  FileInput,
439
449
  {
440
450
  allowedFiles,
451
+ multiple: allowMultipleFiles,
441
452
  onFileUpload: handleFileUpload,
442
453
  isLoading,
443
454
  disabled,