@apextelemed/partner-core 0.6.4 → 0.8.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/README.md +2 -2
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +3 -3
- package/dist/api/index.jsx +5 -3
- package/dist/{cart-D4mVX_zx.d.ts → cart-o6DpAu5y.d.ts} +1 -0
- package/dist/chunk/{4ZSZHZQV.jsx → 2OOCTPLG.jsx} +2 -2
- package/dist/chunk/{MLXPHJLR.js → 4HOG2LES.js} +7 -3
- package/dist/chunk/4HOG2LES.js.map +1 -0
- package/dist/chunk/{5HNZ7SEM.jsx → 6UXFHBE2.jsx} +45 -219
- package/dist/chunk/{HXMLRDIJ.jsx → AW6DQGQR.jsx} +647 -122
- package/dist/chunk/{NSRQXBHK.js → EHKYRS2R.js} +25 -189
- package/dist/chunk/EHKYRS2R.js.map +1 -0
- package/dist/chunk/{YJEHCCLY.js → EXXI5Y7I.js} +4 -3
- package/dist/chunk/EXXI5Y7I.js.map +1 -0
- package/dist/chunk/{WLEIDQ5M.jsx → GL3OY7W5.jsx} +6 -2
- package/dist/chunk/{ZDBW3JDO.jsx → GNPMRN6O.jsx} +3348 -1428
- package/dist/chunk/{QTGJY3YQ.js → HEQMD3X4.js} +3 -3
- package/dist/chunk/{QTGJY3YQ.js.map → HEQMD3X4.js.map} +1 -1
- package/dist/chunk/{WUE4VQBA.js → HKXDH266.js} +520 -23
- package/dist/chunk/HKXDH266.js.map +1 -0
- package/dist/chunk/{MTCQREMZ.js → HYLIHVIE.js} +4176 -2111
- package/dist/chunk/HYLIHVIE.js.map +1 -0
- package/dist/chunk/{EVCGDF5D.jsx → JF2KCOOX.jsx} +18 -1
- package/dist/chunk/{NBB2VTQK.jsx → QAFLR3EN.jsx} +2 -2
- package/dist/chunk/{2OXI5TKO.jsx → RSMUKR4J.jsx} +3 -2
- package/dist/chunk/{BEDW4XUM.js → RUA3XYFO.js} +19 -3
- package/dist/chunk/RUA3XYFO.js.map +1 -0
- package/dist/chunk/{BVLA7ATM.js → ZOZBYBNI.js} +3 -3
- package/dist/chunk/{BVLA7ATM.js.map → ZOZBYBNI.js.map} +1 -1
- package/dist/{client-B6Kt7LWo.d.ts → client-ZnA3JEbd.d.ts} +91 -8
- package/dist/flows/index.d.ts +246 -13
- package/dist/flows/index.js +6 -6
- package/dist/flows/index.jsx +31 -13
- package/dist/index/index.d.ts +4 -4
- package/dist/index/index.js +8 -8
- package/dist/index/index.jsx +48 -16
- package/dist/pages/index.d.ts +41 -6
- package/dist/pages/index.js +5 -5
- package/dist/pages/index.jsx +19 -7
- package/dist/primitives/default/index.js +1 -1
- package/dist/primitives/default/index.jsx +1 -1
- package/dist/stores/index.d.ts +2 -2
- package/dist/stores/index.js +2 -2
- package/dist/stores/index.jsx +2 -2
- package/dist/testing/seam-suite.js +1 -1
- package/dist/theme/admin.css +406 -1
- package/dist/theme/member-portal.css +5 -5
- package/package.json +1 -1
- package/dist/chunk/BEDW4XUM.js.map +0 -1
- package/dist/chunk/MLXPHJLR.js.map +0 -1
- package/dist/chunk/MTCQREMZ.js.map +0 -1
- package/dist/chunk/NSRQXBHK.js.map +0 -1
- package/dist/chunk/WUE4VQBA.js.map +0 -1
- package/dist/chunk/YJEHCCLY.js.map +0 -1
package/dist/theme/admin.css
CHANGED
|
@@ -119,6 +119,57 @@
|
|
|
119
119
|
outline: 2px solid var(--app-admin-primary);
|
|
120
120
|
outline-offset: 1px;
|
|
121
121
|
}
|
|
122
|
+
/* Page/panel-level notice that stays until its cause is fixed (a banner, not
|
|
123
|
+
a toast). Color plus a bold lead-in and plain text — never color alone. */
|
|
124
|
+
.app-admin-banner {
|
|
125
|
+
padding: 0.75rem 1rem;
|
|
126
|
+
border-radius: var(--app-admin-radius);
|
|
127
|
+
font-size: 0.8125rem;
|
|
128
|
+
line-height: 1.4;
|
|
129
|
+
margin-bottom: 1.5rem;
|
|
130
|
+
}
|
|
131
|
+
.app-admin-banner--info {
|
|
132
|
+
background: var(--app-admin-surface-light);
|
|
133
|
+
border: 1px solid var(--app-admin-border);
|
|
134
|
+
color: var(--app-admin-fg);
|
|
135
|
+
display: flex;
|
|
136
|
+
justify-content: space-between;
|
|
137
|
+
gap: 1rem;
|
|
138
|
+
align-items: flex-start;
|
|
139
|
+
}
|
|
140
|
+
.app-admin-banner--warn {
|
|
141
|
+
background: rgba(245, 158, 11, 0.12);
|
|
142
|
+
border: 1px solid rgba(245, 158, 11, 0.7);
|
|
143
|
+
color: var(--app-admin-fg);
|
|
144
|
+
display: flex;
|
|
145
|
+
justify-content: space-between;
|
|
146
|
+
gap: 1rem;
|
|
147
|
+
align-items: flex-start;
|
|
148
|
+
}
|
|
149
|
+
.app-admin-banner__dismiss {
|
|
150
|
+
background: none;
|
|
151
|
+
border: none;
|
|
152
|
+
color: inherit;
|
|
153
|
+
font-size: 1.125rem;
|
|
154
|
+
line-height: 1;
|
|
155
|
+
cursor: pointer;
|
|
156
|
+
padding: 0 0.25rem;
|
|
157
|
+
}
|
|
158
|
+
.app-admin-banner--danger {
|
|
159
|
+
background: var(--app-admin-danger-bg);
|
|
160
|
+
border: 1px solid var(--app-admin-danger-fg);
|
|
161
|
+
color: var(--app-admin-danger-fg);
|
|
162
|
+
}
|
|
163
|
+
/* Field-level validation: the errored control plus its message directly
|
|
164
|
+
beneath it (never color alone — the text carries the meaning). */
|
|
165
|
+
.app-admin-input.is-invalid {
|
|
166
|
+
border-color: var(--app-admin-danger-fg);
|
|
167
|
+
}
|
|
168
|
+
.app-admin-field-error {
|
|
169
|
+
margin-top: 0.375rem;
|
|
170
|
+
font-size: 0.75rem;
|
|
171
|
+
color: var(--app-admin-danger-fg);
|
|
172
|
+
}
|
|
122
173
|
|
|
123
174
|
.app-admin-label {
|
|
124
175
|
display: block;
|
|
@@ -142,6 +193,21 @@
|
|
|
142
193
|
cursor: pointer;
|
|
143
194
|
transition: background-color 0.15s, opacity 0.15s;
|
|
144
195
|
border: 1px solid transparent;
|
|
196
|
+
/* A button label is one token: the admin root's `overflow-wrap: anywhere`
|
|
197
|
+
would otherwise split "Cancel" letter by letter when a row of buttons is
|
|
198
|
+
squeezed (the editor footer in its 400px panel). Rows of buttons wrap
|
|
199
|
+
onto a new line instead — see .app-admin-btn-row. */
|
|
200
|
+
white-space: nowrap;
|
|
201
|
+
}
|
|
202
|
+
/* A row of actions that keeps every button readable: buttons wrap onto the
|
|
203
|
+
next line rather than shrinking below their label. */
|
|
204
|
+
.app-admin-btn-row {
|
|
205
|
+
display: flex;
|
|
206
|
+
flex-wrap: wrap;
|
|
207
|
+
gap: 0.75rem;
|
|
208
|
+
}
|
|
209
|
+
.app-admin-btn-row > .app-admin-btn {
|
|
210
|
+
flex: 1 1 auto;
|
|
145
211
|
}
|
|
146
212
|
.app-admin-btn:disabled {
|
|
147
213
|
opacity: 0.5;
|
|
@@ -204,11 +270,42 @@
|
|
|
204
270
|
.app-admin-table th {
|
|
205
271
|
padding: 0.75rem 1rem;
|
|
206
272
|
font-weight: 500;
|
|
273
|
+
/* Column headers never wrap. The mobile baseline below sets
|
|
274
|
+
`overflow-wrap: anywhere` on the whole admin root, which otherwise lets a
|
|
275
|
+
fixed-width header like Products' 4rem "Status" split mid-word. */
|
|
276
|
+
white-space: nowrap;
|
|
207
277
|
}
|
|
208
278
|
.app-admin-table td {
|
|
209
279
|
padding: 0.75rem 1rem;
|
|
210
280
|
border-bottom: 1px solid var(--app-admin-border-soft);
|
|
211
281
|
}
|
|
282
|
+
/* Numeric cell (prices, counts): a value is one token and never wraps —
|
|
283
|
+
the admin root's `overflow-wrap: anywhere` would otherwise split "$0.04"
|
|
284
|
+
across lines in a narrow pane. */
|
|
285
|
+
.app-admin-table .app-admin-table-cell--num {
|
|
286
|
+
white-space: nowrap;
|
|
287
|
+
font-variant-numeric: tabular-nums;
|
|
288
|
+
}
|
|
289
|
+
/* Row-action cell: hugs its buttons and never lets a label break mid-word
|
|
290
|
+
(the admin root's `overflow-wrap: anywhere` would otherwise stack
|
|
291
|
+
"Add to store" one letter per line inside a shrunk column). */
|
|
292
|
+
.app-admin-table .app-admin-table-cell--actions {
|
|
293
|
+
white-space: nowrap;
|
|
294
|
+
text-align: right;
|
|
295
|
+
width: 1%;
|
|
296
|
+
}
|
|
297
|
+
/* A heading row inside <tbody> (e.g. Products' per-category groups). Same
|
|
298
|
+
voice as the column headers, but a hair heavier so it reads as a divider. */
|
|
299
|
+
.app-admin-table tbody tr.app-admin-table-group th {
|
|
300
|
+
padding: 0.5rem 1rem;
|
|
301
|
+
font-size: 0.7rem;
|
|
302
|
+
font-weight: 600;
|
|
303
|
+
text-transform: uppercase;
|
|
304
|
+
letter-spacing: 0.05em;
|
|
305
|
+
color: var(--app-admin-fg-muted);
|
|
306
|
+
background: var(--app-admin-surface-light);
|
|
307
|
+
border-bottom: 1px solid var(--app-admin-border-soft);
|
|
308
|
+
}
|
|
212
309
|
.app-admin-table tbody tr {
|
|
213
310
|
transition: background-color 0.15s;
|
|
214
311
|
}
|
|
@@ -221,6 +318,12 @@
|
|
|
221
318
|
.app-admin-table tbody tr.is-active {
|
|
222
319
|
background: var(--app-admin-primary-soft);
|
|
223
320
|
}
|
|
321
|
+
/* A row whose click has a request in flight: dimmed and inert until it settles. */
|
|
322
|
+
.app-admin-table tbody tr.is-pending {
|
|
323
|
+
opacity: 0.5;
|
|
324
|
+
pointer-events: none;
|
|
325
|
+
cursor: progress;
|
|
326
|
+
}
|
|
224
327
|
|
|
225
328
|
.app-admin-badge {
|
|
226
329
|
display: inline-block;
|
|
@@ -268,6 +371,18 @@
|
|
|
268
371
|
.app-admin-text-muted {
|
|
269
372
|
color: var(--app-admin-fg-muted);
|
|
270
373
|
}
|
|
374
|
+
/* Visually hidden, still read by screen readers (e.g. an actions column's header). */
|
|
375
|
+
.app-admin-sr-only {
|
|
376
|
+
position: absolute;
|
|
377
|
+
width: 1px;
|
|
378
|
+
height: 1px;
|
|
379
|
+
overflow: hidden;
|
|
380
|
+
clip: rect(0 0 0 0);
|
|
381
|
+
margin: -1px;
|
|
382
|
+
padding: 0;
|
|
383
|
+
border: 0;
|
|
384
|
+
white-space: nowrap;
|
|
385
|
+
}
|
|
271
386
|
.app-admin-text-mono {
|
|
272
387
|
font-family: var(--app-admin-font-mono);
|
|
273
388
|
}
|
|
@@ -374,10 +489,196 @@
|
|
|
374
489
|
transform: translate(1.25rem, -50%);
|
|
375
490
|
}
|
|
376
491
|
|
|
492
|
+
/* ── Inline cell editors (Products price / categories) ─────────────── */
|
|
493
|
+
|
|
494
|
+
/* A table cell that opens an editor. Looks like its content until hovered,
|
|
495
|
+
then hints at editability; keyboard-focusable like any button. */
|
|
496
|
+
.app-admin-cell-btn {
|
|
497
|
+
background: none;
|
|
498
|
+
border: none;
|
|
499
|
+
padding: 0.125rem 0.25rem;
|
|
500
|
+
margin: -0.125rem -0.25rem;
|
|
501
|
+
font: inherit;
|
|
502
|
+
color: inherit;
|
|
503
|
+
text-align: inherit;
|
|
504
|
+
cursor: pointer;
|
|
505
|
+
border-radius: var(--app-admin-radius-sm);
|
|
506
|
+
min-height: 1.75rem;
|
|
507
|
+
}
|
|
508
|
+
.app-admin-cell-btn:hover {
|
|
509
|
+
background: rgba(127, 127, 127, 0.12);
|
|
510
|
+
}
|
|
511
|
+
/* A cell button that IS the call to action ("Needs a price"): drawn as a
|
|
512
|
+
small outlined pill so it reads as something to press, not a caption. */
|
|
513
|
+
.app-admin-cell-btn--cta {
|
|
514
|
+
padding: 0.25rem 0.625rem;
|
|
515
|
+
margin: 0;
|
|
516
|
+
border: 1px solid var(--app-admin-warning-bg-strong);
|
|
517
|
+
border-radius: 999px;
|
|
518
|
+
color: var(--app-admin-warning-fg);
|
|
519
|
+
font-size: 0.75rem;
|
|
520
|
+
font-weight: 500;
|
|
521
|
+
white-space: nowrap;
|
|
522
|
+
}
|
|
523
|
+
.app-admin-cell-btn--cta:hover {
|
|
524
|
+
background: var(--app-admin-warning-bg);
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
/* Products rows: thumbnail beside the name. The frame is always drawn so
|
|
528
|
+
rows without an image (every drug not yet configured) stay aligned. */
|
|
529
|
+
.app-admin-product-cell {
|
|
530
|
+
display: flex;
|
|
531
|
+
align-items: center;
|
|
532
|
+
gap: 0.625rem;
|
|
533
|
+
min-width: 0;
|
|
534
|
+
}
|
|
535
|
+
.app-admin-product-cell__text {
|
|
536
|
+
min-width: 0;
|
|
537
|
+
}
|
|
538
|
+
.app-admin-product-thumb {
|
|
539
|
+
flex: none;
|
|
540
|
+
width: 2.25rem;
|
|
541
|
+
height: 2.25rem;
|
|
542
|
+
border-radius: var(--app-admin-radius-sm);
|
|
543
|
+
border: 1px solid var(--app-admin-border);
|
|
544
|
+
background: rgba(127, 127, 127, 0.08);
|
|
545
|
+
overflow: hidden;
|
|
546
|
+
}
|
|
547
|
+
.app-admin-product-thumb img {
|
|
548
|
+
display: block;
|
|
549
|
+
width: 100%;
|
|
550
|
+
height: 100%;
|
|
551
|
+
object-fit: cover;
|
|
552
|
+
}
|
|
553
|
+
.app-admin-cell-btn:focus-visible {
|
|
554
|
+
outline: 2px solid var(--app-admin-primary);
|
|
555
|
+
outline-offset: 1px;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
/* The anchored card (portalled to <body>, positioned from the cell's rect). */
|
|
559
|
+
.app-admin-popover {
|
|
560
|
+
position: fixed;
|
|
561
|
+
z-index: 70; /* above the side panel (30) and the mobile shell (40/60) */
|
|
562
|
+
width: 20rem;
|
|
563
|
+
max-width: calc(100vw - 1rem);
|
|
564
|
+
padding: 1rem;
|
|
565
|
+
background: var(--app-admin-surface);
|
|
566
|
+
border: 1px solid var(--app-admin-border);
|
|
567
|
+
border-radius: var(--app-admin-radius);
|
|
568
|
+
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
|
|
569
|
+
color: var(--app-admin-fg);
|
|
570
|
+
font-size: 0.875rem;
|
|
571
|
+
}
|
|
572
|
+
.app-admin-popover-title {
|
|
573
|
+
font-family: var(--app-admin-font-display);
|
|
574
|
+
font-weight: 600;
|
|
575
|
+
margin-bottom: 0.625rem;
|
|
576
|
+
}
|
|
577
|
+
.app-admin-popover-rows {
|
|
578
|
+
display: flex;
|
|
579
|
+
flex-direction: column;
|
|
580
|
+
gap: 0.375rem;
|
|
581
|
+
max-height: 14rem;
|
|
582
|
+
overflow-y: auto;
|
|
583
|
+
}
|
|
584
|
+
.app-admin-popover-row {
|
|
585
|
+
display: grid;
|
|
586
|
+
grid-template-columns: minmax(0, 1fr) 7rem;
|
|
587
|
+
align-items: center;
|
|
588
|
+
gap: 0.5rem;
|
|
589
|
+
font-size: 0.8125rem;
|
|
590
|
+
}
|
|
591
|
+
.app-admin-popover-check {
|
|
592
|
+
display: flex;
|
|
593
|
+
align-items: center;
|
|
594
|
+
gap: 0.5rem;
|
|
595
|
+
min-height: 1.75rem;
|
|
596
|
+
cursor: pointer;
|
|
597
|
+
}
|
|
598
|
+
.app-admin-popover-actions {
|
|
599
|
+
display: flex;
|
|
600
|
+
justify-content: flex-end;
|
|
601
|
+
gap: 0.5rem;
|
|
602
|
+
margin-top: 0.875rem;
|
|
603
|
+
}
|
|
604
|
+
.app-admin-popover .app-admin-btn {
|
|
605
|
+
white-space: nowrap; /* "Add" / "Save price" never break inside the card */
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/* ── Products: the two lists sit side by side when the content is wide ── */
|
|
609
|
+
|
|
610
|
+
/* The grid is sized by the CONTENT column, not the viewport, so it stacks
|
|
611
|
+
by itself when the window (or the admin shell's content area) is narrow.
|
|
612
|
+
The edit panel overlays the list, so opening it never changes the width. */
|
|
613
|
+
.app-admin-products-panes-host {
|
|
614
|
+
container-type: inline-size;
|
|
615
|
+
}
|
|
616
|
+
.app-admin-products-panes {
|
|
617
|
+
display: grid;
|
|
618
|
+
grid-template-columns: minmax(0, 1fr);
|
|
619
|
+
gap: 1.5rem;
|
|
620
|
+
align-items: start;
|
|
621
|
+
}
|
|
622
|
+
/* The checkbox column hugs its box; the checked row is tinted. */
|
|
623
|
+
.app-admin-table .app-admin-table-cell--check {
|
|
624
|
+
width: 1%;
|
|
625
|
+
white-space: nowrap;
|
|
626
|
+
padding-right: 0;
|
|
627
|
+
}
|
|
628
|
+
.app-admin-table tbody tr.is-checked {
|
|
629
|
+
background: rgba(59, 130, 246, 0.08);
|
|
630
|
+
}
|
|
631
|
+
/* The arrows: a bar above the two lists (a middle column squeezed the panes
|
|
632
|
+
until their action buttons clipped). Sticky so a long list keeps them in
|
|
633
|
+
reach; the theme's top offset accounts for a site header. */
|
|
634
|
+
.app-admin-products-transfer {
|
|
635
|
+
display: flex;
|
|
636
|
+
gap: 0.75rem;
|
|
637
|
+
justify-content: center;
|
|
638
|
+
flex-wrap: wrap;
|
|
639
|
+
position: sticky;
|
|
640
|
+
top: var(--app-admin-top-offset, 0px);
|
|
641
|
+
z-index: 5;
|
|
642
|
+
padding: 0.5rem 0;
|
|
643
|
+
margin-bottom: 1rem;
|
|
644
|
+
background: var(--app-admin-bg, transparent);
|
|
645
|
+
}
|
|
646
|
+
/* Rows are the add/remove control and take keyboard focus. Draw the focus
|
|
647
|
+
ring inside the row so the table's edges and the neighboring rows never
|
|
648
|
+
clip it. */
|
|
649
|
+
.app-admin-products-panes .app-admin-table tbody tr.is-clickable:focus-visible {
|
|
650
|
+
outline-offset: -2px;
|
|
651
|
+
}
|
|
652
|
+
/* The Apex drug id lives under the name. Break at its hyphens when the
|
|
653
|
+
column is narrow, never inside a word. */
|
|
654
|
+
.app-admin-product-id {
|
|
655
|
+
font-size: 0.7rem;
|
|
656
|
+
margin-top: 0.125rem;
|
|
657
|
+
overflow-wrap: break-word;
|
|
658
|
+
}
|
|
659
|
+
@container (min-width: 880px) {
|
|
660
|
+
.app-admin-products-panes {
|
|
661
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
662
|
+
}
|
|
663
|
+
/* Two ~440px panes: name (+ id), price, categories and Edit fit; the
|
|
664
|
+
dosage list is the one column that doesn't, and the editor has it. */
|
|
665
|
+
.app-admin-products-panes .app-admin-products-col-dosages {
|
|
666
|
+
display: none;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
|
|
377
670
|
/* ── Mobile baseline ─────────────────────────────────────────────── */
|
|
378
671
|
|
|
672
|
+
/* `break-word`, not `anywhere`. Both break a token that is wider than its
|
|
673
|
+
box (a long email or id on a phone), but `anywhere` ALSO feeds every
|
|
674
|
+
possible break into min-content sizing, so a squeezed table column, button
|
|
675
|
+
or heading shrinks below its longest word and then splits it: "STAT / US",
|
|
676
|
+
"$0. / 04", "Canc / el". Each of those was patched with its own
|
|
677
|
+
`white-space: nowrap` and the next new element regressed. `break-word`
|
|
678
|
+
leaves min-content alone: a column is never narrower than its longest
|
|
679
|
+
word, and only a genuinely oversized token breaks. */
|
|
379
680
|
.app-admin-root {
|
|
380
|
-
overflow-wrap:
|
|
681
|
+
overflow-wrap: break-word;
|
|
381
682
|
}
|
|
382
683
|
.app-admin-root img,
|
|
383
684
|
.app-admin-root video {
|
|
@@ -536,6 +837,12 @@
|
|
|
536
837
|
.app-admin-table tbody tr:last-child {
|
|
537
838
|
border-bottom: none;
|
|
538
839
|
}
|
|
840
|
+
.app-admin-table tbody tr.app-admin-table-group {
|
|
841
|
+
padding: 0;
|
|
842
|
+
}
|
|
843
|
+
.app-admin-table tbody tr.app-admin-table-group th {
|
|
844
|
+
text-align: left;
|
|
845
|
+
}
|
|
539
846
|
.app-admin-table td {
|
|
540
847
|
border-bottom: none;
|
|
541
848
|
padding: 0.25rem 0;
|
|
@@ -576,6 +883,20 @@
|
|
|
576
883
|
.app-admin-table .app-admin-table-cell--end {
|
|
577
884
|
order: 99;
|
|
578
885
|
}
|
|
886
|
+
/* The checkbox leads the stacked card. */
|
|
887
|
+
.app-admin-table .app-admin-table-cell--check {
|
|
888
|
+
order: -2;
|
|
889
|
+
width: auto;
|
|
890
|
+
justify-content: flex-start;
|
|
891
|
+
padding-bottom: 0.25rem;
|
|
892
|
+
}
|
|
893
|
+
/* Row actions close the stacked card, right-aligned, after every value. */
|
|
894
|
+
.app-admin-table .app-admin-table-cell--actions {
|
|
895
|
+
order: 100;
|
|
896
|
+
width: auto; /* the desktop 1% hug would crush the button in a stacked card */
|
|
897
|
+
justify-content: flex-end;
|
|
898
|
+
padding-top: 0.5rem;
|
|
899
|
+
}
|
|
579
900
|
}
|
|
580
901
|
|
|
581
902
|
/* ── Detail view (the admin detail-page standard) ────────────────────
|
|
@@ -1011,3 +1332,87 @@
|
|
|
1011
1332
|
font-size: 1.25rem;
|
|
1012
1333
|
}
|
|
1013
1334
|
}
|
|
1335
|
+
|
|
1336
|
+
/* ── Support inbox ───────────────────────────────────────────────────
|
|
1337
|
+
The inbox is a workspace, not a document: it fills the admin content
|
|
1338
|
+
pane and each column scrolls on its own, so the queue stays put while a
|
|
1339
|
+
transcript scrolls and the reply box never walks off the bottom of the
|
|
1340
|
+
page. `.app-admin-content` is the scrolling pane and carries its own
|
|
1341
|
+
2rem of padding, so `height: 100%` here means "that pane, minus it".
|
|
1342
|
+
|
|
1343
|
+
Below 1200px the customer rail folds away (its content is one click
|
|
1344
|
+
away on the Customers tab); below 900px the whole thing unstacks into
|
|
1345
|
+
ordinary page flow, where a fixed-height workspace would trap the
|
|
1346
|
+
transcript in a 3-inch box. */
|
|
1347
|
+
.app-admin-support {
|
|
1348
|
+
display: flex;
|
|
1349
|
+
flex-direction: column;
|
|
1350
|
+
height: 100%;
|
|
1351
|
+
min-height: 32rem;
|
|
1352
|
+
}
|
|
1353
|
+
.app-admin-support-grid {
|
|
1354
|
+
display: grid;
|
|
1355
|
+
grid-template-columns: 20rem minmax(0, 1fr) 19rem;
|
|
1356
|
+
gap: 1rem;
|
|
1357
|
+
flex: 1;
|
|
1358
|
+
min-height: 0;
|
|
1359
|
+
}
|
|
1360
|
+
.app-admin-support-col {
|
|
1361
|
+
display: flex;
|
|
1362
|
+
flex-direction: column;
|
|
1363
|
+
min-height: 0;
|
|
1364
|
+
overflow: hidden;
|
|
1365
|
+
}
|
|
1366
|
+
.app-admin-support-scroll {
|
|
1367
|
+
flex: 1;
|
|
1368
|
+
min-height: 0;
|
|
1369
|
+
overflow-y: auto;
|
|
1370
|
+
}
|
|
1371
|
+
.app-admin-support-row {
|
|
1372
|
+
display: block;
|
|
1373
|
+
width: 100%;
|
|
1374
|
+
text-align: left;
|
|
1375
|
+
padding: 0.75rem 0.875rem;
|
|
1376
|
+
border: none;
|
|
1377
|
+
border-left: 3px solid transparent;
|
|
1378
|
+
border-bottom: 1px solid var(--app-admin-border);
|
|
1379
|
+
background: transparent;
|
|
1380
|
+
cursor: pointer;
|
|
1381
|
+
color: inherit;
|
|
1382
|
+
font: inherit;
|
|
1383
|
+
}
|
|
1384
|
+
.app-admin-support-row:hover {
|
|
1385
|
+
background: var(--app-admin-surface-light);
|
|
1386
|
+
}
|
|
1387
|
+
.app-admin-support-row.is-selected {
|
|
1388
|
+
background: var(--app-admin-primary-soft);
|
|
1389
|
+
border-left-color: var(--app-admin-primary);
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
@media (max-width: 1200px) {
|
|
1393
|
+
.app-admin-support-grid {
|
|
1394
|
+
grid-template-columns: 18rem minmax(0, 1fr);
|
|
1395
|
+
}
|
|
1396
|
+
.app-admin-support-rail {
|
|
1397
|
+
display: none;
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
@media (max-width: 900px) {
|
|
1402
|
+
.app-admin-support {
|
|
1403
|
+
height: auto;
|
|
1404
|
+
min-height: 0;
|
|
1405
|
+
}
|
|
1406
|
+
.app-admin-support-grid {
|
|
1407
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1408
|
+
}
|
|
1409
|
+
.app-admin-support-col {
|
|
1410
|
+
overflow: visible;
|
|
1411
|
+
}
|
|
1412
|
+
.app-admin-support-scroll {
|
|
1413
|
+
overflow-y: visible;
|
|
1414
|
+
}
|
|
1415
|
+
.app-admin-support-rail {
|
|
1416
|
+
display: flex;
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
Deliberately NOT --app-portal-accent-fill: that gradient is decorative
|
|
46
46
|
(progress rails carry no text), and white on it measures 2.68:1 at the
|
|
47
47
|
light end — WCAG AA wants 4.5:1 for body text. This darker pair measures
|
|
48
|
-
5.07:1, so the accent stays as the brand
|
|
48
|
+
5.07:1, so the accent stays as the brand color everywhere it doesn't sit
|
|
49
49
|
behind a sentence. Override both to rebrand without forking this file. */
|
|
50
50
|
--app-portal-bubble-own-bg: linear-gradient(180deg, #577657, #4b6d4b);
|
|
51
51
|
--app-portal-bubble-own-fg: #ffffff;
|
|
52
52
|
/* Timestamp inside that bubble — dimmer than the message, but still legible.
|
|
53
53
|
Its own variable rather than a hardcoded white: a site that rebrands the
|
|
54
|
-
bubble to a LIGHT
|
|
54
|
+
bubble to a LIGHT color (axiom-md's lime) gets white-on-light otherwise,
|
|
55
55
|
and the small size is exactly where contrast matters most. Rebrand the
|
|
56
56
|
bubble, rebrand this. */
|
|
57
57
|
--app-portal-bubble-own-meta: rgba(255, 255, 255, 0.85);
|
|
@@ -1494,8 +1494,8 @@
|
|
|
1494
1494
|
overflow-wrap: anywhere;
|
|
1495
1495
|
/* Explicit, not inherited. This is a <p>, and a consuming site's global
|
|
1496
1496
|
`p { color: … }` beats an inherited value no matter how specific the
|
|
1497
|
-
bubble's own rule is — which silently turned sent-message text
|
|
1498
|
-
dark bubble while the timestamp,
|
|
1497
|
+
bubble's own rule is — which silently turned sent-message text gray on a
|
|
1498
|
+
dark bubble while the timestamp, colored explicitly, stayed white. */
|
|
1499
1499
|
color: inherit;
|
|
1500
1500
|
}
|
|
1501
1501
|
.msg-thread__meta {
|
|
@@ -1506,7 +1506,7 @@
|
|
|
1506
1506
|
/* 0.7 measured 2.37:1 against the DEFAULT bubble — timestamps are small text and
|
|
1507
1507
|
need the contrast most. The 0.85 default lands at 4.79:1 there; a site that
|
|
1508
1508
|
themes the bubble owns this variable too, or it inherits a ratio measured
|
|
1509
|
-
against a
|
|
1509
|
+
against a color it no longer uses. */
|
|
1510
1510
|
.msg-thread__bubble--own .msg-thread__meta { color: var(--app-portal-bubble-own-meta); }
|
|
1511
1511
|
|
|
1512
1512
|
/* Composer */
|
package/package.json
CHANGED