@sdxc/ui 2026.11.18 → 2026.11.26

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.
Files changed (234) hide show
  1. package/README.md +133 -1
  2. package/dist/app/index.d.ts +1 -0
  3. package/dist/app/index.js +1 -0
  4. package/dist/app/mixins/command-palette.js +10 -2
  5. package/dist/app/mixins/log-viewer.js +17 -14
  6. package/dist/app/mixins/route-dialog.d.ts +17 -0
  7. package/dist/app/mixins/route-dialog.js +53 -0
  8. package/dist/app/optimistic-toggle.js +6 -0
  9. package/dist/app/route-dialog.d.ts +38 -0
  10. package/dist/app/route-dialog.js +49 -0
  11. package/dist/audio/equalizer.d.ts +24 -0
  12. package/dist/audio/equalizer.js +57 -0
  13. package/dist/audio/index.d.ts +16 -0
  14. package/dist/audio/index.js +16 -0
  15. package/dist/audio/media-tile.d.ts +38 -0
  16. package/dist/audio/media-tile.js +98 -0
  17. package/dist/audio/player-bar.d.ts +108 -0
  18. package/dist/audio/player-bar.js +338 -0
  19. package/dist/audio/queue-list.d.ts +56 -0
  20. package/dist/audio/queue-list.js +102 -0
  21. package/dist/audio/track-list.d.ts +91 -0
  22. package/dist/audio/track-list.js +226 -0
  23. package/dist/audio/utils/media-session.d.ts +44 -0
  24. package/dist/audio/utils/media-session.js +87 -0
  25. package/dist/audio/utils/play-queue.d.ts +98 -0
  26. package/dist/audio/utils/play-queue.js +149 -0
  27. package/dist/audio/utils/track-time.d.ts +28 -0
  28. package/dist/audio/utils/track-time.js +36 -0
  29. package/dist/chat/composer-format.d.ts +35 -0
  30. package/dist/chat/composer-format.js +84 -0
  31. package/dist/chat/index.d.ts +6 -0
  32. package/dist/chat/index.js +6 -0
  33. package/dist/chat/mention-menu.d.ts +43 -0
  34. package/dist/chat/mention-menu.js +70 -0
  35. package/dist/chat/message-group.d.ts +92 -0
  36. package/dist/chat/message-group.js +222 -0
  37. package/dist/chat/mixins/composer-format.d.ts +28 -0
  38. package/dist/chat/mixins/composer-format.js +80 -0
  39. package/dist/chat/mixins/composer-send.d.ts +2 -2
  40. package/dist/chat/mixins/composer-send.js +4 -2
  41. package/dist/chat/mixins/mention-menu.d.ts +41 -0
  42. package/dist/chat/mixins/mention-menu.js +213 -0
  43. package/dist/chat/mixins/reaction-sync.d.ts +47 -0
  44. package/dist/chat/mixins/reaction-sync.js +172 -0
  45. package/dist/chat/reaction-bar.d.ts +70 -0
  46. package/dist/chat/reaction-bar.js +108 -0
  47. package/dist/chat/typing-indicator.d.ts +42 -0
  48. package/dist/chat/typing-indicator.js +68 -0
  49. package/dist/chat/utils/composer-text.d.ts +38 -0
  50. package/dist/chat/utils/composer-text.js +86 -0
  51. package/dist/chat/utils/markdown-format.d.ts +30 -0
  52. package/dist/chat/utils/markdown-format.js +158 -0
  53. package/dist/chat/utils/mention-query.d.ts +55 -0
  54. package/dist/chat/utils/mention-query.js +60 -0
  55. package/dist/commerce/cart-drawer.d.ts +69 -0
  56. package/dist/commerce/cart-drawer.js +163 -0
  57. package/dist/commerce/cart-line.d.ts +32 -0
  58. package/dist/commerce/cart-line.js +43 -0
  59. package/dist/commerce/checkout-layout.d.ts +32 -0
  60. package/dist/commerce/checkout-layout.js +51 -0
  61. package/dist/commerce/facet-filters.d.ts +121 -0
  62. package/dist/commerce/facet-filters.js +318 -0
  63. package/dist/commerce/fulfilment-note.d.ts +28 -0
  64. package/dist/commerce/fulfilment-note.js +26 -0
  65. package/dist/commerce/index.d.ts +27 -0
  66. package/dist/commerce/index.js +27 -0
  67. package/dist/commerce/item-options-dialog.d.ts +67 -0
  68. package/dist/commerce/item-options-dialog.js +150 -0
  69. package/dist/commerce/menu-item-card.d.ts +37 -0
  70. package/dist/commerce/menu-item-card.js +96 -0
  71. package/dist/commerce/option-group.d.ts +62 -0
  72. package/dist/commerce/option-group.js +121 -0
  73. package/dist/commerce/order-summary.d.ts +42 -0
  74. package/dist/commerce/order-summary.js +76 -0
  75. package/dist/commerce/order-tracker.d.ts +80 -0
  76. package/dist/commerce/order-tracker.js +178 -0
  77. package/dist/commerce/price.d.ts +52 -0
  78. package/dist/commerce/price.js +108 -0
  79. package/dist/commerce/product-card.d.ts +53 -0
  80. package/dist/commerce/product-card.js +127 -0
  81. package/dist/commerce/product-gallery.d.ts +70 -0
  82. package/dist/commerce/product-gallery.js +186 -0
  83. package/dist/commerce/promo-code.d.ts +56 -0
  84. package/dist/commerce/promo-code.js +101 -0
  85. package/dist/commerce/quantity-stepper.d.ts +42 -0
  86. package/dist/commerce/quantity-stepper.js +53 -0
  87. package/dist/commerce/question-list.d.ts +53 -0
  88. package/dist/commerce/question-list.js +92 -0
  89. package/dist/commerce/shipping-estimate.d.ts +53 -0
  90. package/dist/commerce/shipping-estimate.js +39 -0
  91. package/dist/commerce/sort-select.d.ts +38 -0
  92. package/dist/commerce/sort-select.js +38 -0
  93. package/dist/commerce/variant-picker.d.ts +75 -0
  94. package/dist/commerce/variant-picker.js +135 -0
  95. package/dist/components/amount.d.ts +46 -0
  96. package/dist/components/amount.js +34 -0
  97. package/dist/components/autocomplete.d.ts +82 -0
  98. package/dist/components/autocomplete.js +114 -0
  99. package/dist/components/carousel.d.ts +31 -1
  100. package/dist/components/carousel.js +66 -3
  101. package/dist/components/index.d.ts +11 -0
  102. package/dist/components/index.js +11 -0
  103. package/dist/components/letterbox.d.ts +47 -0
  104. package/dist/components/letterbox.js +56 -0
  105. package/dist/components/lightbox.d.ts +88 -0
  106. package/dist/components/lightbox.js +224 -0
  107. package/dist/components/media-grid.d.ts +53 -0
  108. package/dist/components/media-grid.js +89 -0
  109. package/dist/components/range-months.d.ts +100 -0
  110. package/dist/components/range-months.js +274 -0
  111. package/dist/components/rating-input.d.ts +33 -0
  112. package/dist/components/rating-input.js +63 -0
  113. package/dist/components/rating.d.ts +38 -0
  114. package/dist/components/rating.js +66 -0
  115. package/dist/components/review-card.d.ts +39 -0
  116. package/dist/components/review-card.js +59 -0
  117. package/dist/components/section-bar.d.ts +57 -0
  118. package/dist/components/section-bar.js +140 -0
  119. package/dist/components/slider.js +7 -0
  120. package/dist/components/step-indicator.d.ts +46 -0
  121. package/dist/components/step-indicator.js +96 -0
  122. package/dist/finance/index.d.ts +10 -0
  123. package/dist/finance/index.js +10 -0
  124. package/dist/finance/ledger.d.ts +60 -0
  125. package/dist/finance/ledger.js +93 -0
  126. package/dist/finance/payment-card.d.ts +49 -0
  127. package/dist/finance/payment-card.js +115 -0
  128. package/dist/map/engine.d.ts +49 -0
  129. package/dist/map/engine.js +591 -0
  130. package/dist/map/index.d.ts +12 -0
  131. package/dist/map/index.js +12 -0
  132. package/dist/map/map-canvas.d.ts +101 -0
  133. package/dist/map/map-canvas.js +275 -0
  134. package/dist/map/map.d.ts +217 -0
  135. package/dist/map/map.js +598 -0
  136. package/dist/map/mixins/map-link.d.ts +30 -0
  137. package/dist/map/mixins/map-link.js +116 -0
  138. package/dist/map/utils/basemap.d.ts +88 -0
  139. package/dist/map/utils/basemap.js +84 -0
  140. package/dist/map/utils/cluster.d.ts +43 -0
  141. package/dist/map/utils/cluster.js +80 -0
  142. package/dist/map/utils/mercator.d.ts +66 -0
  143. package/dist/map/utils/mercator.js +92 -0
  144. package/dist/map/utils/stage.d.ts +24 -0
  145. package/dist/map/utils/stage.js +49 -0
  146. package/dist/mixins/autocomplete.d.ts +28 -0
  147. package/dist/mixins/autocomplete.js +283 -0
  148. package/dist/mixins/carousel-controls.d.ts +14 -3
  149. package/dist/mixins/carousel-controls.js +89 -30
  150. package/dist/mixins/index.d.ts +2 -0
  151. package/dist/mixins/index.js +2 -0
  152. package/dist/mixins/lightbox-controls.d.ts +34 -0
  153. package/dist/mixins/lightbox-controls.js +176 -0
  154. package/dist/schedule/agenda.d.ts +63 -0
  155. package/dist/schedule/agenda.js +221 -0
  156. package/dist/schedule/day-strip.d.ts +50 -0
  157. package/dist/schedule/day-strip.js +136 -0
  158. package/dist/schedule/free-busy.d.ts +96 -0
  159. package/dist/schedule/free-busy.js +285 -0
  160. package/dist/schedule/index.d.ts +15 -0
  161. package/dist/schedule/index.js +15 -0
  162. package/dist/schedule/mixins/day-strip-scroll.d.ts +16 -0
  163. package/dist/schedule/mixins/day-strip-scroll.js +40 -0
  164. package/dist/schedule/mixins/time-grid-drag.d.ts +24 -0
  165. package/dist/schedule/mixins/time-grid-drag.js +532 -0
  166. package/dist/schedule/month-view.d.ts +68 -0
  167. package/dist/schedule/month-view.js +301 -0
  168. package/dist/schedule/time-grid.d.ts +168 -0
  169. package/dist/schedule/time-grid.js +417 -0
  170. package/dist/schedule/utils/time-grid-layout.d.ts +50 -0
  171. package/dist/schedule/utils/time-grid-layout.js +93 -0
  172. package/dist/schedule/year-view.d.ts +46 -0
  173. package/dist/schedule/year-view.js +142 -0
  174. package/dist/styles/index.d.ts +1 -0
  175. package/dist/styles/index.js +1 -0
  176. package/dist/styles/typewriter-text.d.ts +20 -0
  177. package/dist/styles/typewriter-text.js +23 -0
  178. package/dist/test/map.d.ts +18 -0
  179. package/dist/test/map.js +96 -0
  180. package/dist/test/reels.d.ts +30 -0
  181. package/dist/test/reels.js +41 -0
  182. package/dist/test/stories.d.ts +31 -0
  183. package/dist/test/stories.js +66 -0
  184. package/dist/travel/boarding-pass.d.ts +107 -0
  185. package/dist/travel/boarding-pass.js +293 -0
  186. package/dist/travel/car-offer.d.ts +70 -0
  187. package/dist/travel/car-offer.js +127 -0
  188. package/dist/travel/fare-calendar.d.ts +85 -0
  189. package/dist/travel/fare-calendar.js +233 -0
  190. package/dist/travel/fare-options.d.ts +84 -0
  191. package/dist/travel/fare-options.js +142 -0
  192. package/dist/travel/flight-itinerary.d.ts +84 -0
  193. package/dist/travel/flight-itinerary.js +112 -0
  194. package/dist/travel/flight-option.d.ts +58 -0
  195. package/dist/travel/flight-option.js +111 -0
  196. package/dist/travel/flight-segment.d.ts +105 -0
  197. package/dist/travel/flight-segment.js +174 -0
  198. package/dist/travel/index.d.ts +20 -0
  199. package/dist/travel/index.js +20 -0
  200. package/dist/travel/package-savings.d.ts +74 -0
  201. package/dist/travel/package-savings.js +128 -0
  202. package/dist/travel/price-breakdown.d.ts +66 -0
  203. package/dist/travel/price-breakdown.js +102 -0
  204. package/dist/travel/rating-breakdown.d.ts +81 -0
  205. package/dist/travel/rating-breakdown.js +132 -0
  206. package/dist/travel/seat-map.d.ts +108 -0
  207. package/dist/travel/seat-map.js +371 -0
  208. package/dist/travel/trip-timeline.d.ts +84 -0
  209. package/dist/travel/trip-timeline.js +212 -0
  210. package/dist/utils/gamepad-presses.d.ts +21 -0
  211. package/dist/utils/gamepad-presses.js +28 -0
  212. package/dist/utils/index.d.ts +5 -0
  213. package/dist/utils/index.js +5 -0
  214. package/dist/utils/move-focus.d.ts +20 -0
  215. package/dist/utils/move-focus.js +28 -0
  216. package/dist/utils/range-months.d.ts +54 -0
  217. package/dist/utils/range-months.js +98 -0
  218. package/dist/utils/swipe-direction.d.ts +23 -0
  219. package/dist/utils/swipe-direction.js +27 -0
  220. package/dist/utils/typewriter.d.ts +49 -0
  221. package/dist/utils/typewriter.js +171 -0
  222. package/dist/video/index.d.ts +6 -2
  223. package/dist/video/index.js +6 -2
  224. package/dist/video/mixins/reel-feed-sync.d.ts +41 -0
  225. package/dist/video/mixins/reel-feed-sync.js +430 -0
  226. package/dist/video/mixins/story-viewer-sync.d.ts +31 -0
  227. package/dist/video/mixins/story-viewer-sync.js +391 -0
  228. package/dist/video/reel-feed.d.ts +95 -0
  229. package/dist/video/reel-feed.js +124 -0
  230. package/dist/video/story-ring.d.ts +32 -0
  231. package/dist/video/story-ring.js +42 -0
  232. package/dist/video/story-viewer.d.ts +85 -0
  233. package/dist/video/story-viewer.js +250 -0
  234. package/package.json +21 -2
