@okshaun/components 2.0.2 → 3.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 +27 -0
- package/dist/index.js +2567 -1458
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +1008 -48
- package/dist/{preset-DAmO4B54.js → preset-BAn5LBiW.js} +738 -141
- package/dist/preset-BAn5LBiW.js.map +1 -0
- package/dist/preset.js +1 -1
- package/dist/specs/keyframes.json +11 -0
- package/dist/specs/recipes.json +153 -13
- package/dist/specs/tokens.json +5 -0
- package/dist/sprite.svg +1 -1
- package/dist/sprite.symbol.html +57 -2
- package/dist/styles.css +14752 -2108
- package/dist/svgs/barcode-off.svg +1 -0
- package/dist/svgs/spinner.svg +1 -0
- package/dist/types/index.d.ts +171 -190
- package/package.json +1 -1
- package/src/recipes/avatar.ts +1 -1
- package/src/recipes/badge.ts +17 -0
- package/src/recipes/breakpointIndicator.ts +11 -0
- package/src/recipes/button.ts +112 -2
- package/src/recipes/chip.ts +142 -17
- package/src/recipes/datePicker.ts +22 -0
- package/src/recipes/icon.ts +25 -6
- package/src/recipes/kbd.ts +53 -0
- package/src/recipes/list.ts +91 -1
- package/src/recipes/listItem.ts +43 -36
- package/src/recipes/listItemGroup.ts +8 -30
- package/src/recipes/modal.ts +36 -5
- package/src/recipes/recipes-regular.ts +2 -0
- package/src/recipes/recipes-slot.ts +1 -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/textInput.ts +42 -1
- package/src/recipes/timePicker.ts +17 -0
- package/src/styles/primitives/animations.ts +3 -0
- package/src/styles/utilities/keyframes.ts +4 -0
- package/src/utils/mergeAriaDescribedBy.ts +7 -0
- package/dist/preset-DAmO4B54.js.map +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ import { Preset } from '@pandacss/types';
|
|
|
14
14
|
import { ReactElement } from 'react';
|
|
15
15
|
import { ReactNode } from 'react';
|
|
16
16
|
import { RefObject } from 'react';
|
|
17
|
-
import { SVGAttributes } from 'react';
|
|
18
17
|
|
|
19
18
|
declare type AdvancedPseudos =
|
|
20
19
|
| ":-moz-any()"
|
|
@@ -42,11 +41,9 @@ declare type AdvancedPseudos =
|
|
|
42
41
|
| ":nth-of-type"
|
|
43
42
|
| ":where";
|
|
44
43
|
|
|
45
|
-
declare type AllowedIconSizes = keyof typeof numericSizes;
|
|
46
|
-
|
|
47
44
|
export declare type AnimationStyles = Record<string, SystemStyleObject>;
|
|
48
45
|
|
|
49
|
-
declare type AnimationToken = "spin" | "ping" | "pulse" | "bounce"
|
|
46
|
+
declare type AnimationToken = "spin" | "ping" | "pulse" | "skeletonWave" | "bounce"
|
|
50
47
|
|
|
51
48
|
declare type AnySelector = `${string}&` | `&${string}` | `@${AtRuleType}${string}`
|
|
52
49
|
|
|
@@ -155,7 +152,7 @@ export declare type AvatarProps = Omit<BoxProps, keyof AvatarVariantProps> & Omi
|
|
|
155
152
|
/** Name for generating initials fallback */
|
|
156
153
|
name?: string;
|
|
157
154
|
/** Size of the avatar */
|
|
158
|
-
size?:
|
|
155
|
+
size?: AvatarVariantProps['size'];
|
|
159
156
|
/** Shape of the avatar */
|
|
160
157
|
shape?: AvatarShape;
|
|
161
158
|
/** Presence indicator (bottom-right) */
|
|
@@ -218,7 +215,7 @@ declare interface BadgeVariant_2 {
|
|
|
218
215
|
/**
|
|
219
216
|
* @default "md"
|
|
220
217
|
*/
|
|
221
|
-
size: "sm" | "md" | "lg"
|
|
218
|
+
size: "sm" | "md" | "lg" | "xl"
|
|
222
219
|
standalone: boolean
|
|
223
220
|
dot: boolean
|
|
224
221
|
/**
|
|
@@ -291,7 +288,9 @@ declare type BreadcrumbsVariantProps = {
|
|
|
291
288
|
[key in keyof BreadcrumbsVariant]?: ConditionalValue<BreadcrumbsVariant[key]> | undefined
|
|
292
289
|
}
|
|
293
290
|
|
|
294
|
-
export declare
|
|
291
|
+
export declare const BreakpointIndicator: (props: BreakpointIndicatorProps) => JSX.Element;
|
|
292
|
+
|
|
293
|
+
export declare type BreakpointIndicatorProps = BoxProps;
|
|
295
294
|
|
|
296
295
|
declare type BreakpointKey = keyof typeof breakpoints;
|
|
297
296
|
|
|
@@ -308,12 +307,16 @@ declare type BreakpointToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
|
|
|
308
307
|
|
|
309
308
|
export declare const Button: (props: ButtonProps) => JSX.Element;
|
|
310
309
|
|
|
311
|
-
export declare type ButtonProps = Omit<BoxProps, keyof ButtonVariantProps> & Omit<ButtonVariantProps, 'iconBefore' | 'iconAfter'> & {
|
|
310
|
+
export declare type ButtonProps = Omit<BoxProps, keyof ButtonVariantProps | 'children'> & Omit<ButtonVariantProps, 'iconBefore' | 'iconAfter'> & {
|
|
311
|
+
before?: ReactNode;
|
|
312
|
+
after?: ReactNode;
|
|
312
313
|
iconBefore?: IconNamesList;
|
|
313
314
|
iconAfter?: IconNamesList;
|
|
314
315
|
href?: string;
|
|
315
316
|
loading?: boolean;
|
|
316
317
|
children: string | ReactNode;
|
|
318
|
+
error?: boolean;
|
|
319
|
+
invalid?: boolean;
|
|
317
320
|
disabled?: boolean;
|
|
318
321
|
type?: 'submit' | 'reset' | 'button';
|
|
319
322
|
gap?: NumericSizeToken;
|
|
@@ -389,10 +392,12 @@ export declare const CheckboxInput: (props: CheckboxInputProps) => JSX.Element;
|
|
|
389
392
|
|
|
390
393
|
export declare type CheckboxInputProps = Omit<BoxProps, keyof CheckboxInputVariantProps> & CheckboxInputVariantProps & {
|
|
391
394
|
name: string;
|
|
392
|
-
checked
|
|
393
|
-
|
|
395
|
+
checked?: boolean;
|
|
396
|
+
defaultChecked?: boolean;
|
|
397
|
+
onChange?: CheckboxChangeHandler;
|
|
394
398
|
id?: string;
|
|
395
399
|
error?: boolean;
|
|
400
|
+
invalid?: boolean;
|
|
396
401
|
children?: string | ReactNode;
|
|
397
402
|
disabled?: boolean;
|
|
398
403
|
};
|
|
@@ -407,10 +412,12 @@ declare type CheckboxInputVariantProps = {
|
|
|
407
412
|
|
|
408
413
|
export declare type CheckboxProps = Omit<BoxProps, 'checked' | 'onChange' | keyof CheckboxVariantProps> & CheckboxVariantProps & {
|
|
409
414
|
name: string;
|
|
410
|
-
checked
|
|
411
|
-
|
|
415
|
+
checked?: boolean;
|
|
416
|
+
defaultChecked?: boolean;
|
|
417
|
+
onChange?: CheckboxChangeHandler;
|
|
412
418
|
id?: string;
|
|
413
419
|
error?: boolean;
|
|
420
|
+
invalid?: boolean;
|
|
414
421
|
disabled?: boolean;
|
|
415
422
|
indeterminate?: boolean;
|
|
416
423
|
};
|
|
@@ -429,8 +436,10 @@ export declare const ChipGroup: (props: ChipGroupProps) => JSX.Element;
|
|
|
429
436
|
|
|
430
437
|
export declare type ChipGroupProps = Omit<WrapProps, 'role'> & Omit<BoxProps, keyof WrapProps> & {
|
|
431
438
|
type: ChipGroupType;
|
|
432
|
-
value
|
|
433
|
-
|
|
439
|
+
value?: string | string[];
|
|
440
|
+
defaultValue?: string | string[];
|
|
441
|
+
onChange?: (value: string | string[]) => void;
|
|
442
|
+
size?: ChipVariantProps['size'];
|
|
434
443
|
children: ReactNode;
|
|
435
444
|
label?: string;
|
|
436
445
|
id?: string;
|
|
@@ -439,18 +448,21 @@ export declare type ChipGroupProps = Omit<WrapProps, 'role'> & Omit<BoxProps, ke
|
|
|
439
448
|
|
|
440
449
|
export declare type ChipGroupType = 'single' | 'multi';
|
|
441
450
|
|
|
442
|
-
export declare type ChipProps = Omit<BoxProps, keyof ChipVariantProps> & Omit<ChipVariantProps, 'before' | 'after'> & {
|
|
443
|
-
children:
|
|
444
|
-
/** Content to render before the label (e.g., Icon, Avatar) */
|
|
451
|
+
export declare type ChipProps = Omit<BoxProps, keyof ChipVariantProps | 'children'> & Omit<ChipVariantProps, 'before' | 'after'> & {
|
|
452
|
+
children: ReactNode;
|
|
445
453
|
before?: ReactNode;
|
|
446
|
-
/** Content to render after the label (e.g., Badge, Icon) */
|
|
447
454
|
after?: ReactNode;
|
|
448
455
|
disabled?: boolean;
|
|
449
456
|
loading?: boolean;
|
|
450
457
|
deleted?: boolean;
|
|
451
458
|
dismissable?: boolean;
|
|
459
|
+
dismissLabel?: string;
|
|
452
460
|
onDismiss?: () => void;
|
|
461
|
+
onClick?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
453
462
|
value?: string;
|
|
463
|
+
type?: 'button' | 'submit' | 'reset';
|
|
464
|
+
error?: boolean;
|
|
465
|
+
invalid?: boolean;
|
|
454
466
|
gap?: NumericSizeToken;
|
|
455
467
|
};
|
|
456
468
|
|
|
@@ -458,9 +470,10 @@ declare interface ChipVariant {
|
|
|
458
470
|
/**
|
|
459
471
|
* @default "md"
|
|
460
472
|
*/
|
|
461
|
-
size: "sm" | "md" | "lg"
|
|
473
|
+
size: "sm" | "md" | "lg" | "xl"
|
|
462
474
|
before: boolean
|
|
463
475
|
after: boolean
|
|
476
|
+
dismissable: boolean
|
|
464
477
|
}
|
|
465
478
|
|
|
466
479
|
declare type ChipVariantProps = {
|
|
@@ -1255,6 +1268,8 @@ export declare const DatePicker: (props: DatePickerProps) => JSX.Element;
|
|
|
1255
1268
|
export declare type DatePickerProps = Omit<BoxProps, keyof DatePickerVariantProps | 'children'> & DatePickerVariantProps & {
|
|
1256
1269
|
/** Controlled value */
|
|
1257
1270
|
value?: DateValue | null;
|
|
1271
|
+
/** Uncontrolled initial value */
|
|
1272
|
+
defaultValue?: DateValue | null;
|
|
1258
1273
|
/** Called when the date changes */
|
|
1259
1274
|
onChange?: (value: DateValue | null) => void;
|
|
1260
1275
|
/** Earliest selectable date */
|
|
@@ -1265,10 +1280,13 @@ export declare type DatePickerProps = Omit<BoxProps, keyof DatePickerVariantProp
|
|
|
1265
1280
|
label?: string;
|
|
1266
1281
|
disabled?: boolean;
|
|
1267
1282
|
error?: boolean;
|
|
1283
|
+
invalid?: boolean;
|
|
1268
1284
|
id?: string;
|
|
1269
1285
|
name?: string;
|
|
1270
1286
|
/** Controlled popover open state */
|
|
1271
1287
|
open?: boolean;
|
|
1288
|
+
/** Uncontrolled initial popover state */
|
|
1289
|
+
defaultOpen?: boolean;
|
|
1272
1290
|
onOpenChange?: (open: boolean) => void;
|
|
1273
1291
|
};
|
|
1274
1292
|
|
|
@@ -1361,6 +1379,16 @@ declare type EasingToken = "default" | "linear" | "in" | "out" | "in-out"
|
|
|
1361
1379
|
|
|
1362
1380
|
declare type Fallback<T> = { [P in keyof T]: T[P] | readonly NonNullable<T[P]>[] };
|
|
1363
1381
|
|
|
1382
|
+
export declare const FieldContext: Context<FieldContextValue | null>;
|
|
1383
|
+
|
|
1384
|
+
export declare type FieldContextValue = {
|
|
1385
|
+
size?: FormFieldVariantProps['size'];
|
|
1386
|
+
disabled?: boolean;
|
|
1387
|
+
error?: boolean;
|
|
1388
|
+
invalid?: boolean;
|
|
1389
|
+
describedBy?: string;
|
|
1390
|
+
};
|
|
1391
|
+
|
|
1364
1392
|
declare type FontSizeToken = "10" | "12" | "14" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "72" | "80" | "96"
|
|
1365
1393
|
|
|
1366
1394
|
declare type FontToken = "heading" | "sans" | "body" | "serif" | "mono"
|
|
@@ -1376,11 +1404,16 @@ export declare type FormFieldProps = Omit<BoxProps, keyof FormFieldVariantProps>
|
|
|
1376
1404
|
helpText?: string;
|
|
1377
1405
|
required?: boolean;
|
|
1378
1406
|
error?: boolean;
|
|
1407
|
+
invalid?: boolean;
|
|
1379
1408
|
errorText?: string;
|
|
1409
|
+
success?: boolean;
|
|
1410
|
+
successText?: string;
|
|
1380
1411
|
disabled?: boolean;
|
|
1381
1412
|
tooltipTitle?: string;
|
|
1382
1413
|
tooltipText?: string;
|
|
1383
|
-
size?: '
|
|
1414
|
+
size?: FormFieldVariantProps['size'];
|
|
1415
|
+
layout?: 'default' | 'inline';
|
|
1416
|
+
gap?: NumericSizeToken;
|
|
1384
1417
|
};
|
|
1385
1418
|
|
|
1386
1419
|
declare interface FormFieldVariant {
|
|
@@ -1496,6 +1529,7 @@ export declare const IconNames: {
|
|
|
1496
1529
|
readonly at: "at";
|
|
1497
1530
|
readonly attachment: "attachment";
|
|
1498
1531
|
readonly bank: "bank";
|
|
1532
|
+
readonly 'barcode-off': "barcode-off";
|
|
1499
1533
|
readonly 'barcode-reader': "barcode-reader";
|
|
1500
1534
|
readonly barcode: "barcode";
|
|
1501
1535
|
readonly barricade: "barricade";
|
|
@@ -1730,6 +1764,7 @@ export declare const IconNames: {
|
|
|
1730
1764
|
readonly 'sort-time-down': "sort-time-down";
|
|
1731
1765
|
readonly 'sort-time-up': "sort-time-up";
|
|
1732
1766
|
readonly sparkle: "sparkle";
|
|
1767
|
+
readonly spinner: "spinner";
|
|
1733
1768
|
readonly 'square-add': "square-add";
|
|
1734
1769
|
readonly 'square-inside': "square-inside";
|
|
1735
1770
|
readonly 'square-select': "square-select";
|
|
@@ -1816,6 +1851,7 @@ declare type IconNamesList =
|
|
|
1816
1851
|
| 'at'
|
|
1817
1852
|
| 'attachment'
|
|
1818
1853
|
| 'bank'
|
|
1854
|
+
| 'barcode-off'
|
|
1819
1855
|
| 'barcode-reader'
|
|
1820
1856
|
| 'barcode'
|
|
1821
1857
|
| 'barricade'
|
|
@@ -2050,6 +2086,7 @@ declare type IconNamesList =
|
|
|
2050
2086
|
| 'sort-time-down'
|
|
2051
2087
|
| 'sort-time-up'
|
|
2052
2088
|
| 'sparkle'
|
|
2089
|
+
| 'spinner'
|
|
2053
2090
|
| 'square-add'
|
|
2054
2091
|
| 'square-inside'
|
|
2055
2092
|
| 'square-select'
|
|
@@ -2108,12 +2145,22 @@ declare type IconNamesList =
|
|
|
2108
2145
|
| 'zoom-in'
|
|
2109
2146
|
| 'zoom-out';
|
|
2110
2147
|
|
|
2111
|
-
declare type
|
|
2148
|
+
declare type IconOwnProps = {
|
|
2112
2149
|
name: IconNamesList;
|
|
2113
|
-
|
|
2150
|
+
/**
|
|
2151
|
+
* Icon size recipe variant. Responsive/conditional values are supported.
|
|
2152
|
+
* An explicit value takes precedence over slot context.
|
|
2153
|
+
*/
|
|
2154
|
+
size?: IconVariantProps['size'];
|
|
2155
|
+
/**
|
|
2156
|
+
* Design-token fill color. An explicit value takes precedence over slot
|
|
2157
|
+
* context; otherwise the recipe uses the decorative icon color.
|
|
2158
|
+
*/
|
|
2114
2159
|
fill?: ColorToken;
|
|
2115
2160
|
};
|
|
2116
2161
|
|
|
2162
|
+
declare type IconProps = Omit<BoxProps, IconNamesList | keyof IconVariantProps | keyof IconOwnProps> & Omit<IconVariantProps, keyof IconOwnProps> & IconOwnProps;
|
|
2163
|
+
|
|
2117
2164
|
export declare const IconProvider: ({ children, spritePath }: IconProviderProps) => JSX.Element;
|
|
2118
2165
|
|
|
2119
2166
|
export declare type IconProviderProps = {
|
|
@@ -2122,7 +2169,7 @@ export declare type IconProviderProps = {
|
|
|
2122
2169
|
};
|
|
2123
2170
|
|
|
2124
2171
|
declare interface IconVariant {
|
|
2125
|
-
|
|
2172
|
+
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
2173
|
}
|
|
2127
2174
|
|
|
2128
2175
|
declare type IconVariantProps = {
|
|
@@ -2140,6 +2187,16 @@ P
|
|
|
2140
2187
|
|
|
2141
2188
|
declare type JsxStyleProps = SystemStyleObject_2 & WithCss
|
|
2142
2189
|
|
|
2190
|
+
export declare const Kbd: (props: KbdProps) => JSX.Element;
|
|
2191
|
+
|
|
2192
|
+
export declare type KbdProps = Omit<BoxProps, 'children'> & {
|
|
2193
|
+
keys: KbdValue[];
|
|
2194
|
+
};
|
|
2195
|
+
|
|
2196
|
+
export declare type KbdSpecialSymbol = 'command' | 'option' | 'control' | 'shift' | 'escape' | 'delete' | 'return' | 'tab' | 'arrow-up' | 'arrow-down' | 'arrow-left' | 'arrow-right';
|
|
2197
|
+
|
|
2198
|
+
export declare type KbdValue = string | KbdSpecialSymbol;
|
|
2199
|
+
|
|
2143
2200
|
export declare const Label: (props: LabelProps) => JSX.Element;
|
|
2144
2201
|
|
|
2145
2202
|
export declare type LabelProps = Omit<BoxProps, keyof LabelVariantProps> & LabelVariantProps & {
|
|
@@ -2231,7 +2288,7 @@ declare type ListItemGroupVariantProps = {
|
|
|
2231
2288
|
[key in keyof ListItemGroupVariant]?: ConditionalValue<ListItemGroupVariant[key]> | undefined
|
|
2232
2289
|
}
|
|
2233
2290
|
|
|
2234
|
-
export declare type ListItemProps = Omit<BoxProps
|
|
2291
|
+
export declare type ListItemProps = Omit<BoxProps, keyof ListItemVariantProps | 'as' | 'type'> & Omit<ListItemVariantProps, 'selected' | 'iconBefore' | 'iconAfter'> & {
|
|
2235
2292
|
active?: boolean;
|
|
2236
2293
|
label?: string;
|
|
2237
2294
|
description?: string;
|
|
@@ -2244,6 +2301,19 @@ export declare type ListItemProps = Omit<BoxProps<'button'>, keyof ListItemVaria
|
|
|
2244
2301
|
density?: ListItemVariantProps['density'];
|
|
2245
2302
|
iconBefore?: IconNamesList;
|
|
2246
2303
|
iconAfter?: IconNamesList;
|
|
2304
|
+
iconBeforeFill?: IconProps['fill'];
|
|
2305
|
+
iconAfterFill?: IconProps['fill'];
|
|
2306
|
+
/**
|
|
2307
|
+
* Internal record primary key rendered as `data-row-id` on the item root.
|
|
2308
|
+
* It targets one row in a test and identifies which record an interaction
|
|
2309
|
+
* applied to.
|
|
2310
|
+
*
|
|
2311
|
+
* It must never be a row index, a composite value, or a customer-facing
|
|
2312
|
+
* identifier such as an order number. It is unrelated to React's `key`.
|
|
2313
|
+
*/
|
|
2314
|
+
rowId?: string;
|
|
2315
|
+
href?: string;
|
|
2316
|
+
disabled?: boolean;
|
|
2247
2317
|
};
|
|
2248
2318
|
|
|
2249
2319
|
declare interface ListItemVariant {
|
|
@@ -2275,7 +2345,10 @@ export declare type ListProps = Omit<BoxProps, keyof ListVariantProps | 'childre
|
|
|
2275
2345
|
};
|
|
2276
2346
|
|
|
2277
2347
|
declare interface ListVariant {
|
|
2278
|
-
|
|
2348
|
+
/**
|
|
2349
|
+
* @default "compact"
|
|
2350
|
+
*/
|
|
2351
|
+
density: "compact" | "comfortable" | "spacious"
|
|
2279
2352
|
}
|
|
2280
2353
|
|
|
2281
2354
|
declare type ListVariantProps = {
|
|
@@ -2293,6 +2366,7 @@ export declare type MenuContext = {
|
|
|
2293
2366
|
onCloseMenu: () => void;
|
|
2294
2367
|
onPushDiginLevel: (title: string, levelChildren: ReactNode) => void;
|
|
2295
2368
|
onPopDiginLevel: () => void;
|
|
2369
|
+
onMenubarEdgeNavigate?: (direction: 1 | -1) => void;
|
|
2296
2370
|
diginDepth: number;
|
|
2297
2371
|
};
|
|
2298
2372
|
|
|
@@ -2364,6 +2438,7 @@ export declare type MenuProps = {
|
|
|
2364
2438
|
description?: string;
|
|
2365
2439
|
}) => string;
|
|
2366
2440
|
panel?: MenuVariantProps['panel'];
|
|
2441
|
+
onMenubarEdgeNavigate?: (direction: 1 | -1) => void;
|
|
2367
2442
|
} & BoxProps;
|
|
2368
2443
|
|
|
2369
2444
|
export declare const MenuProvider: ({ children, root, filter }: MenuProviderProps) => JSX.Element;
|
|
@@ -2374,7 +2449,7 @@ export declare type MenuProviderProps = {
|
|
|
2374
2449
|
filter?: Partial<MenuFilterContextValue>;
|
|
2375
2450
|
};
|
|
2376
2451
|
|
|
2377
|
-
declare type MenuTriggerInteraction = 'click' | 'hover';
|
|
2452
|
+
declare type MenuTriggerInteraction = 'click' | 'hover' | 'click-and-hover';
|
|
2378
2453
|
|
|
2379
2454
|
declare interface MenuVariant {
|
|
2380
2455
|
/**
|
|
@@ -2440,6 +2515,10 @@ export declare type ModalProps = Omit<BoxProps, keyof ModalVariantProps> & Modal
|
|
|
2440
2515
|
};
|
|
2441
2516
|
|
|
2442
2517
|
declare interface ModalVariant {
|
|
2518
|
+
/**
|
|
2519
|
+
* @default "centered"
|
|
2520
|
+
*/
|
|
2521
|
+
position: "centered" | "top" | "bottom"
|
|
2443
2522
|
/**
|
|
2444
2523
|
* @default "md"
|
|
2445
2524
|
*/
|
|
@@ -2556,159 +2635,6 @@ declare type Nested<P> = P & {
|
|
|
2556
2635
|
|
|
2557
2636
|
declare type Number_2 = number & {}
|
|
2558
2637
|
|
|
2559
|
-
declare const numericSizes: {
|
|
2560
|
-
'0': {
|
|
2561
|
-
value: string;
|
|
2562
|
-
};
|
|
2563
|
-
'1': {
|
|
2564
|
-
value: string;
|
|
2565
|
-
};
|
|
2566
|
-
'2': {
|
|
2567
|
-
value: string;
|
|
2568
|
-
};
|
|
2569
|
-
'3': {
|
|
2570
|
-
value: string;
|
|
2571
|
-
};
|
|
2572
|
-
'4': {
|
|
2573
|
-
value: string;
|
|
2574
|
-
};
|
|
2575
|
-
'5': {
|
|
2576
|
-
value: string;
|
|
2577
|
-
};
|
|
2578
|
-
'6': {
|
|
2579
|
-
value: string;
|
|
2580
|
-
};
|
|
2581
|
-
'7': {
|
|
2582
|
-
value: string;
|
|
2583
|
-
};
|
|
2584
|
-
'8': {
|
|
2585
|
-
value: string;
|
|
2586
|
-
};
|
|
2587
|
-
'9': {
|
|
2588
|
-
value: string;
|
|
2589
|
-
};
|
|
2590
|
-
'10': {
|
|
2591
|
-
value: string;
|
|
2592
|
-
};
|
|
2593
|
-
'12': {
|
|
2594
|
-
value: string;
|
|
2595
|
-
};
|
|
2596
|
-
'14': {
|
|
2597
|
-
value: string;
|
|
2598
|
-
};
|
|
2599
|
-
'16': {
|
|
2600
|
-
value: string;
|
|
2601
|
-
};
|
|
2602
|
-
'20': {
|
|
2603
|
-
value: string;
|
|
2604
|
-
};
|
|
2605
|
-
'22': {
|
|
2606
|
-
value: string;
|
|
2607
|
-
};
|
|
2608
|
-
'24': {
|
|
2609
|
-
value: string;
|
|
2610
|
-
};
|
|
2611
|
-
'28': {
|
|
2612
|
-
value: string;
|
|
2613
|
-
};
|
|
2614
|
-
'32': {
|
|
2615
|
-
value: string;
|
|
2616
|
-
};
|
|
2617
|
-
'40': {
|
|
2618
|
-
value: string;
|
|
2619
|
-
};
|
|
2620
|
-
'48': {
|
|
2621
|
-
value: string;
|
|
2622
|
-
};
|
|
2623
|
-
'56': {
|
|
2624
|
-
value: string;
|
|
2625
|
-
};
|
|
2626
|
-
'64': {
|
|
2627
|
-
value: string;
|
|
2628
|
-
};
|
|
2629
|
-
'72': {
|
|
2630
|
-
value: string;
|
|
2631
|
-
};
|
|
2632
|
-
'80': {
|
|
2633
|
-
value: string;
|
|
2634
|
-
};
|
|
2635
|
-
'88': {
|
|
2636
|
-
value: string;
|
|
2637
|
-
};
|
|
2638
|
-
'96': {
|
|
2639
|
-
value: string;
|
|
2640
|
-
};
|
|
2641
|
-
'104': {
|
|
2642
|
-
value: string;
|
|
2643
|
-
};
|
|
2644
|
-
'112': {
|
|
2645
|
-
value: string;
|
|
2646
|
-
};
|
|
2647
|
-
'120': {
|
|
2648
|
-
value: string;
|
|
2649
|
-
};
|
|
2650
|
-
'128': {
|
|
2651
|
-
value: string;
|
|
2652
|
-
};
|
|
2653
|
-
'136': {
|
|
2654
|
-
value: string;
|
|
2655
|
-
};
|
|
2656
|
-
'144': {
|
|
2657
|
-
value: string;
|
|
2658
|
-
};
|
|
2659
|
-
'152': {
|
|
2660
|
-
value: string;
|
|
2661
|
-
};
|
|
2662
|
-
'160': {
|
|
2663
|
-
value: string;
|
|
2664
|
-
};
|
|
2665
|
-
'168': {
|
|
2666
|
-
value: string;
|
|
2667
|
-
};
|
|
2668
|
-
'176': {
|
|
2669
|
-
value: string;
|
|
2670
|
-
};
|
|
2671
|
-
'184': {
|
|
2672
|
-
value: string;
|
|
2673
|
-
};
|
|
2674
|
-
'192': {
|
|
2675
|
-
value: string;
|
|
2676
|
-
};
|
|
2677
|
-
'200': {
|
|
2678
|
-
value: string;
|
|
2679
|
-
};
|
|
2680
|
-
'208': {
|
|
2681
|
-
value: string;
|
|
2682
|
-
};
|
|
2683
|
-
'216': {
|
|
2684
|
-
value: string;
|
|
2685
|
-
};
|
|
2686
|
-
'224': {
|
|
2687
|
-
value: string;
|
|
2688
|
-
};
|
|
2689
|
-
'232': {
|
|
2690
|
-
value: string;
|
|
2691
|
-
};
|
|
2692
|
-
'240': {
|
|
2693
|
-
value: string;
|
|
2694
|
-
};
|
|
2695
|
-
'248': {
|
|
2696
|
-
value: string;
|
|
2697
|
-
};
|
|
2698
|
-
'256': {
|
|
2699
|
-
value: string;
|
|
2700
|
-
};
|
|
2701
|
-
'264': {
|
|
2702
|
-
value: string;
|
|
2703
|
-
};
|
|
2704
|
-
'272': {
|
|
2705
|
-
value: string;
|
|
2706
|
-
};
|
|
2707
|
-
'280': {
|
|
2708
|
-
value: string;
|
|
2709
|
-
};
|
|
2710
|
-
};
|
|
2711
|
-
|
|
2712
2638
|
declare type NumericSizeToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "12" | "14" | "16" | "20" | "22" | "24" | "28" | "32" | "40" | "48" | "56" | "64" | "72" | "80" | "88" | "96" | "104" | "112" | "120" | "128" | "136" | "144" | "152" | "160" | "168" | "176" | "184" | "192" | "200" | "208" | "216" | "224" | "232" | "240" | "248" | "256" | "264" | "272" | "280"
|
|
2713
2639
|
|
|
2714
2640
|
declare interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
@@ -5648,14 +5574,30 @@ declare type RadioChangeEvent = ChangeEvent<HTMLInputElement>;
|
|
|
5648
5574
|
*/
|
|
5649
5575
|
declare type RadioChangeHandler = (e: RadioChangeEvent) => void;
|
|
5650
5576
|
|
|
5577
|
+
export declare const RadioGroup: (props: RadioGroupProps) => JSX.Element;
|
|
5578
|
+
|
|
5579
|
+
export declare type RadioGroupProps = Omit<BoxProps, 'role'> & {
|
|
5580
|
+
name: string;
|
|
5581
|
+
value?: string | null;
|
|
5582
|
+
defaultValue?: string | null;
|
|
5583
|
+
onChange?: (value: string) => void;
|
|
5584
|
+
children: ReactNode;
|
|
5585
|
+
label?: string;
|
|
5586
|
+
id?: string;
|
|
5587
|
+
disabled?: boolean;
|
|
5588
|
+
};
|
|
5589
|
+
|
|
5651
5590
|
export declare const RadioInput: (props: RadioInputProps) => JSX.Element;
|
|
5652
5591
|
|
|
5653
5592
|
export declare type RadioInputProps = Omit<BoxProps, keyof RadioInputVariantProps> & RadioInputVariantProps & {
|
|
5654
|
-
name
|
|
5655
|
-
|
|
5656
|
-
|
|
5593
|
+
name?: string;
|
|
5594
|
+
value?: string;
|
|
5595
|
+
checked?: boolean;
|
|
5596
|
+
defaultChecked?: boolean;
|
|
5597
|
+
onChange?: RadioChangeHandler;
|
|
5657
5598
|
id?: string;
|
|
5658
5599
|
error?: boolean;
|
|
5600
|
+
invalid?: boolean;
|
|
5659
5601
|
children?: string | ReactNode;
|
|
5660
5602
|
disabled?: boolean;
|
|
5661
5603
|
};
|
|
@@ -5669,11 +5611,13 @@ declare type RadioInputVariantProps = {
|
|
|
5669
5611
|
}
|
|
5670
5612
|
|
|
5671
5613
|
export declare type RadioProps = Omit<BoxProps, 'checked' | 'onChange' | keyof RadioVariantProps> & RadioVariantProps & {
|
|
5672
|
-
name
|
|
5673
|
-
checked
|
|
5674
|
-
|
|
5614
|
+
name?: string;
|
|
5615
|
+
checked?: boolean;
|
|
5616
|
+
defaultChecked?: boolean;
|
|
5617
|
+
onChange?: RadioChangeHandler;
|
|
5675
5618
|
id?: string;
|
|
5676
5619
|
error?: boolean;
|
|
5620
|
+
invalid?: boolean;
|
|
5677
5621
|
disabled?: boolean;
|
|
5678
5622
|
};
|
|
5679
5623
|
|
|
@@ -5734,18 +5678,22 @@ declare type Selectors = AttributeSelector | ParentSelector
|
|
|
5734
5678
|
|
|
5735
5679
|
export declare type SelectProps = Omit<BoxProps<'button'>, keyof SelectVariantProps | 'children' | 'onChange' | 'type' | 'value'> & SelectVariantProps & {
|
|
5736
5680
|
value?: SelectValue;
|
|
5681
|
+
defaultValue?: SelectValue;
|
|
5737
5682
|
onChange?: (value: SelectValue) => void;
|
|
5738
5683
|
multiple?: boolean;
|
|
5739
5684
|
placeholder?: string;
|
|
5740
5685
|
open?: boolean;
|
|
5686
|
+
defaultOpen?: boolean;
|
|
5741
5687
|
onOpenChange?: (open: boolean) => void;
|
|
5742
5688
|
placement?: Placement;
|
|
5743
5689
|
offset?: number;
|
|
5744
5690
|
children: ReactNode;
|
|
5745
5691
|
id?: string;
|
|
5692
|
+
name?: string;
|
|
5746
5693
|
disabled?: boolean;
|
|
5747
5694
|
error?: boolean;
|
|
5748
5695
|
density?: MenuDensity;
|
|
5696
|
+
autoSize?: boolean;
|
|
5749
5697
|
};
|
|
5750
5698
|
|
|
5751
5699
|
export declare const SelectTrigger: (props: SelectTriggerProps) => ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
@@ -5886,6 +5834,15 @@ declare type SimplePseudos =
|
|
|
5886
5834
|
|
|
5887
5835
|
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
5836
|
|
|
5837
|
+
export declare const Skeleton: (props: SkeletonProps) => JSX.Element;
|
|
5838
|
+
|
|
5839
|
+
export declare type SkeletonProps = Omit<BoxProps, 'as'> & {
|
|
5840
|
+
variant?: 'text' | 'circular' | 'rounded' | 'rectangular';
|
|
5841
|
+
animation?: 'pulse' | 'wave' | false;
|
|
5842
|
+
component?: ElementType;
|
|
5843
|
+
children?: ReactNode;
|
|
5844
|
+
};
|
|
5845
|
+
|
|
5889
5846
|
export declare type SlotRecipeConfig<S extends string = string, V extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>> = BaseSlotRecipeConfig<S, V>;
|
|
5890
5847
|
|
|
5891
5848
|
export declare type SlotRecipeVariantRecord<S extends string = string> = Record<S, Record<string, unknown>>;
|
|
@@ -19637,6 +19594,7 @@ export declare type TextareaProps = Omit<BoxProps, keyof TextareaVariantProps> &
|
|
|
19637
19594
|
name: string;
|
|
19638
19595
|
autoSize?: boolean;
|
|
19639
19596
|
error?: boolean;
|
|
19597
|
+
invalid?: boolean;
|
|
19640
19598
|
disabled?: boolean;
|
|
19641
19599
|
id?: string;
|
|
19642
19600
|
};
|
|
@@ -19658,10 +19616,14 @@ export declare const TextInput: (props: TextInputProps) => JSX.Element;
|
|
|
19658
19616
|
export declare type TextInputProps = Omit<BoxProps, keyof TextInputVariantProps> & Omit<TextInputVariantProps, 'iconBefore' | 'iconAfter'> & {
|
|
19659
19617
|
name: string;
|
|
19660
19618
|
id?: string;
|
|
19619
|
+
before?: ReactNode;
|
|
19620
|
+
after?: ReactNode;
|
|
19661
19621
|
iconBefore?: IconNamesList;
|
|
19662
19622
|
iconAfter?: IconNamesList;
|
|
19663
19623
|
error?: boolean;
|
|
19664
19624
|
disabled?: boolean;
|
|
19625
|
+
valid?: boolean;
|
|
19626
|
+
invalid?: boolean;
|
|
19665
19627
|
type?: 'text' | 'number' | 'email' | 'password' | 'search' | 'tel' | 'url' | 'date' | 'time' | 'datetime-local' | 'month' | 'week';
|
|
19666
19628
|
};
|
|
19667
19629
|
|
|
@@ -19726,6 +19688,8 @@ export declare const TimePicker: (props: TimePickerProps) => JSX.Element;
|
|
|
19726
19688
|
export declare type TimePickerProps = Omit<BoxProps, keyof TimePickerVariantProps | 'children'> & TimePickerVariantProps & {
|
|
19727
19689
|
/** Controlled value — hour is always 24h (0–23) internally */
|
|
19728
19690
|
value?: TimeValue | null;
|
|
19691
|
+
/** Uncontrolled initial value */
|
|
19692
|
+
defaultValue?: TimeValue | null;
|
|
19729
19693
|
/** Called when the time changes */
|
|
19730
19694
|
onChange?: (value: TimeValue | null) => void;
|
|
19731
19695
|
/** 12-hour or 24-hour display */
|
|
@@ -19736,10 +19700,13 @@ export declare type TimePickerProps = Omit<BoxProps, keyof TimePickerVariantProp
|
|
|
19736
19700
|
label?: string;
|
|
19737
19701
|
disabled?: boolean;
|
|
19738
19702
|
error?: boolean;
|
|
19703
|
+
invalid?: boolean;
|
|
19739
19704
|
id?: string;
|
|
19740
19705
|
name?: string;
|
|
19741
19706
|
/** Controlled popover open state */
|
|
19742
19707
|
open?: boolean;
|
|
19708
|
+
/** Uncontrolled initial popover state */
|
|
19709
|
+
defaultOpen?: boolean;
|
|
19743
19710
|
onOpenChange?: (open: boolean) => void;
|
|
19744
19711
|
};
|
|
19745
19712
|
|
|
@@ -19811,10 +19778,12 @@ export declare const ToggleInput: (props: ToggleInputProps) => JSX.Element;
|
|
|
19811
19778
|
|
|
19812
19779
|
export declare type ToggleInputProps = Omit<BoxProps, keyof ToggleInputVariantProps> & ToggleInputVariantProps & {
|
|
19813
19780
|
name: string;
|
|
19814
|
-
checked
|
|
19815
|
-
|
|
19781
|
+
checked?: boolean;
|
|
19782
|
+
defaultChecked?: boolean;
|
|
19783
|
+
onChange?: ToggleChangeHandler;
|
|
19816
19784
|
id?: string;
|
|
19817
19785
|
error?: boolean;
|
|
19786
|
+
invalid?: boolean;
|
|
19818
19787
|
disabled?: boolean;
|
|
19819
19788
|
children?: string | ReactNode;
|
|
19820
19789
|
};
|
|
@@ -19829,10 +19798,12 @@ declare type ToggleInputVariantProps = {
|
|
|
19829
19798
|
|
|
19830
19799
|
export declare type ToggleProps = Omit<BoxProps, 'checked' | 'onChange' | keyof ToggleVariantProps> & ToggleVariantProps & {
|
|
19831
19800
|
name: string;
|
|
19832
|
-
checked
|
|
19833
|
-
|
|
19801
|
+
checked?: boolean;
|
|
19802
|
+
defaultChecked?: boolean;
|
|
19803
|
+
onChange?: ToggleChangeHandler;
|
|
19834
19804
|
id?: string;
|
|
19835
19805
|
error?: boolean;
|
|
19806
|
+
invalid?: boolean;
|
|
19836
19807
|
disabled?: boolean;
|
|
19837
19808
|
};
|
|
19838
19809
|
|
|
@@ -19917,6 +19888,16 @@ declare interface UnstyledProps {
|
|
|
19917
19888
|
|
|
19918
19889
|
export declare function useContainerQuery(containerRef: RefObject<HTMLElement>, size: ContainerSizeKey, direction?: QueryDirection): boolean;
|
|
19919
19890
|
|
|
19891
|
+
export declare const useControllableState: <T>({ value, defaultValue, onChange, }: UseControllableStateProps<T>) => readonly [T, (nextValue: T | ((currentValue: T) => T)) => void];
|
|
19892
|
+
|
|
19893
|
+
export declare type UseControllableStateProps<T> = {
|
|
19894
|
+
value?: T;
|
|
19895
|
+
defaultValue: T;
|
|
19896
|
+
onChange?: (value: T) => void;
|
|
19897
|
+
};
|
|
19898
|
+
|
|
19899
|
+
export declare const useFieldContext: () => FieldContextValue | null;
|
|
19900
|
+
|
|
19920
19901
|
export declare function useMediaQuery(breakpoint: BreakpointKey, direction?: QueryDirection_2): boolean;
|
|
19921
19902
|
|
|
19922
19903
|
export declare const useMenuContext: () => MenuContext;
|
|
@@ -20090,7 +20071,7 @@ declare interface UtilityValues {
|
|
|
20090
20071
|
transitionDuration: Tokens["durations"];
|
|
20091
20072
|
transition: "all" | "common" | "size" | "position" | "background" | "colors" | "opacity" | "shadow" | "transform";
|
|
20092
20073
|
animation: Tokens["animations"];
|
|
20093
|
-
animationName: "spin" | "ping" | "pulse" | "bounce" | "badgePop" | "badgePopStandalone" | "slideLeft" | "slideRight" | "modalFadeIn" | "modalFadeOut" | "modalScaleIn" | "modalScaleOut";
|
|
20074
|
+
animationName: "spin" | "ping" | "pulse" | "bounce" | "badgePop" | "badgePopStandalone" | "slideLeft" | "slideRight" | "skeletonWave" | "modalFadeIn" | "modalFadeOut" | "modalScaleIn" | "modalScaleOut";
|
|
20094
20075
|
animationTimingFunction: Tokens["easings"];
|
|
20095
20076
|
animationDuration: Tokens["durations"];
|
|
20096
20077
|
animationDelay: Tokens["durations"];
|