@evinvest/uikit 0.13.0 → 0.15.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 +26 -10
- package/dist/index.d.ts +138 -29
- package/dist/index.js +1011 -669
- package/dist/index.js.map +1 -1
- package/package.json +2 -3
- package/styles/tokens.css +12 -0
- package/styles/tokens-legacy.css +0 -446
package/README.md
CHANGED
|
@@ -78,7 +78,6 @@ state, never its appearance (`Red`) and never its selection (`Default`); see
|
|
|
78
78
|
and carries EV's values: a single dark palette on `:root, .dark`. A consumer
|
|
79
79
|
with two polarities writes its own sheet against the same names.
|
|
80
80
|
|
|
81
|
-
`styles/tokens-legacy.css` is the pre-0.11 vocabulary layered on top —
|
|
82
81
|
`text-main-mist`, `bg-sidebar`, `text-muted-foreground` and the rest keep
|
|
83
82
|
working, and the current tokens are re-pointed at the old values so rendered
|
|
84
83
|
colour is unchanged. Import it instead while migrating; it goes away once every
|
|
@@ -130,7 +129,7 @@ element across the two ports.
|
|
|
130
129
|
| overlay placement | inline `position:fixed` + `data-side` | `Portal` + `useFloating` |
|
|
131
130
|
| dismiss / focus trap | full-screen backdrop / native order | `useDismissableLayer` / `useFocusScope` |
|
|
132
131
|
|
|
133
|
-
### Component inventory (all
|
|
132
|
+
### Component inventory (all 62 bricks)
|
|
134
133
|
|
|
135
134
|
- **Tier A — static (22):** badge, button, button-group, card, input, textarea,
|
|
136
135
|
label, field, separator, skeleton, spinner, kbd, table, container, alert,
|
|
@@ -141,10 +140,13 @@ element across the two ports.
|
|
|
141
140
|
- **Tier C — overlay (13):** tooltip, popover, hover-card, dropdown-menu,
|
|
142
141
|
context-menu, menubar, navigation-menu, dialog, alert-dialog, sheet, drawer,
|
|
143
142
|
select, command.
|
|
144
|
-
- **Tier D — engines (
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
- **Tier D — engines (6):** chart, calendar, date-time-picker, sonner (toaster),
|
|
144
|
+
form, resizable.
|
|
145
|
+
- **Site chrome (7):** header (marketing / compact density, plus `hideNav`),
|
|
146
|
+
footer, logo, and the shared status pages — `StatusScreen` with the `NotFound`
|
|
147
|
+
/ `Forbidden` / `ServerError` presets (404 / 403 / 500). The kit ships no
|
|
148
|
+
artwork: `Logo` masks whatever `--brand-mark` / `--brand-aspect` the consumer
|
|
149
|
+
declares beside the palette, and the status pages use it for their mark.
|
|
148
150
|
- **Features — composed screens (1):** terminal — a trading terminal over an
|
|
149
151
|
investment product's shares (`Terminal` grid placing each `TerminalPane` by
|
|
150
152
|
`TerminalArea`; `TerminalTicker` / `TickerStat`; `OrderBook` with
|
|
@@ -154,8 +156,9 @@ element across the two ports.
|
|
|
154
156
|
locale and no number format.
|
|
155
157
|
|
|
156
158
|
The canonical variant set is the **superset** of the original cabinet (Rust) and
|
|
157
|
-
landing (TS) sources — e.g. `Badge` keeps cabinet's `success` variant,
|
|
158
|
-
keeps landing's `icon
|
|
159
|
+
landing (TS) sources — e.g. `Badge` keeps cabinet's `success` variant, and
|
|
160
|
+
`Button` keeps landing's square icon shape at every size, as the separate `icon`
|
|
161
|
+
boolean it always was in Rust (see [docs/spec/variants.md](../../docs/spec/variants.md)).
|
|
159
162
|
|
|
160
163
|
## Limitations
|
|
161
164
|
|
|
@@ -179,8 +182,21 @@ measuring needs host-only `web-sys`). Known gaps:
|
|
|
179
182
|
submit's default — inputs, validation and the order itself are the
|
|
180
183
|
consumer's. The open-orders pane reuses `Table` and `Tabs`.
|
|
181
184
|
- **calendar:** single month, single-date selection (no range/multi-month, no
|
|
182
|
-
|
|
183
|
-
`
|
|
185
|
+
dropdown captions). `min`/`max` bound the grid at day granularity (days outside
|
|
186
|
+
render `disabled` + `data-disabled="true"`); `disabled` freezes the
|
|
187
|
+
whole grid and the nav the same way; the nav buttons take label overrides. TS-only `locale` renders the caption and weekday headers through
|
|
188
|
+
`Intl` (Monday-first); Rust has no `Intl`, so its captions stay English. Rust
|
|
189
|
+
does manual date math; TS uses the built-in `Date`.
|
|
190
|
+
- **date-time-picker:** the kit's own bricks only — an outline trigger, a
|
|
191
|
+
`Popover` with the `Calendar` and two numeric 24-hour hours/minutes fields (no
|
|
192
|
+
native `datetime-local` / `time` input, so the browser's locale popup never
|
|
193
|
+
appears). Its ARIA and button strings are `labels` overrides with English
|
|
194
|
+
defaults — the nav buttons, the hours/minutes `aria-label`s, the clear button
|
|
195
|
+
and the popover's own accessible name (`labels.dialog`). TS formats the trigger label through `Intl` when `locale` is set,
|
|
196
|
+
else `YYYY-MM-DD HH:MM`; Rust has no `Intl`: the ISO-like label or the
|
|
197
|
+
`format` callback, English month/weekday captions. The hidden form value is
|
|
198
|
+
unix seconds in TS and `YYYY-MM-DDTHH:MM` in Rust (no zone there). The Rust
|
|
199
|
+
overlay is the inline popover described above.
|
|
184
200
|
- **sonner:** both ports stack toasts Sonner-style — a collapsed pile (front
|
|
185
201
|
three peeking, scaled by depth) that spreads into a list on hover / keyboard
|
|
186
202
|
focus, via the shared `data-stack` CSS in `tokens.css`. The enter is a CSS
|
package/dist/index.d.ts
CHANGED
|
@@ -169,6 +169,8 @@ declare function mergeRefs<T>(...refs: Array<React.Ref<T> | undefined>): React.R
|
|
|
169
169
|
declare const alertVariants: {
|
|
170
170
|
readonly neutral: "bg-card text-ink";
|
|
171
171
|
readonly destructive: "text-accent-error bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-accent-error/90";
|
|
172
|
+
readonly success: "text-positive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-positive/90";
|
|
173
|
+
readonly info: "text-accent-info bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-accent-info/90";
|
|
172
174
|
};
|
|
173
175
|
type AlertVariant = keyof typeof alertVariants;
|
|
174
176
|
|
|
@@ -209,6 +211,15 @@ declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"s
|
|
|
209
211
|
declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
|
|
210
212
|
declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
211
213
|
|
|
214
|
+
declare const accentTextClasses: {
|
|
215
|
+
readonly trace: "text-accent-trace";
|
|
216
|
+
readonly debug: "text-accent-debug";
|
|
217
|
+
readonly info: "text-accent-info";
|
|
218
|
+
readonly warn: "text-accent-warn";
|
|
219
|
+
readonly error: "text-accent-error";
|
|
220
|
+
};
|
|
221
|
+
type Accent = keyof typeof accentTextClasses;
|
|
222
|
+
|
|
212
223
|
declare const buttonVariantClasses: {
|
|
213
224
|
readonly primary: "bg-primary text-on-primary hover:bg-primary/90";
|
|
214
225
|
readonly secondary: "bg-secondary text-on-secondary hover:bg-secondary/80";
|
|
@@ -219,39 +230,42 @@ declare const buttonVariantClasses: {
|
|
|
219
230
|
};
|
|
220
231
|
type ButtonVariant = keyof typeof buttonVariantClasses;
|
|
221
232
|
declare const buttonSizeClasses: {
|
|
222
|
-
readonly md: "h-9 px-4 py-[var(--control-py)] has-[>svg]:px-3";
|
|
223
233
|
readonly xs: "h-7 gap-1 px-2 text-xs has-[>svg]:px-1.5";
|
|
224
234
|
readonly sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5";
|
|
235
|
+
readonly md: "h-9 px-4 py-[var(--control-py)] has-[>svg]:px-3";
|
|
225
236
|
readonly lg: "h-10 px-6 has-[>svg]:px-4";
|
|
226
237
|
readonly xl: "px-[var(--control-px)] py-[var(--control-py)] text-[length:var(--control-text)]";
|
|
227
|
-
readonly icon: "h-9 aspect-square px-0";
|
|
228
|
-
readonly "icon-xs": "h-7 aspect-square px-0";
|
|
229
|
-
readonly "icon-sm": "h-8 aspect-square px-0";
|
|
230
|
-
readonly "icon-lg": "h-10 aspect-square px-0";
|
|
231
|
-
readonly "icon-xl": "aspect-square p-[var(--control-py)]";
|
|
232
238
|
};
|
|
233
239
|
type ButtonSize = keyof typeof buttonSizeClasses;
|
|
234
240
|
|
|
235
241
|
interface ButtonVariantsOptions {
|
|
236
242
|
variant?: ButtonVariant;
|
|
237
243
|
size?: ButtonSize;
|
|
244
|
+
/** A square button holding a bare glyph; `size` still picks the magnitude. */
|
|
245
|
+
icon?: boolean;
|
|
246
|
+
/** Recolours the button at an accent rung; unset is the normal case. */
|
|
247
|
+
accent?: Accent | undefined;
|
|
238
248
|
className?: string;
|
|
239
249
|
}
|
|
240
250
|
/**
|
|
241
251
|
* Returns the fused canonical button class string. Reused by `pagination` so a
|
|
242
252
|
* non-`Button` element can adopt the same styling, mirroring Rust's
|
|
243
253
|
* `button_classes`.
|
|
254
|
+
*
|
|
255
|
+
* The accent fuses after the variant so it recolours whatever the variant set.
|
|
244
256
|
*/
|
|
245
|
-
declare function buttonVariants({ variant, size, className, }?: ButtonVariantsOptions): string;
|
|
257
|
+
declare function buttonVariants({ variant, size, icon, accent, className, }?: ButtonVariantsOptions): string;
|
|
246
258
|
interface ButtonProps extends React.ComponentProps<"button"> {
|
|
247
259
|
variant?: ButtonVariant;
|
|
248
260
|
size?: ButtonSize;
|
|
261
|
+
icon?: boolean;
|
|
262
|
+
accent?: Accent;
|
|
249
263
|
asChild?: boolean;
|
|
250
264
|
/** Renders an `<a>` wearing the button's classes — a link that looks like a
|
|
251
265
|
* call to action is still a link. */
|
|
252
266
|
href?: string;
|
|
253
267
|
}
|
|
254
|
-
declare function Button({ className, variant, size, asChild, href, ...props }: ButtonProps): React.JSX.Element;
|
|
268
|
+
declare function Button({ className, variant, size, icon, accent, asChild, href, ...props }: ButtonProps): React.JSX.Element;
|
|
255
269
|
|
|
256
270
|
declare const buttonGroupOrientationClasses: {
|
|
257
271
|
readonly horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none";
|
|
@@ -377,10 +391,32 @@ interface FooterProps {
|
|
|
377
391
|
}
|
|
378
392
|
declare function Footer({ brand, description, copyright, nav, mark, tagline, offices, officesHeading, legalLinks, newsletter, newsletterHeading, newsletterBlurb, version, commitHref, linkComponent, children, }: FooterProps): React.JSX.Element;
|
|
379
393
|
|
|
380
|
-
declare
|
|
394
|
+
declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
381
395
|
|
|
382
396
|
declare function Textarea({ className, ...props }: React.ComponentProps<"textarea">): React.JSX.Element;
|
|
383
397
|
|
|
398
|
+
/**
|
|
399
|
+
* The consumer's mark, painted as a CSS mask (`backgroundColor: currentColor` +
|
|
400
|
+
* `maskImage`) so a monochrome lockup follows the surrounding text colour
|
|
401
|
+
* instead of the artwork's baked-in fill. `withBackground` seats it on the brand
|
|
402
|
+
* field, keeping a chip consistent with a favicon.
|
|
403
|
+
*
|
|
404
|
+
* The kit ships no artwork. The mark is a design token like every colour: the
|
|
405
|
+
* consumer declares `--brand-mark` — a `url()` at its own asset — and
|
|
406
|
+
* `--brand-aspect` in the same sheet it declares the palette in (see
|
|
407
|
+
* `styles/tokens.css`). Undeclared, `maskImage` is invalid at computed-value time
|
|
408
|
+
* and the span paints as a solid block: loud, and nobody else's logo.
|
|
409
|
+
*
|
|
410
|
+
* Decorative by design (`aria-hidden`): every real call site has the brand name
|
|
411
|
+
* in adjacent text or on the wrapping link, and a mark announced twice is worse
|
|
412
|
+
* than one announced once.
|
|
413
|
+
*/
|
|
414
|
+
interface LogoProps {
|
|
415
|
+
className?: string;
|
|
416
|
+
withBackground?: boolean;
|
|
417
|
+
}
|
|
418
|
+
declare function Logo({ className, withBackground }: LogoProps): React.JSX.Element;
|
|
419
|
+
|
|
384
420
|
declare const inputGroupAddonAligns: {
|
|
385
421
|
readonly "inline-start": "order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]";
|
|
386
422
|
readonly "inline-end": "order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]";
|
|
@@ -466,8 +502,10 @@ declare function PaginationItem(props: React.ComponentProps<"li">): React.JSX.El
|
|
|
466
502
|
type PaginationLinkProps = {
|
|
467
503
|
isActive?: boolean;
|
|
468
504
|
size?: ButtonSize;
|
|
505
|
+
/** Page numbers are square glyphs; a "Previous"/"Next" label is not. */
|
|
506
|
+
icon?: boolean;
|
|
469
507
|
} & React.ComponentProps<"a">;
|
|
470
|
-
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): React.JSX.Element;
|
|
508
|
+
declare function PaginationLink({ className, isActive, size, icon, ...props }: PaginationLinkProps): React.JSX.Element;
|
|
471
509
|
declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
|
|
472
510
|
declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
|
|
473
511
|
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
@@ -482,22 +520,12 @@ declare function Skeleton({ className, ...props }: React.ComponentProps<"div">):
|
|
|
482
520
|
declare function Spinner({ className, ...props }: React.ComponentProps<"svg">): React.JSX.Element;
|
|
483
521
|
|
|
484
522
|
/**
|
|
485
|
-
*
|
|
486
|
-
*
|
|
487
|
-
* `StatusScreen` is the generic shell; `NotFound` / `Forbidden` / `ServerError`
|
|
488
|
-
* are the ready-made pages with their copy baked in — a host renders those with
|
|
489
|
-
* its own hrefs. Links default to a plain `<a>` (a full document load, which is
|
|
490
|
-
* what you want off an error page); pass `linkComponent` (e.g. `next/link`) for
|
|
491
|
-
* soft navigation from a client boundary.
|
|
492
|
-
*/
|
|
493
|
-
type Accent = "trace" | "debug" | "info" | "warn" | "error";
|
|
494
|
-
/**
|
|
495
|
-
* A status CTA is a Button at the page's accent: the canonical button string,
|
|
496
|
-
* then the mono/uppercase treatment the error pages wear, then the accent.
|
|
523
|
+
* A status CTA is a Button at the page's accent: the canonical button string for
|
|
524
|
+
* that variant and rung, then the mono/uppercase treatment the error pages wear.
|
|
497
525
|
*
|
|
498
526
|
* Exported because a host that renders its own action into `StatusScreen`'s
|
|
499
527
|
* slot — a retry button wired to Next's `reset`, say — has to be able to match
|
|
500
|
-
* the CTAs beside it
|
|
528
|
+
* the CTAs beside it.
|
|
501
529
|
*/
|
|
502
530
|
declare function statusCtaClass(accent: Accent, variant: ButtonVariant): string;
|
|
503
531
|
interface StatusLinkData {
|
|
@@ -838,8 +866,8 @@ declare function CarouselItem({ className, ...props }: React.ComponentProps<"div
|
|
|
838
866
|
declare function CarouselEdgeFade({ className, }: {
|
|
839
867
|
className?: string;
|
|
840
868
|
}): React.JSX.Element;
|
|
841
|
-
declare function CarouselPrevious({ className, variant, size, ...props }: ButtonProps): React.JSX.Element;
|
|
842
|
-
declare function CarouselNext({ className, variant, size, ...props }: ButtonProps): React.JSX.Element;
|
|
869
|
+
declare function CarouselPrevious({ className, variant, size, icon, ...props }: ButtonProps): React.JSX.Element;
|
|
870
|
+
declare function CarouselNext({ className, variant, size, icon, ...props }: ButtonProps): React.JSX.Element;
|
|
843
871
|
|
|
844
872
|
interface InputOTPProps extends Omit<React.ComponentProps<"input">, "value" | "defaultValue" | "onChange"> {
|
|
845
873
|
maxLength: number;
|
|
@@ -1360,6 +1388,21 @@ interface CalendarProps {
|
|
|
1360
1388
|
onMonthChange?: (month: Date) => void;
|
|
1361
1389
|
/** "Today", highlighted in the grid; defaults to the real current date. */
|
|
1362
1390
|
today?: Date;
|
|
1391
|
+
/** Earliest selectable day (inclusive, day granularity); earlier days render disabled. */
|
|
1392
|
+
min?: Date;
|
|
1393
|
+
/** Latest selectable day (inclusive, day granularity); later days render disabled. */
|
|
1394
|
+
max?: Date;
|
|
1395
|
+
/** Disables the whole grid and the nav buttons; every day renders `data-disabled`. */
|
|
1396
|
+
disabled?: boolean;
|
|
1397
|
+
/** `aria-label` of the previous-month button; "Previous month" by default. */
|
|
1398
|
+
previousMonthLabel?: string;
|
|
1399
|
+
/** `aria-label` of the next-month button; "Next month" by default. */
|
|
1400
|
+
nextMonthLabel?: string;
|
|
1401
|
+
/**
|
|
1402
|
+
* BCP-47 tag for the month caption and weekday headers via `Intl`
|
|
1403
|
+
* (Monday-first). Absent → the English constants, byte-identical to Rust.
|
|
1404
|
+
*/
|
|
1405
|
+
locale?: string;
|
|
1363
1406
|
className?: string;
|
|
1364
1407
|
}
|
|
1365
1408
|
/**
|
|
@@ -1369,10 +1412,76 @@ interface CalendarProps {
|
|
|
1369
1412
|
* math; the Rust mirror does the same math by hand.
|
|
1370
1413
|
*
|
|
1371
1414
|
* Simplifications versus the source: one month only (no multi-month), a single
|
|
1372
|
-
* selected date (no range/multi),
|
|
1373
|
-
*
|
|
1415
|
+
* selected date (no range/multi), no dropdown captions; `locale` only swaps the
|
|
1416
|
+
* caption and weekday strings through `Intl` — see the package README.
|
|
1417
|
+
*/
|
|
1418
|
+
declare function Calendar({ selected, onSelect, month, defaultMonth, onMonthChange, today, min, max, disabled, previousMonthLabel, nextMonthLabel, locale, className, }: CalendarProps): React.JSX.Element;
|
|
1419
|
+
|
|
1420
|
+
/** The picker's own strings; every one defaults to English. */
|
|
1421
|
+
interface DateTimePickerLabels {
|
|
1422
|
+
/** `aria-label` of the calendar's previous-month button; "Previous month". */
|
|
1423
|
+
previousMonth?: string;
|
|
1424
|
+
/** `aria-label` of the calendar's next-month button; "Next month". */
|
|
1425
|
+
nextMonth?: string;
|
|
1426
|
+
/** `aria-label` of the hours input; "Hours". */
|
|
1427
|
+
hours?: string;
|
|
1428
|
+
/** `aria-label` of the minutes input; "Minutes". */
|
|
1429
|
+
minutes?: string;
|
|
1430
|
+
/** Text of the clear button; "Clear". */
|
|
1431
|
+
clear?: string;
|
|
1432
|
+
/** `aria-label` of the popover dialog; "Choose date and time". */
|
|
1433
|
+
dialog?: string;
|
|
1434
|
+
}
|
|
1435
|
+
interface DateTimePickerProps extends React.AriaAttributes, Pick<React.ComponentProps<"button">, "onFocus" | "onBlur"> {
|
|
1436
|
+
/** Controlled value; `null` = empty. Local-zone `Date` (seconds/ms are zeroed on every change). */
|
|
1437
|
+
value?: Date | null;
|
|
1438
|
+
/** Uncontrolled seed; default `null`. */
|
|
1439
|
+
defaultValue?: Date | null;
|
|
1440
|
+
onChange?: (value: Date | null) => void;
|
|
1441
|
+
/** Earliest allowed moment (inclusive, minute precision). */
|
|
1442
|
+
min?: Date;
|
|
1443
|
+
/** Latest allowed moment (inclusive, minute precision). */
|
|
1444
|
+
max?: Date;
|
|
1445
|
+
/**
|
|
1446
|
+
* BCP-47 tag for the trigger label and calendar captions (`Intl`). Absent →
|
|
1447
|
+
* `YYYY-MM-DD HH:MM` and English captions, like the Rust port.
|
|
1448
|
+
*/
|
|
1449
|
+
locale?: string;
|
|
1450
|
+
/** Overrides the trigger label entirely (e.g. the cabinet's `formatMoment`). */
|
|
1451
|
+
format?: (value: Date) => string;
|
|
1452
|
+
/** Shown on the trigger while empty; default "". */
|
|
1453
|
+
placeholder?: string;
|
|
1454
|
+
labels?: DateTimePickerLabels;
|
|
1455
|
+
disabled?: boolean;
|
|
1456
|
+
/** Renders a hidden `<input name>` carrying unix seconds ("" when empty) for plain forms. */
|
|
1457
|
+
name?: string;
|
|
1458
|
+
/**
|
|
1459
|
+
* "Today" for the calendar highlight and as the day a typed time lands on
|
|
1460
|
+
* while empty; default `new Date()`.
|
|
1461
|
+
*/
|
|
1462
|
+
today?: Date;
|
|
1463
|
+
open?: boolean;
|
|
1464
|
+
defaultOpen?: boolean;
|
|
1465
|
+
onOpenChange?: (open: boolean) => void;
|
|
1466
|
+
/** `PopoverContent` alignment; default "start". */
|
|
1467
|
+
align?: "start" | "center" | "end";
|
|
1468
|
+
/** Fused onto the trigger. */
|
|
1469
|
+
className?: string;
|
|
1470
|
+
/** Put on the trigger, so a `FieldLabel`'s `htmlFor` reaches it. */
|
|
1471
|
+
id?: string;
|
|
1472
|
+
}
|
|
1473
|
+
/**
|
|
1474
|
+
* A date + time field over the kit's own bricks: an outline trigger opening a
|
|
1475
|
+
* popover with the `Calendar` and two numeric hours/minutes inputs — no native
|
|
1476
|
+
* `datetime-local`, so the browser's locale popup never appears.
|
|
1477
|
+
*
|
|
1478
|
+
* Every edit reports through `onChange`; the popover stays open after a day
|
|
1479
|
+
* click (the operator still sets the time) and closes on clear. Opening moves
|
|
1480
|
+
* focus into the hours field; closing hands it back to the trigger unless the
|
|
1481
|
+
* operator already focused something else. Any other `aria-*` prop, `onFocus`
|
|
1482
|
+
* and `onBlur` land on the trigger.
|
|
1374
1483
|
*/
|
|
1375
|
-
declare function
|
|
1484
|
+
declare function DateTimePicker({ value: valueProp, defaultValue, onChange, min, max, locale, format, placeholder, labels, disabled, name, today, open, defaultOpen, onOpenChange, align, className, id, ...rest }: DateTimePickerProps): React.JSX.Element;
|
|
1376
1485
|
|
|
1377
1486
|
declare const toastVariantClasses: {
|
|
1378
1487
|
readonly neutral: "bg-popover text-ink border-border";
|
|
@@ -1595,4 +1704,4 @@ declare function OrderFormSubmit({ side, className, ...props }: OrderFormSubmitP
|
|
|
1595
1704
|
/** The open-orders pane with nothing in it. */
|
|
1596
1705
|
declare function OpenOrdersEmpty({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
1597
1706
|
|
|
1598
|
-
export { type Accent, Accordion, AccordionContent, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, type AlertDialogOverlayProps, type AlertDialogProps, AlertDialogTitle, AlertDialogTrigger, type AlertDialogTriggerProps, type AlertProps, AlertTitle, type AlertVariant, type Align, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, type BadgeVariant, type BookSide, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, type ButtonGroupTextProps, type ButtonProps, type ButtonSize, type ButtonVariant, type ButtonVariantsOptions, Calendar, type CalendarProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselEdgeFade, CarouselItem, CarouselNext, CarouselPrevious, type CarouselProps, type ChartConfig, ChartContainer, type ChartItem, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Check, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, Command, CommandDialog, type CommandDialogProps, CommandEmpty, CommandGroup, type CommandGroupProps, CommandInput, CommandItem, type CommandItemProps, CommandList, type CommandProps, CommandSeparator, CommandShortcut, Container, type ContainerProps, ContextMenu, ContextMenuCheckboxItem, type ContextMenuCheckboxItemProps, ContextMenuContent, ContextMenuGroup, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, ContextMenuPortal, type ContextMenuProps, ContextMenuRadioGroup, type ContextMenuRadioGroupProps, ContextMenuRadioItem, type ContextMenuRadioItemProps, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, type ContextMenuSubProps, ContextMenuSubTrigger, type ContextMenuSubTriggerProps, ContextMenuTrigger, type ContextMenuTriggerProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, DialogTrigger, type DialogTriggerProps, Display, Drawer, DrawerClose, type DrawerCloseProps, DrawerContent, DrawerDescription, type DrawerDirection, DrawerFooter, DrawerHeader, DrawerOverlay, type DrawerProps, DrawerTitle, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, type EmptyMediaProps, type EmptyMediaVariant, EmptyTitle, Eyebrow, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldOrientation, FieldSeparator, FieldSet, FieldTitle, type FloatingResult, Footer, type FooterLink, type FooterLinkGroup, type FooterOffice, type FooterProps, Forbidden, Form, FormControl, FormDescription, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, type HoverCardContentProps, type HoverCardProps, HoverCardTrigger, type HoverCardTriggerProps, type HoverIntentHandlers, InfoTip, InfoTipContent, type InfoTipContentProps, type InfoTipProps, InfoTipTrigger, type InfoTipTriggerProps, Input, InputGroup, InputGroupAddon, type InputGroupAddonAlign, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, type InputGroupButtonSize, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputOTPSlotProps, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemMediaProps, type ItemMediaVariant, type ItemProps, ItemSeparator, type ItemSize, ItemTitle, type ItemVariant, Kbd, KbdGroup, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, type MenubarMenuProps, MenubarRadioGroup, type MenubarRadioGroupProps, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, type MenubarSubProps, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFound, OpenOrdersEmpty, OrderBook, OrderBookHead, type OrderBookHeadProps, OrderBookRow, type OrderBookRowProps, OrderBookSpread, OrderForm, OrderFormRow, type OrderFormRowProps, OrderFormSubmit, type OrderFormSubmitProps, type OrderSide, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, PaginationNext, PaginationPrevious, type Polarity, Popover, PopoverAnchor, type PopoverAnchorProps, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, Progress, type ProgressProps, Prose, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type ResizableDirection, ResizableHandle, type ResizableHandleProps, ResizablePanel, ResizablePanelGroup, type ResizablePanelGroupProps, type ResizablePanelProps, ScrollArea, ScrollBar, type ScrollBarOrientation, type ScrollBarProps, Section, SectionDescriptor, type SectionDescriptorProps, SectionHead, type SectionHeadProps, type SectionProps, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, type SelectItemProps, SelectLabel, type SelectProps, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, type SeparatorOrientation, type SeparatorProps, ServerError, type ServerErrorProps, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, type SheetOverlayProps, type SheetProps, SheetTitle, SheetTrigger, type SheetTriggerProps, type Side, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, type SidebarGroupLabelProps, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuButton, type SidebarMenuButtonProps, type SidebarMenuButtonSize, SidebarMenuItem, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, type SliderProps, Slot, type SlotProps, Spinner, Stat, type StatProps, type StatusLinkData, type StatusPageProps, StatusScreen, type StatusScreenProps, type Surface, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsProps, TabsTrigger, type TabsTriggerProps, Terminal, type TerminalArea, TerminalChart, TerminalPane, TerminalPaneBody, TerminalPaneHeader, type TerminalPaneProps, TerminalTicker, Textarea, TickerStat, type TickerStatProps, type Toast, type ToastFn, type ToastOptions, type ToastPosition, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, type ToggleSize, type ToggleVariant, type ToggleVariantsOptions, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps, TradesTapeRow, type TradesTapeRowProps, buttonVariants, cn, mergeRefs, navigationMenuTriggerStyle, statusCtaClass, toast, toggleVariants, useControllableState, useDismissableLayer, useFloating, useFocusScope, useHoverIntent, usePresence, useRovingFocus, useSidebar };
|
|
1707
|
+
export { type Accent, Accordion, AccordionContent, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, type AlertDialogOverlayProps, type AlertDialogProps, AlertDialogTitle, AlertDialogTrigger, type AlertDialogTriggerProps, type AlertProps, AlertTitle, type AlertVariant, type Align, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, type BadgeVariant, type BookSide, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, type ButtonGroupTextProps, type ButtonProps, type ButtonSize, type ButtonVariant, type ButtonVariantsOptions, Calendar, type CalendarProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselEdgeFade, CarouselItem, CarouselNext, CarouselPrevious, type CarouselProps, type ChartConfig, ChartContainer, type ChartItem, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Check, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, Command, CommandDialog, type CommandDialogProps, CommandEmpty, CommandGroup, type CommandGroupProps, CommandInput, CommandItem, type CommandItemProps, CommandList, type CommandProps, CommandSeparator, CommandShortcut, Container, type ContainerProps, ContextMenu, ContextMenuCheckboxItem, type ContextMenuCheckboxItemProps, ContextMenuContent, ContextMenuGroup, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, ContextMenuPortal, type ContextMenuProps, ContextMenuRadioGroup, type ContextMenuRadioGroupProps, ContextMenuRadioItem, type ContextMenuRadioItemProps, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, type ContextMenuSubProps, ContextMenuSubTrigger, type ContextMenuSubTriggerProps, ContextMenuTrigger, type ContextMenuTriggerProps, DateTimePicker, type DateTimePickerLabels, type DateTimePickerProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, DialogTrigger, type DialogTriggerProps, Display, Drawer, DrawerClose, type DrawerCloseProps, DrawerContent, DrawerDescription, type DrawerDirection, DrawerFooter, DrawerHeader, DrawerOverlay, type DrawerProps, DrawerTitle, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, type EmptyMediaProps, type EmptyMediaVariant, EmptyTitle, Eyebrow, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldOrientation, FieldSeparator, FieldSet, FieldTitle, type FloatingResult, Footer, type FooterLink, type FooterLinkGroup, type FooterOffice, type FooterProps, Forbidden, Form, FormControl, FormDescription, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, type HoverCardContentProps, type HoverCardProps, HoverCardTrigger, type HoverCardTriggerProps, type HoverIntentHandlers, InfoTip, InfoTipContent, type InfoTipContentProps, type InfoTipProps, InfoTipTrigger, type InfoTipTriggerProps, Input, InputGroup, InputGroupAddon, type InputGroupAddonAlign, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, type InputGroupButtonSize, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputOTPSlotProps, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemMediaProps, type ItemMediaVariant, type ItemProps, ItemSeparator, type ItemSize, ItemTitle, type ItemVariant, Kbd, KbdGroup, Label, Logo, type LogoProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, type MenubarMenuProps, MenubarRadioGroup, type MenubarRadioGroupProps, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, type MenubarSubProps, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFound, OpenOrdersEmpty, OrderBook, OrderBookHead, type OrderBookHeadProps, OrderBookRow, type OrderBookRowProps, OrderBookSpread, OrderForm, OrderFormRow, type OrderFormRowProps, OrderFormSubmit, type OrderFormSubmitProps, type OrderSide, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, PaginationNext, PaginationPrevious, type Polarity, Popover, PopoverAnchor, type PopoverAnchorProps, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, Progress, type ProgressProps, Prose, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type ResizableDirection, ResizableHandle, type ResizableHandleProps, ResizablePanel, ResizablePanelGroup, type ResizablePanelGroupProps, type ResizablePanelProps, ScrollArea, ScrollBar, type ScrollBarOrientation, type ScrollBarProps, Section, SectionDescriptor, type SectionDescriptorProps, SectionHead, type SectionHeadProps, type SectionProps, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, type SelectItemProps, SelectLabel, type SelectProps, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, type SeparatorOrientation, type SeparatorProps, ServerError, type ServerErrorProps, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, type SheetOverlayProps, type SheetProps, SheetTitle, SheetTrigger, type SheetTriggerProps, type Side, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, type SidebarGroupLabelProps, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuButton, type SidebarMenuButtonProps, type SidebarMenuButtonSize, SidebarMenuItem, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, type SliderProps, Slot, type SlotProps, Spinner, Stat, type StatProps, type StatusLinkData, type StatusPageProps, StatusScreen, type StatusScreenProps, type Surface, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsProps, TabsTrigger, type TabsTriggerProps, Terminal, type TerminalArea, TerminalChart, TerminalPane, TerminalPaneBody, TerminalPaneHeader, type TerminalPaneProps, TerminalTicker, Textarea, TickerStat, type TickerStatProps, type Toast, type ToastFn, type ToastOptions, type ToastPosition, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, type ToggleSize, type ToggleVariant, type ToggleVariantsOptions, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps, TradesTapeRow, type TradesTapeRowProps, buttonVariants, cn, mergeRefs, navigationMenuTriggerStyle, statusCtaClass, toast, toggleVariants, useControllableState, useDismissableLayer, useFloating, useFocusScope, useHoverIntent, usePresence, useRovingFocus, useSidebar };
|