@praxical/ui 0.0.0-stage → 0.10.1

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 (86) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +23 -2
  3. package/dist/activity-calendar.d.ts +13 -0
  4. package/dist/activity-calendar.js +7 -0
  5. package/dist/activity-heatmap.d.ts +14 -0
  6. package/dist/activity-heatmap.js +13 -0
  7. package/dist/chart-data.d.ts +9 -0
  8. package/dist/chart-data.js +9 -0
  9. package/dist/charts.d.ts +56 -0
  10. package/dist/charts.js +424 -0
  11. package/dist/chunk-7RMPDKZV.js +541 -0
  12. package/dist/chunk-7RTW3X7C.js +142 -0
  13. package/dist/chunk-EBF2F3LN.js +1523 -0
  14. package/dist/chunk-FCYIZANU.js +385 -0
  15. package/dist/chunk-HMO4VQZN.js +58 -0
  16. package/dist/chunk-II677WPC.js +177 -0
  17. package/dist/chunk-KZHUBPY6.js +102 -0
  18. package/dist/chunk-OLGZOPLD.js +166 -0
  19. package/dist/chunk-PDSV773E.js +52 -0
  20. package/dist/chunk-Q4ARHP76.js +457 -0
  21. package/dist/chunk-U5W7O3QV.js +22 -0
  22. package/dist/chunk-V6MXR4P2.js +275 -0
  23. package/dist/chunk-VZZDLRM5.js +152 -0
  24. package/dist/chunk-WEM2UQPR.js +110 -0
  25. package/dist/chunk-XFNDEA5M.js +104 -0
  26. package/dist/chunk-YKFAA7GU.js +72 -0
  27. package/dist/code-value.d.ts +13 -0
  28. package/dist/code-value.js +10 -0
  29. package/dist/code.d.ts +36 -0
  30. package/dist/code.js +198 -0
  31. package/dist/collection.d.ts +21 -0
  32. package/dist/collection.js +48 -0
  33. package/dist/content.d.ts +42 -0
  34. package/dist/content.js +122 -0
  35. package/dist/display.d.ts +58 -0
  36. package/dist/display.js +27 -0
  37. package/dist/feedback.d.ts +34 -0
  38. package/dist/feedback.js +184 -0
  39. package/dist/file-tree.d.ts +17 -0
  40. package/dist/file-tree.js +11 -0
  41. package/dist/forms.d.ts +69 -0
  42. package/dist/forms.js +273 -0
  43. package/dist/git-graph.d.ts +8 -0
  44. package/dist/git-graph.js +15 -0
  45. package/dist/git-layout.d.ts +24 -0
  46. package/dist/git-layout.js +7 -0
  47. package/dist/image-viewer.d.ts +18 -0
  48. package/dist/image-viewer.js +11 -0
  49. package/dist/index.d.ts +363 -0
  50. package/dist/index.js +98 -0
  51. package/dist/inputs.d.ts +112 -0
  52. package/dist/inputs.js +938 -0
  53. package/dist/layout.d.ts +56 -0
  54. package/dist/layout.js +180 -0
  55. package/dist/map-frame.d.ts +37 -0
  56. package/dist/map-frame.js +13 -0
  57. package/dist/media.d.ts +40 -0
  58. package/dist/media.js +19 -0
  59. package/dist/network-layout.d.ts +94 -0
  60. package/dist/network-layout.js +19 -0
  61. package/dist/network.d.ts +111 -0
  62. package/dist/network.js +354 -0
  63. package/dist/overlays.d.ts +95 -0
  64. package/dist/overlays.js +25 -0
  65. package/dist/patterns.d.ts +117 -0
  66. package/dist/patterns.js +387 -0
  67. package/dist/power-layout.d.ts +91 -0
  68. package/dist/power-layout.js +13 -0
  69. package/dist/power.d.ts +91 -0
  70. package/dist/power.js +353 -0
  71. package/dist/signal-context.d.ts +11 -0
  72. package/dist/signal-context.js +15 -0
  73. package/dist/strings-es-419.d.ts +13 -0
  74. package/dist/strings-es-419.js +357 -0
  75. package/dist/strings-fr.d.ts +15 -0
  76. package/dist/strings-fr.js +359 -0
  77. package/dist/strings-ja.d.ts +16 -0
  78. package/dist/strings-ja.js +357 -0
  79. package/dist/strings-pt-BR.d.ts +13 -0
  80. package/dist/strings-pt-BR.js +357 -0
  81. package/dist/strings.d.ts +394 -0
  82. package/dist/strings.js +15 -0
  83. package/dist/styles.css +2 -0
  84. package/dist/tab-bar.d.ts +20 -0
  85. package/dist/tab-bar.js +114 -0
  86. package/package.json +154 -3
