@sdxc/ui 2026.11.11 → 2026.11.17
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 +114 -61
- package/dist/app/app-shell-toggle.d.ts +2 -0
- package/dist/app/app-shell-toggle.js +5 -2
- package/dist/app/app-shell.d.ts +25 -1
- package/dist/app/app-shell.js +73 -38
- package/dist/app/auto-refresh.d.ts +2 -0
- package/dist/app/auto-refresh.js +3 -3
- package/dist/app/behaviors/refresh-schedule.d.ts +8 -3
- package/dist/app/behaviors/refresh-schedule.js +4 -3
- package/dist/app/board.d.ts +123 -0
- package/dist/app/board.js +224 -0
- package/dist/app/chart.d.ts +2 -2
- package/dist/app/chart.js +7 -3
- package/dist/app/check-runs.d.ts +116 -0
- package/dist/app/check-runs.js +201 -0
- package/dist/app/code-view.d.ts +172 -0
- package/dist/app/code-view.js +414 -0
- package/dist/app/command-palette.d.ts +38 -3
- package/dist/app/command-palette.js +53 -5
- package/dist/app/contribution-graph.d.ts +106 -0
- package/dist/app/contribution-graph.js +289 -0
- package/dist/app/detail-sheet.d.ts +7 -0
- package/dist/app/detail-sheet.js +7 -7
- package/dist/app/diff.d.ts +200 -0
- package/dist/app/diff.js +702 -0
- package/dist/app/filter-bar.d.ts +20 -0
- package/dist/app/filter-bar.js +35 -15
- package/dist/app/filter-menu.d.ts +144 -0
- package/dist/app/filter-menu.js +480 -0
- package/dist/app/gantt.d.ts +108 -0
- package/dist/app/gantt.js +420 -0
- package/dist/app/index.d.ts +20 -0
- package/dist/app/index.js +20 -0
- package/dist/app/log-viewer.d.ts +120 -0
- package/dist/app/log-viewer.js +384 -0
- package/dist/app/merge-box.d.ts +97 -0
- package/dist/app/merge-box.js +227 -0
- package/dist/app/mixins/app-shell-controls.d.ts +4 -1
- package/dist/app/mixins/app-shell-controls.js +64 -4
- package/dist/app/mixins/auto-refresh.d.ts +5 -2
- package/dist/app/mixins/auto-refresh.js +9 -3
- package/dist/app/mixins/close-popover-on-submit.d.ts +16 -0
- package/dist/app/mixins/close-popover-on-submit.js +32 -0
- package/dist/app/mixins/code-view-selection.d.ts +60 -0
- package/dist/app/mixins/code-view-selection.js +276 -0
- package/dist/app/mixins/command-palette.d.ts +15 -4
- package/dist/app/mixins/command-palette.js +94 -6
- package/dist/app/mixins/contribution-graph-keys.d.ts +19 -0
- package/dist/app/mixins/contribution-graph-keys.js +155 -0
- package/dist/app/mixins/diff-interactions.d.ts +72 -0
- package/dist/app/mixins/diff-interactions.js +269 -0
- package/dist/app/mixins/filter-menu-keys.d.ts +41 -0
- package/dist/app/mixins/filter-menu-keys.js +91 -0
- package/dist/app/mixins/gantt-today.d.ts +17 -0
- package/dist/app/mixins/gantt-today.js +50 -0
- package/dist/app/mixins/log-viewer.d.ts +29 -0
- package/dist/app/mixins/log-viewer.js +347 -0
- package/dist/app/mixins/optimistic-toggle-sync.d.ts +5 -0
- package/dist/app/mixins/optimistic-toggle-sync.js +25 -1
- package/dist/app/mixins/save-bar-sync.d.ts +7 -1
- package/dist/app/mixins/save-bar-sync.js +23 -4
- package/dist/app/mixins/save-status-sync.js +23 -1
- package/dist/app/mixins/split-view.js +1 -1
- package/dist/app/mixins/submit-on-close.d.ts +17 -0
- package/dist/app/mixins/submit-on-close.js +52 -0
- package/dist/app/mixins/tree-filter.d.ts +44 -0
- package/dist/app/mixins/tree-filter.js +111 -0
- package/dist/app/mixins/tree-navigation.d.ts +50 -0
- package/dist/app/mixins/tree-navigation.js +216 -0
- package/dist/app/optimistic-toggle.d.ts +8 -0
- package/dist/app/optimistic-toggle.js +3 -2
- package/dist/app/page-header.d.ts +18 -3
- package/dist/app/page-header.js +105 -50
- package/dist/app/profile-picker.d.ts +47 -0
- package/dist/app/profile-picker.js +104 -0
- package/dist/app/review-thread.d.ts +115 -0
- package/dist/app/review-thread.js +116 -0
- package/dist/app/save-bar.d.ts +5 -0
- package/dist/app/save-bar.js +1 -1
- package/dist/app/save-status.js +1 -1
- package/dist/app/settings-layout.d.ts +5 -0
- package/dist/app/settings-layout.js +5 -5
- package/dist/app/skeleton.d.ts +9 -0
- package/dist/app/skeleton.js +28 -0
- package/dist/app/split-view.d.ts +4 -0
- package/dist/app/split-view.js +3 -3
- package/dist/app/styles/code-tokens.d.ts +24 -0
- package/dist/app/styles/code-tokens.js +47 -0
- package/dist/app/tab-bar.d.ts +59 -0
- package/dist/app/tab-bar.js +111 -0
- package/dist/app/tree.d.ts +111 -14
- package/dist/app/tree.js +202 -15
- package/dist/app/utils/ansi.d.ts +55 -0
- package/dist/app/utils/ansi.js +157 -0
- package/dist/app/utils/diff-rows.d.ts +82 -0
- package/dist/app/utils/diff-rows.js +209 -0
- package/dist/app/utils/fuzzy-path.d.ts +58 -0
- package/dist/app/utils/fuzzy-path.js +202 -0
- package/dist/app/utils/line-range.d.ts +48 -0
- package/dist/app/utils/line-range.js +61 -0
- package/dist/app/utils/log-lines.d.ts +107 -0
- package/dist/app/utils/log-lines.js +170 -0
- package/dist/app/utils/tree-filter.d.ts +19 -0
- package/dist/app/utils/tree-filter.js +26 -0
- package/dist/app/view-options.d.ts +2 -0
- package/dist/app/view-options.js +2 -2
- package/dist/chat/activity.d.ts +72 -0
- package/dist/chat/activity.js +184 -0
- package/dist/chat/composer-submit.d.ts +38 -0
- package/dist/chat/composer-submit.js +44 -0
- package/dist/chat/composer.d.ts +47 -0
- package/dist/chat/composer.js +100 -0
- package/dist/chat/index.d.ts +6 -0
- package/dist/chat/index.js +6 -0
- package/dist/chat/mixins/composer-send.d.ts +32 -0
- package/dist/chat/mixins/composer-send.js +121 -0
- package/dist/chat/mixins/reveal-stream.d.ts +68 -0
- package/dist/chat/mixins/reveal-stream.js +184 -0
- package/dist/chat/mixins/stream-target.d.ts +18 -0
- package/dist/chat/mixins/stream-target.js +38 -0
- package/dist/components/button.js +7 -1
- package/dist/components/character-count.d.ts +44 -0
- package/dist/components/character-count.js +68 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/label-chip.d.ts +42 -0
- package/dist/components/label-chip.js +86 -0
- package/dist/components/property-list.d.ts +9 -2
- package/dist/components/property-list.js +37 -10
- package/dist/components/textarea.js +6 -1
- package/dist/components/timeline.d.ts +62 -5
- package/dist/components/timeline.js +124 -5
- package/dist/docs/code-block.js +8 -31
- package/dist/docs/file-tree.js +3 -48
- package/dist/landing/case-study.d.ts +79 -0
- package/dist/landing/case-study.js +162 -0
- package/dist/landing/contributor-wall.d.ts +72 -0
- package/dist/landing/contributor-wall.js +129 -0
- package/dist/landing/countdown.d.ts +88 -0
- package/dist/landing/countdown.js +91 -0
- package/dist/landing/episode-player.d.ts +87 -0
- package/dist/landing/episode-player.js +113 -0
- package/dist/landing/faq-band.d.ts +3 -2
- package/dist/landing/faq-band.js +4 -3
- package/dist/landing/index.d.ts +7 -0
- package/dist/landing/index.js +7 -0
- package/dist/landing/landing-header.js +15 -4
- package/dist/landing/mixins/countdown-tick.d.ts +29 -0
- package/dist/landing/mixins/countdown-tick.js +65 -0
- package/dist/landing/mixins/usage-estimate-live.d.ts +32 -0
- package/dist/landing/mixins/usage-estimate-live.js +120 -0
- package/dist/landing/phone-frame.d.ts +2 -1
- package/dist/landing/price-list.d.ts +68 -0
- package/dist/landing/price-list.js +125 -0
- package/dist/landing/scroll-scene.d.ts +59 -0
- package/dist/landing/scroll-scene.js +70 -0
- package/dist/landing/sponsor-wall.d.ts +30 -6
- package/dist/landing/sponsor-wall.js +70 -14
- package/dist/landing/typed-terminal.d.ts +24 -6
- package/dist/landing/typed-terminal.js +22 -14
- package/dist/landing/usage-estimate.d.ts +127 -0
- package/dist/landing/usage-estimate.js +164 -0
- package/dist/landing/utils/countdown.d.ts +33 -0
- package/dist/landing/utils/countdown.js +42 -0
- package/dist/landing/utils/pause-toggle.d.ts +2 -1
- package/dist/mixins/character-count.d.ts +62 -0
- package/dist/mixins/character-count.js +139 -0
- package/dist/mixins/index.d.ts +6 -2
- package/dist/mixins/index.js +6 -2
- package/dist/mixins/invoker-fields.d.ts +18 -0
- package/dist/mixins/invoker-fields.js +60 -0
- package/dist/mixins/media-sync.d.ts +58 -0
- package/dist/mixins/media-sync.js +102 -0
- package/dist/mixins/menu-keys.d.ts +11 -0
- package/dist/mixins/menu-keys.js +79 -70
- package/dist/mixins/sortable.d.ts +96 -0
- package/dist/mixins/sortable.js +433 -0
- package/dist/utils/code-lines.d.ts +26 -0
- package/dist/utils/code-lines.js +29 -0
- package/dist/utils/file-icon.d.ts +31 -0
- package/dist/utils/file-icon.js +60 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/write-cookie.d.ts +15 -15
- package/dist/utils/write-cookie.js +10 -16
- package/dist/video/episode-list.d.ts +48 -0
- package/dist/video/episode-list.js +161 -0
- package/dist/video/index.d.ts +15 -0
- package/dist/video/index.js +15 -0
- package/dist/video/mixins/video-player-sync.d.ts +27 -0
- package/dist/video/mixins/video-player-sync.js +413 -0
- package/dist/video/mixins/video-shelf-steps.d.ts +20 -0
- package/dist/video/mixins/video-shelf-steps.js +79 -0
- package/dist/video/title-hero.d.ts +51 -0
- package/dist/video/title-hero.js +170 -0
- package/dist/video/utils/timeline.d.ts +55 -0
- package/dist/video/utils/timeline.js +90 -0
- package/dist/video/video-card.d.ts +51 -0
- package/dist/video/video-card.js +135 -0
- package/dist/video/video-player.d.ts +261 -0
- package/dist/video/video-player.js +927 -0
- package/dist/video/video-shelf.d.ts +58 -0
- package/dist/video/video-shelf.js +155 -0
- package/package.json +6 -3
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A titled row of video cards that scrolls sideways, the shelf a catalogue home stacks:
|
|
3
|
+
* native scroll snap moves it by touch, trackpad and keyboard with no script, and once script
|
|
4
|
+
* runs, paging buttons at its edges step one screenful at a time and disable at either end.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import type { EntryComponent, Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
10
|
+
/** Prop types for {@link VideoShelf} and its parts. */
|
|
11
|
+
export declare namespace VideoShelf {
|
|
12
|
+
/** Which card shape the shelf holds, which sets how wide each item is. */
|
|
13
|
+
type Size = "landscape" | "poster";
|
|
14
|
+
/** The paging buttons' accessible names. */
|
|
15
|
+
interface Labels {
|
|
16
|
+
previous: string;
|
|
17
|
+
next: string;
|
|
18
|
+
}
|
|
19
|
+
/** Every native `<section>` attribute but `title`, plus the shelf's heading and items. */
|
|
20
|
+
interface Props extends Omit<TagProps<"section">, "title"> {
|
|
21
|
+
/** Names the shelf and its parts; the heading and the scroller derive their ids from it. */
|
|
22
|
+
id: string;
|
|
23
|
+
/** The shelf's heading, such as "Continue watching". */
|
|
24
|
+
title: RemixNode;
|
|
25
|
+
/** A link beside the heading, such as "See all". */
|
|
26
|
+
action?: RemixNode;
|
|
27
|
+
/** The paging buttons' names, which script reveals. */
|
|
28
|
+
labels: Labels;
|
|
29
|
+
/** Default: `"landscape"`. */
|
|
30
|
+
size?: Size;
|
|
31
|
+
/** The heading's level. Default: `2`. */
|
|
32
|
+
level?: 2 | 3;
|
|
33
|
+
/** {@link VideoShelf.Item} elements, one per card. */
|
|
34
|
+
children: RemixNode;
|
|
35
|
+
}
|
|
36
|
+
/** Every native `<li>` attribute. */
|
|
37
|
+
interface ItemProps extends TagProps<"li"> {
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Renders the shelf: the heading row, then the scroller holding a list of items, between two
|
|
42
|
+
* paging buttons kept hidden until the shelf's island reveals them. The scroller is a labelled
|
|
43
|
+
* region, so a keyboard reaches it and scrolls it with the arrow keys.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* <VideoShelf id="trending" title="Trending now" labels={{ previous: "Previous", next: "Next" }}>
|
|
47
|
+
* {titles.map((title) => <VideoShelf.Item><VideoCard {...title} /></VideoShelf.Item>)}
|
|
48
|
+
* </VideoShelf>
|
|
49
|
+
*/
|
|
50
|
+
export declare function VideoShelf(handle: Handle<VideoShelf.Props>): () => import("remix/component").RemixElement;
|
|
51
|
+
export declare namespace VideoShelf {
|
|
52
|
+
var Item: (handle: Handle<VideoShelf.ItemProps>) => () => import("remix/component").RemixElement;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The island inside every {@link VideoShelf}: a hidden marker that reveals and runs the paging
|
|
56
|
+
* buttons. It loads from `@sdxc/ui/video/video-shelf`, which the browser entry maps to an import.
|
|
57
|
+
*/
|
|
58
|
+
export declare const VideoShelfSync: EntryComponent<Record<never, never>>;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
+
import { ChevronLeftIcon, ChevronRightIcon } from "@sdxc/icons";
|
|
3
|
+
import { mergeMix, raw } from "@sdxc/u/general";
|
|
4
|
+
import { hidden } from "@sdxc/u/layout";
|
|
5
|
+
import { motionReduce } from "@sdxc/u/responsive";
|
|
6
|
+
import { when } from "@sdxc/u/state";
|
|
7
|
+
import { clientEntry } from "remix/component";
|
|
8
|
+
import { READY_ATTRIBUTE, STEP_ATTRIBUTE, videoShelfSteps } from "./mixins/video-shelf-steps.js";
|
|
9
|
+
/** Each item's inline size per shape, wider on wider screens and never a sliver on a phone. */
|
|
10
|
+
const ITEM_SIZES = {
|
|
11
|
+
landscape: "clamp(13.5rem, 21cqi, 19rem)",
|
|
12
|
+
poster: "clamp(8.25rem, 13cqi, 11.5rem)",
|
|
13
|
+
};
|
|
14
|
+
/** Container the shelf declares, which its item sizes read their width from. */
|
|
15
|
+
const CONTAINER = "ui-video-shelf";
|
|
16
|
+
/**
|
|
17
|
+
* Space before the first card and after the last, so the shelf runs edge to edge while its
|
|
18
|
+
* cards line up with the page's own gutter; a page sets it to that gutter.
|
|
19
|
+
*/
|
|
20
|
+
const INSET = "var(--ui-video-shelf-inset, 1rem)";
|
|
21
|
+
/** Gap between two cards. */
|
|
22
|
+
const GAP = "var(--ui-video-shelf-gap, 0.75rem)";
|
|
23
|
+
/**
|
|
24
|
+
* Renders the shelf: the heading row, then the scroller holding a list of items, between two
|
|
25
|
+
* paging buttons kept hidden until the shelf's island reveals them. The scroller is a labelled
|
|
26
|
+
* region, so a keyboard reaches it and scrolls it with the arrow keys.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* <VideoShelf id="trending" title="Trending now" labels={{ previous: "Previous", next: "Next" }}>
|
|
30
|
+
* {titles.map((title) => <VideoShelf.Item><VideoCard {...title} /></VideoShelf.Item>)}
|
|
31
|
+
* </VideoShelf>
|
|
32
|
+
*/
|
|
33
|
+
export function VideoShelf(handle) {
|
|
34
|
+
return () => {
|
|
35
|
+
let { action, children, id, labels, level = 2, mix, size = "landscape", title, ...rest } = handle.props;
|
|
36
|
+
let headingId = `${id}-title`;
|
|
37
|
+
return (_jsxs("section", { ...rest, id: id, "aria-labelledby": headingId, "data-slot": "video-shelf", "data-size": size, mix: mergeMix([
|
|
38
|
+
raw({
|
|
39
|
+
"--ui-video-shelf-item-size": ITEM_SIZES[size],
|
|
40
|
+
containerName: CONTAINER,
|
|
41
|
+
containerType: "inline-size",
|
|
42
|
+
position: "relative",
|
|
43
|
+
display: "grid",
|
|
44
|
+
gap: "0.625rem",
|
|
45
|
+
minInlineSize: "0",
|
|
46
|
+
}),
|
|
47
|
+
when("&:hover [data-video-shelf-step]:not([disabled])", raw({ opacity: "1" })),
|
|
48
|
+
when("&:focus-within [data-video-shelf-step]:not([disabled])", raw({ opacity: "1" })),
|
|
49
|
+
], mix), children: [_jsxs("div", { mix: [
|
|
50
|
+
raw({
|
|
51
|
+
display: "flex",
|
|
52
|
+
alignItems: "baseline",
|
|
53
|
+
justifyContent: "space-between",
|
|
54
|
+
gap: "1rem",
|
|
55
|
+
paddingInline: INSET,
|
|
56
|
+
}),
|
|
57
|
+
], children: [_jsx(ShelfHeading, { id: headingId, level: level, children: title }), action === undefined ? null : (_jsx("div", { mix: [raw({ fontSize: "0.875rem", flexShrink: "0" })], children: action }))] }), _jsxs("div", { mix: [raw({ position: "relative", minInlineSize: "0" })], children: [_jsx(ShelfStep, { direction: -1, label: labels.previous }), _jsx("div", { id: `${id}-scroller`, role: "region", "aria-labelledby": headingId, "data-slot": "video-shelf-scroller", mix: [
|
|
58
|
+
raw({
|
|
59
|
+
overflowX: "auto",
|
|
60
|
+
overflowY: "hidden",
|
|
61
|
+
overscrollBehaviorX: "contain",
|
|
62
|
+
scrollSnapType: "x mandatory",
|
|
63
|
+
scrollPaddingInline: INSET,
|
|
64
|
+
scrollBehavior: "smooth",
|
|
65
|
+
scrollbarWidth: "thin",
|
|
66
|
+
outline: "none",
|
|
67
|
+
}),
|
|
68
|
+
when(`&[${READY_ATTRIBUTE}]`, raw({ scrollbarWidth: "none" })),
|
|
69
|
+
when("&:focus-visible", raw({ boxShadow: "inset 0 0 0 2px var(--ui-brand-ring)" })),
|
|
70
|
+
motionReduce(raw({ scrollBehavior: "auto" })),
|
|
71
|
+
], children: _jsx("ul", { mix: [
|
|
72
|
+
raw({
|
|
73
|
+
display: "grid",
|
|
74
|
+
gridAutoFlow: "column",
|
|
75
|
+
gridAutoColumns: "var(--ui-video-shelf-item-size)",
|
|
76
|
+
gap: GAP,
|
|
77
|
+
margin: "0",
|
|
78
|
+
paddingBlock: "0.25rem 0.5rem",
|
|
79
|
+
paddingInline: INSET,
|
|
80
|
+
listStyle: "none",
|
|
81
|
+
inlineSize: "max-content",
|
|
82
|
+
}),
|
|
83
|
+
], children: children }) }), _jsx(ShelfStep, { direction: 1, label: labels.next })] }), _jsx(VideoShelfSync, {})] }));
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/** The shelf's heading at the level its page outline needs. */
|
|
87
|
+
function ShelfHeading(handle) {
|
|
88
|
+
return () => {
|
|
89
|
+
let { children, id, level } = handle.props;
|
|
90
|
+
let mix = [
|
|
91
|
+
raw({
|
|
92
|
+
margin: "0",
|
|
93
|
+
fontSize: "var(--ui-video-shelf-title-size, 1.125rem)",
|
|
94
|
+
lineHeight: "1.5rem",
|
|
95
|
+
fontWeight: "700",
|
|
96
|
+
letterSpacing: "-0.01em",
|
|
97
|
+
color: "var(--ui-neutral-fg-emphasis)",
|
|
98
|
+
}),
|
|
99
|
+
];
|
|
100
|
+
return level === 3 ? (_jsx("h3", { id: id, mix: mix, children: children })) : (_jsx("h2", { id: id, mix: mix, children: children }));
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* One card's place in the shelf, snapping to the scroller's start so a step lands on a card's
|
|
105
|
+
* edge rather than through one.
|
|
106
|
+
*/
|
|
107
|
+
VideoShelf.Item = function VideoShelfItem(handle) {
|
|
108
|
+
return () => {
|
|
109
|
+
let { mix, ...rest } = handle.props;
|
|
110
|
+
return (_jsx("li", { ...rest, "data-slot": "video-shelf-item", mix: mergeMix([raw({ scrollSnapAlign: "start", minInlineSize: "0" })], mix) }));
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* A paging button over one edge of the shelf, tall enough to cover the art and shaded toward
|
|
115
|
+
* the edge. It renders hidden: the island reveals it where a pointer can hover, and keeps it
|
|
116
|
+
* disabled at the end it points to.
|
|
117
|
+
*/
|
|
118
|
+
function ShelfStep(handle) {
|
|
119
|
+
return () => {
|
|
120
|
+
let { direction, label } = handle.props;
|
|
121
|
+
let start = direction === -1;
|
|
122
|
+
return (_jsx("button", { type: "button", hidden: true, "aria-label": label, [STEP_ATTRIBUTE]: String(direction), mix: [
|
|
123
|
+
raw({
|
|
124
|
+
position: "absolute",
|
|
125
|
+
zIndex: "1",
|
|
126
|
+
insetBlock: "0.25rem 0.5rem",
|
|
127
|
+
insetInlineStart: start ? "0" : "auto",
|
|
128
|
+
insetInlineEnd: start ? "auto" : "0",
|
|
129
|
+
inlineSize: `max(2.75rem, calc(${INSET} + 0.25rem))`,
|
|
130
|
+
display: "grid",
|
|
131
|
+
placeItems: "center",
|
|
132
|
+
padding: "0",
|
|
133
|
+
border: "0",
|
|
134
|
+
cursor: "pointer",
|
|
135
|
+
color: "oklch(0.98 0 0)",
|
|
136
|
+
background: `linear-gradient(${start ? "to right" : "to left"}, rgb(0 0 0 / 0.7), rgb(0 0 0 / 0))`,
|
|
137
|
+
opacity: "0",
|
|
138
|
+
transition: "opacity 160ms ease",
|
|
139
|
+
"& > svg": { inlineSize: "1.75rem", blockSize: "1.75rem" },
|
|
140
|
+
"@media (hover: none)": { display: "none" },
|
|
141
|
+
}),
|
|
142
|
+
when("&[hidden]", hidden()),
|
|
143
|
+
when("&[disabled]", raw({ opacity: "0", pointerEvents: "none" })),
|
|
144
|
+
when("&:focus-visible", raw({ opacity: "1", outline: "2px solid var(--ui-brand-ring)", outlineOffset: "-2px" })),
|
|
145
|
+
motionReduce(raw({ transition: "none" })),
|
|
146
|
+
], children: start ? _jsx(ChevronLeftIcon, { "aria-hidden": "true" }) : _jsx(ChevronRightIcon, { "aria-hidden": "true" }) }));
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* The island inside every {@link VideoShelf}: a hidden marker that reveals and runs the paging
|
|
151
|
+
* buttons. It loads from `@sdxc/ui/video/video-shelf`, which the browser entry maps to an import.
|
|
152
|
+
*/
|
|
153
|
+
export const VideoShelfSync = clientEntry("@sdxc/ui/video/video-shelf#VideoShelfSync", function VideoShelfSync() {
|
|
154
|
+
return () => _jsx("span", { hidden: true, mix: [videoShelfSteps()] });
|
|
155
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdxc/ui",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.17",
|
|
4
4
|
"description": "Styled, accessible remix/component components rendered as server HTML",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
"./color/*": "./dist/color/*.js",
|
|
18
18
|
"./app": "./dist/app/index.js",
|
|
19
19
|
"./app/*": "./dist/app/*.js",
|
|
20
|
+
"./video": "./dist/video/index.js",
|
|
21
|
+
"./video/*": "./dist/video/*.js",
|
|
20
22
|
"./animations": "./dist/animations/index.js",
|
|
21
23
|
"./behaviors": "./dist/behaviors/index.js",
|
|
22
24
|
"./mixins": "./dist/mixins/index.js",
|
|
@@ -28,7 +30,8 @@
|
|
|
28
30
|
},
|
|
29
31
|
"dependencies": {
|
|
30
32
|
"@remix-run/ui": "0.12.1",
|
|
31
|
-
"@sdxc/
|
|
33
|
+
"@sdxc/diff": "2026.11.14",
|
|
34
|
+
"@sdxc/highlight": "2026.11.14",
|
|
32
35
|
"@sdxc/icons": "2026.11.10",
|
|
33
36
|
"@sdxc/iife": "2026.10.23",
|
|
34
37
|
"@sdxc/u": "2026.11.10",
|
|
@@ -37,7 +40,7 @@
|
|
|
37
40
|
"peerDependencies": {
|
|
38
41
|
"remix": "3.2.0"
|
|
39
42
|
},
|
|
40
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "d0a98d9f22d429ae5da7d5e75b4c0f55d311e758",
|
|
41
44
|
"publishConfig": {
|
|
42
45
|
"access": "public"
|
|
43
46
|
},
|