@sanity/ui 2.16.24 → 2.16.26
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/_chunks-cjs/_visual-editing.js +29 -29
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +29 -29
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_visual-editing.d.mts +12 -21
- package/dist/_visual-editing.d.ts +12 -21
- package/dist/index.d.mts +31 -57
- package/dist/index.d.ts +31 -57
- package/dist/index.js +46 -46
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +47 -47
- package/dist/index.mjs.map +1 -1
- package/dist/theme.d.mts +12 -19
- package/dist/theme.d.ts +12 -19
- package/package.json +5 -5
|
@@ -47,7 +47,8 @@ declare type BoxOverflow = "visible" | "hidden" | "auto";
|
|
|
47
47
|
* @public
|
|
48
48
|
*/
|
|
49
49
|
declare interface BoxProps
|
|
50
|
-
extends
|
|
50
|
+
extends
|
|
51
|
+
ResponsiveFlexItemProps,
|
|
51
52
|
ResponsiveBoxProps,
|
|
52
53
|
ResponsiveGridItemProps,
|
|
53
54
|
ResponsiveMarginProps,
|
|
@@ -81,8 +82,7 @@ declare type ButtonMode = ThemeColorButtonModeKey;
|
|
|
81
82
|
* @public
|
|
82
83
|
*/
|
|
83
84
|
declare interface ButtonProps
|
|
84
|
-
extends ResponsivePaddingProps,
|
|
85
|
-
ResponsiveRadiusProps {
|
|
85
|
+
extends ResponsivePaddingProps, ResponsiveRadiusProps {
|
|
86
86
|
as?: React.ElementType | keyof React.JSX.IntrinsicElements;
|
|
87
87
|
fontSize?: number | number[];
|
|
88
88
|
mode?: ButtonMode;
|
|
@@ -134,7 +134,8 @@ export declare const Card: ForwardRefExoticComponent<
|
|
|
134
134
|
* @public
|
|
135
135
|
*/
|
|
136
136
|
declare interface CardProps
|
|
137
|
-
extends
|
|
137
|
+
extends
|
|
138
|
+
BoxProps,
|
|
138
139
|
ResponsiveBorderProps,
|
|
139
140
|
ResponsiveRadiusProps,
|
|
140
141
|
ResponsiveShadowProps {
|
|
@@ -183,20 +184,13 @@ export declare const Flex: ForwardRefExoticComponent<
|
|
|
183
184
|
* @public
|
|
184
185
|
*/
|
|
185
186
|
declare type FlexAlign =
|
|
186
|
-
| "flex-
|
|
187
|
-
| "flex-end"
|
|
188
|
-
| "center"
|
|
189
|
-
| "baseline"
|
|
190
|
-
| "stretch";
|
|
187
|
+
"flex-start" | "flex-end" | "center" | "baseline" | "stretch";
|
|
191
188
|
|
|
192
189
|
/**
|
|
193
190
|
* @public
|
|
194
191
|
*/
|
|
195
192
|
declare type FlexDirection =
|
|
196
|
-
| "row"
|
|
197
|
-
| "row-reverse"
|
|
198
|
-
| "column"
|
|
199
|
-
| "column-reverse";
|
|
193
|
+
"row" | "row-reverse" | "column" | "column-reverse";
|
|
200
194
|
|
|
201
195
|
/**
|
|
202
196
|
* @public
|
|
@@ -213,7 +207,8 @@ declare type FlexJustify =
|
|
|
213
207
|
* @public
|
|
214
208
|
*/
|
|
215
209
|
declare interface FlexProps
|
|
216
|
-
extends
|
|
210
|
+
extends
|
|
211
|
+
Omit<BoxProps, "display">,
|
|
217
212
|
ResponsiveFlexProps,
|
|
218
213
|
ResponsiveFlexItemProps {
|
|
219
214
|
gap?: number | number[];
|
|
@@ -291,8 +286,7 @@ declare type GridItemRowStart = "auto" | number;
|
|
|
291
286
|
* @public
|
|
292
287
|
*/
|
|
293
288
|
declare interface GridProps
|
|
294
|
-
extends Omit<BoxProps, "display">,
|
|
295
|
-
ResponsiveGridProps {}
|
|
289
|
+
extends Omit<BoxProps, "display">, ResponsiveGridProps {}
|
|
296
290
|
|
|
297
291
|
/**
|
|
298
292
|
* Represent hotkeys (a keyboard combination) with semantic `<kbd>` elements.
|
|
@@ -448,8 +442,7 @@ export declare const MenuItem: ForwardRefExoticComponent<
|
|
|
448
442
|
* @public
|
|
449
443
|
*/
|
|
450
444
|
export declare interface MenuItemProps
|
|
451
|
-
extends ResponsivePaddingProps,
|
|
452
|
-
ResponsiveRadiusProps {
|
|
445
|
+
extends ResponsivePaddingProps, ResponsiveRadiusProps {
|
|
453
446
|
as?: React.ElementType | keyof React.JSX.IntrinsicElements;
|
|
454
447
|
fontSize?: number | number[];
|
|
455
448
|
hotkeys?: string[];
|
|
@@ -526,9 +519,7 @@ export declare type PopoverMargins = [number, number, number, number];
|
|
|
526
519
|
|
|
527
520
|
/** @public */
|
|
528
521
|
declare interface PopoverProps
|
|
529
|
-
extends Omit<LayerProps, "as">,
|
|
530
|
-
ResponsiveRadiusProps,
|
|
531
|
-
ResponsiveShadowProps {
|
|
522
|
+
extends Omit<LayerProps, "as">, ResponsiveRadiusProps, ResponsiveShadowProps {
|
|
532
523
|
/** @beta */
|
|
533
524
|
__unstable_margins?: PopoverMargins;
|
|
534
525
|
/**
|
|
@@ -47,7 +47,8 @@ declare type BoxOverflow = "visible" | "hidden" | "auto";
|
|
|
47
47
|
* @public
|
|
48
48
|
*/
|
|
49
49
|
declare interface BoxProps
|
|
50
|
-
extends
|
|
50
|
+
extends
|
|
51
|
+
ResponsiveFlexItemProps,
|
|
51
52
|
ResponsiveBoxProps,
|
|
52
53
|
ResponsiveGridItemProps,
|
|
53
54
|
ResponsiveMarginProps,
|
|
@@ -81,8 +82,7 @@ declare type ButtonMode = ThemeColorButtonModeKey;
|
|
|
81
82
|
* @public
|
|
82
83
|
*/
|
|
83
84
|
declare interface ButtonProps
|
|
84
|
-
extends ResponsivePaddingProps,
|
|
85
|
-
ResponsiveRadiusProps {
|
|
85
|
+
extends ResponsivePaddingProps, ResponsiveRadiusProps {
|
|
86
86
|
as?: React.ElementType | keyof React.JSX.IntrinsicElements;
|
|
87
87
|
fontSize?: number | number[];
|
|
88
88
|
mode?: ButtonMode;
|
|
@@ -134,7 +134,8 @@ export declare const Card: ForwardRefExoticComponent<
|
|
|
134
134
|
* @public
|
|
135
135
|
*/
|
|
136
136
|
declare interface CardProps
|
|
137
|
-
extends
|
|
137
|
+
extends
|
|
138
|
+
BoxProps,
|
|
138
139
|
ResponsiveBorderProps,
|
|
139
140
|
ResponsiveRadiusProps,
|
|
140
141
|
ResponsiveShadowProps {
|
|
@@ -183,20 +184,13 @@ export declare const Flex: ForwardRefExoticComponent<
|
|
|
183
184
|
* @public
|
|
184
185
|
*/
|
|
185
186
|
declare type FlexAlign =
|
|
186
|
-
| "flex-
|
|
187
|
-
| "flex-end"
|
|
188
|
-
| "center"
|
|
189
|
-
| "baseline"
|
|
190
|
-
| "stretch";
|
|
187
|
+
"flex-start" | "flex-end" | "center" | "baseline" | "stretch";
|
|
191
188
|
|
|
192
189
|
/**
|
|
193
190
|
* @public
|
|
194
191
|
*/
|
|
195
192
|
declare type FlexDirection =
|
|
196
|
-
| "row"
|
|
197
|
-
| "row-reverse"
|
|
198
|
-
| "column"
|
|
199
|
-
| "column-reverse";
|
|
193
|
+
"row" | "row-reverse" | "column" | "column-reverse";
|
|
200
194
|
|
|
201
195
|
/**
|
|
202
196
|
* @public
|
|
@@ -213,7 +207,8 @@ declare type FlexJustify =
|
|
|
213
207
|
* @public
|
|
214
208
|
*/
|
|
215
209
|
declare interface FlexProps
|
|
216
|
-
extends
|
|
210
|
+
extends
|
|
211
|
+
Omit<BoxProps, "display">,
|
|
217
212
|
ResponsiveFlexProps,
|
|
218
213
|
ResponsiveFlexItemProps {
|
|
219
214
|
gap?: number | number[];
|
|
@@ -291,8 +286,7 @@ declare type GridItemRowStart = "auto" | number;
|
|
|
291
286
|
* @public
|
|
292
287
|
*/
|
|
293
288
|
declare interface GridProps
|
|
294
|
-
extends Omit<BoxProps, "display">,
|
|
295
|
-
ResponsiveGridProps {}
|
|
289
|
+
extends Omit<BoxProps, "display">, ResponsiveGridProps {}
|
|
296
290
|
|
|
297
291
|
/**
|
|
298
292
|
* Represent hotkeys (a keyboard combination) with semantic `<kbd>` elements.
|
|
@@ -448,8 +442,7 @@ export declare const MenuItem: ForwardRefExoticComponent<
|
|
|
448
442
|
* @public
|
|
449
443
|
*/
|
|
450
444
|
export declare interface MenuItemProps
|
|
451
|
-
extends ResponsivePaddingProps,
|
|
452
|
-
ResponsiveRadiusProps {
|
|
445
|
+
extends ResponsivePaddingProps, ResponsiveRadiusProps {
|
|
453
446
|
as?: React.ElementType | keyof React.JSX.IntrinsicElements;
|
|
454
447
|
fontSize?: number | number[];
|
|
455
448
|
hotkeys?: string[];
|
|
@@ -526,9 +519,7 @@ export declare type PopoverMargins = [number, number, number, number];
|
|
|
526
519
|
|
|
527
520
|
/** @public */
|
|
528
521
|
declare interface PopoverProps
|
|
529
|
-
extends Omit<LayerProps, "as">,
|
|
530
|
-
ResponsiveRadiusProps,
|
|
531
|
-
ResponsiveShadowProps {
|
|
522
|
+
extends Omit<LayerProps, "as">, ResponsiveRadiusProps, ResponsiveShadowProps {
|
|
532
523
|
/** @beta */
|
|
533
524
|
__unstable_margins?: PopoverMargins;
|
|
534
525
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -78,11 +78,7 @@ import { ThemeStyles } from "@sanity/ui/theme";
|
|
|
78
78
|
|
|
79
79
|
/** @beta */
|
|
80
80
|
export declare type ArrayPropPrimitive =
|
|
81
|
-
|
|
|
82
|
-
| number
|
|
83
|
-
| boolean
|
|
84
|
-
| undefined
|
|
85
|
-
| null;
|
|
81
|
+
string | number | boolean | undefined | null;
|
|
86
82
|
|
|
87
83
|
/** @internal */
|
|
88
84
|
export declare const Arrow: ForwardRefExoticComponent<
|
|
@@ -470,11 +466,7 @@ export declare const Box: ForwardRefExoticComponent<
|
|
|
470
466
|
* @public
|
|
471
467
|
*/
|
|
472
468
|
export declare type BoxDisplay =
|
|
473
|
-
| "
|
|
474
|
-
| "block"
|
|
475
|
-
| "grid"
|
|
476
|
-
| "flex"
|
|
477
|
-
| "inline-block";
|
|
469
|
+
"none" | "block" | "grid" | "flex" | "inline-block";
|
|
478
470
|
|
|
479
471
|
/**
|
|
480
472
|
* @public
|
|
@@ -490,7 +482,8 @@ export declare type BoxOverflow = "visible" | "hidden" | "auto";
|
|
|
490
482
|
* @public
|
|
491
483
|
*/
|
|
492
484
|
export declare interface BoxProps
|
|
493
|
-
extends
|
|
485
|
+
extends
|
|
486
|
+
ResponsiveFlexItemProps,
|
|
494
487
|
ResponsiveBoxProps,
|
|
495
488
|
ResponsiveGridItemProps,
|
|
496
489
|
ResponsiveMarginProps,
|
|
@@ -548,8 +541,7 @@ export declare type ButtonMode = ThemeColorButtonModeKey_2;
|
|
|
548
541
|
* @public
|
|
549
542
|
*/
|
|
550
543
|
export declare interface ButtonProps
|
|
551
|
-
extends ResponsivePaddingProps,
|
|
552
|
-
ResponsiveRadiusProps {
|
|
544
|
+
extends ResponsivePaddingProps, ResponsiveRadiusProps {
|
|
553
545
|
as?: React.ElementType | keyof React.JSX.IntrinsicElements;
|
|
554
546
|
fontSize?: number | number[];
|
|
555
547
|
mode?: ButtonMode;
|
|
@@ -601,7 +593,8 @@ export declare const Card: ForwardRefExoticComponent<
|
|
|
601
593
|
* @public
|
|
602
594
|
*/
|
|
603
595
|
export declare interface CardProps
|
|
604
|
-
extends
|
|
596
|
+
extends
|
|
597
|
+
BoxProps,
|
|
605
598
|
ResponsiveBorderProps,
|
|
606
599
|
ResponsiveRadiusProps,
|
|
607
600
|
ResponsiveShadowProps {
|
|
@@ -661,18 +654,14 @@ export declare interface CheckboxProps {
|
|
|
661
654
|
* @public
|
|
662
655
|
*/
|
|
663
656
|
export declare type ClickOutsideElements = (
|
|
664
|
-
| HTMLElement
|
|
665
|
-
| null
|
|
666
|
-
| (HTMLElement | null)[]
|
|
657
|
+
HTMLElement | null | (HTMLElement | null)[]
|
|
667
658
|
)[];
|
|
668
659
|
|
|
669
660
|
/**
|
|
670
661
|
* @public
|
|
671
662
|
*/
|
|
672
663
|
export declare type ClickOutsideEventElements = (
|
|
673
|
-
| HTMLElement
|
|
674
|
-
| null
|
|
675
|
-
| (HTMLElement | null)[]
|
|
664
|
+
HTMLElement | null | (HTMLElement | null)[]
|
|
676
665
|
)[];
|
|
677
666
|
|
|
678
667
|
/**
|
|
@@ -760,8 +749,7 @@ export declare const Container: ForwardRefExoticComponent<
|
|
|
760
749
|
* @public
|
|
761
750
|
*/
|
|
762
751
|
export declare interface ContainerProps
|
|
763
|
-
extends BoxProps,
|
|
764
|
-
ResponsiveWidthProps {}
|
|
752
|
+
extends BoxProps, ResponsiveWidthProps {}
|
|
765
753
|
|
|
766
754
|
/**
|
|
767
755
|
* @internal
|
|
@@ -824,8 +812,7 @@ export declare type DialogPosition = "absolute" | "fixed";
|
|
|
824
812
|
* @public
|
|
825
813
|
*/
|
|
826
814
|
export declare interface DialogProps
|
|
827
|
-
extends ResponsivePaddingProps,
|
|
828
|
-
ResponsiveWidthProps {
|
|
815
|
+
extends ResponsivePaddingProps, ResponsiveWidthProps {
|
|
829
816
|
/**
|
|
830
817
|
* @beta
|
|
831
818
|
*/
|
|
@@ -991,20 +978,13 @@ export declare const Flex: ForwardRefExoticComponent<
|
|
|
991
978
|
* @public
|
|
992
979
|
*/
|
|
993
980
|
export declare type FlexAlign =
|
|
994
|
-
| "flex-
|
|
995
|
-
| "flex-end"
|
|
996
|
-
| "center"
|
|
997
|
-
| "baseline"
|
|
998
|
-
| "stretch";
|
|
981
|
+
"flex-start" | "flex-end" | "center" | "baseline" | "stretch";
|
|
999
982
|
|
|
1000
983
|
/**
|
|
1001
984
|
* @public
|
|
1002
985
|
*/
|
|
1003
986
|
export declare type FlexDirection =
|
|
1004
|
-
| "row"
|
|
1005
|
-
| "row-reverse"
|
|
1006
|
-
| "column"
|
|
1007
|
-
| "column-reverse";
|
|
987
|
+
"row" | "row-reverse" | "column" | "column-reverse";
|
|
1008
988
|
|
|
1009
989
|
/**
|
|
1010
990
|
* @public
|
|
@@ -1021,7 +1001,8 @@ export declare type FlexJustify =
|
|
|
1021
1001
|
* @public
|
|
1022
1002
|
*/
|
|
1023
1003
|
export declare interface FlexProps
|
|
1024
|
-
extends
|
|
1004
|
+
extends
|
|
1005
|
+
Omit<BoxProps, "display">,
|
|
1025
1006
|
ResponsiveFlexProps,
|
|
1026
1007
|
ResponsiveFlexItemProps {
|
|
1027
1008
|
gap?: number | number[];
|
|
@@ -1093,10 +1074,7 @@ export declare type GridAutoCols = "auto" | "min" | "max" | "fr";
|
|
|
1093
1074
|
* @public
|
|
1094
1075
|
*/
|
|
1095
1076
|
export declare type GridAutoFlow =
|
|
1096
|
-
| "row"
|
|
1097
|
-
| "column"
|
|
1098
|
-
| "row dense"
|
|
1099
|
-
| "column dense";
|
|
1077
|
+
"row" | "column" | "row dense" | "column dense";
|
|
1100
1078
|
|
|
1101
1079
|
/**
|
|
1102
1080
|
* @public
|
|
@@ -1137,8 +1115,7 @@ export declare type GridItemRowStart = "auto" | number;
|
|
|
1137
1115
|
* @public
|
|
1138
1116
|
*/
|
|
1139
1117
|
export declare interface GridProps
|
|
1140
|
-
extends Omit<BoxProps, "display">,
|
|
1141
|
-
ResponsiveGridProps {}
|
|
1118
|
+
extends Omit<BoxProps, "display">, ResponsiveGridProps {}
|
|
1142
1119
|
|
|
1143
1120
|
/**
|
|
1144
1121
|
* @internal
|
|
@@ -1573,8 +1550,7 @@ export declare const MenuItem: ForwardRefExoticComponent<
|
|
|
1573
1550
|
* @public
|
|
1574
1551
|
*/
|
|
1575
1552
|
export declare interface MenuItemProps
|
|
1576
|
-
extends ResponsivePaddingProps,
|
|
1577
|
-
ResponsiveRadiusProps {
|
|
1553
|
+
extends ResponsivePaddingProps, ResponsiveRadiusProps {
|
|
1578
1554
|
as?: React.ElementType | keyof React.JSX.IntrinsicElements;
|
|
1579
1555
|
fontSize?: number | number[];
|
|
1580
1556
|
hotkeys?: string[];
|
|
@@ -1665,9 +1641,7 @@ export declare type PopoverMargins = [number, number, number, number];
|
|
|
1665
1641
|
|
|
1666
1642
|
/** @public */
|
|
1667
1643
|
export declare interface PopoverProps
|
|
1668
|
-
extends Omit<LayerProps, "as">,
|
|
1669
|
-
ResponsiveRadiusProps,
|
|
1670
|
-
ResponsiveShadowProps {
|
|
1644
|
+
extends Omit<LayerProps, "as">, ResponsiveRadiusProps, ResponsiveShadowProps {
|
|
1671
1645
|
/** @beta */
|
|
1672
1646
|
__unstable_margins?: PopoverMargins;
|
|
1673
1647
|
/**
|
|
@@ -1924,7 +1898,8 @@ export declare interface ResponsiveFontSizeStyleProps {
|
|
|
1924
1898
|
* @internal
|
|
1925
1899
|
*/
|
|
1926
1900
|
export declare interface ResponsiveFontStyleProps
|
|
1927
|
-
extends
|
|
1901
|
+
extends
|
|
1902
|
+
FontWeightStyleProps,
|
|
1928
1903
|
ResponsiveFontSizeStyleProps,
|
|
1929
1904
|
ResponsiveTextAlignStyleProps {
|
|
1930
1905
|
$accent?: boolean;
|
|
@@ -2130,8 +2105,7 @@ export declare const Skeleton: ForwardRefExoticComponent<
|
|
|
2130
2105
|
* @beta
|
|
2131
2106
|
*/
|
|
2132
2107
|
export declare interface SkeletonProps
|
|
2133
|
-
extends ResponsiveRadiusProps,
|
|
2134
|
-
Omit<BoxProps, "children"> {
|
|
2108
|
+
extends ResponsiveRadiusProps, Omit<BoxProps, "children"> {
|
|
2135
2109
|
animated?: boolean;
|
|
2136
2110
|
delay?: number;
|
|
2137
2111
|
}
|
|
@@ -2249,8 +2223,10 @@ export declare const TabList: ForwardRefExoticComponent<
|
|
|
2249
2223
|
/**
|
|
2250
2224
|
* @public
|
|
2251
2225
|
*/
|
|
2252
|
-
export declare interface TabListProps
|
|
2253
|
-
|
|
2226
|
+
export declare interface TabListProps extends Omit<
|
|
2227
|
+
InlineProps,
|
|
2228
|
+
"as" | "height"
|
|
2229
|
+
> {
|
|
2254
2230
|
children: Array<React.JSX.Element | null | undefined | false>;
|
|
2255
2231
|
}
|
|
2256
2232
|
|
|
@@ -2310,11 +2286,7 @@ export { Text_2 as Text };
|
|
|
2310
2286
|
* @public
|
|
2311
2287
|
*/
|
|
2312
2288
|
export declare type TextAlign =
|
|
2313
|
-
| "
|
|
2314
|
-
| "right"
|
|
2315
|
-
| "center"
|
|
2316
|
-
| "justify"
|
|
2317
|
-
| "initial";
|
|
2289
|
+
"left" | "right" | "center" | "justify" | "initial";
|
|
2318
2290
|
|
|
2319
2291
|
/**
|
|
2320
2292
|
* A multiline text input.
|
|
@@ -2732,8 +2704,10 @@ export declare namespace ToastProvider {
|
|
|
2732
2704
|
/**
|
|
2733
2705
|
* @public
|
|
2734
2706
|
*/
|
|
2735
|
-
export declare interface ToastProviderProps
|
|
2736
|
-
|
|
2707
|
+
export declare interface ToastProviderProps extends Omit<
|
|
2708
|
+
ToastLayerProps,
|
|
2709
|
+
"children"
|
|
2710
|
+
> {
|
|
2737
2711
|
children?: React.ReactNode;
|
|
2738
2712
|
zOffset?: number | number[];
|
|
2739
2713
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -78,11 +78,7 @@ import { ThemeStyles } from "@sanity/ui/theme";
|
|
|
78
78
|
|
|
79
79
|
/** @beta */
|
|
80
80
|
export declare type ArrayPropPrimitive =
|
|
81
|
-
|
|
|
82
|
-
| number
|
|
83
|
-
| boolean
|
|
84
|
-
| undefined
|
|
85
|
-
| null;
|
|
81
|
+
string | number | boolean | undefined | null;
|
|
86
82
|
|
|
87
83
|
/** @internal */
|
|
88
84
|
export declare const Arrow: ForwardRefExoticComponent<
|
|
@@ -470,11 +466,7 @@ export declare const Box: ForwardRefExoticComponent<
|
|
|
470
466
|
* @public
|
|
471
467
|
*/
|
|
472
468
|
export declare type BoxDisplay =
|
|
473
|
-
| "
|
|
474
|
-
| "block"
|
|
475
|
-
| "grid"
|
|
476
|
-
| "flex"
|
|
477
|
-
| "inline-block";
|
|
469
|
+
"none" | "block" | "grid" | "flex" | "inline-block";
|
|
478
470
|
|
|
479
471
|
/**
|
|
480
472
|
* @public
|
|
@@ -490,7 +482,8 @@ export declare type BoxOverflow = "visible" | "hidden" | "auto";
|
|
|
490
482
|
* @public
|
|
491
483
|
*/
|
|
492
484
|
export declare interface BoxProps
|
|
493
|
-
extends
|
|
485
|
+
extends
|
|
486
|
+
ResponsiveFlexItemProps,
|
|
494
487
|
ResponsiveBoxProps,
|
|
495
488
|
ResponsiveGridItemProps,
|
|
496
489
|
ResponsiveMarginProps,
|
|
@@ -548,8 +541,7 @@ export declare type ButtonMode = ThemeColorButtonModeKey_2;
|
|
|
548
541
|
* @public
|
|
549
542
|
*/
|
|
550
543
|
export declare interface ButtonProps
|
|
551
|
-
extends ResponsivePaddingProps,
|
|
552
|
-
ResponsiveRadiusProps {
|
|
544
|
+
extends ResponsivePaddingProps, ResponsiveRadiusProps {
|
|
553
545
|
as?: React.ElementType | keyof React.JSX.IntrinsicElements;
|
|
554
546
|
fontSize?: number | number[];
|
|
555
547
|
mode?: ButtonMode;
|
|
@@ -601,7 +593,8 @@ export declare const Card: ForwardRefExoticComponent<
|
|
|
601
593
|
* @public
|
|
602
594
|
*/
|
|
603
595
|
export declare interface CardProps
|
|
604
|
-
extends
|
|
596
|
+
extends
|
|
597
|
+
BoxProps,
|
|
605
598
|
ResponsiveBorderProps,
|
|
606
599
|
ResponsiveRadiusProps,
|
|
607
600
|
ResponsiveShadowProps {
|
|
@@ -661,18 +654,14 @@ export declare interface CheckboxProps {
|
|
|
661
654
|
* @public
|
|
662
655
|
*/
|
|
663
656
|
export declare type ClickOutsideElements = (
|
|
664
|
-
| HTMLElement
|
|
665
|
-
| null
|
|
666
|
-
| (HTMLElement | null)[]
|
|
657
|
+
HTMLElement | null | (HTMLElement | null)[]
|
|
667
658
|
)[];
|
|
668
659
|
|
|
669
660
|
/**
|
|
670
661
|
* @public
|
|
671
662
|
*/
|
|
672
663
|
export declare type ClickOutsideEventElements = (
|
|
673
|
-
| HTMLElement
|
|
674
|
-
| null
|
|
675
|
-
| (HTMLElement | null)[]
|
|
664
|
+
HTMLElement | null | (HTMLElement | null)[]
|
|
676
665
|
)[];
|
|
677
666
|
|
|
678
667
|
/**
|
|
@@ -760,8 +749,7 @@ export declare const Container: ForwardRefExoticComponent<
|
|
|
760
749
|
* @public
|
|
761
750
|
*/
|
|
762
751
|
export declare interface ContainerProps
|
|
763
|
-
extends BoxProps,
|
|
764
|
-
ResponsiveWidthProps {}
|
|
752
|
+
extends BoxProps, ResponsiveWidthProps {}
|
|
765
753
|
|
|
766
754
|
/**
|
|
767
755
|
* @internal
|
|
@@ -824,8 +812,7 @@ export declare type DialogPosition = "absolute" | "fixed";
|
|
|
824
812
|
* @public
|
|
825
813
|
*/
|
|
826
814
|
export declare interface DialogProps
|
|
827
|
-
extends ResponsivePaddingProps,
|
|
828
|
-
ResponsiveWidthProps {
|
|
815
|
+
extends ResponsivePaddingProps, ResponsiveWidthProps {
|
|
829
816
|
/**
|
|
830
817
|
* @beta
|
|
831
818
|
*/
|
|
@@ -991,20 +978,13 @@ export declare const Flex: ForwardRefExoticComponent<
|
|
|
991
978
|
* @public
|
|
992
979
|
*/
|
|
993
980
|
export declare type FlexAlign =
|
|
994
|
-
| "flex-
|
|
995
|
-
| "flex-end"
|
|
996
|
-
| "center"
|
|
997
|
-
| "baseline"
|
|
998
|
-
| "stretch";
|
|
981
|
+
"flex-start" | "flex-end" | "center" | "baseline" | "stretch";
|
|
999
982
|
|
|
1000
983
|
/**
|
|
1001
984
|
* @public
|
|
1002
985
|
*/
|
|
1003
986
|
export declare type FlexDirection =
|
|
1004
|
-
| "row"
|
|
1005
|
-
| "row-reverse"
|
|
1006
|
-
| "column"
|
|
1007
|
-
| "column-reverse";
|
|
987
|
+
"row" | "row-reverse" | "column" | "column-reverse";
|
|
1008
988
|
|
|
1009
989
|
/**
|
|
1010
990
|
* @public
|
|
@@ -1021,7 +1001,8 @@ export declare type FlexJustify =
|
|
|
1021
1001
|
* @public
|
|
1022
1002
|
*/
|
|
1023
1003
|
export declare interface FlexProps
|
|
1024
|
-
extends
|
|
1004
|
+
extends
|
|
1005
|
+
Omit<BoxProps, "display">,
|
|
1025
1006
|
ResponsiveFlexProps,
|
|
1026
1007
|
ResponsiveFlexItemProps {
|
|
1027
1008
|
gap?: number | number[];
|
|
@@ -1093,10 +1074,7 @@ export declare type GridAutoCols = "auto" | "min" | "max" | "fr";
|
|
|
1093
1074
|
* @public
|
|
1094
1075
|
*/
|
|
1095
1076
|
export declare type GridAutoFlow =
|
|
1096
|
-
| "row"
|
|
1097
|
-
| "column"
|
|
1098
|
-
| "row dense"
|
|
1099
|
-
| "column dense";
|
|
1077
|
+
"row" | "column" | "row dense" | "column dense";
|
|
1100
1078
|
|
|
1101
1079
|
/**
|
|
1102
1080
|
* @public
|
|
@@ -1137,8 +1115,7 @@ export declare type GridItemRowStart = "auto" | number;
|
|
|
1137
1115
|
* @public
|
|
1138
1116
|
*/
|
|
1139
1117
|
export declare interface GridProps
|
|
1140
|
-
extends Omit<BoxProps, "display">,
|
|
1141
|
-
ResponsiveGridProps {}
|
|
1118
|
+
extends Omit<BoxProps, "display">, ResponsiveGridProps {}
|
|
1142
1119
|
|
|
1143
1120
|
/**
|
|
1144
1121
|
* @internal
|
|
@@ -1573,8 +1550,7 @@ export declare const MenuItem: ForwardRefExoticComponent<
|
|
|
1573
1550
|
* @public
|
|
1574
1551
|
*/
|
|
1575
1552
|
export declare interface MenuItemProps
|
|
1576
|
-
extends ResponsivePaddingProps,
|
|
1577
|
-
ResponsiveRadiusProps {
|
|
1553
|
+
extends ResponsivePaddingProps, ResponsiveRadiusProps {
|
|
1578
1554
|
as?: React.ElementType | keyof React.JSX.IntrinsicElements;
|
|
1579
1555
|
fontSize?: number | number[];
|
|
1580
1556
|
hotkeys?: string[];
|
|
@@ -1665,9 +1641,7 @@ export declare type PopoverMargins = [number, number, number, number];
|
|
|
1665
1641
|
|
|
1666
1642
|
/** @public */
|
|
1667
1643
|
export declare interface PopoverProps
|
|
1668
|
-
extends Omit<LayerProps, "as">,
|
|
1669
|
-
ResponsiveRadiusProps,
|
|
1670
|
-
ResponsiveShadowProps {
|
|
1644
|
+
extends Omit<LayerProps, "as">, ResponsiveRadiusProps, ResponsiveShadowProps {
|
|
1671
1645
|
/** @beta */
|
|
1672
1646
|
__unstable_margins?: PopoverMargins;
|
|
1673
1647
|
/**
|
|
@@ -1924,7 +1898,8 @@ export declare interface ResponsiveFontSizeStyleProps {
|
|
|
1924
1898
|
* @internal
|
|
1925
1899
|
*/
|
|
1926
1900
|
export declare interface ResponsiveFontStyleProps
|
|
1927
|
-
extends
|
|
1901
|
+
extends
|
|
1902
|
+
FontWeightStyleProps,
|
|
1928
1903
|
ResponsiveFontSizeStyleProps,
|
|
1929
1904
|
ResponsiveTextAlignStyleProps {
|
|
1930
1905
|
$accent?: boolean;
|
|
@@ -2130,8 +2105,7 @@ export declare const Skeleton: ForwardRefExoticComponent<
|
|
|
2130
2105
|
* @beta
|
|
2131
2106
|
*/
|
|
2132
2107
|
export declare interface SkeletonProps
|
|
2133
|
-
extends ResponsiveRadiusProps,
|
|
2134
|
-
Omit<BoxProps, "children"> {
|
|
2108
|
+
extends ResponsiveRadiusProps, Omit<BoxProps, "children"> {
|
|
2135
2109
|
animated?: boolean;
|
|
2136
2110
|
delay?: number;
|
|
2137
2111
|
}
|
|
@@ -2249,8 +2223,10 @@ export declare const TabList: ForwardRefExoticComponent<
|
|
|
2249
2223
|
/**
|
|
2250
2224
|
* @public
|
|
2251
2225
|
*/
|
|
2252
|
-
export declare interface TabListProps
|
|
2253
|
-
|
|
2226
|
+
export declare interface TabListProps extends Omit<
|
|
2227
|
+
InlineProps,
|
|
2228
|
+
"as" | "height"
|
|
2229
|
+
> {
|
|
2254
2230
|
children: Array<React.JSX.Element | null | undefined | false>;
|
|
2255
2231
|
}
|
|
2256
2232
|
|
|
@@ -2310,11 +2286,7 @@ export { Text_2 as Text };
|
|
|
2310
2286
|
* @public
|
|
2311
2287
|
*/
|
|
2312
2288
|
export declare type TextAlign =
|
|
2313
|
-
| "
|
|
2314
|
-
| "right"
|
|
2315
|
-
| "center"
|
|
2316
|
-
| "justify"
|
|
2317
|
-
| "initial";
|
|
2289
|
+
"left" | "right" | "center" | "justify" | "initial";
|
|
2318
2290
|
|
|
2319
2291
|
/**
|
|
2320
2292
|
* A multiline text input.
|
|
@@ -2732,8 +2704,10 @@ export declare namespace ToastProvider {
|
|
|
2732
2704
|
/**
|
|
2733
2705
|
* @public
|
|
2734
2706
|
*/
|
|
2735
|
-
export declare interface ToastProviderProps
|
|
2736
|
-
|
|
2707
|
+
export declare interface ToastProviderProps extends Omit<
|
|
2708
|
+
ToastLayerProps,
|
|
2709
|
+
"children"
|
|
2710
|
+
> {
|
|
2737
2711
|
children?: React.ReactNode;
|
|
2738
2712
|
zOffset?: number | number[];
|
|
2739
2713
|
}
|