@rise-x/apps-sdk 0.16.4 → 0.20.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.
Files changed (62) hide show
  1. package/API.md +141 -0
  2. package/README.md +299 -10
  3. package/build/accessors.d.ts +2 -1
  4. package/build/accessors.js +10 -0
  5. package/build/breadcrumb.d.ts +49 -0
  6. package/build/breadcrumb.js +58 -0
  7. package/build/connectors/types.d.ts +8 -0
  8. package/build/connectors/types.js +36 -4
  9. package/build/connectors/work.js +30 -1
  10. package/build/index.d.ts +3 -1
  11. package/build/index.js +7 -1
  12. package/build/live/index.d.ts +43 -0
  13. package/build/live/index.js +183 -0
  14. package/build/liveChannel.d.ts +32 -0
  15. package/build/liveChannel.js +60 -0
  16. package/build/mockShell.d.ts +2 -0
  17. package/build/mockShell.js +1 -0
  18. package/build/query/index.d.ts +1 -0
  19. package/build/query/index.js +4 -2
  20. package/build/query/live.d.ts +14 -0
  21. package/build/query/live.js +115 -0
  22. package/build/shell/index.d.ts +2 -1
  23. package/build/shell/installShellBridge.d.ts +15 -1
  24. package/build/shell/installShellBridge.js +7 -1
  25. package/build/shell/liveHub.d.ts +25 -0
  26. package/build/shell/liveHub.js +201 -0
  27. package/build/shellBridge.d.ts +116 -1
  28. package/build/shellBridge.js +5 -1
  29. package/build/ui/classes.json +42 -42
  30. package/build/ui/components/ai.d.ts +68 -4
  31. package/build/ui/components/alert-dialog.d.ts +4 -4
  32. package/build/ui/components/app-frame.d.ts +47 -7
  33. package/build/ui/components/asset-pill.d.ts +8 -0
  34. package/build/ui/components/badge.d.ts +35 -2
  35. package/build/ui/components/button.d.ts +4 -4
  36. package/build/ui/components/calendar.d.ts +2 -2
  37. package/build/ui/components/chat-input.d.ts +4 -4
  38. package/build/ui/components/data-table.d.ts +128 -13
  39. package/build/ui/components/data-view.d.ts +94 -0
  40. package/build/ui/components/date-picker.d.ts +23 -1
  41. package/build/ui/components/file-upload.d.ts +9 -1
  42. package/build/ui/components/filter-bar.d.ts +89 -0
  43. package/build/ui/components/floating-panel.d.ts +53 -0
  44. package/build/ui/components/item.d.ts +1 -1
  45. package/build/ui/components/journey.d.ts +165 -0
  46. package/build/ui/components/nav.d.ts +52 -2
  47. package/build/ui/components/page-header.d.ts +8 -8
  48. package/build/ui/components/person.d.ts +14 -0
  49. package/build/ui/components/record-summary.d.ts +17 -0
  50. package/build/ui/components/search-dialog.d.ts +56 -0
  51. package/build/ui/components/statistic.d.ts +2 -1
  52. package/build/ui/components/table.d.ts +10 -3
  53. package/build/ui/components/toggle.d.ts +1 -1
  54. package/build/ui/demo.html +45923 -25459
  55. package/build/ui/index.d.ts +8 -0
  56. package/build/ui/standalone.js +984 -69
  57. package/build/ui/styles.css +1 -1
  58. package/build/ui/theme.css +11 -6
  59. package/live/package.json +8 -0
  60. package/package.json +10 -2
  61. package/template/AGENTS.md +6 -0
  62. package/template/src/App.tsx +4 -1