@@ -0,0 +1,363 @@
1
+ import { type ReactElement, type MouseEvent, type ComponentProps, type ReactNode, type CSSProperties, type HTMLAttributes } from "react";
2
+ import { Button as BaseButton } from "@base-ui/react/button";
3
+ import { Input as BaseInput } from "@base-ui/react/input";
4
+ import { Checkbox as BaseCheckbox } from "@base-ui/react/checkbox";
5
+ import { Switch as BaseSwitch } from "@base-ui/react/switch";
6
+ import { Tabs as BaseTabs } from "@base-ui/react/tabs";
7
+ import { Dialog as BaseDialog } from "@base-ui/react/dialog";
8
+ import { Collapsible } from "@base-ui/react/collapsible";
9
+ import { RadioGroup } from "@base-ui/react/radio-group";
10
+ import { type SignalStringsInput } from "./strings.js";
11
+ export type Appearance = "system" | "light" | "dark";
12
+ export type Palette = "sapphire" | "copper" | "iolite";
13
+ export type Density = "store" | "workspace" | "editor";
14
+ /** sans: Inter everywhere. mono: JetBrains Mono on the interface. chrome: mono in
15
+ * ShellChrome (titlebar, sidebar, status bar) and Inter in reading panes. */
16
+ export type Face = "sans" | "mono" | "chrome";
17
+ export interface SignalTheme {
18
+ appearance: Appearance;
19
+ palette: Palette;
20
+ density: Density;
21
+ corners: "core" | "soft";
22
+ shell: "hybrid" | "light";
23
+ /** Interface face: proportional Inter, or JetBrains Mono for terminal-first products. */
24
+ face: Face;
25
+ }
26
+ export { useSignalLocale, useSignalStrings } from "./signal-context.js";
27
+ export { defaultStrings, mergeStrings, localeMonthNames, localeDayNumber, localeFirstDayOfWeek, type SignalStrings, type SignalStringsInput, } from "./strings.js";
28
+ export declare function SignalProvider({ children, scope, appearance, palette, density, corners, shell, face, locale, strings, className, style, lang, ...props }: Partial<SignalTheme> & ComponentProps<"div"> & {
29
+ scope?: boolean;
30
+ /** BCP 47 tag used for `Intl` formatting and the rendered `lang`. */
31
+ locale?: string;
32
+ /** Partial override of the library’s strings, merged over the defaults. */
33
+ strings?: SignalStringsInput;
34
+ }): import("react").JSX.Element;
35
+ /** Theme application chrome independently from the reading surface. */
36
+ export declare function ShellChrome({ as: Element, className, children, ...props }: HTMLAttributes<HTMLElement> & {
37
+ as?: "div" | "header" | "footer" | "aside" | "nav";
38
+ }): import("react").JSX.Element;
39
+ export type ButtonProps = Omit<ComponentProps<typeof BaseButton>, "className"> & {
40
+ className?: string;
41
+ variant?: "primary" | "secondary" | "ghost" | "danger" | "destructive";
42
+ loading?: boolean;
43
+ iconOnly?: boolean;
44
+ /** Show a tooltip: `true` reuses the aria-label, a string sets its own text. */
45
+ tooltip?: boolean | string;
46
+ };
47
+ export declare const Button: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
48
+ export type InputProps = Omit<ComponentProps<typeof BaseInput>, "className"> & {
49
+ className?: string;
50
+ };
51
+ export declare const Input: import("react").ForwardRefExoticComponent<Omit<InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
52
+ export declare function Textarea({ className, autosize, minRows, maxRows, onInput, ...props }: ComponentProps<"textarea"> & {
53
+ /** Grow with the content between minRows and maxRows. */
54
+ autosize?: boolean;
55
+ minRows?: number;
56
+ maxRows?: number;
57
+ }): import("react").JSX.Element;
58
+ export declare function Field({ label, hint, error, id, children, }: {
59
+ label: string;
60
+ hint?: ReactNode;
61
+ error?: string;
62
+ id?: string;
63
+ children: ReactNode | ((props: {
64
+ id: string;
65
+ "aria-describedby"?: string;
66
+ "aria-invalid"?: true;
67
+ }) => ReactNode);
68
+ }): import("react").JSX.Element;
69
+ export interface SelectOption {
70
+ value: string;
71
+ label: string;
72
+ disabled?: boolean;
73
+ /** Secondary line under the label in the list. */
74
+ description?: ReactNode;
75
+ icon?: ReactNode;
76
+ /** Options with the same group render under one label, in first-seen order. */
77
+ group?: string;
78
+ }
79
+ export interface SelectProps {
80
+ label: string;
81
+ options: readonly SelectOption[];
82
+ value?: string | null;
83
+ defaultValue?: string;
84
+ onValueChange?: (value: string | null) => void;
85
+ name?: string;
86
+ disabled?: boolean;
87
+ required?: boolean;
88
+ placeholder?: string;
89
+ invalid?: boolean;
90
+ id?: string;
91
+ "aria-describedby"?: string;
92
+ }
93
+ export declare function Select({ label, options, placeholder, invalid, id, "aria-describedby": description, ...props }: SelectProps): import("react").JSX.Element;
94
+ export declare namespace Select {
95
+ var signalLabelled: boolean;
96
+ }
97
+ export type CheckboxProps = Omit<ComponentProps<typeof BaseCheckbox.Root>, "className" | "children"> & {
98
+ label: ReactNode;
99
+ description?: ReactNode;
100
+ /** Keep the label for assistive technology only, as in a table's selection column. */
101
+ hideLabel?: boolean;
102
+ };
103
+ export declare function Checkbox({ label, description, indeterminate, hideLabel, ...props }: CheckboxProps): import("react").JSX.Element;
104
+ export declare function Switch({ label, ...props }: Omit<ComponentProps<typeof BaseSwitch.Root>, "className" | "children"> & {
105
+ label: ReactNode;
106
+ }): import("react").JSX.Element;
107
+ export declare function SegmentedControl({ label, options, collapsible, ...props }: {
108
+ label: string;
109
+ options: readonly (SelectOption & {
110
+ icon?: ReactNode;
111
+ })[];
112
+ /** Hide text labels beside icons in narrow layouts. */
113
+ collapsible?: boolean;
114
+ } & Omit<ComponentProps<typeof RadioGroup>, "className" | "children">): import("react").JSX.Element;
115
+ export declare function Pane({ footer, footerActions, padding, title, description, actions, collapsible, defaultOpen, open, onOpenChange, children, className, ...props }: Omit<ComponentProps<"section">, "title"> & {
116
+ title: ReactNode;
117
+ footer?: ReactNode;
118
+ /** An action row at the end of the footer, like a dialog's actions. It
119
+ * stays end-aligned whether or not `footer` also holds text. */
120
+ footerActions?: ReactNode;
121
+ padding?: "normal" | "none";
122
+ description?: ReactNode;
123
+ actions?: ReactNode;
124
+ /** The header gains a disclosure that hides the body and footer. */
125
+ collapsible?: boolean;
126
+ defaultOpen?: boolean;
127
+ open?: boolean;
128
+ onOpenChange?: (open: boolean) => void;
129
+ }): import("react").JSX.Element;
130
+ export declare function ServiceRow({ icon, title, description, action, children, href, render, onClick, disabled, }: {
131
+ icon: ReactNode;
132
+ title: ReactNode;
133
+ description?: ReactNode;
134
+ /** For interactive rows, action/children must not contain nested links or controls. */
135
+ action?: ReactNode;
136
+ children?: ReactNode;
137
+ href?: string;
138
+ /** A link element to render the row as, such as a router's `<Link to="…" />`.
139
+ * The row supplies its class and content. */
140
+ render?: ReactElement<{
141
+ className?: string;
142
+ children?: ReactNode;
143
+ }>;
144
+ /** Receives the click, so a router can call `preventDefault()` and navigate. */
145
+ onClick?: (event: MouseEvent<HTMLElement>) => void;
146
+ disabled?: boolean;
147
+ }): import("react").JSX.Element;
148
+ export declare function ServiceList({ children, label, }: {
149
+ children: ReactNode;
150
+ label?: string;
151
+ }): import("react").JSX.Element;
152
+ export declare function Badge({ tone, children, ...props }: ComponentProps<"span"> & {
153
+ tone?: "neutral" | "success" | "warning" | "danger" | "accent";
154
+ }): import("react").JSX.Element;
155
+ export declare function Tabs({ label, items, ...props }: Omit<ComponentProps<typeof BaseTabs.Root>, "className" | "children"> & {
156
+ label: string;
157
+ items: {
158
+ value: string;
159
+ label: ReactNode;
160
+ content: ReactNode;
161
+ disabled?: boolean;
162
+ }[];
163
+ }): import("react").JSX.Element;
164
+ export declare function Dialog({ trigger, title, description, actions, children, ...props }: Omit<ComponentProps<typeof BaseDialog.Root>, "children"> & {
165
+ /** Omit for a controlled dialog driven by `open` and `onOpenChange`. */
166
+ trigger?: ReactNode;
167
+ title: string;
168
+ description: string;
169
+ /** Right-aligned action row at the bottom of the dialog. */
170
+ actions?: ReactNode;
171
+ children?: ReactNode;
172
+ }): import("react").JSX.Element;
173
+ /** A decision with one clear consequence. The confirming action names what
174
+ * happens; destructive confirmations use the filled danger button. */
175
+ export declare function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, destructive, pending, onConfirm, children, }: {
176
+ open: boolean;
177
+ onOpenChange: (open: boolean) => void;
178
+ title: string;
179
+ description: string;
180
+ confirmLabel: string;
181
+ cancelLabel?: string;
182
+ destructive?: boolean;
183
+ pending?: boolean;
184
+ onConfirm: () => void | Promise<void>;
185
+ children?: ReactNode;
186
+ }): import("react").JSX.Element;
187
+ interface MenuEntry {
188
+ id?: string;
189
+ label: string;
190
+ disabled?: boolean;
191
+ icon?: ReactNode;
192
+ shortcut?: string;
193
+ danger?: boolean;
194
+ separator?: false;
195
+ }
196
+ /** A navigation entry: rendered as a link, so middle-click, "open in new tab"
197
+ * and link semantics work. Pass `href`, or a router's link element as
198
+ * `render` (its props win), or both. */
199
+ export type MenuLinkItem = MenuEntry & {
200
+ href?: string;
201
+ render?: ReactElement;
202
+ target?: string;
203
+ rel?: string;
204
+ onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
205
+ } & ({
206
+ href: string;
207
+ } | {
208
+ render: ReactElement;
209
+ });
210
+ export type MenuItem = (MenuEntry & {
211
+ onClick: (event: MouseEvent<HTMLElement>) => void;
212
+ href?: undefined;
213
+ render?: undefined;
214
+ }) | MenuLinkItem | {
215
+ separator: true;
216
+ id?: string;
217
+ };
218
+ /** Actions behind one trigger. Items share the vocabulary of ContextMenu and
219
+ * CommandDialog: icon, shortcut, danger, separator. */
220
+ export declare function Menu({ label, items, trigger, iconOnly, align, }: {
221
+ label: string;
222
+ items: readonly MenuItem[];
223
+ /** Custom trigger content; defaults to the label with a chevron, or an ellipsis when iconOnly. */
224
+ trigger?: ReactNode;
225
+ iconOnly?: boolean;
226
+ align?: "start" | "end";
227
+ }): import("react").JSX.Element;
228
+ export declare function Tooltip({ children, content, }: {
229
+ children: React.ReactElement;
230
+ content: ReactNode;
231
+ }): import("react").JSX.Element;
232
+ export declare function Disclosure({ title, children, ...props }: Omit<ComponentProps<typeof Collapsible.Root>, "children"> & {
233
+ title: string;
234
+ children: ReactNode;
235
+ }): import("react").JSX.Element;
236
+ /** Explains an empty collection and offers the next action. `compact` fits a
237
+ * table cell or a narrow pane; the default centres in the space it owns. */
238
+ export declare function EmptyState({ title, children, action, icon, compact, className, ...props }: Omit<ComponentProps<"div">, "title"> & {
239
+ title: string;
240
+ children?: ReactNode;
241
+ action?: ReactNode;
242
+ icon?: ReactNode;
243
+ compact?: boolean;
244
+ }): import("react").JSX.Element;
245
+ export declare function Alert({ title, children, tone, }: {
246
+ title: string;
247
+ children?: ReactNode;
248
+ tone?: "neutral" | "accent" | "warning" | "danger" | "success";
249
+ }): import("react").JSX.Element;
250
+ export declare function Progress({ value, max, label, }: {
251
+ value: number | null;
252
+ max?: number;
253
+ label: string;
254
+ }): import("react").JSX.Element;
255
+ export interface Column<T> {
256
+ key: string;
257
+ header: string;
258
+ render: (row: T) => ReactNode;
259
+ /** Local sort key. With `onSortChange` the table only reports the request. */
260
+ sortValue?: (row: T) => string | number | null;
261
+ /** Sortable by the server: shows the control without sorting locally. */
262
+ sortable?: boolean;
263
+ align?: "left" | "center" | "right";
264
+ width?: string;
265
+ }
266
+ export interface TableSort {
267
+ key: string;
268
+ desc: boolean;
269
+ }
270
+ export declare function DataTable<T>({ caption, rows, columns, rowKey, empty, emptyAction, sort: controlledSort, onSortChange, selectable, selected, onSelectedChange, selectionLabel, rowActions, actionsHeader, onRowClick, loading, stickyHeader, hideCaption, }: {
271
+ caption: string;
272
+ rows: readonly T[];
273
+ columns: readonly Column<T>[];
274
+ rowKey: (row: T) => string;
275
+ empty?: string;
276
+ /** Rendered under the empty message: the next available action. */
277
+ emptyAction?: ReactNode;
278
+ /** Controlled sort. Pair with `onSortChange` for server ordering. */
279
+ sort?: TableSort | null;
280
+ onSortChange?: (sort: TableSort | null) => void;
281
+ selectable?: boolean;
282
+ selected?: readonly string[];
283
+ onSelectedChange?: (keys: string[]) => void;
284
+ selectionLabel?: (row: T) => string;
285
+ rowActions?: (row: T) => ReactNode;
286
+ actionsHeader?: string;
287
+ onRowClick?: (row: T) => void;
288
+ loading?: boolean;
289
+ stickyHeader?: boolean;
290
+ /** Keep the caption for assistive technology only, when a visible heading
291
+ * right above the table already says the same thing. */
292
+ hideCaption?: boolean;
293
+ }): import("react").JSX.Element;
294
+ export declare function Stat({ label, value, detail, trend, tone, }: {
295
+ label: string;
296
+ value: ReactNode;
297
+ detail?: string;
298
+ /** A Sparkline or a short delta, rendered beside the value. */
299
+ trend?: ReactNode;
300
+ /** Colour the value only when the number itself carries a state. */
301
+ tone?: "success" | "warning" | "danger" | "accent";
302
+ }): import("react").JSX.Element;
303
+ export declare function Toolbar({ label, children, }: {
304
+ label: string;
305
+ children: ReactNode;
306
+ }): import("react").JSX.Element;
307
+ export type SignalStyle = CSSProperties & Partial<Record<`--signal-${string}`, string | number>>;
308
+ export interface SearchFieldProps {
309
+ label: string;
310
+ value: string;
311
+ onValueChange: (value: string) => void;
312
+ onSearch: (query: string) => void;
313
+ suggestions?: readonly string[];
314
+ placeholder?: string;
315
+ status?: string;
316
+ error?: string;
317
+ disabled?: boolean;
318
+ shortcut?: boolean;
319
+ }
320
+ export declare function SearchField({ label, value, onValueChange, onSearch, suggestions, placeholder, status, error, disabled, shortcut, }: SearchFieldProps): import("react").JSX.Element;
321
+ export declare function AppearanceSwitch({ variant, value, onValueChange, }: {
322
+ variant?: "compact" | "cards";
323
+ value: Appearance;
324
+ onValueChange: (value: Appearance) => void;
325
+ }): import("react").JSX.Element;
326
+ export declare function DensitySwitch({ value, onValueChange, }: {
327
+ value: Density;
328
+ onValueChange: (value: Density) => void;
329
+ }): import("react").JSX.Element;
330
+ export declare function Popover({ label, trigger, children, }: {
331
+ label: string;
332
+ trigger: ReactNode;
333
+ children: ReactNode;
334
+ }): import("react").JSX.Element;
335
+ /** Interface face switch: Inter, or JetBrains Mono for terminal-first products. */
336
+ export declare function FaceSwitch({ value, onValueChange, }: {
337
+ value: Face;
338
+ onValueChange: (value: Face) => void;
339
+ }): import("react").JSX.Element;
340
+ /** Tiled composition: panes share hairline gutters and no outer margin, the way
341
+ * a tiling window manager lays out a screen. Children sit on a CSS grid. */
342
+ export declare function Tiles({ columns, rows, className, style, children, ...props }: ComponentProps<"div"> & {
343
+ columns?: string;
344
+ rows?: string;
345
+ }): import("react").JSX.Element;
346
+ /** A keyboard hint. The caller decides the platform command key. */
347
+ export declare function Kbd({ className, ...props }: ComponentProps<"kbd">): import("react").JSX.Element;
348
+ /** A status bar carries current state and real destinations along the bottom of a window. */
349
+ export declare function StatusBar({ label, className, children, ...props }: HTMLAttributes<HTMLElement> & {
350
+ label?: string;
351
+ }): import("react").JSX.Element;
352
+ export declare function StatusItem({ icon, tone, end, className, children, ...props }: ComponentProps<"span"> & {
353
+ icon?: ReactNode;
354
+ tone?: "accent" | "success" | "warning" | "danger";
355
+ end?: boolean;
356
+ }): import("react").JSX.Element;
357
+ /** A status bar entry that performs an action, such as "Ctrl K Search". */
358
+ export declare function StatusButton({ icon, tone, end, className, children, ...props }: ComponentProps<"button"> & {
359
+ icon?: ReactNode;
360
+ tone?: "accent" | "success" | "warning" | "danger";
361
+ end?: boolean;
362
+ }): import("react").JSX.Element;
363
+ export { CodeValue, type CodeValueProps } from "./code-value.js";
package/dist/index.js ADDED
@@ -0,0 +1,98 @@
1
+ 'use client';
2
+ "use client";
3
+ import {
4
+ Alert,
5
+ AppearanceSwitch,
6
+ Badge,
7
+ Button,
8
+ Checkbox,
9
+ CodeValue,
10
+ ConfirmDialog,
11
+ DataTable,
12
+ DensitySwitch,
13
+ Dialog,
14
+ Disclosure,
15
+ EmptyState,
16
+ FaceSwitch,
17
+ Field,
18
+ Input,
19
+ Kbd,
20
+ Menu,
21
+ Pane,
22
+ Popover,
23
+ Progress,
24
+ SearchField,
25
+ SegmentedControl,
26
+ Select,
27
+ ServiceList,
28
+ ServiceRow,
29
+ ShellChrome,
30
+ SignalProvider,
31
+ Stat,
32
+ StatusBar,
33
+ StatusButton,
34
+ StatusItem,
35
+ Switch,
36
+ Tabs,
37
+ Textarea,
38
+ Tiles,
39
+ Toolbar,
40
+ Tooltip
41
+ } from "./chunk-EBF2F3LN.js";
42
+ import {
43
+ useSignalLocale,
44
+ useSignalStrings
45
+ } from "./chunk-U5W7O3QV.js";
46
+ import {
47
+ defaultStrings,
48
+ localeDayNumber,
49
+ localeFirstDayOfWeek,
50
+ localeMonthNames,
51
+ mergeStrings
52
+ } from "./chunk-FCYIZANU.js";
53
+ export {
54
+ Alert,
55
+ AppearanceSwitch,
56
+ Badge,
57
+ Button,
58
+ Checkbox,
59
+ CodeValue,
60
+ ConfirmDialog,
61
+ DataTable,
62
+ DensitySwitch,
63
+ Dialog,
64
+ Disclosure,
65
+ EmptyState,
66
+ FaceSwitch,
67
+ Field,
68
+ Input,
69
+ Kbd,
70
+ Menu,
71
+ Pane,
72
+ Popover,
73
+ Progress,
74
+ SearchField,
75
+ SegmentedControl,
76
+ Select,
77
+ ServiceList,
78
+ ServiceRow,
79
+ ShellChrome,
80
+ SignalProvider,
81
+ Stat,
82
+ StatusBar,
83
+ StatusButton,
84
+ StatusItem,
85
+ Switch,
86
+ Tabs,
87
+ Textarea,
88
+ Tiles,
89
+ Toolbar,
90
+ Tooltip,
91
+ defaultStrings,
92
+ localeDayNumber,
93
+ localeFirstDayOfWeek,
94
+ localeMonthNames,
95
+ mergeStrings,
96
+ useSignalLocale,
97
+ useSignalStrings
98
+ };
@@ -0,0 +1,112 @@
1
+ import { type ReactNode } from "react";
2
+ import { type SelectOption } from "./index.js";
3
+ export interface SliderProps {
4
+ label: string;
5
+ value: number;
6
+ onValueChange: (value: number) => void;
7
+ min?: number;
8
+ max?: number;
9
+ step?: number;
10
+ disabled?: boolean;
11
+ formatValue?: (value: number) => string;
12
+ }
13
+ export declare function Slider({ label, value, onValueChange, min, max, step, disabled, formatValue, }: SliderProps): import("react").JSX.Element;
14
+ export declare function RangeSlider({ label, value, onValueChange, min, max, step, disabled, }: Omit<SliderProps, "value" | "onValueChange" | "formatValue"> & {
15
+ value: readonly [number, number];
16
+ onValueChange: (value: [number, number]) => void;
17
+ }): import("react").JSX.Element;
18
+ export declare function NumericStepper({ label, value, onValueChange, min, max, step, disabled, name, format, }: {
19
+ label: string;
20
+ value: number | null;
21
+ onValueChange: (value: number | null) => void;
22
+ min?: number;
23
+ max?: number;
24
+ step?: number;
25
+ disabled?: boolean;
26
+ name?: string;
27
+ format?: Intl.NumberFormatOptions;
28
+ }): import("react").JSX.Element;
29
+ export declare function Combobox({ label, options, value, onValueChange, placeholder, disabled, name, }: {
30
+ label: string;
31
+ options: readonly SelectOption[];
32
+ value: string | null;
33
+ onValueChange: (value: string | null) => void;
34
+ placeholder?: string;
35
+ disabled?: boolean;
36
+ name?: string;
37
+ }): import("react").JSX.Element;
38
+ export declare function ToggleGroup({ label, options, value, onValueChange, multiple, }: {
39
+ label: string;
40
+ options: readonly {
41
+ value: string;
42
+ label: string;
43
+ icon?: ReactNode;
44
+ disabled?: boolean;
45
+ }[];
46
+ value: readonly string[];
47
+ onValueChange: (value: string[]) => void;
48
+ multiple?: boolean;
49
+ }): import("react").JSX.Element;
50
+ export declare function Stepper({ steps, current, onStepChange, label, }: {
51
+ steps: readonly {
52
+ id: string;
53
+ label: string;
54
+ description?: string;
55
+ disabled?: boolean;
56
+ }[];
57
+ current: string;
58
+ onStepChange?: (id: string) => void;
59
+ label?: string;
60
+ }): import("react").JSX.Element;
61
+ /** Civil date conversion deliberately avoids UTC conversion and timezone drift. */
62
+ export declare function parseCalendarDate(value?: string): Date | undefined;
63
+ export declare const formatCalendarDate: (date: Date) => string;
64
+ interface CalendarFieldProps {
65
+ label: string;
66
+ disabled?: boolean;
67
+ min?: string;
68
+ max?: string;
69
+ name?: string;
70
+ }
71
+ export declare function DatePicker({ label, value, onValueChange, disabled, min, max, name, }: CalendarFieldProps & {
72
+ value?: string;
73
+ onValueChange: (value: string | undefined) => void;
74
+ }): import("react").JSX.Element;
75
+ export interface CalendarRange {
76
+ from?: string;
77
+ to?: string;
78
+ }
79
+ export declare function DateRangePicker({ label, value, onValueChange, disabled, min, max, name, }: CalendarFieldProps & {
80
+ value: CalendarRange;
81
+ onValueChange: (value: CalendarRange) => void;
82
+ }): import("react").JSX.Element;
83
+ export declare function DateTimePicker({ label, value, onValueChange, disabled, min, max, name, }: CalendarFieldProps & {
84
+ value: {
85
+ date?: string;
86
+ time?: string;
87
+ };
88
+ onValueChange: (value: {
89
+ date?: string;
90
+ time?: string;
91
+ }) => void;
92
+ }): import("react").JSX.Element;
93
+ export declare function Dropzone({ label, accept, maxBytes, maxFiles, onFiles, disabled, }: {
94
+ label?: string;
95
+ accept?: string;
96
+ maxBytes?: number;
97
+ maxFiles?: number;
98
+ onFiles: (files: File[]) => void;
99
+ disabled?: boolean;
100
+ }): import("react").JSX.Element;
101
+ /** Authentication, verification and expiry are supplied by the application. */
102
+ export declare function TOTPField({ label, value, onValueChange, onComplete, length, disabled, error, name, }: {
103
+ label?: string;
104
+ value: string;
105
+ onValueChange: (value: string) => void;
106
+ onComplete?: (value: string) => void;
107
+ length?: 6 | 8;
108
+ disabled?: boolean;
109
+ error?: string;
110
+ name?: string;
111
+ }): import("react").JSX.Element;
112
+ export {};