@okshaun/components 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/icon-metadata.json +359 -42
- package/dist/index.js +12890 -5844
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +523 -501
- package/dist/{preset-BAn5LBiW.js → preset-BOFHjPdQ.js} +1986 -2045
- package/dist/preset-BOFHjPdQ.js.map +1 -0
- package/dist/preset.js +1 -1
- package/dist/specs/conditions.json +75 -51
- package/dist/specs/keyframes.json +22 -0
- package/dist/specs/recipes.json +222 -106
- package/dist/specs/semantic-tokens.json +152 -44
- package/dist/specs/tokens.json +16 -36
- package/dist/sprite.svg +1 -1
- package/dist/sprite.symbol.html +445 -44
- package/dist/styles.css +11268 -13251
- package/dist/svgs/cheese.svg +1 -0
- package/dist/svgs/collapse-vertical.svg +1 -0
- package/dist/svgs/expand-vertical.svg +1 -0
- package/dist/svgs/magnet.svg +1 -0
- package/dist/svgs/to-date-backward.svg +1 -0
- package/dist/svgs/to-date-forward.svg +1 -0
- package/dist/types/index.d.ts +2815 -288
- package/package.json +4 -2
- package/src/recipes/autocomplete.ts +266 -0
- package/src/recipes/badge.ts +25 -54
- package/src/recipes/button.ts +155 -316
- package/src/recipes/calendar.ts +91 -0
- package/src/recipes/card.ts +4 -70
- package/src/recipes/chip.ts +212 -266
- package/src/recipes/dateMenus.ts +40 -0
- package/src/recipes/dateTimeMenus.ts +43 -0
- package/src/recipes/kbd.ts +42 -39
- package/src/recipes/list.ts +11 -85
- package/src/recipes/listDensity.ts +66 -0
- package/src/recipes/listItem.ts +27 -166
- package/src/recipes/listItemGroup.ts +16 -16
- package/src/recipes/menu.ts +17 -3
- package/src/recipes/modal.ts +65 -65
- package/src/recipes/radio.ts +6 -6
- package/src/recipes/recipes-slot.ts +7 -2
- package/src/recipes/segmentedFields.ts +192 -0
- package/src/recipes/segmentedInputs.ts +109 -0
- package/src/recipes/tag.ts +218 -210
- package/src/recipes/text.ts +37 -19
- package/src/recipes/textInput.ts +103 -155
- package/src/recipes/themeSwitcher.ts +3 -3
- package/src/recipes/timeMenus.ts +110 -0
- package/src/recipes/toggle.ts +3 -1
- package/src/styles/primitives/shadows.ts +26 -60
- package/src/styles/primitives/zIndex.ts +1 -0
- package/src/styles/semantics/colors.ts +43 -0
- package/src/styles/semantics/shadows.ts +4 -30
- package/src/styles/semantics/zIndex.ts +2 -0
- package/src/styles/utilities/conditions.ts +61 -51
- package/src/styles/utilities/dropShadows.ts +51 -0
- package/src/styles/utilities/filters.ts +22 -7
- package/src/styles/utilities/globalStyle.ts +5 -2
- package/src/styles/utilities/index.ts +3 -0
- package/src/styles/utilities/keyframes.ts +27 -4
- package/src/styles/utilities/recipeGlobalStyles.ts +22 -0
- package/src/styles/utilities/shadowDefinitions.ts +112 -0
- package/src/utils/dsChain.ts +113 -0
- package/src/utils/dsComponent.ts +44 -0
- package/src/utils/dsPart.ts +41 -0
- package/dist/preset-BAn5LBiW.js.map +0 -1
- package/src/recipes/datePicker.ts +0 -234
- package/src/recipes/timePicker.ts +0 -216
package/dist/types/index.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ import { ComponentPropsWithRef } from 'react';
|
|
|
5
5
|
import { ComponentType } from 'react';
|
|
6
6
|
import { Context } from 'react';
|
|
7
7
|
import { ElementType } from 'react';
|
|
8
|
+
import { FormApi } from '@tanstack/react-form';
|
|
9
|
+
import { FormAsyncValidateOrFn } from '@tanstack/react-form';
|
|
10
|
+
import { FormValidateOrFn } from '@tanstack/react-form';
|
|
11
|
+
import { HTMLProps } from 'react';
|
|
8
12
|
import { JSX } from 'react/jsx-runtime';
|
|
9
13
|
import { JSX as JSX_2 } from 'react';
|
|
10
14
|
import { JSXElementConstructor } from 'react';
|
|
@@ -12,8 +16,11 @@ import { MouseEvent as MouseEvent_2 } from 'react';
|
|
|
12
16
|
import { Placement } from '@floating-ui/react';
|
|
13
17
|
import { Preset } from '@pandacss/types';
|
|
14
18
|
import { ReactElement } from 'react';
|
|
19
|
+
import { ReactFormExtendedApi } from '@tanstack/react-form';
|
|
15
20
|
import { ReactNode } from 'react';
|
|
21
|
+
import { Ref } from 'react';
|
|
16
22
|
import { RefObject } from 'react';
|
|
23
|
+
import { useForm } from '@tanstack/react-form';
|
|
17
24
|
|
|
18
25
|
declare type AdvancedPseudos =
|
|
19
26
|
| ":-moz-any()"
|
|
@@ -41,6 +48,12 @@ declare type AdvancedPseudos =
|
|
|
41
48
|
| ":nth-of-type"
|
|
42
49
|
| ":where";
|
|
43
50
|
|
|
51
|
+
/**
|
|
52
|
+
* Numeric design-token sizes supported by the icon recipe. Non-numeric sizes
|
|
53
|
+
* do not have corresponding recipe variants.
|
|
54
|
+
*/
|
|
55
|
+
export declare type AllowedIconSizes = keyof typeof numericSizes;
|
|
56
|
+
|
|
44
57
|
export declare type AnimationStyles = Record<string, SystemStyleObject>;
|
|
45
58
|
|
|
46
59
|
declare type AnimationToken = "spin" | "ping" | "pulse" | "skeletonWave" | "bounce"
|
|
@@ -66,6 +79,7 @@ declare type AriaAttributes =
|
|
|
66
79
|
declare type AspectRatioToken = "square" | "landscape" | "portrait" | "wide" | "ultrawide" | "golden"
|
|
67
80
|
|
|
68
81
|
declare type AsProp<T extends ElementType> = {
|
|
82
|
+
/** @default "div" */
|
|
69
83
|
as?: T;
|
|
70
84
|
};
|
|
71
85
|
|
|
@@ -84,66 +98,169 @@ declare type AtRuleType = 'media' | 'layer' | 'container' | 'supports' | 'page'
|
|
|
84
98
|
|
|
85
99
|
declare type AttributeSelector = `&${Pseudos | DataAttributes | AriaAttributes}`
|
|
86
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Filters and selects one or more metadata-only `Option` values.
|
|
103
|
+
*
|
|
104
|
+
* Use controlled `value` and `onValueChange`, or initialize uncontrolled state
|
|
105
|
+
* with `defaultValue`. The input uses combobox semantics; arrow keys navigate,
|
|
106
|
+
* Enter selects, and Escape closes the listbox. Supply `aria-label` or
|
|
107
|
+
* `aria-labelledby` when no external label is associated with the input.
|
|
108
|
+
* Selected values render as dismissible chips in both single- and
|
|
109
|
+
* multiple-selection modes.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```tsx
|
|
113
|
+
* <Autocomplete defaultValue="active" aria-label="Status">
|
|
114
|
+
* <Option value="active" label="Active" />
|
|
115
|
+
* <Option value="archived" label="Archived" />
|
|
116
|
+
* </Autocomplete>
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
87
119
|
export declare const Autocomplete: (props: AutocompleteProps) => JSX.Element;
|
|
88
120
|
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
/**
|
|
121
|
+
declare type AutocompleteBaseProps = Omit<BoxProps, keyof AutocompleteVariantProps | 'children' | 'defaultValue' | 'onChange' | 'value'> & AutocompleteVariantProps & {
|
|
122
|
+
/** Controlled text displayed in the input. */
|
|
123
|
+
inputValue?: string;
|
|
124
|
+
/** Initial input text when `inputValue` is not provided. */
|
|
125
|
+
defaultInputValue?: string;
|
|
126
|
+
/** Runs when typing, selection, or clearing changes the input text. */
|
|
127
|
+
onInputValueChange?: (value: string, reason: AutocompleteInputChangeReason) => void;
|
|
128
|
+
/**
|
|
129
|
+
* Runs when the input text changes.
|
|
130
|
+
*
|
|
131
|
+
* @deprecated Use `onInputValueChange`.
|
|
132
|
+
*/
|
|
133
|
+
onInputChange?: (value: string, reason: AutocompleteInputChangeReason) => void;
|
|
134
|
+
/** Controlled listbox visibility. Pair with `onOpenChange`. */
|
|
135
|
+
open?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Initial listbox visibility when `open` is not provided.
|
|
138
|
+
*
|
|
139
|
+
* @default false
|
|
140
|
+
*/
|
|
141
|
+
defaultOpen?: boolean;
|
|
142
|
+
/** Runs when interaction requests that the listbox open or close. */
|
|
143
|
+
onOpenChange?: (open: boolean, reason: AutocompleteOpenChangeReason) => void;
|
|
144
|
+
/**
|
|
145
|
+
* Offers the current input as a selectable option when it has no exact
|
|
146
|
+
* match.
|
|
147
|
+
*
|
|
148
|
+
* @default false
|
|
149
|
+
*/
|
|
150
|
+
allowCustomValue?: boolean;
|
|
151
|
+
/** Creates the visible label for a custom-value option. */
|
|
152
|
+
getCreateOptionLabel?: (inputValue: string) => string;
|
|
153
|
+
/**
|
|
154
|
+
* Maximum selected chips shown while an unfocused multiple Autocomplete
|
|
155
|
+
* is collapsed. Negative values and `undefined` show every chip.
|
|
156
|
+
*/
|
|
157
|
+
limitTags?: number;
|
|
158
|
+
/**
|
|
159
|
+
* Input hint shown while no value is selected.
|
|
160
|
+
*
|
|
161
|
+
* @default 'Select...'
|
|
162
|
+
*/
|
|
120
163
|
placeholder?: string;
|
|
121
|
-
/**
|
|
164
|
+
/**
|
|
165
|
+
* Floating UI placement of the listbox relative to the control.
|
|
166
|
+
*
|
|
167
|
+
* @default 'bottom-start'
|
|
168
|
+
*/
|
|
122
169
|
placement?: Placement;
|
|
123
|
-
/**
|
|
170
|
+
/**
|
|
171
|
+
* Gap between the control and listbox, in pixels.
|
|
172
|
+
*
|
|
173
|
+
* @default 4
|
|
174
|
+
*/
|
|
124
175
|
offset?: number;
|
|
125
|
-
/**
|
|
176
|
+
/** Metadata-only `Option` children used to populate the listbox. */
|
|
177
|
+
children?: ReactNode;
|
|
178
|
+
/** Identifier for the combobox input. A generated identifier is used when omitted. */
|
|
126
179
|
id?: string;
|
|
127
|
-
/**
|
|
180
|
+
/** Form field name used by hidden inputs for selected values. */
|
|
181
|
+
name?: string;
|
|
182
|
+
/** Prevents focus and interaction. Overrides field context when provided. */
|
|
128
183
|
disabled?: boolean;
|
|
129
|
-
/**
|
|
184
|
+
/** Allows focus and text selection while preventing value changes. */
|
|
185
|
+
readOnly?: boolean;
|
|
186
|
+
/** Applies error styling and `aria-invalid`. Overrides field context when provided. */
|
|
130
187
|
error?: boolean;
|
|
131
|
-
/**
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
|
|
188
|
+
/** Applies valid styling to the control. */
|
|
189
|
+
valid?: boolean;
|
|
190
|
+
/** Applies invalid styling and `aria-invalid`. Overrides field context when provided. */
|
|
191
|
+
invalid?: boolean;
|
|
192
|
+
/** Spacing density used by listbox options. */
|
|
193
|
+
density?: MenuDensity;
|
|
194
|
+
/**
|
|
195
|
+
* Shows a loading indicator and replaces an empty list with `loadingText`.
|
|
196
|
+
*
|
|
197
|
+
* @default false
|
|
198
|
+
*/
|
|
199
|
+
loading?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Shows `loadingText` after the current options during incremental loading.
|
|
202
|
+
*
|
|
203
|
+
* @default false
|
|
204
|
+
*/
|
|
205
|
+
loadingMore?: boolean;
|
|
206
|
+
/** Indicates that scrolling can request another page of options. */
|
|
207
|
+
hasMore?: boolean;
|
|
208
|
+
/** Runs near the end of the list when more options are available. */
|
|
209
|
+
onLoadMore?: () => void;
|
|
210
|
+
/**
|
|
211
|
+
* Status content shown while options are loading.
|
|
212
|
+
*
|
|
213
|
+
* @default 'Loading options…'
|
|
214
|
+
*/
|
|
215
|
+
loadingText?: ReactNode;
|
|
216
|
+
/**
|
|
217
|
+
* Status content shown when filtering produces no options.
|
|
218
|
+
*
|
|
219
|
+
* @default 'No options'
|
|
220
|
+
*/
|
|
221
|
+
noOptionsText?: ReactNode;
|
|
137
222
|
};
|
|
138
223
|
|
|
224
|
+
/** User actions that can change the selected Autocomplete value. */
|
|
225
|
+
export declare type AutocompleteChangeReason = 'select-option' | 'remove-option' | 'clear' | 'create-option';
|
|
226
|
+
|
|
227
|
+
/** Actions that can change the text displayed in the Autocomplete input. */
|
|
228
|
+
export declare type AutocompleteInputChangeReason = 'input' | 'selection' | 'clear';
|
|
229
|
+
|
|
230
|
+
/** Interactions that can request an Autocomplete listbox visibility change. */
|
|
231
|
+
export declare type AutocompleteOpenChangeReason = 'input' | 'focus' | 'keyboard' | 'selection' | 'escape' | 'outside-press';
|
|
232
|
+
|
|
233
|
+
/** Props accepted by {@link Autocomplete}, discriminated by `multiple`. */
|
|
234
|
+
export declare type AutocompleteProps<Multiple extends boolean = boolean> = Multiple extends true ? MultipleAutocompleteProps : Multiple extends false ? SingleAutocompleteProps : SingleAutocompleteProps | MultipleAutocompleteProps;
|
|
235
|
+
|
|
236
|
+
/** Selected value shape for single- or multiple-selection `Autocomplete`. */
|
|
237
|
+
export declare type AutocompleteValue<Multiple extends boolean = false> = Multiple extends true ? string[] : Multiple extends false ? string | null : string | string[] | null;
|
|
238
|
+
|
|
239
|
+
declare interface AutocompleteVariant {
|
|
240
|
+
/**
|
|
241
|
+
* @default "elevated"
|
|
242
|
+
*/
|
|
243
|
+
layer: "elevated" | "modalFloating"
|
|
244
|
+
/**
|
|
245
|
+
* @default "md"
|
|
246
|
+
*/
|
|
247
|
+
size: "sm" | "md" | "lg" | "xl"
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
declare type AutocompleteVariantProps = {
|
|
251
|
+
[key in keyof AutocompleteVariant]?: ConditionalValue<AutocompleteVariant[key]> | undefined
|
|
252
|
+
}
|
|
253
|
+
|
|
139
254
|
/**
|
|
140
255
|
* Avatar component for displaying user or entity images with optional
|
|
141
256
|
* presence and status indicators.
|
|
142
257
|
*/
|
|
143
258
|
export declare const Avatar: (props: AvatarProps) => JSX.Element;
|
|
144
259
|
|
|
260
|
+
/** Presence states displayed at the bottom-right of an avatar. */
|
|
145
261
|
export declare type AvatarPresence = 'online' | 'busy' | 'offline' | 'focus';
|
|
146
262
|
|
|
263
|
+
/** Props accepted by {@link Avatar}. */
|
|
147
264
|
export declare type AvatarProps = Omit<BoxProps, keyof AvatarVariantProps> & Omit<AvatarVariantProps, 'size' | 'shape'> & {
|
|
148
265
|
/** Image source URL */
|
|
149
266
|
src?: string;
|
|
@@ -165,10 +282,13 @@ export declare type AvatarProps = Omit<BoxProps, keyof AvatarVariantProps> & Omi
|
|
|
165
282
|
borderColor?: BoxProps['borderColor'];
|
|
166
283
|
};
|
|
167
284
|
|
|
285
|
+
/** Supported outline shapes for {@link Avatar}. */
|
|
168
286
|
export declare type AvatarShape = 'circle' | 'square' | 'hexagon';
|
|
169
287
|
|
|
288
|
+
/** Supported visual sizes for {@link Avatar}. */
|
|
170
289
|
export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
171
290
|
|
|
291
|
+
/** Status states displayed at the top-right of an avatar. */
|
|
172
292
|
export declare type AvatarStatus = 'approved' | 'declined' | 'locked';
|
|
173
293
|
|
|
174
294
|
declare interface AvatarVariant {
|
|
@@ -196,6 +316,7 @@ declare type AvatarVariantProps = {
|
|
|
196
316
|
*/
|
|
197
317
|
export declare const Badge: (props: BadgeProps) => JSX.Element | null;
|
|
198
318
|
|
|
319
|
+
/** Props accepted by {@link Badge}. */
|
|
199
320
|
export declare type BadgeProps = Omit<BoxProps, keyof BadgeVariantProps> & Omit<BadgeVariantProps, 'standalone' | 'dot'> & {
|
|
200
321
|
/** Number to show in badge. If provided, switches to count mode. */
|
|
201
322
|
count?: number;
|
|
@@ -209,6 +330,7 @@ export declare type BadgeProps = Omit<BoxProps, keyof BadgeVariantProps> & Omit<
|
|
|
209
330
|
children?: ReactNode;
|
|
210
331
|
};
|
|
211
332
|
|
|
333
|
+
/** Supported visual color treatments for {@link Badge}. */
|
|
212
334
|
export declare type BadgeVariant = 'neutral' | 'subtle' | 'bold' | 'inverse' | 'success' | 'danger' | 'warning' | 'info';
|
|
213
335
|
|
|
214
336
|
declare interface BadgeVariant_2 {
|
|
@@ -225,7 +347,7 @@ declare interface BadgeVariant_2 {
|
|
|
225
347
|
}
|
|
226
348
|
|
|
227
349
|
declare type BadgeVariantProps = {
|
|
228
|
-
[key in keyof BadgeVariant_2]?: BadgeVariant_2[key] | undefined
|
|
350
|
+
[key in keyof BadgeVariant_2]?: ConditionalValue<BadgeVariant_2[key]> | undefined
|
|
229
351
|
}
|
|
230
352
|
|
|
231
353
|
declare type BasePatternConfig<T extends PatternProperties = PatternProperties> = {
|
|
@@ -260,6 +382,7 @@ export declare const Box: <T extends ElementType = "div">(props: BoxProps<T>) =>
|
|
|
260
382
|
|
|
261
383
|
declare type BoxOwnProps = SystemStyleObject_2 & BoxVariantProps;
|
|
262
384
|
|
|
385
|
+
/** Props accepted by {@link Box}, including Panda style and native element props. */
|
|
263
386
|
export declare type BoxProps<T extends ElementType = ElementType> = PolymorphicComponentProps<T, BoxOwnProps>;
|
|
264
387
|
|
|
265
388
|
declare interface BoxVariant {
|
|
@@ -270,9 +393,32 @@ declare type BoxVariantProps = {
|
|
|
270
393
|
[key in keyof BoxVariant]?: ConditionalValue<BoxVariant[key]> | undefined
|
|
271
394
|
}
|
|
272
395
|
|
|
396
|
+
/**
|
|
397
|
+
* Displays the current navigation path as a semantic unordered list.
|
|
398
|
+
*
|
|
399
|
+
* Linked segments use {@link Link}; segments without `href` are rendered as
|
|
400
|
+
* plain text. Use page navigation instead when the hierarchy is not a path to
|
|
401
|
+
* the current location.
|
|
402
|
+
*
|
|
403
|
+
* @example
|
|
404
|
+
* ```tsx
|
|
405
|
+
* <Breadcrumbs
|
|
406
|
+
* items={[
|
|
407
|
+
* { id: 'home', label: 'Home', href: '/' },
|
|
408
|
+
* { id: 'invoices', label: 'Invoices' },
|
|
409
|
+
* ]}
|
|
410
|
+
* />
|
|
411
|
+
* ```
|
|
412
|
+
*/
|
|
273
413
|
export declare const Breadcrumbs: (props: BreadcrumbsProps) => JSX.Element;
|
|
274
414
|
|
|
415
|
+
/** Props for {@link Breadcrumbs}. */
|
|
275
416
|
export declare type BreadcrumbsProps = Omit<BoxProps, keyof BreadcrumbsVariantProps> & BreadcrumbsVariantProps & {
|
|
417
|
+
/**
|
|
418
|
+
* Ordered path segments. A segment with `href` renders as a link; a segment
|
|
419
|
+
* without it renders as plain text, which is normally the current page.
|
|
420
|
+
* Keep the final segment non-linked when it represents the current page.
|
|
421
|
+
*/
|
|
276
422
|
items: {
|
|
277
423
|
id: string;
|
|
278
424
|
label: string;
|
|
@@ -288,8 +434,21 @@ declare type BreadcrumbsVariantProps = {
|
|
|
288
434
|
[key in keyof BreadcrumbsVariant]?: ConditionalValue<BreadcrumbsVariant[key]> | undefined
|
|
289
435
|
}
|
|
290
436
|
|
|
437
|
+
/**
|
|
438
|
+
* Displays the largest currently matching design-system breakpoint.
|
|
439
|
+
*
|
|
440
|
+
* This is a development aid, not user-facing application content. It renders a
|
|
441
|
+
* colored `Tag` from `@media/base` through `@media/2xl` based on media-query
|
|
442
|
+
* hooks.
|
|
443
|
+
*
|
|
444
|
+
* @example
|
|
445
|
+
* ```tsx
|
|
446
|
+
* <BreakpointIndicator />
|
|
447
|
+
* ```
|
|
448
|
+
*/
|
|
291
449
|
export declare const BreakpointIndicator: (props: BreakpointIndicatorProps) => JSX.Element;
|
|
292
450
|
|
|
451
|
+
/** Props for {@link BreakpointIndicator}, a development breakpoint readout. */
|
|
293
452
|
export declare type BreakpointIndicatorProps = BoxProps;
|
|
294
453
|
|
|
295
454
|
declare type BreakpointKey = keyof typeof breakpoints;
|
|
@@ -305,47 +464,176 @@ declare const breakpoints: {
|
|
|
305
464
|
|
|
306
465
|
declare type BreakpointToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
|
|
307
466
|
|
|
467
|
+
/**
|
|
468
|
+
* Performs an action or navigates to a location.
|
|
469
|
+
*
|
|
470
|
+
* Renders a native `button` by default, or an anchor when `href` is supplied.
|
|
471
|
+
* Use {@link IconButton} for actions represented only by an icon. In a
|
|
472
|
+
* `FormField` or slot context, explicitly supplied `size`, `error`, `invalid`,
|
|
473
|
+
* and `disabled` values take precedence over slot context, which takes
|
|
474
|
+
* precedence over field context. Its recipe defaults to the `standard` variant
|
|
475
|
+
* and `md` size.
|
|
476
|
+
*
|
|
477
|
+
* @example
|
|
478
|
+
* ```tsx
|
|
479
|
+
* <Button onClick={saveInvoice}>Save invoice</Button>
|
|
480
|
+
* ```
|
|
481
|
+
*/
|
|
308
482
|
export declare const Button: (props: ButtonProps) => JSX.Element;
|
|
309
483
|
|
|
310
|
-
|
|
484
|
+
/**
|
|
485
|
+
* Props for {@link Button}. Extends {@link BoxProps} for layout and native
|
|
486
|
+
* element attributes while reserving the button recipe's visual variants.
|
|
487
|
+
*/
|
|
488
|
+
export declare type ButtonProps = Omit<BoxProps, keyof ButtonVariantProps | 'children'> & Omit<ButtonVariantProps, 'before' | 'after'> & {
|
|
489
|
+
/** Content rendered before the button label. Takes precedence over `iconBefore`. */
|
|
311
490
|
before?: ReactNode;
|
|
491
|
+
/** Content rendered after the button label. Takes precedence over `iconAfter`. */
|
|
312
492
|
after?: ReactNode;
|
|
493
|
+
/**
|
|
494
|
+
* Legacy icon name rendered before the label when `before` is not provided.
|
|
495
|
+
*
|
|
496
|
+
* @deprecated Use `before={<Icon name="..." aria-hidden />}`. This alias
|
|
497
|
+
* will be removed in a future major release.
|
|
498
|
+
*/
|
|
313
499
|
iconBefore?: IconNamesList;
|
|
500
|
+
/**
|
|
501
|
+
* Legacy icon name rendered after the label when `after` is not provided.
|
|
502
|
+
*
|
|
503
|
+
* @deprecated Use `after={<Icon name="..." aria-hidden />}`. This alias
|
|
504
|
+
* will be removed in a future major release.
|
|
505
|
+
*/
|
|
314
506
|
iconAfter?: IconNamesList;
|
|
507
|
+
/** When provided, renders an anchor instead of a native button. */
|
|
315
508
|
href?: string;
|
|
509
|
+
/**
|
|
510
|
+
* Shows a centered spinner, hides the visible content, and sets
|
|
511
|
+
* `aria-busy`. Loading does not disable the control; set `disabled` when
|
|
512
|
+
* the action must not be available.
|
|
513
|
+
*
|
|
514
|
+
* @default false
|
|
515
|
+
*/
|
|
316
516
|
loading?: boolean;
|
|
517
|
+
/** Visible label and optional inline content for the action. */
|
|
317
518
|
children: string | ReactNode;
|
|
519
|
+
/** Marks the control as having an error for styling and descendant slots. */
|
|
318
520
|
error?: boolean;
|
|
521
|
+
/** Sets `aria-invalid` and marks the control invalid for styling and slots. */
|
|
319
522
|
invalid?: boolean;
|
|
523
|
+
/**
|
|
524
|
+
* Disables a native button. For links, marks the anchor `aria-disabled` and
|
|
525
|
+
* prevents its default click navigation.
|
|
526
|
+
*/
|
|
320
527
|
disabled?: boolean;
|
|
528
|
+
/**
|
|
529
|
+
* Native button type; ignored when `href` causes the component to render an
|
|
530
|
+
* anchor.
|
|
531
|
+
*
|
|
532
|
+
* @default 'button'
|
|
533
|
+
*/
|
|
321
534
|
type?: 'submit' | 'reset' | 'button';
|
|
322
535
|
gap?: NumericSizeToken;
|
|
323
536
|
};
|
|
324
537
|
|
|
325
538
|
declare interface ButtonVariant {
|
|
326
539
|
/**
|
|
327
|
-
* @default "
|
|
540
|
+
* @default "standard"
|
|
328
541
|
*/
|
|
329
|
-
variant: "
|
|
542
|
+
variant: "standard" | "primary" | "hollow" | "ghost" | "danger" | "selected" | "selectedBold"
|
|
330
543
|
/**
|
|
331
544
|
* @default "md"
|
|
332
545
|
*/
|
|
333
546
|
size: "sm" | "md" | "lg" | "xl"
|
|
334
|
-
|
|
335
|
-
|
|
547
|
+
before: boolean
|
|
548
|
+
after: boolean
|
|
336
549
|
}
|
|
337
550
|
|
|
338
551
|
declare type ButtonVariantProps = {
|
|
339
|
-
[key in keyof ButtonVariant]?: ButtonVariant[key] | undefined
|
|
552
|
+
[key in keyof ButtonVariant]?: ConditionalValue<ButtonVariant[key]> | undefined
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Displays an accessible day, month, and year selection grid.
|
|
557
|
+
*
|
|
558
|
+
* Use `value` and `onChange` for date selection. `viewDate` separately controls
|
|
559
|
+
* the visible month; omit it to let Calendar manage navigation internally.
|
|
560
|
+
* Dates outside `minDate` and `maxDate` remain visible but unavailable.
|
|
561
|
+
*
|
|
562
|
+
* @example
|
|
563
|
+
* ```tsx
|
|
564
|
+
* <Calendar value={date} onChange={setDate} label="Choose invoice date" />
|
|
565
|
+
* ```
|
|
566
|
+
*/
|
|
567
|
+
export declare const Calendar: (props: CalendarProps) => JSX.Element;
|
|
568
|
+
|
|
569
|
+
/** Props for {@link Calendar}, including selection, bounds, and visible-month state. */
|
|
570
|
+
export declare type CalendarProps = Omit<BoxProps, keyof CalendarVariantProps | 'children'> & Omit<CalendarVariantProps, 'type'> & {
|
|
571
|
+
/** Controlled selected date. */
|
|
572
|
+
value?: DateValue | null;
|
|
573
|
+
/** Runs when a selectable day is chosen. Calendar never clears its own value. */
|
|
574
|
+
onChange?: (value: DateValue) => void;
|
|
575
|
+
/**
|
|
576
|
+
* Range-selection endpoints, for DateRangeMenu. Independent of `value` —
|
|
577
|
+
* a Calendar can show a range highlight (start/end fill + in-between
|
|
578
|
+
* tint) regardless of which month it's currently displaying, since a
|
|
579
|
+
* range's two endpoints may fall in months neither calendar is showing.
|
|
580
|
+
*/
|
|
581
|
+
rangeStart?: DateValue | null;
|
|
582
|
+
/** End of the optional visual range highlight. */
|
|
583
|
+
rangeEnd?: DateValue | null;
|
|
584
|
+
/** Earliest selectable date. */
|
|
585
|
+
minDate?: DateValue;
|
|
586
|
+
/** Latest selectable date. */
|
|
587
|
+
maxDate?: DateValue;
|
|
588
|
+
/** Controlled visible month and year. */
|
|
589
|
+
viewDate?: ViewDate;
|
|
590
|
+
/** Initial visible month and year when `viewDate` is not provided. Defaults to `value`, then today. */
|
|
591
|
+
defaultViewDate?: ViewDate;
|
|
592
|
+
/** Runs when month or year navigation requests a new visible month. */
|
|
593
|
+
onViewDateChange?: (viewDate: ViewDate) => void;
|
|
594
|
+
/** Prevents navigation and date selection. */
|
|
595
|
+
disabled?: boolean;
|
|
596
|
+
/** Accessible label prefix for the calendar grid. */
|
|
597
|
+
label?: string;
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
declare interface CalendarVariant {
|
|
601
|
+
/**
|
|
602
|
+
* @default "days"
|
|
603
|
+
*/
|
|
604
|
+
type: "days" | "months" | "years"
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
declare type CalendarVariantProps = {
|
|
608
|
+
[key in keyof CalendarVariant]?: ConditionalValue<CalendarVariant[key]> | undefined
|
|
340
609
|
}
|
|
341
610
|
|
|
611
|
+
/**
|
|
612
|
+
* Groups related content in a visual container that can optionally navigate or
|
|
613
|
+
* act as a control.
|
|
614
|
+
*
|
|
615
|
+
* A card with `href` renders an anchor. A card that is otherwise interactive
|
|
616
|
+
* renders a button; a non-interactive card renders a `div`. Avoid nesting other
|
|
617
|
+
* interactive elements inside an interactive card.
|
|
618
|
+
*
|
|
619
|
+
* @example
|
|
620
|
+
* ```tsx
|
|
621
|
+
* <Card href="/orders/123">Order 123</Card>
|
|
622
|
+
* ```
|
|
623
|
+
*/
|
|
342
624
|
export declare const Card: (props: CardProps) => JSX.Element;
|
|
343
625
|
|
|
626
|
+
/** Props accepted by {@link Card}. */
|
|
344
627
|
export declare type CardProps = Omit<BoxProps, keyof CardVariantProps> & CardVariantProps & {
|
|
628
|
+
/** Destination that makes the entire card render as a link. */
|
|
345
629
|
href?: string;
|
|
630
|
+
/** Card content. */
|
|
346
631
|
children?: string | ReactNode;
|
|
632
|
+
/** @default false */
|
|
347
633
|
grabbed?: boolean;
|
|
634
|
+
/** @default false */
|
|
348
635
|
disabled?: boolean;
|
|
636
|
+
/** @default false */
|
|
349
637
|
interactive?: boolean;
|
|
350
638
|
};
|
|
351
639
|
|
|
@@ -358,7 +646,7 @@ declare interface CardVariant {
|
|
|
358
646
|
}
|
|
359
647
|
|
|
360
648
|
declare type CardVariantProps = {
|
|
361
|
-
[key in keyof CardVariant]?: CardVariant[key] | undefined
|
|
649
|
+
[key in keyof CardVariant]?: ConditionalValue<CardVariant[key]> | undefined
|
|
362
650
|
}
|
|
363
651
|
|
|
364
652
|
/**
|
|
@@ -388,11 +676,28 @@ export declare type CheckboxChangeEvent = ChangeEvent<HTMLInputElement>;
|
|
|
388
676
|
*/
|
|
389
677
|
export declare type CheckboxChangeHandler = (e: CheckboxChangeEvent) => void;
|
|
390
678
|
|
|
679
|
+
/**
|
|
680
|
+
* A checkbox paired with a clickable label.
|
|
681
|
+
*
|
|
682
|
+
* Use this instead of {@link Checkbox} for ordinary labelled form controls.
|
|
683
|
+
* It generates an input ID when needed and connects it to the rendered label.
|
|
684
|
+
* Its checked-state and field-context behavior match `Checkbox`; explicit
|
|
685
|
+
* `disabled`, `error`, and `invalid` props override field context.
|
|
686
|
+
*
|
|
687
|
+
* @example
|
|
688
|
+
* ```tsx
|
|
689
|
+
* <CheckboxInput name="terms" defaultChecked>
|
|
690
|
+
* I agree to the terms
|
|
691
|
+
* </CheckboxInput>
|
|
692
|
+
* ```
|
|
693
|
+
*/
|
|
391
694
|
export declare const CheckboxInput: (props: CheckboxInputProps) => JSX.Element;
|
|
392
695
|
|
|
696
|
+
/** Props for {@link CheckboxInput}, a labelled {@link Checkbox}. */
|
|
393
697
|
export declare type CheckboxInputProps = Omit<BoxProps, keyof CheckboxInputVariantProps> & CheckboxInputVariantProps & {
|
|
394
698
|
name: string;
|
|
395
699
|
checked?: boolean;
|
|
700
|
+
/** @default false */
|
|
396
701
|
defaultChecked?: boolean;
|
|
397
702
|
onChange?: CheckboxChangeHandler;
|
|
398
703
|
id?: string;
|
|
@@ -410,9 +715,11 @@ declare type CheckboxInputVariantProps = {
|
|
|
410
715
|
[key in keyof CheckboxInputVariant]?: ConditionalValue<CheckboxInputVariant[key]> | undefined
|
|
411
716
|
}
|
|
412
717
|
|
|
718
|
+
/** Props for {@link Checkbox}, the unlabelled native checkbox primitive. */
|
|
413
719
|
export declare type CheckboxProps = Omit<BoxProps, 'checked' | 'onChange' | keyof CheckboxVariantProps> & CheckboxVariantProps & {
|
|
414
720
|
name: string;
|
|
415
721
|
checked?: boolean;
|
|
722
|
+
/** @default false */
|
|
416
723
|
defaultChecked?: boolean;
|
|
417
724
|
onChange?: CheckboxChangeHandler;
|
|
418
725
|
id?: string;
|
|
@@ -430,38 +737,110 @@ declare type CheckboxVariantProps = {
|
|
|
430
737
|
[key in keyof CheckboxVariant]?: ConditionalValue<CheckboxVariant[key]> | undefined
|
|
431
738
|
}
|
|
432
739
|
|
|
740
|
+
/**
|
|
741
|
+
* Renders a compact label, optionally with an action or dismissal control.
|
|
742
|
+
*
|
|
743
|
+
* A chip is static unless it has `onClick` or both a `value` and a parent
|
|
744
|
+
* `ChipGroup`. Grouped single-select chips use radio behavior and arrow-key
|
|
745
|
+
* roving focus; grouped multi-select chips use checkbox behavior. `before` and
|
|
746
|
+
* `after` slots inherit state through slot context.
|
|
747
|
+
*
|
|
748
|
+
* @example
|
|
749
|
+
* ```tsx
|
|
750
|
+
* <Chip dismissable onDismiss={() => remove('design')}>Design</Chip>
|
|
751
|
+
* ```
|
|
752
|
+
*/
|
|
433
753
|
export declare const Chip: (props: ChipProps) => JSX.Element;
|
|
434
754
|
|
|
755
|
+
/**
|
|
756
|
+
* Coordinates the selection and keyboard behavior of child {@link Chip} values.
|
|
757
|
+
*
|
|
758
|
+
* Use `value` with `onChange` for controlled selection, or `defaultValue` for
|
|
759
|
+
* initialization only. In a single-select group, arrow keys move focus and
|
|
760
|
+
* select the newly focused chip. Label the group with `label` when it needs an
|
|
761
|
+
* accessible name.
|
|
762
|
+
*
|
|
763
|
+
* @example
|
|
764
|
+
* ```tsx
|
|
765
|
+
* <ChipGroup type="single" defaultValue="all" label="Status">
|
|
766
|
+
* <Chip value="all">All</Chip>
|
|
767
|
+
* <Chip value="open">Open</Chip>
|
|
768
|
+
* </ChipGroup>
|
|
769
|
+
* ```
|
|
770
|
+
*/
|
|
435
771
|
export declare const ChipGroup: (props: ChipGroupProps) => JSX.Element;
|
|
436
772
|
|
|
773
|
+
declare type ChipGroupContextValue = {
|
|
774
|
+
type: ChipGroupType;
|
|
775
|
+
value: string | string[];
|
|
776
|
+
onChange: (value: string | string[]) => void;
|
|
777
|
+
name?: string;
|
|
778
|
+
size?: ChipVariantProps['size'];
|
|
779
|
+
registerChip: (value: string, ref: RefObject<HTMLButtonElement | null>) => void;
|
|
780
|
+
unregisterChip: (value: string) => void;
|
|
781
|
+
focusChip: (direction: 'next' | 'prev', currentValue: string) => void;
|
|
782
|
+
chipValues: string[];
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
/** Props for {@link ChipGroup}, which coordinates selectable child chips. */
|
|
437
786
|
export declare type ChipGroupProps = Omit<WrapProps, 'role'> & Omit<BoxProps, keyof WrapProps> & {
|
|
787
|
+
/** Required selection model. `'single'` uses radio semantics; `'multi'` uses checkbox semantics. */
|
|
438
788
|
type: ChipGroupType;
|
|
789
|
+
/** Controlled selected value. Use a string for `'single'` or a string array for `'multi'`, with `onChange` to accept updates. */
|
|
439
790
|
value?: string | string[];
|
|
791
|
+
/**
|
|
792
|
+
* Initial selected value for an uncontrolled group. It is used only on first render.
|
|
793
|
+
* @default '' for `'single'`; [] for `'multi'`
|
|
794
|
+
*/
|
|
440
795
|
defaultValue?: string | string[];
|
|
796
|
+
/** Called with the next selection when a child chip is activated. */
|
|
441
797
|
onChange?: (value: string | string[]) => void;
|
|
442
798
|
size?: ChipVariantProps['size'];
|
|
799
|
+
/** `Chip` children. Chips require a unique `value` to participate in selection. */
|
|
443
800
|
children: ReactNode;
|
|
801
|
+
/** Accessible name applied to the group container. */
|
|
444
802
|
label?: string;
|
|
803
|
+
/** Container identifier. When supplied, the container references `${id}-label`, which consumers must render themselves. */
|
|
445
804
|
id?: string;
|
|
805
|
+
/** Shared form metadata exposed to child-chip context; it does not create native form inputs. */
|
|
446
806
|
name?: string;
|
|
447
807
|
};
|
|
448
808
|
|
|
449
809
|
export declare type ChipGroupType = 'single' | 'multi';
|
|
450
810
|
|
|
811
|
+
/** Props for {@link Chip}, a compact label that can be static, actionable, selectable, or dismissible. */
|
|
451
812
|
export declare type ChipProps = Omit<BoxProps, keyof ChipVariantProps | 'children'> & Omit<ChipVariantProps, 'before' | 'after'> & {
|
|
452
813
|
children: ReactNode;
|
|
814
|
+
/** Content displayed before the chip label. */
|
|
453
815
|
before?: ReactNode;
|
|
816
|
+
/** Content displayed after the chip label and before the dismiss control. */
|
|
454
817
|
after?: ReactNode;
|
|
818
|
+
/** Disables the primary action and dismiss button. The local value takes precedence over slot and field context. */
|
|
455
819
|
disabled?: boolean;
|
|
820
|
+
/** Shows a spinner and disables chip interaction. */
|
|
456
821
|
loading?: boolean;
|
|
822
|
+
/** Applies deleted styling without removing the chip from the DOM. */
|
|
457
823
|
deleted?: boolean;
|
|
824
|
+
/** Adds a dismiss button after the chip content. */
|
|
458
825
|
dismissable?: boolean;
|
|
826
|
+
/**
|
|
827
|
+
* Accessible name for the dismiss button.
|
|
828
|
+
* @default `Remove ${children}`
|
|
829
|
+
*/
|
|
459
830
|
dismissLabel?: string;
|
|
831
|
+
/** Called when the dismiss button is activated. The button is disabled when this callback is absent. */
|
|
460
832
|
onDismiss?: () => void;
|
|
461
833
|
onClick?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
834
|
+
/** Value used by a parent `ChipGroup` to identify and select this chip. */
|
|
462
835
|
value?: string;
|
|
836
|
+
/**
|
|
837
|
+
* Native type for the chip's primary button when it is selectable or has `onClick`.
|
|
838
|
+
* @default 'button'
|
|
839
|
+
*/
|
|
463
840
|
type?: 'button' | 'submit' | 'reset';
|
|
841
|
+
/** Applies error styling. The local value takes precedence over slot and field context. */
|
|
464
842
|
error?: boolean;
|
|
843
|
+
/** Marks the chip invalid with `aria-invalid`. The local value takes precedence over slot and field context. */
|
|
465
844
|
invalid?: boolean;
|
|
466
845
|
gap?: NumericSizeToken;
|
|
467
846
|
};
|
|
@@ -477,13 +856,27 @@ declare interface ChipVariant {
|
|
|
477
856
|
}
|
|
478
857
|
|
|
479
858
|
declare type ChipVariantProps = {
|
|
480
|
-
[key in keyof ChipVariant]?: ChipVariant[key] | undefined
|
|
859
|
+
[key in keyof ChipVariant]?: ConditionalValue<ChipVariant[key]> | undefined
|
|
481
860
|
}
|
|
482
861
|
|
|
862
|
+
/**
|
|
863
|
+
* Renders code content in a native `code` element.
|
|
864
|
+
*
|
|
865
|
+
* Use `Pre` for a preformatted code block. `lang` supplies element language
|
|
866
|
+
* metadata; it does not perform syntax highlighting.
|
|
867
|
+
*
|
|
868
|
+
* @example
|
|
869
|
+
* ```tsx
|
|
870
|
+
* <Code>npm run build</Code>
|
|
871
|
+
* ```
|
|
872
|
+
*/
|
|
483
873
|
export declare const Code: (props: CodeProps) => JSX.Element;
|
|
484
874
|
|
|
875
|
+
/** Props accepted by {@link Code}. */
|
|
485
876
|
export declare type CodeProps = Omit<BoxProps, keyof CodeVariantProps | keyof TextProps> & CodeVariantProps & TextProps & {
|
|
877
|
+
/** Source code or inline content to render. */
|
|
486
878
|
children?: string | ReactNode;
|
|
879
|
+
/** Language metadata forwarded to the native `code` element. */
|
|
487
880
|
lang?: string;
|
|
488
881
|
};
|
|
489
882
|
|
|
@@ -495,7 +888,7 @@ declare type CodeVariantProps = {
|
|
|
495
888
|
[key in keyof CodeVariant]?: ConditionalValue<CodeVariant[key]> | undefined
|
|
496
889
|
}
|
|
497
890
|
|
|
498
|
-
declare type ColorToken = "transparent" | "current" | "inherit" | "neutral.0" | "neutral.10" | "neutral.20" | "neutral.30" | "neutral.40" | "neutral.50" | "neutral.60" | "neutral.70" | "neutral.80" | "neutral.90" | "neutral.100" | "neutral.110" | "neutralA.10" | "neutralA.20" | "neutralA.30" | "neutralA.40" | "neutralA.50" | "darkNeutral.0" | "darkNeutral.10" | "darkNeutral.20" | "darkNeutral.25" | "darkNeutral.30" | "darkNeutral.35" | "darkNeutral.40" | "darkNeutral.50" | "darkNeutral.60" | "darkNeutral.70" | "darkNeutral.80" | "darkNeutral.90" | "darkNeutral.100" | "darkNeutral.110" | "darkNeutral.120" | "darkNeutralA.10" | "darkNeutralA.20" | "darkNeutralA.25" | "darkNeutralA.30" | "darkNeutralA.35" | "darkNeutralA.40" | "darkNeutralA.50" | "darkNeutralA.-10" | "gray.10" | "gray.20" | "gray.30" | "gray.40" | "gray.50" | "gray.60" | "gray.70" | "gray.80" | "gray.90" | "gray.100" | "red.10" | "red.20" | "red.30" | "red.40" | "red.50" | "red.60" | "red.70" | "red.80" | "red.90" | "red.100" | "orange.10" | "orange.20" | "orange.30" | "orange.40" | "orange.50" | "orange.60" | "orange.70" | "orange.80" | "orange.90" | "orange.100" | "yellow.10" | "yellow.20" | "yellow.30" | "yellow.40" | "yellow.50" | "yellow.60" | "yellow.70" | "yellow.80" | "yellow.90" | "yellow.100" | "lime.10" | "lime.20" | "lime.30" | "lime.40" | "lime.50" | "lime.60" | "lime.70" | "lime.80" | "lime.90" | "lime.100" | "green.10" | "green.20" | "green.30" | "green.40" | "green.50" | "green.60" | "green.70" | "green.80" | "green.90" | "green.100" | "teal.10" | "teal.20" | "teal.30" | "teal.40" | "teal.50" | "teal.60" | "teal.70" | "teal.80" | "teal.90" | "teal.100" | "blue.10" | "blue.20" | "blue.30" | "blue.40" | "blue.50" | "blue.60" | "blue.70" | "blue.80" | "blue.90" | "blue.100" | "indigo.10" | "indigo.20" | "indigo.30" | "indigo.40" | "indigo.50" | "indigo.60" | "indigo.70" | "indigo.80" | "indigo.90" | "indigo.100" | "purple.10" | "purple.20" | "purple.30" | "purple.40" | "purple.50" | "purple.60" | "purple.70" | "purple.80" | "purple.90" | "purple.100" | "magenta.10" | "magenta.20" | "magenta.30" | "magenta.40" | "magenta.50" | "magenta.60" | "magenta.70" | "magenta.80" | "magenta.90" | "magenta.100" | "tan.10" | "tan.20" | "tan.30" | "tan.40" | "tan.50" | "tan.60" | "tan.70" | "tan.80" | "tan.90" | "tan.100" | "slate.0" | "slate.1" | "slate.2" | "slate.3" | "slate.4" | "slate.5" | "slate.10" | "slate.20" | "slate.30" | "slate.40" | "slate.50" | "slate.60" | "slate.70" | "slate.80" | "slate.90" | "slate.100" | "shadow.raised.1.light" | "shadow.raised.1.dark" | "shadow.raised.2.light" | "shadow.raised.2.dark" | "shadow.elevated.1.light" | "shadow.elevated.1.dark" | "shadow.elevated.2.light" | "shadow.elevated.2.dark" | "shadow.elevated.3.light" | "shadow.elevated.3.dark" | "shadow.overlay.1.light" | "shadow.overlay.1.dark" | "shadow.overlay.2.light" | "shadow.overlay.2.dark" | "shadow.overlay.3.light" | "shadow.overlay.3.dark" | "shadow.overflow.1.light" | "shadow.overflow.1.dark" | "shadow.overflow.2.light" | "shadow.overflow.2.dark" | "brand.10" | "brand.20" | "brand.30" | "brand.40" | "brand.50" | "brand.60" | "brand.70" | "brand.80" | "brand.90" | "brand.100" | "bg.disabled" | "bg.neutral" | "bg.neutral.hovered" | "bg.neutral.pressed" | "bg.neutral.bold" | "bg.neutral.bold.hovered" | "bg.neutral.bold.pressed" | "bg.neutral.boldest" | "bg.neutral.subtle" | "bg.neutral.subtle.hovered" | "bg.neutral.subtle.pressed" | "bg.neutral.inverse" | "bg.neutral.inverse.subtle" | "bg.neutral.inverse.subtle.hovered" | "bg.neutral.solid" | "bg.selected" | "bg.selected.hovered" | "bg.selected.pressed" | "bg.selected.bold" | "bg.selected.bold.hovered" | "bg.selected.bold.pressed" | "bg.brand.bold" | "bg.brand.bold.hovered" | "bg.brand.bold.pressed" | "bg.brand.boldest" | "bg.brand.boldest.hovered" | "bg.brand.boldest.pressed" | "bg.brand.subtle" | "bg.brand.subtle.hovered" | "bg.brand.subtle.pressed" | "bg.success" | "bg.success.hovered" | "bg.success.pressed" | "bg.success.bold" | "bg.success.bold.hovered" | "bg.success.bold.pressed" | "bg.warning" | "bg.warning.hovered" | "bg.warning.pressed" | "bg.warning.bold" | "bg.warning.bold.hovered" | "bg.warning.bold.pressed" | "bg.danger" | "bg.danger.hovered" | "bg.danger.pressed" | "bg.danger.bold" | "bg.danger.bold.hovered" | "bg.danger.bold.pressed" | "bg.info" | "bg.info.hovered" | "bg.info.pressed" | "bg.info.bold" | "bg.info.bold.hovered" | "bg.info.bold.pressed" | "bg.input" | "bg.input.hovered" | "bg.input.pressed" | "bg.accent.neutral" | "bg.accent.neutral.subtle" | "bg.accent.neutral.subtlest" | "bg.accent.neutral.bold" | "bg.accent.blue" | "bg.accent.blue.subtle" | "bg.accent.blue.subtlest" | "bg.accent.blue.bold" | "bg.accent.green" | "bg.accent.green.subtle" | "bg.accent.green.subtlest" | "bg.accent.green.bold" | "bg.accent.indigo" | "bg.accent.indigo.subtle" | "bg.accent.indigo.subtlest" | "bg.accent.indigo.bold" | "bg.accent.lime" | "bg.accent.lime.subtle" | "bg.accent.lime.subtlest" | "bg.accent.lime.bold" | "bg.accent.magenta" | "bg.accent.magenta.subtle" | "bg.accent.magenta.subtlest" | "bg.accent.magenta.bold" | "bg.accent.orange" | "bg.accent.orange.subtle" | "bg.accent.orange.subtlest" | "bg.accent.orange.bold" | "bg.accent.purple" | "bg.accent.purple.subtle" | "bg.accent.purple.subtlest" | "bg.accent.purple.bold" | "bg.accent.red" | "bg.accent.red.subtle" | "bg.accent.red.subtlest" | "bg.accent.red.bold" | "bg.accent.tan" | "bg.accent.tan.subtle" | "bg.accent.tan.subtlest" | "bg.accent.tan.bold" | "bg.accent.teal" | "bg.accent.teal.subtle" | "bg.accent.teal.subtlest" | "bg.accent.teal.bold" | "bg.accent.yellow" | "bg.accent.yellow.subtle" | "bg.accent.yellow.subtlest" | "bg.accent.yellow.bold" | "blanket" | "blanket.danger" | "blanket.selected" | "border" | "border.bold" | "border.inverse" | "border.inverse.focused" | "border.disabled" | "border.focused" | "border.focused.inverse" | "border.selected" | "border.input" | "border.success" | "border.warning" | "border.danger" | "border.info" | "icon" | "icon.subtle" | "icon.subtlest" | "icon.inverse" | "icon.selected" | "icon.disabled" | "icon.decorative" | "icon.decorative.hovered" | "icon.decorative.inverse" | "icon.decorative.inverse.hovered" | "icon.decorative.subtle" | "icon.success" | "icon.warning" | "icon.warning.inverse" | "icon.danger" | "icon.danger.inverse" | "icon.info" | "link" | "link.pressed" | "surface" | "surface.hovered" | "surface.pressed" | "surface.sunken" | "surface.raised" | "surface.raised.hovered" | "surface.raised.pressed" | "surface.overlay" | "surface.overlay.hovered" | "surface.overlay.pressed" | "surface.selected" | "surface.selected.hovered" | "surface.selected.pressed" | "text" | "text.subtle" | "text.subtlest" | "text.bold" | "text.inverse" | "text.inverse.subtlest" | "text.selected" | "text.placeholder" | "text.disabled" | "text.success" | "text.success.inverse" | "text.warning" | "text.warning.inverse" | "text.danger" | "text.danger.inverse" | "text.info" | "text.info.inverse" | "text.accent.neutral" | "text.accent.neutral.bold" | "text.accent.red" | "text.accent.red.bold" | "text.accent.orange" | "text.accent.orange.bold" | "text.accent.yellow" | "text.accent.yellow.bold" | "text.accent.lime" | "text.accent.lime.bold" | "text.accent.green" | "text.accent.green.bold" | "text.accent.teal" | "text.accent.teal.bold" | "text.accent.blue" | "text.accent.blue.bold" | "text.accent.indigo" | "text.accent.indigo.bold" | "text.accent.purple" | "text.accent.purple.bold" | "text.accent.magenta" | "text.accent.magenta.bold" | "text.accent.tan" | "text.accent.tan.bold" | "colorPalette" | "colorPalette.0" | "colorPalette.10" | "colorPalette.20" | "colorPalette.30" | "colorPalette.40" | "colorPalette.50" | "colorPalette.60" | "colorPalette.70" | "colorPalette.80" | "colorPalette.90" | "colorPalette.100" | "colorPalette.110" | "colorPalette.25" | "colorPalette.35" | "colorPalette.120" | "colorPalette.-10" | "colorPalette.1" | "colorPalette.2" | "colorPalette.3" | "colorPalette.4" | "colorPalette.5" | "colorPalette.raised.1.light" | "colorPalette.1.light" | "colorPalette.light" | "colorPalette.raised.1.dark" | "colorPalette.1.dark" | "colorPalette.dark" | "colorPalette.raised.2.light" | "colorPalette.2.light" | "colorPalette.raised.2.dark" | "colorPalette.2.dark" | "colorPalette.elevated.1.light" | "colorPalette.elevated.1.dark" | "colorPalette.elevated.2.light" | "colorPalette.elevated.2.dark" | "colorPalette.elevated.3.light" | "colorPalette.3.light" | "colorPalette.elevated.3.dark" | "colorPalette.3.dark" | "colorPalette.overlay.1.light" | "colorPalette.overlay.1.dark" | "colorPalette.overlay.2.light" | "colorPalette.overlay.2.dark" | "colorPalette.overlay.3.light" | "colorPalette.overlay.3.dark" | "colorPalette.overflow.1.light" | "colorPalette.overflow.1.dark" | "colorPalette.overflow.2.light" | "colorPalette.overflow.2.dark" | "colorPalette.disabled" | "colorPalette.neutral" | "colorPalette.neutral.hovered" | "colorPalette.hovered" | "colorPalette.neutral.pressed" | "colorPalette.pressed" | "colorPalette.neutral.bold" | "colorPalette.bold" | "colorPalette.neutral.bold.hovered" | "colorPalette.bold.hovered" | "colorPalette.neutral.bold.pressed" | "colorPalette.bold.pressed" | "colorPalette.neutral.boldest" | "colorPalette.boldest" | "colorPalette.neutral.subtle" | "colorPalette.subtle" | "colorPalette.neutral.subtle.hovered" | "colorPalette.subtle.hovered" | "colorPalette.neutral.subtle.pressed" | "colorPalette.subtle.pressed" | "colorPalette.neutral.inverse" | "colorPalette.inverse" | "colorPalette.neutral.inverse.subtle" | "colorPalette.inverse.subtle" | "colorPalette.neutral.inverse.subtle.hovered" | "colorPalette.inverse.subtle.hovered" | "colorPalette.neutral.solid" | "colorPalette.solid" | "colorPalette.selected" | "colorPalette.selected.hovered" | "colorPalette.selected.pressed" | "colorPalette.selected.bold" | "colorPalette.selected.bold.hovered" | "colorPalette.selected.bold.pressed" | "colorPalette.brand.bold" | "colorPalette.brand.bold.hovered" | "colorPalette.brand.bold.pressed" | "colorPalette.brand.boldest" | "colorPalette.brand.boldest.hovered" | "colorPalette.boldest.hovered" | "colorPalette.brand.boldest.pressed" | "colorPalette.boldest.pressed" | "colorPalette.brand.subtle" | "colorPalette.brand.subtle.hovered" | "colorPalette.brand.subtle.pressed" | "colorPalette.success" | "colorPalette.success.hovered" | "colorPalette.success.pressed" | "colorPalette.success.bold" | "colorPalette.success.bold.hovered" | "colorPalette.success.bold.pressed" | "colorPalette.warning" | "colorPalette.warning.hovered" | "colorPalette.warning.pressed" | "colorPalette.warning.bold" | "colorPalette.warning.bold.hovered" | "colorPalette.warning.bold.pressed" | "colorPalette.danger" | "colorPalette.danger.hovered" | "colorPalette.danger.pressed" | "colorPalette.danger.bold" | "colorPalette.danger.bold.hovered" | "colorPalette.danger.bold.pressed" | "colorPalette.info" | "colorPalette.info.hovered" | "colorPalette.info.pressed" | "colorPalette.info.bold" | "colorPalette.info.bold.hovered" | "colorPalette.info.bold.pressed" | "colorPalette.input" | "colorPalette.input.hovered" | "colorPalette.input.pressed" | "colorPalette.accent.neutral" | "colorPalette.accent.neutral.subtle" | "colorPalette.accent.neutral.subtlest" | "colorPalette.neutral.subtlest" | "colorPalette.subtlest" | "colorPalette.accent.neutral.bold" | "colorPalette.accent.blue" | "colorPalette.blue" | "colorPalette.accent.blue.subtle" | "colorPalette.blue.subtle" | "colorPalette.accent.blue.subtlest" | "colorPalette.blue.subtlest" | "colorPalette.accent.blue.bold" | "colorPalette.blue.bold" | "colorPalette.accent.green" | "colorPalette.green" | "colorPalette.accent.green.subtle" | "colorPalette.green.subtle" | "colorPalette.accent.green.subtlest" | "colorPalette.green.subtlest" | "colorPalette.accent.green.bold" | "colorPalette.green.bold" | "colorPalette.accent.indigo" | "colorPalette.indigo" | "colorPalette.accent.indigo.subtle" | "colorPalette.indigo.subtle" | "colorPalette.accent.indigo.subtlest" | "colorPalette.indigo.subtlest" | "colorPalette.accent.indigo.bold" | "colorPalette.indigo.bold" | "colorPalette.accent.lime" | "colorPalette.lime" | "colorPalette.accent.lime.subtle" | "colorPalette.lime.subtle" | "colorPalette.accent.lime.subtlest" | "colorPalette.lime.subtlest" | "colorPalette.accent.lime.bold" | "colorPalette.lime.bold" | "colorPalette.accent.magenta" | "colorPalette.magenta" | "colorPalette.accent.magenta.subtle" | "colorPalette.magenta.subtle" | "colorPalette.accent.magenta.subtlest" | "colorPalette.magenta.subtlest" | "colorPalette.accent.magenta.bold" | "colorPalette.magenta.bold" | "colorPalette.accent.orange" | "colorPalette.orange" | "colorPalette.accent.orange.subtle" | "colorPalette.orange.subtle" | "colorPalette.accent.orange.subtlest" | "colorPalette.orange.subtlest" | "colorPalette.accent.orange.bold" | "colorPalette.orange.bold" | "colorPalette.accent.purple" | "colorPalette.purple" | "colorPalette.accent.purple.subtle" | "colorPalette.purple.subtle" | "colorPalette.accent.purple.subtlest" | "colorPalette.purple.subtlest" | "colorPalette.accent.purple.bold" | "colorPalette.purple.bold" | "colorPalette.accent.red" | "colorPalette.red" | "colorPalette.accent.red.subtle" | "colorPalette.red.subtle" | "colorPalette.accent.red.subtlest" | "colorPalette.red.subtlest" | "colorPalette.accent.red.bold" | "colorPalette.red.bold" | "colorPalette.accent.tan" | "colorPalette.tan" | "colorPalette.accent.tan.subtle" | "colorPalette.tan.subtle" | "colorPalette.accent.tan.subtlest" | "colorPalette.tan.subtlest" | "colorPalette.accent.tan.bold" | "colorPalette.tan.bold" | "colorPalette.accent.teal" | "colorPalette.teal" | "colorPalette.accent.teal.subtle" | "colorPalette.teal.subtle" | "colorPalette.accent.teal.subtlest" | "colorPalette.teal.subtlest" | "colorPalette.accent.teal.bold" | "colorPalette.teal.bold" | "colorPalette.accent.yellow" | "colorPalette.yellow" | "colorPalette.accent.yellow.subtle" | "colorPalette.yellow.subtle" | "colorPalette.accent.yellow.subtlest" | "colorPalette.yellow.subtlest" | "colorPalette.accent.yellow.bold" | "colorPalette.yellow.bold" | "colorPalette.inverse.focused" | "colorPalette.focused" | "colorPalette.focused.inverse" | "colorPalette.decorative" | "colorPalette.decorative.hovered" | "colorPalette.decorative.inverse" | "colorPalette.decorative.inverse.hovered" | "colorPalette.inverse.hovered" | "colorPalette.decorative.subtle" | "colorPalette.warning.inverse" | "colorPalette.danger.inverse" | "colorPalette.sunken" | "colorPalette.raised" | "colorPalette.raised.hovered" | "colorPalette.raised.pressed" | "colorPalette.overlay" | "colorPalette.overlay.hovered" | "colorPalette.overlay.pressed" | "colorPalette.inverse.subtlest" | "colorPalette.placeholder" | "colorPalette.success.inverse" | "colorPalette.info.inverse"
|
|
891
|
+
declare type ColorToken = "transparent" | "current" | "inherit" | "neutral.0" | "neutral.10" | "neutral.20" | "neutral.30" | "neutral.40" | "neutral.50" | "neutral.60" | "neutral.70" | "neutral.80" | "neutral.90" | "neutral.100" | "neutral.110" | "neutralA.10" | "neutralA.20" | "neutralA.30" | "neutralA.40" | "neutralA.50" | "darkNeutral.0" | "darkNeutral.10" | "darkNeutral.20" | "darkNeutral.25" | "darkNeutral.30" | "darkNeutral.35" | "darkNeutral.40" | "darkNeutral.50" | "darkNeutral.60" | "darkNeutral.70" | "darkNeutral.80" | "darkNeutral.90" | "darkNeutral.100" | "darkNeutral.110" | "darkNeutral.120" | "darkNeutralA.10" | "darkNeutralA.20" | "darkNeutralA.25" | "darkNeutralA.30" | "darkNeutralA.35" | "darkNeutralA.40" | "darkNeutralA.50" | "darkNeutralA.-10" | "gray.10" | "gray.20" | "gray.30" | "gray.40" | "gray.50" | "gray.60" | "gray.70" | "gray.80" | "gray.90" | "gray.100" | "red.10" | "red.20" | "red.30" | "red.40" | "red.50" | "red.60" | "red.70" | "red.80" | "red.90" | "red.100" | "orange.10" | "orange.20" | "orange.30" | "orange.40" | "orange.50" | "orange.60" | "orange.70" | "orange.80" | "orange.90" | "orange.100" | "yellow.10" | "yellow.20" | "yellow.30" | "yellow.40" | "yellow.50" | "yellow.60" | "yellow.70" | "yellow.80" | "yellow.90" | "yellow.100" | "lime.10" | "lime.20" | "lime.30" | "lime.40" | "lime.50" | "lime.60" | "lime.70" | "lime.80" | "lime.90" | "lime.100" | "green.10" | "green.20" | "green.30" | "green.40" | "green.50" | "green.60" | "green.70" | "green.80" | "green.90" | "green.100" | "teal.10" | "teal.20" | "teal.30" | "teal.40" | "teal.50" | "teal.60" | "teal.70" | "teal.80" | "teal.90" | "teal.100" | "blue.10" | "blue.20" | "blue.30" | "blue.40" | "blue.50" | "blue.60" | "blue.70" | "blue.80" | "blue.90" | "blue.100" | "indigo.10" | "indigo.20" | "indigo.30" | "indigo.40" | "indigo.50" | "indigo.60" | "indigo.70" | "indigo.80" | "indigo.90" | "indigo.100" | "purple.10" | "purple.20" | "purple.30" | "purple.40" | "purple.50" | "purple.60" | "purple.70" | "purple.80" | "purple.90" | "purple.100" | "magenta.10" | "magenta.20" | "magenta.30" | "magenta.40" | "magenta.50" | "magenta.60" | "magenta.70" | "magenta.80" | "magenta.90" | "magenta.100" | "tan.10" | "tan.20" | "tan.30" | "tan.40" | "tan.50" | "tan.60" | "tan.70" | "tan.80" | "tan.90" | "tan.100" | "slate.0" | "slate.1" | "slate.2" | "slate.3" | "slate.4" | "slate.5" | "slate.10" | "slate.20" | "slate.30" | "slate.40" | "slate.50" | "slate.60" | "slate.70" | "slate.80" | "slate.90" | "slate.100" | "shadow.raised.1.light" | "shadow.raised.1.dark" | "shadow.raised.2.light" | "shadow.raised.2.dark" | "shadow.elevated.1.light" | "shadow.elevated.1.dark" | "shadow.elevated.2.light" | "shadow.elevated.2.dark" | "shadow.elevated.3.light" | "shadow.elevated.3.dark" | "shadow.overlay.1.light" | "shadow.overlay.1.dark" | "shadow.overlay.2.light" | "shadow.overlay.2.dark" | "shadow.overlay.3.light" | "shadow.overlay.3.dark" | "shadow.overflow.1.light" | "shadow.overflow.1.dark" | "shadow.overflow.2.light" | "shadow.overflow.2.dark" | "brand.10" | "brand.20" | "brand.30" | "brand.40" | "brand.50" | "brand.60" | "brand.70" | "brand.80" | "brand.90" | "brand.100" | "bg.disabled" | "bg.neutral" | "bg.neutral.hovered" | "bg.neutral.pressed" | "bg.neutral.bold" | "bg.neutral.bold.hovered" | "bg.neutral.bold.pressed" | "bg.neutral.boldest" | "bg.neutral.subtle" | "bg.neutral.subtle.hovered" | "bg.neutral.subtle.pressed" | "bg.neutral.inverse" | "bg.neutral.inverse.subtle" | "bg.neutral.inverse.subtle.hovered" | "bg.neutral.solid" | "bg.selected" | "bg.selected.hovered" | "bg.selected.pressed" | "bg.selected.bold" | "bg.selected.bold.hovered" | "bg.selected.bold.pressed" | "bg.brand.bold" | "bg.brand.bold.hovered" | "bg.brand.bold.pressed" | "bg.brand.boldest" | "bg.brand.boldest.hovered" | "bg.brand.boldest.pressed" | "bg.brand.subtle" | "bg.brand.subtle.hovered" | "bg.brand.subtle.pressed" | "bg.success" | "bg.success.hovered" | "bg.success.pressed" | "bg.success.bold" | "bg.success.bold.hovered" | "bg.success.bold.pressed" | "bg.warning" | "bg.warning.hovered" | "bg.warning.pressed" | "bg.warning.bold" | "bg.warning.bold.hovered" | "bg.warning.bold.pressed" | "bg.danger" | "bg.danger.hovered" | "bg.danger.pressed" | "bg.danger.bold" | "bg.danger.bold.hovered" | "bg.danger.bold.pressed" | "bg.info" | "bg.info.hovered" | "bg.info.pressed" | "bg.info.bold" | "bg.info.bold.hovered" | "bg.info.bold.pressed" | "bg.input" | "bg.input.hovered" | "bg.input.pressed" | "bg.accent.neutral" | "bg.accent.neutral.subtle" | "bg.accent.neutral.subtlest" | "bg.accent.neutral.bold" | "bg.accent.blue" | "bg.accent.blue.subtle" | "bg.accent.blue.subtlest" | "bg.accent.blue.bold" | "bg.accent.green" | "bg.accent.green.subtle" | "bg.accent.green.subtlest" | "bg.accent.green.bold" | "bg.accent.indigo" | "bg.accent.indigo.subtle" | "bg.accent.indigo.subtlest" | "bg.accent.indigo.bold" | "bg.accent.lime" | "bg.accent.lime.subtle" | "bg.accent.lime.subtlest" | "bg.accent.lime.bold" | "bg.accent.magenta" | "bg.accent.magenta.subtle" | "bg.accent.magenta.subtlest" | "bg.accent.magenta.bold" | "bg.accent.orange" | "bg.accent.orange.subtle" | "bg.accent.orange.subtlest" | "bg.accent.orange.bold" | "bg.accent.purple" | "bg.accent.purple.subtle" | "bg.accent.purple.subtlest" | "bg.accent.purple.bold" | "bg.accent.red" | "bg.accent.red.subtle" | "bg.accent.red.subtlest" | "bg.accent.red.bold" | "bg.accent.tan" | "bg.accent.tan.subtle" | "bg.accent.tan.subtlest" | "bg.accent.tan.bold" | "bg.accent.teal" | "bg.accent.teal.subtle" | "bg.accent.teal.subtlest" | "bg.accent.teal.bold" | "bg.accent.yellow" | "bg.accent.yellow.subtle" | "bg.accent.yellow.subtlest" | "bg.accent.yellow.bold" | "blanket" | "blanket.danger" | "blanket.selected" | "border" | "border.bold" | "border.inverse" | "border.inverse.focused" | "border.disabled" | "border.focused" | "border.focused.inverse" | "border.selected" | "border.input" | "border.success" | "border.warning" | "border.danger" | "border.info" | "icon" | "icon.subtle" | "icon.subtlest" | "icon.inverse" | "icon.selected" | "icon.disabled" | "icon.decorative" | "icon.decorative.hovered" | "icon.decorative.inverse" | "icon.decorative.inverse.hovered" | "icon.decorative.subtle" | "icon.success" | "icon.warning" | "icon.warning.inverse" | "icon.danger" | "icon.danger.inverse" | "icon.info" | "link" | "link.pressed" | "shadow.raised.1" | "shadow.raised.2" | "shadow.elevated.1" | "shadow.elevated.2" | "shadow.elevated.3" | "shadow.overlay.1" | "shadow.overlay.2" | "shadow.overlay.3" | "shadow.overflow.1" | "shadow.overflow.2" | "surface" | "surface.hovered" | "surface.pressed" | "surface.sunken" | "surface.raised" | "surface.raised.hovered" | "surface.raised.pressed" | "surface.overlay" | "surface.overlay.hovered" | "surface.overlay.pressed" | "surface.selected" | "surface.selected.hovered" | "surface.selected.pressed" | "text" | "text.subtle" | "text.subtlest" | "text.bold" | "text.inverse" | "text.inverse.subtlest" | "text.selected" | "text.placeholder" | "text.disabled" | "text.success" | "text.success.inverse" | "text.warning" | "text.warning.inverse" | "text.danger" | "text.danger.inverse" | "text.info" | "text.info.inverse" | "text.accent.neutral" | "text.accent.neutral.bold" | "text.accent.red" | "text.accent.red.bold" | "text.accent.orange" | "text.accent.orange.bold" | "text.accent.yellow" | "text.accent.yellow.bold" | "text.accent.lime" | "text.accent.lime.bold" | "text.accent.green" | "text.accent.green.bold" | "text.accent.teal" | "text.accent.teal.bold" | "text.accent.blue" | "text.accent.blue.bold" | "text.accent.indigo" | "text.accent.indigo.bold" | "text.accent.purple" | "text.accent.purple.bold" | "text.accent.magenta" | "text.accent.magenta.bold" | "text.accent.tan" | "text.accent.tan.bold" | "colorPalette" | "colorPalette.0" | "colorPalette.10" | "colorPalette.20" | "colorPalette.30" | "colorPalette.40" | "colorPalette.50" | "colorPalette.60" | "colorPalette.70" | "colorPalette.80" | "colorPalette.90" | "colorPalette.100" | "colorPalette.110" | "colorPalette.25" | "colorPalette.35" | "colorPalette.120" | "colorPalette.-10" | "colorPalette.1" | "colorPalette.2" | "colorPalette.3" | "colorPalette.4" | "colorPalette.5" | "colorPalette.raised.1.light" | "colorPalette.1.light" | "colorPalette.light" | "colorPalette.raised.1.dark" | "colorPalette.1.dark" | "colorPalette.dark" | "colorPalette.raised.2.light" | "colorPalette.2.light" | "colorPalette.raised.2.dark" | "colorPalette.2.dark" | "colorPalette.elevated.1.light" | "colorPalette.elevated.1.dark" | "colorPalette.elevated.2.light" | "colorPalette.elevated.2.dark" | "colorPalette.elevated.3.light" | "colorPalette.3.light" | "colorPalette.elevated.3.dark" | "colorPalette.3.dark" | "colorPalette.overlay.1.light" | "colorPalette.overlay.1.dark" | "colorPalette.overlay.2.light" | "colorPalette.overlay.2.dark" | "colorPalette.overlay.3.light" | "colorPalette.overlay.3.dark" | "colorPalette.overflow.1.light" | "colorPalette.overflow.1.dark" | "colorPalette.overflow.2.light" | "colorPalette.overflow.2.dark" | "colorPalette.disabled" | "colorPalette.neutral" | "colorPalette.neutral.hovered" | "colorPalette.hovered" | "colorPalette.neutral.pressed" | "colorPalette.pressed" | "colorPalette.neutral.bold" | "colorPalette.bold" | "colorPalette.neutral.bold.hovered" | "colorPalette.bold.hovered" | "colorPalette.neutral.bold.pressed" | "colorPalette.bold.pressed" | "colorPalette.neutral.boldest" | "colorPalette.boldest" | "colorPalette.neutral.subtle" | "colorPalette.subtle" | "colorPalette.neutral.subtle.hovered" | "colorPalette.subtle.hovered" | "colorPalette.neutral.subtle.pressed" | "colorPalette.subtle.pressed" | "colorPalette.neutral.inverse" | "colorPalette.inverse" | "colorPalette.neutral.inverse.subtle" | "colorPalette.inverse.subtle" | "colorPalette.neutral.inverse.subtle.hovered" | "colorPalette.inverse.subtle.hovered" | "colorPalette.neutral.solid" | "colorPalette.solid" | "colorPalette.selected" | "colorPalette.selected.hovered" | "colorPalette.selected.pressed" | "colorPalette.selected.bold" | "colorPalette.selected.bold.hovered" | "colorPalette.selected.bold.pressed" | "colorPalette.brand.bold" | "colorPalette.brand.bold.hovered" | "colorPalette.brand.bold.pressed" | "colorPalette.brand.boldest" | "colorPalette.brand.boldest.hovered" | "colorPalette.boldest.hovered" | "colorPalette.brand.boldest.pressed" | "colorPalette.boldest.pressed" | "colorPalette.brand.subtle" | "colorPalette.brand.subtle.hovered" | "colorPalette.brand.subtle.pressed" | "colorPalette.success" | "colorPalette.success.hovered" | "colorPalette.success.pressed" | "colorPalette.success.bold" | "colorPalette.success.bold.hovered" | "colorPalette.success.bold.pressed" | "colorPalette.warning" | "colorPalette.warning.hovered" | "colorPalette.warning.pressed" | "colorPalette.warning.bold" | "colorPalette.warning.bold.hovered" | "colorPalette.warning.bold.pressed" | "colorPalette.danger" | "colorPalette.danger.hovered" | "colorPalette.danger.pressed" | "colorPalette.danger.bold" | "colorPalette.danger.bold.hovered" | "colorPalette.danger.bold.pressed" | "colorPalette.info" | "colorPalette.info.hovered" | "colorPalette.info.pressed" | "colorPalette.info.bold" | "colorPalette.info.bold.hovered" | "colorPalette.info.bold.pressed" | "colorPalette.input" | "colorPalette.input.hovered" | "colorPalette.input.pressed" | "colorPalette.accent.neutral" | "colorPalette.accent.neutral.subtle" | "colorPalette.accent.neutral.subtlest" | "colorPalette.neutral.subtlest" | "colorPalette.subtlest" | "colorPalette.accent.neutral.bold" | "colorPalette.accent.blue" | "colorPalette.blue" | "colorPalette.accent.blue.subtle" | "colorPalette.blue.subtle" | "colorPalette.accent.blue.subtlest" | "colorPalette.blue.subtlest" | "colorPalette.accent.blue.bold" | "colorPalette.blue.bold" | "colorPalette.accent.green" | "colorPalette.green" | "colorPalette.accent.green.subtle" | "colorPalette.green.subtle" | "colorPalette.accent.green.subtlest" | "colorPalette.green.subtlest" | "colorPalette.accent.green.bold" | "colorPalette.green.bold" | "colorPalette.accent.indigo" | "colorPalette.indigo" | "colorPalette.accent.indigo.subtle" | "colorPalette.indigo.subtle" | "colorPalette.accent.indigo.subtlest" | "colorPalette.indigo.subtlest" | "colorPalette.accent.indigo.bold" | "colorPalette.indigo.bold" | "colorPalette.accent.lime" | "colorPalette.lime" | "colorPalette.accent.lime.subtle" | "colorPalette.lime.subtle" | "colorPalette.accent.lime.subtlest" | "colorPalette.lime.subtlest" | "colorPalette.accent.lime.bold" | "colorPalette.lime.bold" | "colorPalette.accent.magenta" | "colorPalette.magenta" | "colorPalette.accent.magenta.subtle" | "colorPalette.magenta.subtle" | "colorPalette.accent.magenta.subtlest" | "colorPalette.magenta.subtlest" | "colorPalette.accent.magenta.bold" | "colorPalette.magenta.bold" | "colorPalette.accent.orange" | "colorPalette.orange" | "colorPalette.accent.orange.subtle" | "colorPalette.orange.subtle" | "colorPalette.accent.orange.subtlest" | "colorPalette.orange.subtlest" | "colorPalette.accent.orange.bold" | "colorPalette.orange.bold" | "colorPalette.accent.purple" | "colorPalette.purple" | "colorPalette.accent.purple.subtle" | "colorPalette.purple.subtle" | "colorPalette.accent.purple.subtlest" | "colorPalette.purple.subtlest" | "colorPalette.accent.purple.bold" | "colorPalette.purple.bold" | "colorPalette.accent.red" | "colorPalette.red" | "colorPalette.accent.red.subtle" | "colorPalette.red.subtle" | "colorPalette.accent.red.subtlest" | "colorPalette.red.subtlest" | "colorPalette.accent.red.bold" | "colorPalette.red.bold" | "colorPalette.accent.tan" | "colorPalette.tan" | "colorPalette.accent.tan.subtle" | "colorPalette.tan.subtle" | "colorPalette.accent.tan.subtlest" | "colorPalette.tan.subtlest" | "colorPalette.accent.tan.bold" | "colorPalette.tan.bold" | "colorPalette.accent.teal" | "colorPalette.teal" | "colorPalette.accent.teal.subtle" | "colorPalette.teal.subtle" | "colorPalette.accent.teal.subtlest" | "colorPalette.teal.subtlest" | "colorPalette.accent.teal.bold" | "colorPalette.teal.bold" | "colorPalette.accent.yellow" | "colorPalette.yellow" | "colorPalette.accent.yellow.subtle" | "colorPalette.yellow.subtle" | "colorPalette.accent.yellow.subtlest" | "colorPalette.yellow.subtlest" | "colorPalette.accent.yellow.bold" | "colorPalette.yellow.bold" | "colorPalette.inverse.focused" | "colorPalette.focused" | "colorPalette.focused.inverse" | "colorPalette.decorative" | "colorPalette.decorative.hovered" | "colorPalette.decorative.inverse" | "colorPalette.decorative.inverse.hovered" | "colorPalette.inverse.hovered" | "colorPalette.decorative.subtle" | "colorPalette.warning.inverse" | "colorPalette.danger.inverse" | "colorPalette.raised.1" | "colorPalette.raised.2" | "colorPalette.elevated.1" | "colorPalette.elevated.2" | "colorPalette.elevated.3" | "colorPalette.overlay.1" | "colorPalette.overlay.2" | "colorPalette.overlay.3" | "colorPalette.overflow.1" | "colorPalette.overflow.2" | "colorPalette.sunken" | "colorPalette.raised" | "colorPalette.raised.hovered" | "colorPalette.raised.pressed" | "colorPalette.overlay" | "colorPalette.overlay.hovered" | "colorPalette.overlay.pressed" | "colorPalette.inverse.subtlest" | "colorPalette.placeholder" | "colorPalette.success.inverse" | "colorPalette.info.inverse"
|
|
499
892
|
|
|
500
893
|
declare type ComponentProps<T extends ElementType> = T extends ComponentType<infer P> | Component<infer P>
|
|
501
894
|
? JSX_2.LibraryManagedAttributes<T, P>
|
|
@@ -523,7 +916,7 @@ declare interface Conditions {
|
|
|
523
916
|
"_focusWithin": string
|
|
524
917
|
/** `&:is(:focus-visible, [data-focus-visible=true])` */
|
|
525
918
|
"_focusVisible": string
|
|
526
|
-
/** `&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])` */
|
|
919
|
+
/** `&:is(:disabled, [disabled], [data-disabled=true], [aria-disabled=true])` */
|
|
527
920
|
"_disabled": string
|
|
528
921
|
/** `&:is(:active, [data-active=true])` */
|
|
529
922
|
"_active": string
|
|
@@ -531,25 +924,25 @@ declare interface Conditions {
|
|
|
531
924
|
"_visited": string
|
|
532
925
|
/** `&:target` */
|
|
533
926
|
"_target": string
|
|
534
|
-
/** `&:is(:read-only, [data-read-only], [aria-readonly=true])` */
|
|
927
|
+
/** `&:is(:read-only, [readonly], [data-read-only=true], [aria-readonly=true])` */
|
|
535
928
|
"_readOnly": string
|
|
536
929
|
/** `&:read-write` */
|
|
537
930
|
"_readWrite": string
|
|
538
|
-
/** `&:is(:empty, [data-empty])` */
|
|
931
|
+
/** `&:is(:empty, [data-empty=true])` */
|
|
539
932
|
"_empty": string
|
|
540
|
-
/** `&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])` */
|
|
933
|
+
/** `&:is(:checked, [data-checked=true], [aria-checked=true], [data-state="checked"])` */
|
|
541
934
|
"_checked": string
|
|
542
935
|
/** `&:enabled` */
|
|
543
936
|
"_enabled": string
|
|
544
|
-
/** `&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])` */
|
|
937
|
+
/** `&:is([aria-expanded=true], [data-expanded=true], [data-state="expanded"])` */
|
|
545
938
|
"_expanded": string
|
|
546
|
-
/** `&[data-highlighted]` */
|
|
939
|
+
/** `&[data-highlighted=true]` */
|
|
547
940
|
"_highlighted": string
|
|
548
|
-
/** `&[data-complete]` */
|
|
941
|
+
/** `&[data-complete=true]` */
|
|
549
942
|
"_complete": string
|
|
550
|
-
/** `&[data-incomplete]` */
|
|
943
|
+
/** `&[data-incomplete=true]` */
|
|
551
944
|
"_incomplete": string
|
|
552
|
-
/** `&[data-dragging]` */
|
|
945
|
+
/** `&[data-dragging=true]` */
|
|
553
946
|
"_dragging": string
|
|
554
947
|
/** `&::before` */
|
|
555
948
|
"_before": string
|
|
@@ -583,105 +976,105 @@ declare interface Conditions {
|
|
|
583
976
|
"_lastOfType": string
|
|
584
977
|
/** `&:only-of-type` */
|
|
585
978
|
"_onlyOfType": string
|
|
586
|
-
/** `.peer:is(:focus, [data-focus]) ~ &` */
|
|
979
|
+
/** `.peer:is(:focus, [data-focus=true]) ~ &` */
|
|
587
980
|
"_peerFocus": string
|
|
588
|
-
/** `.peer:is(:hover, [data-hover]) ~ &` */
|
|
981
|
+
/** `.peer:is(:hover, [data-hover=true]) ~ &` */
|
|
589
982
|
"_peerHover": string
|
|
590
|
-
/** `.peer:is(:active, [data-active]) ~ &` */
|
|
983
|
+
/** `.peer:is(:active, [data-active=true]) ~ &` */
|
|
591
984
|
"_peerActive": string
|
|
592
985
|
/** `.peer:focus-within ~ &` */
|
|
593
986
|
"_peerFocusWithin": string
|
|
594
987
|
/** `.peer:is(:focus-visible, [data-focus-visible]) ~ &` */
|
|
595
988
|
"_peerFocusVisible": string
|
|
596
|
-
/** `.peer:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) ~ &` */
|
|
989
|
+
/** `.peer:is(:disabled, [disabled], [data-disabled=true], [aria-disabled=true]) ~ &` */
|
|
597
990
|
"_peerDisabled": string
|
|
598
|
-
/** `.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &` */
|
|
991
|
+
/** `.peer:is(:checked, [data-checked=true], [aria-checked=true], [data-state="checked"]) ~ &` */
|
|
599
992
|
"_peerChecked": string
|
|
600
|
-
/** `.peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &` */
|
|
993
|
+
/** `.peer:is(:invalid, [data-invalid=true], [aria-invalid=true]) ~ &` */
|
|
601
994
|
"_peerInvalid": string
|
|
602
|
-
/** `.peer:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) ~ &` */
|
|
995
|
+
/** `.peer:is([aria-expanded=true], [data-expanded=true], [data-state="expanded"]) ~ &` */
|
|
603
996
|
"_peerExpanded": string
|
|
604
997
|
/** `.peer:placeholder-shown ~ &` */
|
|
605
998
|
"_peerPlaceholderShown": string
|
|
606
|
-
/** `.group:is(:focus, [data-focus]) &` */
|
|
999
|
+
/** `.group:is(:focus, [data-focus=true]) &` */
|
|
607
1000
|
"_groupFocus": string
|
|
608
|
-
/** `.group:is(:hover, [data-hover]) &` */
|
|
1001
|
+
/** `.group:is(:hover, [data-hover=true]) &` */
|
|
609
1002
|
"_groupHover": string
|
|
610
|
-
/** `.group:is(:active, [data-active]) &` */
|
|
1003
|
+
/** `.group:is(:active, [data-active=true]) &` */
|
|
611
1004
|
"_groupActive": string
|
|
612
1005
|
/** `.group:focus-within &` */
|
|
613
1006
|
"_groupFocusWithin": string
|
|
614
|
-
/** `.group:is(:focus-visible, [data-focus-visible]) &` */
|
|
1007
|
+
/** `.group:is(:focus-visible, [data-focus-visible=true]) &` */
|
|
615
1008
|
"_groupFocusVisible": string
|
|
616
|
-
/** `.group:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) &` */
|
|
1009
|
+
/** `.group:is(:disabled, [disabled], [data-disabled=true], [aria-disabled=true]) &` */
|
|
617
1010
|
"_groupDisabled": string
|
|
618
|
-
/** `.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &` */
|
|
1011
|
+
/** `.group:is(:checked, [data-checked=true], [aria-checked=true], [data-state="checked"]) &` */
|
|
619
1012
|
"_groupChecked": string
|
|
620
|
-
/** `.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &` */
|
|
1013
|
+
/** `.group:is([aria-expanded=true], [data-expanded=true], [data-state="expanded"]) &` */
|
|
621
1014
|
"_groupExpanded": string
|
|
622
|
-
/** `.group:is(:invalid, [data-invalid], [aria-invalid=true]) &` */
|
|
1015
|
+
/** `.group:is(:invalid, [data-invalid=true], [aria-invalid=true]) &` */
|
|
623
1016
|
"_groupInvalid": string
|
|
624
|
-
/** `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate"])` */
|
|
1017
|
+
/** `&:is(:indeterminate, [data-indeterminate=true], [aria-checked=mixed], [data-state="indeterminate"])` */
|
|
625
1018
|
"_indeterminate": string
|
|
626
|
-
/** `&:is(:required, [data-required], [aria-required=true])` */
|
|
1019
|
+
/** `&:is(:required, [data-required=true], [aria-required=true])` */
|
|
627
1020
|
"_required": string
|
|
628
|
-
/** `&:is(:valid, [data-valid])` */
|
|
1021
|
+
/** `&:is(:valid, [data-valid=true])` */
|
|
629
1022
|
"_valid": string
|
|
630
1023
|
/** `&:is(:invalid, [data-invalid=true], [aria-invalid=true])` */
|
|
631
1024
|
"_invalid": string
|
|
632
1025
|
/** `&:autofill` */
|
|
633
1026
|
"_autofill": string
|
|
634
|
-
/** `&:is(:in-range, [data-in-range])` */
|
|
1027
|
+
/** `&:is(:in-range, [data-in-range=true])` */
|
|
635
1028
|
"_inRange": string
|
|
636
|
-
/** `&:is(:out-of-range, [data-outside-range])` */
|
|
1029
|
+
/** `&:is(:out-of-range, [data-outside-range=true])` */
|
|
637
1030
|
"_outOfRange": string
|
|
638
|
-
/** `&::placeholder, &[data-placeholder]` */
|
|
1031
|
+
/** `&::placeholder, &[data-placeholder=true]` */
|
|
639
1032
|
"_placeholder": string
|
|
640
|
-
/** `&:is(:placeholder-shown, [data-placeholder-shown])` */
|
|
1033
|
+
/** `&:is(:placeholder-shown, [data-placeholder-shown=true])` */
|
|
641
1034
|
"_placeholderShown": string
|
|
642
|
-
/** `&:is([aria-pressed=true], [data-pressed])` */
|
|
1035
|
+
/** `&:is([aria-pressed=true], [data-pressed=true])` */
|
|
643
1036
|
"_pressed": string
|
|
644
1037
|
/** `&:is([aria-selected=true], [data-selected=true])` */
|
|
645
1038
|
"_selected": string
|
|
646
|
-
/** `&:is([aria-grabbed=true], [data-grabbed])` */
|
|
1039
|
+
/** `&:is([aria-grabbed=true], [data-grabbed=true])` */
|
|
647
1040
|
"_grabbed": string
|
|
648
|
-
/** `&[data-state=under-value]` */
|
|
1041
|
+
/** `&[data-state="under-value"]` */
|
|
649
1042
|
"_underValue": string
|
|
650
|
-
/** `&[data-state=over-value]` */
|
|
1043
|
+
/** `&[data-state="over-value"]` */
|
|
651
1044
|
"_overValue": string
|
|
652
|
-
/** `&[data-state=at-value]` */
|
|
1045
|
+
/** `&[data-state="at-value"]` */
|
|
653
1046
|
"_atValue": string
|
|
654
1047
|
/** `&:default` */
|
|
655
1048
|
"_default": string
|
|
656
1049
|
/** `&:optional` */
|
|
657
1050
|
"_optional": string
|
|
658
|
-
/** `&:is([open], [data-open], [data-state="open"], :popover-open)` */
|
|
1051
|
+
/** `&:is([open], [data-open=true], [data-state="open"], :popover-open)` */
|
|
659
1052
|
"_open": string
|
|
660
|
-
/** `&:is([closed], [data-closed], [data-state="closed"])` */
|
|
1053
|
+
/** `&:is([closed], [data-closed=true], [data-state="closed"])` */
|
|
661
1054
|
"_closed": string
|
|
662
|
-
/** `&:is(:fullscreen, [data-fullscreen])` */
|
|
1055
|
+
/** `&:is(:fullscreen, [data-fullscreen=true])` */
|
|
663
1056
|
"_fullscreen": string
|
|
664
|
-
/** `&:is([data-loading], [aria-busy=true])` */
|
|
1057
|
+
/** `&:is([data-loading=true], [aria-busy=true])` */
|
|
665
1058
|
"_loading": string
|
|
666
|
-
/** `&:is([hidden], [data-hidden])` */
|
|
1059
|
+
/** `&:is([hidden], [data-hidden=true])` */
|
|
667
1060
|
"_hidden": string
|
|
668
|
-
/** `&:is([aria-current=true], [data-current])` */
|
|
1061
|
+
/** `&:is([aria-current=true], [data-current=true])` */
|
|
669
1062
|
"_current": string
|
|
670
1063
|
/** `&[aria-current=page]` */
|
|
671
1064
|
"_currentPage": string
|
|
672
1065
|
/** `&[aria-current=step]` */
|
|
673
1066
|
"_currentStep": string
|
|
674
|
-
/** `&:is([data-today])` */
|
|
1067
|
+
/** `&:is([data-today=true])` */
|
|
675
1068
|
"_today": string
|
|
676
|
-
/** `&[data-unavailable]` */
|
|
1069
|
+
/** `&[data-unavailable=true]` */
|
|
677
1070
|
"_unavailable": string
|
|
678
|
-
/** `&[data-range-start]` */
|
|
1071
|
+
/** `&[data-range-start=true]` */
|
|
679
1072
|
"_rangeStart": string
|
|
680
|
-
/** `&[data-range-end]` */
|
|
1073
|
+
/** `&[data-range-end=true]` */
|
|
681
1074
|
"_rangeEnd": string
|
|
682
|
-
/** `&[data-now]` */
|
|
1075
|
+
/** `&[data-now=true]` */
|
|
683
1076
|
"_now": string
|
|
684
|
-
/** `&[data-topmost]` */
|
|
1077
|
+
/** `&[data-topmost=true]` */
|
|
685
1078
|
"_topmost": string
|
|
686
1079
|
/** `@media (prefers-reduced-motion: reduce)` */
|
|
687
1080
|
"_motionReduce": string
|
|
@@ -693,9 +1086,9 @@ declare interface Conditions {
|
|
|
693
1086
|
"_landscape": string
|
|
694
1087
|
/** `@media (orientation: portrait)` */
|
|
695
1088
|
"_portrait": string
|
|
696
|
-
/** `.dark &, &:is([data-color-mode=dark] *), [data-color-mode=dark] &` */
|
|
1089
|
+
/** `.dark &, &:is([data-color-mode="dark"] *), [data-color-mode="dark"] &` */
|
|
697
1090
|
"_dark": string
|
|
698
|
-
/** `.light &, &:is([data-color-mode=light] *), [data-color-mode=light] &` */
|
|
1091
|
+
/** `.light &, &:is([data-color-mode="light"] *), [data-color-mode="light"] &` */
|
|
699
1092
|
"_light": string
|
|
700
1093
|
/** `@media (prefers-color-scheme: dark)` */
|
|
701
1094
|
"_osDark": string
|
|
@@ -731,12 +1124,16 @@ declare interface Conditions {
|
|
|
731
1124
|
"_invertedColors": string
|
|
732
1125
|
/** `&:is(:deleted, [deleted], [data-deleted=true])` */
|
|
733
1126
|
"_deleted": string
|
|
734
|
-
/** `&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])` */
|
|
1127
|
+
/** `&:is([aria-collapsed=true], [data-collapsed=true], [data-state="collapsed"])` */
|
|
735
1128
|
"_collapsed": string
|
|
1129
|
+
/** `&[data-new=true]` */
|
|
1130
|
+
"_new": string
|
|
736
1131
|
/** `&[data-utility=true]` */
|
|
737
1132
|
"_utility": string
|
|
738
1133
|
/** `&:is([data-error=true])` */
|
|
739
1134
|
"_error": string
|
|
1135
|
+
/** `&:is([data-success=true])` */
|
|
1136
|
+
"_success": string
|
|
740
1137
|
/** `&:is([data-paused=true])` */
|
|
741
1138
|
"_paused": string
|
|
742
1139
|
/** `@media screen and (min-width: 30rem)` */
|
|
@@ -835,6 +1232,86 @@ declare interface Conditions {
|
|
|
835
1232
|
"base": string
|
|
836
1233
|
}
|
|
837
1234
|
|
|
1235
|
+
/**
|
|
1236
|
+
* Renders a confirmation alert dialog with cancel and confirm actions.
|
|
1237
|
+
*
|
|
1238
|
+
* Dismiss paths (Cancel, Escape, overlay, close button) call
|
|
1239
|
+
* `onOpenChange(false)` only. They do not invoke `onConfirm`. Call
|
|
1240
|
+
* `onOpenChange(false)` from `onConfirm` when the action completes.
|
|
1241
|
+
*
|
|
1242
|
+
* For async confirms, catch errors and clear `confirmLoading` in `finally`.
|
|
1243
|
+
* This component does not swallow rejections from `onConfirm`.
|
|
1244
|
+
*
|
|
1245
|
+
* @example
|
|
1246
|
+
* ```tsx
|
|
1247
|
+
* <ConfirmationModal
|
|
1248
|
+
* open={open}
|
|
1249
|
+
* onOpenChange={setOpen}
|
|
1250
|
+
* title="Delete item"
|
|
1251
|
+
* description="This action cannot be undone."
|
|
1252
|
+
* confirmLabel="Delete"
|
|
1253
|
+
* type="delete"
|
|
1254
|
+
* confirmLoading={confirmLoading}
|
|
1255
|
+
* onConfirm={async () => {
|
|
1256
|
+
* setConfirmLoading(true);
|
|
1257
|
+
* try {
|
|
1258
|
+
* await deleteItem();
|
|
1259
|
+
* setOpen(false);
|
|
1260
|
+
* } finally {
|
|
1261
|
+
* setConfirmLoading(false);
|
|
1262
|
+
* }
|
|
1263
|
+
* }}
|
|
1264
|
+
* />
|
|
1265
|
+
* ```
|
|
1266
|
+
*/
|
|
1267
|
+
export declare const ConfirmationModal: (props: ConfirmationModalProps) => JSX.Element;
|
|
1268
|
+
|
|
1269
|
+
/** Props for {@link ConfirmationModal}, a non-form confirm/cancel dialog. */
|
|
1270
|
+
export declare type ConfirmationModalProps = {
|
|
1271
|
+
/** Controlled dialog state. */
|
|
1272
|
+
open: boolean;
|
|
1273
|
+
/** Called when the dialog requests an open-state change. */
|
|
1274
|
+
onOpenChange: (open: boolean) => void;
|
|
1275
|
+
/** Alert dialog title rendered in {@link ModalHeader}. */
|
|
1276
|
+
title: string;
|
|
1277
|
+
/** Supporting message describing the action or consequence. */
|
|
1278
|
+
description: string;
|
|
1279
|
+
/** Label for the confirm action button. */
|
|
1280
|
+
confirmLabel: string;
|
|
1281
|
+
/** Label for the cancel button. @default 'Cancel' */
|
|
1282
|
+
cancelLabel?: string;
|
|
1283
|
+
/**
|
|
1284
|
+
* Visual treatment for the confirm action.
|
|
1285
|
+
* @default 'default'
|
|
1286
|
+
*/
|
|
1287
|
+
type?: ConfirmationModalType;
|
|
1288
|
+
/**
|
|
1289
|
+
* Called when the user activates the confirm button. Async work, error
|
|
1290
|
+
* handling, and `confirmLoading` are consumer-owned — catch rejections and
|
|
1291
|
+
* clear loading in `finally` so the button does not stay stuck.
|
|
1292
|
+
*/
|
|
1293
|
+
onConfirm: () => void | Promise<void>;
|
|
1294
|
+
/** Shows a loading state on the confirm button. */
|
|
1295
|
+
confirmLoading?: boolean;
|
|
1296
|
+
/** Disables the confirm button. */
|
|
1297
|
+
confirmDisabled?: boolean;
|
|
1298
|
+
/**
|
|
1299
|
+
* Prevents overlay clicks from closing the dialog.
|
|
1300
|
+
* Defaults to `false` for `default` and `true` for `delete`.
|
|
1301
|
+
*/
|
|
1302
|
+
preventOverlayClose?: boolean;
|
|
1303
|
+
/**
|
|
1304
|
+
* Shows the header close button.
|
|
1305
|
+
* Defaults to `true` for `default` and `false` for `delete`.
|
|
1306
|
+
*/
|
|
1307
|
+
showCloseButton?: boolean;
|
|
1308
|
+
/** Recipe size forwarded to {@link ModalWrapper}. @default 'sm' */
|
|
1309
|
+
size?: ModalVariantProps['size'];
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1312
|
+
/** Visual intent for {@link ConfirmationModal} footer actions. */
|
|
1313
|
+
export declare type ConfirmationModalType = 'default' | 'delete';
|
|
1314
|
+
|
|
838
1315
|
declare type ContainerSizeKey = keyof typeof containerSizes;
|
|
839
1316
|
|
|
840
1317
|
declare const containerSizes: {
|
|
@@ -1263,87 +1740,515 @@ declare namespace DataType {
|
|
|
1263
1740
|
type VisualBox = "border-box" | "content-box" | "padding-box";
|
|
1264
1741
|
}
|
|
1265
1742
|
|
|
1266
|
-
|
|
1743
|
+
/** Segment order and separator convention used to display a date. */
|
|
1744
|
+
export declare type DateFormat = 'MM/DD/YYYY' | 'YYYY-MM-DD';
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* Renders a segmented date field with optional leading and trailing content.
|
|
1748
|
+
*
|
|
1749
|
+
* The field accepts keyboard entry and stepping through year, month, and day
|
|
1750
|
+
* segments. Use `DatePicker` when a calendar menu is also needed.
|
|
1751
|
+
*
|
|
1752
|
+
* @example
|
|
1753
|
+
* ```tsx
|
|
1754
|
+
* <DateInput label="Invoice date" defaultValue={{ year: 2026, month: 8, day: 3 }} />
|
|
1755
|
+
* ```
|
|
1756
|
+
*/
|
|
1757
|
+
export declare const DateInput: (props: DateInputProps) => JSX.Element;
|
|
1267
1758
|
|
|
1268
|
-
|
|
1269
|
-
|
|
1759
|
+
/** Props for {@link DateInput}, including segmented date state and field slots. */
|
|
1760
|
+
export declare type DateInputProps = Omit<BoxProps, keyof SegmentedFieldsVariantProps | 'children'> & Omit<SegmentedFieldsVariantProps, 'field' | 'range' | 'before' | 'after'> & {
|
|
1761
|
+
/** Identifier forwarded to the segmented date group. */
|
|
1762
|
+
id?: string;
|
|
1763
|
+
/** Controlled date. Pair with `onChange`. */
|
|
1270
1764
|
value?: DateValue | null;
|
|
1271
|
-
/**
|
|
1765
|
+
/** Initial date when `value` is not provided. */
|
|
1272
1766
|
defaultValue?: DateValue | null;
|
|
1273
|
-
/**
|
|
1767
|
+
/** Runs when the segmented date becomes complete or is cleared. */
|
|
1274
1768
|
onChange?: (value: DateValue | null) => void;
|
|
1275
|
-
/**
|
|
1276
|
-
|
|
1277
|
-
/**
|
|
1278
|
-
maxDate?: DateValue;
|
|
1279
|
-
/** Accessible label for the input group */
|
|
1769
|
+
/** Segment order and separator convention. */
|
|
1770
|
+
dateFormat?: DateFormat;
|
|
1771
|
+
/** Accessible name for the segmented date group. */
|
|
1280
1772
|
label?: string;
|
|
1281
|
-
|
|
1773
|
+
/** Content before the date field. Takes precedence over `iconBefore`. */
|
|
1774
|
+
before?: ReactNode;
|
|
1775
|
+
/** Content after the date field. Takes precedence over `iconAfter`. */
|
|
1776
|
+
after?: ReactNode;
|
|
1777
|
+
/** Legacy icon rendered before the field when `before` is absent. */
|
|
1778
|
+
iconBefore?: IconNamesList;
|
|
1779
|
+
/** Legacy icon rendered after the field when `after` is absent. */
|
|
1780
|
+
iconAfter?: IconNamesList;
|
|
1781
|
+
/** Applies error styling. Overrides field context when provided. */
|
|
1282
1782
|
error?: boolean;
|
|
1783
|
+
/** Prevents editing. Overrides field context when provided. */
|
|
1784
|
+
disabled?: boolean;
|
|
1785
|
+
/** Applies invalid styling. Overrides field context when provided. */
|
|
1283
1786
|
invalid?: boolean;
|
|
1284
|
-
|
|
1285
|
-
name?: string;
|
|
1286
|
-
/** Controlled popover open state */
|
|
1787
|
+
/** Reflected through to the segmented field — lets a wrapping Menu/Picker show "active anchor" styling */
|
|
1287
1788
|
open?: boolean;
|
|
1288
|
-
/**
|
|
1289
|
-
|
|
1290
|
-
|
|
1789
|
+
/** Forwarded to the segmented field — see SegmentedDate's onFocusWithin */
|
|
1790
|
+
onFocusWithin?: () => void;
|
|
1791
|
+
/** Forwarded to the segmented field — see SegmentedDate's onBlurWithin */
|
|
1792
|
+
onBlurWithin?: (relatedTarget: Node | null) => void;
|
|
1291
1793
|
};
|
|
1292
1794
|
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
|
|
1795
|
+
/**
|
|
1796
|
+
* Presents a calendar in a Menu and commits a selected day immediately.
|
|
1797
|
+
*
|
|
1798
|
+
* Supply a `trigger`, or set inherited `inline` to render the calendar in
|
|
1799
|
+
* normal flow. Selecting an enabled date calls `onChange` and closes a
|
|
1800
|
+
* triggered menu.
|
|
1801
|
+
*
|
|
1802
|
+
* @example
|
|
1803
|
+
* ```tsx
|
|
1804
|
+
* <DateMenu trigger={<Button>Choose date</Button>} onChange={setDate} />
|
|
1805
|
+
* ```
|
|
1806
|
+
*/
|
|
1807
|
+
export declare const DateMenu: (props: DateMenuProps) => any;
|
|
1305
1808
|
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
/** Called when end date changes */
|
|
1314
|
-
onEndChange?: (value: DateValue | null) => void;
|
|
1315
|
-
/** Earliest selectable date (applies to both pickers) */
|
|
1809
|
+
/** Props for {@link DateMenu}, a Calendar presented through Menu behavior. */
|
|
1810
|
+
export declare type DateMenuProps = Omit<MenuProps, 'children' | 'onChange' | 'value'> & {
|
|
1811
|
+
/** Selected date shown by the calendar. */
|
|
1812
|
+
value?: DateValue | null;
|
|
1813
|
+
/** Commits immediately on day selection, then closes the menu. */
|
|
1814
|
+
onChange?: (value: DateValue | null) => void;
|
|
1815
|
+
/** Earliest selectable date. */
|
|
1316
1816
|
minDate?: DateValue;
|
|
1317
|
-
/** Latest selectable date
|
|
1817
|
+
/** Latest selectable date. */
|
|
1318
1818
|
maxDate?: DateValue;
|
|
1819
|
+
/** Controlled visible calendar month. */
|
|
1820
|
+
viewDate?: ViewDate_2;
|
|
1821
|
+
/** Initial visible month when `viewDate` is not provided. */
|
|
1822
|
+
defaultViewDate?: ViewDate_2;
|
|
1823
|
+
/** Runs when calendar navigation requests a new visible month. */
|
|
1824
|
+
onViewDateChange?: (viewDate: ViewDate_2) => void;
|
|
1825
|
+
/** Prevents opening or selection and returns only the trigger. */
|
|
1319
1826
|
disabled?: boolean;
|
|
1320
|
-
|
|
1321
|
-
/** Size passed to both DatePickers */
|
|
1322
|
-
size?: DatePickerProps['size'];
|
|
1323
|
-
/** Accessible label prefix — used to build "Start date" and "End date" labels */
|
|
1827
|
+
/** Accessible label passed to the calendar grid. */
|
|
1324
1828
|
label?: string;
|
|
1325
1829
|
};
|
|
1326
1830
|
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
weight?: string;
|
|
1340
|
-
};
|
|
1831
|
+
/**
|
|
1832
|
+
* Combines keyboard date entry with a calendar selection menu.
|
|
1833
|
+
*
|
|
1834
|
+
* Focusing the segmented input opens the menu. Typed dates and calendar
|
|
1835
|
+
* selections update the same controlled or uncontrolled value.
|
|
1836
|
+
*
|
|
1837
|
+
* @example
|
|
1838
|
+
* ```tsx
|
|
1839
|
+
* <DatePicker label="Due date" value={date} onChange={setDate} />
|
|
1840
|
+
* ```
|
|
1841
|
+
*/
|
|
1842
|
+
export declare const DatePicker: (props: DatePickerProps) => JSX.Element;
|
|
1341
1843
|
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1844
|
+
/** Props for {@link DatePicker}, combining a segmented input and calendar menu. */
|
|
1845
|
+
export declare type DatePickerProps = Pick<DateInputProps, 'id' | 'label' | 'before' | 'after' | 'iconBefore' | 'iconAfter' | 'error' | 'disabled' | 'invalid' | 'dateFormat' | 'size'> & {
|
|
1846
|
+
/** Controlled selected date. Pair with `onChange`. */
|
|
1847
|
+
value?: DateValue | null;
|
|
1848
|
+
/** Initial selected date when `value` is not provided. */
|
|
1849
|
+
defaultValue?: DateValue | null;
|
|
1850
|
+
/** Runs when typing or calendar selection commits a date. */
|
|
1851
|
+
onChange?: (value: DateValue | null) => void;
|
|
1852
|
+
/** Earliest selectable calendar date. */
|
|
1853
|
+
minDate?: DateValue;
|
|
1854
|
+
/** Latest selectable calendar date. */
|
|
1855
|
+
maxDate?: DateValue;
|
|
1856
|
+
/** Controlled visible calendar month. */
|
|
1857
|
+
viewDate?: ViewDate_3;
|
|
1858
|
+
/** Initial visible month when `viewDate` is not provided. */
|
|
1859
|
+
defaultViewDate?: ViewDate_3;
|
|
1860
|
+
/** Runs when calendar navigation requests a new visible month. */
|
|
1861
|
+
onViewDateChange?: (viewDate: ViewDate_3) => void;
|
|
1862
|
+
/** Floating UI placement of the calendar menu. */
|
|
1863
|
+
placement?: Placement;
|
|
1864
|
+
/** Controlled menu visibility. Pair with `onOpenChange`. */
|
|
1865
|
+
open?: boolean;
|
|
1866
|
+
/**
|
|
1867
|
+
* Initial menu visibility when `open` is not provided.
|
|
1868
|
+
*
|
|
1869
|
+
* @default false
|
|
1870
|
+
*/
|
|
1871
|
+
defaultOpen?: boolean;
|
|
1872
|
+
/** Runs when interaction requests that the menu open or close. */
|
|
1873
|
+
onOpenChange?: (open: boolean) => void;
|
|
1874
|
+
};
|
|
1875
|
+
|
|
1876
|
+
/**
|
|
1877
|
+
* Renders start and end dates as two coordinated segmented fields.
|
|
1878
|
+
*
|
|
1879
|
+
* Each endpoint commits independently while the component preserves the other
|
|
1880
|
+
* endpoint. Use `DateRangePicker` when a calendar menu and Apply/Cancel flow
|
|
1881
|
+
* are also needed.
|
|
1882
|
+
*
|
|
1883
|
+
* @example
|
|
1884
|
+
* ```tsx
|
|
1885
|
+
* <DateRangeInput startLabel="Arrival" endLabel="Departure" />
|
|
1886
|
+
* ```
|
|
1887
|
+
*/
|
|
1888
|
+
export declare const DateRangeInput: (props: DateRangeInputProps) => JSX.Element;
|
|
1889
|
+
|
|
1890
|
+
/** Props for {@link DateRangeInput}, including range state and field slots. */
|
|
1891
|
+
export declare type DateRangeInputProps = Omit<BoxProps, keyof SegmentedFieldsVariantProps | 'children'> & Omit<SegmentedFieldsVariantProps, 'field' | 'range' | 'before' | 'after'> & {
|
|
1892
|
+
/** Identifier applied to the range container. */
|
|
1893
|
+
id?: string;
|
|
1894
|
+
/** Controlled start and end dates. Pair with `onChange`. */
|
|
1895
|
+
value?: DateRangeValue | null;
|
|
1896
|
+
/** Initial range when `value` is not provided. */
|
|
1897
|
+
defaultValue?: DateRangeValue | null;
|
|
1898
|
+
/** Runs whenever either endpoint becomes complete or is cleared. */
|
|
1899
|
+
onChange?: (value: DateRangeValue | null) => void;
|
|
1900
|
+
/** Segment order and separator convention shared by both endpoints. */
|
|
1901
|
+
dateFormat?: DateFormat;
|
|
1902
|
+
/** Accessible name for the start-date segments. */
|
|
1903
|
+
startLabel?: string;
|
|
1904
|
+
/** Accessible name for the end-date segments. */
|
|
1905
|
+
endLabel?: string;
|
|
1906
|
+
/** Content before the range. Takes precedence over `iconBefore`. */
|
|
1907
|
+
before?: ReactNode;
|
|
1908
|
+
/** Content after the range. Takes precedence over `iconAfter`. */
|
|
1909
|
+
after?: ReactNode;
|
|
1910
|
+
/** Legacy icon rendered before the range when `before` is absent. */
|
|
1911
|
+
iconBefore?: IconNamesList;
|
|
1912
|
+
/** Legacy icon rendered after the range when `after` is absent. */
|
|
1913
|
+
iconAfter?: IconNamesList;
|
|
1914
|
+
/** Applies error styling. Overrides field context when provided. */
|
|
1915
|
+
error?: boolean;
|
|
1916
|
+
/** Prevents editing both endpoints. Overrides field context when provided. */
|
|
1917
|
+
disabled?: boolean;
|
|
1918
|
+
/** Applies invalid styling. Overrides field context when provided. */
|
|
1919
|
+
invalid?: boolean;
|
|
1920
|
+
/** Reflected through to the segmented fields — lets a wrapping Menu/Picker show "active anchor" styling */
|
|
1921
|
+
open?: boolean;
|
|
1922
|
+
/** Forwarded to both segmented fields — see SegmentedDate's onFocusWithin */
|
|
1923
|
+
onFocusWithin?: () => void;
|
|
1924
|
+
/** Forwarded to both segmented fields — see SegmentedDate's onBlurWithin */
|
|
1925
|
+
onBlurWithin?: (relatedTarget: Node | null) => void;
|
|
1926
|
+
};
|
|
1927
|
+
|
|
1928
|
+
/**
|
|
1929
|
+
* Selects a date range from two independently navigable calendars.
|
|
1930
|
+
*
|
|
1931
|
+
* Selection is held as a draft until Apply is pressed. Cancel restores the
|
|
1932
|
+
* committed `value`. Apply is unavailable until both endpoints are selected.
|
|
1933
|
+
*
|
|
1934
|
+
* @example
|
|
1935
|
+
* ```tsx
|
|
1936
|
+
* <DateRangeMenu
|
|
1937
|
+
* trigger={<Button>Choose dates</Button>}
|
|
1938
|
+
* value={range}
|
|
1939
|
+
* onChange={setRange}
|
|
1940
|
+
* />
|
|
1941
|
+
* ```
|
|
1942
|
+
*/
|
|
1943
|
+
export declare const DateRangeMenu: (props: DateRangeMenuProps) => any;
|
|
1944
|
+
|
|
1945
|
+
/** Props for {@link DateRangeMenu}, including committed range and bounds. */
|
|
1946
|
+
export declare type DateRangeMenuProps = Omit<MenuProps, 'children' | 'onChange' | 'value'> & {
|
|
1947
|
+
/** Committed start and end dates used to initialize the menu draft. */
|
|
1948
|
+
value?: DateRangeValue | null;
|
|
1949
|
+
/** Commits the complete draft when Apply is pressed; Cancel discards it. */
|
|
1950
|
+
onChange?: (value: DateRangeValue | null) => void;
|
|
1951
|
+
/** Earliest selectable date for both calendars. */
|
|
1952
|
+
minDate?: DateValue;
|
|
1953
|
+
/** Latest selectable date for both calendars. */
|
|
1954
|
+
maxDate?: DateValue;
|
|
1955
|
+
/** Prevents opening or selection and returns only the trigger. */
|
|
1956
|
+
disabled?: boolean;
|
|
1957
|
+
/** Accessible label for the first calendar. */
|
|
1958
|
+
startLabel?: string;
|
|
1959
|
+
/** Accessible label for the second calendar. */
|
|
1960
|
+
endLabel?: string;
|
|
1961
|
+
};
|
|
1962
|
+
|
|
1963
|
+
/**
|
|
1964
|
+
* Combines segmented range entry with a two-calendar selection menu.
|
|
1965
|
+
*
|
|
1966
|
+
* Typed endpoints commit immediately. Calendar choices remain a draft until
|
|
1967
|
+
* Apply is pressed; Cancel restores the currently committed range.
|
|
1968
|
+
*
|
|
1969
|
+
* @example
|
|
1970
|
+
* ```tsx
|
|
1971
|
+
* <DateRangePicker startLabel="Arrival" endLabel="Departure" />
|
|
1972
|
+
* ```
|
|
1973
|
+
*/
|
|
1974
|
+
export declare const DateRangePicker: (props: DateRangePickerProps) => JSX.Element;
|
|
1975
|
+
|
|
1976
|
+
/** Props for {@link DateRangePicker}, combining range input and calendar menu. */
|
|
1977
|
+
export declare type DateRangePickerProps = Pick<DateRangeInputProps, 'id' | 'startLabel' | 'endLabel' | 'before' | 'after' | 'iconBefore' | 'iconAfter' | 'error' | 'disabled' | 'invalid' | 'dateFormat' | 'size'> & {
|
|
1978
|
+
/** Controlled start and end dates. Pair with `onChange`. */
|
|
1979
|
+
value?: DateRangeValue | null;
|
|
1980
|
+
/** Initial range when `value` is not provided. */
|
|
1981
|
+
defaultValue?: DateRangeValue | null;
|
|
1982
|
+
/** Runs for typed endpoint changes and applied calendar drafts. */
|
|
1983
|
+
onChange?: (value: DateRangeValue | null) => void;
|
|
1984
|
+
/** Earliest selectable date for both calendars. */
|
|
1985
|
+
minDate?: DateValue;
|
|
1986
|
+
/** Latest selectable date for both calendars. */
|
|
1987
|
+
maxDate?: DateValue;
|
|
1988
|
+
/** Floating UI placement of the calendar menu. */
|
|
1989
|
+
placement?: Placement;
|
|
1990
|
+
/** Controlled menu visibility. Pair with `onOpenChange`. */
|
|
1991
|
+
open?: boolean;
|
|
1992
|
+
/**
|
|
1993
|
+
* Initial menu visibility when `open` is not provided.
|
|
1994
|
+
*
|
|
1995
|
+
* @default false
|
|
1996
|
+
*/
|
|
1997
|
+
defaultOpen?: boolean;
|
|
1998
|
+
/** Runs when interaction requests that the menu open or close. */
|
|
1999
|
+
onOpenChange?: (open: boolean) => void;
|
|
2000
|
+
};
|
|
2001
|
+
|
|
2002
|
+
/** A committed date range — either endpoint may be null while only partially filled in. */
|
|
2003
|
+
export declare interface DateRangeValue {
|
|
2004
|
+
start: DateValue | null;
|
|
2005
|
+
end: DateValue | null;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
/**
|
|
2009
|
+
* Renders coordinated segmented date and time fields in one control.
|
|
2010
|
+
*
|
|
2011
|
+
* Each complete portion is preserved while the other changes. Use
|
|
2012
|
+
* `DateTimePicker` when calendar and time-selection menus are also needed.
|
|
2013
|
+
*
|
|
2014
|
+
* @example
|
|
2015
|
+
* ```tsx
|
|
2016
|
+
* <DateTimeInput dateLabel="Due date" timeLabel="Due time" />
|
|
2017
|
+
* ```
|
|
2018
|
+
*/
|
|
2019
|
+
export declare const DateTimeInput: (props: DateTimeInputProps) => JSX.Element;
|
|
2020
|
+
|
|
2021
|
+
/** Props for {@link DateTimeInput}, including combined state and field slots. */
|
|
2022
|
+
export declare type DateTimeInputProps = Omit<BoxProps, keyof SegmentedFieldsVariantProps | 'children'> & Omit<SegmentedFieldsVariantProps, 'field' | 'range' | 'before' | 'after'> & {
|
|
2023
|
+
/** Identifier applied to the combined field container. */
|
|
2024
|
+
id?: string;
|
|
2025
|
+
/** Controlled date and time. Pair with `onChange`. */
|
|
2026
|
+
value?: DateTimeValue | null;
|
|
2027
|
+
/** Initial date and time when `value` is not provided. */
|
|
2028
|
+
defaultValue?: DateTimeValue | null;
|
|
2029
|
+
/** Runs whenever the date or time portion changes. */
|
|
2030
|
+
onChange?: (value: DateTimeValue | null) => void;
|
|
2031
|
+
/** Segment order and separator convention for the date portion. */
|
|
2032
|
+
dateFormat?: DateFormat;
|
|
2033
|
+
/** Display cycle for the time portion. */
|
|
2034
|
+
timeFormat?: TimeFormat;
|
|
2035
|
+
/** Minute increment used by keyboard stepping. */
|
|
2036
|
+
minuteStep?: number;
|
|
2037
|
+
/** Accessible name for the date segments. */
|
|
2038
|
+
dateLabel?: string;
|
|
2039
|
+
/** Accessible name for the time segments. */
|
|
2040
|
+
timeLabel?: string;
|
|
2041
|
+
/** Content before the combined field. Takes precedence over `iconBefore`. */
|
|
2042
|
+
before?: ReactNode;
|
|
2043
|
+
/** Content after the combined field. Takes precedence over `iconAfter`. */
|
|
2044
|
+
after?: ReactNode;
|
|
2045
|
+
/** Legacy icon rendered before the field when `before` is absent. */
|
|
2046
|
+
iconBefore?: IconNamesList;
|
|
2047
|
+
/** Legacy icon rendered after the field when `after` is absent. */
|
|
2048
|
+
iconAfter?: IconNamesList;
|
|
2049
|
+
/** Applies error styling. Overrides field context when provided. */
|
|
2050
|
+
error?: boolean;
|
|
2051
|
+
/** Prevents editing both portions. Overrides field context when provided. */
|
|
2052
|
+
disabled?: boolean;
|
|
2053
|
+
/** Applies invalid styling. Overrides field context when provided. */
|
|
2054
|
+
invalid?: boolean;
|
|
2055
|
+
/** Reflected through to the segmented fields — lets a wrapping Menu/Picker show "active anchor" styling */
|
|
2056
|
+
open?: boolean;
|
|
2057
|
+
/** Forwarded to both segmented fields — see SegmentedDate/SegmentedTime's onFocusWithin */
|
|
2058
|
+
onFocusWithin?: () => void;
|
|
2059
|
+
/** Forwarded to both segmented fields — see SegmentedDate/SegmentedTime's onBlurWithin */
|
|
2060
|
+
onBlurWithin?: (relatedTarget: Node | null) => void;
|
|
2061
|
+
};
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* Selects a date and time from a calendar and aligned time columns.
|
|
2065
|
+
*
|
|
2066
|
+
* Changes remain a draft until Apply is pressed. Cancel restores `value`, and
|
|
2067
|
+
* Apply is unavailable until both the date and time portions are complete.
|
|
2068
|
+
*
|
|
2069
|
+
* @example
|
|
2070
|
+
* ```tsx
|
|
2071
|
+
* <DateTimeMenu
|
|
2072
|
+
* trigger={<Button>Schedule</Button>}
|
|
2073
|
+
* value={scheduledAt}
|
|
2074
|
+
* onChange={setScheduledAt}
|
|
2075
|
+
* />
|
|
2076
|
+
* ```
|
|
2077
|
+
*/
|
|
2078
|
+
export declare const DateTimeMenu: (props: DateTimeMenuProps) => any;
|
|
2079
|
+
|
|
2080
|
+
/** Props for {@link DateTimeMenu}, including committed value and constraints. */
|
|
2081
|
+
export declare type DateTimeMenuProps = Omit<MenuProps, 'children' | 'onChange' | 'value'> & {
|
|
2082
|
+
/** Committed date and time used to initialize the menu draft. */
|
|
2083
|
+
value?: DateTimeValue | null;
|
|
2084
|
+
/** Commits the complete draft when Apply is pressed; Cancel discards it. */
|
|
2085
|
+
onChange?: (value: DateTimeValue | null) => void;
|
|
2086
|
+
/** Earliest selectable calendar date. */
|
|
2087
|
+
minDate?: DateValue;
|
|
2088
|
+
/** Latest selectable calendar date. */
|
|
2089
|
+
maxDate?: DateValue;
|
|
2090
|
+
/** Controlled visible calendar month. */
|
|
2091
|
+
viewDate?: ViewDate_4;
|
|
2092
|
+
/** Initial visible calendar month when `viewDate` is not provided. */
|
|
2093
|
+
defaultViewDate?: ViewDate_4;
|
|
2094
|
+
/** Runs when calendar navigation requests a new visible month. */
|
|
2095
|
+
onViewDateChange?: (viewDate: ViewDate_4) => void;
|
|
2096
|
+
/** Display cycle for the time columns. */
|
|
2097
|
+
timeFormat?: TimeFormat;
|
|
2098
|
+
/** Interval used to generate minute choices. */
|
|
2099
|
+
minuteStep?: number;
|
|
2100
|
+
/** Prevents opening or selection and returns only the trigger. */
|
|
2101
|
+
disabled?: boolean;
|
|
2102
|
+
/** Accessible label passed to the calendar grid. */
|
|
2103
|
+
dateLabel?: string;
|
|
2104
|
+
};
|
|
2105
|
+
|
|
2106
|
+
/**
|
|
2107
|
+
* Combines segmented date-time entry with a calendar and time menu.
|
|
2108
|
+
*
|
|
2109
|
+
* Typed portions commit immediately. Menu choices remain a draft until Apply
|
|
2110
|
+
* is pressed; Cancel restores the currently committed value.
|
|
2111
|
+
*
|
|
2112
|
+
* @example
|
|
2113
|
+
* ```tsx
|
|
2114
|
+
* <DateTimePicker dateLabel="Due date" timeLabel="Due time" />
|
|
2115
|
+
* ```
|
|
2116
|
+
*/
|
|
2117
|
+
export declare const DateTimePicker: (props: DateTimePickerProps) => JSX.Element;
|
|
2118
|
+
|
|
2119
|
+
/** Props for {@link DateTimePicker}, combining segmented entry and menu. */
|
|
2120
|
+
export declare type DateTimePickerProps = Pick<DateTimeInputProps, 'id' | 'dateLabel' | 'timeLabel' | 'before' | 'after' | 'iconBefore' | 'iconAfter' | 'error' | 'disabled' | 'invalid' | 'dateFormat' | 'timeFormat' | 'size'> & {
|
|
2121
|
+
/** Controlled combined date and time. Pair with `onChange`. */
|
|
2122
|
+
value?: DateTimeValue | null;
|
|
2123
|
+
/** Initial combined value when `value` is not provided. */
|
|
2124
|
+
defaultValue?: DateTimeValue | null;
|
|
2125
|
+
/** Runs for typed changes and applied menu drafts. */
|
|
2126
|
+
onChange?: (value: DateTimeValue | null) => void;
|
|
2127
|
+
/** Minute interval used by segmented stepping and menu choices. */
|
|
2128
|
+
minuteStep?: number;
|
|
2129
|
+
/** Earliest selectable calendar date. */
|
|
2130
|
+
minDate?: DateValue;
|
|
2131
|
+
/** Latest selectable calendar date. */
|
|
2132
|
+
maxDate?: DateValue;
|
|
2133
|
+
/** Controlled visible calendar month. */
|
|
2134
|
+
viewDate?: ViewDate_5;
|
|
2135
|
+
/** Initial visible month when `viewDate` is not provided. */
|
|
2136
|
+
defaultViewDate?: ViewDate_5;
|
|
2137
|
+
/** Runs when calendar navigation requests a new visible month. */
|
|
2138
|
+
onViewDateChange?: (viewDate: ViewDate_5) => void;
|
|
2139
|
+
/** Floating UI placement of the date-time menu. */
|
|
2140
|
+
placement?: Placement;
|
|
2141
|
+
/** Controlled menu visibility. Pair with `onOpenChange`. */
|
|
2142
|
+
open?: boolean;
|
|
2143
|
+
/**
|
|
2144
|
+
* Initial menu visibility when `open` is not provided.
|
|
2145
|
+
*
|
|
2146
|
+
* @default false
|
|
2147
|
+
*/
|
|
2148
|
+
defaultOpen?: boolean;
|
|
2149
|
+
/** Runs when interaction requests that the menu open or close. */
|
|
2150
|
+
onOpenChange?: (open: boolean) => void;
|
|
2151
|
+
};
|
|
2152
|
+
|
|
2153
|
+
/**
|
|
2154
|
+
* Coordinates independent start and end `DateTimePicker` controls.
|
|
2155
|
+
*
|
|
2156
|
+
* The controls render side by side when space allows and stack at narrow
|
|
2157
|
+
* widths. Each endpoint has its own menu and commits independently.
|
|
2158
|
+
*
|
|
2159
|
+
* @example
|
|
2160
|
+
* ```tsx
|
|
2161
|
+
* <DateTimeRangePicker
|
|
2162
|
+
* startDateLabel="Starts on"
|
|
2163
|
+
* startTimeLabel="Starts at"
|
|
2164
|
+
* endDateLabel="Ends on"
|
|
2165
|
+
* endTimeLabel="Ends at"
|
|
2166
|
+
* />
|
|
2167
|
+
* ```
|
|
2168
|
+
*/
|
|
2169
|
+
export declare const DateTimeRangePicker: (props: DateTimeRangePickerProps) => JSX.Element;
|
|
2170
|
+
|
|
2171
|
+
/** Props for {@link DateTimeRangePicker}, which coordinates two pickers. */
|
|
2172
|
+
export declare type DateTimeRangePickerProps = Pick<DateTimeInputProps, 'before' | 'after' | 'iconBefore' | 'iconAfter' | 'error' | 'disabled' | 'invalid' | 'dateFormat' | 'timeFormat' | 'size'> & {
|
|
2173
|
+
/** Controlled start and end date-times. Pair with `onChange`. */
|
|
2174
|
+
value?: DateTimeRangeValue | null;
|
|
2175
|
+
/** Initial range when `value` is not provided. */
|
|
2176
|
+
defaultValue?: DateTimeRangeValue | null;
|
|
2177
|
+
/** Runs whenever either endpoint commits a new value. */
|
|
2178
|
+
onChange?: (value: DateTimeRangeValue | null) => void;
|
|
2179
|
+
/** Minute interval shared by both endpoint pickers. */
|
|
2180
|
+
minuteStep?: number;
|
|
2181
|
+
/** Earliest selectable date for both endpoints. */
|
|
2182
|
+
minDate?: DateValue;
|
|
2183
|
+
/** Latest selectable date for both endpoints. */
|
|
2184
|
+
maxDate?: DateValue;
|
|
2185
|
+
/** Accessible date label for the start picker. */
|
|
2186
|
+
startDateLabel?: string;
|
|
2187
|
+
/** Accessible time label for the start picker. */
|
|
2188
|
+
startTimeLabel?: string;
|
|
2189
|
+
/** Accessible date label for the end picker. */
|
|
2190
|
+
endDateLabel?: string;
|
|
2191
|
+
/** Accessible time label for the end picker. */
|
|
2192
|
+
endTimeLabel?: string;
|
|
2193
|
+
/** Floating UI placement shared by both endpoint menus. */
|
|
2194
|
+
placement?: Placement;
|
|
2195
|
+
};
|
|
2196
|
+
|
|
2197
|
+
/** A committed date+time range — either endpoint may be null while only partially filled in. */
|
|
2198
|
+
export declare interface DateTimeRangeValue {
|
|
2199
|
+
start: DateTimeValue | null;
|
|
2200
|
+
end: DateTimeValue | null;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
/** A combined date+time value — either half may be null while only partially filled in. */
|
|
2204
|
+
export declare interface DateTimeValue {
|
|
2205
|
+
date: DateValue | null;
|
|
2206
|
+
time: TimeValue | null;
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
/** A calendar date. Month is 1-indexed (1 = January) to match human-readable input. */
|
|
2210
|
+
export declare interface DateValue {
|
|
2211
|
+
year: number;
|
|
2212
|
+
month: number;
|
|
2213
|
+
day: number;
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
export declare const deriveItemTextValue: ({ textValue, label, description, getItemText, }: {
|
|
2217
|
+
textValue?: string;
|
|
2218
|
+
label?: string;
|
|
2219
|
+
description?: string;
|
|
2220
|
+
getItemText: (item: {
|
|
2221
|
+
label?: string;
|
|
2222
|
+
description?: string;
|
|
2223
|
+
}) => string;
|
|
2224
|
+
}) => string;
|
|
2225
|
+
|
|
2226
|
+
declare type DistributiveOmit<T, K extends keyof any> = T extends unknown ? Omit<T, K> : never
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
* Draws a visual separator between adjacent regions.
|
|
2230
|
+
*
|
|
2231
|
+
* `Divider` is decorative and renders a `div`; use semantic sectioning and
|
|
2232
|
+
* headings when the separation must also be conveyed to assistive technology.
|
|
2233
|
+
*
|
|
2234
|
+
* @example
|
|
2235
|
+
* ```tsx
|
|
2236
|
+
* <Divider />
|
|
2237
|
+
* ```
|
|
2238
|
+
*/
|
|
2239
|
+
export declare const Divider: (props: DividerProps) => JSX.Element;
|
|
2240
|
+
|
|
2241
|
+
/** Props accepted by {@link Divider}. */
|
|
2242
|
+
export declare type DividerProps = Omit<BoxProps, keyof DividerVariantProps> & DividerVariantProps & {
|
|
2243
|
+
direction?: string;
|
|
2244
|
+
weight?: string;
|
|
2245
|
+
};
|
|
2246
|
+
|
|
2247
|
+
declare interface DividerVariant {
|
|
2248
|
+
/**
|
|
2249
|
+
* @default "horizontal"
|
|
2250
|
+
*/
|
|
2251
|
+
direction: "horizontal" | "vertical"
|
|
1347
2252
|
/**
|
|
1348
2253
|
* @default "thin"
|
|
1349
2254
|
*/
|
|
@@ -1354,23 +2259,41 @@ declare type DividerVariantProps = {
|
|
|
1354
2259
|
[key in keyof DividerVariant]?: ConditionalValue<DividerVariant[key]> | undefined
|
|
1355
2260
|
}
|
|
1356
2261
|
|
|
1357
|
-
|
|
2262
|
+
/**
|
|
2263
|
+
* Adds a test id to the interaction chain shared with a subtree.
|
|
2264
|
+
*
|
|
2265
|
+
* Design-system components pick this up automatically: `Box` opens a scope
|
|
2266
|
+
* whenever it receives a `data-testid`, so anything rendered through the
|
|
2267
|
+
* library already contributes. Reach for `DsChainScope` only around raw DOM
|
|
2268
|
+
* that does not render through `Box` and still needs to appear in the chain,
|
|
2269
|
+
* such as an application-owned wrapper element.
|
|
2270
|
+
*
|
|
2271
|
+
* The chain exists so portaled content can be attributed back to the subtree
|
|
2272
|
+
* that opened it. A menu, modal, or tooltip renders into `document.body` and
|
|
2273
|
+
* has no DOM ancestry to its opener, but React context follows the React tree
|
|
2274
|
+
* through a portal, so the chain resolves correctly on either side.
|
|
2275
|
+
*
|
|
2276
|
+
* Renders no DOM of its own. The chain keeps the five nearest ids.
|
|
2277
|
+
*
|
|
2278
|
+
* @example
|
|
2279
|
+
* ```tsx
|
|
2280
|
+
* <DsChainScope testId="order-row">
|
|
2281
|
+
* <tr data-testid="order-row">{cells}</tr>
|
|
2282
|
+
* </DsChainScope>
|
|
2283
|
+
* ```
|
|
2284
|
+
*/
|
|
2285
|
+
export declare const DsChainScope: ({ testId, children }: DsChainScopeProps) => JSX.Element;
|
|
1358
2286
|
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
id?: string;
|
|
1370
|
-
/** Disable the dropdown */
|
|
1371
|
-
disabled?: boolean;
|
|
1372
|
-
/** Props to pass to the trigger Button */
|
|
1373
|
-
triggerProps?: Omit<ButtonProps, 'children' | 'disabled'>;
|
|
2287
|
+
/** Props accepted by {@link DsChainScope}. */
|
|
2288
|
+
export declare type DsChainScopeProps = {
|
|
2289
|
+
/**
|
|
2290
|
+
* `data-testid` value appended to the chain inherited by `children`. Match it
|
|
2291
|
+
* to the `data-testid` written on the element this scope describes so the
|
|
2292
|
+
* chain and the DOM agree.
|
|
2293
|
+
*/
|
|
2294
|
+
testId: string;
|
|
2295
|
+
/** Subtree that resolves the extended chain. */
|
|
2296
|
+
children?: ReactNode;
|
|
1374
2297
|
};
|
|
1375
2298
|
|
|
1376
2299
|
declare type DurationToken = "fastest" | "faster" | "fast" | "normal" | "slow" | "slower" | "slowest"
|
|
@@ -1395,22 +2318,74 @@ declare type FontToken = "heading" | "sans" | "body" | "serif" | "mono"
|
|
|
1395
2318
|
|
|
1396
2319
|
declare type FontWeightToken = "light" | "normal" | "medium" | "bold" | "black"
|
|
1397
2320
|
|
|
2321
|
+
export { FormApi }
|
|
2322
|
+
|
|
2323
|
+
/**
|
|
2324
|
+
* Groups a label, control, help text, and validation message into one field.
|
|
2325
|
+
*
|
|
2326
|
+
* `labelFor` must match the `id` of the nested input. The component provides
|
|
2327
|
+
* `size`, `error`, `invalid`, and `disabled` through field context to
|
|
2328
|
+
* compatible descendants, but it does not add native input attributes for
|
|
2329
|
+
* them. If `success` and an error state are both true, success messaging wins.
|
|
2330
|
+
*
|
|
2331
|
+
* @example
|
|
2332
|
+
* ```tsx
|
|
2333
|
+
* <FormField label="Email" labelFor="email" required>
|
|
2334
|
+
* <TextInput id="email" type="email" required />
|
|
2335
|
+
* </FormField>
|
|
2336
|
+
* ```
|
|
2337
|
+
*/
|
|
1398
2338
|
export declare const FormField: (props: FormFieldProps) => JSX.Element;
|
|
1399
2339
|
|
|
2340
|
+
/**
|
|
2341
|
+
* Props for {@link FormField}. It supplies field state to compatible
|
|
2342
|
+
* descendants through `FieldContext`.
|
|
2343
|
+
*/
|
|
1400
2344
|
export declare type FormFieldProps = Omit<BoxProps, keyof FormFieldVariantProps> & FormFieldVariantProps & {
|
|
2345
|
+
/** Visible label text for the field. */
|
|
1401
2346
|
label: string;
|
|
2347
|
+
/**
|
|
2348
|
+
* The `id` of the labeled input. The child input must use this exact `id`
|
|
2349
|
+
* for the rendered label's `htmlFor` relationship to work.
|
|
2350
|
+
*/
|
|
1402
2351
|
labelFor: string;
|
|
2352
|
+
/** Input or control content associated with this field. */
|
|
1403
2353
|
children: ReactNode;
|
|
2354
|
+
/** Supporting guidance displayed near the input. */
|
|
1404
2355
|
helpText?: string;
|
|
2356
|
+
/**
|
|
2357
|
+
* Displays a visual required indicator. Also set `required` on the native
|
|
2358
|
+
* input when browser validation or required semantics are needed.
|
|
2359
|
+
*/
|
|
1405
2360
|
required?: boolean;
|
|
2361
|
+
/** Marks the field and compatible descendants as having an error. */
|
|
1406
2362
|
error?: boolean;
|
|
2363
|
+
/** Marks the field invalid and supplies invalid state to compatible descendants. */
|
|
1407
2364
|
invalid?: boolean;
|
|
2365
|
+
/** Message displayed when `error` or `invalid` is true and `success` is false. */
|
|
1408
2366
|
errorText?: string;
|
|
2367
|
+
/** Marks the field successful. Success text takes precedence over error text. */
|
|
1409
2368
|
success?: boolean;
|
|
2369
|
+
/** Message displayed when `success` is true, including when error state is also set. */
|
|
1410
2370
|
successText?: string;
|
|
2371
|
+
/**
|
|
2372
|
+
* Marks the field `aria-disabled`, applies disabled styling, and supplies
|
|
2373
|
+
* disabled state to compatible descendants. Native child controls must
|
|
2374
|
+
* still receive `disabled` themselves.
|
|
2375
|
+
*/
|
|
1411
2376
|
disabled?: boolean;
|
|
2377
|
+
/** Optional title shown by the label-help tooltip when `tooltipText` is provided. */
|
|
1412
2378
|
tooltipTitle?: string;
|
|
2379
|
+
/**
|
|
2380
|
+
* Help text that enables the informational tooltip beside the label. The
|
|
2381
|
+
* tooltip is not rendered without this value.
|
|
2382
|
+
*/
|
|
1413
2383
|
tooltipText?: string;
|
|
2384
|
+
/**
|
|
2385
|
+
* Field size passed to compatible descendants and used by the field recipe.
|
|
2386
|
+
*
|
|
2387
|
+
* @default 'md'
|
|
2388
|
+
*/
|
|
1414
2389
|
size?: FormFieldVariantProps['size'];
|
|
1415
2390
|
layout?: 'default' | 'inline';
|
|
1416
2391
|
gap?: NumericSizeToken;
|
|
@@ -1431,14 +2406,36 @@ declare type FormFieldVariantProps = {
|
|
|
1431
2406
|
[key in keyof FormFieldVariant]?: ConditionalValue<FormFieldVariant[key]> | undefined
|
|
1432
2407
|
}
|
|
1433
2408
|
|
|
2409
|
+
export declare const getComponentType: (node: unknown) => string | null;
|
|
2410
|
+
|
|
2411
|
+
export declare const getHighlightedTextParts: (value: string, query: string) => {
|
|
2412
|
+
text: string;
|
|
2413
|
+
match: boolean;
|
|
2414
|
+
}[];
|
|
2415
|
+
|
|
1434
2416
|
declare type Globals = "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset";
|
|
1435
2417
|
|
|
1436
2418
|
export declare type GlobalStyleObject = Record<string, unknown>;
|
|
1437
2419
|
|
|
2420
|
+
export declare const hasMatchingItems: (children: ReactNode, filterContext: MenuFilterContextValue) => boolean;
|
|
2421
|
+
|
|
2422
|
+
/**
|
|
2423
|
+
* Renders a semantic document heading with the matching typography.
|
|
2424
|
+
*
|
|
2425
|
+
* Choose `level` from the page outline rather than for visual size alone.
|
|
2426
|
+
*
|
|
2427
|
+
* @example
|
|
2428
|
+
* ```tsx
|
|
2429
|
+
* <Heading level="h2">Shipping details</Heading>
|
|
2430
|
+
* ```
|
|
2431
|
+
*/
|
|
1438
2432
|
export declare const Heading: (props: HeadingProps) => JSX.Element;
|
|
1439
2433
|
|
|
2434
|
+
/** Props accepted by {@link Heading}. */
|
|
1440
2435
|
export declare type HeadingProps = Omit<TextProps, keyof HeadingVariantProps> & HeadingVariantProps & {
|
|
2436
|
+
/** Heading content. */
|
|
1441
2437
|
children?: string | ReactNode;
|
|
2438
|
+
/** @default "h2" */
|
|
1442
2439
|
level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
1443
2440
|
};
|
|
1444
2441
|
|
|
@@ -1454,11 +2451,33 @@ declare type HeadingVariantProps = {
|
|
|
1454
2451
|
[key in keyof HeadingVariant]?: ConditionalValue<HeadingVariant[key]> | undefined
|
|
1455
2452
|
}
|
|
1456
2453
|
|
|
2454
|
+
/**
|
|
2455
|
+
* Renders case-insensitive literal matches in text using semantic `mark`
|
|
2456
|
+
* elements.
|
|
2457
|
+
*
|
|
2458
|
+
* Empty or whitespace-only queries, and `enabled={false}`, render the original
|
|
2459
|
+
* string without wrapper markup. Use it directly for custom content; default
|
|
2460
|
+
* {@link ListItem} content uses it automatically when highlighting is enabled.
|
|
2461
|
+
*
|
|
2462
|
+
* @example
|
|
2463
|
+
* ```tsx
|
|
2464
|
+
* <HighlightText value="Account settings" query="account" />
|
|
2465
|
+
* ```
|
|
2466
|
+
*/
|
|
1457
2467
|
export declare const HighlightText: (props: HighlightTextProps) => JSX.Element;
|
|
1458
2468
|
|
|
2469
|
+
/** Props for {@link HighlightText}. */
|
|
1459
2470
|
export declare type HighlightTextProps = Omit<BoxProps, keyof HighlightTextVariantProps> & HighlightTextVariantProps & {
|
|
2471
|
+
/** Text to render and search within. */
|
|
1460
2472
|
value: string;
|
|
2473
|
+
/** Case-insensitive literal text to mark within `value`. */
|
|
1461
2474
|
query: string;
|
|
2475
|
+
/**
|
|
2476
|
+
* When false, returns `value` without creating highlight markup or applying
|
|
2477
|
+
* styling props.
|
|
2478
|
+
*
|
|
2479
|
+
* @default true
|
|
2480
|
+
*/
|
|
1462
2481
|
enabled?: boolean;
|
|
1463
2482
|
};
|
|
1464
2483
|
|
|
@@ -1470,28 +2489,78 @@ declare type HighlightTextVariantProps = {
|
|
|
1470
2489
|
[key in keyof HighlightTextVariant]?: ConditionalValue<HighlightTextVariant[key]> | undefined
|
|
1471
2490
|
}
|
|
1472
2491
|
|
|
1473
|
-
export declare type HourCycle = '12' | '24';
|
|
1474
|
-
|
|
1475
2492
|
declare type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
|
|
1476
2493
|
|
|
2494
|
+
/**
|
|
2495
|
+
* Renders an SVG symbol from the configured icon sprite.
|
|
2496
|
+
*
|
|
2497
|
+
* Icons are visual content, not automatically hidden or named. Pass
|
|
2498
|
+
* `aria-hidden` for decorative icons; give meaningful standalone icons an
|
|
2499
|
+
* accessible name such as `aria-label`. Wrap meaningful actions in
|
|
2500
|
+
* {@link IconButton} rather than using a bare clickable SVG.
|
|
2501
|
+
*
|
|
2502
|
+
* @example
|
|
2503
|
+
* ```tsx
|
|
2504
|
+
* <Icon name="info" aria-label="More information" />
|
|
2505
|
+
* ```
|
|
2506
|
+
*/
|
|
1477
2507
|
export declare const Icon: (props: IconProps) => JSX.Element;
|
|
1478
2508
|
|
|
2509
|
+
/**
|
|
2510
|
+
* Performs an icon-only action or navigation with a required accessible label.
|
|
2511
|
+
*
|
|
2512
|
+
* Renders a native `button` by default, or an anchor when `href` is supplied.
|
|
2513
|
+
* Its explicit `size`, `error`, `invalid`, and `disabled` values take
|
|
2514
|
+
* precedence over slot context, which takes precedence over field context.
|
|
2515
|
+
* Its recipe defaults to the `standard` variant and `md` size.
|
|
2516
|
+
*
|
|
2517
|
+
* @example
|
|
2518
|
+
* ```tsx
|
|
2519
|
+
* <IconButton iconName="edit" altText="Edit invoice" onClick={editInvoice} />
|
|
2520
|
+
* ```
|
|
2521
|
+
*/
|
|
1479
2522
|
export declare const IconButton: (props: IconButtonProps) => JSX.Element;
|
|
1480
2523
|
|
|
2524
|
+
/**
|
|
2525
|
+
* Props for {@link IconButton}. Extends {@link BoxProps} for layout and native
|
|
2526
|
+
* element attributes while reserving its visual recipe variants.
|
|
2527
|
+
*/
|
|
1481
2528
|
export declare type IconButtonProps = Omit<BoxProps, keyof IconButtonVariantProps> & IconButtonVariantProps & {
|
|
2529
|
+
/** Icon symbol rendered for the action. */
|
|
1482
2530
|
iconName: IconNamesList;
|
|
2531
|
+
/**
|
|
2532
|
+
* Required accessible label for the button and text used by its tooltip.
|
|
2533
|
+
* Describe the action, not the icon's shape.
|
|
2534
|
+
*/
|
|
1483
2535
|
altText: string;
|
|
2536
|
+
/** When provided, renders an anchor instead of a native button. */
|
|
1484
2537
|
href?: string;
|
|
2538
|
+
/**
|
|
2539
|
+
* Shows a centered spinner, hides the icon, and sets `aria-busy`. Loading
|
|
2540
|
+
* does not disable the control; set `disabled` when the action is unavailable.
|
|
2541
|
+
*
|
|
2542
|
+
* @default false
|
|
2543
|
+
*/
|
|
1485
2544
|
loading?: boolean;
|
|
2545
|
+
/**
|
|
2546
|
+
* Disables a native button. For links, marks the anchor `aria-disabled` and
|
|
2547
|
+
* prevents its default click navigation.
|
|
2548
|
+
*/
|
|
1486
2549
|
disabled?: boolean;
|
|
2550
|
+
/**
|
|
2551
|
+
* Native button type; ignored when `href` causes the component to render an
|
|
2552
|
+
* anchor.
|
|
2553
|
+
*
|
|
2554
|
+
* @default 'button'
|
|
2555
|
+
*/
|
|
1487
2556
|
type?: 'submit' | 'reset' | 'button';
|
|
1488
2557
|
};
|
|
1489
2558
|
|
|
1490
2559
|
declare interface IconButtonVariant {
|
|
1491
2560
|
/**
|
|
1492
|
-
* @default "
|
|
2561
|
+
* @default "standard"
|
|
1493
2562
|
*/
|
|
1494
|
-
variant: "
|
|
2563
|
+
variant: "standard" | "primary" | "hollow" | "ghost" | "danger" | "selected" | "selectedBold"
|
|
1495
2564
|
/**
|
|
1496
2565
|
* @default "md"
|
|
1497
2566
|
*/
|
|
@@ -1502,6 +2571,10 @@ declare type IconButtonVariantProps = {
|
|
|
1502
2571
|
[key in keyof IconButtonVariant]?: ConditionalValue<IconButtonVariant[key]> | undefined
|
|
1503
2572
|
}
|
|
1504
2573
|
|
|
2574
|
+
declare type IconConfigContextValue = {
|
|
2575
|
+
spritePath: string;
|
|
2576
|
+
};
|
|
2577
|
+
|
|
1505
2578
|
export declare const IconNames: {
|
|
1506
2579
|
readonly 'aa-placeholder': "aa-placeholder";
|
|
1507
2580
|
readonly alarm: "alarm";
|
|
@@ -1566,6 +2639,7 @@ export declare const IconNames: {
|
|
|
1566
2639
|
readonly 'checkbox-focus': "checkbox-focus";
|
|
1567
2640
|
readonly 'checkbox-indeterminate': "checkbox-indeterminate";
|
|
1568
2641
|
readonly checkbox: "checkbox";
|
|
2642
|
+
readonly cheese: "cheese";
|
|
1569
2643
|
readonly 'chevron-down': "chevron-down";
|
|
1570
2644
|
readonly 'chevron-filled-down': "chevron-filled-down";
|
|
1571
2645
|
readonly 'chevron-filled-left': "chevron-filled-left";
|
|
@@ -1584,6 +2658,7 @@ export declare const IconNames: {
|
|
|
1584
2658
|
readonly clock: "clock";
|
|
1585
2659
|
readonly 'cloud-synced': "cloud-synced";
|
|
1586
2660
|
readonly code: "code";
|
|
2661
|
+
readonly 'collapse-vertical': "collapse-vertical";
|
|
1587
2662
|
readonly color: "color";
|
|
1588
2663
|
readonly compass: "compass";
|
|
1589
2664
|
readonly computer: "computer";
|
|
@@ -1613,6 +2688,7 @@ export declare const IconNames: {
|
|
|
1613
2688
|
readonly eraser: "eraser";
|
|
1614
2689
|
readonly error: "error";
|
|
1615
2690
|
readonly 'event-list': "event-list";
|
|
2691
|
+
readonly 'expand-vertical': "expand-vertical";
|
|
1616
2692
|
readonly export: "export";
|
|
1617
2693
|
readonly extension: "extension";
|
|
1618
2694
|
readonly 'eye-slash': "eye-slash";
|
|
@@ -1680,6 +2756,7 @@ export declare const IconNames: {
|
|
|
1680
2756
|
readonly 'list-numbers': "list-numbers";
|
|
1681
2757
|
readonly 'lock-open': "lock-open";
|
|
1682
2758
|
readonly lock: "lock";
|
|
2759
|
+
readonly magnet: "magnet";
|
|
1683
2760
|
readonly 'map-pin': "map-pin";
|
|
1684
2761
|
readonly map: "map";
|
|
1685
2762
|
readonly 'mark-unread': "mark-unread";
|
|
@@ -1789,6 +2866,8 @@ export declare const IconNames: {
|
|
|
1789
2866
|
readonly textbox: "textbox";
|
|
1790
2867
|
readonly 'time-add': "time-add";
|
|
1791
2868
|
readonly timer: "timer";
|
|
2869
|
+
readonly 'to-date-backward': "to-date-backward";
|
|
2870
|
+
readonly 'to-date-forward': "to-date-forward";
|
|
1792
2871
|
readonly toolbox: "toolbox";
|
|
1793
2872
|
readonly tools: "tools";
|
|
1794
2873
|
readonly trash: "trash";
|
|
@@ -1888,6 +2967,7 @@ declare type IconNamesList =
|
|
|
1888
2967
|
| 'checkbox-focus'
|
|
1889
2968
|
| 'checkbox-indeterminate'
|
|
1890
2969
|
| 'checkbox'
|
|
2970
|
+
| 'cheese'
|
|
1891
2971
|
| 'chevron-down'
|
|
1892
2972
|
| 'chevron-filled-down'
|
|
1893
2973
|
| 'chevron-filled-left'
|
|
@@ -1906,6 +2986,7 @@ declare type IconNamesList =
|
|
|
1906
2986
|
| 'clock'
|
|
1907
2987
|
| 'cloud-synced'
|
|
1908
2988
|
| 'code'
|
|
2989
|
+
| 'collapse-vertical'
|
|
1909
2990
|
| 'color'
|
|
1910
2991
|
| 'compass'
|
|
1911
2992
|
| 'computer'
|
|
@@ -1935,6 +3016,7 @@ declare type IconNamesList =
|
|
|
1935
3016
|
| 'eraser'
|
|
1936
3017
|
| 'error'
|
|
1937
3018
|
| 'event-list'
|
|
3019
|
+
| 'expand-vertical'
|
|
1938
3020
|
| 'export'
|
|
1939
3021
|
| 'extension'
|
|
1940
3022
|
| 'eye-slash'
|
|
@@ -2002,6 +3084,7 @@ declare type IconNamesList =
|
|
|
2002
3084
|
| 'list-numbers'
|
|
2003
3085
|
| 'lock-open'
|
|
2004
3086
|
| 'lock'
|
|
3087
|
+
| 'magnet'
|
|
2005
3088
|
| 'map-pin'
|
|
2006
3089
|
| 'map'
|
|
2007
3090
|
| 'mark-unread'
|
|
@@ -2111,6 +3194,8 @@ declare type IconNamesList =
|
|
|
2111
3194
|
| 'textbox'
|
|
2112
3195
|
| 'time-add'
|
|
2113
3196
|
| 'timer'
|
|
3197
|
+
| 'to-date-backward'
|
|
3198
|
+
| 'to-date-forward'
|
|
2114
3199
|
| 'toolbox'
|
|
2115
3200
|
| 'tools'
|
|
2116
3201
|
| 'trash'
|
|
@@ -2146,6 +3231,7 @@ declare type IconNamesList =
|
|
|
2146
3231
|
| 'zoom-out';
|
|
2147
3232
|
|
|
2148
3233
|
declare type IconOwnProps = {
|
|
3234
|
+
/** Symbol identifier from the configured SVG sprite. */
|
|
2149
3235
|
name: IconNamesList;
|
|
2150
3236
|
/**
|
|
2151
3237
|
* Icon size recipe variant. Responsive/conditional values are supported.
|
|
@@ -2159,12 +3245,38 @@ declare type IconOwnProps = {
|
|
|
2159
3245
|
fill?: ColorToken;
|
|
2160
3246
|
};
|
|
2161
3247
|
|
|
2162
|
-
|
|
3248
|
+
/**
|
|
3249
|
+
* Props for {@link Icon}. Extends SVG and Box props for presentation and
|
|
3250
|
+
* accessibility attributes.
|
|
3251
|
+
*/
|
|
3252
|
+
export declare type IconProps = Omit<BoxProps, IconNamesList | keyof IconVariantProps | keyof IconOwnProps> & Omit<IconVariantProps, keyof IconOwnProps> & IconOwnProps;
|
|
2163
3253
|
|
|
3254
|
+
/**
|
|
3255
|
+
* Configures the SVG sprite used by descendant {@link Icon} components.
|
|
3256
|
+
*
|
|
3257
|
+
* Use it at an application or embedded-library boundary when the default
|
|
3258
|
+
* `/sprite.svg` location is not available. Nested providers override the
|
|
3259
|
+
* sprite path for their own descendants.
|
|
3260
|
+
*
|
|
3261
|
+
* @example
|
|
3262
|
+
* ```tsx
|
|
3263
|
+
* <IconProvider spritePath="/assets/icons.svg">
|
|
3264
|
+
* <App />
|
|
3265
|
+
* </IconProvider>
|
|
3266
|
+
* ```
|
|
3267
|
+
*/
|
|
2164
3268
|
export declare const IconProvider: ({ children, spritePath }: IconProviderProps) => JSX.Element;
|
|
2165
3269
|
|
|
3270
|
+
/** Props for {@link IconProvider}. */
|
|
2166
3271
|
export declare type IconProviderProps = {
|
|
3272
|
+
/** Components that should resolve sprite symbols from this provider. */
|
|
2167
3273
|
children: ReactNode;
|
|
3274
|
+
/**
|
|
3275
|
+
* URL or path to the SVG sprite file. This provider value applies to all
|
|
3276
|
+
* descendant `Icon` components.
|
|
3277
|
+
*
|
|
3278
|
+
* @default '/sprite.svg'
|
|
3279
|
+
*/
|
|
2168
3280
|
spritePath?: string;
|
|
2169
3281
|
};
|
|
2170
3282
|
|
|
@@ -2180,6 +3292,12 @@ declare type Important = ImportantMark | WhitespaceImportant
|
|
|
2180
3292
|
|
|
2181
3293
|
declare type ImportantMark = "!" | "!important"
|
|
2182
3294
|
|
|
3295
|
+
export declare const isItemMatch: ({ textValue, query, filterMode, }: {
|
|
3296
|
+
textValue: string;
|
|
3297
|
+
query: string;
|
|
3298
|
+
filterMode: MenuFilterMode;
|
|
3299
|
+
}) => boolean;
|
|
3300
|
+
|
|
2183
3301
|
declare type JsxHTMLProps<T extends Record<string, any>, P extends Record<string, any> = {}> = Assign<
|
|
2184
3302
|
WithHTMLProps<T>,
|
|
2185
3303
|
P
|
|
@@ -2187,9 +3305,23 @@ P
|
|
|
2187
3305
|
|
|
2188
3306
|
declare type JsxStyleProps = SystemStyleObject_2 & WithCss
|
|
2189
3307
|
|
|
3308
|
+
/**
|
|
3309
|
+
* Displays a keyboard shortcut as a group of native `kbd` elements.
|
|
3310
|
+
*
|
|
3311
|
+
* Known symbols receive readable tooltip labels: ⌘ command, ⌥ option,
|
|
3312
|
+
* ⌃ control, ⇪ shift, ⎋ escape, ⌫ delete, ↩ return, ⇥ tab, and the four arrow
|
|
3313
|
+
* symbols. `Kbd` describes a shortcut; it is not an interactive control.
|
|
3314
|
+
*
|
|
3315
|
+
* @example
|
|
3316
|
+
* ```tsx
|
|
3317
|
+
* <Kbd keys={['⌘', 'K']} />
|
|
3318
|
+
* ```
|
|
3319
|
+
*/
|
|
2190
3320
|
export declare const Kbd: (props: KbdProps) => JSX.Element;
|
|
2191
3321
|
|
|
3322
|
+
/** Props accepted by {@link Kbd}. */
|
|
2192
3323
|
export declare type KbdProps = Omit<BoxProps, 'children'> & {
|
|
3324
|
+
/** Ordered key labels that make up the shortcut. */
|
|
2193
3325
|
keys: KbdValue[];
|
|
2194
3326
|
};
|
|
2195
3327
|
|
|
@@ -2197,10 +3329,24 @@ export declare type KbdSpecialSymbol = 'command' | 'option' | 'control' | 'shift
|
|
|
2197
3329
|
|
|
2198
3330
|
export declare type KbdValue = string | KbdSpecialSymbol;
|
|
2199
3331
|
|
|
3332
|
+
/**
|
|
3333
|
+
* Renders a native label for a form control.
|
|
3334
|
+
*
|
|
3335
|
+
* `htmlFor` must match the target control's `id`. Use `FormField` when the
|
|
3336
|
+
* control also needs help text, validation messaging, or shared field state.
|
|
3337
|
+
*
|
|
3338
|
+
* @example
|
|
3339
|
+
* ```tsx
|
|
3340
|
+
* <Label htmlFor="email">Email address</Label>
|
|
3341
|
+
* ```
|
|
3342
|
+
*/
|
|
2200
3343
|
export declare const Label: (props: LabelProps) => JSX.Element;
|
|
2201
3344
|
|
|
3345
|
+
/** Props accepted by {@link Label}. */
|
|
2202
3346
|
export declare type LabelProps = Omit<BoxProps, keyof LabelVariantProps> & LabelVariantProps & {
|
|
3347
|
+
/** ID of the form control labeled by this element. */
|
|
2203
3348
|
htmlFor: string;
|
|
3349
|
+
/** Visible label content. */
|
|
2204
3350
|
children?: string | ReactNode;
|
|
2205
3351
|
};
|
|
2206
3352
|
|
|
@@ -2212,6 +3358,7 @@ declare interface LabelVariant {
|
|
|
2212
3358
|
bold: boolean
|
|
2213
3359
|
italic: boolean
|
|
2214
3360
|
underline: boolean
|
|
3361
|
+
dashedUnderline: boolean
|
|
2215
3362
|
truncate: boolean
|
|
2216
3363
|
allCaps: boolean
|
|
2217
3364
|
size: "10" | "12" | "14" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "72" | "80" | "96"
|
|
@@ -2229,18 +3376,39 @@ declare type LetterSpacingToken = "tighter" | "tight" | "normal" | "wide" | "wid
|
|
|
2229
3376
|
|
|
2230
3377
|
declare type LineHeightToken = "none" | "tight" | "default" | "loose"
|
|
2231
3378
|
|
|
3379
|
+
/**
|
|
3380
|
+
* Navigates to another location using a native anchor.
|
|
3381
|
+
*
|
|
3382
|
+
* Set `external` for destinations that should open in a new tab. Use `Button`
|
|
3383
|
+
* for actions that do not navigate.
|
|
3384
|
+
*
|
|
3385
|
+
* @example
|
|
3386
|
+
* ```tsx
|
|
3387
|
+
* <Link href="/orders">View orders</Link>
|
|
3388
|
+
* ```
|
|
3389
|
+
*/
|
|
2232
3390
|
export declare const Link: (props: LinkProps) => JSX.Element;
|
|
2233
3391
|
|
|
3392
|
+
/** Props accepted by {@link Link}. */
|
|
2234
3393
|
export declare type LinkProps = Omit<BoxProps, keyof LinkVariantProps> & LinkVariantProps & {
|
|
3394
|
+
/** Destination URL for the native anchor. */
|
|
2235
3395
|
href: string;
|
|
3396
|
+
/** @default false */
|
|
2236
3397
|
external?: boolean;
|
|
3398
|
+
/** @default false */
|
|
2237
3399
|
disabled?: boolean;
|
|
2238
3400
|
size?: FontSizeToken;
|
|
3401
|
+
/** @default "body" */
|
|
2239
3402
|
family?: FontToken;
|
|
3403
|
+
/** @default false */
|
|
2240
3404
|
italic?: boolean;
|
|
3405
|
+
/** @default false */
|
|
2241
3406
|
bold?: boolean;
|
|
3407
|
+
/** Explicit font-weight token. */
|
|
2242
3408
|
weight?: FontWeightToken;
|
|
3409
|
+
/** Additional class name merged with the link recipe class. */
|
|
2243
3410
|
className?: string;
|
|
3411
|
+
/** Link label and inline content. */
|
|
2244
3412
|
children?: ReactNode;
|
|
2245
3413
|
};
|
|
2246
3414
|
|
|
@@ -2252,28 +3420,86 @@ declare interface LinkVariant {
|
|
|
2252
3420
|
bold: boolean
|
|
2253
3421
|
italic: boolean
|
|
2254
3422
|
underline: boolean
|
|
3423
|
+
dashedUnderline: boolean
|
|
2255
3424
|
truncate: boolean
|
|
2256
3425
|
allCaps: boolean
|
|
2257
3426
|
size: "10" | "12" | "14" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "72" | "80" | "96"
|
|
2258
3427
|
weight: "light" | "normal" | "medium" | "bold" | "black"
|
|
2259
|
-
_disabled: boolean
|
|
2260
3428
|
}
|
|
2261
3429
|
|
|
2262
3430
|
declare type LinkVariantProps = {
|
|
2263
3431
|
[key in keyof LinkVariant]?: ConditionalValue<LinkVariant[key]> | undefined
|
|
2264
3432
|
}
|
|
2265
3433
|
|
|
3434
|
+
/**
|
|
3435
|
+
* Lays out related {@link ListItem} controls and shares density and search
|
|
3436
|
+
* highlighting settings with its descendants.
|
|
3437
|
+
*
|
|
3438
|
+
* The component renders a `div` and does not assign an ARIA role. When its
|
|
3439
|
+
* children are interactive options, provide the appropriate role and label
|
|
3440
|
+
* (for example, `role="listbox"` and `aria-label`).
|
|
3441
|
+
*
|
|
3442
|
+
* @example
|
|
3443
|
+
* ```tsx
|
|
3444
|
+
* <List role="listbox" aria-label="Account settings">
|
|
3445
|
+
* <ListItem label="Profile" />
|
|
3446
|
+
* </List>
|
|
3447
|
+
* ```
|
|
3448
|
+
*/
|
|
2266
3449
|
export declare const List: (props: ListProps) => JSX.Element;
|
|
2267
3450
|
|
|
3451
|
+
declare type ListContextValue = {
|
|
3452
|
+
density: ListDensity;
|
|
3453
|
+
query: string;
|
|
3454
|
+
highlightMatches: boolean;
|
|
3455
|
+
variant?: ListVariant_2;
|
|
3456
|
+
iconBefore?: IconNamesList;
|
|
3457
|
+
iconAfter?: IconNamesList;
|
|
3458
|
+
};
|
|
3459
|
+
|
|
2268
3460
|
export declare type ListDensity = 'compact' | 'comfortable' | 'spacious';
|
|
2269
3461
|
|
|
3462
|
+
/**
|
|
3463
|
+
* Renders an interactive option, link, selection control, or visual divider.
|
|
3464
|
+
*
|
|
3465
|
+
* Except for the `divider` variant, it renders a native `button` with
|
|
3466
|
+
* `type="button"` by default, or an anchor when `href` is provided, and sets
|
|
3467
|
+
* `role="option"`. Place interactive items in a suitably labeled parent such
|
|
3468
|
+
* as `<List role="listbox">`. Pass custom `children` for fully custom item
|
|
3469
|
+
* content; doing so replaces the label, description, controls, icons, and
|
|
3470
|
+
* match highlighting.
|
|
3471
|
+
*
|
|
3472
|
+
* @example
|
|
3473
|
+
* ```tsx
|
|
3474
|
+
* <ListItem label="Profile" description="Manage your account" />
|
|
3475
|
+
* ```
|
|
3476
|
+
*/
|
|
2270
3477
|
export declare const ListItem: (props: ListItemProps) => JSX.Element;
|
|
2271
3478
|
|
|
3479
|
+
/**
|
|
3480
|
+
* Groups related list items under an optional label and can add a trailing
|
|
3481
|
+
* separator.
|
|
3482
|
+
*
|
|
3483
|
+
* The group inherits search settings from its parent list and provides its
|
|
3484
|
+
* resolved density to descendants. Use {@link List} as the parent when items
|
|
3485
|
+
* should share list semantics and configuration.
|
|
3486
|
+
*
|
|
3487
|
+
* @example
|
|
3488
|
+
* ```tsx
|
|
3489
|
+
* <ListItemGroup label="Account">
|
|
3490
|
+
* <ListItem label="Profile" />
|
|
3491
|
+
* </ListItemGroup>
|
|
3492
|
+
* ```
|
|
3493
|
+
*/
|
|
2272
3494
|
export declare const ListItemGroup: (props: ListItemGroupProps) => JSX.Element;
|
|
2273
3495
|
|
|
3496
|
+
/** Props for {@link ListItemGroup}. */
|
|
2274
3497
|
export declare type ListItemGroupProps = Omit<BoxProps, keyof ListItemGroupVariantProps | 'children'> & ListItemGroupVariantProps & {
|
|
3498
|
+
/** Optional heading displayed above the group's children. */
|
|
2275
3499
|
label?: string;
|
|
3500
|
+
/** Items or other content belonging to this group. */
|
|
2276
3501
|
children: BoxProps['children'];
|
|
3502
|
+
/** Displays a separator after the group. */
|
|
2277
3503
|
divider?: boolean;
|
|
2278
3504
|
};
|
|
2279
3505
|
|
|
@@ -2288,20 +3514,64 @@ declare type ListItemGroupVariantProps = {
|
|
|
2288
3514
|
[key in keyof ListItemGroupVariant]?: ConditionalValue<ListItemGroupVariant[key]> | undefined
|
|
2289
3515
|
}
|
|
2290
3516
|
|
|
2291
|
-
|
|
2292
|
-
|
|
3517
|
+
/**
|
|
3518
|
+
* Props for {@link ListItem}. It extends button-like Box props, except its
|
|
3519
|
+
* semantic element and button type are controlled by the component.
|
|
3520
|
+
*/
|
|
3521
|
+
export declare type ListItemProps = Omit<BoxProps, keyof ListItemVariantProps | 'as' | 'type' | 'href'> & Omit<ListItemVariantProps, 'selected' | 'iconBefore' | 'iconAfter'> & {
|
|
3522
|
+
/** When provided, renders an anchor instead of the default native button. */
|
|
3523
|
+
href?: string;
|
|
3524
|
+
/** Content rendered before the default label and description. */
|
|
3525
|
+
before?: ReactNode;
|
|
3526
|
+
/** Primary text rendered when custom `children` are not supplied. */
|
|
2293
3527
|
label?: string;
|
|
3528
|
+
/** Secondary text rendered below `label` when custom `children` are not supplied. */
|
|
2294
3529
|
description?: string;
|
|
3530
|
+
/** Search text used to highlight this item's default `label` and `description`. */
|
|
2295
3531
|
query?: string;
|
|
3532
|
+
/**
|
|
3533
|
+
* Enables highlighting for this item's default text. When omitted, inherits
|
|
3534
|
+
* the nearest {@link List} setting.
|
|
3535
|
+
*/
|
|
2296
3536
|
highlightMatches?: boolean;
|
|
3537
|
+
/**
|
|
3538
|
+
* Native `name` passed to the checkbox or toggle created by the matching
|
|
3539
|
+
* `variant`.
|
|
3540
|
+
*
|
|
3541
|
+
* @default 'list-item'
|
|
3542
|
+
*/
|
|
2297
3543
|
controlName?: string;
|
|
3544
|
+
/**
|
|
3545
|
+
* Runs for the native change event from a checkbox or toggle variant. It
|
|
3546
|
+
* does not update `selected`; update that prop from the owning state.
|
|
3547
|
+
*/
|
|
2298
3548
|
onControlChange?: ChangeEventHandler<HTMLInputElement>;
|
|
3549
|
+
/**
|
|
3550
|
+
* Sets `aria-selected` and selected styling. This is controlled state and
|
|
3551
|
+
* does not change when the item is clicked.
|
|
3552
|
+
*
|
|
3553
|
+
* @default false
|
|
3554
|
+
*/
|
|
2299
3555
|
selected?: boolean;
|
|
3556
|
+
/**
|
|
3557
|
+
* Chooses default content, a checkbox, a toggle, or a noninteractive
|
|
3558
|
+
* divider. The `divider` variant ignores item content and other Box props.
|
|
3559
|
+
*
|
|
3560
|
+
* @default 'default'
|
|
3561
|
+
*/
|
|
2300
3562
|
variant?: ListItemVariantProps['variant'];
|
|
2301
|
-
|
|
3563
|
+
/**
|
|
3564
|
+
* Overrides the nearest {@link List} or {@link ListItemGroup} density.
|
|
3565
|
+
* Responsive recipe values are supported.
|
|
3566
|
+
*/
|
|
3567
|
+
density?: ListDensity;
|
|
3568
|
+
/** Icon symbol rendered before the default text content. */
|
|
2302
3569
|
iconBefore?: IconNamesList;
|
|
3570
|
+
/** Icon symbol rendered after the default text content. */
|
|
2303
3571
|
iconAfter?: IconNamesList;
|
|
3572
|
+
/** Fill token for `iconBefore`. */
|
|
2304
3573
|
iconBeforeFill?: IconProps['fill'];
|
|
3574
|
+
/** Fill token for `iconAfter`. */
|
|
2305
3575
|
iconAfterFill?: IconProps['fill'];
|
|
2306
3576
|
/**
|
|
2307
3577
|
* Internal record primary key rendered as `data-row-id` on the item root.
|
|
@@ -2309,11 +3579,10 @@ export declare type ListItemProps = Omit<BoxProps, keyof ListItemVariantProps |
|
|
|
2309
3579
|
* applied to.
|
|
2310
3580
|
*
|
|
2311
3581
|
* It must never be a row index, a composite value, or a customer-facing
|
|
2312
|
-
* identifier such as an order number. It is unrelated to
|
|
3582
|
+
* identifier such as an order number or part number. It is unrelated to
|
|
3583
|
+
* React's `key`.
|
|
2313
3584
|
*/
|
|
2314
3585
|
rowId?: string;
|
|
2315
|
-
href?: string;
|
|
2316
|
-
disabled?: boolean;
|
|
2317
3586
|
};
|
|
2318
3587
|
|
|
2319
3588
|
declare interface ListItemVariant {
|
|
@@ -2325,22 +3594,42 @@ declare interface ListItemVariant {
|
|
|
2325
3594
|
* @default "compact"
|
|
2326
3595
|
*/
|
|
2327
3596
|
density: "compact" | "comfortable" | "spacious"
|
|
2328
|
-
/**
|
|
2329
|
-
* @default false
|
|
2330
|
-
*/
|
|
2331
3597
|
selected: boolean
|
|
2332
3598
|
iconBefore: boolean
|
|
2333
3599
|
iconAfter: boolean
|
|
2334
3600
|
}
|
|
2335
3601
|
|
|
2336
3602
|
declare type ListItemVariantProps = {
|
|
2337
|
-
[key in keyof ListItemVariant]?: ListItemVariant[key] | undefined
|
|
3603
|
+
[key in keyof ListItemVariant]?: ConditionalValue<ListItemVariant[key]> | undefined
|
|
2338
3604
|
}
|
|
2339
3605
|
|
|
3606
|
+
/**
|
|
3607
|
+
* Props for {@link List}. Its values are provided to nested list primitives
|
|
3608
|
+
* through list context.
|
|
3609
|
+
*/
|
|
2340
3610
|
export declare type ListProps = Omit<BoxProps, keyof ListVariantProps | 'children'> & ListVariantProps & {
|
|
3611
|
+
/** List items and optional {@link ListItemGroup} sections. */
|
|
2341
3612
|
children: ReactNode;
|
|
3613
|
+
/**
|
|
3614
|
+
* Shared spacing density for descendants that do not set their own density.
|
|
3615
|
+
* Responsive recipe values are supported.
|
|
3616
|
+
*
|
|
3617
|
+
* @default 'compact'
|
|
3618
|
+
*/
|
|
2342
3619
|
density?: ListDensity;
|
|
3620
|
+
/**
|
|
3621
|
+
* Search text inherited by descendants that do not provide their own
|
|
3622
|
+
* `query`. It is used only when highlighting is enabled.
|
|
3623
|
+
*
|
|
3624
|
+
* @default ''
|
|
3625
|
+
*/
|
|
2343
3626
|
query?: string;
|
|
3627
|
+
/**
|
|
3628
|
+
* Enables highlighting of inherited `query` matches in default
|
|
3629
|
+
* `ListItem` labels and descriptions. Child items can override it.
|
|
3630
|
+
*
|
|
3631
|
+
* @default false
|
|
3632
|
+
*/
|
|
2344
3633
|
highlightMatches?: boolean;
|
|
2345
3634
|
};
|
|
2346
3635
|
|
|
@@ -2351,10 +3640,27 @@ declare interface ListVariant {
|
|
|
2351
3640
|
density: "compact" | "comfortable" | "spacious"
|
|
2352
3641
|
}
|
|
2353
3642
|
|
|
3643
|
+
declare type ListVariant_2 = 'default' | 'checkbox' | 'toggle';
|
|
3644
|
+
|
|
2354
3645
|
declare type ListVariantProps = {
|
|
2355
3646
|
[key in keyof ListVariant]?: ConditionalValue<ListVariant[key]> | undefined
|
|
2356
3647
|
}
|
|
2357
3648
|
|
|
3649
|
+
/**
|
|
3650
|
+
* Displays a keyboard-navigable action list from a trigger or inline in a layout.
|
|
3651
|
+
*
|
|
3652
|
+
* Use `MenuItem`, `MenuGroup`, and `SubMenu` as children. A triggered menu
|
|
3653
|
+
* restores the trigger relationship through Floating UI and dismisses on Escape
|
|
3654
|
+
* or outside press. Use an inline menu when the list should always be visible.
|
|
3655
|
+
*
|
|
3656
|
+
* @example
|
|
3657
|
+
* ```tsx
|
|
3658
|
+
* <Menu trigger={<Button>Actions</Button>}>
|
|
3659
|
+
* <MenuItem label="Edit" onClick={edit} />
|
|
3660
|
+
* <MenuItem label="Archive" onClick={archive} />
|
|
3661
|
+
* </Menu>
|
|
3662
|
+
* ```
|
|
3663
|
+
*/
|
|
2358
3664
|
export declare const Menu: (props: MenuProps) => JSX.Element;
|
|
2359
3665
|
|
|
2360
3666
|
export declare type MenuContext = {
|
|
@@ -2384,6 +3690,19 @@ declare type MenuFilterContextValue = {
|
|
|
2384
3690
|
|
|
2385
3691
|
declare type MenuFilterMode = 'none' | 'contains';
|
|
2386
3692
|
|
|
3693
|
+
/**
|
|
3694
|
+
* Groups related menu rows under an optional label.
|
|
3695
|
+
*
|
|
3696
|
+
* A group is hidden when none of its supported menu children match the parent
|
|
3697
|
+
* menu's active filter.
|
|
3698
|
+
*
|
|
3699
|
+
* @example
|
|
3700
|
+
* ```tsx
|
|
3701
|
+
* <MenuGroup label="File">
|
|
3702
|
+
* <MenuItem label="Download" />
|
|
3703
|
+
* </MenuGroup>
|
|
3704
|
+
* ```
|
|
3705
|
+
*/
|
|
2387
3706
|
export declare const MenuGroup: (props: MenuGroupProps) => JSX.Element | null;
|
|
2388
3707
|
|
|
2389
3708
|
export declare type MenuGroupProps = BoxProps & {
|
|
@@ -2392,6 +3711,18 @@ export declare type MenuGroupProps = BoxProps & {
|
|
|
2392
3711
|
divider?: boolean;
|
|
2393
3712
|
};
|
|
2394
3713
|
|
|
3714
|
+
/**
|
|
3715
|
+
* Renders an actionable row within a {@link Menu}.
|
|
3716
|
+
*
|
|
3717
|
+
* It renders a button by default, or an anchor when `href` is supplied. Arrow
|
|
3718
|
+
* keys and typeahead participate in the parent menu's roving focus behavior.
|
|
3719
|
+
* Use `variant="checkbox"` or `"toggle"` when `selected` is meaningful.
|
|
3720
|
+
*
|
|
3721
|
+
* @example
|
|
3722
|
+
* ```tsx
|
|
3723
|
+
* <MenuItem label="Duplicate" iconBefore="copy" onClick={duplicate} />
|
|
3724
|
+
* ```
|
|
3725
|
+
*/
|
|
2395
3726
|
export declare const MenuItem: (props: MenuItemProps) => JSX.Element | null;
|
|
2396
3727
|
|
|
2397
3728
|
export declare type MenuItemProps = Omit<BoxProps<'button'>, 'as' | 'ref' | 'onClick' | 'type'> & Omit<MenuVariantProps, 'iconBefore' | 'iconAfter'> & {
|
|
@@ -2413,6 +3744,12 @@ export declare type MenuItemProps = Omit<BoxProps<'button'>, 'as' | 'ref' | 'onC
|
|
|
2413
3744
|
|
|
2414
3745
|
export declare type MenuItemVariant = 'default' | 'checkbox' | 'toggle' | 'divider';
|
|
2415
3746
|
|
|
3747
|
+
declare type MenuListContextValue = {
|
|
3748
|
+
activeIndex: number | null;
|
|
3749
|
+
itemCount?: number;
|
|
3750
|
+
getItemProps: (userProps?: HTMLProps<HTMLElement>) => HTMLProps<HTMLElement>;
|
|
3751
|
+
};
|
|
3752
|
+
|
|
2416
3753
|
export declare type MenuProps = {
|
|
2417
3754
|
trigger?: ReactElement;
|
|
2418
3755
|
children: ReactNode;
|
|
@@ -2441,6 +3778,19 @@ export declare type MenuProps = {
|
|
|
2441
3778
|
onMenubarEdgeNavigate?: (direction: 1 | -1) => void;
|
|
2442
3779
|
} & BoxProps;
|
|
2443
3780
|
|
|
3781
|
+
/**
|
|
3782
|
+
* Provides menu root and filter context for custom compound-menu composition.
|
|
3783
|
+
*
|
|
3784
|
+
* Normal menus provide this context automatically. Use this provider only when
|
|
3785
|
+
* composing `MenuItem`, `MenuGroup`, or `SubMenu` outside a `Menu`.
|
|
3786
|
+
*
|
|
3787
|
+
* @example
|
|
3788
|
+
* ```tsx
|
|
3789
|
+
* <MenuProvider>
|
|
3790
|
+
* <MenuItem label="Refresh" />
|
|
3791
|
+
* </MenuProvider>
|
|
3792
|
+
* ```
|
|
3793
|
+
*/
|
|
2444
3794
|
export declare const MenuProvider: ({ children, root, filter }: MenuProviderProps) => JSX.Element;
|
|
2445
3795
|
|
|
2446
3796
|
export declare type MenuProviderProps = {
|
|
@@ -2452,6 +3802,10 @@ export declare type MenuProviderProps = {
|
|
|
2452
3802
|
declare type MenuTriggerInteraction = 'click' | 'hover' | 'click-and-hover';
|
|
2453
3803
|
|
|
2454
3804
|
declare interface MenuVariant {
|
|
3805
|
+
/**
|
|
3806
|
+
* @default "elevated"
|
|
3807
|
+
*/
|
|
3808
|
+
layer: "elevated" | "modalFloating"
|
|
2455
3809
|
/**
|
|
2456
3810
|
* @default "compact"
|
|
2457
3811
|
*/
|
|
@@ -2463,76 +3817,239 @@ declare type MenuVariantProps = {
|
|
|
2463
3817
|
[key in keyof MenuVariant]?: ConditionalValue<MenuVariant[key]> | undefined
|
|
2464
3818
|
}
|
|
2465
3819
|
|
|
2466
|
-
|
|
3820
|
+
/**
|
|
3821
|
+
* Renders a form modal with a title, TanStack Form wiring, and default footer
|
|
3822
|
+
* actions.
|
|
3823
|
+
*
|
|
3824
|
+
* Validation and error display are consumer-owned: define validators on
|
|
3825
|
+
* `form.Field` and map field meta to {@link FormField}. Call `close()` from
|
|
3826
|
+
* `onSubmit` when the dialog should dismiss after a successful action. Form
|
|
3827
|
+
* values reset to the current `defaultValues` when `open` changes.
|
|
3828
|
+
*
|
|
3829
|
+
* @example
|
|
3830
|
+
* ```tsx
|
|
3831
|
+
* <Modal
|
|
3832
|
+
* open={open}
|
|
3833
|
+
* onOpenChange={setOpen}
|
|
3834
|
+
* title="Create process"
|
|
3835
|
+
* submitLabel="Create"
|
|
3836
|
+
* defaultValues={{ name: '' }}
|
|
3837
|
+
* onSubmit={async ({ value, close }) => {
|
|
3838
|
+
* await createProcess(value.name);
|
|
3839
|
+
* close();
|
|
3840
|
+
* }}
|
|
3841
|
+
* >
|
|
3842
|
+
* {(form) => (
|
|
3843
|
+
* <form.Field name="name">
|
|
3844
|
+
* {(field) => (
|
|
3845
|
+
* <FormField label="Name" labelFor="name">
|
|
3846
|
+
* <TextInput
|
|
3847
|
+
* id="name"
|
|
3848
|
+
* value={field.state.value}
|
|
3849
|
+
* onChange={(e) => field.handleChange(e.target.value)}
|
|
3850
|
+
* />
|
|
3851
|
+
* </FormField>
|
|
3852
|
+
* )}
|
|
3853
|
+
* </form.Field>
|
|
3854
|
+
* )}
|
|
3855
|
+
* </Modal>
|
|
3856
|
+
* ```
|
|
3857
|
+
*/
|
|
3858
|
+
export declare const Modal: <TFormData extends Record<string, unknown>>(props: ModalProps<TFormData>) => JSX.Element;
|
|
2467
3859
|
|
|
3860
|
+
/**
|
|
3861
|
+
* Renders the main content region of a {@link ModalWrapper}.
|
|
3862
|
+
*
|
|
3863
|
+
* @example
|
|
3864
|
+
* ```tsx
|
|
3865
|
+
* <ModalBody>Changes are saved automatically.</ModalBody>
|
|
3866
|
+
* ```
|
|
3867
|
+
*/
|
|
2468
3868
|
export declare const ModalBody: (props: ModalBodyProps) => JSX.Element;
|
|
2469
3869
|
|
|
3870
|
+
/** Props for {@link ModalBody}, the main content region of a modal. */
|
|
2470
3871
|
export declare type ModalBodyProps = Omit<BoxProps, 'children'> & {
|
|
2471
|
-
/**
|
|
3872
|
+
/** Content displayed in the modal's body region. */
|
|
2472
3873
|
children: ReactNode;
|
|
2473
3874
|
};
|
|
2474
3875
|
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
preventOverlayClose?: boolean;
|
|
2484
|
-
}
|
|
2485
|
-
|
|
3876
|
+
/**
|
|
3877
|
+
* Renders the action region of a {@link ModalWrapper}.
|
|
3878
|
+
*
|
|
3879
|
+
* @example
|
|
3880
|
+
* ```tsx
|
|
3881
|
+
* <ModalFooter><Button>Save</Button></ModalFooter>
|
|
3882
|
+
* ```
|
|
3883
|
+
*/
|
|
2486
3884
|
export declare const ModalFooter: (props: ModalFooterProps) => JSX.Element;
|
|
2487
3885
|
|
|
3886
|
+
/** Props for {@link ModalFooter}, the action region of a modal. */
|
|
2488
3887
|
export declare type ModalFooterProps = Omit<BoxProps, 'children'> & {
|
|
2489
|
-
/**
|
|
3888
|
+
/** Content displayed in the footer, typically dialog action buttons. */
|
|
2490
3889
|
children: ReactNode;
|
|
2491
3890
|
};
|
|
2492
3891
|
|
|
3892
|
+
/** TanStack Form instance passed to {@link Modal} children. */
|
|
3893
|
+
export declare type ModalFormApi<TFormData extends Record<string, unknown>> = ReactFormExtendedApi<TFormData, FormValidateOrFn<TFormData> | undefined, FormValidateOrFn<TFormData> | undefined, FormAsyncValidateOrFn<TFormData> | undefined, FormValidateOrFn<TFormData> | undefined, FormAsyncValidateOrFn<TFormData> | undefined, FormValidateOrFn<TFormData> | undefined, FormAsyncValidateOrFn<TFormData> | undefined, FormValidateOrFn<TFormData> | undefined, FormAsyncValidateOrFn<TFormData> | undefined, FormAsyncValidateOrFn<TFormData> | undefined, unknown>;
|
|
3894
|
+
|
|
3895
|
+
/**
|
|
3896
|
+
* Renders the optional header region of a parent {@link ModalWrapper}.
|
|
3897
|
+
*
|
|
3898
|
+
* Use `title` for the standard heading or provide `children` for custom header
|
|
3899
|
+
* content. It must be rendered inside `ModalWrapper` because it uses modal
|
|
3900
|
+
* context to close the dialog.
|
|
3901
|
+
*
|
|
3902
|
+
* @example
|
|
3903
|
+
* ```tsx
|
|
3904
|
+
* <ModalHeader title="Edit profile" />
|
|
3905
|
+
* ```
|
|
3906
|
+
*/
|
|
2493
3907
|
export declare const ModalHeader: (props: ModalHeaderProps) => JSX.Element;
|
|
2494
3908
|
|
|
3909
|
+
/** Props for {@link ModalHeader}, the optional heading and close-control region. */
|
|
2495
3910
|
export declare type ModalHeaderProps = Omit<BoxProps, 'children'> & {
|
|
2496
|
-
/**
|
|
3911
|
+
/** Text rendered as the default level-three heading when `children` is omitted. */
|
|
2497
3912
|
title?: string;
|
|
2498
|
-
/**
|
|
3913
|
+
/**
|
|
3914
|
+
* Identifier applied to the title heading for `aria-labelledby` on the dialog.
|
|
3915
|
+
* Pass the same value to the parent shell's `aria-labelledby`.
|
|
3916
|
+
*/
|
|
3917
|
+
titleId?: string;
|
|
3918
|
+
/**
|
|
3919
|
+
* Shows the built-in button that calls the parent modal's `onOpenChange(false)`.
|
|
3920
|
+
* @default true
|
|
3921
|
+
*/
|
|
2499
3922
|
showCloseButton?: boolean;
|
|
2500
|
-
/**
|
|
3923
|
+
/** Custom header content. When supplied, it replaces both `title` and the built-in close button. */
|
|
2501
3924
|
children?: ReactNode;
|
|
2502
3925
|
};
|
|
2503
3926
|
|
|
2504
|
-
|
|
2505
|
-
|
|
3927
|
+
/** Props for {@link Modal}, a pre-built form dialog. */
|
|
3928
|
+
export declare type ModalProps<TFormData extends Record<string, unknown>> = {
|
|
3929
|
+
/** Controlled dialog state. */
|
|
2506
3930
|
open: boolean;
|
|
2507
|
-
/**
|
|
3931
|
+
/** Called when the dialog requests an open-state change. */
|
|
2508
3932
|
onOpenChange: (open: boolean) => void;
|
|
2509
|
-
/**
|
|
3933
|
+
/** Visible dialog title rendered in {@link ModalHeader}. */
|
|
3934
|
+
title: string;
|
|
3935
|
+
/**
|
|
3936
|
+
* Default field values passed to TanStack Form. Reseeded via `form.reset`
|
|
3937
|
+
* whenever `open` changes. To edit a different record while the dialog stays
|
|
3938
|
+
* open, remount with `key={recordId}`.
|
|
3939
|
+
*/
|
|
3940
|
+
defaultValues: TFormData;
|
|
3941
|
+
/**
|
|
3942
|
+
* Called after TanStack Form validation succeeds. Call `close()` when the
|
|
3943
|
+
* action completes and the dialog should dismiss.
|
|
3944
|
+
*/
|
|
3945
|
+
onSubmit: (context: ModalSubmitContext<TFormData>) => void | Promise<void>;
|
|
3946
|
+
/** Render prop receiving the modal's TanStack Form instance for field wiring. */
|
|
3947
|
+
children: (form: ModalFormApi<TFormData>) => ReactNode;
|
|
3948
|
+
/** Label for the default primary submit button. @default 'Submit' */
|
|
3949
|
+
submitLabel?: string;
|
|
3950
|
+
/** Label for the default cancel button. @default 'Cancel' */
|
|
3951
|
+
cancelLabel?: string;
|
|
3952
|
+
/** Additional disable flag applied to the default submit button. */
|
|
3953
|
+
submitDisabled?: boolean;
|
|
3954
|
+
/** Replaces the default cancel/submit footer. Submit wiring is consumer-owned. */
|
|
3955
|
+
footer?: ReactNode;
|
|
3956
|
+
/** Recipe size forwarded to {@link ModalWrapper}. @default 'md' */
|
|
3957
|
+
size?: ModalVariantProps['size'];
|
|
3958
|
+
/** Prevents overlay clicks from closing the dialog. @default false */
|
|
2510
3959
|
preventOverlayClose?: boolean;
|
|
2511
|
-
/**
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
3960
|
+
/** Shows the header close button. @default true */
|
|
3961
|
+
showCloseButton?: boolean;
|
|
3962
|
+
};
|
|
3963
|
+
|
|
3964
|
+
/** Context passed to {@link ModalProps.onSubmit}. */
|
|
3965
|
+
export declare type ModalSubmitContext<TFormData extends Record<string, unknown>> = {
|
|
3966
|
+
/** Validated form values from TanStack Form. */
|
|
3967
|
+
value: TFormData;
|
|
3968
|
+
/** Requests closing through the modal's `onOpenChange(false)`. */
|
|
3969
|
+
close: () => void;
|
|
2515
3970
|
};
|
|
2516
3971
|
|
|
2517
3972
|
declare interface ModalVariant {
|
|
2518
|
-
/**
|
|
2519
|
-
* @default "centered"
|
|
2520
|
-
*/
|
|
2521
|
-
position: "centered" | "top" | "bottom"
|
|
2522
3973
|
/**
|
|
2523
3974
|
* @default "md"
|
|
2524
3975
|
*/
|
|
2525
|
-
size: "sm" | "md" | "lg" | "xl" | "full" | "
|
|
3976
|
+
size: "sm" | "md" | "lg" | "xl" | "full" | "fullPage"
|
|
2526
3977
|
/**
|
|
2527
|
-
* @default "
|
|
3978
|
+
* @default "centered"
|
|
2528
3979
|
*/
|
|
2529
|
-
|
|
3980
|
+
position: "centered" | "top"
|
|
2530
3981
|
}
|
|
2531
3982
|
|
|
2532
3983
|
declare type ModalVariantProps = {
|
|
2533
3984
|
[key in keyof ModalVariant]?: ConditionalValue<ModalVariant[key]> | undefined
|
|
2534
3985
|
}
|
|
2535
3986
|
|
|
3987
|
+
/**
|
|
3988
|
+
* Renders a controlled modal dialog shell in a portal with focus management and
|
|
3989
|
+
* a scroll-locking overlay.
|
|
3990
|
+
*
|
|
3991
|
+
* Escape always calls `onOpenChange(false)`. By default, pressing the overlay
|
|
3992
|
+
* does too. The dialog remains mounted for a 150 ms closing animation. Supply
|
|
3993
|
+
* an accessible name through `aria-label` or `aria-labelledby`; a visible
|
|
3994
|
+
* `ModalHeader` title alone is not linked automatically.
|
|
3995
|
+
*
|
|
3996
|
+
* Compose with `ModalHeader`, `ModalBody`, and `ModalFooter`, or use the
|
|
3997
|
+
* pre-built {@link Modal} and {@link ConfirmationModal} components.
|
|
3998
|
+
*
|
|
3999
|
+
* @example
|
|
4000
|
+
* ```tsx
|
|
4001
|
+
* <ModalWrapper open={open} onOpenChange={setOpen} aria-label="Delete project">
|
|
4002
|
+
* <ModalHeader title="Delete project" />
|
|
4003
|
+
* <ModalBody>This cannot be undone.</ModalBody>
|
|
4004
|
+
* <ModalFooter><Button onClick={remove}>Delete</Button></ModalFooter>
|
|
4005
|
+
* </ModalWrapper>
|
|
4006
|
+
* ```
|
|
4007
|
+
*/
|
|
4008
|
+
export declare const ModalWrapper: (props: ModalWrapperProps) => JSX.Element | null;
|
|
4009
|
+
|
|
4010
|
+
/** State and close behavior shared with descendants of {@link ModalWrapper}. */
|
|
4011
|
+
declare interface ModalWrapperContextValue {
|
|
4012
|
+
/** Whether the modal is currently in its open phase. */
|
|
4013
|
+
open: boolean;
|
|
4014
|
+
/** Requests closing through the parent modal's `onOpenChange(false)`. */
|
|
4015
|
+
onClose: () => void;
|
|
4016
|
+
/** Whether the parent modal blocks overlay-triggered closing. */
|
|
4017
|
+
preventOverlayClose?: boolean;
|
|
4018
|
+
}
|
|
4019
|
+
|
|
4020
|
+
/** Props for {@link ModalWrapper}, a controlled, portalled dialog shell. */
|
|
4021
|
+
export declare type ModalWrapperProps = Omit<BoxProps, keyof ModalVariantProps> & ModalVariantProps & {
|
|
4022
|
+
/** Controlled dialog state. Render state changes by updating this value after `onOpenChange`. */
|
|
4023
|
+
open: boolean;
|
|
4024
|
+
/** Called when Escape, overlay interaction, or a descendant close control requests closing. */
|
|
4025
|
+
onOpenChange: (open: boolean) => void;
|
|
4026
|
+
/**
|
|
4027
|
+
* Prevents overlay clicks from requesting close. Escape still requests close.
|
|
4028
|
+
* @default false
|
|
4029
|
+
*/
|
|
4030
|
+
preventOverlayClose?: boolean;
|
|
4031
|
+
/**
|
|
4032
|
+
* Element to focus when the dialog opens. Forwarded to Floating UI's
|
|
4033
|
+
* `FloatingFocusManager`. A number selects by tabbable index; a ref targets
|
|
4034
|
+
* a specific element (for example Cancel on a delete confirmation).
|
|
4035
|
+
*/
|
|
4036
|
+
initialFocus?: number | RefObject<HTMLElement | null>;
|
|
4037
|
+
/** Dialog content, typically composed from `ModalHeader`, `ModalBody`, and `ModalFooter`. */
|
|
4038
|
+
children: ReactNode;
|
|
4039
|
+
/** Identifier applied to the dialog element. Provide accessible naming with `aria-label` or `aria-labelledby`. */
|
|
4040
|
+
id?: string;
|
|
4041
|
+
/**
|
|
4042
|
+
* Recipe size for the dialog panel.
|
|
4043
|
+
* @default 'md'
|
|
4044
|
+
*/
|
|
4045
|
+
size?: ModalVariantProps['size'];
|
|
4046
|
+
/**
|
|
4047
|
+
* Recipe position for the dialog panel.
|
|
4048
|
+
* @default 'centered'
|
|
4049
|
+
*/
|
|
4050
|
+
position?: ModalVariantProps['position'];
|
|
4051
|
+
};
|
|
4052
|
+
|
|
2536
4053
|
declare interface ModernCssProperties {
|
|
2537
4054
|
/**
|
|
2538
4055
|
* Defines a name for the anchor element that can be referenced by positioned elements.
|
|
@@ -2625,6 +4142,24 @@ declare interface ModernCssProperties {
|
|
|
2625
4142
|
WebkitTextSecurity?: Globals | 'none' | 'circle' | 'disc' | 'square'
|
|
2626
4143
|
}
|
|
2627
4144
|
|
|
4145
|
+
/** Props for a multiple-selection {@link Autocomplete}. */
|
|
4146
|
+
declare type MultipleAutocompleteProps = AutocompleteBaseProps & {
|
|
4147
|
+
/** Enables multiple selection. Selected values render as chips. */
|
|
4148
|
+
multiple: true;
|
|
4149
|
+
/** Controlled selected values. Pair with `onValueChange`. */
|
|
4150
|
+
value?: AutocompleteValue<true>;
|
|
4151
|
+
/** Initial selected values when `value` is not provided. */
|
|
4152
|
+
defaultValue?: AutocompleteValue<true>;
|
|
4153
|
+
/** Runs when selection, removal, clearing, or creation requests new values. */
|
|
4154
|
+
onValueChange?: (value: AutocompleteValue<true>, reason: AutocompleteChangeReason) => void;
|
|
4155
|
+
/**
|
|
4156
|
+
* Runs when the selected values change.
|
|
4157
|
+
*
|
|
4158
|
+
* @deprecated Use `onValueChange`.
|
|
4159
|
+
*/
|
|
4160
|
+
onChange?: (value: AutocompleteValue<true>, reason: AutocompleteChangeReason) => void;
|
|
4161
|
+
};
|
|
4162
|
+
|
|
2628
4163
|
declare type Nested<P> = P & {
|
|
2629
4164
|
[K in Selectors]?: Nested<P>
|
|
2630
4165
|
} & {
|
|
@@ -2635,6 +4170,159 @@ declare type Nested<P> = P & {
|
|
|
2635
4170
|
|
|
2636
4171
|
declare type Number_2 = number & {}
|
|
2637
4172
|
|
|
4173
|
+
declare const numericSizes: {
|
|
4174
|
+
'0': {
|
|
4175
|
+
value: string;
|
|
4176
|
+
};
|
|
4177
|
+
'1': {
|
|
4178
|
+
value: string;
|
|
4179
|
+
};
|
|
4180
|
+
'2': {
|
|
4181
|
+
value: string;
|
|
4182
|
+
};
|
|
4183
|
+
'3': {
|
|
4184
|
+
value: string;
|
|
4185
|
+
};
|
|
4186
|
+
'4': {
|
|
4187
|
+
value: string;
|
|
4188
|
+
};
|
|
4189
|
+
'5': {
|
|
4190
|
+
value: string;
|
|
4191
|
+
};
|
|
4192
|
+
'6': {
|
|
4193
|
+
value: string;
|
|
4194
|
+
};
|
|
4195
|
+
'7': {
|
|
4196
|
+
value: string;
|
|
4197
|
+
};
|
|
4198
|
+
'8': {
|
|
4199
|
+
value: string;
|
|
4200
|
+
};
|
|
4201
|
+
'9': {
|
|
4202
|
+
value: string;
|
|
4203
|
+
};
|
|
4204
|
+
'10': {
|
|
4205
|
+
value: string;
|
|
4206
|
+
};
|
|
4207
|
+
'12': {
|
|
4208
|
+
value: string;
|
|
4209
|
+
};
|
|
4210
|
+
'14': {
|
|
4211
|
+
value: string;
|
|
4212
|
+
};
|
|
4213
|
+
'16': {
|
|
4214
|
+
value: string;
|
|
4215
|
+
};
|
|
4216
|
+
'20': {
|
|
4217
|
+
value: string;
|
|
4218
|
+
};
|
|
4219
|
+
'22': {
|
|
4220
|
+
value: string;
|
|
4221
|
+
};
|
|
4222
|
+
'24': {
|
|
4223
|
+
value: string;
|
|
4224
|
+
};
|
|
4225
|
+
'28': {
|
|
4226
|
+
value: string;
|
|
4227
|
+
};
|
|
4228
|
+
'32': {
|
|
4229
|
+
value: string;
|
|
4230
|
+
};
|
|
4231
|
+
'40': {
|
|
4232
|
+
value: string;
|
|
4233
|
+
};
|
|
4234
|
+
'48': {
|
|
4235
|
+
value: string;
|
|
4236
|
+
};
|
|
4237
|
+
'56': {
|
|
4238
|
+
value: string;
|
|
4239
|
+
};
|
|
4240
|
+
'64': {
|
|
4241
|
+
value: string;
|
|
4242
|
+
};
|
|
4243
|
+
'72': {
|
|
4244
|
+
value: string;
|
|
4245
|
+
};
|
|
4246
|
+
'80': {
|
|
4247
|
+
value: string;
|
|
4248
|
+
};
|
|
4249
|
+
'88': {
|
|
4250
|
+
value: string;
|
|
4251
|
+
};
|
|
4252
|
+
'96': {
|
|
4253
|
+
value: string;
|
|
4254
|
+
};
|
|
4255
|
+
'104': {
|
|
4256
|
+
value: string;
|
|
4257
|
+
};
|
|
4258
|
+
'112': {
|
|
4259
|
+
value: string;
|
|
4260
|
+
};
|
|
4261
|
+
'120': {
|
|
4262
|
+
value: string;
|
|
4263
|
+
};
|
|
4264
|
+
'128': {
|
|
4265
|
+
value: string;
|
|
4266
|
+
};
|
|
4267
|
+
'136': {
|
|
4268
|
+
value: string;
|
|
4269
|
+
};
|
|
4270
|
+
'144': {
|
|
4271
|
+
value: string;
|
|
4272
|
+
};
|
|
4273
|
+
'152': {
|
|
4274
|
+
value: string;
|
|
4275
|
+
};
|
|
4276
|
+
'160': {
|
|
4277
|
+
value: string;
|
|
4278
|
+
};
|
|
4279
|
+
'168': {
|
|
4280
|
+
value: string;
|
|
4281
|
+
};
|
|
4282
|
+
'176': {
|
|
4283
|
+
value: string;
|
|
4284
|
+
};
|
|
4285
|
+
'184': {
|
|
4286
|
+
value: string;
|
|
4287
|
+
};
|
|
4288
|
+
'192': {
|
|
4289
|
+
value: string;
|
|
4290
|
+
};
|
|
4291
|
+
'200': {
|
|
4292
|
+
value: string;
|
|
4293
|
+
};
|
|
4294
|
+
'208': {
|
|
4295
|
+
value: string;
|
|
4296
|
+
};
|
|
4297
|
+
'216': {
|
|
4298
|
+
value: string;
|
|
4299
|
+
};
|
|
4300
|
+
'224': {
|
|
4301
|
+
value: string;
|
|
4302
|
+
};
|
|
4303
|
+
'232': {
|
|
4304
|
+
value: string;
|
|
4305
|
+
};
|
|
4306
|
+
'240': {
|
|
4307
|
+
value: string;
|
|
4308
|
+
};
|
|
4309
|
+
'248': {
|
|
4310
|
+
value: string;
|
|
4311
|
+
};
|
|
4312
|
+
'256': {
|
|
4313
|
+
value: string;
|
|
4314
|
+
};
|
|
4315
|
+
'264': {
|
|
4316
|
+
value: string;
|
|
4317
|
+
};
|
|
4318
|
+
'272': {
|
|
4319
|
+
value: string;
|
|
4320
|
+
};
|
|
4321
|
+
'280': {
|
|
4322
|
+
value: string;
|
|
4323
|
+
};
|
|
4324
|
+
};
|
|
4325
|
+
|
|
2638
4326
|
declare type NumericSizeToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "12" | "14" | "16" | "20" | "22" | "24" | "28" | "32" | "40" | "48" | "56" | "64" | "72" | "80" | "88" | "96" | "104" | "112" | "120" | "128" | "136" | "144" | "152" | "160" | "168" | "176" | "184" | "192" | "200" | "208" | "216" | "224" | "232" | "240" | "248" | "256" | "264" | "272" | "280"
|
|
2639
4327
|
|
|
2640
4328
|
declare interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
@@ -3698,6 +5386,38 @@ export declare const okshaunPreset: Preset;
|
|
|
3698
5386
|
|
|
3699
5387
|
declare type OmittedHTMLProps = 'color' | 'translate' | 'transition' | 'width' | 'height' | 'content'
|
|
3700
5388
|
|
|
5389
|
+
/**
|
|
5390
|
+
* Declares selectable metadata for a parent `Autocomplete`.
|
|
5391
|
+
*
|
|
5392
|
+
* `Option` renders no DOM by itself. Place it directly inside `Autocomplete`;
|
|
5393
|
+
* the parent builds the visible listbox and selection behavior.
|
|
5394
|
+
*
|
|
5395
|
+
* @example
|
|
5396
|
+
* ```tsx
|
|
5397
|
+
* <Autocomplete aria-label="Assignee">
|
|
5398
|
+
* <Option value="ada" label="Ada Lovelace" />
|
|
5399
|
+
* </Autocomplete>
|
|
5400
|
+
* ```
|
|
5401
|
+
*/
|
|
5402
|
+
declare const Option_2: (_props: OptionProps) => null;
|
|
5403
|
+
export { Option_2 as Option }
|
|
5404
|
+
|
|
5405
|
+
/** Metadata accepted by an {@link Option} inside `Autocomplete`. */
|
|
5406
|
+
export declare type OptionProps = {
|
|
5407
|
+
/** Stable value reported when this option is selected. */
|
|
5408
|
+
value: string;
|
|
5409
|
+
/** Visible option text and selected-value label. */
|
|
5410
|
+
label: string;
|
|
5411
|
+
/** Prevents the option from receiving navigation or selection. */
|
|
5412
|
+
disabled?: boolean;
|
|
5413
|
+
/** Secondary text included when filtering options. */
|
|
5414
|
+
description?: string;
|
|
5415
|
+
/** Icon rendered before the option label. */
|
|
5416
|
+
iconLeft?: IconNamesList;
|
|
5417
|
+
/** Icon rendered after the option label. */
|
|
5418
|
+
iconRight?: IconNamesList;
|
|
5419
|
+
};
|
|
5420
|
+
|
|
3701
5421
|
declare type ParentSelector = `${DataAttributes | AriaAttributes} &`
|
|
3702
5422
|
|
|
3703
5423
|
export declare type Parts = Record<string, SystemStyleObject>;
|
|
@@ -3713,6 +5433,10 @@ export declare type PatternConfig<T extends PatternProperties = PatternPropertie
|
|
|
3713
5433
|
|
|
3714
5434
|
export declare type PatternProperties = Record<string, unknown>;
|
|
3715
5435
|
|
|
5436
|
+
/**
|
|
5437
|
+
* Combines custom props with the compatible native props and ref for the
|
|
5438
|
+
* element selected by `as`.
|
|
5439
|
+
*/
|
|
3716
5440
|
declare type PolymorphicComponentProps<T extends ElementType, Props extends object = object> = Props & AsProp<T> & Omit<ComponentPropsWithRef<T>, PropsToOmit<T, Props>>;
|
|
3717
5441
|
|
|
3718
5442
|
declare type PositionAreaAxis =
|
|
@@ -3779,11 +5503,26 @@ declare type PositionTry =
|
|
|
3779
5503
|
| 'inline-end'
|
|
3780
5504
|
| DashedIdent
|
|
3781
5505
|
|
|
5506
|
+
/**
|
|
5507
|
+
* Renders a preformatted code block using native `pre` and `code` semantics.
|
|
5508
|
+
*
|
|
5509
|
+
* Whitespace in string content is preserved. The component does not perform
|
|
5510
|
+
* syntax highlighting.
|
|
5511
|
+
*
|
|
5512
|
+
* @example
|
|
5513
|
+
* ```tsx
|
|
5514
|
+
* <Pre lang="typescript">{'const ready = true;'}</Pre>
|
|
5515
|
+
* ```
|
|
5516
|
+
*/
|
|
3782
5517
|
export declare const Pre: (props: PreProps) => JSX.Element;
|
|
3783
5518
|
|
|
5519
|
+
/** Props accepted by {@link Pre}. */
|
|
3784
5520
|
export declare type PreProps = BoxProps & {
|
|
5521
|
+
/** Preformatted code content. */
|
|
3785
5522
|
children: string | ReactNode;
|
|
5523
|
+
/** Language metadata forwarded to the nested `Code` element. */
|
|
3786
5524
|
lang?: string;
|
|
5525
|
+
/** Element override for the rendered `pre` container. */
|
|
3787
5526
|
as?: string;
|
|
3788
5527
|
};
|
|
3789
5528
|
|
|
@@ -5565,7 +7304,7 @@ export declare const Radio: (props: RadioProps) => JSX.Element;
|
|
|
5565
7304
|
* @example
|
|
5566
7305
|
* const handleChange: RadioChangeHandler = (e) => setChecked(e.target.checked);
|
|
5567
7306
|
*/
|
|
5568
|
-
declare type RadioChangeEvent = ChangeEvent<HTMLInputElement>;
|
|
7307
|
+
export declare type RadioChangeEvent = ChangeEvent<HTMLInputElement>;
|
|
5569
7308
|
|
|
5570
7309
|
/**
|
|
5571
7310
|
* Helper type for radio change handler functions
|
|
@@ -5574,25 +7313,66 @@ declare type RadioChangeEvent = ChangeEvent<HTMLInputElement>;
|
|
|
5574
7313
|
*/
|
|
5575
7314
|
declare type RadioChangeHandler = (e: RadioChangeEvent) => void;
|
|
5576
7315
|
|
|
7316
|
+
/**
|
|
7317
|
+
* Groups radio inputs so that only one may be selected at a time.
|
|
7318
|
+
*
|
|
7319
|
+
* The group owns the selected value and renders with `role="radiogroup"`, so
|
|
7320
|
+
* give it a `label` whenever no visible heading names it. Works controlled
|
|
7321
|
+
* through `value` or uncontrolled through `defaultValue`.
|
|
7322
|
+
*
|
|
7323
|
+
* @example
|
|
7324
|
+
* ```tsx
|
|
7325
|
+
* <RadioGroup name="plan" label="Plan" defaultValue="monthly">
|
|
7326
|
+
* <RadioInput value="monthly" label="Monthly" />
|
|
7327
|
+
* <RadioInput value="annual" label="Annual" />
|
|
7328
|
+
* </RadioGroup>
|
|
7329
|
+
* ```
|
|
7330
|
+
*/
|
|
5577
7331
|
export declare const RadioGroup: (props: RadioGroupProps) => JSX.Element;
|
|
5578
7332
|
|
|
7333
|
+
/** Props accepted by {@link RadioGroup}. */
|
|
5579
7334
|
export declare type RadioGroupProps = Omit<BoxProps, 'role'> & {
|
|
7335
|
+
/** Form field name shared by every radio in the group. */
|
|
5580
7336
|
name: string;
|
|
7337
|
+
/** Selected value when the group is controlled. */
|
|
5581
7338
|
value?: string | null;
|
|
7339
|
+
/** Initial selected value when the group is uncontrolled. */
|
|
5582
7340
|
defaultValue?: string | null;
|
|
7341
|
+
/** Called with the newly selected value. */
|
|
5583
7342
|
onChange?: (value: string) => void;
|
|
7343
|
+
/** Radio inputs belonging to the group. */
|
|
5584
7344
|
children: ReactNode;
|
|
7345
|
+
/** Accessible name announced for the group. */
|
|
5585
7346
|
label?: string;
|
|
7347
|
+
/** Identifier for the group element. */
|
|
5586
7348
|
id?: string;
|
|
7349
|
+
/** Disables every radio in the group. */
|
|
5587
7350
|
disabled?: boolean;
|
|
5588
7351
|
};
|
|
5589
7352
|
|
|
7353
|
+
/**
|
|
7354
|
+
* A labelled radio option.
|
|
7355
|
+
*
|
|
7356
|
+
* Place it in {@link RadioGroup} with a unique `value` to receive shared
|
|
7357
|
+
* selection state, its name, and group-disabled state. Outside a group it acts
|
|
7358
|
+
* like a labelled {@link Radio}; supply `name` to form a native radio group.
|
|
7359
|
+
* Explicit `disabled` wins over group and field context.
|
|
7360
|
+
*
|
|
7361
|
+
* @example
|
|
7362
|
+
* ```tsx
|
|
7363
|
+
* <RadioGroup name="plan" defaultValue="standard" label="Plan">
|
|
7364
|
+
* <RadioInput value="standard">Standard</RadioInput>
|
|
7365
|
+
* </RadioGroup>
|
|
7366
|
+
* ```
|
|
7367
|
+
*/
|
|
5590
7368
|
export declare const RadioInput: (props: RadioInputProps) => JSX.Element;
|
|
5591
7369
|
|
|
7370
|
+
/** Props for {@link RadioInput}, a labelled radio that can join a {@link RadioGroup}. */
|
|
5592
7371
|
export declare type RadioInputProps = Omit<BoxProps, keyof RadioInputVariantProps> & RadioInputVariantProps & {
|
|
5593
7372
|
name?: string;
|
|
5594
7373
|
value?: string;
|
|
5595
7374
|
checked?: boolean;
|
|
7375
|
+
/** @default false */
|
|
5596
7376
|
defaultChecked?: boolean;
|
|
5597
7377
|
onChange?: RadioChangeHandler;
|
|
5598
7378
|
id?: string;
|
|
@@ -5610,9 +7390,11 @@ declare type RadioInputVariantProps = {
|
|
|
5610
7390
|
[key in keyof RadioInputVariant]?: ConditionalValue<RadioInputVariant[key]> | undefined
|
|
5611
7391
|
}
|
|
5612
7392
|
|
|
7393
|
+
/** Props for {@link Radio}, the unlabelled native radio primitive. */
|
|
5613
7394
|
export declare type RadioProps = Omit<BoxProps, 'checked' | 'onChange' | keyof RadioVariantProps> & RadioVariantProps & {
|
|
5614
7395
|
name?: string;
|
|
5615
7396
|
checked?: boolean;
|
|
7397
|
+
/** @default false */
|
|
5616
7398
|
defaultChecked?: boolean;
|
|
5617
7399
|
onChange?: RadioChangeHandler;
|
|
5618
7400
|
id?: string;
|
|
@@ -5633,8 +7415,237 @@ declare type RadiusToken = "0" | "1" | "2" | "3" | "4" | "8" | "16" | "100" | "9
|
|
|
5633
7415
|
|
|
5634
7416
|
export declare type RecipeConfig<V extends RecipeVariantRecord = RecipeVariantRecord> = BaseRecipeConfig<V>;
|
|
5635
7417
|
|
|
5636
|
-
export declare type RecipeVariantRecord = Record<string, Record<string, unknown> | string | number | boolean | null | undefined>;
|
|
7418
|
+
export declare type RecipeVariantRecord = Record<string, Record<string, unknown> | string | number | boolean | null | undefined>;
|
|
7419
|
+
|
|
7420
|
+
/**
|
|
7421
|
+
* Edits a date as separate year, month, and day spinbutton segments.
|
|
7422
|
+
*
|
|
7423
|
+
* The component clamps days to the selected month and emits only complete
|
|
7424
|
+
* dates or a fully cleared `null` value. Use `DateInput` when leading or
|
|
7425
|
+
* trailing slots and field validation styling are needed.
|
|
7426
|
+
*
|
|
7427
|
+
* @example
|
|
7428
|
+
* ```tsx
|
|
7429
|
+
* <SegmentedDate defaultValue={{ year: 2026, month: 8, day: 3 }} />
|
|
7430
|
+
* ```
|
|
7431
|
+
*/
|
|
7432
|
+
export declare const SegmentedDate: (props: SegmentedDateProps) => JSX.Element;
|
|
7433
|
+
|
|
7434
|
+
declare type SegmentedDateFormat = DateFormat;
|
|
7435
|
+
|
|
7436
|
+
/** Props for {@link SegmentedDate}, a keyboard-editable date field. */
|
|
7437
|
+
export declare type SegmentedDateProps = Omit<BoxProps, keyof SegmentedInputsVariantProps | 'children' | 'onChange' | 'value'> & SegmentedInputVariantProps & {
|
|
7438
|
+
/** Ref attached to the segmented group container. */
|
|
7439
|
+
ref?: Ref<HTMLDivElement>;
|
|
7440
|
+
/** Controlled date. Pair with `onChange`; `null` clears every segment. */
|
|
7441
|
+
value?: DateValue | null;
|
|
7442
|
+
/** Initial date when `value` is not provided. */
|
|
7443
|
+
defaultValue?: DateValue | null;
|
|
7444
|
+
/** Runs after all date segments form a date, or after every segment is cleared. */
|
|
7445
|
+
onChange?: (value: DateValue | null) => void;
|
|
7446
|
+
/**
|
|
7447
|
+
* Segment order and default separator.
|
|
7448
|
+
*
|
|
7449
|
+
* @default 'YYYY-MM-DD'
|
|
7450
|
+
*/
|
|
7451
|
+
format?: SegmentedDateFormat;
|
|
7452
|
+
/** Overrides separator content or spacing between date segments. */
|
|
7453
|
+
separators?: SeparatorConfig;
|
|
7454
|
+
/**
|
|
7455
|
+
* Accessible name for the segmented group.
|
|
7456
|
+
*
|
|
7457
|
+
* @default 'Date'
|
|
7458
|
+
*/
|
|
7459
|
+
label?: string;
|
|
7460
|
+
/** Prevents editing and keyboard interaction. */
|
|
7461
|
+
disabled?: boolean;
|
|
7462
|
+
/** Runs when focus enters any date segment. */
|
|
7463
|
+
onFocusWithin?: () => void;
|
|
7464
|
+
/** Runs when focus leaves a date segment and provides the next focused node. */
|
|
7465
|
+
onBlurWithin?: (relatedTarget: Node | null) => void;
|
|
7466
|
+
};
|
|
7467
|
+
|
|
7468
|
+
declare interface SegmentedFieldsVariant {
|
|
7469
|
+
/**
|
|
7470
|
+
* @default "md"
|
|
7471
|
+
*/
|
|
7472
|
+
size: "sm" | "md" | "lg" | "xl"
|
|
7473
|
+
field: "date" | "time" | "dateTime"
|
|
7474
|
+
range: "date" | "time"
|
|
7475
|
+
before: boolean
|
|
7476
|
+
after: boolean
|
|
7477
|
+
}
|
|
7478
|
+
|
|
7479
|
+
declare type SegmentedFieldsVariantProps = {
|
|
7480
|
+
[key in keyof SegmentedFieldsVariant]?: ConditionalValue<SegmentedFieldsVariant[key]> | undefined
|
|
7481
|
+
}
|
|
7482
|
+
|
|
7483
|
+
/**
|
|
7484
|
+
* Renders a keyboard-editable group of numeric and choice segments.
|
|
7485
|
+
*
|
|
7486
|
+
* This is the low-level primitive used by `SegmentedDate` and
|
|
7487
|
+
* `SegmentedTime`. Each segment uses spinbutton semantics; arrow keys step
|
|
7488
|
+
* values, number or choice keys enter values, and focus advances between
|
|
7489
|
+
* completed numeric segments.
|
|
7490
|
+
*
|
|
7491
|
+
* @example
|
|
7492
|
+
* ```tsx
|
|
7493
|
+
* <SegmentedInput
|
|
7494
|
+
* label="Quantity"
|
|
7495
|
+
* items={[{
|
|
7496
|
+
* type: 'segment', kind: 'numeric', id: 'quantity',
|
|
7497
|
+
* label: 'Quantity', placeholder: '0', value: null,
|
|
7498
|
+
* min: 0, max: 99, digits: 2,
|
|
7499
|
+
* }]}
|
|
7500
|
+
* />
|
|
7501
|
+
* ```
|
|
7502
|
+
*/
|
|
7503
|
+
export declare const SegmentedInput: (props: SegmentedInputProps) => JSX.Element;
|
|
7504
|
+
|
|
7505
|
+
/** Change payload containing the complete value map and changed segment. */
|
|
7506
|
+
declare type SegmentedInputChange = {
|
|
7507
|
+
values: SegmentedInputValueMap;
|
|
7508
|
+
changedSegmentId: string;
|
|
7509
|
+
};
|
|
7510
|
+
|
|
7511
|
+
/** Editable segment or visual separator accepted by `SegmentedInput`. */
|
|
7512
|
+
export declare type SegmentedInputItem = SegmentItem | SeparatorItem;
|
|
7513
|
+
|
|
7514
|
+
/** Props for the low-level {@link SegmentedInput} composition primitive. */
|
|
7515
|
+
export declare type SegmentedInputProps = Omit<BoxProps, keyof SegmentedInputsVariantProps | 'children' | 'onChange' | 'value'> & SegmentedInputVariantProps_2 & {
|
|
7516
|
+
/** Ref attached to the segment group container. */
|
|
7517
|
+
ref?: Ref<HTMLDivElement>;
|
|
7518
|
+
/** Ordered editable segments and visual separators. */
|
|
7519
|
+
items: readonly SegmentedInputItem[];
|
|
7520
|
+
/** Accessible name announced for the complete group. */
|
|
7521
|
+
label: string;
|
|
7522
|
+
/** Prevents editing and keyboard interaction. Overrides field context. */
|
|
7523
|
+
disabled?: boolean;
|
|
7524
|
+
/** Controlled values keyed by segment identifier. */
|
|
7525
|
+
value?: SegmentedInputValueMap;
|
|
7526
|
+
/** Runs after a segment changes with the complete next value map. */
|
|
7527
|
+
onChange?: (change: SegmentedInputChange) => void;
|
|
7528
|
+
/** Runs when focus enters any editable segment. */
|
|
7529
|
+
onFocusWithin?: () => void;
|
|
7530
|
+
/** Runs when focus leaves a segment and provides the next focused node. */
|
|
7531
|
+
onBlurWithin?: (relatedTarget: Node | null) => void;
|
|
7532
|
+
};
|
|
7533
|
+
|
|
7534
|
+
declare interface SegmentedInputsVariant {
|
|
7535
|
+
/**
|
|
7536
|
+
* @default "md"
|
|
7537
|
+
*/
|
|
7538
|
+
size: "sm" | "md" | "lg" | "xl"
|
|
7539
|
+
}
|
|
7540
|
+
|
|
7541
|
+
declare type SegmentedInputsVariantProps = {
|
|
7542
|
+
[key in keyof SegmentedInputsVariant]?: ConditionalValue<SegmentedInputsVariant[key]> | undefined
|
|
7543
|
+
}
|
|
7544
|
+
|
|
7545
|
+
/** Current segment values keyed by each segment's stable identifier. */
|
|
7546
|
+
export declare type SegmentedInputValueMap = Record<string, SegmentValue>;
|
|
7547
|
+
|
|
7548
|
+
declare type SegmentedInputVariantProps = Omit<SegmentedInputsVariantProps, 'bare'>;
|
|
7549
|
+
|
|
7550
|
+
declare type SegmentedInputVariantProps_2 = Omit<SegmentedInputsVariantProps, 'bare'>;
|
|
7551
|
+
|
|
7552
|
+
declare type SegmentedInputVariantProps_3 = Omit<SegmentedInputsVariantProps, 'bare'>;
|
|
7553
|
+
|
|
7554
|
+
/**
|
|
7555
|
+
* Edits a time as separate hour, minute, and optional meridiem segments.
|
|
7556
|
+
*
|
|
7557
|
+
* Display may use 12- or 24-hour time, but values always store hours from 0
|
|
7558
|
+
* through 23. Use `TimeInput` when leading or trailing slots and field
|
|
7559
|
+
* validation styling are needed.
|
|
7560
|
+
*
|
|
7561
|
+
* @example
|
|
7562
|
+
* ```tsx
|
|
7563
|
+
* <SegmentedTime defaultValue={{ hour: 13, minute: 30 }} timeFormat="12" />
|
|
7564
|
+
* ```
|
|
7565
|
+
*/
|
|
7566
|
+
export declare const SegmentedTime: (props: SegmentedTimeProps) => JSX.Element;
|
|
7567
|
+
|
|
7568
|
+
/** Props for {@link SegmentedTime}, a keyboard-editable time field. */
|
|
7569
|
+
export declare type SegmentedTimeProps = Omit<BoxProps, keyof SegmentedInputsVariantProps | 'children' | 'onChange' | 'value'> & SegmentedInputVariantProps_3 & {
|
|
7570
|
+
/** Ref attached to the segmented group container. */
|
|
7571
|
+
ref?: Ref<HTMLDivElement>;
|
|
7572
|
+
/** Controlled 24-hour time value. Pair with `onChange`. */
|
|
7573
|
+
value?: TimeValue | null;
|
|
7574
|
+
/** Initial time when `value` is not provided. */
|
|
7575
|
+
defaultValue?: TimeValue | null;
|
|
7576
|
+
/** Runs when the hour and minute segments form a complete time. */
|
|
7577
|
+
onChange?: (value: TimeValue | null) => void;
|
|
7578
|
+
/**
|
|
7579
|
+
* Display cycle; emitted values always use 24-hour hours.
|
|
7580
|
+
*
|
|
7581
|
+
* @default '12'
|
|
7582
|
+
*/
|
|
7583
|
+
timeFormat?: TimeFormat;
|
|
7584
|
+
/**
|
|
7585
|
+
* Minute increment used by keyboard stepping. Unsupported values are normalized.
|
|
7586
|
+
*
|
|
7587
|
+
* @default 1
|
|
7588
|
+
*/
|
|
7589
|
+
minuteStep?: number;
|
|
7590
|
+
/** Overrides content or spacing around time and meridiem separators. */
|
|
7591
|
+
separators?: {
|
|
7592
|
+
time?: SeparatorConfig;
|
|
7593
|
+
meridiem?: SeparatorConfig;
|
|
7594
|
+
};
|
|
7595
|
+
/**
|
|
7596
|
+
* Accessible name for the segmented group.
|
|
7597
|
+
*
|
|
7598
|
+
* @default 'Time'
|
|
7599
|
+
*/
|
|
7600
|
+
label?: string;
|
|
7601
|
+
/** Prevents editing and keyboard interaction. */
|
|
7602
|
+
disabled?: boolean;
|
|
7603
|
+
/** Runs when focus enters any time segment. */
|
|
7604
|
+
onFocusWithin?: () => void;
|
|
7605
|
+
/** Runs when focus leaves a time segment and provides the next focused node. */
|
|
7606
|
+
onBlurWithin?: (relatedTarget: Node | null) => void;
|
|
7607
|
+
};
|
|
7608
|
+
|
|
7609
|
+
/** Metadata for an editable numeric or choice segment. */
|
|
7610
|
+
declare type SegmentItem = {
|
|
7611
|
+
type: 'segment';
|
|
7612
|
+
id: string;
|
|
7613
|
+
label: string;
|
|
7614
|
+
placeholder: string;
|
|
7615
|
+
value: SegmentValue;
|
|
7616
|
+
disabled?: boolean;
|
|
7617
|
+
} & ({
|
|
7618
|
+
kind: 'numeric';
|
|
7619
|
+
min: number;
|
|
7620
|
+
max: number;
|
|
7621
|
+
digits: number;
|
|
7622
|
+
step?: number;
|
|
7623
|
+
format?: (value: number) => string;
|
|
7624
|
+
clampValue?: (value: number, values: SegmentedInputValueMap) => number;
|
|
7625
|
+
} | {
|
|
7626
|
+
kind: 'choice';
|
|
7627
|
+
choices: readonly string[];
|
|
7628
|
+
inputKeys?: Record<string, string>;
|
|
7629
|
+
});
|
|
7630
|
+
|
|
7631
|
+
/** Value stored by one editable segment. */
|
|
7632
|
+
declare type SegmentValue = number | string | null;
|
|
5637
7633
|
|
|
7634
|
+
/**
|
|
7635
|
+
* Chooses one or more values from metadata-only {@link SelectOption} children.
|
|
7636
|
+
*
|
|
7637
|
+
* The trigger uses combobox/listbox semantics. Arrow keys, Enter, and Space open
|
|
7638
|
+
* it; typeahead and arrow keys navigate options; Escape or outside press closes
|
|
7639
|
+
* it. Focus stays on the trigger when the non-modal popup opens.
|
|
7640
|
+
*
|
|
7641
|
+
* @example
|
|
7642
|
+
* ```tsx
|
|
7643
|
+
* <Select defaultValue="draft" name="status">
|
|
7644
|
+
* <SelectOption value="draft" label="Draft" />
|
|
7645
|
+
* <SelectOption value="published" label="Published" />
|
|
7646
|
+
* </Select>
|
|
7647
|
+
* ```
|
|
7648
|
+
*/
|
|
5638
7649
|
export declare const Select: (props: SelectProps) => JSX.Element;
|
|
5639
7650
|
|
|
5640
7651
|
export declare const SelectContext: Context<SelectContextValue | null>;
|
|
@@ -5657,6 +7668,7 @@ declare interface SelectContextValue {
|
|
|
5657
7668
|
*/
|
|
5658
7669
|
export declare const SelectOption: (props: SelectOptionProps) => null;
|
|
5659
7670
|
|
|
7671
|
+
/** Metadata consumed by {@link Select}; `SelectOption` does not render an element itself. */
|
|
5660
7672
|
export declare type SelectOptionProps = Omit<BoxProps, 'children'> & {
|
|
5661
7673
|
/** Option value */
|
|
5662
7674
|
value: string;
|
|
@@ -5676,28 +7688,91 @@ export declare type SelectOptionProps = Omit<BoxProps, 'children'> & {
|
|
|
5676
7688
|
|
|
5677
7689
|
declare type Selectors = AttributeSelector | ParentSelector
|
|
5678
7690
|
|
|
7691
|
+
/** Props for {@link Select}, an ARIA listbox-based single or multiple select. */
|
|
5679
7692
|
export declare type SelectProps = Omit<BoxProps<'button'>, keyof SelectVariantProps | 'children' | 'onChange' | 'type' | 'value'> & SelectVariantProps & {
|
|
7693
|
+
/** Controlled selected value. Use a string for single selection or a string array for multiple selection, with `onChange` to accept changes. */
|
|
5680
7694
|
value?: SelectValue;
|
|
7695
|
+
/**
|
|
7696
|
+
* Initial selected value for an uncontrolled select. It is used only on first render.
|
|
7697
|
+
* @default null
|
|
7698
|
+
*/
|
|
5681
7699
|
defaultValue?: SelectValue;
|
|
7700
|
+
/** Called when the user selects, deselects, or clears an option. In controlled mode, update `value` with the supplied value. */
|
|
5682
7701
|
onChange?: (value: SelectValue) => void;
|
|
7702
|
+
/**
|
|
7703
|
+
* Allows several options to be selected and renders selected options as removable chips.
|
|
7704
|
+
* @default false
|
|
7705
|
+
*/
|
|
5683
7706
|
multiple?: boolean;
|
|
7707
|
+
/**
|
|
7708
|
+
* Text shown while no option is selected.
|
|
7709
|
+
* @default 'Select...'
|
|
7710
|
+
*/
|
|
5684
7711
|
placeholder?: string;
|
|
7712
|
+
/** Controlled popup state. Pair with `onOpenChange`; omit it to use `defaultOpen`. */
|
|
5685
7713
|
open?: boolean;
|
|
7714
|
+
/**
|
|
7715
|
+
* Initial popup state for an uncontrolled select. It is used only on first render.
|
|
7716
|
+
* @default false
|
|
7717
|
+
*/
|
|
5686
7718
|
defaultOpen?: boolean;
|
|
7719
|
+
/** Called when user interaction requests that the popup open or close. */
|
|
5687
7720
|
onOpenChange?: (open: boolean) => void;
|
|
7721
|
+
/**
|
|
7722
|
+
* Floating UI placement for the listbox relative to the trigger.
|
|
7723
|
+
* @default 'bottom-start'
|
|
7724
|
+
*/
|
|
5688
7725
|
placement?: Placement;
|
|
7726
|
+
/**
|
|
7727
|
+
* Gap between the trigger and listbox, in pixels.
|
|
7728
|
+
* @default 4
|
|
7729
|
+
*/
|
|
5689
7730
|
offset?: number;
|
|
5690
7731
|
children: ReactNode;
|
|
7732
|
+
/** Identifier for the combobox trigger. A generated identifier is used when omitted. */
|
|
5691
7733
|
id?: string;
|
|
7734
|
+
/** Form field name. Each selected value is submitted through a hidden input. */
|
|
5692
7735
|
name?: string;
|
|
7736
|
+
/**
|
|
7737
|
+
* Prevents opening, selection, and hidden-input submission.
|
|
7738
|
+
* @default false
|
|
7739
|
+
*/
|
|
5693
7740
|
disabled?: boolean;
|
|
7741
|
+
/**
|
|
7742
|
+
* Marks the combobox as invalid with `aria-invalid` and error styling.
|
|
7743
|
+
* @default false
|
|
7744
|
+
*/
|
|
5694
7745
|
error?: boolean;
|
|
7746
|
+
/**
|
|
7747
|
+
* Density applied to the popup options.
|
|
7748
|
+
* @default 'compact'
|
|
7749
|
+
*/
|
|
5695
7750
|
density?: MenuDensity;
|
|
7751
|
+
/**
|
|
7752
|
+
* Shrinks the trigger to its content instead of using the standard select width.
|
|
7753
|
+
* @default false
|
|
7754
|
+
*/
|
|
5696
7755
|
autoSize?: boolean;
|
|
5697
7756
|
};
|
|
5698
7757
|
|
|
7758
|
+
/**
|
|
7759
|
+
* Marks a custom element as the control that opens its parent {@link Select}.
|
|
7760
|
+
*
|
|
7761
|
+
* The child is cloned rather than wrapped, so it keeps its own type and
|
|
7762
|
+
* styling while receiving the trigger's props.
|
|
7763
|
+
*
|
|
7764
|
+
* @example
|
|
7765
|
+
* ```tsx
|
|
7766
|
+
* <Select>
|
|
7767
|
+
* <SelectTrigger>
|
|
7768
|
+
* <Button>Choose a status</Button>
|
|
7769
|
+
* </SelectTrigger>
|
|
7770
|
+
* </Select>
|
|
7771
|
+
* ```
|
|
7772
|
+
*/
|
|
5699
7773
|
export declare const SelectTrigger: (props: SelectTriggerProps) => ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
5700
7774
|
|
|
7775
|
+
/** Props accepted by {@link SelectTrigger}. */
|
|
5701
7776
|
export declare type SelectTriggerProps = Omit<BoxProps, 'children'> & {
|
|
5702
7777
|
/** Trigger element (button, custom component, etc.) */
|
|
5703
7778
|
children: ReactElement;
|
|
@@ -5718,7 +7793,26 @@ declare type SelectVariantProps = {
|
|
|
5718
7793
|
[key in keyof SelectVariant]?: ConditionalValue<SelectVariant[key]> | undefined
|
|
5719
7794
|
}
|
|
5720
7795
|
|
|
5721
|
-
|
|
7796
|
+
/** Content and spacing used for a separator between editable segments. */
|
|
7797
|
+
export declare type SeparatorConfig = {
|
|
7798
|
+
/** Visual separator content. */
|
|
7799
|
+
content?: ReactNode;
|
|
7800
|
+
/** Space placed around the separator. */
|
|
7801
|
+
gap?: SeparatorGap;
|
|
7802
|
+
};
|
|
7803
|
+
|
|
7804
|
+
/** Spacing applied around a visual separator between editable segments. */
|
|
7805
|
+
export declare type SeparatorGap = 'none' | 'tight' | 'normal' | 'loose';
|
|
7806
|
+
|
|
7807
|
+
/** Metadata for non-editable content between segments. */
|
|
7808
|
+
declare type SeparatorItem = {
|
|
7809
|
+
type: 'separator';
|
|
7810
|
+
id: string;
|
|
7811
|
+
content: ReactNode;
|
|
7812
|
+
gap?: SeparatorGap;
|
|
7813
|
+
};
|
|
7814
|
+
|
|
7815
|
+
declare type ShadowToken = "zeroLight" | "zeroDark" | "raisedLight" | "raisedDark" | "elevatedLight" | "elevatedDark" | "overlayLight" | "overlayDark" | "overflowLight" | "overflowDark" | "zero" | "raised" | "elevated" | "overlay" | "overflow"
|
|
5722
7816
|
|
|
5723
7817
|
declare type SimplePseudos =
|
|
5724
7818
|
| ":-khtml-any-link"
|
|
@@ -5832,14 +7926,46 @@ declare type SimplePseudos =
|
|
|
5832
7926
|
| ":valid"
|
|
5833
7927
|
| ":visited";
|
|
5834
7928
|
|
|
7929
|
+
/** Props for a single-selection {@link Autocomplete}. */
|
|
7930
|
+
declare type SingleAutocompleteProps = AutocompleteBaseProps & {
|
|
7931
|
+
/** Selects at most one value. */
|
|
7932
|
+
multiple?: false;
|
|
7933
|
+
/** Controlled selected value. Pair with `onValueChange`. */
|
|
7934
|
+
value?: AutocompleteValue<false>;
|
|
7935
|
+
/** Initial selected value when `value` is not provided. */
|
|
7936
|
+
defaultValue?: AutocompleteValue<false>;
|
|
7937
|
+
/** Runs when selection, removal, clearing, or creation requests a new value. */
|
|
7938
|
+
onValueChange?: (value: AutocompleteValue<false>, reason: AutocompleteChangeReason) => void;
|
|
7939
|
+
/**
|
|
7940
|
+
* Runs when the selected value changes.
|
|
7941
|
+
*
|
|
7942
|
+
* @deprecated Use `onValueChange`.
|
|
7943
|
+
*/
|
|
7944
|
+
onChange?: (value: AutocompleteValue<false>, reason: AutocompleteChangeReason) => void;
|
|
7945
|
+
};
|
|
7946
|
+
|
|
5835
7947
|
declare type SizeToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "12" | "14" | "16" | "20" | "22" | "24" | "28" | "32" | "40" | "48" | "56" | "64" | "72" | "80" | "88" | "96" | "104" | "112" | "120" | "128" | "136" | "144" | "152" | "160" | "168" | "176" | "184" | "192" | "200" | "208" | "216" | "224" | "232" | "240" | "248" | "256" | "264" | "272" | "280" | "full" | "half" | "min" | "max" | "fit" | "prose" | "auto" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "breakpoint-xs" | "breakpoint-sm" | "breakpoint-md" | "breakpoint-lg" | "breakpoint-xl" | "breakpoint-2xl"
|
|
5836
7948
|
|
|
7949
|
+
/**
|
|
7950
|
+
* Reserves the shape of content while that content is loading.
|
|
7951
|
+
*
|
|
7952
|
+
* `Skeleton` is visual only and does not announce loading. Put it in a region
|
|
7953
|
+
* with an appropriate accessible loading state when users need that feedback.
|
|
7954
|
+
*
|
|
7955
|
+
* @example
|
|
7956
|
+
* ```tsx
|
|
7957
|
+
* <Skeleton width="full" height="40" aria-hidden />
|
|
7958
|
+
* ```
|
|
7959
|
+
*/
|
|
5837
7960
|
export declare const Skeleton: (props: SkeletonProps) => JSX.Element;
|
|
5838
7961
|
|
|
7962
|
+
/** Props accepted by {@link Skeleton}. */
|
|
5839
7963
|
export declare type SkeletonProps = Omit<BoxProps, 'as'> & {
|
|
5840
7964
|
variant?: 'text' | 'circular' | 'rounded' | 'rectangular';
|
|
5841
7965
|
animation?: 'pulse' | 'wave' | false;
|
|
7966
|
+
/** @default "span" */
|
|
5842
7967
|
component?: ElementType;
|
|
7968
|
+
/** Content whose dimensions the skeleton should match. */
|
|
5843
7969
|
children?: ReactNode;
|
|
5844
7970
|
};
|
|
5845
7971
|
|
|
@@ -5849,10 +7975,24 @@ export declare type SlotRecipeVariantRecord<S extends string = string> = Record<
|
|
|
5849
7975
|
|
|
5850
7976
|
declare type SpacingToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "12" | "14" | "16" | "20" | "22" | "24" | "28" | "32" | "40" | "48" | "56" | "64" | "72" | "80" | "88" | "96" | "104" | "112" | "120" | "128" | "136" | "144" | "152" | "160" | "168" | "176" | "184" | "192" | "200" | "208" | "216" | "224" | "232" | "240" | "248" | "256" | "264" | "272" | "280" | "full" | "half" | "min" | "max" | "fit" | "prose" | "auto" | "-0" | "-1" | "-2" | "-3" | "-4" | "-5" | "-6" | "-7" | "-8" | "-9" | "-10" | "-12" | "-14" | "-16" | "-20" | "-22" | "-24" | "-28" | "-32" | "-40" | "-48" | "-56" | "-64" | "-72" | "-80" | "-88" | "-96" | "-104" | "-112" | "-120" | "-128" | "-136" | "-144" | "-152" | "-160" | "-168" | "-176" | "-184" | "-192" | "-200" | "-208" | "-216" | "-224" | "-232" | "-240" | "-248" | "-256" | "-264" | "-272" | "-280" | "-full" | "-half" | "-min" | "-max" | "-fit" | "-prose" | "-auto"
|
|
5851
7977
|
|
|
7978
|
+
/**
|
|
7979
|
+
* Displays an indeterminate visual loading indicator.
|
|
7980
|
+
*
|
|
7981
|
+
* `Spinner` does not create a live region or loading label. Apply `aria-busy`
|
|
7982
|
+
* and visible or screen-reader text to the region whose state is changing.
|
|
7983
|
+
*
|
|
7984
|
+
* @example
|
|
7985
|
+
* ```tsx
|
|
7986
|
+
* <Box aria-busy="true" aria-label="Loading orders"><Spinner /></Box>
|
|
7987
|
+
* ```
|
|
7988
|
+
*/
|
|
5852
7989
|
export declare const Spinner: (props: SpinnerProps) => JSX.Element;
|
|
5853
7990
|
|
|
7991
|
+
/** Props accepted by {@link Spinner}. */
|
|
5854
7992
|
export declare type SpinnerProps = Omit<BoxProps, keyof SpinnerVariantProps> & SpinnerVariantProps & {
|
|
7993
|
+
/** @default false */
|
|
5855
7994
|
inverse?: boolean;
|
|
7995
|
+
/** @default false */
|
|
5856
7996
|
centered?: boolean;
|
|
5857
7997
|
};
|
|
5858
7998
|
|
|
@@ -11983,6 +14123,20 @@ declare type String_2 = string & {}
|
|
|
11983
14123
|
|
|
11984
14124
|
declare type StringToMultiple<T extends string> = T | `${T}, ${T}`
|
|
11985
14125
|
|
|
14126
|
+
/**
|
|
14127
|
+
* Opens nested menu content from a row in a parent {@link Menu}.
|
|
14128
|
+
*
|
|
14129
|
+
* Hover submenus open as positioned flyouts; `interaction="digin"` replaces
|
|
14130
|
+
* the parent level in the same panel. Arrow Right opens a flyout and Arrow Left
|
|
14131
|
+
* returns focus to its trigger. Filtering also searches nested children.
|
|
14132
|
+
*
|
|
14133
|
+
* @example
|
|
14134
|
+
* ```tsx
|
|
14135
|
+
* <SubMenu label="More actions">
|
|
14136
|
+
* <MenuItem label="Duplicate" />
|
|
14137
|
+
* </SubMenu>
|
|
14138
|
+
* ```
|
|
14139
|
+
*/
|
|
11986
14140
|
export declare const SubMenu: (props: SubMenuProps) => JSX.Element | null;
|
|
11987
14141
|
|
|
11988
14142
|
declare type SubMenuInteraction = 'hover' | 'digin';
|
|
@@ -19450,7 +21604,7 @@ declare interface SystemProperties {
|
|
|
19450
21604
|
invert?: ConditionalValue<WithEscapeHatch<string | number>>
|
|
19451
21605
|
saturate?: ConditionalValue<WithEscapeHatch<string | number>>
|
|
19452
21606
|
sepia?: ConditionalValue<WithEscapeHatch<string | number>>
|
|
19453
|
-
dropShadow?: ConditionalValue<WithEscapeHatch<
|
|
21607
|
+
dropShadow?: ConditionalValue<WithEscapeHatch<UtilityValues["dropShadow"] | CssVars>>
|
|
19454
21608
|
blur?: ConditionalValue<WithEscapeHatch<UtilityValues["blur"] | CssVars>>
|
|
19455
21609
|
backdropBlur?: ConditionalValue<WithEscapeHatch<UtilityValues["backdropBlur"] | CssVars>>
|
|
19456
21610
|
backdropBrightness?: ConditionalValue<WithEscapeHatch<string | number>>
|
|
@@ -19549,7 +21703,6 @@ declare interface SystemProperties {
|
|
|
19549
21703
|
scrollSnapMarginRight?: ConditionalValue<WithEscapeHatch<UtilityValues["scrollSnapMarginRight"] | CssVars>>
|
|
19550
21704
|
srOnly?: ConditionalValue<WithEscapeHatch<UtilityValues["srOnly"] | CssVars>>
|
|
19551
21705
|
debug?: ConditionalValue<WithEscapeHatch<UtilityValues["debug"] | CssVars>>
|
|
19552
|
-
filtersProperty?: ConditionalValue<WithEscapeHatch<string | number>>
|
|
19553
21706
|
colorPalette?: ConditionalValue<WithEscapeHatch<UtilityValues["colorPalette"] | CssVars>>
|
|
19554
21707
|
textStyle?: ConditionalValue<WithEscapeHatch<UtilityValues["textStyle"] | CssVars>>
|
|
19555
21708
|
layerStyle?: ConditionalValue<WithEscapeHatch<UtilityValues["layerStyle"] | CssVars>>
|
|
@@ -19559,43 +21712,92 @@ export declare type SystemStyleObject = Record<string, unknown>;
|
|
|
19559
21712
|
|
|
19560
21713
|
declare type SystemStyleObject_2 = Omit<Nested<SystemProperties & CssVarProperties>, 'base'>
|
|
19561
21714
|
|
|
21715
|
+
/**
|
|
21716
|
+
* Displays a compact, non-interactive category or status label.
|
|
21717
|
+
*
|
|
21718
|
+
* Use `Chip` when the item can be selected or dismissed. Icons are decorative,
|
|
21719
|
+
* so the text must communicate the tag's meaning.
|
|
21720
|
+
*
|
|
21721
|
+
* @example
|
|
21722
|
+
* ```tsx
|
|
21723
|
+
* <Tag hue="green">Approved</Tag>
|
|
21724
|
+
* ```
|
|
21725
|
+
*/
|
|
19562
21726
|
export declare const Tag: (props: TagProps) => JSX.Element;
|
|
19563
21727
|
|
|
21728
|
+
/** Props accepted by {@link Tag}. */
|
|
19564
21729
|
export declare type TagProps = Omit<BoxProps, keyof TagVariantProps> & Omit<TagVariantProps, 'iconBefore' | 'iconAfter'> & {
|
|
21730
|
+
/** Visible tag label. */
|
|
19565
21731
|
children: string;
|
|
21732
|
+
/** Decorative icon shown before the label. */
|
|
19566
21733
|
iconBefore?: IconNamesList;
|
|
21734
|
+
/** Decorative icon shown after the label. */
|
|
19567
21735
|
iconAfter?: IconNamesList;
|
|
19568
21736
|
};
|
|
19569
21737
|
|
|
19570
21738
|
declare interface TagVariant {
|
|
19571
|
-
/**
|
|
19572
|
-
* @default "default"
|
|
19573
|
-
*/
|
|
19574
|
-
variant: "default" | "bold"
|
|
19575
21739
|
/**
|
|
19576
21740
|
* @default "gray"
|
|
19577
21741
|
*/
|
|
19578
21742
|
hue: "gray" | "red" | "orange" | "yellow" | "lime" | "green" | "teal" | "blue" | "indigo" | "purple" | "magenta" | "tan"
|
|
21743
|
+
/**
|
|
21744
|
+
* @default "default"
|
|
21745
|
+
*/
|
|
21746
|
+
variant: "default" | "bold"
|
|
19579
21747
|
iconBefore: boolean
|
|
19580
21748
|
iconAfter: boolean
|
|
19581
21749
|
hasIcon: boolean
|
|
19582
21750
|
}
|
|
19583
21751
|
|
|
19584
21752
|
declare type TagVariantProps = {
|
|
19585
|
-
[key in keyof TagVariant]?: TagVariant[key] | undefined
|
|
21753
|
+
[key in keyof TagVariant]?: ConditionalValue<TagVariant[key]> | undefined
|
|
19586
21754
|
}
|
|
19587
21755
|
|
|
21756
|
+
/**
|
|
21757
|
+
* Renders design-system typography without imposing document semantics.
|
|
21758
|
+
*
|
|
21759
|
+
* The component renders a `span` by default. Choose `as` based on the content's
|
|
21760
|
+
* semantic role; use `Heading` for document headings and `Label` for form
|
|
21761
|
+
* labels. Provide `definition` for a short explanation that appears on hover
|
|
21762
|
+
* and keyboard focus.
|
|
21763
|
+
*
|
|
21764
|
+
* @example
|
|
21765
|
+
* ```tsx
|
|
21766
|
+
* <Text definition="Application programming interface">API</Text>
|
|
21767
|
+
* ```
|
|
21768
|
+
*/
|
|
19588
21769
|
declare const Text_2: (props: TextProps) => JSX.Element;
|
|
19589
21770
|
export { Text_2 as Text }
|
|
19590
21771
|
|
|
21772
|
+
/**
|
|
21773
|
+
* Renders a multi-line native textarea.
|
|
21774
|
+
*
|
|
21775
|
+
* Use a `Label` or `FormField` to provide its accessible name. Local `size`,
|
|
21776
|
+
* error, invalid, and disabled values override matching field-context values.
|
|
21777
|
+
*
|
|
21778
|
+
* @example
|
|
21779
|
+
* ```tsx
|
|
21780
|
+
* <Textarea id="notes" name="notes" rows={4} />
|
|
21781
|
+
* ```
|
|
21782
|
+
*/
|
|
19591
21783
|
export declare const Textarea: (props: TextareaProps) => JSX.Element;
|
|
19592
21784
|
|
|
21785
|
+
/** Props for {@link Textarea}, a multi-line native text input. */
|
|
19593
21786
|
export declare type TextareaProps = Omit<BoxProps, keyof TextareaVariantProps> & TextareaVariantProps & {
|
|
21787
|
+
/** Form field name submitted with the textarea value. */
|
|
19594
21788
|
name: string;
|
|
21789
|
+
/**
|
|
21790
|
+
* Applies the recipe's content-sized visual treatment; it does not measure or resize the native element.
|
|
21791
|
+
* @default false
|
|
21792
|
+
*/
|
|
19595
21793
|
autoSize?: boolean;
|
|
21794
|
+
/** Applies error styling. The local value takes precedence over field context. */
|
|
19596
21795
|
error?: boolean;
|
|
21796
|
+
/** Marks the native textarea invalid with `aria-invalid` and applies invalid styling. */
|
|
19597
21797
|
invalid?: boolean;
|
|
21798
|
+
/** Disables the native textarea. The local value takes precedence over field context. */
|
|
19598
21799
|
disabled?: boolean;
|
|
21800
|
+
/** Identifier used to associate a visible `Label` with this textarea. */
|
|
19599
21801
|
id?: string;
|
|
19600
21802
|
};
|
|
19601
21803
|
|
|
@@ -19611,18 +21813,41 @@ declare type TextareaVariantProps = {
|
|
|
19611
21813
|
[key in keyof TextareaVariant]?: ConditionalValue<TextareaVariant[key]> | undefined
|
|
19612
21814
|
}
|
|
19613
21815
|
|
|
21816
|
+
/**
|
|
21817
|
+
* Renders a single-line native input with optional leading and trailing slots.
|
|
21818
|
+
*
|
|
21819
|
+
* Use a `Label` or `FormField` to provide an accessible name. `before` and
|
|
21820
|
+
* `after` can contain controls; they inherit size and state through slot
|
|
21821
|
+
* context. Explicit slots take precedence over `iconBefore` and `iconAfter`.
|
|
21822
|
+
*
|
|
21823
|
+
* @example
|
|
21824
|
+
* ```tsx
|
|
21825
|
+
* <TextInput id="email" name="email" type="email" iconBefore="mail" />
|
|
21826
|
+
* ```
|
|
21827
|
+
*/
|
|
19614
21828
|
export declare const TextInput: (props: TextInputProps) => JSX.Element;
|
|
19615
21829
|
|
|
19616
|
-
|
|
21830
|
+
/** Props for {@link TextInput}, a single-line native input with optional slots. */
|
|
21831
|
+
export declare type TextInputProps = Omit<BoxProps, keyof TextInputVariantProps> & Omit<TextInputVariantProps, 'before' | 'after'> & {
|
|
21832
|
+
/** Form field name submitted with the input value. */
|
|
19617
21833
|
name: string;
|
|
21834
|
+
/** Identifier used to associate a visible `Label` with this input. */
|
|
19618
21835
|
id?: string;
|
|
21836
|
+
/** Content rendered before the native input. Takes precedence over `iconBefore`. */
|
|
19619
21837
|
before?: ReactNode;
|
|
21838
|
+
/** Content rendered after the native input. Takes precedence over `iconAfter`. */
|
|
19620
21839
|
after?: ReactNode;
|
|
21840
|
+
/** Decorative icon rendered before the input when `before` is omitted. */
|
|
19621
21841
|
iconBefore?: IconNamesList;
|
|
21842
|
+
/** Decorative icon rendered after the input when `after` is omitted. */
|
|
19622
21843
|
iconAfter?: IconNamesList;
|
|
21844
|
+
/** Applies error styling. The local value takes precedence over field context. */
|
|
19623
21845
|
error?: boolean;
|
|
21846
|
+
/** Disables the native input. The local value takes precedence over slot and field context. */
|
|
19624
21847
|
disabled?: boolean;
|
|
21848
|
+
/** Applies valid styling without changing native constraint validation. */
|
|
19625
21849
|
valid?: boolean;
|
|
21850
|
+
/** Marks the native input invalid with `aria-invalid` and applies invalid styling. */
|
|
19626
21851
|
invalid?: boolean;
|
|
19627
21852
|
type?: 'text' | 'number' | 'email' | 'password' | 'search' | 'tel' | 'url' | 'date' | 'time' | 'datetime-local' | 'month' | 'week';
|
|
19628
21853
|
};
|
|
@@ -19632,19 +21857,29 @@ declare interface TextInputVariant {
|
|
|
19632
21857
|
* @default "md"
|
|
19633
21858
|
*/
|
|
19634
21859
|
size: "sm" | "md" | "lg" | "xl"
|
|
19635
|
-
|
|
19636
|
-
|
|
21860
|
+
before: boolean
|
|
21861
|
+
after: boolean
|
|
19637
21862
|
autoSize: boolean
|
|
19638
21863
|
}
|
|
19639
21864
|
|
|
19640
21865
|
declare type TextInputVariantProps = {
|
|
19641
|
-
[key in keyof TextInputVariant]?: TextInputVariant[key] | undefined
|
|
21866
|
+
[key in keyof TextInputVariant]?: ConditionalValue<TextInputVariant[key]> | undefined
|
|
19642
21867
|
}
|
|
19643
21868
|
|
|
21869
|
+
/** Props accepted by {@link Text}. */
|
|
19644
21870
|
export declare type TextProps = Omit<BoxProps, keyof TextVariantProps> & TextVariantProps & {
|
|
21871
|
+
/** Text or inline content to render. */
|
|
19645
21872
|
children: string | ReactNode;
|
|
21873
|
+
/** @default "span" */
|
|
19646
21874
|
as?: ElementType;
|
|
21875
|
+
/**
|
|
21876
|
+
* Short, nonessential explanation shown in a tooltip. Applies a dashed
|
|
21877
|
+
* underline and adds the text to sequential keyboard focus.
|
|
21878
|
+
*/
|
|
21879
|
+
definition?: string;
|
|
21880
|
+
/** Explicit ARIA role when the rendered element does not provide it. */
|
|
19647
21881
|
role?: string;
|
|
21882
|
+
/** Adds the text to sequential keyboard focus when a composite widget requires it. */
|
|
19648
21883
|
tabIndex?: number;
|
|
19649
21884
|
};
|
|
19650
21885
|
|
|
@@ -19658,6 +21893,7 @@ declare interface TextVariant {
|
|
|
19658
21893
|
bold: boolean
|
|
19659
21894
|
italic: boolean
|
|
19660
21895
|
underline: boolean
|
|
21896
|
+
dashedUnderline: boolean
|
|
19661
21897
|
truncate: boolean
|
|
19662
21898
|
allCaps: boolean
|
|
19663
21899
|
size: "10" | "12" | "14" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "72" | "80" | "96"
|
|
@@ -19679,69 +21915,281 @@ export declare function ThemeProvider({ children }: {
|
|
|
19679
21915
|
children: ReactNode;
|
|
19680
21916
|
}): JSX.Element;
|
|
19681
21917
|
|
|
21918
|
+
/**
|
|
21919
|
+
* Renders an icon-only control that toggles the nearest theme provider between
|
|
21920
|
+
* light and dark themes.
|
|
21921
|
+
*
|
|
21922
|
+
* It obtains state from `useTheme`, so it must be rendered below the design
|
|
21923
|
+
* system's theme provider. The accessible label always describes the theme that
|
|
21924
|
+
* will be selected next.
|
|
21925
|
+
*
|
|
21926
|
+
* @example
|
|
21927
|
+
* ```tsx
|
|
21928
|
+
* <ThemeSwitcher />
|
|
21929
|
+
* ```
|
|
21930
|
+
*/
|
|
19682
21931
|
export declare const ThemeSwitcher: (props: ThemeSwitcherProps) => JSX.Element;
|
|
19683
21932
|
|
|
19684
21933
|
declare type ThemeSwitcherProps = BoxProps;
|
|
19685
21934
|
|
|
19686
|
-
|
|
21935
|
+
/** Display cycle used for time input while values remain normalized to 24-hour time. */
|
|
21936
|
+
export declare type TimeFormat = '12' | '24';
|
|
21937
|
+
|
|
21938
|
+
/**
|
|
21939
|
+
* Renders a segmented time field with optional leading and trailing content.
|
|
21940
|
+
*
|
|
21941
|
+
* Display can use 12- or 24-hour time while values remain normalized to
|
|
21942
|
+
* 24-hour hours. Use `TimePicker` when a time-selection menu is also needed.
|
|
21943
|
+
*
|
|
21944
|
+
* @example
|
|
21945
|
+
* ```tsx
|
|
21946
|
+
* <TimeInput label="Start time" defaultValue={{ hour: 9, minute: 30 }} />
|
|
21947
|
+
* ```
|
|
21948
|
+
*/
|
|
21949
|
+
export declare const TimeInput: (props: TimeInputProps) => JSX.Element;
|
|
19687
21950
|
|
|
19688
|
-
|
|
19689
|
-
|
|
21951
|
+
/** Props for {@link TimeInput}, including segmented time state and field slots. */
|
|
21952
|
+
export declare type TimeInputProps = Omit<BoxProps, keyof SegmentedFieldsVariantProps | 'children'> & Omit<SegmentedFieldsVariantProps, 'field' | 'range' | 'before' | 'after'> & {
|
|
21953
|
+
/** Identifier forwarded to the segmented time group. */
|
|
21954
|
+
id?: string;
|
|
21955
|
+
/** Controlled 24-hour time value. Pair with `onChange`. */
|
|
19690
21956
|
value?: TimeValue | null;
|
|
19691
|
-
/**
|
|
21957
|
+
/** Initial time when `value` is not provided. */
|
|
19692
21958
|
defaultValue?: TimeValue | null;
|
|
19693
|
-
/**
|
|
21959
|
+
/** Runs when the time segments form a complete value. */
|
|
19694
21960
|
onChange?: (value: TimeValue | null) => void;
|
|
19695
|
-
/**
|
|
19696
|
-
|
|
19697
|
-
/** Minute
|
|
21961
|
+
/** Display cycle; emitted values always use 24-hour hours. */
|
|
21962
|
+
timeFormat?: TimeFormat;
|
|
21963
|
+
/** Minute increment used by keyboard stepping. */
|
|
19698
21964
|
minuteStep?: number;
|
|
19699
|
-
/** Accessible
|
|
21965
|
+
/** Accessible name for the segmented time group. */
|
|
19700
21966
|
label?: string;
|
|
19701
|
-
|
|
21967
|
+
/** Content before the time field. Takes precedence over `iconBefore`. */
|
|
21968
|
+
before?: ReactNode;
|
|
21969
|
+
/** Content after the time field. Takes precedence over `iconAfter`. */
|
|
21970
|
+
after?: ReactNode;
|
|
21971
|
+
/** Legacy icon rendered before the field when `before` is absent. */
|
|
21972
|
+
iconBefore?: IconNamesList;
|
|
21973
|
+
/** Legacy icon rendered after the field when `after` is absent. */
|
|
21974
|
+
iconAfter?: IconNamesList;
|
|
21975
|
+
/** Applies error styling. Overrides field context when provided. */
|
|
19702
21976
|
error?: boolean;
|
|
21977
|
+
/** Prevents editing. Overrides field context when provided. */
|
|
21978
|
+
disabled?: boolean;
|
|
21979
|
+
/** Applies invalid styling. Overrides field context when provided. */
|
|
19703
21980
|
invalid?: boolean;
|
|
19704
|
-
|
|
19705
|
-
name?: string;
|
|
19706
|
-
/** Controlled popover open state */
|
|
21981
|
+
/** Reflected through to the segmented field — lets a wrapping Menu/Picker show "active anchor" styling */
|
|
19707
21982
|
open?: boolean;
|
|
19708
|
-
/**
|
|
19709
|
-
|
|
19710
|
-
|
|
21983
|
+
/** Forwarded to the segmented field — see SegmentedTime's onFocusWithin */
|
|
21984
|
+
onFocusWithin?: () => void;
|
|
21985
|
+
/** Forwarded to the segmented field — see SegmentedTime's onBlurWithin */
|
|
21986
|
+
onBlurWithin?: (relatedTarget: Node | null) => void;
|
|
19711
21987
|
};
|
|
19712
21988
|
|
|
19713
|
-
|
|
21989
|
+
/**
|
|
21990
|
+
* Presents hour, minute, and optional meridiem selection columns in a Menu.
|
|
21991
|
+
*
|
|
21992
|
+
* Each selection commits immediately while the menu remains open. Supply a
|
|
21993
|
+
* `trigger`, or set inherited `inline` to render the columns in normal flow.
|
|
21994
|
+
*
|
|
21995
|
+
* @example
|
|
21996
|
+
* ```tsx
|
|
21997
|
+
* <TimeMenu trigger={<Button>Choose time</Button>} onChange={setTime} />
|
|
21998
|
+
* ```
|
|
21999
|
+
*/
|
|
22000
|
+
export declare const TimeMenu: (props: TimeMenuProps) => any;
|
|
22001
|
+
|
|
22002
|
+
/** Props for {@link TimeMenu}, including selected time and display cycle. */
|
|
22003
|
+
export declare type TimeMenuProps = Omit<MenuProps, 'children' | 'onChange' | 'value'> & {
|
|
22004
|
+
/** Selected 24-hour time reflected in the menu columns. */
|
|
22005
|
+
value?: TimeValue | null;
|
|
22006
|
+
/** Runs immediately when an hour, minute, or meridiem choice is selected. */
|
|
22007
|
+
onChange?: (value: TimeValue | null) => void;
|
|
19714
22008
|
/**
|
|
19715
|
-
*
|
|
22009
|
+
* Display cycle; emitted values always use 24-hour hours.
|
|
22010
|
+
*
|
|
22011
|
+
* @default '12'
|
|
19716
22012
|
*/
|
|
19717
|
-
|
|
19718
|
-
|
|
22013
|
+
timeFormat?: TimeFormat;
|
|
22014
|
+
/**
|
|
22015
|
+
* Interval used to generate minute choices.
|
|
22016
|
+
*
|
|
22017
|
+
* @default 1
|
|
22018
|
+
*/
|
|
22019
|
+
minuteStep?: number;
|
|
22020
|
+
/** Prevents opening or selection and returns only the trigger. */
|
|
22021
|
+
disabled?: boolean;
|
|
22022
|
+
};
|
|
19719
22023
|
|
|
19720
|
-
|
|
19721
|
-
|
|
19722
|
-
|
|
22024
|
+
/**
|
|
22025
|
+
* Combines keyboard time entry with hour and minute selection columns.
|
|
22026
|
+
*
|
|
22027
|
+
* Focusing the segmented input opens the menu. Input and menu interactions
|
|
22028
|
+
* update the same value, normalized to 24-hour hours.
|
|
22029
|
+
*
|
|
22030
|
+
* @example
|
|
22031
|
+
* ```tsx
|
|
22032
|
+
* <TimePicker label="Start time" value={time} onChange={setTime} />
|
|
22033
|
+
* ```
|
|
22034
|
+
*/
|
|
22035
|
+
export declare const TimePicker: (props: TimePickerProps) => JSX.Element;
|
|
22036
|
+
|
|
22037
|
+
/** Props for {@link TimePicker}, combining segmented entry and a time menu. */
|
|
22038
|
+
export declare type TimePickerProps = Pick<TimeInputProps, 'id' | 'label' | 'before' | 'after' | 'iconBefore' | 'iconAfter' | 'error' | 'disabled' | 'invalid' | 'timeFormat' | 'size'> & {
|
|
22039
|
+
/** Controlled 24-hour time value. Pair with `onChange`. */
|
|
22040
|
+
value?: TimeValue | null;
|
|
22041
|
+
/** Initial time when `value` is not provided. */
|
|
22042
|
+
defaultValue?: TimeValue | null;
|
|
22043
|
+
/** Runs when typing or menu selection commits a time. */
|
|
22044
|
+
onChange?: (value: TimeValue | null) => void;
|
|
22045
|
+
/** Minute interval used by segmented stepping and menu choices. */
|
|
22046
|
+
minuteStep?: number;
|
|
22047
|
+
/** Floating UI placement of the time menu. */
|
|
22048
|
+
placement?: Placement;
|
|
22049
|
+
/** Controlled menu visibility. Pair with `onOpenChange`. */
|
|
22050
|
+
open?: boolean;
|
|
22051
|
+
/**
|
|
22052
|
+
* Initial menu visibility when `open` is not provided.
|
|
22053
|
+
*
|
|
22054
|
+
* @default false
|
|
22055
|
+
*/
|
|
22056
|
+
defaultOpen?: boolean;
|
|
22057
|
+
/** Runs when interaction requests that the menu open or close. */
|
|
22058
|
+
onOpenChange?: (open: boolean) => void;
|
|
22059
|
+
};
|
|
22060
|
+
|
|
22061
|
+
/**
|
|
22062
|
+
* Renders start and end times as two coordinated segmented fields.
|
|
22063
|
+
*
|
|
22064
|
+
* Values remain normalized to 24-hour time regardless of display cycle. Use
|
|
22065
|
+
* `TimeRangePicker` when a menu and Apply/Cancel flow are also needed.
|
|
22066
|
+
*
|
|
22067
|
+
* @example
|
|
22068
|
+
* ```tsx
|
|
22069
|
+
* <TimeRangeInput startLabel="Opens" endLabel="Closes" />
|
|
22070
|
+
* ```
|
|
22071
|
+
*/
|
|
22072
|
+
export declare const TimeRangeInput: (props: TimeRangeInputProps) => JSX.Element;
|
|
19723
22073
|
|
|
19724
|
-
|
|
19725
|
-
|
|
19726
|
-
|
|
19727
|
-
|
|
19728
|
-
|
|
19729
|
-
|
|
19730
|
-
|
|
19731
|
-
|
|
19732
|
-
|
|
19733
|
-
|
|
19734
|
-
|
|
19735
|
-
|
|
22074
|
+
/** Props for {@link TimeRangeInput}, including range state and field slots. */
|
|
22075
|
+
export declare type TimeRangeInputProps = Omit<BoxProps, keyof SegmentedFieldsVariantProps | 'children'> & Omit<SegmentedFieldsVariantProps, 'field' | 'range' | 'before' | 'after'> & {
|
|
22076
|
+
/** Identifier applied to the range container. */
|
|
22077
|
+
id?: string;
|
|
22078
|
+
/** Controlled start and end times. Pair with `onChange`. */
|
|
22079
|
+
value?: TimeRangeValue | null;
|
|
22080
|
+
/** Initial time range when `value` is not provided. */
|
|
22081
|
+
defaultValue?: TimeRangeValue | null;
|
|
22082
|
+
/** Runs whenever either endpoint becomes complete or is cleared. */
|
|
22083
|
+
onChange?: (value: TimeRangeValue | null) => void;
|
|
22084
|
+
/** Display cycle shared by both endpoints. */
|
|
22085
|
+
timeFormat?: TimeFormat;
|
|
22086
|
+
/** Minute increment used by keyboard stepping. */
|
|
19736
22087
|
minuteStep?: number;
|
|
19737
|
-
|
|
22088
|
+
/** Accessible name for the start-time segments. */
|
|
22089
|
+
startLabel?: string;
|
|
22090
|
+
/** Accessible name for the end-time segments. */
|
|
22091
|
+
endLabel?: string;
|
|
22092
|
+
/** Content before the range. Takes precedence over `iconBefore`. */
|
|
22093
|
+
before?: ReactNode;
|
|
22094
|
+
/** Content after the range. Takes precedence over `iconAfter`. */
|
|
22095
|
+
after?: ReactNode;
|
|
22096
|
+
/** Legacy icon rendered before the range when `before` is absent. */
|
|
22097
|
+
iconBefore?: IconNamesList;
|
|
22098
|
+
/** Legacy icon rendered after the range when `after` is absent. */
|
|
22099
|
+
iconAfter?: IconNamesList;
|
|
22100
|
+
/** Applies error styling. Overrides field context when provided. */
|
|
19738
22101
|
error?: boolean;
|
|
19739
|
-
/**
|
|
19740
|
-
|
|
19741
|
-
/**
|
|
19742
|
-
|
|
22102
|
+
/** Prevents editing both endpoints. Overrides field context when provided. */
|
|
22103
|
+
disabled?: boolean;
|
|
22104
|
+
/** Applies invalid styling. Overrides field context when provided. */
|
|
22105
|
+
invalid?: boolean;
|
|
22106
|
+
/** Reflected through to the segmented fields — lets a wrapping Menu/Picker show "active anchor" styling */
|
|
22107
|
+
open?: boolean;
|
|
22108
|
+
/** Forwarded to both segmented fields — see SegmentedTime's onFocusWithin */
|
|
22109
|
+
onFocusWithin?: () => void;
|
|
22110
|
+
/** Forwarded to both segmented fields — see SegmentedTime's onBlurWithin */
|
|
22111
|
+
onBlurWithin?: (relatedTarget: Node | null) => void;
|
|
22112
|
+
};
|
|
22113
|
+
|
|
22114
|
+
/**
|
|
22115
|
+
* Selects a start and end time from parallel selection columns.
|
|
22116
|
+
*
|
|
22117
|
+
* Changes remain a draft until Apply is pressed. Cancel restores the
|
|
22118
|
+
* committed `value`; Apply is unavailable until both endpoints are complete.
|
|
22119
|
+
*
|
|
22120
|
+
* @example
|
|
22121
|
+
* ```tsx
|
|
22122
|
+
* <TimeRangeMenu
|
|
22123
|
+
* trigger={<Button>Choose hours</Button>}
|
|
22124
|
+
* value={range}
|
|
22125
|
+
* onChange={setRange}
|
|
22126
|
+
* />
|
|
22127
|
+
* ```
|
|
22128
|
+
*/
|
|
22129
|
+
export declare const TimeRangeMenu: (props: TimeRangeMenuProps) => any;
|
|
22130
|
+
|
|
22131
|
+
/** Props for {@link TimeRangeMenu}, including committed range and display. */
|
|
22132
|
+
export declare type TimeRangeMenuProps = Omit<MenuProps, 'children' | 'onChange' | 'value'> & {
|
|
22133
|
+
/** Committed start and end times used to initialize the menu draft. */
|
|
22134
|
+
value?: TimeRangeValue | null;
|
|
22135
|
+
/** Commits the complete draft when Apply is pressed; Cancel discards it. */
|
|
22136
|
+
onChange?: (value: TimeRangeValue | null) => void;
|
|
22137
|
+
/** Display cycle shared by both endpoints. */
|
|
22138
|
+
timeFormat?: TimeFormat;
|
|
22139
|
+
/** Interval used to generate minute choices. */
|
|
22140
|
+
minuteStep?: number;
|
|
22141
|
+
/** Prevents opening or selection and returns only the trigger. */
|
|
22142
|
+
disabled?: boolean;
|
|
22143
|
+
/** Accessible prefix for the start-time columns. */
|
|
22144
|
+
startLabel?: string;
|
|
22145
|
+
/** Accessible prefix for the end-time columns. */
|
|
22146
|
+
endLabel?: string;
|
|
22147
|
+
};
|
|
22148
|
+
|
|
22149
|
+
/**
|
|
22150
|
+
* Combines segmented range entry with start and end time-selection columns.
|
|
22151
|
+
*
|
|
22152
|
+
* Typed endpoints commit immediately. Menu choices remain a draft until Apply
|
|
22153
|
+
* is pressed; Cancel restores the currently committed range.
|
|
22154
|
+
*
|
|
22155
|
+
* @example
|
|
22156
|
+
* ```tsx
|
|
22157
|
+
* <TimeRangePicker startLabel="Opens" endLabel="Closes" />
|
|
22158
|
+
* ```
|
|
22159
|
+
*/
|
|
22160
|
+
export declare const TimeRangePicker: (props: TimeRangePickerProps) => JSX.Element;
|
|
22161
|
+
|
|
22162
|
+
/** Props for {@link TimeRangePicker}, combining range input and time menu. */
|
|
22163
|
+
export declare type TimeRangePickerProps = Pick<TimeRangeInputProps, 'id' | 'startLabel' | 'endLabel' | 'before' | 'after' | 'iconBefore' | 'iconAfter' | 'error' | 'disabled' | 'invalid' | 'timeFormat' | 'size'> & {
|
|
22164
|
+
/** Controlled start and end times. Pair with `onChange`. */
|
|
22165
|
+
value?: TimeRangeValue | null;
|
|
22166
|
+
/** Initial time range when `value` is not provided. */
|
|
22167
|
+
defaultValue?: TimeRangeValue | null;
|
|
22168
|
+
/** Runs for typed endpoint changes and applied menu drafts. */
|
|
22169
|
+
onChange?: (value: TimeRangeValue | null) => void;
|
|
22170
|
+
/** Minute interval used by segmented stepping and menu choices. */
|
|
22171
|
+
minuteStep?: number;
|
|
22172
|
+
/** Floating UI placement of the time menu. */
|
|
22173
|
+
placement?: Placement;
|
|
22174
|
+
/** Controlled menu visibility. Pair with `onOpenChange`. */
|
|
22175
|
+
open?: boolean;
|
|
22176
|
+
/**
|
|
22177
|
+
* Initial menu visibility when `open` is not provided.
|
|
22178
|
+
*
|
|
22179
|
+
* @default false
|
|
22180
|
+
*/
|
|
22181
|
+
defaultOpen?: boolean;
|
|
22182
|
+
/** Runs when interaction requests that the menu open or close. */
|
|
22183
|
+
onOpenChange?: (open: boolean) => void;
|
|
19743
22184
|
};
|
|
19744
22185
|
|
|
22186
|
+
/** A committed time range — either endpoint may be null while only partially filled in. */
|
|
22187
|
+
export declare interface TimeRangeValue {
|
|
22188
|
+
start: TimeValue | null;
|
|
22189
|
+
end: TimeValue | null;
|
|
22190
|
+
}
|
|
22191
|
+
|
|
22192
|
+
/** A time of day. Hour is always 24-hour (0-23) internally, regardless of display cycle. */
|
|
19745
22193
|
export declare interface TimeValue {
|
|
19746
22194
|
hour: number;
|
|
19747
22195
|
minute: number;
|
|
@@ -19774,11 +22222,27 @@ export declare type ToggleChangeEvent = ChangeEvent<HTMLInputElement>;
|
|
|
19774
22222
|
*/
|
|
19775
22223
|
export declare type ToggleChangeHandler = (e: ToggleChangeEvent) => void;
|
|
19776
22224
|
|
|
22225
|
+
/**
|
|
22226
|
+
* A toggle paired with a clickable label.
|
|
22227
|
+
*
|
|
22228
|
+
* Use it for binary settings with a visible text label. It generates an ID when
|
|
22229
|
+
* needed and associates that ID with the label. Its state and field-context
|
|
22230
|
+
* precedence match {@link Toggle}.
|
|
22231
|
+
*
|
|
22232
|
+
* @example
|
|
22233
|
+
* ```tsx
|
|
22234
|
+
* <ToggleInput name="emailUpdates" defaultChecked>
|
|
22235
|
+
* Email updates
|
|
22236
|
+
* </ToggleInput>
|
|
22237
|
+
* ```
|
|
22238
|
+
*/
|
|
19777
22239
|
export declare const ToggleInput: (props: ToggleInputProps) => JSX.Element;
|
|
19778
22240
|
|
|
22241
|
+
/** Props for {@link ToggleInput}, a labelled {@link Toggle}. */
|
|
19779
22242
|
export declare type ToggleInputProps = Omit<BoxProps, keyof ToggleInputVariantProps> & ToggleInputVariantProps & {
|
|
19780
22243
|
name: string;
|
|
19781
22244
|
checked?: boolean;
|
|
22245
|
+
/** @default false */
|
|
19782
22246
|
defaultChecked?: boolean;
|
|
19783
22247
|
onChange?: ToggleChangeHandler;
|
|
19784
22248
|
id?: string;
|
|
@@ -19796,9 +22260,11 @@ declare type ToggleInputVariantProps = {
|
|
|
19796
22260
|
[key in keyof ToggleInputVariant]?: ConditionalValue<ToggleInputVariant[key]> | undefined
|
|
19797
22261
|
}
|
|
19798
22262
|
|
|
22263
|
+
/** Props for {@link Toggle}, the unlabelled native checkbox styled as a switch. */
|
|
19799
22264
|
export declare type ToggleProps = Omit<BoxProps, 'checked' | 'onChange' | keyof ToggleVariantProps> & ToggleVariantProps & {
|
|
19800
22265
|
name: string;
|
|
19801
22266
|
checked?: boolean;
|
|
22267
|
+
/** @default false */
|
|
19802
22268
|
defaultChecked?: boolean;
|
|
19803
22269
|
onChange?: ToggleChangeHandler;
|
|
19804
22270
|
id?: string;
|
|
@@ -19842,8 +22308,21 @@ declare type Tokens = {
|
|
|
19842
22308
|
breakpoints: BreakpointToken
|
|
19843
22309
|
} & { [token: string]: never }
|
|
19844
22310
|
|
|
22311
|
+
/**
|
|
22312
|
+
* Shows nonessential contextual text for a trigger on hover and keyboard focus.
|
|
22313
|
+
*
|
|
22314
|
+
* The trigger is wrapped in a span and linked with `aria-describedby`; Escape
|
|
22315
|
+
* dismisses the portalled tooltip. Do not use a tooltip as the only accessible
|
|
22316
|
+
* name or instruction for an interactive control.
|
|
22317
|
+
*
|
|
22318
|
+
* @example
|
|
22319
|
+
* ```tsx
|
|
22320
|
+
* <Tooltip text="Copies the link"><IconButton iconName="copy" altText="Copy link" /></Tooltip>
|
|
22321
|
+
* ```
|
|
22322
|
+
*/
|
|
19845
22323
|
export declare const Tooltip: (props: TooltipProps) => JSX.Element;
|
|
19846
22324
|
|
|
22325
|
+
/** Props for {@link Tooltip}, nonessential contextual text shown on hover or focus. */
|
|
19847
22326
|
export declare type TooltipProps = Omit<BoxProps, keyof TooltipVariantProps | 'children'> & TooltipVariantProps & {
|
|
19848
22327
|
/** Tooltip body text (required) */
|
|
19849
22328
|
text: string;
|
|
@@ -19886,6 +22365,8 @@ declare interface UnstyledProps {
|
|
|
19886
22365
|
unstyled?: boolean | undefined
|
|
19887
22366
|
}
|
|
19888
22367
|
|
|
22368
|
+
export declare const useChipGroup: () => ChipGroupContextValue | null;
|
|
22369
|
+
|
|
19889
22370
|
export declare function useContainerQuery(containerRef: RefObject<HTMLElement>, size: ContainerSizeKey, direction?: QueryDirection): boolean;
|
|
19890
22371
|
|
|
19891
22372
|
export declare const useControllableState: <T>({ value, defaultValue, onChange, }: UseControllableStateProps<T>) => readonly [T, (nextValue: T | ((currentValue: T) => T)) => void];
|
|
@@ -19898,11 +22379,31 @@ export declare type UseControllableStateProps<T> = {
|
|
|
19898
22379
|
|
|
19899
22380
|
export declare const useFieldContext: () => FieldContextValue | null;
|
|
19900
22381
|
|
|
22382
|
+
export { useForm }
|
|
22383
|
+
|
|
22384
|
+
export declare const useIconConfig: () => IconConfigContextValue;
|
|
22385
|
+
|
|
22386
|
+
export declare const useListContext: () => ListContextValue;
|
|
22387
|
+
|
|
19901
22388
|
export declare function useMediaQuery(breakpoint: BreakpointKey, direction?: QueryDirection_2): boolean;
|
|
19902
22389
|
|
|
19903
22390
|
export declare const useMenuContext: () => MenuContext;
|
|
19904
22391
|
|
|
19905
|
-
export declare const
|
|
22392
|
+
export declare const useMenuFilterContext: () => MenuFilterContextValue;
|
|
22393
|
+
|
|
22394
|
+
export declare const useMenuListContext: () => MenuListContextValue | null;
|
|
22395
|
+
|
|
22396
|
+
/**
|
|
22397
|
+
* Returns state and close behavior from the closest parent {@link ModalWrapper}.
|
|
22398
|
+
*
|
|
22399
|
+
* Call only in a modal descendant; it throws when no modal context is present.
|
|
22400
|
+
*
|
|
22401
|
+
* @example
|
|
22402
|
+
* ```tsx
|
|
22403
|
+
* const { onClose } = useModalWrapperContext();
|
|
22404
|
+
* ```
|
|
22405
|
+
*/
|
|
22406
|
+
export declare const useModalWrapperContext: () => ModalWrapperContextValue;
|
|
19906
22407
|
|
|
19907
22408
|
export declare const useSelectContext: () => SelectContextValue;
|
|
19908
22409
|
|
|
@@ -20059,7 +22560,8 @@ declare interface UtilityValues {
|
|
|
20059
22560
|
borderBlockStartColor: Tokens["colors"];
|
|
20060
22561
|
boxShadow: Tokens["shadows"];
|
|
20061
22562
|
boxShadowColor: Tokens["colors"];
|
|
20062
|
-
filter: "auto";
|
|
22563
|
+
filter: "auto" | "invert" | "blur" | "none";
|
|
22564
|
+
dropShadow: "zero" | "raised" | "elevated" | "overlay";
|
|
20063
22565
|
blur: Tokens["blurs"];
|
|
20064
22566
|
backdropFilter: "auto";
|
|
20065
22567
|
backdropBlur: Tokens["blurs"];
|
|
@@ -20071,7 +22573,7 @@ declare interface UtilityValues {
|
|
|
20071
22573
|
transitionDuration: Tokens["durations"];
|
|
20072
22574
|
transition: "all" | "common" | "size" | "position" | "background" | "colors" | "opacity" | "shadow" | "transform";
|
|
20073
22575
|
animation: Tokens["animations"];
|
|
20074
|
-
animationName: "spin" | "ping" | "pulse" | "bounce" | "badgePop" | "badgePopStandalone" | "slideLeft" | "slideRight" | "skeletonWave" | "modalFadeIn" | "modalFadeOut" | "modalScaleIn" | "modalScaleOut";
|
|
22576
|
+
animationName: "spin" | "ping" | "pulse" | "bounce" | "badgePop" | "badgePopStandalone" | "slideLeft" | "slideRight" | "skeletonWave" | "modalFadeIn" | "modalFadeOut" | "modalScaleIn" | "modalScaleOut" | "modalScaleInTop" | "modalScaleOutTop";
|
|
20075
22577
|
animationTimingFunction: Tokens["easings"];
|
|
20076
22578
|
animationDuration: Tokens["durations"];
|
|
20077
22579
|
animationDelay: Tokens["durations"];
|
|
@@ -22041,6 +24543,31 @@ declare interface VendorShorthandProperties<TLength = (string & {}) | 0, TTime =
|
|
|
22041
24543
|
|
|
22042
24544
|
declare type VendorShorthandPropertiesFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<VendorShorthandProperties<TLength, TTime>>;
|
|
22043
24545
|
|
|
24546
|
+
declare type ViewDate = {
|
|
24547
|
+
year: number;
|
|
24548
|
+
month: number;
|
|
24549
|
+
};
|
|
24550
|
+
|
|
24551
|
+
declare type ViewDate_2 = {
|
|
24552
|
+
year: number;
|
|
24553
|
+
month: number;
|
|
24554
|
+
};
|
|
24555
|
+
|
|
24556
|
+
declare type ViewDate_3 = {
|
|
24557
|
+
year: number;
|
|
24558
|
+
month: number;
|
|
24559
|
+
};
|
|
24560
|
+
|
|
24561
|
+
declare type ViewDate_4 = {
|
|
24562
|
+
year: number;
|
|
24563
|
+
month: number;
|
|
24564
|
+
};
|
|
24565
|
+
|
|
24566
|
+
declare type ViewDate_5 = {
|
|
24567
|
+
year: number;
|
|
24568
|
+
month: number;
|
|
24569
|
+
};
|
|
24570
|
+
|
|
22044
24571
|
declare type WhitespaceImportant = ` ${ImportantMark}`
|
|
22045
24572
|
|
|
22046
24573
|
declare type WithColorOpacityModifier<T> = [T] extends [string] ? `${T}/${string}` & { __colorOpacityModifier?: true } : never
|
|
@@ -22081,7 +24608,7 @@ declare interface WrapProperties {
|
|
|
22081
24608
|
|
|
22082
24609
|
declare interface WrapProps extends WrapProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof WrapProperties > {}
|
|
22083
24610
|
|
|
22084
|
-
declare type ZIndexToken = "0" | "1" | "2" | "3" | "4" | "5" | "10" | "1000" | "1100" | "1101" | "1200" | "-1" | "base" | "raised" | "elevated" | "overlay" | "modal" | "tooltip"
|
|
24611
|
+
declare type ZIndexToken = "0" | "1" | "2" | "3" | "4" | "5" | "10" | "1000" | "1100" | "1101" | "1102" | "1200" | "-1" | "base" | "raised" | "elevated" | "overlay" | "modal" | "modalFloating" | "tooltip"
|
|
22085
24612
|
|
|
22086
24613
|
export { }
|
|
22087
24614
|
|