@@ -0,0 +1,53 @@
1
+ import * as React from 'react';
2
+ export interface FloatingPanelNav {
3
+ /** 1-based position of this item in the list behind the panel. */
4
+ at: number;
5
+ of: number;
6
+ /** Omit at the start of the list — the button disables rather than vanishes. */
7
+ onPrev?: () => void;
8
+ /** Omit at the end of the list. */
9
+ onNext?: () => void;
10
+ }
11
+ declare function FloatingPanel({ open, onClose, title, nav, onExpand, footer, defaultWidth, storageKey, container, className, children, }: {
12
+ open: boolean;
13
+ onClose: () => void;
14
+ /** Rides in the bar, beside the controls. Keep it to the item's name. */
15
+ title: React.ReactNode;
16
+ /** Previous / next through the list behind. Omit for a panel that is not one of a list. */
17
+ nav?: FloatingPanelNav;
18
+ /** For an item with its own page: the full-screen button opens it instead of filling in place. */
19
+ onExpand?: () => void;
20
+ /** The bottom bar: what you can do here. Hidden when empty. */
21
+ footer?: React.ReactNode;
22
+ defaultWidth?: number;
23
+ /** Remembers the width the reader dragged to, per kind of panel ("order", "activity"). */
24
+ storageKey?: string;
25
+ /** Portal target. Defaults to the AppFrame region, then the window. A target
26
+ * must be positioned (relative) — the panel is absolute inside it. */
27
+ container?: HTMLElement | null;
28
+ className?: string;
29
+ children: React.ReactNode;
30
+ }): React.JSX.Element;
31
+ /**
32
+ * Actions for the panel's fixed bottom bar, from anywhere inside the panel —
33
+ * typically a form that is one part of the body (a Journey step's form). Lay it
34
+ * out like `footer`: a short line of context that grows, then the buttons, the
35
+ * primary last. Use one source of actions per panel: `footer` or this.
36
+ *
37
+ * The same form shown outside a panel — opened as a page — keeps its actions:
38
+ * they close the form instead, on a rule.
39
+ */
40
+ declare function FloatingPanelFooter({ children }: {
41
+ children: React.ReactNode;
42
+ }): React.JSX.Element | null;
43
+ /** A section of a panel's body: a small title, then its content on a white
44
+ * tile — the same "bare header over tiles" shape a page uses. */
45
+ declare function FloatingPanelSection({ title, meta, flush, className, children, }: {
46
+ title?: React.ReactNode;
47
+ meta?: React.ReactNode;
48
+ /** Edge-to-edge content (a table, a list) — no tile padding. */
49
+ flush?: boolean;
50
+ className?: string;
51
+ children: React.ReactNode;
52
+ }): React.JSX.Element;
53
+ export { FloatingPanel, FloatingPanelFooter, FloatingPanelSection };
@@ -5,7 +5,7 @@ declare function ItemGroup({ className, ...props }: React.ComponentProps<'div'>)
5
5
  declare function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
