@adminide-stack/clock-tik-browser 12.0.35-alpha.0 → 12.0.36-alpha.0
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/lib/pages/Home/__tests__/connectors.test.d.ts +2 -0
- package/lib/pages/Home/__tests__/connectors.test.d.ts.map +1 -0
- package/lib/pages/Home/__tests__/history.test.d.ts +2 -0
- package/lib/pages/Home/__tests__/history.test.d.ts.map +1 -0
- package/lib/pages/Home/__tests__/queue.test.d.ts +2 -0
- package/lib/pages/Home/__tests__/queue.test.d.ts.map +1 -0
- package/lib/pages/Home/__tests__/results.test.d.ts +2 -0
- package/lib/pages/Home/__tests__/results.test.d.ts.map +1 -0
- package/lib/pages/Home/chat/ChoresChat.d.ts.map +1 -1
- package/lib/pages/Home/chat/ChoresChat.js +409 -88
- package/lib/pages/Home/chat/ChoresChat.js.map +1 -1
- package/lib/pages/Home/chat/ChoresPanel.d.ts +10 -1
- package/lib/pages/Home/chat/ChoresPanel.d.ts.map +1 -1
- package/lib/pages/Home/chat/ChoresPanel.js +27 -18
- package/lib/pages/Home/chat/ChoresPanel.js.map +1 -1
- package/lib/pages/Home/chat/ConnectorsPanel.d.ts +23 -0
- package/lib/pages/Home/chat/ConnectorsPanel.d.ts.map +1 -0
- package/lib/pages/Home/chat/ConnectorsPanel.js +132 -0
- package/lib/pages/Home/chat/ConnectorsPanel.js.map +1 -0
- package/lib/pages/Home/chat/HistoryPanel.d.ts +27 -0
- package/lib/pages/Home/chat/HistoryPanel.d.ts.map +1 -0
- package/lib/pages/Home/chat/HistoryPanel.js +234 -0
- package/lib/pages/Home/chat/HistoryPanel.js.map +1 -0
- package/lib/pages/Home/chat/ResultCards.d.ts +16 -0
- package/lib/pages/Home/chat/ResultCards.d.ts.map +1 -0
- package/lib/pages/Home/chat/ResultCards.js +509 -0
- package/lib/pages/Home/chat/ResultCards.js.map +1 -0
- package/lib/pages/Home/chat/chatTheme.d.ts.map +1 -1
- package/lib/pages/Home/chat/chatTheme.js +685 -8
- package/lib/pages/Home/chat/chatTheme.js.map +1 -1
- package/lib/pages/Home/chat/chores.d.ts +10 -3
- package/lib/pages/Home/chat/chores.d.ts.map +1 -1
- package/lib/pages/Home/chat/chores.js +22 -5
- package/lib/pages/Home/chat/chores.js.map +1 -1
- package/lib/pages/Home/chat/connectors.d.ts +37 -0
- package/lib/pages/Home/chat/connectors.d.ts.map +1 -0
- package/lib/pages/Home/chat/connectors.js +73 -0
- package/lib/pages/Home/chat/connectors.js.map +1 -0
- package/lib/pages/Home/chat/history.d.ts +51 -0
- package/lib/pages/Home/chat/history.d.ts.map +1 -0
- package/lib/pages/Home/chat/history.js +186 -0
- package/lib/pages/Home/chat/history.js.map +1 -0
- package/lib/pages/Home/chat/lucy.d.ts.map +1 -1
- package/lib/pages/Home/chat/lucy.js +1 -1
- package/lib/pages/Home/chat/lucy.js.map +1 -1
- package/lib/pages/Home/chat/queue.d.ts +94 -0
- package/lib/pages/Home/chat/queue.d.ts.map +1 -0
- package/lib/pages/Home/chat/queue.js +88 -0
- package/lib/pages/Home/chat/queue.js.map +1 -0
- package/lib/pages/Home/chat/results.d.ts +207 -0
- package/lib/pages/Home/chat/results.d.ts.map +1 -0
- package/lib/pages/Home/chat/results.js +823 -0
- package/lib/pages/Home/chat/results.js.map +1 -0
- package/lib/pages/Home/chat/stop.d.ts +7 -6
- package/lib/pages/Home/chat/stop.d.ts.map +1 -1
- package/lib/pages/Home/chat/stop.js +7 -6
- package/lib/pages/Home/chat/stop.js.map +1 -1
- package/lib/pages/Home/chat/thread.d.ts +9 -3
- package/lib/pages/Home/chat/thread.d.ts.map +1 -1
- package/lib/pages/Home/chat/thread.js +14 -5
- package/lib/pages/Home/chat/thread.js.map +1 -1
- package/lib/pages/Home/chat/tour/tourSteps.d.ts +4 -3
- package/lib/pages/Home/chat/tour/tourSteps.d.ts.map +1 -1
- package/lib/pages/Home/chat/tour/tourSteps.js +23 -3
- package/lib/pages/Home/chat/tour/tourSteps.js.map +1 -1
- package/lib/pages/Home/chat/useChores.d.ts +5 -0
- package/lib/pages/Home/chat/useChores.d.ts.map +1 -1
- package/lib/pages/Home/chat/useChores.js +4 -1
- package/lib/pages/Home/chat/useChores.js.map +1 -1
- package/package.json +3 -3
|
@@ -203,6 +203,56 @@ import {jsx}from'react/jsx-runtime';const CHAT_CSS = `
|
|
|
203
203
|
font-weight: 500;
|
|
204
204
|
color: hsl(var(--muted-foreground));
|
|
205
205
|
}
|
|
206
|
+
/* Under the starters: the apps Lucy can use (ConnectorsPanel), and iMessage, side by side where they
|
|
207
|
+
fit. The apps pill wears the marks of what it connects. */
|
|
208
|
+
.cbh-chat .cbh-chat-ways {
|
|
209
|
+
display: flex;
|
|
210
|
+
flex-wrap: wrap;
|
|
211
|
+
justify-content: center;
|
|
212
|
+
gap: 8px 10px;
|
|
213
|
+
margin-top: 18px;
|
|
214
|
+
}
|
|
215
|
+
.cbh-chat .cbh-chat-ways .cbh-chat-imsg {
|
|
216
|
+
margin-top: 0;
|
|
217
|
+
}
|
|
218
|
+
.cbh-chat .cbh-chat-apps {
|
|
219
|
+
display: inline-flex;
|
|
220
|
+
align-items: center;
|
|
221
|
+
gap: 8px;
|
|
222
|
+
height: 40px;
|
|
223
|
+
padding: 0 14px 0 8px;
|
|
224
|
+
border: 0;
|
|
225
|
+
border-radius: 999px;
|
|
226
|
+
background: hsl(var(--card));
|
|
227
|
+
color: hsl(var(--foreground));
|
|
228
|
+
font: inherit;
|
|
229
|
+
font-size: 13.5px;
|
|
230
|
+
font-weight: 600;
|
|
231
|
+
white-space: nowrap;
|
|
232
|
+
cursor: pointer;
|
|
233
|
+
box-shadow: 0 0 0 1px hsl(var(--border)), 0 6px 18px -12px rgba(48, 28, 8, 0.35);
|
|
234
|
+
transition: transform 0.2s ease, box-shadow 0.25s ease;
|
|
235
|
+
}
|
|
236
|
+
.cbh-chat .cbh-chat-apps:hover {
|
|
237
|
+
transform: translateY(-1px);
|
|
238
|
+
box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.35), 0 12px 24px -12px rgba(255, 90, 0, 0.55);
|
|
239
|
+
}
|
|
240
|
+
.cbh-chat .cbh-chat-apps:focus-visible {
|
|
241
|
+
outline: 2px solid hsl(var(--ring));
|
|
242
|
+
outline-offset: 2px;
|
|
243
|
+
}
|
|
244
|
+
.cbh-chat .cbh-chat-apps-logos {
|
|
245
|
+
display: inline-flex;
|
|
246
|
+
}
|
|
247
|
+
.cbh-chat .cbh-chat-apps-logos > span {
|
|
248
|
+
width: 24px;
|
|
249
|
+
height: 24px;
|
|
250
|
+
border-radius: 999px;
|
|
251
|
+
box-shadow: 0 0 0 2px hsl(var(--card)), inset 0 0 0 1px hsl(var(--border));
|
|
252
|
+
}
|
|
253
|
+
.cbh-chat .cbh-chat-apps-logos > span + span {
|
|
254
|
+
margin-left: -7px;
|
|
255
|
+
}
|
|
206
256
|
/* A phone: the welcome fits the chat without scrolling. The kit opens an empty chat scrolled to its
|
|
207
257
|
foot, so a welcome taller than the chat starts with Lucy's greeting cut off above the top. The
|
|
208
258
|
starters become one-line rows (their full wording is still read out) and the halo is smaller. */
|
|
@@ -262,17 +312,25 @@ import {jsx}from'react/jsx-runtime';const CHAT_CSS = `
|
|
|
262
312
|
clip: rect(0 0 0 0);
|
|
263
313
|
white-space: nowrap;
|
|
264
314
|
}
|
|
265
|
-
.cbh-chat .cbh-chat-imsg
|
|
315
|
+
.cbh-chat .cbh-chat-imsg,
|
|
316
|
+
.cbh-chat .cbh-chat-ways {
|
|
266
317
|
margin-top: 14px;
|
|
267
318
|
}
|
|
268
319
|
/* "Prefer texting?" does not fit beside it on one line. */
|
|
269
320
|
.cbh-chat .cbh-chat-imsg span {
|
|
270
321
|
display: none;
|
|
271
322
|
}
|
|
323
|
+
/* One pill fits beside nothing here, and a second row would scroll the welcome: iMessage keeps
|
|
324
|
+
the row, and the apps pill joins it only in a chat tall enough (below). The account menu
|
|
325
|
+
always has the apps. */
|
|
326
|
+
.cbh-chat .cbh-chat-apps {
|
|
327
|
+
display: none;
|
|
328
|
+
}
|
|
272
329
|
}
|
|
273
330
|
/* A short chat (a phone with the browser's bars showing, a small phone): what the welcome can do
|
|
274
331
|
without goes before it would scroll - the halo (the header carries Lucy's mark), then the line
|
|
275
|
-
under the question, then the greeting and the
|
|
332
|
+
under the question, then the greeting and the pills under the starters (the header has iMessage
|
|
333
|
+
too, and the account menu has the apps).
|
|
276
334
|
Measured on chat-pro's scroll area, so it is the room the welcome really has. */
|
|
277
335
|
.cbh-chat .ym-hide-scrollbar:has(.cbh-chat-welcome) {
|
|
278
336
|
container: cbh-chat-area / size;
|
|
@@ -289,10 +347,17 @@ import {jsx}from'react/jsx-runtime';const CHAT_CSS = `
|
|
|
289
347
|
}
|
|
290
348
|
@container cbh-chat-area (max-height: 430px) {
|
|
291
349
|
.cbh-chat .cbh-chat-hello,
|
|
292
|
-
.cbh-chat .cbh-chat-imsg
|
|
350
|
+
.cbh-chat .cbh-chat-imsg,
|
|
351
|
+
.cbh-chat .cbh-chat-ways {
|
|
293
352
|
display: none;
|
|
294
353
|
}
|
|
295
354
|
}
|
|
355
|
+
/* A phone's chat tall enough for the apps pill's own row (the welcome then measures about 640px). */
|
|
356
|
+
@container cbh-chat-area (min-height: 690px) {
|
|
357
|
+
.cbh-chat .cbh-chat-apps {
|
|
358
|
+
display: inline-flex;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
296
361
|
/* what Lucy made: videos and sound clips under her reply (media.ts); images are the kit's own figures */
|
|
297
362
|
.cbh-chat .cbh-chat-media {
|
|
298
363
|
display: grid;
|
|
@@ -628,6 +693,437 @@ import {jsx}from'react/jsx-runtime';const CHAT_CSS = `
|
|
|
628
693
|
outline-offset: 2px;
|
|
629
694
|
}
|
|
630
695
|
|
|
696
|
+
/* Lucy's results (ResultCards): flights as itinerary rows - a line from take-off to landing with a
|
|
697
|
+
dot per stop - and products, stays and cars as picture rows, in the same card as her calls. */
|
|
698
|
+
.cbh-chat .cbh-sr {
|
|
699
|
+
position: absolute;
|
|
700
|
+
width: 1px;
|
|
701
|
+
height: 1px;
|
|
702
|
+
padding: 0;
|
|
703
|
+
margin: -1px;
|
|
704
|
+
overflow: hidden;
|
|
705
|
+
clip: rect(0, 0, 0, 0);
|
|
706
|
+
white-space: nowrap;
|
|
707
|
+
border: 0;
|
|
708
|
+
}
|
|
709
|
+
.cbh-chat .cbh-results-stack {
|
|
710
|
+
display: flex;
|
|
711
|
+
flex-direction: column;
|
|
712
|
+
gap: 10px;
|
|
713
|
+
}
|
|
714
|
+
.cbh-chat .cbh-results {
|
|
715
|
+
max-width: 536px;
|
|
716
|
+
margin: 0 12px;
|
|
717
|
+
border: 1px solid hsl(var(--border));
|
|
718
|
+
border-radius: 16px;
|
|
719
|
+
background: hsl(var(--card));
|
|
720
|
+
box-shadow: 0 6px 18px -14px rgba(48, 28, 8, 0.4);
|
|
721
|
+
overflow: hidden;
|
|
722
|
+
animation: cbh-chat-rise 0.25s ease-out;
|
|
723
|
+
}
|
|
724
|
+
.cbh-chat .cbh-results-head {
|
|
725
|
+
display: flex;
|
|
726
|
+
align-items: center;
|
|
727
|
+
gap: 10px;
|
|
728
|
+
padding: 10px 12px;
|
|
729
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
730
|
+
}
|
|
731
|
+
.cbh-chat .cbh-results-icon {
|
|
732
|
+
flex: none;
|
|
733
|
+
display: inline-flex;
|
|
734
|
+
align-items: center;
|
|
735
|
+
justify-content: center;
|
|
736
|
+
width: 28px;
|
|
737
|
+
height: 28px;
|
|
738
|
+
border-radius: 9px;
|
|
739
|
+
background: linear-gradient(160deg, #fff1e6, #ffe0cc);
|
|
740
|
+
color: #b84100;
|
|
741
|
+
}
|
|
742
|
+
.cbh-chat .cbh-results[data-kind='flights'] .cbh-results-icon {
|
|
743
|
+
background: linear-gradient(160deg, #eef4ff, #dce8ff);
|
|
744
|
+
color: #2457c5;
|
|
745
|
+
}
|
|
746
|
+
.cbh-chat .cbh-results[data-kind='stays'] .cbh-results-icon {
|
|
747
|
+
background: linear-gradient(160deg, #ecfaf3, #d6f2e4);
|
|
748
|
+
color: #12704f;
|
|
749
|
+
}
|
|
750
|
+
.cbh-chat .cbh-results-heading {
|
|
751
|
+
display: flex;
|
|
752
|
+
flex-direction: column;
|
|
753
|
+
min-width: 0;
|
|
754
|
+
}
|
|
755
|
+
.cbh-chat .cbh-results-title {
|
|
756
|
+
font-size: 14px;
|
|
757
|
+
font-weight: 600;
|
|
758
|
+
line-height: 1.3;
|
|
759
|
+
overflow-wrap: anywhere;
|
|
760
|
+
}
|
|
761
|
+
.cbh-chat .cbh-results-sub {
|
|
762
|
+
font-size: 12px;
|
|
763
|
+
color: hsl(var(--muted-foreground));
|
|
764
|
+
}
|
|
765
|
+
.cbh-chat .cbh-results-list {
|
|
766
|
+
margin: 0;
|
|
767
|
+
padding: 0;
|
|
768
|
+
list-style: none;
|
|
769
|
+
}
|
|
770
|
+
.cbh-chat .cbh-results-row {
|
|
771
|
+
padding: 12px;
|
|
772
|
+
transition: opacity 0.2s ease;
|
|
773
|
+
}
|
|
774
|
+
.cbh-chat .cbh-results-row + .cbh-results-row {
|
|
775
|
+
border-top: 1px solid hsl(var(--border));
|
|
776
|
+
}
|
|
777
|
+
.cbh-chat .cbh-results-row[data-dim] {
|
|
778
|
+
opacity: 0.5;
|
|
779
|
+
}
|
|
780
|
+
.cbh-chat .cbh-results-grid {
|
|
781
|
+
display: grid;
|
|
782
|
+
grid-template-columns: 28px minmax(0, 1fr) auto;
|
|
783
|
+
column-gap: 10px;
|
|
784
|
+
row-gap: 8px;
|
|
785
|
+
align-items: start;
|
|
786
|
+
}
|
|
787
|
+
.cbh-chat .cbh-results-item .cbh-results-grid {
|
|
788
|
+
grid-template-columns: 52px minmax(0, 1fr) auto;
|
|
789
|
+
row-gap: 4px;
|
|
790
|
+
}
|
|
791
|
+
.cbh-chat .cbh-results-mark {
|
|
792
|
+
display: inline-flex;
|
|
793
|
+
align-items: center;
|
|
794
|
+
justify-content: center;
|
|
795
|
+
width: 28px;
|
|
796
|
+
height: 28px;
|
|
797
|
+
border-radius: 8px;
|
|
798
|
+
overflow: hidden;
|
|
799
|
+
background: hsl(var(--muted));
|
|
800
|
+
box-shadow: inset 0 0 0 1px hsl(var(--border));
|
|
801
|
+
color: hsl(var(--foreground) / 0.7);
|
|
802
|
+
font-size: 10.5px;
|
|
803
|
+
font-weight: 700;
|
|
804
|
+
}
|
|
805
|
+
.cbh-chat .cbh-results-mark img {
|
|
806
|
+
width: 20px;
|
|
807
|
+
height: 20px;
|
|
808
|
+
object-fit: contain;
|
|
809
|
+
}
|
|
810
|
+
.cbh-chat .cbh-results-thumb {
|
|
811
|
+
grid-row: 1 / span 2;
|
|
812
|
+
display: inline-flex;
|
|
813
|
+
align-items: center;
|
|
814
|
+
justify-content: center;
|
|
815
|
+
width: 52px;
|
|
816
|
+
height: 52px;
|
|
817
|
+
border-radius: 10px;
|
|
818
|
+
overflow: hidden;
|
|
819
|
+
background: hsl(var(--muted));
|
|
820
|
+
box-shadow: inset 0 0 0 1px hsl(var(--border));
|
|
821
|
+
color: hsl(var(--muted-foreground));
|
|
822
|
+
}
|
|
823
|
+
.cbh-chat .cbh-results-thumb img {
|
|
824
|
+
width: 100%;
|
|
825
|
+
height: 100%;
|
|
826
|
+
object-fit: cover;
|
|
827
|
+
}
|
|
828
|
+
.cbh-chat .cbh-results-name {
|
|
829
|
+
display: flex;
|
|
830
|
+
flex-wrap: wrap;
|
|
831
|
+
align-items: center;
|
|
832
|
+
gap: 4px 8px;
|
|
833
|
+
min-width: 0;
|
|
834
|
+
padding-top: 4px;
|
|
835
|
+
}
|
|
836
|
+
.cbh-chat .cbh-results-item .cbh-results-name {
|
|
837
|
+
padding-top: 2px;
|
|
838
|
+
}
|
|
839
|
+
.cbh-chat .cbh-results-airline {
|
|
840
|
+
font-size: 13.5px;
|
|
841
|
+
font-weight: 600;
|
|
842
|
+
}
|
|
843
|
+
.cbh-chat .cbh-results-number {
|
|
844
|
+
font-size: 12px;
|
|
845
|
+
color: hsl(var(--muted-foreground));
|
|
846
|
+
font-variant-numeric: tabular-nums;
|
|
847
|
+
}
|
|
848
|
+
.cbh-chat .cbh-results-title-line {
|
|
849
|
+
display: -webkit-box;
|
|
850
|
+
-webkit-line-clamp: 2;
|
|
851
|
+
-webkit-box-orient: vertical;
|
|
852
|
+
overflow: hidden;
|
|
853
|
+
font-size: 13.5px;
|
|
854
|
+
font-weight: 600;
|
|
855
|
+
line-height: 1.35;
|
|
856
|
+
overflow-wrap: anywhere;
|
|
857
|
+
}
|
|
858
|
+
.cbh-chat .cbh-results-price {
|
|
859
|
+
display: flex;
|
|
860
|
+
flex-direction: column;
|
|
861
|
+
align-items: flex-end;
|
|
862
|
+
max-width: 34vw;
|
|
863
|
+
padding-top: 3px;
|
|
864
|
+
font-size: 15px;
|
|
865
|
+
font-weight: 700;
|
|
866
|
+
font-variant-numeric: tabular-nums;
|
|
867
|
+
text-align: right;
|
|
868
|
+
overflow-wrap: anywhere;
|
|
869
|
+
}
|
|
870
|
+
.cbh-chat .cbh-results-unit {
|
|
871
|
+
font-size: 11.5px;
|
|
872
|
+
font-weight: 500;
|
|
873
|
+
color: hsl(var(--muted-foreground));
|
|
874
|
+
white-space: nowrap;
|
|
875
|
+
}
|
|
876
|
+
.cbh-chat .cbh-results-was {
|
|
877
|
+
font-size: 12px;
|
|
878
|
+
font-weight: 500;
|
|
879
|
+
color: hsl(var(--muted-foreground));
|
|
880
|
+
}
|
|
881
|
+
.cbh-chat .cbh-results-meta {
|
|
882
|
+
grid-column: 2 / -1;
|
|
883
|
+
font-size: 12.5px;
|
|
884
|
+
color: hsl(var(--muted-foreground));
|
|
885
|
+
}
|
|
886
|
+
.cbh-chat .cbh-results-legs {
|
|
887
|
+
grid-column: 2 / -1;
|
|
888
|
+
display: flex;
|
|
889
|
+
flex-direction: column;
|
|
890
|
+
gap: 12px;
|
|
891
|
+
}
|
|
892
|
+
.cbh-chat .cbh-results-when {
|
|
893
|
+
margin-bottom: 3px;
|
|
894
|
+
font-size: 11px;
|
|
895
|
+
font-weight: 600;
|
|
896
|
+
letter-spacing: 0.04em;
|
|
897
|
+
text-transform: uppercase;
|
|
898
|
+
color: hsl(var(--muted-foreground));
|
|
899
|
+
}
|
|
900
|
+
.cbh-chat .cbh-results-times {
|
|
901
|
+
display: flex;
|
|
902
|
+
align-items: center;
|
|
903
|
+
gap: 10px;
|
|
904
|
+
}
|
|
905
|
+
.cbh-chat .cbh-results-time {
|
|
906
|
+
font-size: 15px;
|
|
907
|
+
font-weight: 600;
|
|
908
|
+
font-variant-numeric: tabular-nums;
|
|
909
|
+
white-space: nowrap;
|
|
910
|
+
}
|
|
911
|
+
.cbh-chat .cbh-results-next {
|
|
912
|
+
margin-left: 2px;
|
|
913
|
+
font-size: 10px;
|
|
914
|
+
font-weight: 700;
|
|
915
|
+
color: #b84100;
|
|
916
|
+
}
|
|
917
|
+
.cbh-chat .cbh-results-line {
|
|
918
|
+
position: relative;
|
|
919
|
+
flex: 1;
|
|
920
|
+
display: flex;
|
|
921
|
+
align-items: center;
|
|
922
|
+
justify-content: space-evenly;
|
|
923
|
+
min-width: 32px;
|
|
924
|
+
height: 2px;
|
|
925
|
+
border-radius: 1px;
|
|
926
|
+
background: hsl(var(--muted-foreground) / 0.35);
|
|
927
|
+
}
|
|
928
|
+
.cbh-chat .cbh-results-line::before,
|
|
929
|
+
.cbh-chat .cbh-results-line::after {
|
|
930
|
+
content: '';
|
|
931
|
+
position: absolute;
|
|
932
|
+
top: -2px;
|
|
933
|
+
width: 6px;
|
|
934
|
+
height: 6px;
|
|
935
|
+
border-radius: 50%;
|
|
936
|
+
background: hsl(var(--muted-foreground) / 0.7);
|
|
937
|
+
}
|
|
938
|
+
.cbh-chat .cbh-results-line::before {
|
|
939
|
+
left: -3px;
|
|
940
|
+
}
|
|
941
|
+
.cbh-chat .cbh-results-line::after {
|
|
942
|
+
right: -3px;
|
|
943
|
+
}
|
|
944
|
+
.cbh-chat .cbh-results-dot {
|
|
945
|
+
width: 8px;
|
|
946
|
+
height: 8px;
|
|
947
|
+
border-radius: 50%;
|
|
948
|
+
background: hsl(var(--card));
|
|
949
|
+
box-shadow: 0 0 0 2px #b84100;
|
|
950
|
+
}
|
|
951
|
+
.cbh-chat .cbh-results-places {
|
|
952
|
+
display: flex;
|
|
953
|
+
align-items: baseline;
|
|
954
|
+
justify-content: space-between;
|
|
955
|
+
gap: 8px;
|
|
956
|
+
margin-top: 4px;
|
|
957
|
+
font-size: 12px;
|
|
958
|
+
color: hsl(var(--muted-foreground));
|
|
959
|
+
font-variant-numeric: tabular-nums;
|
|
960
|
+
}
|
|
961
|
+
.cbh-chat .cbh-results-span {
|
|
962
|
+
flex: 1;
|
|
963
|
+
text-align: center;
|
|
964
|
+
}
|
|
965
|
+
.cbh-chat .cbh-results-via {
|
|
966
|
+
margin-top: 1px;
|
|
967
|
+
font-size: 12px;
|
|
968
|
+
text-align: center;
|
|
969
|
+
color: hsl(var(--muted-foreground));
|
|
970
|
+
}
|
|
971
|
+
.cbh-chat .cbh-results-badges {
|
|
972
|
+
display: inline-flex;
|
|
973
|
+
flex-wrap: wrap;
|
|
974
|
+
gap: 4px;
|
|
975
|
+
}
|
|
976
|
+
.cbh-chat .cbh-results-badge {
|
|
977
|
+
padding: 0 7px;
|
|
978
|
+
border-radius: 999px;
|
|
979
|
+
background: #fff1e6;
|
|
980
|
+
color: #b84100;
|
|
981
|
+
font-size: 11px;
|
|
982
|
+
font-weight: 600;
|
|
983
|
+
line-height: 19px;
|
|
984
|
+
white-space: nowrap;
|
|
985
|
+
}
|
|
986
|
+
.cbh-chat .cbh-results-badge[data-badge='cheapest'] {
|
|
987
|
+
background: #ecfdf5;
|
|
988
|
+
color: #047857;
|
|
989
|
+
}
|
|
990
|
+
.cbh-chat .cbh-results-badge[data-badge='fastest'] {
|
|
991
|
+
background: #f5f3ff;
|
|
992
|
+
color: #6d28d9;
|
|
993
|
+
}
|
|
994
|
+
.cbh-chat .cbh-results-foot-row {
|
|
995
|
+
display: flex;
|
|
996
|
+
align-items: center;
|
|
997
|
+
justify-content: space-between;
|
|
998
|
+
gap: 8px;
|
|
999
|
+
margin-top: 10px;
|
|
1000
|
+
padding-left: 38px;
|
|
1001
|
+
}
|
|
1002
|
+
.cbh-chat .cbh-results-item .cbh-results-foot-row {
|
|
1003
|
+
margin-top: 8px;
|
|
1004
|
+
padding-left: 62px;
|
|
1005
|
+
}
|
|
1006
|
+
.cbh-chat .cbh-results-fare {
|
|
1007
|
+
display: flex;
|
|
1008
|
+
flex-wrap: wrap;
|
|
1009
|
+
align-items: center;
|
|
1010
|
+
gap: 4px 8px;
|
|
1011
|
+
min-width: 0;
|
|
1012
|
+
font-size: 12px;
|
|
1013
|
+
color: hsl(var(--muted-foreground));
|
|
1014
|
+
}
|
|
1015
|
+
.cbh-chat .cbh-results-warn {
|
|
1016
|
+
display: inline-flex;
|
|
1017
|
+
align-items: center;
|
|
1018
|
+
gap: 4px;
|
|
1019
|
+
color: #b45309;
|
|
1020
|
+
font-weight: 600;
|
|
1021
|
+
}
|
|
1022
|
+
.cbh-chat .cbh-results-actions {
|
|
1023
|
+
flex: none;
|
|
1024
|
+
display: inline-flex;
|
|
1025
|
+
align-items: center;
|
|
1026
|
+
gap: 6px;
|
|
1027
|
+
}
|
|
1028
|
+
.cbh-chat .cbh-results-reply {
|
|
1029
|
+
display: inline-flex;
|
|
1030
|
+
align-items: center;
|
|
1031
|
+
gap: 4px;
|
|
1032
|
+
height: 32px;
|
|
1033
|
+
padding: 0 16px;
|
|
1034
|
+
border: 0;
|
|
1035
|
+
border-radius: 999px;
|
|
1036
|
+
background: hsl(var(--primary));
|
|
1037
|
+
color: hsl(var(--primary-foreground));
|
|
1038
|
+
font-size: 13px;
|
|
1039
|
+
font-weight: 600;
|
|
1040
|
+
cursor: pointer;
|
|
1041
|
+
}
|
|
1042
|
+
.cbh-chat .cbh-results-reply:hover:not([aria-disabled='true']) {
|
|
1043
|
+
opacity: 0.88;
|
|
1044
|
+
}
|
|
1045
|
+
.cbh-chat .cbh-results-reply[aria-disabled='true'] {
|
|
1046
|
+
background: hsl(var(--muted));
|
|
1047
|
+
color: hsl(var(--muted-foreground));
|
|
1048
|
+
cursor: default;
|
|
1049
|
+
}
|
|
1050
|
+
.cbh-chat .cbh-results-reply[data-sent] {
|
|
1051
|
+
background: #ecfdf5;
|
|
1052
|
+
color: #047857;
|
|
1053
|
+
}
|
|
1054
|
+
.cbh-chat .cbh-results-out {
|
|
1055
|
+
display: inline-flex;
|
|
1056
|
+
align-items: center;
|
|
1057
|
+
justify-content: center;
|
|
1058
|
+
width: 32px;
|
|
1059
|
+
height: 32px;
|
|
1060
|
+
border: 1px solid hsl(var(--border));
|
|
1061
|
+
border-radius: 999px;
|
|
1062
|
+
background: hsl(var(--card));
|
|
1063
|
+
color: hsl(var(--foreground));
|
|
1064
|
+
}
|
|
1065
|
+
.cbh-chat .cbh-results-out:hover {
|
|
1066
|
+
background: hsl(var(--muted));
|
|
1067
|
+
}
|
|
1068
|
+
.cbh-chat .cbh-results-more {
|
|
1069
|
+
display: block;
|
|
1070
|
+
width: 100%;
|
|
1071
|
+
padding: 10px 12px;
|
|
1072
|
+
border: 0;
|
|
1073
|
+
border-top: 1px solid hsl(var(--border));
|
|
1074
|
+
background: transparent;
|
|
1075
|
+
color: #b84100;
|
|
1076
|
+
font-size: 13px;
|
|
1077
|
+
font-weight: 600;
|
|
1078
|
+
cursor: pointer;
|
|
1079
|
+
}
|
|
1080
|
+
.cbh-chat .cbh-results-more:hover {
|
|
1081
|
+
background: hsl(var(--muted));
|
|
1082
|
+
}
|
|
1083
|
+
.cbh-chat .cbh-results-foot {
|
|
1084
|
+
display: flex;
|
|
1085
|
+
flex-wrap: wrap;
|
|
1086
|
+
align-items: center;
|
|
1087
|
+
justify-content: space-between;
|
|
1088
|
+
gap: 6px 12px;
|
|
1089
|
+
padding: 9px 12px;
|
|
1090
|
+
border-top: 1px solid hsl(var(--border));
|
|
1091
|
+
background: hsl(var(--muted) / 0.5);
|
|
1092
|
+
font-size: 12px;
|
|
1093
|
+
color: hsl(var(--muted-foreground));
|
|
1094
|
+
}
|
|
1095
|
+
.cbh-chat .cbh-results-foot a {
|
|
1096
|
+
display: inline-flex;
|
|
1097
|
+
align-items: center;
|
|
1098
|
+
gap: 3px;
|
|
1099
|
+
color: #b84100;
|
|
1100
|
+
font-weight: 600;
|
|
1101
|
+
text-decoration: none;
|
|
1102
|
+
white-space: nowrap;
|
|
1103
|
+
}
|
|
1104
|
+
.cbh-chat .cbh-results-foot a:hover {
|
|
1105
|
+
text-decoration: underline;
|
|
1106
|
+
}
|
|
1107
|
+
.cbh-chat .cbh-results-reply:focus-visible,
|
|
1108
|
+
.cbh-chat .cbh-results-out:focus-visible,
|
|
1109
|
+
.cbh-chat .cbh-results-more:focus-visible,
|
|
1110
|
+
.cbh-chat .cbh-results-foot a:focus-visible {
|
|
1111
|
+
outline: 2px solid hsl(var(--ring));
|
|
1112
|
+
outline-offset: 2px;
|
|
1113
|
+
}
|
|
1114
|
+
@media (max-width: 420px) {
|
|
1115
|
+
.cbh-chat .cbh-results-legs {
|
|
1116
|
+
grid-column: 1 / -1;
|
|
1117
|
+
}
|
|
1118
|
+
.cbh-chat .cbh-results-foot-row,
|
|
1119
|
+
.cbh-chat .cbh-results-item .cbh-results-foot-row {
|
|
1120
|
+
padding-left: 0;
|
|
1121
|
+
}
|
|
1122
|
+
.cbh-chat .cbh-results-time {
|
|
1123
|
+
font-size: 14px;
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
|
|
631
1127
|
/* Lucy's chores (ChoresPanel): the header button's count, then the panel - a sheet from the bottom
|
|
632
1128
|
on a phone, a card hanging under its button on a wider screen (the button's place comes in as
|
|
633
1129
|
--cbh-chores-top / --cbh-chores-right). */
|
|
@@ -648,9 +1144,9 @@ import {jsx}from'react/jsx-runtime';const CHAT_CSS = `
|
|
|
648
1144
|
text-align: center;
|
|
649
1145
|
font-variant-numeric: tabular-nums;
|
|
650
1146
|
}
|
|
651
|
-
/*
|
|
652
|
-
still read it). */
|
|
653
|
-
@media (max-width:
|
|
1147
|
+
/* Narrow phones: New chat keeps its icon and gives its word up to Lucy's name, which the header's
|
|
1148
|
+
History beside it would squeeze to a letter (screen readers still read it). */
|
|
1149
|
+
@media (max-width: 389px) {
|
|
654
1150
|
.cbh-chat .cbh-chat-newchat {
|
|
655
1151
|
position: absolute;
|
|
656
1152
|
width: 1px;
|
|
@@ -886,6 +1382,182 @@ import {jsx}from'react/jsx-runtime';const CHAT_CSS = `
|
|
|
886
1382
|
.cbh-chat .cbh-chores-empty .cbh-chores-icon {
|
|
887
1383
|
margin-bottom: 6px;
|
|
888
1384
|
}
|
|
1385
|
+
/* The chat's history (HistoryPanel): the same sheet and card, holding past chats. A row keeps room
|
|
1386
|
+
at its end for its delete button, which a mouse finds on hover; a question about a row (delete it,
|
|
1387
|
+
or stop Lucy to open it) takes its place, or sits under it. */
|
|
1388
|
+
.cbh-chat .cbh-history-line {
|
|
1389
|
+
position: relative;
|
|
1390
|
+
}
|
|
1391
|
+
.cbh-chat .cbh-history-line .cbh-chores-row {
|
|
1392
|
+
padding-right: 48px;
|
|
1393
|
+
}
|
|
1394
|
+
.cbh-chat .cbh-history-delete {
|
|
1395
|
+
position: absolute;
|
|
1396
|
+
top: 50%;
|
|
1397
|
+
right: 8px;
|
|
1398
|
+
display: grid;
|
|
1399
|
+
place-items: center;
|
|
1400
|
+
width: 32px;
|
|
1401
|
+
height: 32px;
|
|
1402
|
+
border: 0;
|
|
1403
|
+
border-radius: 999px;
|
|
1404
|
+
background: transparent;
|
|
1405
|
+
color: hsl(var(--muted-foreground));
|
|
1406
|
+
cursor: pointer;
|
|
1407
|
+
transform: translateY(-50%);
|
|
1408
|
+
}
|
|
1409
|
+
.cbh-chat .cbh-history-delete:hover {
|
|
1410
|
+
background: hsl(var(--background));
|
|
1411
|
+
color: #b42318;
|
|
1412
|
+
}
|
|
1413
|
+
@media (hover: hover) {
|
|
1414
|
+
.cbh-chat .cbh-history-delete {
|
|
1415
|
+
opacity: 0;
|
|
1416
|
+
}
|
|
1417
|
+
.cbh-chat .cbh-history-line:hover .cbh-history-delete,
|
|
1418
|
+
.cbh-chat .cbh-history-line:focus-within .cbh-history-delete {
|
|
1419
|
+
opacity: 1;
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
.cbh-chat .cbh-history-ask {
|
|
1423
|
+
margin: 2px 0 6px;
|
|
1424
|
+
padding: 12px;
|
|
1425
|
+
border: 1px solid hsl(var(--border));
|
|
1426
|
+
border-radius: 14px;
|
|
1427
|
+
background: hsl(var(--background));
|
|
1428
|
+
}
|
|
1429
|
+
.cbh-chat .cbh-history-ask p {
|
|
1430
|
+
margin: 0;
|
|
1431
|
+
font-size: 13px;
|
|
1432
|
+
color: hsl(var(--muted-foreground));
|
|
1433
|
+
}
|
|
1434
|
+
.cbh-chat .cbh-history-ask b {
|
|
1435
|
+
display: block;
|
|
1436
|
+
margin-bottom: 2px;
|
|
1437
|
+
overflow: hidden;
|
|
1438
|
+
white-space: nowrap;
|
|
1439
|
+
text-overflow: ellipsis;
|
|
1440
|
+
font-size: 14px;
|
|
1441
|
+
font-weight: 600;
|
|
1442
|
+
color: hsl(var(--foreground));
|
|
1443
|
+
}
|
|
1444
|
+
.cbh-chat .cbh-history-ask-actions {
|
|
1445
|
+
display: flex;
|
|
1446
|
+
justify-content: flex-end;
|
|
1447
|
+
gap: 6px;
|
|
1448
|
+
margin-top: 10px;
|
|
1449
|
+
}
|
|
1450
|
+
.cbh-chat .cbh-history-ask-actions button {
|
|
1451
|
+
padding: 8px 12px;
|
|
1452
|
+
border: 0;
|
|
1453
|
+
border-radius: 10px;
|
|
1454
|
+
background: transparent;
|
|
1455
|
+
color: hsl(var(--muted-foreground));
|
|
1456
|
+
font: inherit;
|
|
1457
|
+
font-size: 13.5px;
|
|
1458
|
+
font-weight: 500;
|
|
1459
|
+
cursor: pointer;
|
|
1460
|
+
}
|
|
1461
|
+
.cbh-chat .cbh-history-ask-actions button:hover {
|
|
1462
|
+
background: hsl(var(--muted));
|
|
1463
|
+
color: hsl(var(--foreground));
|
|
1464
|
+
}
|
|
1465
|
+
.cbh-chat .cbh-history-ask-actions .cbh-history-go,
|
|
1466
|
+
.cbh-chat .cbh-history-ask-actions .cbh-history-go:hover {
|
|
1467
|
+
background: hsl(var(--primary));
|
|
1468
|
+
color: hsl(var(--primary-foreground));
|
|
1469
|
+
}
|
|
1470
|
+
.cbh-chat .cbh-history-ask-actions .cbh-history-danger,
|
|
1471
|
+
.cbh-chat .cbh-history-ask-actions .cbh-history-danger:hover {
|
|
1472
|
+
background: #b42318;
|
|
1473
|
+
color: #fff;
|
|
1474
|
+
}
|
|
1475
|
+
.cbh-chat .cbh-history-ask-actions .cbh-history-go:hover,
|
|
1476
|
+
.cbh-chat .cbh-history-ask-actions .cbh-history-danger:hover {
|
|
1477
|
+
opacity: 0.9;
|
|
1478
|
+
}
|
|
1479
|
+
.cbh-chat .cbh-history-delete:focus-visible,
|
|
1480
|
+
.cbh-chat .cbh-history-ask-actions button:focus-visible {
|
|
1481
|
+
outline: 2px solid hsl(var(--ring));
|
|
1482
|
+
outline-offset: 2px;
|
|
1483
|
+
}
|
|
1484
|
+
/* Connect your apps (ConnectorsPanel): the same sheet and card. An app shows its own mark on a white
|
|
1485
|
+
tile; each row ends in the link that connects it on Yantra, and what Lucy does with it may take
|
|
1486
|
+
two lines. */
|
|
1487
|
+
.cbh-chat .cbh-apps-logo {
|
|
1488
|
+
flex: none;
|
|
1489
|
+
display: grid;
|
|
1490
|
+
place-items: center;
|
|
1491
|
+
width: 34px;
|
|
1492
|
+
height: 34px;
|
|
1493
|
+
border-radius: 11px;
|
|
1494
|
+
background: #fff;
|
|
1495
|
+
box-shadow: inset 0 0 0 1px hsl(var(--border));
|
|
1496
|
+
}
|
|
1497
|
+
.cbh-chat .cbh-apps-row {
|
|
1498
|
+
display: flex;
|
|
1499
|
+
align-items: center;
|
|
1500
|
+
gap: 12px;
|
|
1501
|
+
padding: 10px 8px;
|
|
1502
|
+
}
|
|
1503
|
+
.cbh-chat .cbh-apps .cbh-chores-row-text small {
|
|
1504
|
+
overflow: visible;
|
|
1505
|
+
white-space: normal;
|
|
1506
|
+
text-overflow: clip;
|
|
1507
|
+
}
|
|
1508
|
+
.cbh-chat .cbh-apps-connect {
|
|
1509
|
+
flex: none;
|
|
1510
|
+
min-width: 76px;
|
|
1511
|
+
padding: 7px 14px;
|
|
1512
|
+
border-radius: 999px;
|
|
1513
|
+
background: hsl(var(--primary));
|
|
1514
|
+
color: hsl(var(--primary-foreground));
|
|
1515
|
+
font-size: 13px;
|
|
1516
|
+
font-weight: 600;
|
|
1517
|
+
text-align: center;
|
|
1518
|
+
text-decoration: none;
|
|
1519
|
+
}
|
|
1520
|
+
.cbh-chat .cbh-apps-connect[data-group='saved'] {
|
|
1521
|
+
background: hsl(var(--card));
|
|
1522
|
+
color: hsl(var(--foreground));
|
|
1523
|
+
box-shadow: inset 0 0 0 1px hsl(var(--border));
|
|
1524
|
+
}
|
|
1525
|
+
.cbh-chat .cbh-apps-connect:hover {
|
|
1526
|
+
opacity: 0.9;
|
|
1527
|
+
}
|
|
1528
|
+
.cbh-chat .cbh-apps-connect[data-group='saved']:hover {
|
|
1529
|
+
opacity: 1;
|
|
1530
|
+
background: hsl(var(--muted));
|
|
1531
|
+
}
|
|
1532
|
+
.cbh-chat .cbh-apps-all {
|
|
1533
|
+
display: flex;
|
|
1534
|
+
align-items: center;
|
|
1535
|
+
gap: 10px;
|
|
1536
|
+
margin: 8px 8px 0;
|
|
1537
|
+
padding: 12px 14px;
|
|
1538
|
+
border: 1px dashed hsl(var(--border));
|
|
1539
|
+
border-radius: 14px;
|
|
1540
|
+
color: hsl(var(--foreground));
|
|
1541
|
+
font-size: 13.5px;
|
|
1542
|
+
font-weight: 600;
|
|
1543
|
+
text-decoration: none;
|
|
1544
|
+
}
|
|
1545
|
+
.cbh-chat .cbh-apps-all span {
|
|
1546
|
+
flex: 1;
|
|
1547
|
+
}
|
|
1548
|
+
.cbh-chat .cbh-apps-all:hover {
|
|
1549
|
+
background: hsl(var(--muted));
|
|
1550
|
+
}
|
|
1551
|
+
.cbh-chat .cbh-apps-note {
|
|
1552
|
+
margin: 10px 8px 2px;
|
|
1553
|
+
font-size: 12px;
|
|
1554
|
+
color: hsl(var(--muted-foreground));
|
|
1555
|
+
}
|
|
1556
|
+
.cbh-chat .cbh-apps-connect:focus-visible,
|
|
1557
|
+
.cbh-chat .cbh-apps-all:focus-visible {
|
|
1558
|
+
outline: 2px solid hsl(var(--ring));
|
|
1559
|
+
outline-offset: 2px;
|
|
1560
|
+
}
|
|
889
1561
|
/* one chore, opened */
|
|
890
1562
|
.cbh-chat .cbh-chores-detail {
|
|
891
1563
|
padding: 0 8px 4px;
|
|
@@ -1090,11 +1762,16 @@ import {jsx}from'react/jsx-runtime';const CHAT_CSS = `
|
|
|
1090
1762
|
.cbh-chat .cbh-chores-spin,
|
|
1091
1763
|
.cbh-chat .cbh-chores-pulse,
|
|
1092
1764
|
.cbh-chat .cbh-calls,
|
|
1093
|
-
.cbh-chat .cbh-calls-dot
|
|
1765
|
+
.cbh-chat .cbh-calls-dot,
|
|
1766
|
+
.cbh-chat .cbh-results {
|
|
1094
1767
|
animation: none;
|
|
1095
1768
|
}
|
|
1769
|
+
.cbh-chat .cbh-results-row {
|
|
1770
|
+
transition: none;
|
|
1771
|
+
}
|
|
1096
1772
|
.cbh-chat .cbh-chat-starter,
|
|
1097
|
-
.cbh-chat .cbh-chat-imsg
|
|
1773
|
+
.cbh-chat .cbh-chat-imsg,
|
|
1774
|
+
.cbh-chat .cbh-chat-apps {
|
|
1098
1775
|
transition: none;
|
|
1099
1776
|
}
|
|
1100
1777
|
}
|