@40rty/ams-ui 0.5.5 → 0.5.7
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/agent.js +3 -2
- package/dist/{chunk-H6MSAD5M.js → chunk-434KIH5P.js} +17 -10
- package/dist/{chunk-2HM6EVDV.js → chunk-4ZX4IRC6.js} +241 -389
- package/dist/chunk-FSY7MEP5.js +843 -0
- package/dist/{chunk-WVD2Y2N2.js → chunk-G3IXNKXL.js} +15 -8
- package/dist/{chunk-CKNELL6G.js → chunk-URUKPL57.js} +109 -79
- package/dist/{chunk-432XYPDT.js → chunk-ZP27BQQE.js} +1 -1
- package/dist/conversation.js +24 -21
- package/dist/css/preset/motion.css +4 -1
- package/dist/css/shell/spacefront-island.css +8 -6
- package/dist/css/shell/spacefront-presence.css +9 -4
- package/dist/css/shell/spacefront-thread-panel.css +12 -5
- package/dist/index.js +473 -403
- package/dist/island.js +18 -11
- package/dist/motion.js +1 -1
- package/dist/presence.js +20 -11
- package/dist/shell.js +6 -5
- package/dist/thread-panel.js +19 -9
- package/dist/types/catalog-data/ecommerce.d.ts +42 -0
- package/dist/types/catalog-data/social.d.ts +14 -0
- package/dist/types/components/content/article/BlogPosts.d.ts +1 -1
- package/dist/types/components/ecommerce/cart/cart-format.d.ts +3 -2
- package/dist/types/components/ecommerce/collection/CollectionList.d.ts +1 -1
- package/dist/types/components/ecommerce/product/AddToRegistry.d.ts +1 -1
- package/dist/types/components/ecommerce/product/ProductPrice.d.ts +1 -0
- package/dist/types/components/feedback/HydrationNotice.d.ts +9 -0
- package/dist/types/components/layout/Drawer.d.ts +2 -0
- package/dist/types/conversation/blocks/schemas.d.ts +40 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/labels/en/agent.d.ts +2 -0
- package/dist/types/labels/en/commerce.d.ts +2 -0
- package/dist/types/labels/en/content.d.ts +2 -0
- package/dist/types/labels/en/notices.d.ts +2 -0
- package/dist/types/labels/en/shell.d.ts +2 -0
- package/dist/types/labels/he/agent.d.ts +2 -0
- package/dist/types/labels/he/commerce.d.ts +2 -0
- package/dist/types/labels/he/content.d.ts +2 -0
- package/dist/types/labels/he/count.d.ts +17 -0
- package/dist/types/labels/he/notices.d.ts +2 -0
- package/dist/types/labels/he/shell.d.ts +2 -0
- package/dist/types/labels/index.d.ts +34 -0
- package/dist/types/{labels.d.ts → labels/types-agent.d.ts} +4 -120
- package/dist/types/labels/types-commerce.d.ts +252 -0
- package/dist/types/labels/types-content.d.ts +28 -0
- package/dist/types/labels/types-notices.d.ts +9 -0
- package/dist/types/labels/types-shell.d.ts +137 -0
- package/dist/types/labels-context.d.ts +19 -5
- package/dist/types/primitives/Money/index.d.ts +1 -1
- package/dist/types/shell/Composer.d.ts +1 -1
- package/dist/types/shell/SideDock.d.ts +1 -1
- package/dist/types/shell/SpacefrontIsland.d.ts +1 -1
- package/dist/types/shell/SpacefrontPresence.d.ts +1 -1
- package/dist/types/shell/VoiceIsland.d.ts +1 -1
- package/dist/types/utils/format-money.d.ts +3 -1
- package/dist/types/utils/mirror-x.d.ts +8 -0
- package/package.json +2 -2
package/dist/conversation.js
CHANGED
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ComposerChipStrip,
|
|
4
4
|
usePromptComposer
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-URUKPL57.js";
|
|
6
|
+
import "./chunk-434KIH5P.js";
|
|
7
7
|
import "./chunk-I5QE47QY.js";
|
|
8
|
-
import
|
|
9
|
-
useLabels
|
|
10
|
-
} from "./chunk-2HM6EVDV.js";
|
|
8
|
+
import "./chunk-4ZX4IRC6.js";
|
|
11
9
|
import "./chunk-RMJDSHLA.js";
|
|
12
10
|
import "./chunk-PHXP2SKS.js";
|
|
13
11
|
import "./chunk-GQURT3IR.js";
|
|
@@ -15,13 +13,16 @@ import {
|
|
|
15
13
|
AttachButton,
|
|
16
14
|
AttachmentStrip,
|
|
17
15
|
DictationButton
|
|
18
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-G3IXNKXL.js";
|
|
19
17
|
import "./chunk-WDL5PHO2.js";
|
|
18
|
+
import {
|
|
19
|
+
useLabels
|
|
20
|
+
} from "./chunk-FSY7MEP5.js";
|
|
20
21
|
import {
|
|
21
22
|
AnimatePresence,
|
|
22
23
|
motion,
|
|
23
24
|
useReducedMotion
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZP27BQQE.js";
|
|
25
26
|
|
|
26
27
|
// src/conversation/ConversationCanvas.tsx
|
|
27
28
|
import { CanvasArrangementProvider, CanvasMotionStyleProvider, SpacefrontCanvas } from "@40rty/ams-sdk";
|
|
@@ -59,6 +60,7 @@ var MAX_THUMBS = 5;
|
|
|
59
60
|
var EASE = [0.22, 1, 0.36, 1];
|
|
60
61
|
function FactChip({ fact, onClear }) {
|
|
61
62
|
const reduce = useReducedMotion();
|
|
63
|
+
const clearLabel = useLabels().conversation.clearFact;
|
|
62
64
|
return /* @__PURE__ */ jsxs(
|
|
63
65
|
motion.span,
|
|
64
66
|
{
|
|
@@ -71,13 +73,13 @@ function FactChip({ fact, onClear }) {
|
|
|
71
73
|
/* @__PURE__ */ jsx2("span", { className: "text-xs leading-[1.125rem] text-[var(--fourty-convo-muted)]", children: fact.label }),
|
|
72
74
|
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5 text-sm font-medium leading-5", children: [
|
|
73
75
|
fact.value,
|
|
74
|
-
onClear !== void 0 && /* @__PURE__ */ jsx2("button", { type: "button", "aria-label":
|
|
76
|
+
onClear !== void 0 && /* @__PURE__ */ jsx2("button", { type: "button", "aria-label": clearLabel(fact.label), onClick: onClear, className: "cursor-pointer border-0 bg-transparent p-0 text-[var(--fourty-convo-muted)] hover:text-[var(--fourty-convo-ink)]", children: "\xD7" })
|
|
75
77
|
] }),
|
|
76
78
|
/* @__PURE__ */ jsx2(
|
|
77
79
|
motion.span,
|
|
78
80
|
{
|
|
79
81
|
"aria-hidden": true,
|
|
80
|
-
className: "absolute bottom-0
|
|
82
|
+
className: "absolute bottom-0 inset-x-0 h-0.5 origin-left rtl:origin-right bg-[var(--fourty-convo-ink)]",
|
|
81
83
|
initial: reduce === true ? false : { scaleX: 0 },
|
|
82
84
|
animate: { scaleX: 1 },
|
|
83
85
|
transition: { duration: 0.5, ease: EASE, delay: 0.15 }
|
|
@@ -118,7 +120,7 @@ function ThinkingBand({ facts: facts2, status }) {
|
|
|
118
120
|
transition: { duration: 0.35, ease: EASE },
|
|
119
121
|
children: [
|
|
120
122
|
status,
|
|
121
|
-
/* @__PURE__ */ jsx2("span", { "aria-hidden": true, className: "
|
|
123
|
+
/* @__PURE__ */ jsx2("span", { "aria-hidden": true, className: "ms-2 inline-block h-3 w-3 animate-pulse bg-[var(--fourty-convo-accent)]" })
|
|
122
124
|
]
|
|
123
125
|
},
|
|
124
126
|
status
|
|
@@ -132,7 +134,7 @@ function ThinkingBand({ facts: facts2, status }) {
|
|
|
132
134
|
initial: { opacity: 0, scale: 0.6 },
|
|
133
135
|
animate: { opacity: 1, scale: 1 },
|
|
134
136
|
transition: { duration: 0.3, ease: EASE, delay: 0.05 * i },
|
|
135
|
-
className: `h-9 w-9 border-2 border-[var(--fourty-convo-sheet)] bg-[var(--fourty-convo-surface)] object-contain ${i > 0 ? "-
|
|
137
|
+
className: `h-9 w-9 border-2 border-[var(--fourty-convo-sheet)] bg-[var(--fourty-convo-surface)] object-contain ${i > 0 ? "-ms-3" : ""}`
|
|
136
138
|
},
|
|
137
139
|
t.id
|
|
138
140
|
)) }) }),
|
|
@@ -184,7 +186,7 @@ function ClosingQuestion({ ask, answerable, onReply }) {
|
|
|
184
186
|
i
|
|
185
187
|
)
|
|
186
188
|
) }),
|
|
187
|
-
/* @__PURE__ */ jsx3("span", { "aria-hidden": true, className: "flex-none text-[var(--fourty-convo-accent)]", children: "\u2192" })
|
|
189
|
+
/* @__PURE__ */ jsx3("span", { "aria-hidden": true, className: "flex-none text-[var(--fourty-convo-accent)] rtl:-scale-x-100", children: "\u2192" })
|
|
188
190
|
] });
|
|
189
191
|
}
|
|
190
192
|
|
|
@@ -317,7 +319,8 @@ function wordCrumbs(crumbs, home, here) {
|
|
|
317
319
|
}
|
|
318
320
|
function Breadcrumbs({ crumbs }) {
|
|
319
321
|
const shown = crumbs.length > MAX_CRUMBS ? [crumbs[0], { key: "gap", label: "\u2026", onClick: null }, ...crumbs.slice(crumbs.length - (MAX_CRUMBS - 2))] : crumbs;
|
|
320
|
-
|
|
322
|
+
const navLabel = useLabels().nav.conversation;
|
|
323
|
+
return /* @__PURE__ */ jsx5("nav", { "aria-label": navLabel, className: "flex flex-wrap items-center gap-2 text-sm leading-5 text-[var(--fourty-convo-muted)]", children: shown.map((c, i) => /* @__PURE__ */ jsxs3(React5.Fragment, { children: [
|
|
321
324
|
i > 0 && /* @__PURE__ */ jsx5("span", { "aria-hidden": true, children: "/" }),
|
|
322
325
|
c.onClick === null ? /* @__PURE__ */ jsx5("span", { className: i === shown.length - 1 ? "font-medium text-[var(--fourty-convo-ink)]" : "", children: c.label }) : /* @__PURE__ */ jsx5("button", { type: "button", onClick: c.onClick, className: "cursor-pointer border-0 bg-transparent p-0 text-inherit underline hover:text-[var(--fourty-convo-ink)]", children: c.label })
|
|
323
326
|
] }, c.key)) });
|
|
@@ -347,7 +350,7 @@ function CollapsedTurn({ trail, question, headline, body, right }) {
|
|
|
347
350
|
type: "button",
|
|
348
351
|
"aria-expanded": open,
|
|
349
352
|
onClick: () => setOpen((o) => !o),
|
|
350
|
-
className: "flex w-full cursor-pointer items-baseline gap-4 border-0 bg-transparent p-0 pt-1 text-
|
|
353
|
+
className: "flex w-full cursor-pointer items-baseline gap-4 border-0 bg-transparent p-0 pt-1 text-start text-inherit",
|
|
351
354
|
children: [
|
|
352
355
|
/* @__PURE__ */ jsxs3("span", { className: "flex-none text-base font-medium leading-6 text-[var(--fourty-convo-muted)]", children: [
|
|
353
356
|
"\u201C",
|
|
@@ -527,7 +530,7 @@ function PageComposer({ placeholder, starters }) {
|
|
|
527
530
|
/* @__PURE__ */ jsxs5("div", { className: "fourty-convo-composer relative mx-auto flex max-w-[920px] flex-col gap-2.5", children: [
|
|
528
531
|
/* @__PURE__ */ jsx8(ComposerChipStrip, { value, starterSuggestions: starters, onStarterClick: setValue, onChipSelect, orientation: "row" }),
|
|
529
532
|
attachments.attachments.length > 0 && /* @__PURE__ */ jsx8(AttachmentStrip, { attachments: attachments.attachments, onRemove: attachments.remove }),
|
|
530
|
-
/* @__PURE__ */ jsx8("div", { className: "flex items-center gap-3 rounded-[var(--fourty-convo-composer-radius)] border border-[rgb(255_255_255/0.6)] bg-[rgb(255_255_255/0.78)] py-2
|
|
533
|
+
/* @__PURE__ */ jsx8("div", { className: "flex items-center gap-3 rounded-[var(--fourty-convo-composer-radius)] border border-[rgb(255_255_255/0.6)] bg-[rgb(255_255_255/0.78)] py-2 ps-3.5 pe-2 shadow-[0_12px_40px_rgb(0_0_0/0.18)] backdrop-blur-xl backdrop-saturate-150", children: isRunning ? /* @__PURE__ */ jsxs5(Fragment5, { children: [
|
|
531
534
|
/* @__PURE__ */ jsxs5("span", { "aria-hidden": true, className: "flex flex-none gap-1", children: [
|
|
532
535
|
/* @__PURE__ */ jsx8("span", { className: "h-1.5 w-1.5 animate-pulse bg-[var(--fourty-convo-accent)]" }),
|
|
533
536
|
/* @__PURE__ */ jsx8("span", { className: "h-1.5 w-1.5 animate-pulse bg-[var(--fourty-convo-accent)] [animation-delay:200ms]" }),
|
|
@@ -643,10 +646,10 @@ function ConversationProvider({ tile, children }) {
|
|
|
643
646
|
}
|
|
644
647
|
function PlainTile({ product, badge, blurb }) {
|
|
645
648
|
const { primaryImage, priceLabel, onCardClick } = useProductCard2(product);
|
|
646
|
-
return /* @__PURE__ */ jsxs6("button", { type: "button", onClick: onCardClick, className: "flex h-full w-full cursor-pointer flex-col gap-2 border-0 bg-transparent p-0 text-
|
|
649
|
+
return /* @__PURE__ */ jsxs6("button", { type: "button", onClick: onCardClick, className: "flex h-full w-full cursor-pointer flex-col gap-2 border-0 bg-transparent p-0 text-start text-inherit", children: [
|
|
647
650
|
/* @__PURE__ */ jsxs6("span", { className: "relative block aspect-square bg-[var(--fourty-convo-surface)]", children: [
|
|
648
651
|
primaryImage !== void 0 && /* @__PURE__ */ jsx9("img", { src: primaryImage.url, alt: primaryImage.altText, className: "block h-full w-full object-contain p-4" }),
|
|
649
|
-
badge !== void 0 && /* @__PURE__ */ jsx9("span", { className: "absolute
|
|
652
|
+
badge !== void 0 && /* @__PURE__ */ jsx9("span", { className: "absolute start-3 top-3 bg-[var(--fourty-convo-accent)] px-2 py-1 text-xs font-bold text-[var(--fourty-convo-on-accent)]", children: badge })
|
|
650
653
|
] }),
|
|
651
654
|
/* @__PURE__ */ jsx9("span", { className: "text-base leading-5", children: product.title }),
|
|
652
655
|
blurb !== void 0 && /* @__PURE__ */ jsx9("span", { className: "text-sm leading-5 text-[var(--fourty-convo-muted)]", children: blurb }),
|
|
@@ -747,12 +750,12 @@ function Explain(p) {
|
|
|
747
750
|
/* @__PURE__ */ jsx10("div", { className: "text-base leading-[1.375rem] text-[var(--fourty-convo-muted)]", children: p.definition }),
|
|
748
751
|
s !== void 0 && pct !== null && /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-1", children: [
|
|
749
752
|
/* @__PURE__ */ jsxs7("div", { className: "relative h-2 rounded-full bg-[var(--fourty-convo-surface)]", children: [
|
|
750
|
-
/* @__PURE__ */ jsx10("div", { className: "absolute inset-y-0
|
|
753
|
+
/* @__PURE__ */ jsx10("div", { className: "absolute inset-y-0 start-0 rounded-full bg-[var(--fourty-convo-ink)]", style: { width: `${pct}%` } }),
|
|
751
754
|
/* @__PURE__ */ jsx10(
|
|
752
755
|
"div",
|
|
753
756
|
{
|
|
754
|
-
className: "absolute top-1/2 h-5 w-5 -translate-y-1/2 -translate-x-1/2 rounded-full border-2 border-[var(--fourty-convo-ink)] bg-[var(--fourty-convo-sheet)]",
|
|
755
|
-
style: {
|
|
757
|
+
className: "absolute top-1/2 h-5 w-5 -translate-y-1/2 -translate-x-1/2 rtl:translate-x-1/2 rounded-full border-2 border-[var(--fourty-convo-ink)] bg-[var(--fourty-convo-sheet)]",
|
|
758
|
+
style: { insetInlineStart: `${pct}%` }
|
|
756
759
|
}
|
|
757
760
|
)
|
|
758
761
|
] }),
|
|
@@ -861,7 +864,7 @@ function SideCol({ side: side2, product }) {
|
|
|
861
864
|
return /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-2 min-w-0", children: [
|
|
862
865
|
product === null ? /* @__PURE__ */ jsx11(TileReserve, {}) : product !== void 0 && /* @__PURE__ */ jsx11(ProductTile, { product }),
|
|
863
866
|
/* @__PURE__ */ jsx11("p", { className: "m-0 mt-2 text-xl font-bold leading-[1.625rem]", children: side2.label }),
|
|
864
|
-
/* @__PURE__ */ jsx11("ul", { className: "m-0 flex flex-col gap-1
|
|
867
|
+
/* @__PURE__ */ jsx11("ul", { className: "m-0 flex flex-col gap-1 ps-4 text-base leading-[1.375rem] text-[var(--fourty-convo-muted)]", children: arr2(side2.points).map((pt) => /* @__PURE__ */ jsx11("li", { children: pt }, pt)) })
|
|
865
868
|
] });
|
|
866
869
|
}
|
|
867
870
|
function Tradeoff(p) {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Streaming-state hairline — a 1px gradient sweeping
|
|
39
|
+
* Streaming-state hairline — a 1px gradient sweeping in the reading direction under
|
|
40
40
|
* the agent's current-phase whisper. Replaces the dot+text "loading"
|
|
41
41
|
* cliche with a quiet kinetic surface. Brand controls width by sizing
|
|
42
42
|
* the parent; this rule only owns the sweep.
|
|
@@ -63,6 +63,9 @@
|
|
|
63
63
|
background-repeat: no-repeat;
|
|
64
64
|
animation: fourty-stream-shimmer 1.8s linear infinite;
|
|
65
65
|
}
|
|
66
|
+
.fourty-stream-hairline:dir(rtl) {
|
|
67
|
+
animation-direction: reverse;
|
|
68
|
+
}
|
|
66
69
|
|
|
67
70
|
@media (prefers-reduced-motion: reduce) {
|
|
68
71
|
.fourty-stream-hairline {
|
|
@@ -59,8 +59,10 @@
|
|
|
59
59
|
--fourty-attach-color: color-mix(in srgb, var(--_fg) 60%, transparent);
|
|
60
60
|
--fourty-mic-idle: color-mix(in srgb, var(--_fg) 60%, transparent);
|
|
61
61
|
position: fixed;
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
/* Logical: the `-left`/`-right` token names are the inline start/end in a
|
|
63
|
+
right-to-left page. */
|
|
64
|
+
inset-inline-start: var(--fourty-island-inset-left, 0);
|
|
65
|
+
inset-inline-end: var(--fourty-island-inset-right, 0);
|
|
64
66
|
bottom: calc(var(--fourty-island-offset-bottom, 16px) + env(safe-area-inset-bottom, 0px));
|
|
65
67
|
z-index: var(--fourty-island-z-index, 40);
|
|
66
68
|
display: flex;
|
|
@@ -72,12 +74,11 @@
|
|
|
72
74
|
font-size: 14px;
|
|
73
75
|
line-height: 1.4;
|
|
74
76
|
color: var(--_fg);
|
|
75
|
-
text-align:
|
|
77
|
+
text-align: start;
|
|
76
78
|
}
|
|
77
79
|
.fourty-si[data-container='column'] {
|
|
78
80
|
position: sticky;
|
|
79
|
-
|
|
80
|
-
right: auto;
|
|
81
|
+
inset-inline: auto;
|
|
81
82
|
width: 100%;
|
|
82
83
|
}
|
|
83
84
|
|
|
@@ -206,7 +207,8 @@
|
|
|
206
207
|
display: flex;
|
|
207
208
|
align-items: center;
|
|
208
209
|
gap: 12px;
|
|
209
|
-
padding: 8px
|
|
210
|
+
padding: 8px;
|
|
211
|
+
padding-inline-start: 14px;
|
|
210
212
|
}
|
|
211
213
|
.fourty-si .fourty-si__tool {
|
|
212
214
|
display: flex;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
font-size: 13px;
|
|
39
39
|
line-height: 1.4;
|
|
40
40
|
color: var(--_fg);
|
|
41
|
-
text-align:
|
|
41
|
+
text-align: start;
|
|
42
42
|
pointer-events: auto;
|
|
43
43
|
animation: fourty-sp-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
44
44
|
}
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
display: block;
|
|
69
69
|
width: var(--_thumb);
|
|
70
70
|
height: var(--_thumb);
|
|
71
|
-
margin-
|
|
71
|
+
margin-inline-start: calc(var(--_thumb) * -0.3);
|
|
72
72
|
border-radius: 6px;
|
|
73
73
|
object-fit: cover;
|
|
74
74
|
background: color-mix(in srgb, var(--_fg) 8%, var(--_surface));
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
animation: fourty-sp-thumb 260ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
|
|
77
77
|
}
|
|
78
78
|
.fourty-sp .fourty-sp__thumb:first-child {
|
|
79
|
-
margin-
|
|
79
|
+
margin-inline-start: 0;
|
|
80
80
|
}
|
|
81
81
|
.fourty-sp .fourty-sp__line {
|
|
82
82
|
display: block;
|
|
@@ -96,6 +96,10 @@
|
|
|
96
96
|
background-clip: text;
|
|
97
97
|
animation: fourty-sp-shimmer 1.6s linear infinite;
|
|
98
98
|
}
|
|
99
|
+
/* The sweep follows the reading direction. */
|
|
100
|
+
.fourty-sp .fourty-sp__line--thinking:dir(rtl) {
|
|
101
|
+
animation-direction: reverse;
|
|
102
|
+
}
|
|
99
103
|
|
|
100
104
|
/* Facts — what the agent understood, each forgettable. */
|
|
101
105
|
.fourty-sp .fourty-sp__facts {
|
|
@@ -119,7 +123,8 @@
|
|
|
119
123
|
display: inline-flex;
|
|
120
124
|
align-items: center;
|
|
121
125
|
gap: 6px;
|
|
122
|
-
padding: 3px
|
|
126
|
+
padding-block: 3px;
|
|
127
|
+
padding-inline: 10px 4px;
|
|
123
128
|
border-radius: 999px;
|
|
124
129
|
background: color-mix(in srgb, var(--_fg) 7%, var(--_surface));
|
|
125
130
|
}
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
position: fixed;
|
|
31
31
|
top: var(--fourty-panel-offset-top, 0);
|
|
32
32
|
bottom: var(--fourty-panel-offset-bottom, 0);
|
|
33
|
-
|
|
33
|
+
/* The panel docks at the inline end (`-right` names it in an LTR page). */
|
|
34
|
+
inset-inline-end: var(--fourty-panel-inset-right, 0);
|
|
34
35
|
z-index: var(--fourty-panel-z-index, 45);
|
|
35
36
|
box-sizing: border-box;
|
|
36
37
|
pointer-events: none;
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
font-size: 14px;
|
|
39
40
|
line-height: 1.45;
|
|
40
41
|
color: var(--_fg);
|
|
41
|
-
text-align:
|
|
42
|
+
text-align: start;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
/* The reset — the host's element globals stop here. */
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
.fourty-tp .fourty-tp__tab {
|
|
56
57
|
position: absolute;
|
|
57
58
|
top: 50%;
|
|
58
|
-
|
|
59
|
+
inset-inline-end: 0;
|
|
59
60
|
transform: translateY(-50%);
|
|
60
61
|
writing-mode: vertical-rl;
|
|
61
62
|
padding: 18px 10px;
|
|
@@ -83,7 +84,8 @@
|
|
|
83
84
|
align-items: center;
|
|
84
85
|
justify-content: space-between;
|
|
85
86
|
gap: 8px;
|
|
86
|
-
padding: 14px
|
|
87
|
+
padding-block: 14px 8px;
|
|
88
|
+
padding-inline: 16px 12px;
|
|
87
89
|
}
|
|
88
90
|
.fourty-tp .fourty-tp__title {
|
|
89
91
|
display: block;
|
|
@@ -159,6 +161,10 @@
|
|
|
159
161
|
background-clip: text;
|
|
160
162
|
animation: fourty-tp-shimmer 1.6s linear infinite;
|
|
161
163
|
}
|
|
164
|
+
/* The sweep follows the reading direction. */
|
|
165
|
+
.fourty-tp .fourty-tp__working:dir(rtl) {
|
|
166
|
+
animation-direction: reverse;
|
|
167
|
+
}
|
|
162
168
|
|
|
163
169
|
.fourty-tp .fourty-tp__chips {
|
|
164
170
|
display: flex;
|
|
@@ -180,7 +186,8 @@
|
|
|
180
186
|
align-items: center;
|
|
181
187
|
gap: 8px;
|
|
182
188
|
margin: 0 12px 12px;
|
|
183
|
-
padding: 6px
|
|
189
|
+
padding: 6px;
|
|
190
|
+
padding-inline-start: 12px;
|
|
184
191
|
border-radius: var(--_radius);
|
|
185
192
|
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--_fg) 18%, transparent);
|
|
186
193
|
}
|