6
6
  declare const itemVariants: (props?: ({
7
7
  variant?: "default" | "outline" | "muted" | null | undefined;
8
- size?: "default" | "sm" | null | undefined;
8
+ size?: "sm" | "default" | null | undefined;
9
9
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
10
  declare function Item({ className, variant, size, asChild, ...props }: React.ComponentProps<'div'> & VariantProps<typeof itemVariants> & {
11
11
  asChild?: boolean;
@@ -0,0 +1,165 @@
1
+ import * as React from 'react';
2
+ export type JourneyStatus = 'done' | 'now' | 'next' | 'skipped';
3
+ export interface JourneyLane {
4
+ id: string;
5
+ /** The party responsible for these steps — "Requester", "Supplier" — or
6
+ * the app where this part of the flow runs. */
7
+ label: string;
8
+ /** A second line — usually the app the party works in. */
9
+ note?: string;
10
+ /** The viewer's own lane: tinted with the brand. */
11
+ here?: boolean;
12
+ }
13
+ /** One thing someone did at a step — an entry in that step's activity log. */
14
+ export interface JourneyEvent {
15
+ /** What happened — "Submitted the quote", "Amount changed". */
16
+ action: string;
17
+ /** Who did it. */
18
+ by: string;
19
+ /** Their company. */
20
+ company?: string;
21
+ /** When, already formatted, with the time — "4 Aug, 14:20". */
22
+ at: string;
23
+ /** The log's icon and tone: a step closed, a change, Diana, a problem, a note. */
24
+ kind?: 'done' | 'change' | 'ai' | 'problem' | 'info';
25
+ /** A line of detail under it. */
26
+ note?: React.ReactNode;
27
+ /** The values this entry set — "updated Vessel, Product, Volume" lists
28
+ * them. With `from`, a value that changed, shown before → after. */
29
+ fields?: JourneyField[];
30
+ }
31
+ /** One value an activity entry set or changed. */
32
+ export interface JourneyField {
33
+ label: string;
34
+ value: React.ReactNode;
35
+ /** What it was before — the entry then reads as a change. */
36
+ from?: React.ReactNode;
37
+ }
38
+ /** A titled group of what was recorded at a step — "Quote". */
39
+ export interface JourneySection {
40
+ title: string;
41
+ fields: [string, React.ReactNode][];
42
+ }
43
+ export interface JourneyStep {
44
+ id: string;
45
+ laneId: string;
46
+ /** The milestone in business words — "Pre-delivery documents". */
47
+ title: string;
48
+ /** The company responsible for the step — "Harbour Fuels". */
49
+ owner: string;
50
+ status: JourneyStatus;
51
+ /** The viewer holds this step — it is assigned to them, not just to their
52
+ * company. The journey opens on it and shows the app's form for it. */
53
+ yours?: boolean;
54
+ /** How long the step in progress has waited — "3 days". */
55
+ since?: string;
56
+ /** What the step asks for — "Harbour Fuels uploads the pre-delivery
57
+ * documents". Shown while the step is still to be done. */
58
+ task?: string;
59
+ /** The step's activity log, oldest first. The last entry dates a done step. */
60
+ activity?: JourneyEvent[];
61
+ /** The step's values as they stand — its read-only view on the record.
62
+ * (Who entered them, and when, is the `activity`.) */
63
+ sections?: JourneySection[];
64
+ }
65
+ /** Where a step stands, in one line: who did it and when, who has it and for how long. */
66
+ declare function journeyStatusLine(step: JourneyStep): string;
67
+ /** The route button that opens the full journey. */
68
+ declare function JourneyButton({ onClick }: {
69
+ onClick: () => void;
70
+ }): React.JSX.Element;
71
+ declare function JourneyBar({ steps, selected, onSelect, lead, heading, compact, className, }: {
72
+ steps: JourneyStep[];
73
+ /** The step being looked at; null for all of them. */
74
+ selected?: string | null;
75
+ /** Click selects a step, a second click clears it. */
76
+ onSelect?: (id: string | null) => void;
77
+ /** Before the segments — the JourneyButton, usually. */
78
+ lead?: React.ReactNode;
79
+ /** The selected step's name and status above the bar ("3 of 10 done" when none). */
80
+ heading?: boolean;
81
+ /** Segments only, no labels under them — for narrow places. */
82
+ compact?: boolean;
83
+ className?: string;
84
+ }): React.JSX.Element;
85
+ /**
86
+ * A step's history, as the Activity log draws it — newest first. Each entry
87
+ * carries the values it set, so "who entered what, and when" reads in one
88
+ * place: "Updated Supplier, Terminal" with the values under it, then "Sent to
89
+ * Harbour Fuels".
90
+ */
91
+ declare function JourneyActivity({ events, className }: {
92
+ events: JourneyEvent[];
93
+ className?: string;
94
+ }): React.JSX.Element;
95
+ /**
96
+ * A titled group of facts at a step — "Harbour Fuels' quote": Total, Unit
97
+ * price, Delivery date. The read-only view of a finished step is made of
98
+ * these, and YOUR step's form (through `renderStep`) opens with one too, for
99
+ * what the form decides on — so a step reads the same before and after it is
100
+ * done. Two columns in a narrow panel or on a phone, four from 448px: the
101
+ * columns follow the room the section has, not the window.
102
+ */
103
+ declare function JourneyStepSection({ title, fields, className, }: {
104
+ title: React.ReactNode;
105
+ /** Label and value pairs, in reading order. */
106
+ fields: [string, React.ReactNode][];
107
+ className?: string;
108
+ }): React.JSX.Element;
109
+ /**
110
+ * A step on the record, read-only: what was recorded there — or, while it is
111
+ * still to be done, a state that says who has it and what they have to do.
112
+ * (Your own step is the app's form, through Journey's `renderStep`.)
113
+ */
114
+ declare function JourneyStepContent({ step, after, }: {
115
+ step: JourneyStep;
116
+ /** The step before, for "Starts after …" on a step not reached yet. */
117
+ after?: string;
118
+ }): React.JSX.Element;
119
+ declare function JourneyStepDetail({ step, lane, onGoToStep, className, }: {
120
+ step: JourneyStep;
121
+ lane?: JourneyLane;
122
+ /** "Open this step" — shows it on the record; for any step that has started. */
123
+ onGoToStep?: (id: string) => void;
124
+ className?: string;
125
+ }): React.JSX.Element;
126
+ declare function JourneyMap({ lanes, steps, selected: selectedProp, onSelect, onGoToStep, className, }: {
127
+ lanes: JourneyLane[];
128
+ steps: JourneyStep[];
129
+ /** Controlled selection; defaults to the step in progress. */
130
+ selected?: string;
131
+ onSelect?: (id: string) => void;
132
+ /** "Open this step" — shows it on the record; for any step that has started. */
133
+ onGoToStep?: (id: string) => void;
134
+ className?: string;
135
+ }): React.JSX.Element;
136
+ /** The map in a large dialog — what the JourneyButton opens. */
137
+ declare function JourneyDialog({ open, onOpenChange, title, description, ...map }: React.ComponentProps<typeof JourneyMap> & {
138
+ open: boolean;
139
+ onOpenChange: (open: boolean) => void;
140
+ title: React.ReactNode;
141
+ description?: React.ReactNode;
142
+ }): React.JSX.Element;
143
+ /**
144
+ * THE journey, as an app puts it on a record: the selected step's name and
145
+ * where it stands, the stepper with its route button, then the step itself.
146
+ * Opens on YOUR step when you hold one (the app's form, through `renderStep`),
147
+ * else on the step in progress. Any segment shows that step — what was
148
+ * recorded there, or who it waits on.
149
+ * The route icon opens the whole workflow, and its history, in a big modal.
150
+ */
151
+ declare function Journey({ lanes, steps, title, description, selected: selectedProp, onSelect, renderStep, className, }: {
152
+ lanes: JourneyLane[];
153
+ steps: JourneyStep[];
154
+ /** The workflow modal's title — "Journey — SO-1544". */
155
+ title: React.ReactNode;
156
+ description?: React.ReactNode;
157
+ /** Controlled selection; defaults to your step, else the step in progress. */
158
+ selected?: string;
159
+ onSelect?: (id: string) => void;
160
+ /** The app's own content for a step — the form, on the step you hold.
161
+ * Return undefined to fall back to the read-only view. */
162
+ renderStep?: (step: JourneyStep) => React.ReactNode;
163
+ className?: string;
164
+ }): React.JSX.Element | null;
165
+ export { Journey, JourneyActivity, JourneyStepContent, JourneyStepSection, JourneyBar, JourneyButton, JourneyDialog, JourneyMap, JourneyStepDetail, journeyStatusLine, };
@@ -1,13 +1,63 @@
1
1
  import * as React from 'react';
2
+ interface NavRailState {
3
+ /** Icon-only layout of a narrowed rail. */
4
+ collapsed: boolean;
5
+ /** The 28px rows of a collapsed group's list. */
6
+ dense: boolean;
7
+ }
8
+ /** Set by AppRail; anything outside a rail renders expanded. */
9
+ declare function NavRailScope({ collapsed, dense, children, }: Partial<NavRailState> & {
10
+ children: React.ReactNode;
11
+ }): React.JSX.Element;
12
+ type NavDot = 'needs' | 'working';
13
+ /** Where a custom row is drawn: `collapsed` in a narrowed rail, `dense` in a
14
+ * collapsed group's list. Rows built from NavItem need not ask. */
15
+ declare function useNavRail(): NavRailState;
2
16
  declare function Nav({ className, ...props }: React.ComponentProps<'nav'>): React.JSX.Element;
3
- declare function NavItem({ className, current, asChild, ...props }: React.ComponentProps<'button'> & {
17
+ declare function NavItem({ className, current, asChild, dot, label, children, ...props }: React.ComponentProps<'button'> & {
4
18
  current?: boolean;
5
19
  asChild?: boolean;
20
+ /** Something needs the person, or is running. */
21
+ dot?: NavDot;
22
+ /** The tooltip and accessible name when collapsed. Defaults to the item's
23
+ * own text, so it is only needed when the text is nested. */
24
+ label?: string;
6
25
  }): React.JSX.Element;
7
26
  declare function NavSection({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
27
+ /**
28
+ * A titled group of items — Routines, Agents, Pinned, a chat folder.
29
+ * Expanded: a title row (foldable on click, a hover-only `trailing` action)
30
+ * over its items, then `more`. Collapsed with an `icon`: one 32px button that
31
+ * opens the group as a list to the right, with `more` as its one footer
32
+ * action. Collapsed without an icon: a hairline, then its items as icons.
33
+ */
34
+ declare function NavGroup({ title, icon, foldable, defaultFolded, trailing, more, empty, active, dot, count, children, className, }: {
35
+ title: string;
36
+ icon?: React.ReactNode;
37
+ /** What the collapsed icon's tooltip counts ("Chats · 12"). Read from the
38
+ * children when left out — pass it when some children are not items: a
39
+ * loading skeleton, an empty or error message. */
40
+ count?: number;
41
+ /** Marks the collapsed icon as holding the open page. Read from the items'
42
+ * `current` when they are NavItems. */
43
+ active?: boolean;
44
+ /** The collapsed icon's dot. Read from the items' `dot` when they are NavItems. */
45
+ dot?: NavDot;
46
+ foldable?: boolean;
47
+ defaultFolded?: boolean;
48
+ /** Hover-only action on the title row, e.g. "New group". */
49
+ trailing?: React.ReactNode;
50
+ /** A NavItem after the list — "All routines". The collapsed list's footer. */
51
+ more?: React.ReactNode;
52
+ /** Shown when the group has no items. */
53
+ empty?: string;
54
+ children?: React.ReactNode;
55
+ className?: string;
56
+ }): React.JSX.Element;
8
57
  declare function Panel({ className, ...props }: React.ComponentProps<'aside'>): React.JSX.Element;
9
58
  declare function PanelHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
10
59
  declare function PanelTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
11
60
  declare function PanelBody({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
12
61
  declare function PanelFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
13
- export { Nav, NavItem, NavSection, Panel, PanelHeader, PanelTitle, PanelBody, PanelFooter };
62
+ export { Nav, NavItem, NavSection, NavGroup, NavRailScope, useNavRail, Panel, PanelHeader, PanelTitle, PanelBody, PanelFooter, };
63
+ export type { NavDot };
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  declare function PageHeader({ className, variant, ...props }: React.ComponentProps<'header'> & {
3
3
  /**
4
- * `card` — a white band with a bottom rule, for headers that own tabs.
5
- * `bare` — sits directly ON the page background with no surface and no rule,
6
- * so the content below can be a set of white tiles (metrics, tables, cards).
7
- * Use this whenever the page is a dashboard rather than a single document:
8
- * a white header above white tiles produces two stacked surfaces with a seam
9
- * between them and nothing gained.
4
+ * `bare` (the default) — sits directly ON the page background with no
5
+ * surface and no rule, tabs included, so the content below is a set of
6
+ * white tiles (metrics, tables, cards). A white header above white tiles
7
+ * is two stacked surfaces with a seam between them and nothing gained.
8
+ * `card` — a white band with a bottom rule, only for a header that lives
9
+ * INSIDE a surface of its own (a panel, a dialog-sized page).
10
10
  */
11
11
  variant?: 'card' | 'bare';
12
12
  }): React.JSX.Element;
@@ -16,8 +16,8 @@ declare function PageHeaderTitle({ className, ...props }: React.ComponentProps<'
16
16
  declare function PageHeaderSubtitle({ className, ...props }: React.ComponentProps<'p'>): React.JSX.Element;
17
17
  declare function PageHeaderActions({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
18
18
  declare const PageHeaderActivity: React.ForwardRefExoticComponent<Omit<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & import("class-variance-authority").VariantProps<(props?: ({
19
- variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "tint" | "tint-brand" | "destructive" | "destructive-solid" | "brand" | "dashed" | "pill" | null | undefined;
20
- size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
19
+ variant?: "link" | "pill" | "default" | "outline" | "secondary" | "ghost" | "tint" | "tint-brand" | "destructive" | "destructive-solid" | "brand" | "dashed" | null | undefined;
20
+ size?: "sm" | "default" | "xs" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
21
21
  } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
22
22
  asChild?: boolean;
23
23
  }, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ declare function Person({ name, role, company, email, src, className, }: {
3
+ name: string;
4
+ /** Their role — "Dispatcher". Shown on hover. */
5
+ role?: string;
6
+ /** Their company — "Northwind Energy". Shown on hover. */
7
+ company?: string;
8
+ /** Shown on hover, as a mail link. */
9
+ email?: string;
10
+ /** Photo; the initials stand in without it. */
11
+ src?: string;
12
+ className?: string;
13
+ }): React.JSX.Element;
14
+ export { Person };
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ declare function RecordSummary({ title, reference, description, status, facts, className, children, }: {
3
+ /** The record's name — "Pipe spools", "Ocean Star". */
4
+ title?: React.ReactNode;
5
+ /** Its reference, after the name in a quieter tone — "DEL-1041". */
6
+ reference?: React.ReactNode;
7
+ /** One line of what it is — "24 units · for Eastfield". */
8
+ description?: React.ReactNode;
9
+ /** A StatusBadge, top right. */
10
+ status?: React.ReactNode;
11
+ /** Label and value pairs. Empty values are dropped rather than shown as dashes. */
12
+ facts?: [string, React.ReactNode][];
13
+ className?: string;
14
+ /** Anything that belongs with the summary, under the facts. */
15
+ children?: React.ReactNode;
16
+ }): React.JSX.Element;
17
+ export { RecordSummary };
@@ -0,0 +1,56 @@
1
+ import * as React from 'react';
2
+ export type SearchItem = {
3
+ id: string;
4
+ label: string;
5
+ /** The kind of thing it is, matching a `SearchScope` value. */
6
+ scope?: string;
7
+ /** Shown on the right of the row — usually the kind ("Asset", "Page"). */
8
+ hint?: string;
9
+ icon?: React.ReactNode;
10
+ /** Other words that should find it: codes, synonyms, a customer name. */
11
+ keywords?: string[];
12
+ onSelect: () => void;
13
+ };
14
+ export type SearchAction = {
15
+ id: string;
16
+ label: string;
17
+ icon?: React.ReactNode;
18
+ onSelect: () => void;
19
+ };
20
+ export type SearchScope = {
21
+ value: string;
22
+ label: string;
23
+ };
24
+ export type SearchPanelProps = {
25
+ items: SearchItem[];
26
+ /** Kinds to narrow by. "All" is added in front; omit for no chips. */
27
+ scopes?: SearchScope[];
28
+ /** Item ids to show before anything is typed, most recent first. */
29
+ recent?: string[];
30
+ actions?: SearchAction[];
31
+ placeholder?: string;
32
+ /** Most result rows shown at once. */
33
+ limit?: number;
34
+ /** Called after a row's own `onSelect` — SearchDialog closes itself here. */
35
+ onDone?: () => void;
36
+ /** Shows a close button beside the field. */
37
+ onClose?: () => void;
38
+ /** The ⌘K hint in the footer, when the shortcut is bound. */
39
+ hotkey?: boolean;
40
+ className?: string;
41
+ };
42
+ declare function SearchPanel({ items, scopes, recent, actions, placeholder, limit, onDone, onClose, hotkey, className, }: SearchPanelProps): React.JSX.Element;
43
+ export type SearchDialogProps = Omit<SearchPanelProps, 'onDone' | 'onClose' | 'className'> & {
44
+ open: boolean;
45
+ onOpenChange: (open: boolean) => void;
46
+ /** Bind ⌘K / Ctrl+K to open and close it. Leave off inside an app hosted by
47
+ * a shell that already owns the shortcut. */
48
+ hotkey?: boolean;
49
+ /** Read by screen readers as the dialog's name. */
50
+ title?: string;
51
+ };
52
+ declare function SearchDialog({ open, onOpenChange, hotkey, title, ...panel }: SearchDialogProps): React.JSX.Element;
53
+ declare function SearchTrigger({ className, children, hotkey, ...props }: React.ComponentProps<'button'> & {
54
+ hotkey?: boolean;
55
+ }): React.JSX.Element;
56
+ export { SearchDialog, SearchPanel, SearchTrigger };
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare function Statistic({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
4
+ declare function StatisticGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
4
5
  declare function StatisticLabel({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
5
6
  declare function StatisticValue({ className, size, ...props }: React.ComponentProps<'div'> & {
6
7
  size?: 'sm' | 'default' | 'lg';
@@ -16,4 +17,4 @@ declare const meterVariants: (props?: ({
16
17
  declare function Meter({ className, tone, value, ...props }: Omit<React.ComponentProps<'div'>, 'children'> & VariantProps<typeof meterVariants> & {
17
18
  value: number;
18
19
  }): React.JSX.Element;
19
- export { Statistic, StatisticLabel, StatisticValue, StatisticCaption, Trend, Meter, trendVariants };
20
+ export { Statistic, StatisticGroup, StatisticLabel, StatisticValue, StatisticCaption, Trend, Meter, trendVariants, };
@@ -15,11 +15,18 @@ declare function TableRow({ className, expanded, ...props }: React.ComponentProp
15
15
  * hairline underneath so the pair reads as one uninterrupted surface. */
16
16
  expanded?: boolean;
17
17
  }): React.JSX.Element;
18
- declare function TableGroupRow({ className, children, colSpan, cellClassName, ...props }: React.ComponentProps<'tr'> & {
18
+ declare function TableGroupRow({ className, children, colSpan, cellClassName, count, aside, open, onOpenChange, ...props }: React.ComponentProps<'tr'> & {
19
19
  colSpan?: number;
20
- /** Merged onto the inner cell — the band's own size, case and padding live
21
- * there, not on the row. */
20
+ /** Merged onto the inner cell — the band's own size and padding live there. */
22
21
  cellClassName?: string;
22
+ /** The group's size, shown quiet after its name — "3 items". */
23
+ count?: React.ReactNode;
24
+ /** At the right edge, under a right-aligned last column — a group total. */
25
+ aside?: React.ReactNode;
26
+ /** With onOpenChange: whether the group's rows are showing. */
27
+ open?: boolean;
28
+ /** Makes the group collapsible. */
29
+ onOpenChange?: (open: boolean) => void;
23
30
  }): React.JSX.Element;
24
31
  declare function TableExpandedRow({ className, ...props }: React.ComponentProps<'tr'>): React.JSX.Element;
25
32
  declare function TableHead({ className, ...props }: React.ComponentProps<'th'>): React.JSX.Element;
@@ -3,7 +3,7 @@ import { type VariantProps } from 'class-variance-authority';
3
3
  import { Toggle as TogglePrimitive } from 'radix-ui';
4
4
  declare const toggleVariants: (props?: ({
5
5
  variant?: "default" | "outline" | null | undefined;
6
- size?: "default" | "sm" | "lg" | null | undefined;
6
+ size?: "sm" | "default" | "lg" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): React.JSX.Element;
9
9
  export { Toggle, toggleVariants };