@staqforce.studio/staqui 0.0.0-stage → 0.1.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.
@@ -0,0 +1,666 @@
1
+ import * as lucide_react from 'lucide-react';
2
+ import { LucideIcon } from 'lucide-react';
3
+ import * as react from 'react';
4
+ import { HTMLAttributes, CSSProperties, ReactNode, ImgHTMLAttributes, OlHTMLAttributes, ButtonHTMLAttributes, AnchorHTMLAttributes, InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes, ReactElement } from 'react';
5
+ import { Matcher, DayPicker, DateRange } from 'react-day-picker';
6
+ export { DateRange, Matcher } from 'react-day-picker';
7
+
8
+ type Tone = "neutral" | "success" | "warning" | "critical" | "info";
9
+ type Size = "small" | "medium" | "large";
10
+ type Space = "0" | "1" | "2" | "3" | "4" | "6" | "8";
11
+ declare const cx: (...values: (string | undefined | false)[]) => string;
12
+ declare function useControllable<T>(value: T | undefined, defaultValue: T, onChange?: (value: T) => void, controlled?: boolean): readonly [T, (next: T) => void];
13
+
14
+ type Density = "compact" | "comfortable";
15
+ interface StaqProviderProps extends HTMLAttributes<HTMLDivElement> {
16
+ theme?: "light" | "dark" | "staqwish";
17
+ density?: Density;
18
+ }
19
+ declare const StaqContext: react.Context<{
20
+ theme: "light" | "dark" | "staqwish";
21
+ density: Density;
22
+ }>;
23
+ declare const useStaq: () => {
24
+ theme: "light" | "dark" | "staqwish";
25
+ density: Density;
26
+ };
27
+ declare function StaqProvider({ theme, density, className, ...props }: StaqProviderProps): react.JSX.Element;
28
+ declare const icons: {
29
+ check: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
30
+ close: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
31
+ search: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
32
+ plus: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
33
+ chevronDown: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
34
+ chevronLeft: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
35
+ chevronRight: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
36
+ info: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
37
+ warning: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
38
+ settings: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
39
+ copy: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
40
+ arrowUpRight: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
41
+ package: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
42
+ upload: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
43
+ moon: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
44
+ sun: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
45
+ sliders: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
46
+ code: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
47
+ layers: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
48
+ complete: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
49
+ };
50
+ interface IconProps {
51
+ name?: keyof typeof icons;
52
+ source?: LucideIcon;
53
+ size?: number;
54
+ label?: string;
55
+ className?: string;
56
+ }
57
+ declare function Icon({ name, source, size, label, className, }: IconProps): react.JSX.Element;
58
+ interface BoxProps extends HTMLAttributes<HTMLDivElement> {
59
+ padding?: Space;
60
+ background?: "surface" | "subtle" | "transparent";
61
+ border?: boolean;
62
+ radius?: "small" | "medium" | "large";
63
+ }
64
+ declare function Box({ padding, background, border, radius, className, style, ...props }: BoxProps): react.JSX.Element;
65
+ interface StackProps extends HTMLAttributes<HTMLDivElement> {
66
+ direction?: "row" | "column";
67
+ gap?: Space;
68
+ align?: CSSProperties["alignItems"];
69
+ justify?: CSSProperties["justifyContent"];
70
+ wrap?: boolean;
71
+ }
72
+ declare function Stack({ direction, gap, align, justify, wrap, className, style, ...props }: StackProps): react.JSX.Element;
73
+ interface GridProps extends HTMLAttributes<HTMLDivElement> {
74
+ columns?: number;
75
+ minColumnWidth?: string;
76
+ gap?: Space;
77
+ }
78
+ declare function Grid({ columns, minColumnWidth, gap, style, className, ...props }: GridProps): react.JSX.Element;
79
+ declare function QueryContainer({ name, style, ...props }: HTMLAttributes<HTMLDivElement> & {
80
+ name?: string;
81
+ }): react.JSX.Element;
82
+ declare function Divider({ vertical, className, ...props }: HTMLAttributes<HTMLHRElement> & {
83
+ vertical?: boolean;
84
+ }): react.JSX.Element;
85
+ interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
86
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
87
+ size?: Size;
88
+ }
89
+ declare function Heading({ level, size, className, ...props }: HeadingProps): react.DetailedReactHTMLElement<{
90
+ defaultChecked?: boolean | undefined;
91
+ defaultValue?: string | number | readonly string[] | undefined;
92
+ suppressContentEditableWarning?: boolean | undefined;
93
+ suppressHydrationWarning?: boolean | undefined;
94
+ accessKey?: string | undefined;
95
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
96
+ autoFocus?: boolean | undefined;
97
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
98
+ contextMenu?: string | undefined;
99
+ dir?: string | undefined;
100
+ draggable?: (boolean | "true" | "false") | undefined;
101
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
102
+ hidden?: boolean | undefined;
103
+ id?: string | undefined;
104
+ lang?: string | undefined;
105
+ nonce?: string | undefined;
106
+ slot?: string | undefined;
107
+ spellCheck?: (boolean | "true" | "false") | undefined;
108
+ style?: CSSProperties | undefined;
109
+ tabIndex?: number | undefined;
110
+ title?: string | undefined;
111
+ translate?: "yes" | "no" | undefined;
112
+ radioGroup?: string | undefined;
113
+ role?: react.AriaRole | undefined;
114
+ about?: string | undefined;
115
+ content?: string | undefined;
116
+ datatype?: string | undefined;
117
+ inlist?: any;
118
+ prefix?: string | undefined;
119
+ property?: string | undefined;
120
+ rel?: string | undefined;
121
+ resource?: string | undefined;
122
+ rev?: string | undefined;
123
+ typeof?: string | undefined;
124
+ vocab?: string | undefined;
125
+ autoCorrect?: string | undefined;
126
+ autoSave?: string | undefined;
127
+ color?: string | undefined;
128
+ itemProp?: string | undefined;
129
+ itemScope?: boolean | undefined;
130
+ itemType?: string | undefined;
131
+ itemID?: string | undefined;
132
+ itemRef?: string | undefined;
133
+ results?: number | undefined;
134
+ security?: string | undefined;
135
+ unselectable?: "on" | "off" | undefined;
136
+ popover?: "" | "auto" | "manual" | "hint" | undefined;
137
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
138
+ popoverTarget?: string | undefined;
139
+ inert?: boolean | undefined;
140
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
141
+ is?: string | undefined;
142
+ exportparts?: string | undefined;
143
+ part?: string | undefined;
144
+ "aria-activedescendant"?: string | undefined;
145
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
146
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
147
+ "aria-braillelabel"?: string | undefined;
148
+ "aria-brailleroledescription"?: string | undefined;
149
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
150
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
151
+ "aria-colcount"?: number | undefined;
152
+ "aria-colindex"?: number | undefined;
153
+ "aria-colindextext"?: string | undefined;
154
+ "aria-colspan"?: number | undefined;
155
+ "aria-controls"?: string | undefined;
156
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
157
+ "aria-describedby"?: string | undefined;
158
+ "aria-description"?: string | undefined;
159
+ "aria-details"?: string | undefined;
160
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
161
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
162
+ "aria-errormessage"?: string | undefined;
163
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
164
+ "aria-flowto"?: string | undefined;
165
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
166
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
167
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
168
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
169
+ "aria-keyshortcuts"?: string | undefined;
170
+ "aria-label"?: string | undefined;
171
+ "aria-labelledby"?: string | undefined;
172
+ "aria-level"?: number | undefined;
173
+ "aria-live"?: "off" | "assertive" | "polite" | undefined;
174
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
175
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
176
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
177
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
178
+ "aria-owns"?: string | undefined;
179
+ "aria-placeholder"?: string | undefined;
180
+ "aria-posinset"?: number | undefined;
181
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
182
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
183
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
184
+ "aria-required"?: (boolean | "true" | "false") | undefined;
185
+ "aria-roledescription"?: string | undefined;
186
+ "aria-rowcount"?: number | undefined;
187
+ "aria-rowindex"?: number | undefined;
188
+ "aria-rowindextext"?: string | undefined;
189
+ "aria-rowspan"?: number | undefined;
190
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
191
+ "aria-setsize"?: number | undefined;
192
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
193
+ "aria-valuemax"?: number | undefined;
194
+ "aria-valuemin"?: number | undefined;
195
+ "aria-valuenow"?: number | undefined;
196
+ "aria-valuetext"?: string | undefined;
197
+ children?: ReactNode | undefined;
198
+ dangerouslySetInnerHTML?: {
199
+ __html: string | TrustedHTML;
200
+ } | undefined;
201
+ onCopy?: react.ClipboardEventHandler<HTMLHeadingElement> | undefined;
202
+ onCopyCapture?: react.ClipboardEventHandler<HTMLHeadingElement> | undefined;
203
+ onCut?: react.ClipboardEventHandler<HTMLHeadingElement> | undefined;
204
+ onCutCapture?: react.ClipboardEventHandler<HTMLHeadingElement> | undefined;
205
+ onPaste?: react.ClipboardEventHandler<HTMLHeadingElement> | undefined;
206
+ onPasteCapture?: react.ClipboardEventHandler<HTMLHeadingElement> | undefined;
207
+ onCompositionEnd?: react.CompositionEventHandler<HTMLHeadingElement> | undefined;
208
+ onCompositionEndCapture?: react.CompositionEventHandler<HTMLHeadingElement> | undefined;
209
+ onCompositionStart?: react.CompositionEventHandler<HTMLHeadingElement> | undefined;
210
+ onCompositionStartCapture?: react.CompositionEventHandler<HTMLHeadingElement> | undefined;
211
+ onCompositionUpdate?: react.CompositionEventHandler<HTMLHeadingElement> | undefined;
212
+ onCompositionUpdateCapture?: react.CompositionEventHandler<HTMLHeadingElement> | undefined;
213
+ onFocus?: react.FocusEventHandler<HTMLHeadingElement> | undefined;
214
+ onFocusCapture?: react.FocusEventHandler<HTMLHeadingElement> | undefined;
215
+ onBlur?: react.FocusEventHandler<HTMLHeadingElement> | undefined;
216
+ onBlurCapture?: react.FocusEventHandler<HTMLHeadingElement> | undefined;
217
+ onChange?: react.ChangeEventHandler<HTMLHeadingElement, Element> | undefined;
218
+ onChangeCapture?: react.ChangeEventHandler<HTMLHeadingElement, Element> | undefined;
219
+ onBeforeInput?: react.InputEventHandler<HTMLHeadingElement> | undefined;
220
+ onBeforeInputCapture?: react.InputEventHandler<HTMLHeadingElement> | undefined;
221
+ onInput?: react.InputEventHandler<HTMLHeadingElement> | undefined;
222
+ onInputCapture?: react.InputEventHandler<HTMLHeadingElement> | undefined;
223
+ onReset?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
224
+ onResetCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
225
+ onSubmit?: react.SubmitEventHandler<HTMLHeadingElement> | undefined;
226
+ onSubmitCapture?: react.SubmitEventHandler<HTMLHeadingElement> | undefined;
227
+ onInvalid?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
228
+ onInvalidCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
229
+ onLoad?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
230
+ onLoadCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
231
+ onError?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
232
+ onErrorCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
233
+ onKeyDown?: react.KeyboardEventHandler<HTMLHeadingElement> | undefined;
234
+ onKeyDownCapture?: react.KeyboardEventHandler<HTMLHeadingElement> | undefined;
235
+ onKeyPress?: react.KeyboardEventHandler<HTMLHeadingElement> | undefined;
236
+ onKeyPressCapture?: react.KeyboardEventHandler<HTMLHeadingElement> | undefined;
237
+ onKeyUp?: react.KeyboardEventHandler<HTMLHeadingElement> | undefined;
238
+ onKeyUpCapture?: react.KeyboardEventHandler<HTMLHeadingElement> | undefined;
239
+ onAbort?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
240
+ onAbortCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
241
+ onCanPlay?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
242
+ onCanPlayCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
243
+ onCanPlayThrough?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
244
+ onCanPlayThroughCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
245
+ onDurationChange?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
246
+ onDurationChangeCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
247
+ onEmptied?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
248
+ onEmptiedCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
249
+ onEncrypted?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
250
+ onEncryptedCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
251
+ onEnded?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
252
+ onEndedCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
253
+ onLoadedData?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
254
+ onLoadedDataCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
255
+ onLoadedMetadata?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
256
+ onLoadedMetadataCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
257
+ onLoadStart?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
258
+ onLoadStartCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
259
+ onPause?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
260
+ onPauseCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
261
+ onPlay?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
262
+ onPlayCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
263
+ onPlaying?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
264
+ onPlayingCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
265
+ onProgress?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
266
+ onProgressCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
267
+ onRateChange?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
268
+ onRateChangeCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
269
+ onSeeked?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
270
+ onSeekedCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
271
+ onSeeking?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
272
+ onSeekingCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
273
+ onStalled?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
274
+ onStalledCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
275
+ onSuspend?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
276
+ onSuspendCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
277
+ onTimeUpdate?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
278
+ onTimeUpdateCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
279
+ onVolumeChange?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
280
+ onVolumeChangeCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
281
+ onWaiting?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
282
+ onWaitingCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
283
+ onAuxClick?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
284
+ onAuxClickCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
285
+ onClick?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
286
+ onClickCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
287
+ onContextMenu?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
288
+ onContextMenuCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
289
+ onDoubleClick?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
290
+ onDoubleClickCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
291
+ onDrag?: react.DragEventHandler<HTMLHeadingElement> | undefined;
292
+ onDragCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
293
+ onDragEnd?: react.DragEventHandler<HTMLHeadingElement> | undefined;
294
+ onDragEndCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
295
+ onDragEnter?: react.DragEventHandler<HTMLHeadingElement> | undefined;
296
+ onDragEnterCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
297
+ onDragExit?: react.DragEventHandler<HTMLHeadingElement> | undefined;
298
+ onDragExitCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
299
+ onDragLeave?: react.DragEventHandler<HTMLHeadingElement> | undefined;
300
+ onDragLeaveCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
301
+ onDragOver?: react.DragEventHandler<HTMLHeadingElement> | undefined;
302
+ onDragOverCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
303
+ onDragStart?: react.DragEventHandler<HTMLHeadingElement> | undefined;
304
+ onDragStartCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
305
+ onDrop?: react.DragEventHandler<HTMLHeadingElement> | undefined;
306
+ onDropCapture?: react.DragEventHandler<HTMLHeadingElement> | undefined;
307
+ onMouseDown?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
308
+ onMouseDownCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
309
+ onMouseEnter?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
310
+ onMouseLeave?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
311
+ onMouseMove?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
312
+ onMouseMoveCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
313
+ onMouseOut?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
314
+ onMouseOutCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
315
+ onMouseOver?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
316
+ onMouseOverCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
317
+ onMouseUp?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
318
+ onMouseUpCapture?: react.MouseEventHandler<HTMLHeadingElement> | undefined;
319
+ onSelect?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
320
+ onSelectCapture?: react.ReactEventHandler<HTMLHeadingElement> | undefined;
321
+ onTouchCancel?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
322
+ onTouchCancelCapture?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
323
+ onTouchEnd?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
324
+ onTouchEndCapture?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
325
+ onTouchMove?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
326
+ onTouchMoveCapture?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
327
+ onTouchStart?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
328
+ onTouchStartCapture?: react.TouchEventHandler<HTMLHeadingElement> | undefined;
329
+ onPointerDown?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
330
+ onPointerDownCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
331
+ onPointerMove?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
332
+ onPointerMoveCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
333
+ onPointerUp?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
334
+ onPointerUpCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
335
+ onPointerCancel?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
336
+ onPointerCancelCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
337
+ onPointerEnter?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
338
+ onPointerLeave?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
339
+ onPointerOver?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
340
+ onPointerOverCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
341
+ onPointerOut?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
342
+ onPointerOutCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
343
+ onGotPointerCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
344
+ onGotPointerCaptureCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
345
+ onLostPointerCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
346
+ onLostPointerCaptureCapture?: react.PointerEventHandler<HTMLHeadingElement> | undefined;
347
+ onScroll?: react.UIEventHandler<HTMLHeadingElement> | undefined;
348
+ onScrollCapture?: react.UIEventHandler<HTMLHeadingElement> | undefined;
349
+ onScrollEnd?: react.UIEventHandler<HTMLHeadingElement> | undefined;
350
+ onScrollEndCapture?: react.UIEventHandler<HTMLHeadingElement> | undefined;
351
+ onWheel?: react.WheelEventHandler<HTMLHeadingElement> | undefined;
352
+ onWheelCapture?: react.WheelEventHandler<HTMLHeadingElement> | undefined;
353
+ onAnimationStart?: react.AnimationEventHandler<HTMLHeadingElement> | undefined;
354
+ onAnimationStartCapture?: react.AnimationEventHandler<HTMLHeadingElement> | undefined;
355
+ onAnimationEnd?: react.AnimationEventHandler<HTMLHeadingElement> | undefined;
356
+ onAnimationEndCapture?: react.AnimationEventHandler<HTMLHeadingElement> | undefined;
357
+ onAnimationIteration?: react.AnimationEventHandler<HTMLHeadingElement> | undefined;
358
+ onAnimationIterationCapture?: react.AnimationEventHandler<HTMLHeadingElement> | undefined;
359
+ onToggle?: react.ToggleEventHandler<HTMLHeadingElement> | undefined;
360
+ onBeforeToggle?: react.ToggleEventHandler<HTMLHeadingElement> | undefined;
361
+ onTransitionCancel?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
362
+ onTransitionCancelCapture?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
363
+ onTransitionEnd?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
364
+ onTransitionEndCapture?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
365
+ onTransitionRun?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
366
+ onTransitionRunCapture?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
367
+ onTransitionStart?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
368
+ onTransitionStartCapture?: react.TransitionEventHandler<HTMLHeadingElement> | undefined;
369
+ className: string;
370
+ }, HTMLElement>;
371
+ interface TextProps extends HTMLAttributes<HTMLSpanElement> {
372
+ tone?: Tone | "muted";
373
+ weight?: "regular" | "medium" | "bold";
374
+ size?: Size;
375
+ }
376
+ declare function Text({ tone, weight, size, className, ...props }: TextProps): react.JSX.Element;
377
+ declare function Paragraph({ tone, className, ...props }: HTMLAttributes<HTMLParagraphElement> & {
378
+ tone?: Tone | "muted";
379
+ }): react.JSX.Element;
380
+ interface NumberProps extends Omit<TextProps, "children"> {
381
+ value: number;
382
+ locale?: string;
383
+ format?: Intl.NumberFormatOptions;
384
+ }
385
+ declare function Number({ value, locale, format, className, ...props }: NumberProps): react.JSX.Element;
386
+ declare function OrderedList(props: OlHTMLAttributes<HTMLOListElement>): react.JSX.Element;
387
+ declare function UnorderedList(props: HTMLAttributes<HTMLUListElement>): react.JSX.Element;
388
+ declare function ListItem(props: HTMLAttributes<HTMLLIElement>): react.JSX.Element;
389
+ interface SectionProps extends HTMLAttributes<HTMLElement> {
390
+ heading?: string;
391
+ description?: ReactNode;
392
+ action?: ReactNode;
393
+ }
394
+ declare function Section({ heading, description, action, children, className, ...props }: SectionProps): react.JSX.Element;
395
+ interface PageProps extends SectionProps {
396
+ aside?: ReactNode;
397
+ breadcrumbs?: ReactNode;
398
+ width?: "default" | "wide" | "narrow";
399
+ }
400
+ declare function Page({ heading, description, action, aside, breadcrumbs, width, className, children, ...props }: PageProps): react.JSX.Element;
401
+ interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
402
+ alt: string;
403
+ fit?: CSSProperties["objectFit"];
404
+ aspectRatio?: string;
405
+ }
406
+ declare function Image({ alt, fit, aspectRatio, style, className, ...props }: ImageProps): react.JSX.Element;
407
+ declare function Thumbnail({ size, className, ...props }: ImageProps & {
408
+ size?: Size;
409
+ }): react.JSX.Element;
410
+ interface AvatarProps {
411
+ name: string;
412
+ src?: string;
413
+ size?: Size;
414
+ className?: string;
415
+ }
416
+ declare function Avatar({ name, src, size, className }: AvatarProps): react.JSX.Element;
417
+
418
+ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
419
+ variant?: "primary" | "secondary" | "tertiary";
420
+ tone?: "neutral" | "critical";
421
+ size?: Size;
422
+ loading?: boolean;
423
+ icon?: ReactNode;
424
+ fullWidth?: boolean;
425
+ asChild?: boolean;
426
+ }
427
+ declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
428
+ declare function ButtonGroup({ label, className, ...props }: HTMLAttributes<HTMLDivElement> & {
429
+ label: string;
430
+ }): react.JSX.Element;
431
+ declare const Clickable: react.ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
432
+ interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
433
+ tone?: "neutral" | "critical";
434
+ variant?: "text" | "button";
435
+ }
436
+ declare const Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
437
+ interface ChipProps extends HTMLAttributes<HTMLSpanElement> {
438
+ onRemove?: () => void;
439
+ removeLabel?: string;
440
+ tone?: Tone;
441
+ }
442
+ declare function Chip({ onRemove, removeLabel, tone, className, children, ...props }: ChipProps): react.JSX.Element;
443
+ interface ClickableChipProps extends ButtonHTMLAttributes<HTMLButtonElement> {
444
+ selected?: boolean;
445
+ onRemove?: () => void;
446
+ removeLabel?: string;
447
+ }
448
+ declare function ClickableChip({ selected, onRemove, removeLabel, className, children, ...props }: ClickableChipProps): react.JSX.Element;
449
+ interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
450
+ tone?: Tone;
451
+ size?: "small" | "medium";
452
+ icon?: ReactNode;
453
+ }
454
+ declare function Badge({ tone, size, icon, className, children, ...props }: BadgeProps): react.JSX.Element;
455
+ interface BannerProps extends HTMLAttributes<HTMLDivElement> {
456
+ title: string;
457
+ tone?: Tone;
458
+ dismissible?: boolean;
459
+ onDismiss?: () => void;
460
+ action?: ReactNode;
461
+ }
462
+ declare function Banner({ title, tone, dismissible, onDismiss, action, className, children, ...props }: BannerProps): react.JSX.Element | null;
463
+ declare function EmptyState({ title, children, action, graphic, }: {
464
+ title: string;
465
+ children?: ReactNode;
466
+ action?: ReactNode;
467
+ graphic?: ReactNode;
468
+ }): react.JSX.Element;
469
+ interface ProgressProps {
470
+ value?: number;
471
+ max?: number;
472
+ label: string;
473
+ showValue?: boolean;
474
+ }
475
+ declare function Progress({ value, max, label, showValue, }: ProgressProps): react.JSX.Element;
476
+ declare function Spinner({ label, size, }: {
477
+ label?: string;
478
+ size?: Size;
479
+ }): react.JSX.Element;
480
+
481
+ interface FieldBase {
482
+ label: string;
483
+ description?: string;
484
+ error?: string;
485
+ hideLabel?: boolean;
486
+ }
487
+ interface TextFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix">, FieldBase {
488
+ prefix?: ReactNode;
489
+ suffix?: ReactNode;
490
+ onValueChange?: (value: string) => void;
491
+ }
492
+ declare const TextField: react.ForwardRefExoticComponent<TextFieldProps & react.RefAttributes<HTMLInputElement>>;
493
+ declare function EmailField(props: TextFieldProps): react.JSX.Element;
494
+ declare function URLField(props: TextFieldProps): react.JSX.Element;
495
+ declare function SearchField(props: TextFieldProps): react.JSX.Element;
496
+ declare function NumberField(props: TextFieldProps): react.JSX.Element;
497
+ interface MoneyFieldProps extends TextFieldProps {
498
+ currency?: string;
499
+ locale?: string;
500
+ }
501
+ declare function MoneyField({ currency, locale, ...props }: MoneyFieldProps): react.JSX.Element;
502
+ declare function PasswordField(props: TextFieldProps): react.JSX.Element;
503
+ declare function DateField(props: TextFieldProps): react.JSX.Element;
504
+ interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, FieldBase {
505
+ onValueChange?: (value: string) => void;
506
+ }
507
+ declare const TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
508
+ interface SelectOption {
509
+ label: string;
510
+ value: string;
511
+ disabled?: boolean;
512
+ group?: string;
513
+ }
514
+ interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement>, FieldBase {
515
+ options: SelectOption[];
516
+ placeholder?: string;
517
+ onValueChange?: (value: string) => void;
518
+ }
519
+ declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLSelectElement>>;
520
+ interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size">, FieldBase {
521
+ indeterminate?: boolean;
522
+ onCheckedChange?: (checked: boolean) => void;
523
+ }
524
+ declare function Checkbox({ label, description, error, hideLabel, id: givenId, indeterminate, onCheckedChange, onChange, className, ...props }: CheckboxProps): react.JSX.Element;
525
+ declare function Switch(props: Omit<CheckboxProps, "indeterminate">): react.JSX.Element;
526
+ interface ChoiceListProps extends FieldBase {
527
+ options: SelectOption[];
528
+ value?: string[];
529
+ defaultValue?: string[];
530
+ onValueChange?: (value: string[]) => void;
531
+ multiple?: boolean;
532
+ disabled?: boolean;
533
+ name?: string;
534
+ required?: boolean;
535
+ }
536
+ declare function ChoiceList({ label, options, value, defaultValue, onValueChange, multiple, disabled, name, required, description, error, hideLabel, }: ChoiceListProps): react.JSX.Element;
537
+ interface ColorPickerProps {
538
+ label?: string;
539
+ value?: string;
540
+ defaultValue?: string;
541
+ onValueChange?: (value: string) => void;
542
+ disabled?: boolean;
543
+ name?: string;
544
+ }
545
+ declare function ColorPicker({ label, value, defaultValue, onValueChange, ...props }: ColorPickerProps): react.JSX.Element;
546
+ declare function ColorField({ value, defaultValue, onValueChange, onChange, ...props }: TextFieldProps): react.JSX.Element;
547
+ interface DropZoneProps extends FieldBase {
548
+ accept?: string;
549
+ multiple?: boolean;
550
+ disabled?: boolean;
551
+ maxSize?: number;
552
+ name?: string;
553
+ required?: boolean;
554
+ onFilesChange?: (files: File[]) => void;
555
+ onReject?: (message: string) => void;
556
+ }
557
+ declare function DropZone({ label, description, error, accept, multiple, disabled, maxSize, name, required, onFilesChange, onReject, }: DropZoneProps): react.JSX.Element;
558
+
559
+ interface ModalProps {
560
+ title: string;
561
+ description: string;
562
+ trigger?: ReactElement;
563
+ open?: boolean;
564
+ defaultOpen?: boolean;
565
+ onOpenChange?: (open: boolean) => void;
566
+ children: ReactNode;
567
+ footer?: ReactNode;
568
+ size?: Size;
569
+ }
570
+ declare function Modal({ title, description, trigger, children, footer, size, ...props }: ModalProps): react.JSX.Element;
571
+ interface PopoverProps {
572
+ trigger: ReactElement;
573
+ label: string;
574
+ children: ReactNode;
575
+ open?: boolean;
576
+ defaultOpen?: boolean;
577
+ onOpenChange?: (open: boolean) => void;
578
+ align?: "start" | "center" | "end";
579
+ side?: "top" | "right" | "bottom" | "left";
580
+ }
581
+ declare function Popover({ trigger, label, children, align, side, ...props }: PopoverProps): react.JSX.Element;
582
+ interface MenuItem {
583
+ id: string;
584
+ label: string;
585
+ onSelect?: () => void;
586
+ href?: string;
587
+ disabled?: boolean;
588
+ tone?: "neutral" | "critical";
589
+ icon?: ReactNode;
590
+ group?: string;
591
+ }
592
+ interface MenuProps {
593
+ trigger: ReactElement;
594
+ label: string;
595
+ items: MenuItem[];
596
+ align?: "start" | "center" | "end";
597
+ onOpenChange?: (open: boolean) => void;
598
+ }
599
+ declare function Menu({ trigger, label, items, align, onOpenChange, }: MenuProps): react.JSX.Element;
600
+ interface TooltipProps {
601
+ content: string;
602
+ children: ReactElement;
603
+ side?: "top" | "right" | "bottom" | "left";
604
+ }
605
+ declare function Tooltip({ content, children, side }: TooltipProps): react.JSX.Element;
606
+
607
+ interface CalendarBase {
608
+ label?: string;
609
+ month?: Date;
610
+ defaultMonth?: Date;
611
+ onMonthChange?: (month: Date) => void;
612
+ disabled?: Matcher | Matcher[];
613
+ numberOfMonths?: 1 | 2;
614
+ name?: string;
615
+ locale?: React.ComponentProps<typeof DayPicker>["locale"];
616
+ startMonth?: Date;
617
+ endMonth?: Date;
618
+ }
619
+ type DatePickerProps = CalendarBase & ({
620
+ mode?: "single";
621
+ value?: Date;
622
+ defaultValue?: Date;
623
+ onValueChange?: (value: Date | undefined) => void;
624
+ } | {
625
+ mode: "range";
626
+ value?: DateRange;
627
+ defaultValue?: DateRange;
628
+ onValueChange?: (value: DateRange | undefined) => void;
629
+ });
630
+ declare function DatePicker(props: DatePickerProps): react.JSX.Element;
631
+ interface TableColumn<T> {
632
+ id: string;
633
+ header: string;
634
+ cell: (row: T) => ReactNode;
635
+ align?: "start" | "end";
636
+ sortValue?: (row: T) => string | number;
637
+ }
638
+ interface TableProps<T> {
639
+ label: string;
640
+ columns: TableColumn<T>[];
641
+ rows: T[];
642
+ rowKey: (row: T) => string;
643
+ loading?: boolean;
644
+ emptyMessage?: string;
645
+ sort?: {
646
+ column: string;
647
+ direction: "ascending" | "descending";
648
+ };
649
+ onSortChange?: (sort: {
650
+ column: string;
651
+ direction: "ascending" | "descending";
652
+ }) => void;
653
+ selected?: string[];
654
+ onSelectionChange?: (ids: string[]) => void;
655
+ pagination?: {
656
+ hasPrevious: boolean;
657
+ hasNext: boolean;
658
+ onPrevious: () => void;
659
+ onNext: () => void;
660
+ label: string;
661
+ };
662
+ filters?: ReactNode;
663
+ }
664
+ declare function Table<T>({ label, columns, rows, rowKey, loading, emptyMessage, sort, onSortChange, selected, onSelectionChange, pagination, filters, }: TableProps<T>): react.JSX.Element;
665
+
666
+ export { Avatar, type AvatarProps, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, Button, ButtonGroup, type ButtonProps, Checkbox, type CheckboxProps, Chip, type ChipProps, ChoiceList, type ChoiceListProps, Clickable, ClickableChip, type ClickableChipProps, ColorField, ColorPicker, type ColorPickerProps, DateField, DatePicker, type DatePickerProps, type Density, Divider, DropZone, type DropZoneProps, EmailField, EmptyState, type FieldBase, Grid, type GridProps, Heading, type HeadingProps, Icon, type IconProps, Image, type ImageProps, Link, type LinkProps, ListItem, Menu, type MenuItem, type MenuProps, Modal, type ModalProps, MoneyField, type MoneyFieldProps, Number, NumberField, type NumberProps, OrderedList, Page, type PageProps, Paragraph, PasswordField, Popover, type PopoverProps, Progress, type ProgressProps, QueryContainer, SearchField, Section, type SectionProps, Select, type SelectOption, type SelectProps, type Size, type Space, Spinner, Stack, type StackProps, StaqContext, StaqProvider, type StaqProviderProps, Switch, Table, type TableColumn, type TableProps, Text, TextArea, type TextAreaProps, TextField, type TextFieldProps, type TextProps, Thumbnail, type Tone, Tooltip, type TooltipProps, URLField, UnorderedList, cx, icons, useControllable, useStaq };