@@ -0,0 +1,293 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { PlaneIcon } from "@sdxc/icons";
3
+ import { visuallyHidden } from "@sdxc/u/a11y";
4
+ import { mergeMix, raw } from "@sdxc/u/general";
5
+ /** Modules along each side of the code art, finder squares included. */
6
+ const CODE_SIZE = 25;
7
+ /** Light modules around the code art, so the pattern reads apart from the card. */
8
+ const QUIET_ZONE = 2;
9
+ /** Modules along each side of a finder square. */
10
+ const FINDER_SIZE = 7;
11
+ /** Radius of the half-circle notches cut where the stub tears off. */
12
+ const NOTCH = "0.75rem";
13
+ /** Container the pass names, so its parts measure the pass instead of the page. */
14
+ const CONTAINER_NAME = "ui-boarding-pass";
15
+ /** The light colour the code art's quiet zone and finder rings are painted with. */
16
+ const LIGHT = "var(--ui-surface-raised, var(--ui-bg))";
17
+ /**
18
+ * Hashes a string with 32-bit FNV-1a, a fixed function, so a code renders the same pattern on
19
+ * the server, in every browser and on every visit.
20
+ *
21
+ * @param text The string to hash.
22
+ * @returns An unsigned 32-bit hash.
23
+ */
24
+ function hash(text) {
25
+ let value = 0x811c9dc5;
26
+ for (let index = 0; index < text.length; index++) {
27
+ value ^= text.charCodeAt(index);
28
+ value = Math.imul(value, 0x01000193);
29
+ }
30
+ return value >>> 0;
31
+ }
32
+ /**
33
+ * A seeded mulberry32 generator: each call returns the next number in [0, 1) of a sequence
34
+ * fixed by `seed`.
35
+ *
36
+ * @param seed The sequence's starting state.
37
+ * @returns A function drawing the next number.
38
+ */
39
+ function sequence(seed) {
40
+ let state = seed;
41
+ return () => {
42
+ state = (state + 0x6d2b79f5) | 0;
43
+ let mixed = Math.imul(state ^ (state >>> 15), 1 | state);
44
+ mixed = (mixed + Math.imul(mixed ^ (mixed >>> 7), 61 | mixed)) ^ mixed;
45
+ return ((mixed ^ (mixed >>> 14)) >>> 0) / 4294967296;
46
+ };
47
+ }
48
+ /**
49
+ * Whether a module belongs to a finder square or the light ring around it, at the top-left,
50
+ * top-right and bottom-left corners.
51
+ */
52
+ function inFinder(x, y) {
53
+ let near = FINDER_SIZE + 1;
54
+ let far = CODE_SIZE - near;
55
+ return (x < near && y < near) || (x >= far && y < near) || (x < near && y >= far);
56
+ }
57
+ /**
58
+ * The dark data modules of a code as one SVG path: timing stripes along row and column six,
59
+ * and a seeded half-and-half fill everywhere outside the finder squares.
60
+ *
61
+ * @param code The data the pattern is derived from.
62
+ * @returns Path data in module units, offset by the quiet zone.
63
+ */
64
+ function modulePath(code) {
65
+ let next = sequence(hash(code));
66
+ let parts = [];
67
+ for (let y = 0; y < CODE_SIZE; y++) {
68
+ for (let x = 0; x < CODE_SIZE; x++) {
69
+ if (inFinder(x, y))
70
+ continue;
71
+ let dark = x === 6 || y === 6 ? (x + y) % 2 === 0 : next() < 0.5;
72
+ if (dark)
73
+ parts.push(`M${x + QUIET_ZONE} ${y + QUIET_ZONE}h1v1h-1z`);
74
+ }
75
+ }
76
+ return parts.join("");
77
+ }
78
+ /**
79
+ * Renders a code-like pattern as an `<svg role="img">` named by `label`: a 25-module square
80
+ * with a finder square in three corners and a quiet zone around it. It is decorative art standing
81
+ * in for a real code; equal `code` strings always draw equal patterns, and different ones differ.
82
+ *
83
+ * @param handle Runtime handle carrying the art's props.
84
+ * @returns The render function producing the art's markup.
85
+ * @example
86
+ * <PassCode code="LKW482|K7Q2XR|14C" label="Boarding code for confirmation K7Q2XR" />
87
+ */
88
+ export function PassCode(handle) {
89
+ return () => {
90
+ let { code, label, mix, ...rest } = handle.props;
91
+ let extent = CODE_SIZE + QUIET_ZONE * 2;
92
+ let corners = [
93
+ [0, 0],
94
+ [CODE_SIZE - FINDER_SIZE, 0],
95
+ [0, CODE_SIZE - FINDER_SIZE],
96
+ ];
97
+ return (_jsxs("svg", { role: "img", "aria-label": label, viewBox: `0 0 ${extent} ${extent}`, "shape-rendering": "crispEdges", "data-slot": "pass-code", ...rest, mix: mergeMix([
98
+ raw({
99
+ display: "block",
100
+ inlineSize: "100%",
101
+ maxInlineSize: "9rem",
102
+ aspectRatio: "1",
103
+ color: "var(--ui-neutral-fg-emphasis)",
104
+ "& [data-light]": { fill: LIGHT },
105
+ }),
106
+ ], mix), children: [_jsx("rect", { "data-light": "", width: extent, height: extent }), _jsx("path", { "data-slot": "pass-code-modules", d: modulePath(code), fill: "currentColor" }), corners.map(([x, y]) => (_jsxs("g", { "data-slot": "pass-code-finder", transform: `translate(${x + QUIET_ZONE} ${y + QUIET_ZONE})`, children: [_jsx("rect", { width: FINDER_SIZE, height: FINDER_SIZE, fill: "currentColor" }), _jsx("rect", { "data-light": "", x: "1", y: "1", width: FINDER_SIZE - 2, height: FINDER_SIZE - 2 }), _jsx("rect", { x: "2", y: "2", width: FINDER_SIZE - 4, height: FINDER_SIZE - 4, fill: "currentColor" })] }, `${x}-${y}`)))] }));
107
+ };
108
+ }
109
+ /**
110
+ * The CSS mask cutting a half-circle notch out of both corners on one edge of a pass part, so the
111
+ * two parts meet at a tear line with a round bite out of each side.
112
+ */
113
+ function notchMask(edge) {
114
+ let y = edge === "top" ? "0" : "100%";
115
+ let circle = (x) => `radial-gradient(circle at ${x} ${y}, transparent ${NOTCH}, black calc(${NOTCH} + 0.5px))`;
116
+ return `${circle("0")} 0 0 / 51% 100% no-repeat, ${circle("100%")} 100% 0 / 51% 100% no-repeat`;
117
+ }
118
+ /**
119
+ * Renders the pass: an `<article>` named by `label` whose top part holds the airline band, the
120
+ * route and the details as a `<dl>`, and whose stub, below a perforated tear, holds the
121
+ * {@link PassCode}. It prints in full colour, unshadowed and outlined, on one page.
122
+ *
123
+ * @param handle Runtime handle carrying the pass's props.
124
+ * @returns The render function producing the pass's markup.
125
+ * @example
126
+ * <BoardingPass
127
+ * label="Boarding pass, MRW to VLS"
128
+ * airline={{ name: "Larkwing Air" }}
129
+ * passenger="Ana Ortiz"
130
+ * from={{ code: "MRW", city: "Marrow Bay", time: "08:40" }}
131
+ * to={{ code: "VLS", city: "Vellis", time: "11:05" }}
132
+ * flight="LK 482" date="14 Mar" gate="B12" boards="08:05" seat="14C" zone="3" cabin="Economy"
133
+ * confirmation="K7Q2XR"
134
+ * code="LK482|K7Q2XR|14C"
135
+ * labels={labels}
136
+ * />
137
+ */
138
+ export function BoardingPass(handle) {
139
+ return () => {
140
+ let { label, airline, passenger, from, to, flight, date, gate, boards, seat, zone, cabin, confirmation, code, labels, mix, ...rest } = handle.props;
141
+ let part = raw({
142
+ backgroundColor: LIGHT,
143
+ "@media print": {
144
+ mask: "none",
145
+ border: "1px solid var(--ui-neutral-border-strong)",
146
+ },
147
+ });
148
+ return (_jsxs("article", { "aria-label": label, "data-slot": "boarding-pass", ...rest, mix: mergeMix([
149
+ raw({
150
+ container: `${CONTAINER_NAME} / inline-size`,
151
+ inlineSize: "100%",
152
+ maxInlineSize: "24rem",
153
+ color: "var(--ui-neutral-fg-emphasis)",
154
+ filter: "drop-shadow(0 1px 1px color-mix(in oklab, var(--ui-neutral-fg-emphasis) 10%, transparent)) drop-shadow(0 8px 20px color-mix(in oklab, var(--ui-neutral-fg-emphasis) 12%, transparent))",
155
+ "@media print": {
156
+ filter: "none",
157
+ breakInside: "avoid",
158
+ printColorAdjust: "exact",
159
+ },
160
+ }),
161
+ ], mix), children: [_jsxs("div", { "data-slot": "boarding-pass-main", mix: [
162
+ part,
163
+ raw({
164
+ overflow: "hidden",
165
+ borderStartStartRadius: "1rem",
166
+ borderStartEndRadius: "1rem",
167
+ paddingBlockEnd: "1rem",
168
+ mask: notchMask("bottom"),
169
+ "@media print": { borderBlockEnd: "0" },
170
+ }),
171
+ ], children: [_jsxs("header", { "data-slot": "boarding-pass-band", mix: [
172
+ raw({
173
+ display: "flex",
174
+ alignItems: "center",
175
+ gap: "0.5rem",
176
+ paddingBlock: "0.75rem",
177
+ paddingInline: "1.25rem",
178
+ backgroundColor: "var(--ui-brand-bg-solid)",
179
+ color: "var(--ui-brand-fg-on-solid)",
180
+ fontWeight: "600",
181
+ "& svg, & img": { blockSize: "1.25rem", inlineSize: "auto" },
182
+ }),
183
+ ], children: [airline.mark === undefined ? null : (_jsx("span", { "data-slot": "boarding-pass-mark", mix: [raw({ display: "flex" })], children: airline.mark })), _jsx("span", { "data-slot": "boarding-pass-airline", children: airline.name })] }), _jsxs("div", { "data-slot": "boarding-pass-route", mix: [
184
+ raw({
185
+ display: "grid",
186
+ gridTemplateColumns: "minmax(0, 1fr) auto minmax(0, 1fr)",
187
+ alignItems: "center",
188
+ gap: "0.5rem",
189
+ paddingBlock: "1.25rem 1rem",
190
+ paddingInline: "1.25rem",
191
+ }),
192
+ ], children: [_jsx(BoardingPassPlace, { place: from, caption: labels.from, side: "start" }), _jsx("span", { "aria-hidden": "true", "data-slot": "boarding-pass-plane", mix: [
193
+ raw({
194
+ display: "flex",
195
+ alignItems: "center",
196
+ gap: "0.25rem",
197
+ color: "var(--ui-brand-fg)",
198
+ "&::before, &::after": {
199
+ content: '""',
200
+ inlineSize: "1rem",
201
+ borderBlockStart: "1.5px dashed var(--ui-neutral-border-strong)",
202
+ },
203
+ "& svg": { rotate: "45deg", inlineSize: "1.25rem", blockSize: "1.25rem" },
204
+ "&:dir(rtl) svg": { rotate: "-135deg" },
205
+ }),
206
+ ], children: _jsx(PlaneIcon, {}) }), _jsx(BoardingPassPlace, { place: to, caption: labels.to, side: "end" })] }), _jsxs("dl", { "data-slot": "boarding-pass-fields", mix: [
207
+ raw({
208
+ display: "grid",
209
+ gridTemplateColumns: "repeat(3, minmax(0, 1fr))",
210
+ gap: "0.875rem 0.75rem",
211
+ margin: "0",
212
+ paddingInline: "1.25rem",
213
+ [`@container ${CONTAINER_NAME} (inline-size < 17rem)`]: {
214
+ gridTemplateColumns: "repeat(2, minmax(0, 1fr))",
215
+ },
216
+ }),
217
+ ], children: [_jsx(BoardingPassField, { caption: labels.passenger, field: "passenger", wide: true, children: passenger }), _jsx(BoardingPassField, { caption: labels.flight, field: "flight", children: flight }), _jsx(BoardingPassField, { caption: labels.date, field: "date", children: date }), _jsx(BoardingPassField, { caption: labels.boards, field: "boards", children: boards }), _jsx(BoardingPassField, { caption: labels.gate, field: "gate", large: true, children: gate }), _jsx(BoardingPassField, { caption: labels.seat, field: "seat", large: true, children: seat }), _jsx(BoardingPassField, { caption: labels.zone, field: "zone", large: true, children: zone }), _jsx(BoardingPassField, { caption: labels.cabin, field: "cabin", children: cabin }), _jsx(BoardingPassField, { caption: labels.confirmation, field: "confirmation", children: confirmation })] })] }), _jsxs("div", { "data-slot": "boarding-pass-stub", mix: [
218
+ part,
219
+ raw({
220
+ display: "grid",
221
+ justifyItems: "center",
222
+ gap: "1rem",
223
+ paddingBlockEnd: "1.25rem",
224
+ borderEndStartRadius: "1rem",
225
+ borderEndEndRadius: "1rem",
226
+ mask: notchMask("top"),
227
+ "@media print": { borderBlockStartStyle: "dashed" },
228
+ }),
229
+ ], children: [_jsx("div", { "aria-hidden": "true", "data-slot": "boarding-pass-tear", mix: [
230
+ raw({
231
+ justifySelf: "stretch",
232
+ marginInline: `calc(${NOTCH} + 0.375rem)`,
233
+ borderBlockStart: "2px dashed var(--ui-neutral-border)",
234
+ "@media print": { display: "none" },
235
+ }),
236
+ ] }), _jsx(PassCode, { code: code, label: labels.code, mix: [raw({ inlineSize: "60%" })] })] })] }));
237
+ };
238
+ }
239
+ /** One end of the route: the airport code set large, the city and the time beneath it. */
240
+ function BoardingPassPlace(handle) {
241
+ return () => {
242
+ let { place, caption, side } = handle.props;
243
+ return (_jsxs("p", { "data-slot": side === "start" ? "boarding-pass-from" : "boarding-pass-to", mix: [
244
+ raw({
245
+ display: "grid",
246
+ margin: "0",
247
+ minInlineSize: "0",
248
+ textAlign: side,
249
+ lineHeight: "1.2",
250
+ }),
251
+ ], children: [caption === undefined ? null : _jsx("span", { mix: [visuallyHidden()], children: `${caption} ` }), _jsx("span", { "data-slot": "boarding-pass-code", mix: [
252
+ raw({
253
+ fontSize: "2.25rem",
254
+ fontWeight: "700",
255
+ letterSpacing: "0.02em",
256
+ lineHeight: "1",
257
+ fontVariantNumeric: "tabular-nums",
258
+ }),
259
+ ], children: place.code }), _jsx("span", { mix: [
260
+ raw({
261
+ overflow: "hidden",
262
+ textOverflow: "ellipsis",
263
+ whiteSpace: "nowrap",
264
+ fontSize: "0.75rem",
265
+ color: "var(--ui-neutral-fg-muted)",
266
+ }),
267
+ ], children: place.city }), _jsx("span", { mix: [raw({ fontSize: "0.875rem", fontWeight: "600" })], children: place.time })] }));
268
+ };
269
+ }
270
+ /** One detail of the pass: a small caption over its value, as a `<dt>`/`<dd>` pair. */
271
+ function BoardingPassField(handle) {
272
+ return () => {
273
+ let { caption, field, wide, large, children } = handle.props;
274
+ return (_jsxs("div", { "data-field": field, mix: [raw({ minInlineSize: "0", gridColumn: wide ? "1 / -1" : undefined })], children: [_jsx("dt", { mix: [
275
+ raw({
276
+ fontSize: "0.625rem",
277
+ fontWeight: "600",
278
+ letterSpacing: "0.06em",
279
+ textTransform: "uppercase",
280
+ color: "var(--ui-neutral-fg-muted)",
281
+ }),
282
+ ], children: caption }), _jsx("dd", { mix: [
283
+ raw({
284
+ margin: "0",
285
+ overflowWrap: "anywhere",
286
+ fontSize: large ? "1.25rem" : "0.9375rem",
287
+ fontWeight: large ? "700" : "600",
288
+ fontVariantNumeric: "tabular-nums",
289
+ lineHeight: "1.25",
290
+ }),
291
+ ], children: children })] }));
292
+ };
293
+ }
@@ -0,0 +1,70 @@
1
+ /**
2
+ * A rental car result: the car's picture, its class and example model, spec chips with an icon
3
+ * each, perks, the rental company and its rating, the pickup point, and the daily and total
4
+ * price over the caller's actions. The picture heads the card when narrow and leads it when wide.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { Handle, Props as TagProps, RemixNode } from "remix/component";
10
+ import type { HeadingLevel } from "../components/heading-scope.js";
11
+ /**
12
+ * Prop types for {@link CarOffer}.
13
+ */
14
+ export declare namespace CarOffer {
15
+ /** What a spec chip states, which picks its icon. */
16
+ type SpecKind = "seats" | "bags" | "doors" | "transmission" | "fuel" | "electric" | "ac" | "mileage";
17
+ /** One spec chip, such as `{ kind: "seats", label: "5 seats" }`. */
18
+ interface Spec {
19
+ kind: SpecKind;
20
+ label: RemixNode;
21
+ /** A glyph in place of the kind's own. */
22
+ icon?: RemixNode;
23
+ }
24
+ /** Every native `<article>` attribute, plus the car, the company and the price. */
25
+ interface Props extends Omit<TagProps<"article">, "children"> {
26
+ /** The car's picture, such as an `<img>` or SVG; it fills a 16:10 frame. */
27
+ art?: RemixNode;
28
+ /** The car class, such as "Compact"; it heads the card. */
29
+ category: RemixNode;
30
+ /** The example model, such as "Velo C3 or similar", after the class. */
31
+ model?: RemixNode;
32
+ /** The heading level of the class and model; the ambient level, then 3, when left out. */
33
+ level?: HeadingLevel;
34
+ specs?: Spec[];
35
+ /** Short benefits, each drawn with a check, such as "Free cancellation". */
36
+ perks?: RemixNode[];
37
+ /** The rental company's name, such as "Tallow Rent". */
38
+ vendor?: RemixNode;
39
+ /** The rental company's logo, drawn in a 1.5rem-tall box before its name. */
40
+ vendorLogo?: RemixNode;
41
+ /** The company's rating as shown, such as "8.6 · Excellent", after a star. */
42
+ rating?: RemixNode;
43
+ /** Where the car is collected, such as "In terminal · Merrow Airport". */
44
+ pickup?: RemixNode;
45
+ /** Labels over the card, such as a `<Badge>` reading "Great value". */
46
+ badges?: RemixNode;
47
+ /** The daily price, formatted by the caller, such as "$38". */
48
+ price: RemixNode;
49
+ /** What the price is per, such as "/ day", after it in small type. */
50
+ priceUnit?: RemixNode;
51
+ /** The total for the rental, such as "$266 total". */
52
+ total?: RemixNode;
53
+ /** The select link or button, under the price. */
54
+ actions?: RemixNode;
55
+ }
56
+ }
57
+ /**
58
+ * Renders the card as an `<article>` headed by the class and model in a heading at the ambient
59
+ * level. Under 38rem the picture heads the card and the price closes it; wider, the picture,
60
+ * the details and the price take three columns. Spec icons are decoration beside their words.
61
+ *
62
+ * @param handle Runtime handle carrying the card's props.
63
+ * @returns The render function producing the card's markup.
64
+ * @example
65
+ * <CarOffer art={<img src="/cars/c3.png" alt="" />} category="Compact" model="Velo C3 or similar"
66
+ * specs={[{ kind: "seats", label: "5 seats" }, { kind: "transmission", label: "Automatic" }]}
67
+ * vendor="Tallow Rent" rating="8.6 · Excellent" pickup="In terminal" price="$38" priceUnit="/ day"
68
+ * total="$266 total" actions={<Button>View deal</Button>} />
69
+ */
70
+ export declare function CarOffer(handle: Handle<CarOffer.Props>): () => import("remix/component").RemixElement;
@@ -0,0 +1,127 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { CarFrontIcon, CheckIcon, CogIcon, FuelIcon, GaugeIcon, LuggageIcon, MapPinIcon, SnowflakeIcon, StarIcon, UsersIcon, ZapIcon, } from "@sdxc/icons";
3
+ import { bg, border, fg } from "@sdxc/u/color";
4
+ import { rounded, shadow } from "@sdxc/u/effects";
5
+ import { listStyle, raw, mergeMix } from "@sdxc/u/general";
6
+ import { container, flex, gap, grid, inlineFlex, items, vstack } from "@sdxc/u/layout";
7
+ import { at } from "@sdxc/u/responsive";
8
+ import { m, minIs, p, pi } from "@sdxc/u/size";
9
+ import { when } from "@sdxc/u/state";
10
+ import { leading, tabularNums, text, truncate, weight } from "@sdxc/u/typography";
11
+ import { readAmbientLevel, resolveHeadingLevel, TAG_BY_LEVEL, } from "../components/heading-scope.js";
12
+ /** Container the card names, so it lays out by the width of the results column. */
13
+ const CONTAINER_NAME = "ui-car-offer";
14
+ /** Card width from which the picture and the price each take a column. */
15
+ const ROW_WIDTH = "38rem";
16
+ /** Heading level the class and model take where nothing sets one. */
17
+ const DEFAULT_LEVEL = 3;
18
+ /**
19
+ * The glyph for a spec chip of each kind.
20
+ *
21
+ * @param kind What the chip states.
22
+ * @returns A 16px icon for the kind.
23
+ */
24
+ function specIcon(kind) {
25
+ if (kind === "seats")
26
+ return _jsx(UsersIcon, { size: 16 });
27
+ if (kind === "bags")
28
+ return _jsx(LuggageIcon, { size: 16 });
29
+ if (kind === "doors")
30
+ return _jsx(CarFrontIcon, { size: 16 });
31
+ if (kind === "transmission")
32
+ return _jsx(CogIcon, { size: 16 });
33
+ if (kind === "fuel")
34
+ return _jsx(FuelIcon, { size: 16 });
35
+ if (kind === "electric")
36
+ return _jsx(ZapIcon, { size: 16 });
37
+ if (kind === "ac")
38
+ return _jsx(SnowflakeIcon, { size: 16 });
39
+ return _jsx(GaugeIcon, { size: 16 });
40
+ }
41
+ /**
42
+ * Renders the card as an `<article>` headed by the class and model in a heading at the ambient
43
+ * level. Under 38rem the picture heads the card and the price closes it; wider, the picture,
44
+ * the details and the price take three columns. Spec icons are decoration beside their words.
45
+ *
46
+ * @param handle Runtime handle carrying the card's props.
47
+ * @returns The render function producing the card's markup.
48
+ * @example
49
+ * <CarOffer art={<img src="/cars/c3.png" alt="" />} category="Compact" model="Velo C3 or similar"
50
+ * specs={[{ kind: "seats", label: "5 seats" }, { kind: "transmission", label: "Automatic" }]}
51
+ * vendor="Tallow Rent" rating="8.6 · Excellent" pickup="In terminal" price="$38" priceUnit="/ day"
52
+ * total="$266 total" actions={<Button>View deal</Button>} />
53
+ */
54
+ export function CarOffer(handle) {
55
+ return () => {
56
+ let { art, category, model, level, specs, perks, vendor, vendorLogo, rating, pickup, badges, price, priceUnit, total, actions, mix, ...rest } = handle.props;
57
+ let Heading = TAG_BY_LEVEL[resolveHeadingLevel(handle, level ?? readAmbientLevel(handle) ?? DEFAULT_LEVEL)];
58
+ return (_jsx("article", { "data-slot": "car-offer", ...rest, mix: mergeMix([
59
+ container(CONTAINER_NAME, "inline-size"),
60
+ minIs(0),
61
+ rounded("lg"),
62
+ bg("var(--ui-surface-raised, var(--ui-bg, Canvas))"),
63
+ border({ color: "neutral.border", width: 1 }),
64
+ shadow("xs"),
65
+ raw({ overflow: "clip" }),
66
+ text("sm"),
67
+ ], mix), children: _jsxs("div", { "data-slot": "car-offer-body", mix: [
68
+ grid(),
69
+ raw({ gridTemplateAreas: '"art" "details" "price"' }),
70
+ at(ROW_WIDTH, CONTAINER_NAME, raw({
71
+ gridTemplateColumns: "minmax(9rem, 13rem) minmax(0, 1fr) minmax(9rem, auto)",
72
+ gridTemplateAreas: '"art details price"',
73
+ })),
74
+ ], children: [art === undefined ? null : (_jsx("div", { "data-slot": "car-offer-art", mix: [
75
+ raw({
76
+ gridArea: "art",
77
+ aspectRatio: "16 / 10",
78
+ maxBlockSize: "11rem",
79
+ alignSelf: "center",
80
+ }),
81
+ flex(),
82
+ items("center"),
83
+ raw({ justifyContent: "center" }),
84
+ p(4),
85
+ bg("neutral.tint"),
86
+ when("& > :is(img, svg)", raw({ inlineSize: "100%", blockSize: "100%", objectFit: "contain" })),
87
+ at(ROW_WIDTH, CONTAINER_NAME, raw({ alignSelf: "stretch", aspectRatio: "auto", maxBlockSize: "none" })),
88
+ ], children: art })), _jsxs("div", { "data-slot": "car-offer-details", mix: [raw({ gridArea: "details" }), vstack({ gap: 3 }), minIs(0), p(4)], children: [badges === undefined ? null : (_jsx("div", { mix: [flex(), raw({ flexWrap: "wrap" }), gap(1.5)], children: badges })), _jsxs(Heading, { "data-slot": "car-offer-title", mix: [m(0), text("base"), leading(1.3), fg("neutral.emphasis")], children: [_jsx("span", { mix: [weight("semibold")], children: category }), model === undefined ? null : (_jsxs("span", { "data-slot": "car-offer-model", mix: [weight("normal"), fg("neutral.muted")], children: [" · ", model] }))] }), specs === undefined || specs.length === 0 ? null : (_jsx("ul", { "data-slot": "car-offer-specs", mix: [m(0), p(0), listStyle("none"), flex(), raw({ flexWrap: "wrap" }), gap(1.5)], children: specs.map((spec) => (_jsxs("li", { "data-slot": "car-offer-spec", "data-kind": spec.kind, mix: [
89
+ inlineFlex(),
90
+ items("center"),
91
+ gap(1.5),
92
+ pi(2),
93
+ raw({ paddingBlock: "0.1875rem" }),
94
+ rounded("md"),
95
+ bg("neutral.tint"),
96
+ border({ color: "neutral.border", width: 1 }),
97
+ text("xs"),
98
+ fg("neutral.emphasis"),
99
+ ], children: [_jsx("span", { "aria-hidden": "true", mix: [
100
+ inlineFlex(),
101
+ fg("neutral.muted"),
102
+ when("& > svg", raw({ inlineSize: "0.875rem", blockSize: "0.875rem" })),
103
+ ], children: spec.icon ?? specIcon(spec.kind) }), spec.label] }))) })), perks === undefined || perks.length === 0 ? null : (_jsx("ul", { "data-slot": "car-offer-perks", mix: [m(0), p(0), listStyle("none"), vstack({ gap: 1 }), text("xs")], children: perks.map((perk) => (_jsxs("li", { mix: [flex(), items("start"), gap(1.5), fg("success.emphasis")], children: [_jsx("span", { "aria-hidden": "true", mix: [inlineFlex(), fg("success")], children: _jsx(CheckIcon, { size: 14 }) }), perk] }))) })), vendor === undefined && pickup === undefined ? null : (_jsxs("div", { "data-slot": "car-offer-vendor", mix: [vstack({ gap: 1.5 }), text("xs"), fg("neutral.muted")], children: [vendor === undefined ? null : (_jsxs("span", { mix: [flex(), items("center"), raw({ flexWrap: "wrap" }), gap(2)], children: [vendorLogo === undefined ? null : (_jsx("span", { "aria-hidden": "true", mix: [
104
+ inlineFlex(),
105
+ raw({ blockSize: "1.5rem", maxInlineSize: "5rem" }),
106
+ when("& > :is(svg, img)", raw({ blockSize: "100%", inlineSize: "auto" })),
107
+ ], children: vendorLogo })), _jsx("span", { "data-slot": "car-offer-vendor-name", mix: [weight("medium"), fg("neutral.emphasis")], children: vendor }), rating === undefined ? null : (_jsxs("span", { "data-slot": "car-offer-rating", mix: [inlineFlex(), items("center"), gap(1)], children: [_jsx("span", { "aria-hidden": "true", mix: [inlineFlex(), fg("warning")], children: _jsx(StarIcon, { size: 12, fill: "currentColor", "stroke-width": 0 }) }), rating] }))] })), pickup === undefined ? null : (_jsxs("span", { "data-slot": "car-offer-pickup", mix: [flex(), items("start"), gap(1.5)], children: [_jsx("span", { "aria-hidden": "true", mix: [inlineFlex(), raw({ flexShrink: 0 })], children: _jsx(MapPinIcon, { size: 14 }) }), _jsx("span", { mix: [minIs(0)], children: pickup })] }))] }))] }), _jsxs("div", { "data-slot": "car-offer-price", mix: [
108
+ raw({ gridArea: "price" }),
109
+ flex(),
110
+ items("center"),
111
+ raw({ justifyContent: "space-between", flexWrap: "wrap" }),
112
+ gap(3),
113
+ p(4),
114
+ border({ color: "neutral.border", width: 0 }),
115
+ raw({ borderBlockStartWidth: "1px", borderBlockStartStyle: "solid" }),
116
+ at(ROW_WIDTH, CONTAINER_NAME, raw({
117
+ flexDirection: "column",
118
+ alignItems: "stretch",
119
+ justifyContent: "end",
120
+ textAlign: "end",
121
+ borderBlockStartWidth: "0",
122
+ borderInlineStartWidth: "1px",
123
+ borderInlineStartStyle: "solid",
124
+ })),
125
+ ], children: [_jsxs("p", { mix: [m(0), vstack({ gap: 0.5 })], children: [_jsxs("span", { mix: [raw({ whiteSpace: "nowrap" })], children: [_jsx("span", { "data-slot": "car-offer-amount", mix: [text("xl"), weight("semibold"), tabularNums(), fg("neutral.emphasis")], children: price }), priceUnit === undefined ? null : (_jsxs("span", { mix: [text("xs"), fg("neutral.muted")], children: [" ", priceUnit] }))] }), total === undefined ? null : (_jsx("span", { "data-slot": "car-offer-total", mix: [text("xs"), fg("neutral.muted"), tabularNums(), truncate()], children: total }))] }), actions === undefined ? null : (_jsx("div", { "data-slot": "car-offer-actions", mix: [flex(), raw({ flexWrap: "wrap", justifyContent: "end" }), gap(2)], children: actions }))] })] }) }));
126
+ };
127
+ }
@@ -0,0 +1,85 @@
1
+ /**
2
+ * A flexible-dates fare calendar: a month of departure days, or a scrolling strip of days around
3
+ * the chosen one, each showing its lowest fare with the cheapest days tinted and named so. Every
4
+ * day with flights is a link the caller builds, so choosing a date works without script.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { Handle, Props as TagProps, RemixNode } from "remix/component";
10
+ import type { Heading } from "../components/heading.js";
11
+ /** Prop types for {@link FareCalendar}. */
12
+ export declare namespace FareCalendar {
13
+ /** How a day's fare compares with the others on view; `"low"` marks the cheapest. */
14
+ type Level = "low" | "mid" | "high";
15
+ /** The lowest fare departing on one day. */
16
+ interface Fare {
17
+ /** The fare, formatted by the caller, such as "$129". */
18
+ amount: RemixNode;
19
+ level: Level;
20
+ }
21
+ /** Words read to assistive technology, in the page's language. */
22
+ interface Labels {
23
+ /** Name of the previous link, e.g. "Previous month" or "Earlier dates". */
24
+ previous: string;
25
+ /** Name of the next link, e.g. "Next month" or "Later dates". */
26
+ next: string;
27
+ /** Read after a cheapest day's fare, e.g. "cheapest". */
28
+ cheapest: string;
29
+ /** Read for a day without flights, e.g. "no flights". */
30
+ noFlights: string;
31
+ }
32
+ /** Every native `<div>` attribute, plus the days, fares and links to draw. */
33
+ interface Props extends Omit<TagProps<"div">, "children"> {
34
+ /** `"strip"` draws `days` as one scrolling row instead of a month grid. @default "month" */
35
+ variant?: "month" | "strip";
36
+ /** The month the grid shows, `YYYY-MM`; the strip ignores it. */
37
+ month?: string;
38
+ /** The days the strip shows, `YYYY-MM-DD`, usually a few either side of `selected`. */
39
+ days?: string[];
40
+ /** Each day's lowest fare by `YYYY-MM-DD`; a missing or `undefined` entry means no flights. */
41
+ fares: Record<string, Fare | undefined>;
42
+ /** The chosen day, `YYYY-MM-DD`, marked as the current page and scrolled into the strip's view. */
43
+ selected?: string;
44
+ /** Builds the URL a day links to. */
45
+ href: (day: string) => string;
46
+ /** The previous link's URL; the link is left out when unset. */
47
+ prevHref?: string;
48
+ /** The next link's URL; the link is left out when unset. */
49
+ nextHref?: string;
50
+ /** Today, `YYYY-MM-DD`, passed in so the server and the browser draw the same marker. */
51
+ today?: string;
52
+ /** First weekday column, 0 for Sunday through 6 for Saturday. @default 0 */
53
+ weekStartsOn?: number;
54
+ /** BCP 47 locale for the month, weekday and day names; server and browser must agree on it. */
55
+ locale: string;
56
+ /** Names the whole calendar, e.g. "Departure dates". */
57
+ label: string;
58
+ /** Level of the month's heading; resolved from the surrounding heading scope when unset. */
59
+ headingLevel?: Heading.Level;
60
+ labels: Labels;
61
+ }
62
+ }
63
+ /**
64
+ * Renders a month `<table>` with previous and next links, or, as `"strip"`, a `<nav>` named by
65
+ * `label` around a scrolling row of day cards. A day with a fare links to `href(day)`, named by
66
+ * its full date, fare and, at the `"low"` level, `labels.cheapest`; a day without one is text.
67
+ *
68
+ * @param handle Runtime handle carrying the calendar's props.
69
+ * @returns The render function producing the calendar's markup.
70
+ * @example
71
+ * <FareCalendar
72
+ * month="2026-03"
73
+ * fares={fares}
74
+ * selected="2026-03-14"
75
+ * href={(day) => `?depart=${day}`}
76
+ * prevHref="?month=2026-02"
77
+ * nextHref="?month=2026-04"
78
+ * locale="en-US"
79
+ * label="Departure dates"
80
+ * labels={{ previous: "Previous month", next: "Next month", cheapest: "cheapest", noFlights: "no flights" }}
81
+ * />
82
+ * @example
83
+ * <FareCalendar variant="strip" days={week} fares={fares} selected={day} href={href} locale={locale} label="Nearby dates" labels={labels} />
84
+ */
85
+ export declare function FareCalendar(handle: Handle<FareCalendar.Props>): () => import("remix/component").RemixElement;