@okshaun/components 2.0.2 → 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 +385 -41
- package/dist/index.js +13414 -5259
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +1245 -263
- package/dist/{preset-DAmO4B54.js → preset-BOFHjPdQ.js} +2265 -1727
- 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 +33 -0
- package/dist/specs/recipes.json +359 -103
- package/dist/specs/semantic-tokens.json +152 -44
- package/dist/specs/tokens.json +21 -36
- package/dist/sprite.svg +1 -1
- package/dist/sprite.symbol.html +499 -43
- package/dist/styles.css +18229 -7568
- package/dist/svgs/barcode-off.svg +1 -0
- 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/spinner.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 +2804 -296
- package/package.json +4 -2
- package/src/recipes/autocomplete.ts +266 -0
- package/src/recipes/avatar.ts +1 -1
- package/src/recipes/badge.ts +31 -43
- package/src/recipes/breakpointIndicator.ts +11 -0
- package/src/recipes/button.ts +172 -223
- package/src/recipes/calendar.ts +91 -0
- package/src/recipes/card.ts +4 -70
- package/src/recipes/chip.ts +213 -142
- package/src/recipes/dateMenus.ts +40 -0
- package/src/recipes/dateTimeMenus.ts +43 -0
- package/src/recipes/icon.ts +25 -6
- package/src/recipes/kbd.ts +56 -0
- package/src/recipes/list.ts +17 -1
- package/src/recipes/listDensity.ts +66 -0
- package/src/recipes/listItem.ts +29 -161
- package/src/recipes/listItemGroup.ts +17 -39
- package/src/recipes/menu.ts +17 -3
- package/src/recipes/modal.ts +70 -39
- package/src/recipes/radio.ts +6 -6
- package/src/recipes/recipes-regular.ts +2 -0
- package/src/recipes/recipes-slot.ts +8 -2
- package/src/recipes/segmentedFields.ts +192 -0
- package/src/recipes/segmentedInputs.ts +109 -0
- package/src/recipes/select.ts +8 -1
- package/src/recipes/skeleton.ts +72 -0
- package/src/recipes/spinner.ts +27 -24
- package/src/recipes/tag.ts +218 -210
- package/src/recipes/text.ts +37 -19
- package/src/recipes/textInput.ts +106 -117
- 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/animations.ts +3 -0
- 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 +31 -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/src/utils/mergeAriaDescribedBy.ts +7 -0
- package/dist/preset-DAmO4B54.js.map +0 -1
- package/src/recipes/datePicker.ts +0 -212
- package/src/recipes/timePicker.ts +0 -199
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,9 +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';
|
|
17
|
-
import {
|
|
23
|
+
import { useForm } from '@tanstack/react-form';
|
|
18
24
|
|
|
19
25
|
declare type AdvancedPseudos =
|
|
20
26
|
| ":-moz-any()"
|
|
@@ -42,11 +48,15 @@ declare type AdvancedPseudos =
|
|
|
42
48
|
| ":nth-of-type"
|
|
43
49
|
| ":where";
|
|
44
50
|
|
|
45
|
-
|
|
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;
|
|
46
56
|
|
|
47
57
|
export declare type AnimationStyles = Record<string, SystemStyleObject>;
|
|
48
58
|
|
|
49
|
-
declare type AnimationToken = "spin" | "ping" | "pulse" | "bounce"
|
|
59
|
+
declare type AnimationToken = "spin" | "ping" | "pulse" | "skeletonWave" | "bounce"
|
|
50
60
|
|
|
51
61
|
declare type AnySelector = `${string}&` | `&${string}` | `@${AtRuleType}${string}`
|
|
52
62
|
|
|
@@ -69,6 +79,7 @@ declare type AriaAttributes =
|
|
|
69
79
|
declare type AspectRatioToken = "square" | "landscape" | "portrait" | "wide" | "ultrawide" | "golden"
|
|
70
80
|
|
|
71
81
|
declare type AsProp<T extends ElementType> = {
|
|
82
|
+
/** @default "div" */
|
|
72
83
|
as?: T;
|
|
73
84
|
};
|
|
74
85
|
|
|
@@ -87,66 +98,169 @@ declare type AtRuleType = 'media' | 'layer' | 'container' | 'supports' | 'page'
|
|
|
87
98
|
|
|
88
99
|
declare type AttributeSelector = `&${Pseudos | DataAttributes | AriaAttributes}`
|
|
89
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
|
+
*/
|
|
90
119
|
export declare const Autocomplete: (props: AutocompleteProps) => JSX.Element;
|
|
91
120
|
|
|
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
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
/**
|
|
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
|
+
*/
|
|
123
163
|
placeholder?: string;
|
|
124
|
-
/**
|
|
164
|
+
/**
|
|
165
|
+
* Floating UI placement of the listbox relative to the control.
|
|
166
|
+
*
|
|
167
|
+
* @default 'bottom-start'
|
|
168
|
+
*/
|
|
125
169
|
placement?: Placement;
|
|
126
|
-
/**
|
|
170
|
+
/**
|
|
171
|
+
* Gap between the control and listbox, in pixels.
|
|
172
|
+
*
|
|
173
|
+
* @default 4
|
|
174
|
+
*/
|
|
127
175
|
offset?: number;
|
|
128
|
-
/**
|
|
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. */
|
|
129
179
|
id?: string;
|
|
130
|
-
/**
|
|
180
|
+
/** Form field name used by hidden inputs for selected values. */
|
|
181
|
+
name?: string;
|
|
182
|
+
/** Prevents focus and interaction. Overrides field context when provided. */
|
|
131
183
|
disabled?: boolean;
|
|
132
|
-
/**
|
|
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. */
|
|
133
187
|
error?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
|
|
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;
|
|
140
222
|
};
|
|
141
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
|
+
|
|
142
254
|
/**
|
|
143
255
|
* Avatar component for displaying user or entity images with optional
|
|
144
256
|
* presence and status indicators.
|
|
145
257
|
*/
|
|
146
258
|
export declare const Avatar: (props: AvatarProps) => JSX.Element;
|
|
147
259
|
|
|
260
|
+
/** Presence states displayed at the bottom-right of an avatar. */
|
|
148
261
|
export declare type AvatarPresence = 'online' | 'busy' | 'offline' | 'focus';
|
|
149
262
|
|
|
263
|
+
/** Props accepted by {@link Avatar}. */
|
|
150
264
|
export declare type AvatarProps = Omit<BoxProps, keyof AvatarVariantProps> & Omit<AvatarVariantProps, 'size' | 'shape'> & {
|
|
151
265
|
/** Image source URL */
|
|
152
266
|
src?: string;
|
|
@@ -155,7 +269,7 @@ export declare type AvatarProps = Omit<BoxProps, keyof AvatarVariantProps> & Omi
|
|
|
155
269
|
/** Name for generating initials fallback */
|
|
156
270
|
name?: string;
|
|
157
271
|
/** Size of the avatar */
|
|
158
|
-
size?:
|
|
272
|
+
size?: AvatarVariantProps['size'];
|
|
159
273
|
/** Shape of the avatar */
|
|
160
274
|
shape?: AvatarShape;
|
|
161
275
|
/** Presence indicator (bottom-right) */
|
|
@@ -168,10 +282,13 @@ export declare type AvatarProps = Omit<BoxProps, keyof AvatarVariantProps> & Omi
|
|
|
168
282
|
borderColor?: BoxProps['borderColor'];
|
|
169
283
|
};
|
|
170
284
|
|
|
285
|
+
/** Supported outline shapes for {@link Avatar}. */
|
|
171
286
|
export declare type AvatarShape = 'circle' | 'square' | 'hexagon';
|
|
172
287
|
|
|
288
|
+
/** Supported visual sizes for {@link Avatar}. */
|
|
173
289
|
export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
174
290
|
|
|
291
|
+
/** Status states displayed at the top-right of an avatar. */
|
|
175
292
|
export declare type AvatarStatus = 'approved' | 'declined' | 'locked';
|
|
176
293
|
|
|
177
294
|
declare interface AvatarVariant {
|
|
@@ -199,6 +316,7 @@ declare type AvatarVariantProps = {
|
|
|
199
316
|
*/
|
|
200
317
|
export declare const Badge: (props: BadgeProps) => JSX.Element | null;
|
|
201
318
|
|
|
319
|
+
/** Props accepted by {@link Badge}. */
|
|
202
320
|
export declare type BadgeProps = Omit<BoxProps, keyof BadgeVariantProps> & Omit<BadgeVariantProps, 'standalone' | 'dot'> & {
|
|
203
321
|
/** Number to show in badge. If provided, switches to count mode. */
|
|
204
322
|
count?: number;
|
|
@@ -212,13 +330,14 @@ export declare type BadgeProps = Omit<BoxProps, keyof BadgeVariantProps> & Omit<
|
|
|
212
330
|
children?: ReactNode;
|
|
213
331
|
};
|
|
214
332
|
|
|
333
|
+
/** Supported visual color treatments for {@link Badge}. */
|
|
215
334
|
export declare type BadgeVariant = 'neutral' | 'subtle' | 'bold' | 'inverse' | 'success' | 'danger' | 'warning' | 'info';
|
|
216
335
|
|
|
217
336
|
declare interface BadgeVariant_2 {
|
|
218
337
|
/**
|
|
219
338
|
* @default "md"
|
|
220
339
|
*/
|
|
221
|
-
size: "sm" | "md" | "lg"
|
|
340
|
+
size: "sm" | "md" | "lg" | "xl"
|
|
222
341
|
standalone: boolean
|
|
223
342
|
dot: boolean
|
|
224
343
|
/**
|
|
@@ -228,7 +347,7 @@ declare interface BadgeVariant_2 {
|
|
|
228
347
|
}
|
|
229
348
|
|
|
230
349
|
declare type BadgeVariantProps = {
|
|
231
|
-
[key in keyof BadgeVariant_2]?: BadgeVariant_2[key] | undefined
|
|
350
|
+
[key in keyof BadgeVariant_2]?: ConditionalValue<BadgeVariant_2[key]> | undefined
|
|
232
351
|
}
|
|
233
352
|
|
|
234
353
|
declare type BasePatternConfig<T extends PatternProperties = PatternProperties> = {
|
|
@@ -263,6 +382,7 @@ export declare const Box: <T extends ElementType = "div">(props: BoxProps<T>) =>
|
|
|
263
382
|
|
|
264
383
|
declare type BoxOwnProps = SystemStyleObject_2 & BoxVariantProps;
|
|
265
384
|
|
|
385
|
+
/** Props accepted by {@link Box}, including Panda style and native element props. */
|
|
266
386
|
export declare type BoxProps<T extends ElementType = ElementType> = PolymorphicComponentProps<T, BoxOwnProps>;
|
|
267
387
|
|
|
268
388
|
declare interface BoxVariant {
|
|
@@ -273,9 +393,32 @@ declare type BoxVariantProps = {
|
|
|
273
393
|
[key in keyof BoxVariant]?: ConditionalValue<BoxVariant[key]> | undefined
|
|
274
394
|
}
|
|
275
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
|
+
*/
|
|
276
413
|
export declare const Breadcrumbs: (props: BreadcrumbsProps) => JSX.Element;
|
|
277
414
|
|
|
415
|
+
/** Props for {@link Breadcrumbs}. */
|
|
278
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
|
+
*/
|
|
279
422
|
items: {
|
|
280
423
|
id: string;
|
|
281
424
|
label: string;
|
|
@@ -291,7 +434,22 @@ declare type BreadcrumbsVariantProps = {
|
|
|
291
434
|
[key in keyof BreadcrumbsVariant]?: ConditionalValue<BreadcrumbsVariant[key]> | undefined
|
|
292
435
|
}
|
|
293
436
|
|
|
294
|
-
|
|
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
|
+
*/
|
|
449
|
+
export declare const BreakpointIndicator: (props: BreakpointIndicatorProps) => JSX.Element;
|
|
450
|
+
|
|
451
|
+
/** Props for {@link BreakpointIndicator}, a development breakpoint readout. */
|
|
452
|
+
export declare type BreakpointIndicatorProps = BoxProps;
|
|
295
453
|
|
|
296
454
|
declare type BreakpointKey = keyof typeof breakpoints;
|
|
297
455
|
|
|
@@ -306,43 +464,176 @@ declare const breakpoints: {
|
|
|
306
464
|
|
|
307
465
|
declare type BreakpointToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
|
|
308
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
|
+
*/
|
|
309
482
|
export declare const Button: (props: ButtonProps) => JSX.Element;
|
|
310
483
|
|
|
311
|
-
|
|
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`. */
|
|
490
|
+
before?: ReactNode;
|
|
491
|
+
/** Content rendered after the button label. Takes precedence over `iconAfter`. */
|
|
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
|
+
*/
|
|
312
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
|
+
*/
|
|
313
506
|
iconAfter?: IconNamesList;
|
|
507
|
+
/** When provided, renders an anchor instead of a native button. */
|
|
314
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
|
+
*/
|
|
315
516
|
loading?: boolean;
|
|
517
|
+
/** Visible label and optional inline content for the action. */
|
|
316
518
|
children: string | ReactNode;
|
|
519
|
+
/** Marks the control as having an error for styling and descendant slots. */
|
|
520
|
+
error?: boolean;
|
|
521
|
+
/** Sets `aria-invalid` and marks the control invalid for styling and slots. */
|
|
522
|
+
invalid?: boolean;
|
|
523
|
+
/**
|
|
524
|
+
* Disables a native button. For links, marks the anchor `aria-disabled` and
|
|
525
|
+
* prevents its default click navigation.
|
|
526
|
+
*/
|
|
317
527
|
disabled?: boolean;
|
|
528
|
+
/**
|
|
529
|
+
* Native button type; ignored when `href` causes the component to render an
|
|
530
|
+
* anchor.
|
|
531
|
+
*
|
|
532
|
+
* @default 'button'
|
|
533
|
+
*/
|
|
318
534
|
type?: 'submit' | 'reset' | 'button';
|
|
319
535
|
gap?: NumericSizeToken;
|
|
320
536
|
};
|
|
321
537
|
|
|
322
538
|
declare interface ButtonVariant {
|
|
323
539
|
/**
|
|
324
|
-
* @default "
|
|
540
|
+
* @default "standard"
|
|
325
541
|
*/
|
|
326
|
-
variant: "
|
|
542
|
+
variant: "standard" | "primary" | "hollow" | "ghost" | "danger" | "selected" | "selectedBold"
|
|
327
543
|
/**
|
|
328
544
|
* @default "md"
|
|
329
545
|
*/
|
|
330
546
|
size: "sm" | "md" | "lg" | "xl"
|
|
331
|
-
|
|
332
|
-
|
|
547
|
+
before: boolean
|
|
548
|
+
after: boolean
|
|
333
549
|
}
|
|
334
550
|
|
|
335
551
|
declare type ButtonVariantProps = {
|
|
336
|
-
[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"
|
|
337
605
|
}
|
|
338
606
|
|
|
607
|
+
declare type CalendarVariantProps = {
|
|
608
|
+
[key in keyof CalendarVariant]?: ConditionalValue<CalendarVariant[key]> | undefined
|
|
609
|
+
}
|
|
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
|
+
*/
|
|
339
624
|
export declare const Card: (props: CardProps) => JSX.Element;
|
|
340
625
|
|
|
626
|
+
/** Props accepted by {@link Card}. */
|
|
341
627
|
export declare type CardProps = Omit<BoxProps, keyof CardVariantProps> & CardVariantProps & {
|
|
628
|
+
/** Destination that makes the entire card render as a link. */
|
|
342
629
|
href?: string;
|
|
630
|
+
/** Card content. */
|
|
343
631
|
children?: string | ReactNode;
|
|
632
|
+
/** @default false */
|
|
344
633
|
grabbed?: boolean;
|
|
634
|
+
/** @default false */
|
|
345
635
|
disabled?: boolean;
|
|
636
|
+
/** @default false */
|
|
346
637
|
interactive?: boolean;
|
|
347
638
|
};
|
|
348
639
|
|
|
@@ -355,7 +646,7 @@ declare interface CardVariant {
|
|
|
355
646
|
}
|
|
356
647
|
|
|
357
648
|
declare type CardVariantProps = {
|
|
358
|
-
[key in keyof CardVariant]?: CardVariant[key] | undefined
|
|
649
|
+
[key in keyof CardVariant]?: ConditionalValue<CardVariant[key]> | undefined
|
|
359
650
|
}
|
|
360
651
|
|
|
361
652
|
/**
|
|
@@ -385,14 +676,33 @@ export declare type CheckboxChangeEvent = ChangeEvent<HTMLInputElement>;
|
|
|
385
676
|
*/
|
|
386
677
|
export declare type CheckboxChangeHandler = (e: CheckboxChangeEvent) => void;
|
|
387
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
|
+
*/
|
|
388
694
|
export declare const CheckboxInput: (props: CheckboxInputProps) => JSX.Element;
|
|
389
695
|
|
|
696
|
+
/** Props for {@link CheckboxInput}, a labelled {@link Checkbox}. */
|
|
390
697
|
export declare type CheckboxInputProps = Omit<BoxProps, keyof CheckboxInputVariantProps> & CheckboxInputVariantProps & {
|
|
391
698
|
name: string;
|
|
392
|
-
checked
|
|
393
|
-
|
|
699
|
+
checked?: boolean;
|
|
700
|
+
/** @default false */
|
|
701
|
+
defaultChecked?: boolean;
|
|
702
|
+
onChange?: CheckboxChangeHandler;
|
|
394
703
|
id?: string;
|
|
395
704
|
error?: boolean;
|
|
705
|
+
invalid?: boolean;
|
|
396
706
|
children?: string | ReactNode;
|
|
397
707
|
disabled?: boolean;
|
|
398
708
|
};
|
|
@@ -405,12 +715,16 @@ declare type CheckboxInputVariantProps = {
|
|
|
405
715
|
[key in keyof CheckboxInputVariant]?: ConditionalValue<CheckboxInputVariant[key]> | undefined
|
|
406
716
|
}
|
|
407
717
|
|
|
718
|
+
/** Props for {@link Checkbox}, the unlabelled native checkbox primitive. */
|
|
408
719
|
export declare type CheckboxProps = Omit<BoxProps, 'checked' | 'onChange' | keyof CheckboxVariantProps> & CheckboxVariantProps & {
|
|
409
720
|
name: string;
|
|
410
|
-
checked
|
|
411
|
-
|
|
721
|
+
checked?: boolean;
|
|
722
|
+
/** @default false */
|
|
723
|
+
defaultChecked?: boolean;
|
|
724
|
+
onChange?: CheckboxChangeHandler;
|
|
412
725
|
id?: string;
|
|
413
726
|
error?: boolean;
|
|
727
|
+
invalid?: boolean;
|
|
414
728
|
disabled?: boolean;
|
|
415
729
|
indeterminate?: boolean;
|
|
416
730
|
};
|
|
@@ -423,34 +737,111 @@ declare type CheckboxVariantProps = {
|
|
|
423
737
|
[key in keyof CheckboxVariant]?: ConditionalValue<CheckboxVariant[key]> | undefined
|
|
424
738
|
}
|
|
425
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
|
+
*/
|
|
426
753
|
export declare const Chip: (props: ChipProps) => JSX.Element;
|
|
427
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
|
+
*/
|
|
428
771
|
export declare const ChipGroup: (props: ChipGroupProps) => JSX.Element;
|
|
429
772
|
|
|
430
|
-
|
|
773
|
+
declare type ChipGroupContextValue = {
|
|
431
774
|
type: ChipGroupType;
|
|
432
775
|
value: string | string[];
|
|
433
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. */
|
|
786
|
+
export declare type ChipGroupProps = Omit<WrapProps, 'role'> & Omit<BoxProps, keyof WrapProps> & {
|
|
787
|
+
/** Required selection model. `'single'` uses radio semantics; `'multi'` uses checkbox semantics. */
|
|
788
|
+
type: ChipGroupType;
|
|
789
|
+
/** Controlled selected value. Use a string for `'single'` or a string array for `'multi'`, with `onChange` to accept updates. */
|
|
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
|
+
*/
|
|
795
|
+
defaultValue?: string | string[];
|
|
796
|
+
/** Called with the next selection when a child chip is activated. */
|
|
797
|
+
onChange?: (value: string | string[]) => void;
|
|
798
|
+
size?: ChipVariantProps['size'];
|
|
799
|
+
/** `Chip` children. Chips require a unique `value` to participate in selection. */
|
|
434
800
|
children: ReactNode;
|
|
801
|
+
/** Accessible name applied to the group container. */
|
|
435
802
|
label?: string;
|
|
803
|
+
/** Container identifier. When supplied, the container references `${id}-label`, which consumers must render themselves. */
|
|
436
804
|
id?: string;
|
|
805
|
+
/** Shared form metadata exposed to child-chip context; it does not create native form inputs. */
|
|
437
806
|
name?: string;
|
|
438
807
|
};
|
|
439
808
|
|
|
440
809
|
export declare type ChipGroupType = 'single' | 'multi';
|
|
441
810
|
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
811
|
+
/** Props for {@link Chip}, a compact label that can be static, actionable, selectable, or dismissible. */
|
|
812
|
+
export declare type ChipProps = Omit<BoxProps, keyof ChipVariantProps | 'children'> & Omit<ChipVariantProps, 'before' | 'after'> & {
|
|
813
|
+
children: ReactNode;
|
|
814
|
+
/** Content displayed before the chip label. */
|
|
445
815
|
before?: ReactNode;
|
|
446
|
-
/** Content
|
|
816
|
+
/** Content displayed after the chip label and before the dismiss control. */
|
|
447
817
|
after?: ReactNode;
|
|
818
|
+
/** Disables the primary action and dismiss button. The local value takes precedence over slot and field context. */
|
|
448
819
|
disabled?: boolean;
|
|
820
|
+
/** Shows a spinner and disables chip interaction. */
|
|
449
821
|
loading?: boolean;
|
|
822
|
+
/** Applies deleted styling without removing the chip from the DOM. */
|
|
450
823
|
deleted?: boolean;
|
|
824
|
+
/** Adds a dismiss button after the chip content. */
|
|
451
825
|
dismissable?: boolean;
|
|
826
|
+
/**
|
|
827
|
+
* Accessible name for the dismiss button.
|
|
828
|
+
* @default `Remove ${children}`
|
|
829
|
+
*/
|
|
830
|
+
dismissLabel?: string;
|
|
831
|
+
/** Called when the dismiss button is activated. The button is disabled when this callback is absent. */
|
|
452
832
|
onDismiss?: () => void;
|
|
833
|
+
onClick?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
834
|
+
/** Value used by a parent `ChipGroup` to identify and select this chip. */
|
|
453
835
|
value?: string;
|
|
836
|
+
/**
|
|
837
|
+
* Native type for the chip's primary button when it is selectable or has `onClick`.
|
|
838
|
+
* @default 'button'
|
|
839
|
+
*/
|
|
840
|
+
type?: 'button' | 'submit' | 'reset';
|
|
841
|
+
/** Applies error styling. The local value takes precedence over slot and field context. */
|
|
842
|
+
error?: boolean;
|
|
843
|
+
/** Marks the chip invalid with `aria-invalid`. The local value takes precedence over slot and field context. */
|
|
844
|
+
invalid?: boolean;
|
|
454
845
|
gap?: NumericSizeToken;
|
|
455
846
|
};
|
|
456
847
|
|
|
@@ -458,19 +849,34 @@ declare interface ChipVariant {
|
|
|
458
849
|
/**
|
|
459
850
|
* @default "md"
|
|
460
851
|
*/
|
|
461
|
-
size: "sm" | "md" | "lg"
|
|
852
|
+
size: "sm" | "md" | "lg" | "xl"
|
|
462
853
|
before: boolean
|
|
463
854
|
after: boolean
|
|
855
|
+
dismissable: boolean
|
|
464
856
|
}
|
|
465
857
|
|
|
466
858
|
declare type ChipVariantProps = {
|
|
467
|
-
[key in keyof ChipVariant]?: ChipVariant[key] | undefined
|
|
859
|
+
[key in keyof ChipVariant]?: ConditionalValue<ChipVariant[key]> | undefined
|
|
468
860
|
}
|
|
469
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
|
+
*/
|
|
470
873
|
export declare const Code: (props: CodeProps) => JSX.Element;
|
|
471
874
|
|
|
875
|
+
/** Props accepted by {@link Code}. */
|
|
472
876
|
export declare type CodeProps = Omit<BoxProps, keyof CodeVariantProps | keyof TextProps> & CodeVariantProps & TextProps & {
|
|
877
|
+
/** Source code or inline content to render. */
|
|
473
878
|
children?: string | ReactNode;
|
|
879
|
+
/** Language metadata forwarded to the native `code` element. */
|
|
474
880
|
lang?: string;
|
|
475
881
|
};
|
|
476
882
|
|
|
@@ -482,7 +888,7 @@ declare type CodeVariantProps = {
|
|
|
482
888
|
[key in keyof CodeVariant]?: ConditionalValue<CodeVariant[key]> | undefined
|
|
483
889
|
}
|
|
484
890
|
|
|
485
|
-
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"
|
|
486
892
|
|
|
487
893
|
declare type ComponentProps<T extends ElementType> = T extends ComponentType<infer P> | Component<infer P>
|
|
488
894
|
? JSX_2.LibraryManagedAttributes<T, P>
|
|
@@ -510,7 +916,7 @@ declare interface Conditions {
|
|
|
510
916
|
"_focusWithin": string
|
|
511
917
|
/** `&:is(:focus-visible, [data-focus-visible=true])` */
|
|
512
918
|
"_focusVisible": string
|
|
513
|
-
/** `&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])` */
|
|
919
|
+
/** `&:is(:disabled, [disabled], [data-disabled=true], [aria-disabled=true])` */
|
|
514
920
|
"_disabled": string
|
|
515
921
|
/** `&:is(:active, [data-active=true])` */
|
|
516
922
|
"_active": string
|
|
@@ -518,25 +924,25 @@ declare interface Conditions {
|
|
|
518
924
|
"_visited": string
|
|
519
925
|
/** `&:target` */
|
|
520
926
|
"_target": string
|
|
521
|
-
/** `&:is(:read-only, [data-read-only], [aria-readonly=true])` */
|
|
927
|
+
/** `&:is(:read-only, [readonly], [data-read-only=true], [aria-readonly=true])` */
|
|
522
928
|
"_readOnly": string
|
|
523
929
|
/** `&:read-write` */
|
|
524
930
|
"_readWrite": string
|
|
525
|
-
/** `&:is(:empty, [data-empty])` */
|
|
931
|
+
/** `&:is(:empty, [data-empty=true])` */
|
|
526
932
|
"_empty": string
|
|
527
|
-
/** `&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])` */
|
|
933
|
+
/** `&:is(:checked, [data-checked=true], [aria-checked=true], [data-state="checked"])` */
|
|
528
934
|
"_checked": string
|
|
529
935
|
/** `&:enabled` */
|
|
530
936
|
"_enabled": string
|
|
531
|
-
/** `&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])` */
|
|
937
|
+
/** `&:is([aria-expanded=true], [data-expanded=true], [data-state="expanded"])` */
|
|
532
938
|
"_expanded": string
|
|
533
|
-
/** `&[data-highlighted]` */
|
|
939
|
+
/** `&[data-highlighted=true]` */
|
|
534
940
|
"_highlighted": string
|
|
535
|
-
/** `&[data-complete]` */
|
|
941
|
+
/** `&[data-complete=true]` */
|
|
536
942
|
"_complete": string
|
|
537
|
-
/** `&[data-incomplete]` */
|
|
943
|
+
/** `&[data-incomplete=true]` */
|
|
538
944
|
"_incomplete": string
|
|
539
|
-
/** `&[data-dragging]` */
|
|
945
|
+
/** `&[data-dragging=true]` */
|
|
540
946
|
"_dragging": string
|
|
541
947
|
/** `&::before` */
|
|
542
948
|
"_before": string
|
|
@@ -570,105 +976,105 @@ declare interface Conditions {
|
|
|
570
976
|
"_lastOfType": string
|
|
571
977
|
/** `&:only-of-type` */
|
|
572
978
|
"_onlyOfType": string
|
|
573
|
-
/** `.peer:is(:focus, [data-focus]) ~ &` */
|
|
979
|
+
/** `.peer:is(:focus, [data-focus=true]) ~ &` */
|
|
574
980
|
"_peerFocus": string
|
|
575
|
-
/** `.peer:is(:hover, [data-hover]) ~ &` */
|
|
981
|
+
/** `.peer:is(:hover, [data-hover=true]) ~ &` */
|
|
576
982
|
"_peerHover": string
|
|
577
|
-
/** `.peer:is(:active, [data-active]) ~ &` */
|
|
983
|
+
/** `.peer:is(:active, [data-active=true]) ~ &` */
|
|
578
984
|
"_peerActive": string
|
|
579
985
|
/** `.peer:focus-within ~ &` */
|
|
580
986
|
"_peerFocusWithin": string
|
|
581
987
|
/** `.peer:is(:focus-visible, [data-focus-visible]) ~ &` */
|
|
582
988
|
"_peerFocusVisible": string
|
|
583
|
-
/** `.peer:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) ~ &` */
|
|
989
|
+
/** `.peer:is(:disabled, [disabled], [data-disabled=true], [aria-disabled=true]) ~ &` */
|
|
584
990
|
"_peerDisabled": string
|
|
585
|
-
/** `.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &` */
|
|
991
|
+
/** `.peer:is(:checked, [data-checked=true], [aria-checked=true], [data-state="checked"]) ~ &` */
|
|
586
992
|
"_peerChecked": string
|
|
587
|
-
/** `.peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &` */
|
|
993
|
+
/** `.peer:is(:invalid, [data-invalid=true], [aria-invalid=true]) ~ &` */
|
|
588
994
|
"_peerInvalid": string
|
|
589
|
-
/** `.peer:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) ~ &` */
|
|
995
|
+
/** `.peer:is([aria-expanded=true], [data-expanded=true], [data-state="expanded"]) ~ &` */
|
|
590
996
|
"_peerExpanded": string
|
|
591
997
|
/** `.peer:placeholder-shown ~ &` */
|
|
592
998
|
"_peerPlaceholderShown": string
|
|
593
|
-
/** `.group:is(:focus, [data-focus]) &` */
|
|
999
|
+
/** `.group:is(:focus, [data-focus=true]) &` */
|
|
594
1000
|
"_groupFocus": string
|
|
595
|
-
/** `.group:is(:hover, [data-hover]) &` */
|
|
1001
|
+
/** `.group:is(:hover, [data-hover=true]) &` */
|
|
596
1002
|
"_groupHover": string
|
|
597
|
-
/** `.group:is(:active, [data-active]) &` */
|
|
1003
|
+
/** `.group:is(:active, [data-active=true]) &` */
|
|
598
1004
|
"_groupActive": string
|
|
599
1005
|
/** `.group:focus-within &` */
|
|
600
1006
|
"_groupFocusWithin": string
|
|
601
|
-
/** `.group:is(:focus-visible, [data-focus-visible]) &` */
|
|
1007
|
+
/** `.group:is(:focus-visible, [data-focus-visible=true]) &` */
|
|
602
1008
|
"_groupFocusVisible": string
|
|
603
|
-
/** `.group:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) &` */
|
|
1009
|
+
/** `.group:is(:disabled, [disabled], [data-disabled=true], [aria-disabled=true]) &` */
|
|
604
1010
|
"_groupDisabled": string
|
|
605
|
-
/** `.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &` */
|
|
1011
|
+
/** `.group:is(:checked, [data-checked=true], [aria-checked=true], [data-state="checked"]) &` */
|
|
606
1012
|
"_groupChecked": string
|
|
607
|
-
/** `.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &` */
|
|
1013
|
+
/** `.group:is([aria-expanded=true], [data-expanded=true], [data-state="expanded"]) &` */
|
|
608
1014
|
"_groupExpanded": string
|
|
609
|
-
/** `.group:is(:invalid, [data-invalid], [aria-invalid=true]) &` */
|
|
1015
|
+
/** `.group:is(:invalid, [data-invalid=true], [aria-invalid=true]) &` */
|
|
610
1016
|
"_groupInvalid": string
|
|
611
|
-
/** `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate"])` */
|
|
1017
|
+
/** `&:is(:indeterminate, [data-indeterminate=true], [aria-checked=mixed], [data-state="indeterminate"])` */
|
|
612
1018
|
"_indeterminate": string
|
|
613
|
-
/** `&:is(:required, [data-required], [aria-required=true])` */
|
|
1019
|
+
/** `&:is(:required, [data-required=true], [aria-required=true])` */
|
|
614
1020
|
"_required": string
|
|
615
|
-
/** `&:is(:valid, [data-valid])` */
|
|
1021
|
+
/** `&:is(:valid, [data-valid=true])` */
|
|
616
1022
|
"_valid": string
|
|
617
1023
|
/** `&:is(:invalid, [data-invalid=true], [aria-invalid=true])` */
|
|
618
1024
|
"_invalid": string
|
|
619
1025
|
/** `&:autofill` */
|
|
620
1026
|
"_autofill": string
|
|
621
|
-
/** `&:is(:in-range, [data-in-range])` */
|
|
1027
|
+
/** `&:is(:in-range, [data-in-range=true])` */
|
|
622
1028
|
"_inRange": string
|
|
623
|
-
/** `&:is(:out-of-range, [data-outside-range])` */
|
|
1029
|
+
/** `&:is(:out-of-range, [data-outside-range=true])` */
|
|
624
1030
|
"_outOfRange": string
|
|
625
|
-
/** `&::placeholder, &[data-placeholder]` */
|
|
1031
|
+
/** `&::placeholder, &[data-placeholder=true]` */
|
|
626
1032
|
"_placeholder": string
|
|
627
|
-
/** `&:is(:placeholder-shown, [data-placeholder-shown])` */
|
|
1033
|
+
/** `&:is(:placeholder-shown, [data-placeholder-shown=true])` */
|
|
628
1034
|
"_placeholderShown": string
|
|
629
|
-
/** `&:is([aria-pressed=true], [data-pressed])` */
|
|
1035
|
+
/** `&:is([aria-pressed=true], [data-pressed=true])` */
|
|
630
1036
|
"_pressed": string
|
|
631
1037
|
/** `&:is([aria-selected=true], [data-selected=true])` */
|
|
632
1038
|
"_selected": string
|
|
633
|
-
/** `&:is([aria-grabbed=true], [data-grabbed])` */
|
|
1039
|
+
/** `&:is([aria-grabbed=true], [data-grabbed=true])` */
|
|
634
1040
|
"_grabbed": string
|
|
635
|
-
/** `&[data-state=under-value]` */
|
|
1041
|
+
/** `&[data-state="under-value"]` */
|
|
636
1042
|
"_underValue": string
|
|
637
|
-
/** `&[data-state=over-value]` */
|
|
1043
|
+
/** `&[data-state="over-value"]` */
|
|
638
1044
|
"_overValue": string
|
|
639
|
-
/** `&[data-state=at-value]` */
|
|
1045
|
+
/** `&[data-state="at-value"]` */
|
|
640
1046
|
"_atValue": string
|
|
641
1047
|
/** `&:default` */
|
|
642
1048
|
"_default": string
|
|
643
1049
|
/** `&:optional` */
|
|
644
1050
|
"_optional": string
|
|
645
|
-
/** `&:is([open], [data-open], [data-state="open"], :popover-open)` */
|
|
1051
|
+
/** `&:is([open], [data-open=true], [data-state="open"], :popover-open)` */
|
|
646
1052
|
"_open": string
|
|
647
|
-
/** `&:is([closed], [data-closed], [data-state="closed"])` */
|
|
1053
|
+
/** `&:is([closed], [data-closed=true], [data-state="closed"])` */
|
|
648
1054
|
"_closed": string
|
|
649
|
-
/** `&:is(:fullscreen, [data-fullscreen])` */
|
|
1055
|
+
/** `&:is(:fullscreen, [data-fullscreen=true])` */
|
|
650
1056
|
"_fullscreen": string
|
|
651
|
-
/** `&:is([data-loading], [aria-busy=true])` */
|
|
1057
|
+
/** `&:is([data-loading=true], [aria-busy=true])` */
|
|
652
1058
|
"_loading": string
|
|
653
|
-
/** `&:is([hidden], [data-hidden])` */
|
|
1059
|
+
/** `&:is([hidden], [data-hidden=true])` */
|
|
654
1060
|
"_hidden": string
|
|
655
|
-
/** `&:is([aria-current=true], [data-current])` */
|
|
1061
|
+
/** `&:is([aria-current=true], [data-current=true])` */
|
|
656
1062
|
"_current": string
|
|
657
1063
|
/** `&[aria-current=page]` */
|
|
658
1064
|
"_currentPage": string
|
|
659
1065
|
/** `&[aria-current=step]` */
|
|
660
1066
|
"_currentStep": string
|
|
661
|
-
/** `&:is([data-today])` */
|
|
1067
|
+
/** `&:is([data-today=true])` */
|
|
662
1068
|
"_today": string
|
|
663
|
-
/** `&[data-unavailable]` */
|
|
1069
|
+
/** `&[data-unavailable=true]` */
|
|
664
1070
|
"_unavailable": string
|
|
665
|
-
/** `&[data-range-start]` */
|
|
1071
|
+
/** `&[data-range-start=true]` */
|
|
666
1072
|
"_rangeStart": string
|
|
667
|
-
/** `&[data-range-end]` */
|
|
1073
|
+
/** `&[data-range-end=true]` */
|
|
668
1074
|
"_rangeEnd": string
|
|
669
|
-
/** `&[data-now]` */
|
|
1075
|
+
/** `&[data-now=true]` */
|
|
670
1076
|
"_now": string
|
|
671
|
-
/** `&[data-topmost]` */
|
|
1077
|
+
/** `&[data-topmost=true]` */
|
|
672
1078
|
"_topmost": string
|
|
673
1079
|
/** `@media (prefers-reduced-motion: reduce)` */
|
|
674
1080
|
"_motionReduce": string
|
|
@@ -680,9 +1086,9 @@ declare interface Conditions {
|
|
|
680
1086
|
"_landscape": string
|
|
681
1087
|
/** `@media (orientation: portrait)` */
|
|
682
1088
|
"_portrait": string
|
|
683
|
-
/** `.dark &, &:is([data-color-mode=dark] *), [data-color-mode=dark] &` */
|
|
1089
|
+
/** `.dark &, &:is([data-color-mode="dark"] *), [data-color-mode="dark"] &` */
|
|
684
1090
|
"_dark": string
|
|
685
|
-
/** `.light &, &:is([data-color-mode=light] *), [data-color-mode=light] &` */
|
|
1091
|
+
/** `.light &, &:is([data-color-mode="light"] *), [data-color-mode="light"] &` */
|
|
686
1092
|
"_light": string
|
|
687
1093
|
/** `@media (prefers-color-scheme: dark)` */
|
|
688
1094
|
"_osDark": string
|
|
@@ -718,12 +1124,16 @@ declare interface Conditions {
|
|
|
718
1124
|
"_invertedColors": string
|
|
719
1125
|
/** `&:is(:deleted, [deleted], [data-deleted=true])` */
|
|
720
1126
|
"_deleted": string
|
|
721
|
-
/** `&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])` */
|
|
1127
|
+
/** `&:is([aria-collapsed=true], [data-collapsed=true], [data-state="collapsed"])` */
|
|
722
1128
|
"_collapsed": string
|
|
1129
|
+
/** `&[data-new=true]` */
|
|
1130
|
+
"_new": string
|
|
723
1131
|
/** `&[data-utility=true]` */
|
|
724
1132
|
"_utility": string
|
|
725
1133
|
/** `&:is([data-error=true])` */
|
|
726
1134
|
"_error": string
|
|
1135
|
+
/** `&:is([data-success=true])` */
|
|
1136
|
+
"_success": string
|
|
727
1137
|
/** `&:is([data-paused=true])` */
|
|
728
1138
|
"_paused": string
|
|
729
1139
|
/** `@media screen and (min-width: 30rem)` */
|
|
@@ -822,6 +1232,86 @@ declare interface Conditions {
|
|
|
822
1232
|
"base": string
|
|
823
1233
|
}
|
|
824
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
|
+
|
|
825
1315
|
declare type ContainerSizeKey = keyof typeof containerSizes;
|
|
826
1316
|
|
|
827
1317
|
declare const containerSizes: {
|
|
@@ -1250,73 +1740,506 @@ declare namespace DataType {
|
|
|
1250
1740
|
type VisualBox = "border-box" | "content-box" | "padding-box";
|
|
1251
1741
|
}
|
|
1252
1742
|
|
|
1253
|
-
|
|
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;
|
|
1254
1758
|
|
|
1255
|
-
|
|
1256
|
-
|
|
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`. */
|
|
1257
1764
|
value?: DateValue | null;
|
|
1258
|
-
/**
|
|
1765
|
+
/** Initial date when `value` is not provided. */
|
|
1766
|
+
defaultValue?: DateValue | null;
|
|
1767
|
+
/** Runs when the segmented date becomes complete or is cleared. */
|
|
1259
1768
|
onChange?: (value: DateValue | null) => void;
|
|
1260
|
-
/**
|
|
1261
|
-
|
|
1262
|
-
/**
|
|
1263
|
-
maxDate?: DateValue;
|
|
1264
|
-
/** Accessible label for the input group */
|
|
1769
|
+
/** Segment order and separator convention. */
|
|
1770
|
+
dateFormat?: DateFormat;
|
|
1771
|
+
/** Accessible name for the segmented date group. */
|
|
1265
1772
|
label?: string;
|
|
1266
|
-
|
|
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. */
|
|
1267
1782
|
error?: boolean;
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
/**
|
|
1783
|
+
/** Prevents editing. Overrides field context when provided. */
|
|
1784
|
+
disabled?: boolean;
|
|
1785
|
+
/** Applies invalid styling. Overrides field context when provided. */
|
|
1786
|
+
invalid?: boolean;
|
|
1787
|
+
/** Reflected through to the segmented field — lets a wrapping Menu/Picker show "active anchor" styling */
|
|
1271
1788
|
open?: boolean;
|
|
1272
|
-
|
|
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;
|
|
1273
1793
|
};
|
|
1274
1794
|
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
|
|
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;
|
|
1287
1808
|
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
/** Called when end date changes */
|
|
1296
|
-
onEndChange?: (value: DateValue | null) => void;
|
|
1297
|
-
/** 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. */
|
|
1298
1816
|
minDate?: DateValue;
|
|
1299
|
-
/** Latest selectable date
|
|
1817
|
+
/** Latest selectable date. */
|
|
1300
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. */
|
|
1301
1826
|
disabled?: boolean;
|
|
1302
|
-
|
|
1303
|
-
/** Size passed to both DatePickers */
|
|
1304
|
-
size?: DatePickerProps['size'];
|
|
1305
|
-
/** Accessible label prefix — used to build "Start date" and "End date" labels */
|
|
1827
|
+
/** Accessible label passed to the calendar grid. */
|
|
1306
1828
|
label?: string;
|
|
1307
1829
|
};
|
|
1308
1830
|
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
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;
|
|
1318
1843
|
|
|
1319
|
-
|
|
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 & {
|
|
1320
2243
|
direction?: string;
|
|
1321
2244
|
weight?: string;
|
|
1322
2245
|
};
|
|
@@ -1336,23 +2259,41 @@ declare type DividerVariantProps = {
|
|
|
1336
2259
|
[key in keyof DividerVariant]?: ConditionalValue<DividerVariant[key]> | undefined
|
|
1337
2260
|
}
|
|
1338
2261
|
|
|
1339
|
-
|
|
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;
|
|
1340
2286
|
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
id?: string;
|
|
1352
|
-
/** Disable the dropdown */
|
|
1353
|
-
disabled?: boolean;
|
|
1354
|
-
/** Props to pass to the trigger Button */
|
|
1355
|
-
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;
|
|
1356
2297
|
};
|
|
1357
2298
|
|
|
1358
2299
|
declare type DurationToken = "fastest" | "faster" | "fast" | "normal" | "slow" | "slower" | "slowest"
|
|
@@ -1361,26 +2302,93 @@ declare type EasingToken = "default" | "linear" | "in" | "out" | "in-out"
|
|
|
1361
2302
|
|
|
1362
2303
|
declare type Fallback<T> = { [P in keyof T]: T[P] | readonly NonNullable<T[P]>[] };
|
|
1363
2304
|
|
|
2305
|
+
export declare const FieldContext: Context<FieldContextValue | null>;
|
|
2306
|
+
|
|
2307
|
+
export declare type FieldContextValue = {
|
|
2308
|
+
size?: FormFieldVariantProps['size'];
|
|
2309
|
+
disabled?: boolean;
|
|
2310
|
+
error?: boolean;
|
|
2311
|
+
invalid?: boolean;
|
|
2312
|
+
describedBy?: string;
|
|
2313
|
+
};
|
|
2314
|
+
|
|
1364
2315
|
declare type FontSizeToken = "10" | "12" | "14" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "72" | "80" | "96"
|
|
1365
2316
|
|
|
1366
2317
|
declare type FontToken = "heading" | "sans" | "body" | "serif" | "mono"
|
|
1367
2318
|
|
|
1368
2319
|
declare type FontWeightToken = "light" | "normal" | "medium" | "bold" | "black"
|
|
1369
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
|
+
*/
|
|
1370
2338
|
export declare const FormField: (props: FormFieldProps) => JSX.Element;
|
|
1371
2339
|
|
|
2340
|
+
/**
|
|
2341
|
+
* Props for {@link FormField}. It supplies field state to compatible
|
|
2342
|
+
* descendants through `FieldContext`.
|
|
2343
|
+
*/
|
|
1372
2344
|
export declare type FormFieldProps = Omit<BoxProps, keyof FormFieldVariantProps> & FormFieldVariantProps & {
|
|
2345
|
+
/** Visible label text for the field. */
|
|
1373
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
|
+
*/
|
|
1374
2351
|
labelFor: string;
|
|
2352
|
+
/** Input or control content associated with this field. */
|
|
1375
2353
|
children: ReactNode;
|
|
2354
|
+
/** Supporting guidance displayed near the input. */
|
|
1376
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
|
+
*/
|
|
1377
2360
|
required?: boolean;
|
|
2361
|
+
/** Marks the field and compatible descendants as having an error. */
|
|
1378
2362
|
error?: boolean;
|
|
2363
|
+
/** Marks the field invalid and supplies invalid state to compatible descendants. */
|
|
2364
|
+
invalid?: boolean;
|
|
2365
|
+
/** Message displayed when `error` or `invalid` is true and `success` is false. */
|
|
1379
2366
|
errorText?: string;
|
|
2367
|
+
/** Marks the field successful. Success text takes precedence over error text. */
|
|
2368
|
+
success?: boolean;
|
|
2369
|
+
/** Message displayed when `success` is true, including when error state is also set. */
|
|
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
|
+
*/
|
|
1380
2376
|
disabled?: boolean;
|
|
2377
|
+
/** Optional title shown by the label-help tooltip when `tooltipText` is provided. */
|
|
1381
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
|
+
*/
|
|
1382
2383
|
tooltipText?: string;
|
|
1383
|
-
|
|
2384
|
+
/**
|
|
2385
|
+
* Field size passed to compatible descendants and used by the field recipe.
|
|
2386
|
+
*
|
|
2387
|
+
* @default 'md'
|
|
2388
|
+
*/
|
|
2389
|
+
size?: FormFieldVariantProps['size'];
|
|
2390
|
+
layout?: 'default' | 'inline';
|
|
2391
|
+
gap?: NumericSizeToken;
|
|
1384
2392
|
};
|
|
1385
2393
|
|
|
1386
2394
|
declare interface FormFieldVariant {
|
|
@@ -1398,14 +2406,36 @@ declare type FormFieldVariantProps = {
|
|
|
1398
2406
|
[key in keyof FormFieldVariant]?: ConditionalValue<FormFieldVariant[key]> | undefined
|
|
1399
2407
|
}
|
|
1400
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
|
+
|
|
1401
2416
|
declare type Globals = "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset";
|
|
1402
2417
|
|
|
1403
2418
|
export declare type GlobalStyleObject = Record<string, unknown>;
|
|
1404
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
|
+
*/
|
|
1405
2432
|
export declare const Heading: (props: HeadingProps) => JSX.Element;
|
|
1406
2433
|
|
|
2434
|
+
/** Props accepted by {@link Heading}. */
|
|
1407
2435
|
export declare type HeadingProps = Omit<TextProps, keyof HeadingVariantProps> & HeadingVariantProps & {
|
|
2436
|
+
/** Heading content. */
|
|
1408
2437
|
children?: string | ReactNode;
|
|
2438
|
+
/** @default "h2" */
|
|
1409
2439
|
level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
1410
2440
|
};
|
|
1411
2441
|
|
|
@@ -1421,11 +2451,33 @@ declare type HeadingVariantProps = {
|
|
|
1421
2451
|
[key in keyof HeadingVariant]?: ConditionalValue<HeadingVariant[key]> | undefined
|
|
1422
2452
|
}
|
|
1423
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
|
+
*/
|
|
1424
2467
|
export declare const HighlightText: (props: HighlightTextProps) => JSX.Element;
|
|
1425
2468
|
|
|
2469
|
+
/** Props for {@link HighlightText}. */
|
|
1426
2470
|
export declare type HighlightTextProps = Omit<BoxProps, keyof HighlightTextVariantProps> & HighlightTextVariantProps & {
|
|
2471
|
+
/** Text to render and search within. */
|
|
1427
2472
|
value: string;
|
|
2473
|
+
/** Case-insensitive literal text to mark within `value`. */
|
|
1428
2474
|
query: string;
|
|
2475
|
+
/**
|
|
2476
|
+
* When false, returns `value` without creating highlight markup or applying
|
|
2477
|
+
* styling props.
|
|
2478
|
+
*
|
|
2479
|
+
* @default true
|
|
2480
|
+
*/
|
|
1429
2481
|
enabled?: boolean;
|
|
1430
2482
|
};
|
|
1431
2483
|
|
|
@@ -1437,28 +2489,78 @@ declare type HighlightTextVariantProps = {
|
|
|
1437
2489
|
[key in keyof HighlightTextVariant]?: ConditionalValue<HighlightTextVariant[key]> | undefined
|
|
1438
2490
|
}
|
|
1439
2491
|
|
|
1440
|
-
export declare type HourCycle = '12' | '24';
|
|
1441
|
-
|
|
1442
2492
|
declare type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
|
|
1443
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
|
+
*/
|
|
1444
2507
|
export declare const Icon: (props: IconProps) => JSX.Element;
|
|
1445
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
|
+
*/
|
|
1446
2522
|
export declare const IconButton: (props: IconButtonProps) => JSX.Element;
|
|
1447
2523
|
|
|
2524
|
+
/**
|
|
2525
|
+
* Props for {@link IconButton}. Extends {@link BoxProps} for layout and native
|
|
2526
|
+
* element attributes while reserving its visual recipe variants.
|
|
2527
|
+
*/
|
|
1448
2528
|
export declare type IconButtonProps = Omit<BoxProps, keyof IconButtonVariantProps> & IconButtonVariantProps & {
|
|
2529
|
+
/** Icon symbol rendered for the action. */
|
|
1449
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
|
+
*/
|
|
1450
2535
|
altText: string;
|
|
2536
|
+
/** When provided, renders an anchor instead of a native button. */
|
|
1451
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
|
+
*/
|
|
1452
2544
|
loading?: boolean;
|
|
2545
|
+
/**
|
|
2546
|
+
* Disables a native button. For links, marks the anchor `aria-disabled` and
|
|
2547
|
+
* prevents its default click navigation.
|
|
2548
|
+
*/
|
|
1453
2549
|
disabled?: boolean;
|
|
2550
|
+
/**
|
|
2551
|
+
* Native button type; ignored when `href` causes the component to render an
|
|
2552
|
+
* anchor.
|
|
2553
|
+
*
|
|
2554
|
+
* @default 'button'
|
|
2555
|
+
*/
|
|
1454
2556
|
type?: 'submit' | 'reset' | 'button';
|
|
1455
2557
|
};
|
|
1456
2558
|
|
|
1457
2559
|
declare interface IconButtonVariant {
|
|
1458
2560
|
/**
|
|
1459
|
-
* @default "
|
|
2561
|
+
* @default "standard"
|
|
1460
2562
|
*/
|
|
1461
|
-
variant: "
|
|
2563
|
+
variant: "standard" | "primary" | "hollow" | "ghost" | "danger" | "selected" | "selectedBold"
|
|
1462
2564
|
/**
|
|
1463
2565
|
* @default "md"
|
|
1464
2566
|
*/
|
|
@@ -1469,6 +2571,10 @@ declare type IconButtonVariantProps = {
|
|
|
1469
2571
|
[key in keyof IconButtonVariant]?: ConditionalValue<IconButtonVariant[key]> | undefined
|
|
1470
2572
|
}
|
|
1471
2573
|
|
|
2574
|
+
declare type IconConfigContextValue = {
|
|
2575
|
+
spritePath: string;
|
|
2576
|
+
};
|
|
2577
|
+
|
|
1472
2578
|
export declare const IconNames: {
|
|
1473
2579
|
readonly 'aa-placeholder': "aa-placeholder";
|
|
1474
2580
|
readonly alarm: "alarm";
|
|
@@ -1496,6 +2602,7 @@ export declare const IconNames: {
|
|
|
1496
2602
|
readonly at: "at";
|
|
1497
2603
|
readonly attachment: "attachment";
|
|
1498
2604
|
readonly bank: "bank";
|
|
2605
|
+
readonly 'barcode-off': "barcode-off";
|
|
1499
2606
|
readonly 'barcode-reader': "barcode-reader";
|
|
1500
2607
|
readonly barcode: "barcode";
|
|
1501
2608
|
readonly barricade: "barricade";
|
|
@@ -1532,6 +2639,7 @@ export declare const IconNames: {
|
|
|
1532
2639
|
readonly 'checkbox-focus': "checkbox-focus";
|
|
1533
2640
|
readonly 'checkbox-indeterminate': "checkbox-indeterminate";
|
|
1534
2641
|
readonly checkbox: "checkbox";
|
|
2642
|
+
readonly cheese: "cheese";
|
|
1535
2643
|
readonly 'chevron-down': "chevron-down";
|
|
1536
2644
|
readonly 'chevron-filled-down': "chevron-filled-down";
|
|
1537
2645
|
readonly 'chevron-filled-left': "chevron-filled-left";
|
|
@@ -1550,6 +2658,7 @@ export declare const IconNames: {
|
|
|
1550
2658
|
readonly clock: "clock";
|
|
1551
2659
|
readonly 'cloud-synced': "cloud-synced";
|
|
1552
2660
|
readonly code: "code";
|
|
2661
|
+
readonly 'collapse-vertical': "collapse-vertical";
|
|
1553
2662
|
readonly color: "color";
|
|
1554
2663
|
readonly compass: "compass";
|
|
1555
2664
|
readonly computer: "computer";
|
|
@@ -1579,6 +2688,7 @@ export declare const IconNames: {
|
|
|
1579
2688
|
readonly eraser: "eraser";
|
|
1580
2689
|
readonly error: "error";
|
|
1581
2690
|
readonly 'event-list': "event-list";
|
|
2691
|
+
readonly 'expand-vertical': "expand-vertical";
|
|
1582
2692
|
readonly export: "export";
|
|
1583
2693
|
readonly extension: "extension";
|
|
1584
2694
|
readonly 'eye-slash': "eye-slash";
|
|
@@ -1646,6 +2756,7 @@ export declare const IconNames: {
|
|
|
1646
2756
|
readonly 'list-numbers': "list-numbers";
|
|
1647
2757
|
readonly 'lock-open': "lock-open";
|
|
1648
2758
|
readonly lock: "lock";
|
|
2759
|
+
readonly magnet: "magnet";
|
|
1649
2760
|
readonly 'map-pin': "map-pin";
|
|
1650
2761
|
readonly map: "map";
|
|
1651
2762
|
readonly 'mark-unread': "mark-unread";
|
|
@@ -1730,6 +2841,7 @@ export declare const IconNames: {
|
|
|
1730
2841
|
readonly 'sort-time-down': "sort-time-down";
|
|
1731
2842
|
readonly 'sort-time-up': "sort-time-up";
|
|
1732
2843
|
readonly sparkle: "sparkle";
|
|
2844
|
+
readonly spinner: "spinner";
|
|
1733
2845
|
readonly 'square-add': "square-add";
|
|
1734
2846
|
readonly 'square-inside': "square-inside";
|
|
1735
2847
|
readonly 'square-select': "square-select";
|
|
@@ -1754,6 +2866,8 @@ export declare const IconNames: {
|
|
|
1754
2866
|
readonly textbox: "textbox";
|
|
1755
2867
|
readonly 'time-add': "time-add";
|
|
1756
2868
|
readonly timer: "timer";
|
|
2869
|
+
readonly 'to-date-backward': "to-date-backward";
|
|
2870
|
+
readonly 'to-date-forward': "to-date-forward";
|
|
1757
2871
|
readonly toolbox: "toolbox";
|
|
1758
2872
|
readonly tools: "tools";
|
|
1759
2873
|
readonly trash: "trash";
|
|
@@ -1816,6 +2930,7 @@ declare type IconNamesList =
|
|
|
1816
2930
|
| 'at'
|
|
1817
2931
|
| 'attachment'
|
|
1818
2932
|
| 'bank'
|
|
2933
|
+
| 'barcode-off'
|
|
1819
2934
|
| 'barcode-reader'
|
|
1820
2935
|
| 'barcode'
|
|
1821
2936
|
| 'barricade'
|
|
@@ -1852,6 +2967,7 @@ declare type IconNamesList =
|
|
|
1852
2967
|
| 'checkbox-focus'
|
|
1853
2968
|
| 'checkbox-indeterminate'
|
|
1854
2969
|
| 'checkbox'
|
|
2970
|
+
| 'cheese'
|
|
1855
2971
|
| 'chevron-down'
|
|
1856
2972
|
| 'chevron-filled-down'
|
|
1857
2973
|
| 'chevron-filled-left'
|
|
@@ -1870,6 +2986,7 @@ declare type IconNamesList =
|
|
|
1870
2986
|
| 'clock'
|
|
1871
2987
|
| 'cloud-synced'
|
|
1872
2988
|
| 'code'
|
|
2989
|
+
| 'collapse-vertical'
|
|
1873
2990
|
| 'color'
|
|
1874
2991
|
| 'compass'
|
|
1875
2992
|
| 'computer'
|
|
@@ -1899,6 +3016,7 @@ declare type IconNamesList =
|
|
|
1899
3016
|
| 'eraser'
|
|
1900
3017
|
| 'error'
|
|
1901
3018
|
| 'event-list'
|
|
3019
|
+
| 'expand-vertical'
|
|
1902
3020
|
| 'export'
|
|
1903
3021
|
| 'extension'
|
|
1904
3022
|
| 'eye-slash'
|
|
@@ -1966,6 +3084,7 @@ declare type IconNamesList =
|
|
|
1966
3084
|
| 'list-numbers'
|
|
1967
3085
|
| 'lock-open'
|
|
1968
3086
|
| 'lock'
|
|
3087
|
+
| 'magnet'
|
|
1969
3088
|
| 'map-pin'
|
|
1970
3089
|
| 'map'
|
|
1971
3090
|
| 'mark-unread'
|
|
@@ -2050,6 +3169,7 @@ declare type IconNamesList =
|
|
|
2050
3169
|
| 'sort-time-down'
|
|
2051
3170
|
| 'sort-time-up'
|
|
2052
3171
|
| 'sparkle'
|
|
3172
|
+
| 'spinner'
|
|
2053
3173
|
| 'square-add'
|
|
2054
3174
|
| 'square-inside'
|
|
2055
3175
|
| 'square-select'
|
|
@@ -2074,6 +3194,8 @@ declare type IconNamesList =
|
|
|
2074
3194
|
| 'textbox'
|
|
2075
3195
|
| 'time-add'
|
|
2076
3196
|
| 'timer'
|
|
3197
|
+
| 'to-date-backward'
|
|
3198
|
+
| 'to-date-forward'
|
|
2077
3199
|
| 'toolbox'
|
|
2078
3200
|
| 'tools'
|
|
2079
3201
|
| 'trash'
|
|
@@ -2108,21 +3230,58 @@ declare type IconNamesList =
|
|
|
2108
3230
|
| 'zoom-in'
|
|
2109
3231
|
| 'zoom-out';
|
|
2110
3232
|
|
|
2111
|
-
declare type
|
|
3233
|
+
declare type IconOwnProps = {
|
|
3234
|
+
/** Symbol identifier from the configured SVG sprite. */
|
|
2112
3235
|
name: IconNamesList;
|
|
2113
|
-
|
|
3236
|
+
/**
|
|
3237
|
+
* Icon size recipe variant. Responsive/conditional values are supported.
|
|
3238
|
+
* An explicit value takes precedence over slot context.
|
|
3239
|
+
*/
|
|
3240
|
+
size?: IconVariantProps['size'];
|
|
3241
|
+
/**
|
|
3242
|
+
* Design-token fill color. An explicit value takes precedence over slot
|
|
3243
|
+
* context; otherwise the recipe uses the decorative icon color.
|
|
3244
|
+
*/
|
|
2114
3245
|
fill?: ColorToken;
|
|
2115
3246
|
};
|
|
2116
3247
|
|
|
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;
|
|
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
|
+
*/
|
|
2117
3268
|
export declare const IconProvider: ({ children, spritePath }: IconProviderProps) => JSX.Element;
|
|
2118
3269
|
|
|
3270
|
+
/** Props for {@link IconProvider}. */
|
|
2119
3271
|
export declare type IconProviderProps = {
|
|
3272
|
+
/** Components that should resolve sprite symbols from this provider. */
|
|
2120
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
|
+
*/
|
|
2121
3280
|
spritePath?: string;
|
|
2122
3281
|
};
|
|
2123
3282
|
|
|
2124
3283
|
declare interface IconVariant {
|
|
2125
|
-
|
|
3284
|
+
size: "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" | "sm" | "md" | "lg" | "xl"
|
|
2126
3285
|
}
|
|
2127
3286
|
|
|
2128
3287
|
declare type IconVariantProps = {
|
|
@@ -2133,6 +3292,12 @@ declare type Important = ImportantMark | WhitespaceImportant
|
|
|
2133
3292
|
|
|
2134
3293
|
declare type ImportantMark = "!" | "!important"
|
|
2135
3294
|
|
|
3295
|
+
export declare const isItemMatch: ({ textValue, query, filterMode, }: {
|
|
3296
|
+
textValue: string;
|
|
3297
|
+
query: string;
|
|
3298
|
+
filterMode: MenuFilterMode;
|
|
3299
|
+
}) => boolean;
|
|
3300
|
+
|
|
2136
3301
|
declare type JsxHTMLProps<T extends Record<string, any>, P extends Record<string, any> = {}> = Assign<
|
|
2137
3302
|
WithHTMLProps<T>,
|
|
2138
3303
|
P
|
|
@@ -2140,10 +3305,48 @@ P
|
|
|
2140
3305
|
|
|
2141
3306
|
declare type JsxStyleProps = SystemStyleObject_2 & WithCss
|
|
2142
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
|
+
*/
|
|
3320
|
+
export declare const Kbd: (props: KbdProps) => JSX.Element;
|
|
3321
|
+
|
|
3322
|
+
/** Props accepted by {@link Kbd}. */
|
|
3323
|
+
export declare type KbdProps = Omit<BoxProps, 'children'> & {
|
|
3324
|
+
/** Ordered key labels that make up the shortcut. */
|
|
3325
|
+
keys: KbdValue[];
|
|
3326
|
+
};
|
|
3327
|
+
|
|
3328
|
+
export declare type KbdSpecialSymbol = 'command' | 'option' | 'control' | 'shift' | 'escape' | 'delete' | 'return' | 'tab' | 'arrow-up' | 'arrow-down' | 'arrow-left' | 'arrow-right';
|
|
3329
|
+
|
|
3330
|
+
export declare type KbdValue = string | KbdSpecialSymbol;
|
|
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
|
+
*/
|
|
2143
3343
|
export declare const Label: (props: LabelProps) => JSX.Element;
|
|
2144
3344
|
|
|
3345
|
+
/** Props accepted by {@link Label}. */
|
|
2145
3346
|
export declare type LabelProps = Omit<BoxProps, keyof LabelVariantProps> & LabelVariantProps & {
|
|
3347
|
+
/** ID of the form control labeled by this element. */
|
|
2146
3348
|
htmlFor: string;
|
|
3349
|
+
/** Visible label content. */
|
|
2147
3350
|
children?: string | ReactNode;
|
|
2148
3351
|
};
|
|
2149
3352
|
|
|
@@ -2155,6 +3358,7 @@ declare interface LabelVariant {
|
|
|
2155
3358
|
bold: boolean
|
|
2156
3359
|
italic: boolean
|
|
2157
3360
|
underline: boolean
|
|
3361
|
+
dashedUnderline: boolean
|
|
2158
3362
|
truncate: boolean
|
|
2159
3363
|
allCaps: boolean
|
|
2160
3364
|
size: "10" | "12" | "14" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "72" | "80" | "96"
|
|
@@ -2172,18 +3376,39 @@ declare type LetterSpacingToken = "tighter" | "tight" | "normal" | "wide" | "wid
|
|
|
2172
3376
|
|
|
2173
3377
|
declare type LineHeightToken = "none" | "tight" | "default" | "loose"
|
|
2174
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
|
+
*/
|
|
2175
3390
|
export declare const Link: (props: LinkProps) => JSX.Element;
|
|
2176
3391
|
|
|
3392
|
+
/** Props accepted by {@link Link}. */
|
|
2177
3393
|
export declare type LinkProps = Omit<BoxProps, keyof LinkVariantProps> & LinkVariantProps & {
|
|
3394
|
+
/** Destination URL for the native anchor. */
|
|
2178
3395
|
href: string;
|
|
3396
|
+
/** @default false */
|
|
2179
3397
|
external?: boolean;
|
|
3398
|
+
/** @default false */
|
|
2180
3399
|
disabled?: boolean;
|
|
2181
3400
|
size?: FontSizeToken;
|
|
3401
|
+
/** @default "body" */
|
|
2182
3402
|
family?: FontToken;
|
|
3403
|
+
/** @default false */
|
|
2183
3404
|
italic?: boolean;
|
|
3405
|
+
/** @default false */
|
|
2184
3406
|
bold?: boolean;
|
|
3407
|
+
/** Explicit font-weight token. */
|
|
2185
3408
|
weight?: FontWeightToken;
|
|
3409
|
+
/** Additional class name merged with the link recipe class. */
|
|
2186
3410
|
className?: string;
|
|
3411
|
+
/** Link label and inline content. */
|
|
2187
3412
|
children?: ReactNode;
|
|
2188
3413
|
};
|
|
2189
3414
|
|
|
@@ -2195,28 +3420,86 @@ declare interface LinkVariant {
|
|
|
2195
3420
|
bold: boolean
|
|
2196
3421
|
italic: boolean
|
|
2197
3422
|
underline: boolean
|
|
3423
|
+
dashedUnderline: boolean
|
|
2198
3424
|
truncate: boolean
|
|
2199
3425
|
allCaps: boolean
|
|
2200
3426
|
size: "10" | "12" | "14" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "72" | "80" | "96"
|
|
2201
3427
|
weight: "light" | "normal" | "medium" | "bold" | "black"
|
|
2202
|
-
_disabled: boolean
|
|
2203
3428
|
}
|
|
2204
3429
|
|
|
2205
3430
|
declare type LinkVariantProps = {
|
|
2206
3431
|
[key in keyof LinkVariant]?: ConditionalValue<LinkVariant[key]> | undefined
|
|
2207
3432
|
}
|
|
2208
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
|
+
*/
|
|
2209
3449
|
export declare const List: (props: ListProps) => JSX.Element;
|
|
2210
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
|
+
|
|
2211
3460
|
export declare type ListDensity = 'compact' | 'comfortable' | 'spacious';
|
|
2212
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
|
+
*/
|
|
2213
3477
|
export declare const ListItem: (props: ListItemProps) => JSX.Element;
|
|
2214
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
|
+
*/
|
|
2215
3494
|
export declare const ListItemGroup: (props: ListItemGroupProps) => JSX.Element;
|
|
2216
3495
|
|
|
3496
|
+
/** Props for {@link ListItemGroup}. */
|
|
2217
3497
|
export declare type ListItemGroupProps = Omit<BoxProps, keyof ListItemGroupVariantProps | 'children'> & ListItemGroupVariantProps & {
|
|
3498
|
+
/** Optional heading displayed above the group's children. */
|
|
2218
3499
|
label?: string;
|
|
3500
|
+
/** Items or other content belonging to this group. */
|
|
2219
3501
|
children: BoxProps['children'];
|
|
3502
|
+
/** Displays a separator after the group. */
|
|
2220
3503
|
divider?: boolean;
|
|
2221
3504
|
};
|
|
2222
3505
|
|
|
@@ -2231,19 +3514,75 @@ declare type ListItemGroupVariantProps = {
|
|
|
2231
3514
|
[key in keyof ListItemGroupVariant]?: ConditionalValue<ListItemGroupVariant[key]> | undefined
|
|
2232
3515
|
}
|
|
2233
3516
|
|
|
2234
|
-
|
|
2235
|
-
|
|
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. */
|
|
2236
3527
|
label?: string;
|
|
3528
|
+
/** Secondary text rendered below `label` when custom `children` are not supplied. */
|
|
2237
3529
|
description?: string;
|
|
3530
|
+
/** Search text used to highlight this item's default `label` and `description`. */
|
|
2238
3531
|
query?: string;
|
|
3532
|
+
/**
|
|
3533
|
+
* Enables highlighting for this item's default text. When omitted, inherits
|
|
3534
|
+
* the nearest {@link List} setting.
|
|
3535
|
+
*/
|
|
2239
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
|
+
*/
|
|
2240
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
|
+
*/
|
|
2241
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
|
+
*/
|
|
2242
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
|
+
*/
|
|
2243
3562
|
variant?: ListItemVariantProps['variant'];
|
|
2244
|
-
|
|
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. */
|
|
2245
3569
|
iconBefore?: IconNamesList;
|
|
3570
|
+
/** Icon symbol rendered after the default text content. */
|
|
2246
3571
|
iconAfter?: IconNamesList;
|
|
3572
|
+
/** Fill token for `iconBefore`. */
|
|
3573
|
+
iconBeforeFill?: IconProps['fill'];
|
|
3574
|
+
/** Fill token for `iconAfter`. */
|
|
3575
|
+
iconAfterFill?: IconProps['fill'];
|
|
3576
|
+
/**
|
|
3577
|
+
* Internal record primary key rendered as `data-row-id` on the item root.
|
|
3578
|
+
* It targets one row in a test and identifies which record an interaction
|
|
3579
|
+
* applied to.
|
|
3580
|
+
*
|
|
3581
|
+
* It must never be a row index, a composite value, or a customer-facing
|
|
3582
|
+
* identifier such as an order number or part number. It is unrelated to
|
|
3583
|
+
* React's `key`.
|
|
3584
|
+
*/
|
|
3585
|
+
rowId?: string;
|
|
2247
3586
|
};
|
|
2248
3587
|
|
|
2249
3588
|
declare interface ListItemVariant {
|
|
@@ -2255,33 +3594,73 @@ declare interface ListItemVariant {
|
|
|
2255
3594
|
* @default "compact"
|
|
2256
3595
|
*/
|
|
2257
3596
|
density: "compact" | "comfortable" | "spacious"
|
|
2258
|
-
/**
|
|
2259
|
-
* @default false
|
|
2260
|
-
*/
|
|
2261
3597
|
selected: boolean
|
|
2262
3598
|
iconBefore: boolean
|
|
2263
3599
|
iconAfter: boolean
|
|
2264
3600
|
}
|
|
2265
3601
|
|
|
2266
3602
|
declare type ListItemVariantProps = {
|
|
2267
|
-
[key in keyof ListItemVariant]?: ListItemVariant[key] | undefined
|
|
3603
|
+
[key in keyof ListItemVariant]?: ConditionalValue<ListItemVariant[key]> | undefined
|
|
2268
3604
|
}
|
|
2269
3605
|
|
|
3606
|
+
/**
|
|
3607
|
+
* Props for {@link List}. Its values are provided to nested list primitives
|
|
3608
|
+
* through list context.
|
|
3609
|
+
*/
|
|
2270
3610
|
export declare type ListProps = Omit<BoxProps, keyof ListVariantProps | 'children'> & ListVariantProps & {
|
|
3611
|
+
/** List items and optional {@link ListItemGroup} sections. */
|
|
2271
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
|
+
*/
|
|
2272
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
|
+
*/
|
|
2273
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
|
+
*/
|
|
2274
3633
|
highlightMatches?: boolean;
|
|
2275
3634
|
};
|
|
2276
3635
|
|
|
2277
3636
|
declare interface ListVariant {
|
|
2278
|
-
|
|
3637
|
+
/**
|
|
3638
|
+
* @default "compact"
|
|
3639
|
+
*/
|
|
3640
|
+
density: "compact" | "comfortable" | "spacious"
|
|
2279
3641
|
}
|
|
2280
3642
|
|
|
3643
|
+
declare type ListVariant_2 = 'default' | 'checkbox' | 'toggle';
|
|
3644
|
+
|
|
2281
3645
|
declare type ListVariantProps = {
|
|
2282
3646
|
[key in keyof ListVariant]?: ConditionalValue<ListVariant[key]> | undefined
|
|
2283
3647
|
}
|
|
2284
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
|
+
*/
|
|
2285
3664
|
export declare const Menu: (props: MenuProps) => JSX.Element;
|
|
2286
3665
|
|
|
2287
3666
|
export declare type MenuContext = {
|
|
@@ -2293,6 +3672,7 @@ export declare type MenuContext = {
|
|
|
2293
3672
|
onCloseMenu: () => void;
|
|
2294
3673
|
onPushDiginLevel: (title: string, levelChildren: ReactNode) => void;
|
|
2295
3674
|
onPopDiginLevel: () => void;
|
|
3675
|
+
onMenubarEdgeNavigate?: (direction: 1 | -1) => void;
|
|
2296
3676
|
diginDepth: number;
|
|
2297
3677
|
};
|
|
2298
3678
|
|
|
@@ -2310,6 +3690,19 @@ declare type MenuFilterContextValue = {
|
|
|
2310
3690
|
|
|
2311
3691
|
declare type MenuFilterMode = 'none' | 'contains';
|
|
2312
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
|
+
*/
|
|
2313
3706
|
export declare const MenuGroup: (props: MenuGroupProps) => JSX.Element | null;
|
|
2314
3707
|
|
|
2315
3708
|
export declare type MenuGroupProps = BoxProps & {
|
|
@@ -2318,6 +3711,18 @@ export declare type MenuGroupProps = BoxProps & {
|
|
|
2318
3711
|
divider?: boolean;
|
|
2319
3712
|
};
|
|
2320
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
|
+
*/
|
|
2321
3726
|
export declare const MenuItem: (props: MenuItemProps) => JSX.Element | null;
|
|
2322
3727
|
|
|
2323
3728
|
export declare type MenuItemProps = Omit<BoxProps<'button'>, 'as' | 'ref' | 'onClick' | 'type'> & Omit<MenuVariantProps, 'iconBefore' | 'iconAfter'> & {
|
|
@@ -2339,6 +3744,12 @@ export declare type MenuItemProps = Omit<BoxProps<'button'>, 'as' | 'ref' | 'onC
|
|
|
2339
3744
|
|
|
2340
3745
|
export declare type MenuItemVariant = 'default' | 'checkbox' | 'toggle' | 'divider';
|
|
2341
3746
|
|
|
3747
|
+
declare type MenuListContextValue = {
|
|
3748
|
+
activeIndex: number | null;
|
|
3749
|
+
itemCount?: number;
|
|
3750
|
+
getItemProps: (userProps?: HTMLProps<HTMLElement>) => HTMLProps<HTMLElement>;
|
|
3751
|
+
};
|
|
3752
|
+
|
|
2342
3753
|
export declare type MenuProps = {
|
|
2343
3754
|
trigger?: ReactElement;
|
|
2344
3755
|
children: ReactNode;
|
|
@@ -2364,8 +3775,22 @@ export declare type MenuProps = {
|
|
|
2364
3775
|
description?: string;
|
|
2365
3776
|
}) => string;
|
|
2366
3777
|
panel?: MenuVariantProps['panel'];
|
|
3778
|
+
onMenubarEdgeNavigate?: (direction: 1 | -1) => void;
|
|
2367
3779
|
} & BoxProps;
|
|
2368
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
|
+
*/
|
|
2369
3794
|
export declare const MenuProvider: ({ children, root, filter }: MenuProviderProps) => JSX.Element;
|
|
2370
3795
|
|
|
2371
3796
|
export declare type MenuProviderProps = {
|
|
@@ -2374,9 +3799,13 @@ export declare type MenuProviderProps = {
|
|
|
2374
3799
|
filter?: Partial<MenuFilterContextValue>;
|
|
2375
3800
|
};
|
|
2376
3801
|
|
|
2377
|
-
declare type MenuTriggerInteraction = 'click' | 'hover';
|
|
3802
|
+
declare type MenuTriggerInteraction = 'click' | 'hover' | 'click-and-hover';
|
|
2378
3803
|
|
|
2379
3804
|
declare interface MenuVariant {
|
|
3805
|
+
/**
|
|
3806
|
+
* @default "elevated"
|
|
3807
|
+
*/
|
|
3808
|
+
layer: "elevated" | "modalFloating"
|
|
2380
3809
|
/**
|
|
2381
3810
|
* @default "compact"
|
|
2382
3811
|
*/
|
|
@@ -2388,72 +3817,239 @@ declare type MenuVariantProps = {
|
|
|
2388
3817
|
[key in keyof MenuVariant]?: ConditionalValue<MenuVariant[key]> | undefined
|
|
2389
3818
|
}
|
|
2390
3819
|
|
|
2391
|
-
|
|
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;
|
|
2392
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
|
+
*/
|
|
2393
3868
|
export declare const ModalBody: (props: ModalBodyProps) => JSX.Element;
|
|
2394
3869
|
|
|
3870
|
+
/** Props for {@link ModalBody}, the main content region of a modal. */
|
|
2395
3871
|
export declare type ModalBodyProps = Omit<BoxProps, 'children'> & {
|
|
2396
|
-
/**
|
|
3872
|
+
/** Content displayed in the modal's body region. */
|
|
2397
3873
|
children: ReactNode;
|
|
2398
3874
|
};
|
|
2399
3875
|
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
preventOverlayClose?: boolean;
|
|
2409
|
-
}
|
|
2410
|
-
|
|
3876
|
+
/**
|
|
3877
|
+
* Renders the action region of a {@link ModalWrapper}.
|
|
3878
|
+
*
|
|
3879
|
+
* @example
|
|
3880
|
+
* ```tsx
|
|
3881
|
+
* <ModalFooter><Button>Save</Button></ModalFooter>
|
|
3882
|
+
* ```
|
|
3883
|
+
*/
|
|
2411
3884
|
export declare const ModalFooter: (props: ModalFooterProps) => JSX.Element;
|
|
2412
3885
|
|
|
3886
|
+
/** Props for {@link ModalFooter}, the action region of a modal. */
|
|
2413
3887
|
export declare type ModalFooterProps = Omit<BoxProps, 'children'> & {
|
|
2414
|
-
/**
|
|
3888
|
+
/** Content displayed in the footer, typically dialog action buttons. */
|
|
2415
3889
|
children: ReactNode;
|
|
2416
3890
|
};
|
|
2417
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
|
+
*/
|
|
2418
3907
|
export declare const ModalHeader: (props: ModalHeaderProps) => JSX.Element;
|
|
2419
3908
|
|
|
3909
|
+
/** Props for {@link ModalHeader}, the optional heading and close-control region. */
|
|
2420
3910
|
export declare type ModalHeaderProps = Omit<BoxProps, 'children'> & {
|
|
2421
|
-
/**
|
|
3911
|
+
/** Text rendered as the default level-three heading when `children` is omitted. */
|
|
2422
3912
|
title?: string;
|
|
2423
|
-
/**
|
|
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
|
+
*/
|
|
2424
3922
|
showCloseButton?: boolean;
|
|
2425
|
-
/**
|
|
3923
|
+
/** Custom header content. When supplied, it replaces both `title` and the built-in close button. */
|
|
2426
3924
|
children?: ReactNode;
|
|
2427
3925
|
};
|
|
2428
3926
|
|
|
2429
|
-
|
|
2430
|
-
|
|
3927
|
+
/** Props for {@link Modal}, a pre-built form dialog. */
|
|
3928
|
+
export declare type ModalProps<TFormData extends Record<string, unknown>> = {
|
|
3929
|
+
/** Controlled dialog state. */
|
|
2431
3930
|
open: boolean;
|
|
2432
|
-
/**
|
|
3931
|
+
/** Called when the dialog requests an open-state change. */
|
|
2433
3932
|
onOpenChange: (open: boolean) => void;
|
|
2434
|
-
/**
|
|
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 */
|
|
2435
3959
|
preventOverlayClose?: boolean;
|
|
2436
|
-
/**
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
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;
|
|
2440
3970
|
};
|
|
2441
3971
|
|
|
2442
3972
|
declare interface ModalVariant {
|
|
2443
3973
|
/**
|
|
2444
3974
|
* @default "md"
|
|
2445
3975
|
*/
|
|
2446
|
-
size: "sm" | "md" | "lg" | "xl" | "full" | "
|
|
3976
|
+
size: "sm" | "md" | "lg" | "xl" | "full" | "fullPage"
|
|
2447
3977
|
/**
|
|
2448
|
-
* @default "
|
|
3978
|
+
* @default "centered"
|
|
2449
3979
|
*/
|
|
2450
|
-
|
|
3980
|
+
position: "centered" | "top"
|
|
2451
3981
|
}
|
|
2452
3982
|
|
|
2453
3983
|
declare type ModalVariantProps = {
|
|
2454
3984
|
[key in keyof ModalVariant]?: ConditionalValue<ModalVariant[key]> | undefined
|
|
2455
3985
|
}
|
|
2456
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
|
+
|
|
2457
4053
|
declare interface ModernCssProperties {
|
|
2458
4054
|
/**
|
|
2459
4055
|
* Defines a name for the anchor element that can be referenced by positioned elements.
|
|
@@ -2546,6 +4142,24 @@ declare interface ModernCssProperties {
|
|
|
2546
4142
|
WebkitTextSecurity?: Globals | 'none' | 'circle' | 'disc' | 'square'
|
|
2547
4143
|
}
|
|
2548
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
|
+
|
|
2549
4163
|
declare type Nested<P> = P & {
|
|
2550
4164
|
[K in Selectors]?: Nested<P>
|
|
2551
4165
|
} & {
|
|
@@ -3772,6 +5386,38 @@ export declare const okshaunPreset: Preset;
|
|
|
3772
5386
|
|
|
3773
5387
|
declare type OmittedHTMLProps = 'color' | 'translate' | 'transition' | 'width' | 'height' | 'content'
|
|
3774
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
|
+
|
|
3775
5421
|
declare type ParentSelector = `${DataAttributes | AriaAttributes} &`
|
|
3776
5422
|
|
|
3777
5423
|
export declare type Parts = Record<string, SystemStyleObject>;
|
|
@@ -3787,6 +5433,10 @@ export declare type PatternConfig<T extends PatternProperties = PatternPropertie
|
|
|
3787
5433
|
|
|
3788
5434
|
export declare type PatternProperties = Record<string, unknown>;
|
|
3789
5435
|
|
|
5436
|
+
/**
|
|
5437
|
+
* Combines custom props with the compatible native props and ref for the
|
|
5438
|
+
* element selected by `as`.
|
|
5439
|
+
*/
|
|
3790
5440
|
declare type PolymorphicComponentProps<T extends ElementType, Props extends object = object> = Props & AsProp<T> & Omit<ComponentPropsWithRef<T>, PropsToOmit<T, Props>>;
|
|
3791
5441
|
|
|
3792
5442
|
declare type PositionAreaAxis =
|
|
@@ -3853,11 +5503,26 @@ declare type PositionTry =
|
|
|
3853
5503
|
| 'inline-end'
|
|
3854
5504
|
| DashedIdent
|
|
3855
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
|
+
*/
|
|
3856
5517
|
export declare const Pre: (props: PreProps) => JSX.Element;
|
|
3857
5518
|
|
|
5519
|
+
/** Props accepted by {@link Pre}. */
|
|
3858
5520
|
export declare type PreProps = BoxProps & {
|
|
5521
|
+
/** Preformatted code content. */
|
|
3859
5522
|
children: string | ReactNode;
|
|
5523
|
+
/** Language metadata forwarded to the nested `Code` element. */
|
|
3860
5524
|
lang?: string;
|
|
5525
|
+
/** Element override for the rendered `pre` container. */
|
|
3861
5526
|
as?: string;
|
|
3862
5527
|
};
|
|
3863
5528
|
|
|
@@ -5639,7 +7304,7 @@ export declare const Radio: (props: RadioProps) => JSX.Element;
|
|
|
5639
7304
|
* @example
|
|
5640
7305
|
* const handleChange: RadioChangeHandler = (e) => setChecked(e.target.checked);
|
|
5641
7306
|
*/
|
|
5642
|
-
declare type RadioChangeEvent = ChangeEvent<HTMLInputElement>;
|
|
7307
|
+
export declare type RadioChangeEvent = ChangeEvent<HTMLInputElement>;
|
|
5643
7308
|
|
|
5644
7309
|
/**
|
|
5645
7310
|
* Helper type for radio change handler functions
|
|
@@ -5648,14 +7313,71 @@ declare type RadioChangeEvent = ChangeEvent<HTMLInputElement>;
|
|
|
5648
7313
|
*/
|
|
5649
7314
|
declare type RadioChangeHandler = (e: RadioChangeEvent) => void;
|
|
5650
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
|
+
*/
|
|
7331
|
+
export declare const RadioGroup: (props: RadioGroupProps) => JSX.Element;
|
|
7332
|
+
|
|
7333
|
+
/** Props accepted by {@link RadioGroup}. */
|
|
7334
|
+
export declare type RadioGroupProps = Omit<BoxProps, 'role'> & {
|
|
7335
|
+
/** Form field name shared by every radio in the group. */
|
|
7336
|
+
name: string;
|
|
7337
|
+
/** Selected value when the group is controlled. */
|
|
7338
|
+
value?: string | null;
|
|
7339
|
+
/** Initial selected value when the group is uncontrolled. */
|
|
7340
|
+
defaultValue?: string | null;
|
|
7341
|
+
/** Called with the newly selected value. */
|
|
7342
|
+
onChange?: (value: string) => void;
|
|
7343
|
+
/** Radio inputs belonging to the group. */
|
|
7344
|
+
children: ReactNode;
|
|
7345
|
+
/** Accessible name announced for the group. */
|
|
7346
|
+
label?: string;
|
|
7347
|
+
/** Identifier for the group element. */
|
|
7348
|
+
id?: string;
|
|
7349
|
+
/** Disables every radio in the group. */
|
|
7350
|
+
disabled?: boolean;
|
|
7351
|
+
};
|
|
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
|
+
*/
|
|
5651
7368
|
export declare const RadioInput: (props: RadioInputProps) => JSX.Element;
|
|
5652
7369
|
|
|
7370
|
+
/** Props for {@link RadioInput}, a labelled radio that can join a {@link RadioGroup}. */
|
|
5653
7371
|
export declare type RadioInputProps = Omit<BoxProps, keyof RadioInputVariantProps> & RadioInputVariantProps & {
|
|
5654
|
-
name
|
|
5655
|
-
|
|
5656
|
-
|
|
7372
|
+
name?: string;
|
|
7373
|
+
value?: string;
|
|
7374
|
+
checked?: boolean;
|
|
7375
|
+
/** @default false */
|
|
7376
|
+
defaultChecked?: boolean;
|
|
7377
|
+
onChange?: RadioChangeHandler;
|
|
5657
7378
|
id?: string;
|
|
5658
7379
|
error?: boolean;
|
|
7380
|
+
invalid?: boolean;
|
|
5659
7381
|
children?: string | ReactNode;
|
|
5660
7382
|
disabled?: boolean;
|
|
5661
7383
|
};
|
|
@@ -5668,12 +7390,16 @@ declare type RadioInputVariantProps = {
|
|
|
5668
7390
|
[key in keyof RadioInputVariant]?: ConditionalValue<RadioInputVariant[key]> | undefined
|
|
5669
7391
|
}
|
|
5670
7392
|
|
|
7393
|
+
/** Props for {@link Radio}, the unlabelled native radio primitive. */
|
|
5671
7394
|
export declare type RadioProps = Omit<BoxProps, 'checked' | 'onChange' | keyof RadioVariantProps> & RadioVariantProps & {
|
|
5672
|
-
name
|
|
5673
|
-
checked
|
|
5674
|
-
|
|
7395
|
+
name?: string;
|
|
7396
|
+
checked?: boolean;
|
|
7397
|
+
/** @default false */
|
|
7398
|
+
defaultChecked?: boolean;
|
|
7399
|
+
onChange?: RadioChangeHandler;
|
|
5675
7400
|
id?: string;
|
|
5676
7401
|
error?: boolean;
|
|
7402
|
+
invalid?: boolean;
|
|
5677
7403
|
disabled?: boolean;
|
|
5678
7404
|
};
|
|
5679
7405
|
|
|
@@ -5691,6 +7417,235 @@ export declare type RecipeConfig<V extends RecipeVariantRecord = RecipeVariantRe
|
|
|
5691
7417
|
|
|
5692
7418
|
export declare type RecipeVariantRecord = Record<string, Record<string, unknown> | string | number | boolean | null | undefined>;
|
|
5693
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;
|
|
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
|
+
*/
|
|
5694
7649
|
export declare const Select: (props: SelectProps) => JSX.Element;
|
|
5695
7650
|
|
|
5696
7651
|
export declare const SelectContext: Context<SelectContextValue | null>;
|
|
@@ -5713,6 +7668,7 @@ declare interface SelectContextValue {
|
|
|
5713
7668
|
*/
|
|
5714
7669
|
export declare const SelectOption: (props: SelectOptionProps) => null;
|
|
5715
7670
|
|
|
7671
|
+
/** Metadata consumed by {@link Select}; `SelectOption` does not render an element itself. */
|
|
5716
7672
|
export declare type SelectOptionProps = Omit<BoxProps, 'children'> & {
|
|
5717
7673
|
/** Option value */
|
|
5718
7674
|
value: string;
|
|
@@ -5732,24 +7688,91 @@ export declare type SelectOptionProps = Omit<BoxProps, 'children'> & {
|
|
|
5732
7688
|
|
|
5733
7689
|
declare type Selectors = AttributeSelector | ParentSelector
|
|
5734
7690
|
|
|
7691
|
+
/** Props for {@link Select}, an ARIA listbox-based single or multiple select. */
|
|
5735
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. */
|
|
5736
7694
|
value?: SelectValue;
|
|
7695
|
+
/**
|
|
7696
|
+
* Initial selected value for an uncontrolled select. It is used only on first render.
|
|
7697
|
+
* @default null
|
|
7698
|
+
*/
|
|
7699
|
+
defaultValue?: SelectValue;
|
|
7700
|
+
/** Called when the user selects, deselects, or clears an option. In controlled mode, update `value` with the supplied value. */
|
|
5737
7701
|
onChange?: (value: SelectValue) => void;
|
|
7702
|
+
/**
|
|
7703
|
+
* Allows several options to be selected and renders selected options as removable chips.
|
|
7704
|
+
* @default false
|
|
7705
|
+
*/
|
|
5738
7706
|
multiple?: boolean;
|
|
7707
|
+
/**
|
|
7708
|
+
* Text shown while no option is selected.
|
|
7709
|
+
* @default 'Select...'
|
|
7710
|
+
*/
|
|
5739
7711
|
placeholder?: string;
|
|
7712
|
+
/** Controlled popup state. Pair with `onOpenChange`; omit it to use `defaultOpen`. */
|
|
5740
7713
|
open?: boolean;
|
|
7714
|
+
/**
|
|
7715
|
+
* Initial popup state for an uncontrolled select. It is used only on first render.
|
|
7716
|
+
* @default false
|
|
7717
|
+
*/
|
|
7718
|
+
defaultOpen?: boolean;
|
|
7719
|
+
/** Called when user interaction requests that the popup open or close. */
|
|
5741
7720
|
onOpenChange?: (open: boolean) => void;
|
|
7721
|
+
/**
|
|
7722
|
+
* Floating UI placement for the listbox relative to the trigger.
|
|
7723
|
+
* @default 'bottom-start'
|
|
7724
|
+
*/
|
|
5742
7725
|
placement?: Placement;
|
|
7726
|
+
/**
|
|
7727
|
+
* Gap between the trigger and listbox, in pixels.
|
|
7728
|
+
* @default 4
|
|
7729
|
+
*/
|
|
5743
7730
|
offset?: number;
|
|
5744
7731
|
children: ReactNode;
|
|
7732
|
+
/** Identifier for the combobox trigger. A generated identifier is used when omitted. */
|
|
5745
7733
|
id?: string;
|
|
7734
|
+
/** Form field name. Each selected value is submitted through a hidden input. */
|
|
7735
|
+
name?: string;
|
|
7736
|
+
/**
|
|
7737
|
+
* Prevents opening, selection, and hidden-input submission.
|
|
7738
|
+
* @default false
|
|
7739
|
+
*/
|
|
5746
7740
|
disabled?: boolean;
|
|
7741
|
+
/**
|
|
7742
|
+
* Marks the combobox as invalid with `aria-invalid` and error styling.
|
|
7743
|
+
* @default false
|
|
7744
|
+
*/
|
|
5747
7745
|
error?: boolean;
|
|
7746
|
+
/**
|
|
7747
|
+
* Density applied to the popup options.
|
|
7748
|
+
* @default 'compact'
|
|
7749
|
+
*/
|
|
5748
7750
|
density?: MenuDensity;
|
|
7751
|
+
/**
|
|
7752
|
+
* Shrinks the trigger to its content instead of using the standard select width.
|
|
7753
|
+
* @default false
|
|
7754
|
+
*/
|
|
7755
|
+
autoSize?: boolean;
|
|
5749
7756
|
};
|
|
5750
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
|
+
*/
|
|
5751
7773
|
export declare const SelectTrigger: (props: SelectTriggerProps) => ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
5752
7774
|
|
|
7775
|
+
/** Props accepted by {@link SelectTrigger}. */
|
|
5753
7776
|
export declare type SelectTriggerProps = Omit<BoxProps, 'children'> & {
|
|
5754
7777
|
/** Trigger element (button, custom component, etc.) */
|
|
5755
7778
|
children: ReactElement;
|
|
@@ -5770,7 +7793,26 @@ declare type SelectVariantProps = {
|
|
|
5770
7793
|
[key in keyof SelectVariant]?: ConditionalValue<SelectVariant[key]> | undefined
|
|
5771
7794
|
}
|
|
5772
7795
|
|
|
5773
|
-
|
|
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"
|
|
5774
7816
|
|
|
5775
7817
|
declare type SimplePseudos =
|
|
5776
7818
|
| ":-khtml-any-link"
|
|
@@ -5884,18 +7926,73 @@ declare type SimplePseudos =
|
|
|
5884
7926
|
| ":valid"
|
|
5885
7927
|
| ":visited";
|
|
5886
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
|
+
|
|
5887
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"
|
|
5888
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
|
+
*/
|
|
7960
|
+
export declare const Skeleton: (props: SkeletonProps) => JSX.Element;
|
|
7961
|
+
|
|
7962
|
+
/** Props accepted by {@link Skeleton}. */
|
|
7963
|
+
export declare type SkeletonProps = Omit<BoxProps, 'as'> & {
|
|
7964
|
+
variant?: 'text' | 'circular' | 'rounded' | 'rectangular';
|
|
7965
|
+
animation?: 'pulse' | 'wave' | false;
|
|
7966
|
+
/** @default "span" */
|
|
7967
|
+
component?: ElementType;
|
|
7968
|
+
/** Content whose dimensions the skeleton should match. */
|
|
7969
|
+
children?: ReactNode;
|
|
7970
|
+
};
|
|
7971
|
+
|
|
5889
7972
|
export declare type SlotRecipeConfig<S extends string = string, V extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>> = BaseSlotRecipeConfig<S, V>;
|
|
5890
7973
|
|
|
5891
7974
|
export declare type SlotRecipeVariantRecord<S extends string = string> = Record<S, Record<string, unknown>>;
|
|
5892
7975
|
|
|
5893
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"
|
|
5894
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
|
+
*/
|
|
5895
7989
|
export declare const Spinner: (props: SpinnerProps) => JSX.Element;
|
|
5896
7990
|
|
|
7991
|
+
/** Props accepted by {@link Spinner}. */
|
|
5897
7992
|
export declare type SpinnerProps = Omit<BoxProps, keyof SpinnerVariantProps> & SpinnerVariantProps & {
|
|
7993
|
+
/** @default false */
|
|
5898
7994
|
inverse?: boolean;
|
|
7995
|
+
/** @default false */
|
|
5899
7996
|
centered?: boolean;
|
|
5900
7997
|
};
|
|
5901
7998
|
|
|
@@ -12026,6 +14123,20 @@ declare type String_2 = string & {}
|
|
|
12026
14123
|
|
|
12027
14124
|
declare type StringToMultiple<T extends string> = T | `${T}, ${T}`
|
|
12028
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
|
+
*/
|
|
12029
14140
|
export declare const SubMenu: (props: SubMenuProps) => JSX.Element | null;
|
|
12030
14141
|
|
|
12031
14142
|
declare type SubMenuInteraction = 'hover' | 'digin';
|
|
@@ -19493,7 +21604,7 @@ declare interface SystemProperties {
|
|
|
19493
21604
|
invert?: ConditionalValue<WithEscapeHatch<string | number>>
|
|
19494
21605
|
saturate?: ConditionalValue<WithEscapeHatch<string | number>>
|
|
19495
21606
|
sepia?: ConditionalValue<WithEscapeHatch<string | number>>
|
|
19496
|
-
dropShadow?: ConditionalValue<WithEscapeHatch<
|
|
21607
|
+
dropShadow?: ConditionalValue<WithEscapeHatch<UtilityValues["dropShadow"] | CssVars>>
|
|
19497
21608
|
blur?: ConditionalValue<WithEscapeHatch<UtilityValues["blur"] | CssVars>>
|
|
19498
21609
|
backdropBlur?: ConditionalValue<WithEscapeHatch<UtilityValues["backdropBlur"] | CssVars>>
|
|
19499
21610
|
backdropBrightness?: ConditionalValue<WithEscapeHatch<string | number>>
|
|
@@ -19592,7 +21703,6 @@ declare interface SystemProperties {
|
|
|
19592
21703
|
scrollSnapMarginRight?: ConditionalValue<WithEscapeHatch<UtilityValues["scrollSnapMarginRight"] | CssVars>>
|
|
19593
21704
|
srOnly?: ConditionalValue<WithEscapeHatch<UtilityValues["srOnly"] | CssVars>>
|
|
19594
21705
|
debug?: ConditionalValue<WithEscapeHatch<UtilityValues["debug"] | CssVars>>
|
|
19595
|
-
filtersProperty?: ConditionalValue<WithEscapeHatch<string | number>>
|
|
19596
21706
|
colorPalette?: ConditionalValue<WithEscapeHatch<UtilityValues["colorPalette"] | CssVars>>
|
|
19597
21707
|
textStyle?: ConditionalValue<WithEscapeHatch<UtilityValues["textStyle"] | CssVars>>
|
|
19598
21708
|
layerStyle?: ConditionalValue<WithEscapeHatch<UtilityValues["layerStyle"] | CssVars>>
|
|
@@ -19602,42 +21712,92 @@ export declare type SystemStyleObject = Record<string, unknown>;
|
|
|
19602
21712
|
|
|
19603
21713
|
declare type SystemStyleObject_2 = Omit<Nested<SystemProperties & CssVarProperties>, 'base'>
|
|
19604
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
|
+
*/
|
|
19605
21726
|
export declare const Tag: (props: TagProps) => JSX.Element;
|
|
19606
21727
|
|
|
21728
|
+
/** Props accepted by {@link Tag}. */
|
|
19607
21729
|
export declare type TagProps = Omit<BoxProps, keyof TagVariantProps> & Omit<TagVariantProps, 'iconBefore' | 'iconAfter'> & {
|
|
21730
|
+
/** Visible tag label. */
|
|
19608
21731
|
children: string;
|
|
21732
|
+
/** Decorative icon shown before the label. */
|
|
19609
21733
|
iconBefore?: IconNamesList;
|
|
21734
|
+
/** Decorative icon shown after the label. */
|
|
19610
21735
|
iconAfter?: IconNamesList;
|
|
19611
21736
|
};
|
|
19612
21737
|
|
|
19613
21738
|
declare interface TagVariant {
|
|
19614
|
-
/**
|
|
19615
|
-
* @default "default"
|
|
19616
|
-
*/
|
|
19617
|
-
variant: "default" | "bold"
|
|
19618
21739
|
/**
|
|
19619
21740
|
* @default "gray"
|
|
19620
21741
|
*/
|
|
19621
21742
|
hue: "gray" | "red" | "orange" | "yellow" | "lime" | "green" | "teal" | "blue" | "indigo" | "purple" | "magenta" | "tan"
|
|
21743
|
+
/**
|
|
21744
|
+
* @default "default"
|
|
21745
|
+
*/
|
|
21746
|
+
variant: "default" | "bold"
|
|
19622
21747
|
iconBefore: boolean
|
|
19623
21748
|
iconAfter: boolean
|
|
19624
21749
|
hasIcon: boolean
|
|
19625
21750
|
}
|
|
19626
21751
|
|
|
19627
21752
|
declare type TagVariantProps = {
|
|
19628
|
-
[key in keyof TagVariant]?: TagVariant[key] | undefined
|
|
21753
|
+
[key in keyof TagVariant]?: ConditionalValue<TagVariant[key]> | undefined
|
|
19629
21754
|
}
|
|
19630
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
|
+
*/
|
|
19631
21769
|
declare const Text_2: (props: TextProps) => JSX.Element;
|
|
19632
21770
|
export { Text_2 as Text }
|
|
19633
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
|
+
*/
|
|
19634
21783
|
export declare const Textarea: (props: TextareaProps) => JSX.Element;
|
|
19635
21784
|
|
|
21785
|
+
/** Props for {@link Textarea}, a multi-line native text input. */
|
|
19636
21786
|
export declare type TextareaProps = Omit<BoxProps, keyof TextareaVariantProps> & TextareaVariantProps & {
|
|
21787
|
+
/** Form field name submitted with the textarea value. */
|
|
19637
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
|
+
*/
|
|
19638
21793
|
autoSize?: boolean;
|
|
21794
|
+
/** Applies error styling. The local value takes precedence over field context. */
|
|
19639
21795
|
error?: boolean;
|
|
21796
|
+
/** Marks the native textarea invalid with `aria-invalid` and applies invalid styling. */
|
|
21797
|
+
invalid?: boolean;
|
|
21798
|
+
/** Disables the native textarea. The local value takes precedence over field context. */
|
|
19640
21799
|
disabled?: boolean;
|
|
21800
|
+
/** Identifier used to associate a visible `Label` with this textarea. */
|
|
19641
21801
|
id?: string;
|
|
19642
21802
|
};
|
|
19643
21803
|
|
|
@@ -19653,15 +21813,42 @@ declare type TextareaVariantProps = {
|
|
|
19653
21813
|
[key in keyof TextareaVariant]?: ConditionalValue<TextareaVariant[key]> | undefined
|
|
19654
21814
|
}
|
|
19655
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
|
+
*/
|
|
19656
21828
|
export declare const TextInput: (props: TextInputProps) => JSX.Element;
|
|
19657
21829
|
|
|
19658
|
-
|
|
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. */
|
|
19659
21833
|
name: string;
|
|
21834
|
+
/** Identifier used to associate a visible `Label` with this input. */
|
|
19660
21835
|
id?: string;
|
|
21836
|
+
/** Content rendered before the native input. Takes precedence over `iconBefore`. */
|
|
21837
|
+
before?: ReactNode;
|
|
21838
|
+
/** Content rendered after the native input. Takes precedence over `iconAfter`. */
|
|
21839
|
+
after?: ReactNode;
|
|
21840
|
+
/** Decorative icon rendered before the input when `before` is omitted. */
|
|
19661
21841
|
iconBefore?: IconNamesList;
|
|
21842
|
+
/** Decorative icon rendered after the input when `after` is omitted. */
|
|
19662
21843
|
iconAfter?: IconNamesList;
|
|
21844
|
+
/** Applies error styling. The local value takes precedence over field context. */
|
|
19663
21845
|
error?: boolean;
|
|
21846
|
+
/** Disables the native input. The local value takes precedence over slot and field context. */
|
|
19664
21847
|
disabled?: boolean;
|
|
21848
|
+
/** Applies valid styling without changing native constraint validation. */
|
|
21849
|
+
valid?: boolean;
|
|
21850
|
+
/** Marks the native input invalid with `aria-invalid` and applies invalid styling. */
|
|
21851
|
+
invalid?: boolean;
|
|
19665
21852
|
type?: 'text' | 'number' | 'email' | 'password' | 'search' | 'tel' | 'url' | 'date' | 'time' | 'datetime-local' | 'month' | 'week';
|
|
19666
21853
|
};
|
|
19667
21854
|
|
|
@@ -19670,19 +21857,29 @@ declare interface TextInputVariant {
|
|
|
19670
21857
|
* @default "md"
|
|
19671
21858
|
*/
|
|
19672
21859
|
size: "sm" | "md" | "lg" | "xl"
|
|
19673
|
-
|
|
19674
|
-
|
|
21860
|
+
before: boolean
|
|
21861
|
+
after: boolean
|
|
19675
21862
|
autoSize: boolean
|
|
19676
21863
|
}
|
|
19677
21864
|
|
|
19678
21865
|
declare type TextInputVariantProps = {
|
|
19679
|
-
[key in keyof TextInputVariant]?: TextInputVariant[key] | undefined
|
|
21866
|
+
[key in keyof TextInputVariant]?: ConditionalValue<TextInputVariant[key]> | undefined
|
|
19680
21867
|
}
|
|
19681
21868
|
|
|
21869
|
+
/** Props accepted by {@link Text}. */
|
|
19682
21870
|
export declare type TextProps = Omit<BoxProps, keyof TextVariantProps> & TextVariantProps & {
|
|
21871
|
+
/** Text or inline content to render. */
|
|
19683
21872
|
children: string | ReactNode;
|
|
21873
|
+
/** @default "span" */
|
|
19684
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. */
|
|
19685
21881
|
role?: string;
|
|
21882
|
+
/** Adds the text to sequential keyboard focus when a composite widget requires it. */
|
|
19686
21883
|
tabIndex?: number;
|
|
19687
21884
|
};
|
|
19688
21885
|
|
|
@@ -19696,6 +21893,7 @@ declare interface TextVariant {
|
|
|
19696
21893
|
bold: boolean
|
|
19697
21894
|
italic: boolean
|
|
19698
21895
|
underline: boolean
|
|
21896
|
+
dashedUnderline: boolean
|
|
19699
21897
|
truncate: boolean
|
|
19700
21898
|
allCaps: boolean
|
|
19701
21899
|
size: "10" | "12" | "14" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "72" | "80" | "96"
|
|
@@ -19717,64 +21915,281 @@ export declare function ThemeProvider({ children }: {
|
|
|
19717
21915
|
children: ReactNode;
|
|
19718
21916
|
}): JSX.Element;
|
|
19719
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
|
+
*/
|
|
19720
21931
|
export declare const ThemeSwitcher: (props: ThemeSwitcherProps) => JSX.Element;
|
|
19721
21932
|
|
|
19722
21933
|
declare type ThemeSwitcherProps = BoxProps;
|
|
19723
21934
|
|
|
19724
|
-
|
|
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;
|
|
19725
21950
|
|
|
19726
|
-
|
|
19727
|
-
|
|
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`. */
|
|
19728
21956
|
value?: TimeValue | null;
|
|
19729
|
-
/**
|
|
21957
|
+
/** Initial time when `value` is not provided. */
|
|
21958
|
+
defaultValue?: TimeValue | null;
|
|
21959
|
+
/** Runs when the time segments form a complete value. */
|
|
19730
21960
|
onChange?: (value: TimeValue | null) => void;
|
|
19731
|
-
/**
|
|
19732
|
-
|
|
19733
|
-
/** Minute
|
|
21961
|
+
/** Display cycle; emitted values always use 24-hour hours. */
|
|
21962
|
+
timeFormat?: TimeFormat;
|
|
21963
|
+
/** Minute increment used by keyboard stepping. */
|
|
19734
21964
|
minuteStep?: number;
|
|
19735
|
-
/** Accessible
|
|
21965
|
+
/** Accessible name for the segmented time group. */
|
|
19736
21966
|
label?: string;
|
|
19737
|
-
|
|
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. */
|
|
19738
21976
|
error?: boolean;
|
|
19739
|
-
|
|
19740
|
-
|
|
19741
|
-
/**
|
|
21977
|
+
/** Prevents editing. Overrides field context when provided. */
|
|
21978
|
+
disabled?: boolean;
|
|
21979
|
+
/** Applies invalid styling. Overrides field context when provided. */
|
|
21980
|
+
invalid?: boolean;
|
|
21981
|
+
/** Reflected through to the segmented field — lets a wrapping Menu/Picker show "active anchor" styling */
|
|
19742
21982
|
open?: boolean;
|
|
19743
|
-
|
|
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;
|
|
19744
21987
|
};
|
|
19745
21988
|
|
|
19746
|
-
|
|
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;
|
|
19747
22008
|
/**
|
|
19748
|
-
*
|
|
22009
|
+
* Display cycle; emitted values always use 24-hour hours.
|
|
22010
|
+
*
|
|
22011
|
+
* @default '12'
|
|
19749
22012
|
*/
|
|
19750
|
-
|
|
19751
|
-
|
|
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
|
+
};
|
|
19752
22023
|
|
|
19753
|
-
|
|
19754
|
-
|
|
19755
|
-
|
|
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;
|
|
19756
22036
|
|
|
19757
|
-
|
|
19758
|
-
|
|
19759
|
-
|
|
19760
|
-
|
|
19761
|
-
|
|
19762
|
-
|
|
19763
|
-
|
|
19764
|
-
|
|
19765
|
-
|
|
19766
|
-
/** Called when end time changes */
|
|
19767
|
-
onEndChange?: (value: TimeValue | null) => void;
|
|
19768
|
-
hourCycle?: HourCycle;
|
|
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. */
|
|
19769
22046
|
minuteStep?: number;
|
|
19770
|
-
|
|
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;
|
|
22073
|
+
|
|
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. */
|
|
22087
|
+
minuteStep?: number;
|
|
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. */
|
|
19771
22101
|
error?: boolean;
|
|
19772
|
-
/**
|
|
19773
|
-
|
|
19774
|
-
/**
|
|
19775
|
-
|
|
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;
|
|
19776
22184
|
};
|
|
19777
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. */
|
|
19778
22193
|
export declare interface TimeValue {
|
|
19779
22194
|
hour: number;
|
|
19780
22195
|
minute: number;
|
|
@@ -19807,14 +22222,32 @@ export declare type ToggleChangeEvent = ChangeEvent<HTMLInputElement>;
|
|
|
19807
22222
|
*/
|
|
19808
22223
|
export declare type ToggleChangeHandler = (e: ToggleChangeEvent) => void;
|
|
19809
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
|
+
*/
|
|
19810
22239
|
export declare const ToggleInput: (props: ToggleInputProps) => JSX.Element;
|
|
19811
22240
|
|
|
22241
|
+
/** Props for {@link ToggleInput}, a labelled {@link Toggle}. */
|
|
19812
22242
|
export declare type ToggleInputProps = Omit<BoxProps, keyof ToggleInputVariantProps> & ToggleInputVariantProps & {
|
|
19813
22243
|
name: string;
|
|
19814
|
-
checked
|
|
19815
|
-
|
|
22244
|
+
checked?: boolean;
|
|
22245
|
+
/** @default false */
|
|
22246
|
+
defaultChecked?: boolean;
|
|
22247
|
+
onChange?: ToggleChangeHandler;
|
|
19816
22248
|
id?: string;
|
|
19817
22249
|
error?: boolean;
|
|
22250
|
+
invalid?: boolean;
|
|
19818
22251
|
disabled?: boolean;
|
|
19819
22252
|
children?: string | ReactNode;
|
|
19820
22253
|
};
|
|
@@ -19827,12 +22260,16 @@ declare type ToggleInputVariantProps = {
|
|
|
19827
22260
|
[key in keyof ToggleInputVariant]?: ConditionalValue<ToggleInputVariant[key]> | undefined
|
|
19828
22261
|
}
|
|
19829
22262
|
|
|
22263
|
+
/** Props for {@link Toggle}, the unlabelled native checkbox styled as a switch. */
|
|
19830
22264
|
export declare type ToggleProps = Omit<BoxProps, 'checked' | 'onChange' | keyof ToggleVariantProps> & ToggleVariantProps & {
|
|
19831
22265
|
name: string;
|
|
19832
|
-
checked
|
|
19833
|
-
|
|
22266
|
+
checked?: boolean;
|
|
22267
|
+
/** @default false */
|
|
22268
|
+
defaultChecked?: boolean;
|
|
22269
|
+
onChange?: ToggleChangeHandler;
|
|
19834
22270
|
id?: string;
|
|
19835
22271
|
error?: boolean;
|
|
22272
|
+
invalid?: boolean;
|
|
19836
22273
|
disabled?: boolean;
|
|
19837
22274
|
};
|
|
19838
22275
|
|
|
@@ -19871,8 +22308,21 @@ declare type Tokens = {
|
|
|
19871
22308
|
breakpoints: BreakpointToken
|
|
19872
22309
|
} & { [token: string]: never }
|
|
19873
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
|
+
*/
|
|
19874
22323
|
export declare const Tooltip: (props: TooltipProps) => JSX.Element;
|
|
19875
22324
|
|
|
22325
|
+
/** Props for {@link Tooltip}, nonessential contextual text shown on hover or focus. */
|
|
19876
22326
|
export declare type TooltipProps = Omit<BoxProps, keyof TooltipVariantProps | 'children'> & TooltipVariantProps & {
|
|
19877
22327
|
/** Tooltip body text (required) */
|
|
19878
22328
|
text: string;
|
|
@@ -19915,13 +22365,45 @@ declare interface UnstyledProps {
|
|
|
19915
22365
|
unstyled?: boolean | undefined
|
|
19916
22366
|
}
|
|
19917
22367
|
|
|
22368
|
+
export declare const useChipGroup: () => ChipGroupContextValue | null;
|
|
22369
|
+
|
|
19918
22370
|
export declare function useContainerQuery(containerRef: RefObject<HTMLElement>, size: ContainerSizeKey, direction?: QueryDirection): boolean;
|
|
19919
22371
|
|
|
22372
|
+
export declare const useControllableState: <T>({ value, defaultValue, onChange, }: UseControllableStateProps<T>) => readonly [T, (nextValue: T | ((currentValue: T) => T)) => void];
|
|
22373
|
+
|
|
22374
|
+
export declare type UseControllableStateProps<T> = {
|
|
22375
|
+
value?: T;
|
|
22376
|
+
defaultValue: T;
|
|
22377
|
+
onChange?: (value: T) => void;
|
|
22378
|
+
};
|
|
22379
|
+
|
|
22380
|
+
export declare const useFieldContext: () => FieldContextValue | null;
|
|
22381
|
+
|
|
22382
|
+
export { useForm }
|
|
22383
|
+
|
|
22384
|
+
export declare const useIconConfig: () => IconConfigContextValue;
|
|
22385
|
+
|
|
22386
|
+
export declare const useListContext: () => ListContextValue;
|
|
22387
|
+
|
|
19920
22388
|
export declare function useMediaQuery(breakpoint: BreakpointKey, direction?: QueryDirection_2): boolean;
|
|
19921
22389
|
|
|
19922
22390
|
export declare const useMenuContext: () => MenuContext;
|
|
19923
22391
|
|
|
19924
|
-
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;
|
|
19925
22407
|
|
|
19926
22408
|
export declare const useSelectContext: () => SelectContextValue;
|
|
19927
22409
|
|
|
@@ -20078,7 +22560,8 @@ declare interface UtilityValues {
|
|
|
20078
22560
|
borderBlockStartColor: Tokens["colors"];
|
|
20079
22561
|
boxShadow: Tokens["shadows"];
|
|
20080
22562
|
boxShadowColor: Tokens["colors"];
|
|
20081
|
-
filter: "auto";
|
|
22563
|
+
filter: "auto" | "invert" | "blur" | "none";
|
|
22564
|
+
dropShadow: "zero" | "raised" | "elevated" | "overlay";
|
|
20082
22565
|
blur: Tokens["blurs"];
|
|
20083
22566
|
backdropFilter: "auto";
|
|
20084
22567
|
backdropBlur: Tokens["blurs"];
|
|
@@ -20090,7 +22573,7 @@ declare interface UtilityValues {
|
|
|
20090
22573
|
transitionDuration: Tokens["durations"];
|
|
20091
22574
|
transition: "all" | "common" | "size" | "position" | "background" | "colors" | "opacity" | "shadow" | "transform";
|
|
20092
22575
|
animation: Tokens["animations"];
|
|
20093
|
-
animationName: "spin" | "ping" | "pulse" | "bounce" | "badgePop" | "badgePopStandalone" | "slideLeft" | "slideRight" | "modalFadeIn" | "modalFadeOut" | "modalScaleIn" | "modalScaleOut";
|
|
22576
|
+
animationName: "spin" | "ping" | "pulse" | "bounce" | "badgePop" | "badgePopStandalone" | "slideLeft" | "slideRight" | "skeletonWave" | "modalFadeIn" | "modalFadeOut" | "modalScaleIn" | "modalScaleOut" | "modalScaleInTop" | "modalScaleOutTop";
|
|
20094
22577
|
animationTimingFunction: Tokens["easings"];
|
|
20095
22578
|
animationDuration: Tokens["durations"];
|
|
20096
22579
|
animationDelay: Tokens["durations"];
|
|
@@ -22060,6 +24543,31 @@ declare interface VendorShorthandProperties<TLength = (string & {}) | 0, TTime =
|
|
|
22060
24543
|
|
|
22061
24544
|
declare type VendorShorthandPropertiesFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<VendorShorthandProperties<TLength, TTime>>;
|
|
22062
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
|
+
|
|
22063
24571
|
declare type WhitespaceImportant = ` ${ImportantMark}`
|
|
22064
24572
|
|
|
22065
24573
|
declare type WithColorOpacityModifier<T> = [T] extends [string] ? `${T}/${string}` & { __colorOpacityModifier?: true } : never
|
|
@@ -22100,7 +24608,7 @@ declare interface WrapProperties {
|
|
|
22100
24608
|
|
|
22101
24609
|
declare interface WrapProps extends WrapProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof WrapProperties > {}
|
|
22102
24610
|
|
|
22103
|
-
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"
|
|
22104
24612
|
|
|
22105
24613
|
export { }
|
|
22106
24614
|
|