@foxford/ui 2.103.0 → 2.104.0-beta-e7d9f60-20260414
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/components/AddElement/AddElement.js +1 -1
- package/components/AddElement/AddElement.js.map +1 -1
- package/components/AddElement/AddElement.mjs +1 -1
- package/components/AddElement/AddElement.mjs.map +1 -1
- package/components/Anchor/Anchor.js +1 -1
- package/components/Anchor/Anchor.js.map +1 -1
- package/components/Anchor/Anchor.mjs +1 -1
- package/components/Anchor/Anchor.mjs.map +1 -1
- package/components/DialogComponent/Header.js +1 -1
- package/components/DialogComponent/Header.js.map +1 -1
- package/components/DialogComponent/Header.mjs +1 -1
- package/components/DialogComponent/Header.mjs.map +1 -1
- package/components/Dropdown/Dropdown.js +1 -1
- package/components/Dropdown/Dropdown.js.map +1 -1
- package/components/Dropdown/Dropdown.mjs +1 -1
- package/components/Dropdown/Dropdown.mjs.map +1 -1
- package/components/Dropdown/DropdownListItem.js +1 -1
- package/components/Dropdown/DropdownListItem.js.map +1 -1
- package/components/Dropdown/DropdownListItem.mjs +1 -1
- package/components/Dropdown/DropdownListItem.mjs.map +1 -1
- package/components/Dropdown/DropdownMenuMultiple.js +1 -1
- package/components/Dropdown/DropdownMenuMultiple.js.map +1 -1
- package/components/Dropdown/DropdownMenuMultiple.mjs +1 -1
- package/components/Dropdown/DropdownMenuMultiple.mjs.map +1 -1
- package/components/Dropdown/sizes.js +1 -1
- package/components/Dropdown/sizes.js.map +1 -1
- package/components/Dropdown/sizes.mjs +1 -1
- package/components/Dropdown/sizes.mjs.map +1 -1
- package/components/FormLabel/FormLabel.js +1 -1
- package/components/FormLabel/FormLabel.js.map +1 -1
- package/components/FormLabel/FormLabel.mjs +1 -1
- package/components/FormLabel/FormLabel.mjs.map +1 -1
- package/components/FormLabel/constants.js +1 -1
- package/components/FormLabel/constants.js.map +1 -1
- package/components/FormLabel/constants.mjs +1 -1
- package/components/FormLabel/constants.mjs.map +1 -1
- package/components/IconButton/IconButton.js +1 -1
- package/components/IconButton/IconButton.js.map +1 -1
- package/components/IconButton/IconButton.mjs +1 -1
- package/components/IconButton/IconButton.mjs.map +1 -1
- package/components/IconButton/sizes.js +1 -1
- package/components/IconButton/sizes.js.map +1 -1
- package/components/IconButton/sizes.mjs +1 -1
- package/components/IconButton/sizes.mjs.map +1 -1
- package/components/ListItem/ListItem.js +1 -1
- package/components/ListItem/ListItem.js.map +1 -1
- package/components/ListItem/ListItem.mjs +1 -1
- package/components/ListItem/ListItem.mjs.map +1 -1
- package/components/ListItem/sizes.js +2 -0
- package/components/ListItem/sizes.js.map +1 -0
- package/components/ListItem/sizes.mjs +2 -0
- package/components/ListItem/sizes.mjs.map +1 -0
- package/components/ListItem/style.js +1 -1
- package/components/ListItem/style.js.map +1 -1
- package/components/ListItem/style.mjs +1 -1
- package/components/ListItem/style.mjs.map +1 -1
- package/components/MenuDivider/MenuDivider.js +1 -1
- package/components/MenuDivider/MenuDivider.js.map +1 -1
- package/components/MenuDivider/MenuDivider.mjs +1 -1
- package/components/MenuDivider/MenuDivider.mjs.map +1 -1
- package/components/Notification/Notification.js +1 -1
- package/components/Notification/Notification.js.map +1 -1
- package/components/Notification/Notification.mjs +1 -1
- package/components/Notification/Notification.mjs.map +1 -1
- package/components/Slot/Slot.js +1 -1
- package/components/Slot/Slot.js.map +1 -1
- package/components/Slot/Slot.mjs +1 -1
- package/components/Slot/Slot.mjs.map +1 -1
- package/dts/index.d.ts +426 -260
- package/hocs/withMergedProps.js.map +1 -1
- package/hocs/withMergedProps.mjs.map +1 -1
- package/hooks/useMergedProps.js +1 -1
- package/hooks/useMergedProps.js.map +1 -1
- package/hooks/useMergedProps.mjs +1 -1
- package/hooks/useMergedProps.mjs.map +1 -1
- package/package.json +2 -2
- package/shared/utils/createPolymorphicComponentWithRef.js +2 -0
- package/shared/utils/createPolymorphicComponentWithRef.js.map +1 -0
- package/shared/utils/createPolymorphicComponentWithRef.mjs +2 -0
- package/shared/utils/createPolymorphicComponentWithRef.mjs.map +1 -0
- package/components/ListItem/constants.js +0 -2
- package/components/ListItem/constants.js.map +0 -1
- package/components/ListItem/constants.mjs +0 -2
- package/components/ListItem/constants.mjs.map +0 -1
- package/shared/utils/polymorphic.js +0 -2
- package/shared/utils/polymorphic.js.map +0 -1
- package/shared/utils/polymorphic.mjs +0 -2
- package/shared/utils/polymorphic.mjs.map +0 -1
package/dts/index.d.ts
CHANGED
|
@@ -882,8 +882,8 @@ type CSSColor = RGB | RGBA | HEX | CSSGlobalValue | 'currentcolor' | 'transparen
|
|
|
882
882
|
type CSSBorderStyle = CSSGlobalValue | 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset';
|
|
883
883
|
type CSSVerticalAlign = CSSGlobalValue | 'baseline' | 'sub' | 'super' | 'text-top' | 'text-bottom' | 'middle' | 'top' | 'bottom';
|
|
884
884
|
type CSSFontWeight = CSSGlobalValue | 'normal' | 'bold' | 'lighter' | 'bolder' | number;
|
|
885
|
-
type Size$
|
|
886
|
-
type SizeValue$1 = Size$
|
|
885
|
+
type Size$q = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
886
|
+
type SizeValue$1 = Size$q | CSSGlobalValue | number;
|
|
887
887
|
type Breakpoint$1 = 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL';
|
|
888
888
|
type Orientation = 'landscape' | 'portrait';
|
|
889
889
|
type Color = keyof typeof ColorNames | CSSColor;
|
|
@@ -897,6 +897,8 @@ type WithThemePreset<T> = T & {
|
|
|
897
897
|
preset: ThemePreset;
|
|
898
898
|
};
|
|
899
899
|
type DomTarget<T extends HTMLElement = HTMLElement> = Nullable<T> | React.MutableRefObject<Nullable<T>>;
|
|
900
|
+
type PolymorphicRef<C extends React.ElementType> = React.ComponentPropsWithRef<C>['ref'];
|
|
901
|
+
type ComponentElementType = React.ElementType;
|
|
900
902
|
|
|
901
903
|
interface BaseProps {
|
|
902
904
|
preset?: ThemePreset;
|
|
@@ -943,13 +945,19 @@ interface ToolbarControl<T = Record<string, unknown>> {
|
|
|
943
945
|
type PlaygroundToolbar<T = Record<string, unknown>> = Record<string, ToolbarControl<T>[] | ToolbarControl<T>[][]>;
|
|
944
946
|
type WrappedComponentProps = {
|
|
945
947
|
preset?: ThemePreset;
|
|
946
|
-
sizes?: Partial<Record<Size$
|
|
948
|
+
sizes?: Partial<Record<Size$q, React.CSSProperties>>;
|
|
947
949
|
palette?: Partial<Record<ColorPaletteKey, Color>>;
|
|
948
950
|
};
|
|
949
951
|
type WithMergedPropsOptions<T extends WrappedComponentProps> = {
|
|
950
952
|
displayName: string;
|
|
951
953
|
sizes: Record<KeysOfUnion<T['sizes']>, React.CSSProperties> | ((props: WithThemePreset<T>) => Record<KeysOfUnion<T['sizes']>, React.CSSProperties>);
|
|
952
954
|
};
|
|
955
|
+
type PolymorphicProps<C extends React.ElementType, P> = {
|
|
956
|
+
component?: C;
|
|
957
|
+
} & P & Omit<React.ComponentPropsWithoutRef<C>, keyof P | 'component'>;
|
|
958
|
+
type PolymorphicPropsWithRef<C extends React.ElementType, P> = PolymorphicProps<C, P> & {
|
|
959
|
+
ref?: PolymorphicRef<C>;
|
|
960
|
+
};
|
|
953
961
|
|
|
954
962
|
/**
|
|
955
963
|
* Converts HEX color code to RGB(A) string
|
|
@@ -992,21 +1000,21 @@ declare const adultDarkTheme: DefaultTheme;
|
|
|
992
1000
|
/**
|
|
993
1001
|
* Value for breakpoint
|
|
994
1002
|
*/
|
|
995
|
-
type PossibleValues = number | Size$
|
|
1003
|
+
type PossibleValues = number | Size$q | 'auto' | 'initial' | 'inherit' | boolean;
|
|
996
1004
|
type PropsProperties = 'size' | 'fontSize' | 'height' | 'width' | 'top' | 'right' | 'bottom' | 'left' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'fluid';
|
|
997
1005
|
type CalcProperty = (_size: number | 'auto' | 'initial' | 'inherit' | boolean, _sizing?: null | string) => FlattenSimpleInterpolation | null;
|
|
998
1006
|
type CssProperty = string | CalcProperty;
|
|
999
1007
|
type ResponsiveKeys = '' | 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
1000
1008
|
type ResponsiveNamedProperty<T extends PropsProperties, V extends PossibleValues = PossibleValues> = Partial<Record<`${T}${ResponsiveKeys}`, V>>;
|
|
1001
|
-
type ResponsiveProperty<V = number | Size$
|
|
1002
|
-
declare const property: (value: PossibleValues, cssProperty?: CssProperty, sizing?: null | string, sizes?: Record<Size$
|
|
1009
|
+
type ResponsiveProperty<V = number | Size$q> = V | [desktop: V, tablet: V, mobile: V] | [xl: V, l: V, m: V, s: V, xs: V, xxs: V];
|
|
1010
|
+
declare const property: (value: PossibleValues, cssProperty?: CssProperty, sizing?: null | string, sizes?: Record<Size$q, number>) => () => () => FlattenSimpleInterpolation | null;
|
|
1003
1011
|
interface ResponsiveNamedPropertyPayload<T extends PropsProperties> {
|
|
1004
1012
|
sizes: ResponsiveNamedProperty<T>;
|
|
1005
1013
|
cssProperty: CssProperty;
|
|
1006
1014
|
sizing?: null | string;
|
|
1007
1015
|
customSizeHandler?: (_value: PossibleValues) => PossibleValues;
|
|
1008
1016
|
sort?: (_a: string, _b: string) => number;
|
|
1009
|
-
predefinedSizes?: Record<Size$
|
|
1017
|
+
predefinedSizes?: Record<Size$q, number>;
|
|
1010
1018
|
}
|
|
1011
1019
|
/**
|
|
1012
1020
|
* Миксин для генерации media запросов
|
|
@@ -1107,7 +1115,7 @@ interface ExpandButtonProps extends React.ComponentPropsWithoutRef<'button'> {
|
|
|
1107
1115
|
/** Кастомные цвета */
|
|
1108
1116
|
palette?: Partial<Record<keyof ExpandButtonPalette, Color>>;
|
|
1109
1117
|
}
|
|
1110
|
-
interface TextProps extends ResponsiveSizeProps<Size$
|
|
1118
|
+
interface TextProps extends ResponsiveSizeProps<Size$q, SizeValue$1>, ResponsiveMarginProps,
|
|
1111
1119
|
/** @deprecated */
|
|
1112
1120
|
DisplayProperty, ColorProperty, Omit<React.HTMLAttributes<HTMLElement>, 'color'>, Omit<React.BlockquoteHTMLAttributes<HTMLElement>, 'color'>, Omit<React.LabelHTMLAttributes<HTMLElement>, 'color'> {
|
|
1113
1121
|
/** Применение присета стилей и размеров */
|
|
@@ -2876,11 +2884,11 @@ type IconISOCode =
|
|
|
2876
2884
|
| 'af'
|
|
2877
2885
|
|
|
2878
2886
|
type SizeIcon = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
2879
|
-
type Size$
|
|
2880
|
-
type Margin$
|
|
2887
|
+
type Size$p = SizeIcon | number | 'inherit';
|
|
2888
|
+
type Margin$g = number | string;
|
|
2881
2889
|
type IconNameDefault = 'book' | 'blackBoard' | 'burger' | 'eye' | 'email' | 'sort' | 'unsort' | 'person' | 'diamond' | 'diamondFilled' | 'infoInverse' | 'list' | 'login' | 'logout' | 'fire' | 'camps' | 'cart' | 'clock' | 'clockFilled' | 'courses' | 'discount' | 'externat' | 'headphones' | 'page' | 'priceTag' | 'phone' | 'prof' | 'star' | 'settings' | 'student' | 'target' | 'textbook' | 'trophy' | 'message' | 'wallet' | 'edit' | 'copy' | 'print' | 'objective' | 'present' | 'coins' | 'calendar' | 'calendar_simple' | 'chevronDown' | 'chevronUp' | 'chevronRight' | 'chevronLeft' | 'cross' | 'dialog' | 'dropDownArrow' | 'externalLink' | 'file' | 'fileBordered' | 'lessons' | 'pencil' | 'phoneNoFill' | 'radioChecked' | 'radioNotChecked' | 'search' | 'tasks' | 'tinyCross' | 'sharpCross' | 'plus' | 'plusThin' | 'play' | 'reload' | 'checkCircle' | 'info' | 'check' | 'home' | 'questionFilled' | 'document' | 'cancel' | 'playPause' | 'video';
|
|
2882
2890
|
type IconName = IconName$1 | IconNameDefault | IconISOCode;
|
|
2883
|
-
interface IconBaseProps extends ResponsiveSizeProps<SizeIcon, Size$
|
|
2891
|
+
interface IconBaseProps extends ResponsiveSizeProps<SizeIcon, Size$p>, ResponsiveMarginProps {
|
|
2884
2892
|
/**
|
|
2885
2893
|
* Версия компонента: v3 ("brand") или v2 ("default").
|
|
2886
2894
|
*
|
|
@@ -2917,37 +2925,37 @@ interface IconBaseProps extends ResponsiveSizeProps<SizeIcon, Size$o>, Responsiv
|
|
|
2917
2925
|
*
|
|
2918
2926
|
* @general
|
|
2919
2927
|
* @default 'inherit' */
|
|
2920
|
-
size?: Size$
|
|
2928
|
+
size?: Size$p | [DESKTOP: Size$p, TABLET: Size$p, MOBILE: Size$p] | [XL: Size$p, L: Size$p, M: Size$p, S: Size$p, XS: Size$p, XXS: Size$p];
|
|
2921
2929
|
/**
|
|
2922
2930
|
* Размер для XXS брейкпоинта.
|
|
2923
2931
|
*
|
|
2924
2932
|
* @default undefined */
|
|
2925
|
-
sizeXXS?: Size$
|
|
2933
|
+
sizeXXS?: Size$p;
|
|
2926
2934
|
/**
|
|
2927
2935
|
* Размер для XS брейкпоинта.
|
|
2928
2936
|
*
|
|
2929
2937
|
* @default undefined */
|
|
2930
|
-
sizeXS?: Size$
|
|
2938
|
+
sizeXS?: Size$p;
|
|
2931
2939
|
/**
|
|
2932
2940
|
* Размер для S брейкпоинта.
|
|
2933
2941
|
*
|
|
2934
2942
|
* @default undefined */
|
|
2935
|
-
sizeS?: Size$
|
|
2943
|
+
sizeS?: Size$p;
|
|
2936
2944
|
/**
|
|
2937
2945
|
* Размер для M брейкпоинта.
|
|
2938
2946
|
*
|
|
2939
2947
|
* @default undefined */
|
|
2940
|
-
sizeM?: Size$
|
|
2948
|
+
sizeM?: Size$p;
|
|
2941
2949
|
/**
|
|
2942
2950
|
* Размер для L брейкпоинта.
|
|
2943
2951
|
*
|
|
2944
2952
|
* @default undefined */
|
|
2945
|
-
sizeL?: Size$
|
|
2953
|
+
sizeL?: Size$p;
|
|
2946
2954
|
/**
|
|
2947
2955
|
* Размер для XL брейкпоинта.
|
|
2948
2956
|
*
|
|
2949
2957
|
* @default undefined */
|
|
2950
|
-
sizeXL?: Size$
|
|
2958
|
+
sizeXL?: Size$p;
|
|
2951
2959
|
/**
|
|
2952
2960
|
* Модификация размеров.
|
|
2953
2961
|
*
|
|
@@ -2961,37 +2969,37 @@ interface IconBaseProps extends ResponsiveSizeProps<SizeIcon, Size$o>, Responsiv
|
|
|
2961
2969
|
*
|
|
2962
2970
|
* @general
|
|
2963
2971
|
* @default undefined */
|
|
2964
|
-
margin?: Margin$
|
|
2972
|
+
margin?: Margin$g | [DESKTOP: Margin$g, TABLET: Margin$g, MOBILE: Margin$g] | [XL: Margin$g, L: Margin$g, M: Margin$g, S: Margin$g, XS: Margin$g, XXS: Margin$g];
|
|
2965
2973
|
/**
|
|
2966
2974
|
* Отступ для XXS брейкпоинта.
|
|
2967
2975
|
*
|
|
2968
2976
|
* @default undefined */
|
|
2969
|
-
marginXXS?: Margin$
|
|
2977
|
+
marginXXS?: Margin$g;
|
|
2970
2978
|
/**
|
|
2971
2979
|
* Отступ для XS брейкпоинта.
|
|
2972
2980
|
*
|
|
2973
2981
|
* @default undefined */
|
|
2974
|
-
marginXS?: Margin$
|
|
2982
|
+
marginXS?: Margin$g;
|
|
2975
2983
|
/**
|
|
2976
2984
|
* Отступ для S брейкпоинта.
|
|
2977
2985
|
*
|
|
2978
2986
|
* @default undefined */
|
|
2979
|
-
marginS?: Margin$
|
|
2987
|
+
marginS?: Margin$g;
|
|
2980
2988
|
/**
|
|
2981
2989
|
* Отступ для M брейкпоинта.
|
|
2982
2990
|
*
|
|
2983
2991
|
* @default undefined */
|
|
2984
|
-
marginM?: Margin$
|
|
2992
|
+
marginM?: Margin$g;
|
|
2985
2993
|
/**
|
|
2986
2994
|
* Отступ для L брейкпоинта.
|
|
2987
2995
|
*
|
|
2988
2996
|
* @default undefined */
|
|
2989
|
-
marginL?: Margin$
|
|
2997
|
+
marginL?: Margin$g;
|
|
2990
2998
|
/**
|
|
2991
2999
|
* Отступ для XL брейкпоинта.
|
|
2992
3000
|
*
|
|
2993
3001
|
* @default undefined */
|
|
2994
|
-
marginXL?: Margin$
|
|
3002
|
+
marginXL?: Margin$g;
|
|
2995
3003
|
/** @ignore @deprecated */
|
|
2996
3004
|
as?: React.ElementType;
|
|
2997
3005
|
}
|
|
@@ -3005,15 +3013,6 @@ type IconProps = IconBaseProps & Omit<React.ComponentPropsWithRef<'span'>, keyof
|
|
|
3005
3013
|
*/
|
|
3006
3014
|
declare const Icon: React.ForwardRefExoticComponent<IconProps>;
|
|
3007
3015
|
|
|
3008
|
-
type ComponentProp<Component extends React.ElementType> = {
|
|
3009
|
-
component?: Component;
|
|
3010
|
-
};
|
|
3011
|
-
type PolymorphicRef<C extends React.ElementType> = React.ComponentPropsWithRef<C>['ref'];
|
|
3012
|
-
type ElementProps<C extends React.ElementType, PropsToOmit extends PropertyKey = never> = Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit>;
|
|
3013
|
-
type PolymorphicComponentProps<C extends React.ElementType, Props> = ComponentProp<C> & Props & ElementProps<C, keyof Props | 'component'> & {
|
|
3014
|
-
ref?: PolymorphicRef<C>;
|
|
3015
|
-
};
|
|
3016
|
-
|
|
3017
3016
|
/**
|
|
3018
3017
|
* A URL pathname, beginning with a /.
|
|
3019
3018
|
*
|
|
@@ -3068,7 +3067,7 @@ interface Path {
|
|
|
3068
3067
|
*
|
|
3069
3068
|
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location
|
|
3070
3069
|
*/
|
|
3071
|
-
interface Location
|
|
3070
|
+
interface Location extends Path {
|
|
3072
3071
|
/**
|
|
3073
3072
|
* A value of arbitrary data associated with this location.
|
|
3074
3073
|
*
|
|
@@ -3086,10 +3085,10 @@ interface Location$1 extends Path {
|
|
|
3086
3085
|
key: Key;
|
|
3087
3086
|
}
|
|
3088
3087
|
|
|
3089
|
-
type Size$
|
|
3090
|
-
type SizeValue = Size$
|
|
3091
|
-
type Margin$
|
|
3092
|
-
interface AnchorProps extends ResponsiveSizeProps<Size$
|
|
3088
|
+
type Size$o = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
3089
|
+
type SizeValue = Size$o | 'initial' | 'inherit' | 'unset' | 'revert' | 'revert-layer' | number;
|
|
3090
|
+
type Margin$f = number | string;
|
|
3091
|
+
interface AnchorProps extends ResponsiveSizeProps<Size$o, SizeValue>, ResponsiveMarginProps,
|
|
3093
3092
|
/** @deprecated Use palette */
|
|
3094
3093
|
ColorProperty<'color'>,
|
|
3095
3094
|
/** @deprecated Use children as function */
|
|
@@ -3175,7 +3174,7 @@ DisplayProperty {
|
|
|
3175
3174
|
*
|
|
3176
3175
|
* @general
|
|
3177
3176
|
* @default 'a' */
|
|
3178
|
-
component?:
|
|
3177
|
+
component?: ComponentElementType;
|
|
3179
3178
|
/**
|
|
3180
3179
|
* Размер.
|
|
3181
3180
|
*
|
|
@@ -3219,7 +3218,7 @@ DisplayProperty {
|
|
|
3219
3218
|
*
|
|
3220
3219
|
* @general
|
|
3221
3220
|
* @default undefined */
|
|
3222
|
-
sizes?: Partial<Record<Size$
|
|
3221
|
+
sizes?: Partial<Record<Size$o, React.CSSProperties>>;
|
|
3223
3222
|
/**
|
|
3224
3223
|
* Внешние отступы.
|
|
3225
3224
|
*
|
|
@@ -3227,41 +3226,41 @@ DisplayProperty {
|
|
|
3227
3226
|
*
|
|
3228
3227
|
* @general
|
|
3229
3228
|
* @default undefined */
|
|
3230
|
-
margin?: Margin$
|
|
3229
|
+
margin?: Margin$f | [DESKTOP: Margin$f, TABLET: Margin$f, MOBILE: Margin$f] | [XL: Margin$f, L: Margin$f, M: Margin$f, S: Margin$f, XS: Margin$f, XXS: Margin$f];
|
|
3231
3230
|
/**
|
|
3232
3231
|
* Отступ для XXS брейкпоинта.
|
|
3233
3232
|
*
|
|
3234
3233
|
* @default undefined */
|
|
3235
|
-
marginXXS?: Margin$
|
|
3234
|
+
marginXXS?: Margin$f;
|
|
3236
3235
|
/**
|
|
3237
3236
|
* Отступ для XS брейкпоинта.
|
|
3238
3237
|
*
|
|
3239
3238
|
* @default undefined */
|
|
3240
|
-
marginXS?: Margin$
|
|
3239
|
+
marginXS?: Margin$f;
|
|
3241
3240
|
/**
|
|
3242
3241
|
* Отступ для S брейкпоинта.
|
|
3243
3242
|
*
|
|
3244
3243
|
* @default undefined */
|
|
3245
|
-
marginS?: Margin$
|
|
3244
|
+
marginS?: Margin$f;
|
|
3246
3245
|
/**
|
|
3247
3246
|
* Отступ для M брейкпоинта.
|
|
3248
3247
|
*
|
|
3249
3248
|
* @default undefined */
|
|
3250
|
-
marginM?: Margin$
|
|
3249
|
+
marginM?: Margin$f;
|
|
3251
3250
|
/**
|
|
3252
3251
|
* Отступ для L брейкпоинта.
|
|
3253
3252
|
*
|
|
3254
3253
|
* @default undefined */
|
|
3255
|
-
marginL?: Margin$
|
|
3254
|
+
marginL?: Margin$f;
|
|
3256
3255
|
/**
|
|
3257
3256
|
* Отступ для XL брейкпоинта.
|
|
3258
3257
|
*
|
|
3259
3258
|
* @default undefined */
|
|
3260
|
-
marginXL?: Margin$
|
|
3259
|
+
marginXL?: Margin$f;
|
|
3261
3260
|
/** @ignore @deprecated */
|
|
3262
3261
|
replace?: boolean;
|
|
3263
3262
|
/** @ignore */
|
|
3264
|
-
to?: string | Partial<Location
|
|
3263
|
+
to?: string | Partial<Location> | ((location: Location) => string | Partial<Location>);
|
|
3265
3264
|
/** @ignore @deprecated Use component */
|
|
3266
3265
|
as?: React.ElementType<any>;
|
|
3267
3266
|
/** @ignore @deprecated Use children */
|
|
@@ -3271,19 +3270,20 @@ DisplayProperty {
|
|
|
3271
3270
|
/** @ignore @deprecated */
|
|
3272
3271
|
wrapper?: boolean;
|
|
3273
3272
|
}
|
|
3274
|
-
type PolymorphicAnchorProps = PolymorphicComponentProps<'a', AnchorProps>;
|
|
3275
3273
|
|
|
3276
3274
|
/**
|
|
3277
3275
|
*
|
|
3278
3276
|
* Контрол многоцелевого назначения.
|
|
3279
3277
|
*
|
|
3280
|
-
* Полиморфный компонент.
|
|
3278
|
+
* Полиморфный компонент.
|
|
3279
|
+
*
|
|
3280
|
+
* Можно передать "ref" и атрибуты выбранного HTML-элемента (по умолчанию \<a\>).
|
|
3281
3281
|
*/
|
|
3282
|
-
declare const Anchor: <C extends React.ElementType = "a">(props:
|
|
3282
|
+
declare const Anchor: <C extends React.ElementType = "a">(props: PolymorphicPropsWithRef<C, AnchorProps>) => React.ReactElement | null;
|
|
3283
3283
|
|
|
3284
|
-
type Size$
|
|
3285
|
-
type Margin$
|
|
3286
|
-
interface ButtonBaseProps extends ResponsiveSizeProps<Size$
|
|
3284
|
+
type Size$n = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
3285
|
+
type Margin$e = number | string;
|
|
3286
|
+
interface ButtonBaseProps extends ResponsiveSizeProps<Size$n>, ResponsiveMarginProps, ResponsiveNamedProperty<'fluid', boolean>, ResponsiveNamedProperty<'width', 'auto' | 'l' | 'm' | 's' | 'xs' | number>,
|
|
3287
3287
|
/** @deprecated */
|
|
3288
3288
|
ColorProperty,
|
|
3289
3289
|
/** @deprecated */
|
|
@@ -3420,7 +3420,7 @@ ResponsiveNamedProperty<'height', 'l' | 'm' | 's' | 'xs' | number> {
|
|
|
3420
3420
|
* Использовать компонент ссылки из контекста вместо кнопки (`theme.link`).
|
|
3421
3421
|
*
|
|
3422
3422
|
* @default undefined */
|
|
3423
|
-
to?: string | Partial<Location
|
|
3423
|
+
to?: string | Partial<Location> | ((location: Location) => string | Partial<Location>);
|
|
3424
3424
|
/**
|
|
3425
3425
|
* Использовать элемент ссылки вместо кнопки (`<a>`).
|
|
3426
3426
|
*
|
|
@@ -3454,43 +3454,43 @@ ResponsiveNamedProperty<'height', 'l' | 'm' | 's' | 'xs' | number> {
|
|
|
3454
3454
|
*
|
|
3455
3455
|
* @general
|
|
3456
3456
|
* @default 'm' */
|
|
3457
|
-
size?: Size$
|
|
3457
|
+
size?: Size$n | [DESKTOP: Size$n, TABLET: Size$n, MOBILE: Size$n] | [XL: Size$n, L: Size$n, M: Size$n, S: Size$n, XS: Size$n, XXS: Size$n];
|
|
3458
3458
|
/**
|
|
3459
3459
|
* Размер для XXS брейкпоинта.
|
|
3460
3460
|
*
|
|
3461
3461
|
* @default undefined */
|
|
3462
|
-
sizeXXS?: Size$
|
|
3462
|
+
sizeXXS?: Size$n;
|
|
3463
3463
|
/**
|
|
3464
3464
|
* Размер для XS брейкпоинта.
|
|
3465
3465
|
*
|
|
3466
3466
|
* @default undefined */
|
|
3467
|
-
sizeXS?: Size$
|
|
3467
|
+
sizeXS?: Size$n;
|
|
3468
3468
|
/**
|
|
3469
3469
|
* Размер для S брейкпоинта.
|
|
3470
3470
|
*
|
|
3471
3471
|
* @default undefined */
|
|
3472
|
-
sizeS?: Size$
|
|
3472
|
+
sizeS?: Size$n;
|
|
3473
3473
|
/**
|
|
3474
3474
|
* Размер для M брейкпоинта.
|
|
3475
3475
|
*
|
|
3476
3476
|
* @default undefined */
|
|
3477
|
-
sizeM?: Size$
|
|
3477
|
+
sizeM?: Size$n;
|
|
3478
3478
|
/**
|
|
3479
3479
|
* Размер для L брейкпоинта.
|
|
3480
3480
|
*
|
|
3481
3481
|
* @default undefined */
|
|
3482
|
-
sizeL?: Size$
|
|
3482
|
+
sizeL?: Size$n;
|
|
3483
3483
|
/**
|
|
3484
3484
|
* Размер для XL брейкпоинта.
|
|
3485
3485
|
*
|
|
3486
3486
|
* @default undefined */
|
|
3487
|
-
sizeXL?: Size$
|
|
3487
|
+
sizeXL?: Size$n;
|
|
3488
3488
|
/**
|
|
3489
3489
|
* Модификация размеров.
|
|
3490
3490
|
*
|
|
3491
3491
|
* @general
|
|
3492
3492
|
* @default undefined */
|
|
3493
|
-
sizes?: Partial<Record<Size$
|
|
3493
|
+
sizes?: Partial<Record<Size$n, React.CSSProperties>>;
|
|
3494
3494
|
/**
|
|
3495
3495
|
* Внешние отступы.
|
|
3496
3496
|
*
|
|
@@ -3498,37 +3498,37 @@ ResponsiveNamedProperty<'height', 'l' | 'm' | 's' | 'xs' | number> {
|
|
|
3498
3498
|
*
|
|
3499
3499
|
* @general
|
|
3500
3500
|
* @default undefined */
|
|
3501
|
-
margin?: Margin$
|
|
3501
|
+
margin?: Margin$e | [DESKTOP: Margin$e, TABLET: Margin$e, MOBILE: Margin$e] | [XL: Margin$e, L: Margin$e, M: Margin$e, S: Margin$e, XS: Margin$e, XXS: Margin$e];
|
|
3502
3502
|
/**
|
|
3503
3503
|
* Отступ для XXS брейкпоинта.
|
|
3504
3504
|
*
|
|
3505
3505
|
* @default undefined */
|
|
3506
|
-
marginXXS?: Margin$
|
|
3506
|
+
marginXXS?: Margin$e;
|
|
3507
3507
|
/**
|
|
3508
3508
|
* Отступ для XS брейкпоинта.
|
|
3509
3509
|
*
|
|
3510
3510
|
* @default undefined */
|
|
3511
|
-
marginXS?: Margin$
|
|
3511
|
+
marginXS?: Margin$e;
|
|
3512
3512
|
/**
|
|
3513
3513
|
* Отступ для S брейкпоинта.
|
|
3514
3514
|
*
|
|
3515
3515
|
* @default undefined */
|
|
3516
|
-
marginS?: Margin$
|
|
3516
|
+
marginS?: Margin$e;
|
|
3517
3517
|
/**
|
|
3518
3518
|
* Отступ для M брейкпоинта.
|
|
3519
3519
|
*
|
|
3520
3520
|
* @default undefined */
|
|
3521
|
-
marginM?: Margin$
|
|
3521
|
+
marginM?: Margin$e;
|
|
3522
3522
|
/**
|
|
3523
3523
|
* Отступ для L брейкпоинта.
|
|
3524
3524
|
*
|
|
3525
3525
|
* @default undefined */
|
|
3526
|
-
marginL?: Margin$
|
|
3526
|
+
marginL?: Margin$e;
|
|
3527
3527
|
/**
|
|
3528
3528
|
* Отступ для XL брейкпоинта.
|
|
3529
3529
|
*
|
|
3530
3530
|
* @default undefined */
|
|
3531
|
-
marginXL?: Margin$
|
|
3531
|
+
marginXL?: Margin$e;
|
|
3532
3532
|
/** @ignore */
|
|
3533
3533
|
primary?: boolean;
|
|
3534
3534
|
/** @ignore */
|
|
@@ -3584,7 +3584,7 @@ interface AlertProps extends BaseProps {
|
|
|
3584
3584
|
content: React.ReactNode;
|
|
3585
3585
|
onClick(): void;
|
|
3586
3586
|
};
|
|
3587
|
-
linkProps?:
|
|
3587
|
+
linkProps?: PolymorphicPropsWithRef<'a', AnchorProps>;
|
|
3588
3588
|
/** Use alert without icon */
|
|
3589
3589
|
noIcon?: boolean;
|
|
3590
3590
|
/** You can cancel the action if the timer has not expired yet */
|
|
@@ -3619,9 +3619,9 @@ interface AlertProps extends BaseProps {
|
|
|
3619
3619
|
|
|
3620
3620
|
declare const Alert: react.ForwardRefExoticComponent<AlertProps & react.RefAttributes<HTMLDivElement>>;
|
|
3621
3621
|
|
|
3622
|
-
type Size$
|
|
3623
|
-
type Margin$
|
|
3624
|
-
interface ArrowProps extends ResponsiveSizeProps<Size$
|
|
3622
|
+
type Size$m = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
3623
|
+
type Margin$d = number | string;
|
|
3624
|
+
interface ArrowProps extends ResponsiveSizeProps<Size$m, SizeValue$1>, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'button'>, 'children'> {
|
|
3625
3625
|
/**
|
|
3626
3626
|
* Версия компонента: v3 ("brand") или v2 ("default").
|
|
3627
3627
|
*
|
|
@@ -3703,43 +3703,43 @@ interface ArrowProps extends ResponsiveSizeProps<Size$l, SizeValue$1>, Responsiv
|
|
|
3703
3703
|
*
|
|
3704
3704
|
* @general
|
|
3705
3705
|
* @default 'l' */
|
|
3706
|
-
size?: Size$
|
|
3706
|
+
size?: Size$m | [DESKTOP: Size$m, TABLET: Size$m, MOBILE: Size$m] | [XL: Size$m, L: Size$m, M: Size$m, S: Size$m, XS: Size$m, XXS: Size$m];
|
|
3707
3707
|
/**
|
|
3708
3708
|
* Размер для XXS брейкпоинта.
|
|
3709
3709
|
*
|
|
3710
3710
|
* @default undefined */
|
|
3711
|
-
sizeXXS?: Size$
|
|
3711
|
+
sizeXXS?: Size$m;
|
|
3712
3712
|
/**
|
|
3713
3713
|
* Размер для XS брейкпоинта.
|
|
3714
3714
|
*
|
|
3715
3715
|
* @default undefined */
|
|
3716
|
-
sizeXS?: Size$
|
|
3716
|
+
sizeXS?: Size$m;
|
|
3717
3717
|
/**
|
|
3718
3718
|
* Размер для S брейкпоинта.
|
|
3719
3719
|
*
|
|
3720
3720
|
* @default undefined */
|
|
3721
|
-
sizeS?: Size$
|
|
3721
|
+
sizeS?: Size$m;
|
|
3722
3722
|
/**
|
|
3723
3723
|
* Размер для M брейкпоинта.
|
|
3724
3724
|
*
|
|
3725
3725
|
* @default undefined */
|
|
3726
|
-
sizeM?: Size$
|
|
3726
|
+
sizeM?: Size$m;
|
|
3727
3727
|
/**
|
|
3728
3728
|
* Размер для L брейкпоинта.
|
|
3729
3729
|
*
|
|
3730
3730
|
* @default undefined */
|
|
3731
|
-
sizeL?: Size$
|
|
3731
|
+
sizeL?: Size$m;
|
|
3732
3732
|
/**
|
|
3733
3733
|
* Размер для XL брейкпоинта.
|
|
3734
3734
|
*
|
|
3735
3735
|
* @default undefined */
|
|
3736
|
-
sizeXL?: Size$
|
|
3736
|
+
sizeXL?: Size$m;
|
|
3737
3737
|
/**
|
|
3738
3738
|
* Модификация размеров.
|
|
3739
3739
|
*
|
|
3740
3740
|
* @general
|
|
3741
3741
|
* @default undefined */
|
|
3742
|
-
sizes?: Partial<Record<Size$
|
|
3742
|
+
sizes?: Partial<Record<Size$m, React.CSSProperties>>;
|
|
3743
3743
|
/**
|
|
3744
3744
|
* Внешние отступы.
|
|
3745
3745
|
*
|
|
@@ -3747,37 +3747,37 @@ interface ArrowProps extends ResponsiveSizeProps<Size$l, SizeValue$1>, Responsiv
|
|
|
3747
3747
|
*
|
|
3748
3748
|
* @general
|
|
3749
3749
|
* @default undefined */
|
|
3750
|
-
margin?: Margin$
|
|
3750
|
+
margin?: Margin$d | [DESKTOP: Margin$d, TABLET: Margin$d, MOBILE: Margin$d] | [XL: Margin$d, L: Margin$d, M: Margin$d, S: Margin$d, XS: Margin$d, XXS: Margin$d];
|
|
3751
3751
|
/**
|
|
3752
3752
|
* Отступ для XXS брейкпоинта.
|
|
3753
3753
|
*
|
|
3754
3754
|
* @default undefined */
|
|
3755
|
-
marginXXS?: Margin$
|
|
3755
|
+
marginXXS?: Margin$d;
|
|
3756
3756
|
/**
|
|
3757
3757
|
* Отступ для XS брейкпоинта.
|
|
3758
3758
|
*
|
|
3759
3759
|
* @default undefined */
|
|
3760
|
-
marginXS?: Margin$
|
|
3760
|
+
marginXS?: Margin$d;
|
|
3761
3761
|
/**
|
|
3762
3762
|
* Отступ для S брейкпоинта.
|
|
3763
3763
|
*
|
|
3764
3764
|
* @default undefined */
|
|
3765
|
-
marginS?: Margin$
|
|
3765
|
+
marginS?: Margin$d;
|
|
3766
3766
|
/**
|
|
3767
3767
|
* Отступ для M брейкпоинта.
|
|
3768
3768
|
*
|
|
3769
3769
|
* @default undefined */
|
|
3770
|
-
marginM?: Margin$
|
|
3770
|
+
marginM?: Margin$d;
|
|
3771
3771
|
/**
|
|
3772
3772
|
* Отступ для L брейкпоинта.
|
|
3773
3773
|
*
|
|
3774
3774
|
* @default undefined */
|
|
3775
|
-
marginL?: Margin$
|
|
3775
|
+
marginL?: Margin$d;
|
|
3776
3776
|
/**
|
|
3777
3777
|
* Отступ для XL брейкпоинта.
|
|
3778
3778
|
*
|
|
3779
3779
|
* @default undefined */
|
|
3780
|
-
marginXL?: Margin$
|
|
3780
|
+
marginXL?: Margin$d;
|
|
3781
3781
|
/** @ignore */
|
|
3782
3782
|
inverse?: boolean;
|
|
3783
3783
|
/** @ignore @deprecated */
|
|
@@ -3794,8 +3794,8 @@ interface ArrowProps extends ResponsiveSizeProps<Size$l, SizeValue$1>, Responsiv
|
|
|
3794
3794
|
*/
|
|
3795
3795
|
declare const Arrow: React.ForwardRefExoticComponent<ArrowProps>;
|
|
3796
3796
|
|
|
3797
|
-
type Size$
|
|
3798
|
-
interface InputCheckboxProps extends ResponsiveSizeProps<Size$
|
|
3797
|
+
type Size$l = 'xl' | 'l' | 'm' | 's' | 'xs';
|
|
3798
|
+
interface InputCheckboxProps extends ResponsiveSizeProps<Size$l>, Omit<React.ComponentPropsWithRef<'input'>, 'size' | 'children'> {
|
|
3799
3799
|
/**
|
|
3800
3800
|
* Текущее состояние контрола (использование включает контролируемый режим).
|
|
3801
3801
|
*
|
|
@@ -3872,43 +3872,43 @@ interface InputCheckboxProps extends ResponsiveSizeProps<Size$k>, Omit<React.Com
|
|
|
3872
3872
|
*
|
|
3873
3873
|
* @general
|
|
3874
3874
|
* @default 'm' */
|
|
3875
|
-
size?: Size$
|
|
3875
|
+
size?: Size$l | [DESKTOP: Size$l, TABLET: Size$l, MOBILE: Size$l] | [XL: Size$l, L: Size$l, M: Size$l, S: Size$l, XS: Size$l, XXS: Size$l];
|
|
3876
3876
|
/**
|
|
3877
3877
|
* Размер для XXS брейкпоинта.
|
|
3878
3878
|
*
|
|
3879
3879
|
* @default undefined */
|
|
3880
|
-
sizeXXS?: Size$
|
|
3880
|
+
sizeXXS?: Size$l;
|
|
3881
3881
|
/**
|
|
3882
3882
|
* Размер для XS брейкпоинта.
|
|
3883
3883
|
*
|
|
3884
3884
|
* @default undefined */
|
|
3885
|
-
sizeXS?: Size$
|
|
3885
|
+
sizeXS?: Size$l;
|
|
3886
3886
|
/**
|
|
3887
3887
|
* Размер для S брейкпоинта.
|
|
3888
3888
|
*
|
|
3889
3889
|
* @default undefined */
|
|
3890
|
-
sizeS?: Size$
|
|
3890
|
+
sizeS?: Size$l;
|
|
3891
3891
|
/**
|
|
3892
3892
|
* Размер для M брейкпоинта.
|
|
3893
3893
|
*
|
|
3894
3894
|
* @default undefined */
|
|
3895
|
-
sizeM?: Size$
|
|
3895
|
+
sizeM?: Size$l;
|
|
3896
3896
|
/**
|
|
3897
3897
|
* Размер для L брейкпоинта.
|
|
3898
3898
|
*
|
|
3899
3899
|
* @default undefined */
|
|
3900
|
-
sizeL?: Size$
|
|
3900
|
+
sizeL?: Size$l;
|
|
3901
3901
|
/**
|
|
3902
3902
|
* Размер для XL брейкпоинта.
|
|
3903
3903
|
*
|
|
3904
3904
|
* @default undefined */
|
|
3905
|
-
sizeXL?: Size$
|
|
3905
|
+
sizeXL?: Size$l;
|
|
3906
3906
|
/**
|
|
3907
3907
|
* Модификация размеров.
|
|
3908
3908
|
*
|
|
3909
3909
|
* @general
|
|
3910
3910
|
* @default undefined */
|
|
3911
|
-
sizes?: Partial<Record<Size$
|
|
3911
|
+
sizes?: Partial<Record<Size$l, React.CSSProperties>>;
|
|
3912
3912
|
/** @ignore @deprecated */
|
|
3913
3913
|
onColored?: boolean;
|
|
3914
3914
|
}
|
|
@@ -3957,8 +3957,8 @@ declare enum SizeInput {
|
|
|
3957
3957
|
xs = 140
|
|
3958
3958
|
}
|
|
3959
3959
|
|
|
3960
|
-
type Size$
|
|
3961
|
-
interface TextareaBaseProps extends ResponsiveSizeProps<Size$
|
|
3960
|
+
type Size$k = 'l' | 'm' | 's' | 'xs';
|
|
3961
|
+
interface TextareaBaseProps extends ResponsiveSizeProps<Size$k>, ResponsiveMarginProps, ColorProperty, ColorProperty<'placeholderColor'>, ResponsiveNamedProperty<'width', 'auto' | keyof typeof SizeInput | number> {
|
|
3962
3962
|
/**
|
|
3963
3963
|
* Автоматически адаптировать число строк под контент.
|
|
3964
3964
|
*
|
|
@@ -4113,7 +4113,7 @@ type ArrowBadgePalette = {
|
|
|
4113
4113
|
color: CSSColor;
|
|
4114
4114
|
backgroundColor: CSSColor;
|
|
4115
4115
|
};
|
|
4116
|
-
interface ArrowBadgeProps extends ResponsiveSizeProps<Size$
|
|
4116
|
+
interface ArrowBadgeProps extends ResponsiveSizeProps<Size$q, SizeValue$1>, ResponsiveMarginProps,
|
|
4117
4117
|
/** @deprecated Use palette */
|
|
4118
4118
|
ColorProperty<'color'>,
|
|
4119
4119
|
/** @deprecated Use palette */
|
|
@@ -4155,9 +4155,9 @@ ColorProperty<'backgroundColor'>, Omit<React.ComponentPropsWithRef<'div'>, 'colo
|
|
|
4155
4155
|
*/
|
|
4156
4156
|
declare const ArrowBadge: React.ForwardRefExoticComponent<ArrowBadgeProps>;
|
|
4157
4157
|
|
|
4158
|
-
type Size$
|
|
4159
|
-
type Margin$
|
|
4160
|
-
interface TabProps extends ResponsiveSizeProps<Size$
|
|
4158
|
+
type Size$j = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
4159
|
+
type Margin$c = number | string;
|
|
4160
|
+
interface TabProps extends ResponsiveSizeProps<Size$j, SizeValue$1>, ResponsiveMarginProps,
|
|
4161
4161
|
/** @deprecated Use palette */
|
|
4162
4162
|
ColorProperty<'color'>,
|
|
4163
4163
|
/** @deprecated Use palette */
|
|
@@ -4248,43 +4248,43 @@ ColorProperty<'borderColor'>, Omit<React.ComponentPropsWithRef<'button'>, 'color
|
|
|
4248
4248
|
*
|
|
4249
4249
|
* @general
|
|
4250
4250
|
* @default 'm' */
|
|
4251
|
-
size?: Size$
|
|
4251
|
+
size?: Size$j | [DESKTOP: Size$j, TABLET: Size$j, MOBILE: Size$j] | [XL: Size$j, L: Size$j, M: Size$j, S: Size$j, XS: Size$j, XXS: Size$j];
|
|
4252
4252
|
/**
|
|
4253
4253
|
* Размер для XXS брейкпоинта.
|
|
4254
4254
|
*
|
|
4255
4255
|
* @default undefined */
|
|
4256
|
-
sizeXXS?: Size$
|
|
4256
|
+
sizeXXS?: Size$j;
|
|
4257
4257
|
/**
|
|
4258
4258
|
* Размер для XS брейкпоинта.
|
|
4259
4259
|
*
|
|
4260
4260
|
* @default undefined */
|
|
4261
|
-
sizeXS?: Size$
|
|
4261
|
+
sizeXS?: Size$j;
|
|
4262
4262
|
/**
|
|
4263
4263
|
* Размер для S брейкпоинта.
|
|
4264
4264
|
*
|
|
4265
4265
|
* @default undefined */
|
|
4266
|
-
sizeS?: Size$
|
|
4266
|
+
sizeS?: Size$j;
|
|
4267
4267
|
/**
|
|
4268
4268
|
* Размер для M брейкпоинта.
|
|
4269
4269
|
*
|
|
4270
4270
|
* @default undefined */
|
|
4271
|
-
sizeM?: Size$
|
|
4271
|
+
sizeM?: Size$j;
|
|
4272
4272
|
/**
|
|
4273
4273
|
* Размер для L брейкпоинта.
|
|
4274
4274
|
*
|
|
4275
4275
|
* @default undefined */
|
|
4276
|
-
sizeL?: Size$
|
|
4276
|
+
sizeL?: Size$j;
|
|
4277
4277
|
/**
|
|
4278
4278
|
* Размер для XL брейкпоинта.
|
|
4279
4279
|
*
|
|
4280
4280
|
* @default undefined */
|
|
4281
|
-
sizeXL?: Size$
|
|
4281
|
+
sizeXL?: Size$j;
|
|
4282
4282
|
/**
|
|
4283
4283
|
* Модификация размеров.
|
|
4284
4284
|
*
|
|
4285
4285
|
* @general
|
|
4286
4286
|
* @default undefined */
|
|
4287
|
-
sizes?: Partial<Record<Size$
|
|
4287
|
+
sizes?: Partial<Record<Size$j, React.CSSProperties>>;
|
|
4288
4288
|
/**
|
|
4289
4289
|
* Внешние отступы.
|
|
4290
4290
|
*
|
|
@@ -4292,37 +4292,37 @@ ColorProperty<'borderColor'>, Omit<React.ComponentPropsWithRef<'button'>, 'color
|
|
|
4292
4292
|
*
|
|
4293
4293
|
* @general
|
|
4294
4294
|
* @default undefined */
|
|
4295
|
-
margin?: Margin$
|
|
4295
|
+
margin?: Margin$c | [DESKTOP: Margin$c, TABLET: Margin$c, MOBILE: Margin$c] | [XL: Margin$c, L: Margin$c, M: Margin$c, S: Margin$c, XS: Margin$c, XXS: Margin$c];
|
|
4296
4296
|
/**
|
|
4297
4297
|
* Отступ для XXS брейкпоинта.
|
|
4298
4298
|
*
|
|
4299
4299
|
* @default undefined */
|
|
4300
|
-
marginXXS?: Margin$
|
|
4300
|
+
marginXXS?: Margin$c;
|
|
4301
4301
|
/**
|
|
4302
4302
|
* Отступ для XS брейкпоинта.
|
|
4303
4303
|
*
|
|
4304
4304
|
* @default undefined */
|
|
4305
|
-
marginXS?: Margin$
|
|
4305
|
+
marginXS?: Margin$c;
|
|
4306
4306
|
/**
|
|
4307
4307
|
* Отступ для S брейкпоинта.
|
|
4308
4308
|
*
|
|
4309
4309
|
* @default undefined */
|
|
4310
|
-
marginS?: Margin$
|
|
4310
|
+
marginS?: Margin$c;
|
|
4311
4311
|
/**
|
|
4312
4312
|
* Отступ для M брейкпоинта.
|
|
4313
4313
|
*
|
|
4314
4314
|
* @default undefined */
|
|
4315
|
-
marginM?: Margin$
|
|
4315
|
+
marginM?: Margin$c;
|
|
4316
4316
|
/**
|
|
4317
4317
|
* Отступ для L брейкпоинта.
|
|
4318
4318
|
*
|
|
4319
4319
|
* @default undefined */
|
|
4320
|
-
marginL?: Margin$
|
|
4320
|
+
marginL?: Margin$c;
|
|
4321
4321
|
/**
|
|
4322
4322
|
* Отступ для XL брейкпоинта.
|
|
4323
4323
|
*
|
|
4324
4324
|
* @default undefined */
|
|
4325
|
-
marginXL?: Margin$
|
|
4325
|
+
marginXL?: Margin$c;
|
|
4326
4326
|
/** @ignore */
|
|
4327
4327
|
compact?: boolean;
|
|
4328
4328
|
/** @ignore */
|
|
@@ -4347,7 +4347,7 @@ type BadgePalette = {
|
|
|
4347
4347
|
color: CSSColor;
|
|
4348
4348
|
backgroundColor: CSSColor;
|
|
4349
4349
|
};
|
|
4350
|
-
interface BadgeProps extends ResponsiveSizeProps<Size$
|
|
4350
|
+
interface BadgeProps extends ResponsiveSizeProps<Size$q, SizeValue$1>, ResponsiveMarginProps,
|
|
4351
4351
|
/** @deprecated Use palette */
|
|
4352
4352
|
ColorProperty,
|
|
4353
4353
|
/** @deprecated Use children as function */
|
|
@@ -4400,9 +4400,9 @@ DisplayProperty, Omit<React.ComponentPropsWithRef<'div'>, 'color' | 'children'>
|
|
|
4400
4400
|
*/
|
|
4401
4401
|
declare const Badge: React.ForwardRefExoticComponent<BadgeProps>;
|
|
4402
4402
|
|
|
4403
|
-
type Size$
|
|
4404
|
-
type Margin$
|
|
4405
|
-
interface IconButtonBaseProps extends ResponsiveSizeProps<Size$
|
|
4403
|
+
type Size$i = 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs';
|
|
4404
|
+
type Margin$b = number | string;
|
|
4405
|
+
interface IconButtonBaseProps extends ResponsiveSizeProps<Size$i>, ResponsiveMarginProps {
|
|
4406
4406
|
/**
|
|
4407
4407
|
* Кастомные цвета.
|
|
4408
4408
|
*
|
|
@@ -4460,43 +4460,43 @@ interface IconButtonBaseProps extends ResponsiveSizeProps<Size$h>, ResponsiveMar
|
|
|
4460
4460
|
*
|
|
4461
4461
|
* @general
|
|
4462
4462
|
* @default 'm' */
|
|
4463
|
-
size?: Size$
|
|
4463
|
+
size?: Size$i | [DESKTOP: Size$i, TABLET: Size$i, MOBILE: Size$i] | [XL: Size$i, L: Size$i, M: Size$i, S: Size$i, XS: Size$i, XXS: Size$i];
|
|
4464
4464
|
/**
|
|
4465
4465
|
* Размер для XXS брейкпоинта.
|
|
4466
4466
|
*
|
|
4467
4467
|
* @default undefined */
|
|
4468
|
-
sizeXXS?: Size$
|
|
4468
|
+
sizeXXS?: Size$i;
|
|
4469
4469
|
/**
|
|
4470
4470
|
* Размер для XS брейкпоинта.
|
|
4471
4471
|
*
|
|
4472
4472
|
* @default undefined */
|
|
4473
|
-
sizeXS?: Size$
|
|
4473
|
+
sizeXS?: Size$i;
|
|
4474
4474
|
/**
|
|
4475
4475
|
* Размер для S брейкпоинта.
|
|
4476
4476
|
*
|
|
4477
4477
|
* @default undefined */
|
|
4478
|
-
sizeS?: Size$
|
|
4478
|
+
sizeS?: Size$i;
|
|
4479
4479
|
/**
|
|
4480
4480
|
* Размер для M брейкпоинта.
|
|
4481
4481
|
*
|
|
4482
4482
|
* @default undefined */
|
|
4483
|
-
sizeM?: Size$
|
|
4483
|
+
sizeM?: Size$i;
|
|
4484
4484
|
/**
|
|
4485
4485
|
* Размер для L брейкпоинта.
|
|
4486
4486
|
*
|
|
4487
4487
|
* @default undefined */
|
|
4488
|
-
sizeL?: Size$
|
|
4488
|
+
sizeL?: Size$i;
|
|
4489
4489
|
/**
|
|
4490
4490
|
* Размер для XL брейкпоинта.
|
|
4491
4491
|
*
|
|
4492
4492
|
* @default undefined */
|
|
4493
|
-
sizeXL?: Size$
|
|
4493
|
+
sizeXL?: Size$i;
|
|
4494
4494
|
/**
|
|
4495
4495
|
* Модификация размеров.
|
|
4496
4496
|
*
|
|
4497
4497
|
* @general
|
|
4498
4498
|
* @default undefined */
|
|
4499
|
-
sizes?: Partial<Record<Size$
|
|
4499
|
+
sizes?: Partial<Record<Size$i, React.CSSProperties>>;
|
|
4500
4500
|
/**
|
|
4501
4501
|
* Внешние отступы.
|
|
4502
4502
|
*
|
|
@@ -4504,37 +4504,37 @@ interface IconButtonBaseProps extends ResponsiveSizeProps<Size$h>, ResponsiveMar
|
|
|
4504
4504
|
*
|
|
4505
4505
|
* @general
|
|
4506
4506
|
* @default undefined */
|
|
4507
|
-
margin?: Margin$
|
|
4507
|
+
margin?: Margin$b | [DESKTOP: Margin$b, TABLET: Margin$b, MOBILE: Margin$b] | [XL: Margin$b, L: Margin$b, M: Margin$b, S: Margin$b, XS: Margin$b, XXS: Margin$b];
|
|
4508
4508
|
/**
|
|
4509
4509
|
* Отступ для XXS брейкпоинта.
|
|
4510
4510
|
*
|
|
4511
4511
|
* @default undefined */
|
|
4512
|
-
marginXXS?: Margin$
|
|
4512
|
+
marginXXS?: Margin$b;
|
|
4513
4513
|
/**
|
|
4514
4514
|
* Отступ для XS брейкпоинта.
|
|
4515
4515
|
*
|
|
4516
4516
|
* @default undefined */
|
|
4517
|
-
marginXS?: Margin$
|
|
4517
|
+
marginXS?: Margin$b;
|
|
4518
4518
|
/**
|
|
4519
4519
|
* Отступ для S брейкпоинта.
|
|
4520
4520
|
*
|
|
4521
4521
|
* @default undefined */
|
|
4522
|
-
marginS?: Margin$
|
|
4522
|
+
marginS?: Margin$b;
|
|
4523
4523
|
/**
|
|
4524
4524
|
* Отступ для M брейкпоинта.
|
|
4525
4525
|
*
|
|
4526
4526
|
* @default undefined */
|
|
4527
|
-
marginM?: Margin$
|
|
4527
|
+
marginM?: Margin$b;
|
|
4528
4528
|
/**
|
|
4529
4529
|
* Отступ для L брейкпоинта.
|
|
4530
4530
|
*
|
|
4531
4531
|
* @default undefined */
|
|
4532
|
-
marginL?: Margin$
|
|
4532
|
+
marginL?: Margin$b;
|
|
4533
4533
|
/**
|
|
4534
4534
|
* Отступ для XL брейкпоинта.
|
|
4535
4535
|
*
|
|
4536
4536
|
* @default undefined */
|
|
4537
|
-
marginXL?: Margin$
|
|
4537
|
+
marginXL?: Margin$b;
|
|
4538
4538
|
}
|
|
4539
4539
|
type IconButtonProps = IconButtonBaseProps & Omit<React.ComponentPropsWithRef<'button'>, keyof IconButtonBaseProps>;
|
|
4540
4540
|
|
|
@@ -4777,14 +4777,14 @@ declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps> & {
|
|
|
4777
4777
|
Component: typeof TooltipComponent;
|
|
4778
4778
|
};
|
|
4779
4779
|
|
|
4780
|
-
type Size$
|
|
4780
|
+
type Size$h = 'xl' | 'l' | 'm' | 's' | 'xs';
|
|
4781
4781
|
type Layout$5 = 'vertical' | 'horizontal';
|
|
4782
4782
|
type PopoverComponentPalette = {
|
|
4783
4783
|
color: CSSColor;
|
|
4784
4784
|
backgroundColor: CSSColor;
|
|
4785
4785
|
shadowColor: CSSColor;
|
|
4786
4786
|
};
|
|
4787
|
-
interface PopoverComponentBaseProps extends ResponsiveSizeProps<Size$
|
|
4787
|
+
interface PopoverComponentBaseProps extends ResponsiveSizeProps<Size$h>, ResponsiveLayoutProps<Layout$5> {
|
|
4788
4788
|
/**
|
|
4789
4789
|
* Кастомные цвета.
|
|
4790
4790
|
*
|
|
@@ -4895,9 +4895,9 @@ type PopoverComponentProps = PopoverComponentBaseProps & Omit<React.ComponentPro
|
|
|
4895
4895
|
|
|
4896
4896
|
declare const PopoverComponent: React.ForwardRefExoticComponent<PopoverComponentProps>;
|
|
4897
4897
|
|
|
4898
|
-
type Size$
|
|
4898
|
+
type Size$g = 's' | 'xl' | 'l' | 'm' | 'xs';
|
|
4899
4899
|
type Layout$4 = 'vertical' | 'horizontal';
|
|
4900
|
-
interface PopoverBaseProps extends ResponsiveSizeProps<Size$
|
|
4900
|
+
interface PopoverBaseProps extends ResponsiveSizeProps<Size$g>, ResponsiveLayoutProps<Layout$4> {
|
|
4901
4901
|
/**
|
|
4902
4902
|
* Кастомные цвета.
|
|
4903
4903
|
*
|
|
@@ -5113,43 +5113,43 @@ interface PopoverBaseProps extends ResponsiveSizeProps<Size$f>, ResponsiveLayout
|
|
|
5113
5113
|
*
|
|
5114
5114
|
* @general
|
|
5115
5115
|
* @default 's' */
|
|
5116
|
-
size?: Size$
|
|
5116
|
+
size?: Size$g | [DESKTOP: Size$g, TABLET: Size$g, MOBILE: Size$g] | [XL: Size$g, L: Size$g, M: Size$g, S: Size$g, XS: Size$g, XXS: Size$g];
|
|
5117
5117
|
/**
|
|
5118
5118
|
* Размер для XXS брейкпоинта.
|
|
5119
5119
|
*
|
|
5120
5120
|
* @default undefined */
|
|
5121
|
-
sizeXXS?: Size$
|
|
5121
|
+
sizeXXS?: Size$g;
|
|
5122
5122
|
/**
|
|
5123
5123
|
* Размер для XS брейкпоинта.
|
|
5124
5124
|
*
|
|
5125
5125
|
* @default undefined */
|
|
5126
|
-
sizeXS?: Size$
|
|
5126
|
+
sizeXS?: Size$g;
|
|
5127
5127
|
/**
|
|
5128
5128
|
* Размер для S брейкпоинта.
|
|
5129
5129
|
*
|
|
5130
5130
|
* @default undefined */
|
|
5131
|
-
sizeS?: Size$
|
|
5131
|
+
sizeS?: Size$g;
|
|
5132
5132
|
/**
|
|
5133
5133
|
* Размер для M брейкпоинта.
|
|
5134
5134
|
*
|
|
5135
5135
|
* @default undefined */
|
|
5136
|
-
sizeM?: Size$
|
|
5136
|
+
sizeM?: Size$g;
|
|
5137
5137
|
/**
|
|
5138
5138
|
* Размер для L брейкпоинта.
|
|
5139
5139
|
*
|
|
5140
5140
|
* @default undefined */
|
|
5141
|
-
sizeL?: Size$
|
|
5141
|
+
sizeL?: Size$g;
|
|
5142
5142
|
/**
|
|
5143
5143
|
* Размер для XL брейкпоинта.
|
|
5144
5144
|
*
|
|
5145
5145
|
* @default undefined */
|
|
5146
|
-
sizeXL?: Size$
|
|
5146
|
+
sizeXL?: Size$g;
|
|
5147
5147
|
/**
|
|
5148
5148
|
* Модификация размеров.
|
|
5149
5149
|
*
|
|
5150
5150
|
* @general
|
|
5151
5151
|
* @default undefined */
|
|
5152
|
-
sizes?: Partial<Record<Size$
|
|
5152
|
+
sizes?: Partial<Record<Size$g, React.CSSProperties>>;
|
|
5153
5153
|
/**
|
|
5154
5154
|
* Вариант шаблона лейаута.
|
|
5155
5155
|
*
|
|
@@ -5317,92 +5317,298 @@ interface ProgressCircleProps$1 extends ResponsiveSizeProps<ProgressCircleSize>,
|
|
|
5317
5317
|
*/
|
|
5318
5318
|
declare const ProgressCircle$1: React.ForwardRefExoticComponent<ProgressCircleProps$1>;
|
|
5319
5319
|
|
|
5320
|
-
type
|
|
5320
|
+
type SkeletonPalette = {
|
|
5321
5321
|
color: CSSColor;
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
backgroundColorHover: CSSColor;
|
|
5325
|
-
mediaPlaceholderColor: CSSColor;
|
|
5322
|
+
gradientColor: CSSColor;
|
|
5323
|
+
gradientHighlightColor: CSSColor;
|
|
5326
5324
|
};
|
|
5327
|
-
interface
|
|
5328
|
-
/**
|
|
5329
|
-
|
|
5330
|
-
/** Main text content or render function */
|
|
5331
|
-
children?: React.ReactNode | ((props: Required<Pick<ListItemProps, 'textProps' | 'captionProps'>>) => React.ReactNode);
|
|
5332
|
-
/** Control to render (checkbox, radio, button, etc.) */
|
|
5333
|
-
control?: JSX.Element | ((props: Required<Pick<ListItemProps, 'size'>> & Pick<ListItemProps, 'sizeXXS' | 'sizeXS' | 'sizeS' | 'sizeM' | 'sizeL' | 'sizeXL' | 'onColored' | 'disabled'>) => JSX.Element);
|
|
5334
|
-
/** Control position on horizontal axis */
|
|
5335
|
-
controlPosition?: 'left' | 'right';
|
|
5336
|
-
/** Icons before and after content */
|
|
5337
|
-
icon?: JSX.Element | IconName | [Nullable<JSX.Element | IconName>, Nullable<JSX.Element | IconName>];
|
|
5338
|
-
/** Props for icon components */
|
|
5339
|
-
iconProps?: IconProps;
|
|
5340
|
-
/** Media to display */
|
|
5341
|
-
media?: React.ComponentPropsWithoutRef<'img'> | JSX.Element;
|
|
5342
|
-
/** Media border-radius */
|
|
5343
|
-
mediaBorderRadius?: string | number;
|
|
5344
|
-
/** Main text (alternative to children) */
|
|
5345
|
-
text?: React.ReactNode;
|
|
5346
|
-
/** Props for main text component */
|
|
5347
|
-
textProps?: TextProps;
|
|
5348
|
-
/** Additional text */
|
|
5349
|
-
caption?: React.ReactNode;
|
|
5350
|
-
/** Props for caption text component */
|
|
5351
|
-
captionProps?: TextProps;
|
|
5352
|
-
/** Caption position relative to main text */
|
|
5353
|
-
captionPosition?: 'top' | 'bottom';
|
|
5354
|
-
/** Additional components */
|
|
5355
|
-
addon?: React.ReactNode;
|
|
5325
|
+
interface SkeletonProps extends ResponsiveMarginProps, React.ComponentPropsWithRef<'div'> {
|
|
5326
|
+
/** Element to infer sizing */
|
|
5327
|
+
children?: React.ReactNode;
|
|
5356
5328
|
/** Custom colors */
|
|
5357
|
-
palette?: Partial<Record<keyof
|
|
5329
|
+
palette?: Partial<Record<keyof SkeletonPalette, Color>>;
|
|
5330
|
+
/** Display 'inline-block' */
|
|
5331
|
+
inline?: boolean;
|
|
5332
|
+
/** Root border-radius: 50% */
|
|
5333
|
+
round?: boolean;
|
|
5358
5334
|
/** Root border-radius */
|
|
5359
5335
|
borderRadius?: string | number;
|
|
5360
|
-
/**
|
|
5361
|
-
|
|
5336
|
+
/** Root width */
|
|
5337
|
+
width?: string | number;
|
|
5338
|
+
/** Root height */
|
|
5339
|
+
height?: string | number;
|
|
5340
|
+
/** Value (ms) to control animation speed */
|
|
5341
|
+
animationDuration?: number;
|
|
5342
|
+
/** Delay to animation start (ms) to avoid flicker at fast connection */
|
|
5343
|
+
animationDelay?: number;
|
|
5362
5344
|
/** Appearance variant */
|
|
5363
5345
|
primary?: boolean;
|
|
5364
5346
|
/** Appearance variant */
|
|
5365
5347
|
secondary?: boolean;
|
|
5366
5348
|
/** Appearance variant */
|
|
5349
|
+
onColored?: boolean;
|
|
5350
|
+
/** Root node type */
|
|
5351
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
5352
|
+
}
|
|
5353
|
+
|
|
5354
|
+
/**
|
|
5355
|
+
*
|
|
5356
|
+
* Component accepts all \<div\> attributes.
|
|
5357
|
+
*
|
|
5358
|
+
* Responsive "margin" props are supported.
|
|
5359
|
+
*
|
|
5360
|
+
* Exposed "ref" attached to root node.
|
|
5361
|
+
*
|
|
5362
|
+
* See full [SkeletonProps](https://github.com/foxford/ui/blob/master/packages/ui/src/components/Skeleton/types.ts)
|
|
5363
|
+
*/
|
|
5364
|
+
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps>;
|
|
5365
|
+
|
|
5366
|
+
type Size$f = 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
5367
|
+
type Margin$a = number | string;
|
|
5368
|
+
interface ListItemProps extends ResponsiveSizeProps<Size$f>, ResponsiveMarginProps {
|
|
5369
|
+
/**
|
|
5370
|
+
* Компонент рутового элемента.
|
|
5371
|
+
*
|
|
5372
|
+
* @general
|
|
5373
|
+
* @default 'button' */
|
|
5374
|
+
component?: ComponentElementType;
|
|
5375
|
+
/**
|
|
5376
|
+
* Кастомные цвета.
|
|
5377
|
+
*
|
|
5378
|
+
* @general
|
|
5379
|
+
* @default {} */
|
|
5380
|
+
palette?: {
|
|
5381
|
+
color?: Color;
|
|
5382
|
+
colorHover?: Color;
|
|
5383
|
+
colorActive?: Color;
|
|
5384
|
+
colorDisabled?: Color;
|
|
5385
|
+
backgroundColor?: Color;
|
|
5386
|
+
backgroundColorHover?: Color;
|
|
5387
|
+
backgroundColorActive?: Color;
|
|
5388
|
+
backgroundColorDisabled?: Color;
|
|
5389
|
+
};
|
|
5390
|
+
/**
|
|
5391
|
+
* Кастомный рутовый блок.
|
|
5392
|
+
*
|
|
5393
|
+
* Использование компонента только как контейнера.
|
|
5394
|
+
*
|
|
5395
|
+
* @slot
|
|
5396
|
+
* @default undefined */
|
|
5397
|
+
children?: React.ReactElement | ((rootProps: {
|
|
5398
|
+
textProps: TextProps;
|
|
5399
|
+
captionProps: TextProps;
|
|
5400
|
+
skeletonProps: SkeletonProps;
|
|
5401
|
+
}) => React.ReactNode);
|
|
5402
|
+
/**
|
|
5403
|
+
* Кастомный контентный блок.
|
|
5404
|
+
*
|
|
5405
|
+
* @slot
|
|
5406
|
+
* @default undefined */
|
|
5407
|
+
content?: React.ReactElement | ((contentProps: {
|
|
5408
|
+
textProps: TextProps;
|
|
5409
|
+
captionProps: TextProps;
|
|
5410
|
+
}) => React.ReactNode);
|
|
5411
|
+
/**
|
|
5412
|
+
* Основной текстовый контент.
|
|
5413
|
+
*
|
|
5414
|
+
* Если передана строка или число используется встроенная типографика.
|
|
5415
|
+
*
|
|
5416
|
+
* @slot
|
|
5417
|
+
* @default undefined */
|
|
5418
|
+
text?: React.ReactNode | ((textProps: TextProps) => React.ReactNode);
|
|
5419
|
+
/**
|
|
5420
|
+
* Дополнительный тектовый контент.
|
|
5421
|
+
*
|
|
5422
|
+
* Если передана строка или число используется встроенная типографика.
|
|
5423
|
+
*
|
|
5424
|
+
* @slot
|
|
5425
|
+
* @default undefined */
|
|
5426
|
+
caption?: React.ReactNode | ((captionProps: TextProps) => React.ReactNode);
|
|
5427
|
+
/**
|
|
5428
|
+
* Дополнительные элементы слева.
|
|
5429
|
+
*
|
|
5430
|
+
* @slot
|
|
5431
|
+
* @default undefined */
|
|
5432
|
+
addonLeft?: React.ReactElement;
|
|
5433
|
+
/**
|
|
5434
|
+
* Дополнительные элементы справа.
|
|
5435
|
+
*
|
|
5436
|
+
* @slot
|
|
5437
|
+
* @default undefined */
|
|
5438
|
+
addonRight?: React.ReactElement;
|
|
5439
|
+
/**
|
|
5440
|
+
* Кастомный лейаут при загрузке.
|
|
5441
|
+
*
|
|
5442
|
+
* @slot
|
|
5443
|
+
* @default undefined */
|
|
5444
|
+
loadingLayout?: React.ReactElement | ((loadingLayoutProps: {
|
|
5445
|
+
textProps: TextProps;
|
|
5446
|
+
captionProps: TextProps;
|
|
5447
|
+
skeletonProps: SkeletonProps;
|
|
5448
|
+
}) => React.ReactNode);
|
|
5449
|
+
/**
|
|
5450
|
+
* Вариант цветовой схемы.
|
|
5451
|
+
*
|
|
5452
|
+
* @general
|
|
5453
|
+
* @default true */
|
|
5454
|
+
primary?: boolean;
|
|
5455
|
+
/**
|
|
5456
|
+
* Вариант цветовой схемы.
|
|
5457
|
+
*
|
|
5458
|
+
* @general
|
|
5459
|
+
* @default false */
|
|
5460
|
+
secondary?: boolean;
|
|
5461
|
+
/**
|
|
5462
|
+
* Вариант цветовой схемы.
|
|
5463
|
+
*
|
|
5464
|
+
* @general
|
|
5465
|
+
* @default false */
|
|
5367
5466
|
danger?: boolean;
|
|
5368
|
-
/**
|
|
5467
|
+
/**
|
|
5468
|
+
* Вариант цветовой схемы.
|
|
5469
|
+
*
|
|
5470
|
+
* @general
|
|
5471
|
+
* @default false */
|
|
5369
5472
|
success?: boolean;
|
|
5370
|
-
/**
|
|
5473
|
+
/**
|
|
5474
|
+
* Активное визуальное состояние.
|
|
5475
|
+
*
|
|
5476
|
+
* @default false */
|
|
5371
5477
|
active?: boolean;
|
|
5372
|
-
/**
|
|
5373
|
-
|
|
5374
|
-
|
|
5478
|
+
/**
|
|
5479
|
+
* Вариант цветовой схемы.
|
|
5480
|
+
*
|
|
5481
|
+
* @general
|
|
5482
|
+
* @default false */
|
|
5483
|
+
contrast?: boolean;
|
|
5484
|
+
/**
|
|
5485
|
+
* Вариант цветовой схемы.
|
|
5486
|
+
*
|
|
5487
|
+
* Интерактивность будет отключена если рутовый элемент поддерживает атрибут.
|
|
5488
|
+
*
|
|
5489
|
+
* @general
|
|
5490
|
+
* @default false */
|
|
5375
5491
|
disabled?: boolean;
|
|
5376
|
-
/**
|
|
5492
|
+
/**
|
|
5493
|
+
* Использование скелетонов вместо контента.
|
|
5494
|
+
*
|
|
5495
|
+
* @general
|
|
5496
|
+
* @default false */
|
|
5377
5497
|
loading?: boolean;
|
|
5378
|
-
/**
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
/**
|
|
5385
|
-
|
|
5498
|
+
/**
|
|
5499
|
+
* Скругление краев (px).
|
|
5500
|
+
*
|
|
5501
|
+
* @general
|
|
5502
|
+
* @default 0 */
|
|
5503
|
+
borderRadius?: number;
|
|
5504
|
+
/**
|
|
5505
|
+
* Отображение иконки шеврона справа.
|
|
5506
|
+
*
|
|
5507
|
+
* @general
|
|
5508
|
+
* @default false */
|
|
5509
|
+
withChevron?: boolean;
|
|
5510
|
+
/**
|
|
5511
|
+
* Размер.
|
|
5512
|
+
*
|
|
5513
|
+
* Использование кортежей включает применение размеров в зависимости от ширины вьюпорта.
|
|
5514
|
+
*
|
|
5515
|
+
* @general
|
|
5516
|
+
* @default 's' */
|
|
5517
|
+
size?: Size$f | [DESKTOP: Size$f, TABLET: Size$f, MOBILE: Size$f] | [XL: Size$f, L: Size$f, M: Size$f, S: Size$f, XS: Size$f, XXS: Size$f];
|
|
5518
|
+
/**
|
|
5519
|
+
* Размер для XXS брейкпоинта.
|
|
5520
|
+
*
|
|
5521
|
+
* @default undefined */
|
|
5522
|
+
sizeXXS?: Size$f;
|
|
5523
|
+
/**
|
|
5524
|
+
* Размер для XS брейкпоинта.
|
|
5525
|
+
*
|
|
5526
|
+
* @default undefined */
|
|
5527
|
+
sizeXS?: Size$f;
|
|
5528
|
+
/**
|
|
5529
|
+
* Размер для S брейкпоинта.
|
|
5530
|
+
*
|
|
5531
|
+
* @default undefined */
|
|
5532
|
+
sizeS?: Size$f;
|
|
5533
|
+
/**
|
|
5534
|
+
* Размер для M брейкпоинта.
|
|
5535
|
+
*
|
|
5536
|
+
* @default undefined */
|
|
5537
|
+
sizeM?: Size$f;
|
|
5538
|
+
/**
|
|
5539
|
+
* Размер для L брейкпоинта.
|
|
5540
|
+
*
|
|
5541
|
+
* @default undefined */
|
|
5542
|
+
sizeL?: Size$f;
|
|
5543
|
+
/**
|
|
5544
|
+
* Размер для XL брейкпоинта.
|
|
5545
|
+
*
|
|
5546
|
+
* @default undefined */
|
|
5547
|
+
sizeXL?: Size$f;
|
|
5548
|
+
/**
|
|
5549
|
+
* Модификация размеров.
|
|
5550
|
+
*
|
|
5551
|
+
* @general
|
|
5552
|
+
* @default undefined */
|
|
5553
|
+
sizes?: Partial<Record<Size$f, React.CSSProperties>>;
|
|
5554
|
+
/**
|
|
5555
|
+
* Внешние отступы.
|
|
5556
|
+
*
|
|
5557
|
+
* Использование кортежей включает применение отступов в зависимости от ширины вьюпорта.
|
|
5558
|
+
*
|
|
5559
|
+
* @general
|
|
5560
|
+
* @default undefined */
|
|
5561
|
+
margin?: Margin$a | [DESKTOP: Margin$a, TABLET: Margin$a, MOBILE: Margin$a] | [XL: Margin$a, L: Margin$a, M: Margin$a, S: Margin$a, XS: Margin$a, XXS: Margin$a];
|
|
5562
|
+
/**
|
|
5563
|
+
* Отступ для XXS брейкпоинта.
|
|
5564
|
+
*
|
|
5565
|
+
* @default undefined */
|
|
5566
|
+
marginXXS?: Margin$a;
|
|
5567
|
+
/**
|
|
5568
|
+
* Отступ для XS брейкпоинта.
|
|
5569
|
+
*
|
|
5570
|
+
* @default undefined */
|
|
5571
|
+
marginXS?: Margin$a;
|
|
5572
|
+
/**
|
|
5573
|
+
* Отступ для S брейкпоинта.
|
|
5574
|
+
*
|
|
5575
|
+
* @default undefined */
|
|
5576
|
+
marginS?: Margin$a;
|
|
5577
|
+
/**
|
|
5578
|
+
* Отступ для M брейкпоинта.
|
|
5579
|
+
*
|
|
5580
|
+
* @default undefined */
|
|
5581
|
+
marginM?: Margin$a;
|
|
5582
|
+
/**
|
|
5583
|
+
* Отступ для L брейкпоинта.
|
|
5584
|
+
*
|
|
5585
|
+
* @default undefined */
|
|
5586
|
+
marginL?: Margin$a;
|
|
5587
|
+
/**
|
|
5588
|
+
* Отступ для XL брейкпоинта.
|
|
5589
|
+
*
|
|
5590
|
+
* @default undefined */
|
|
5591
|
+
marginXL?: Margin$a;
|
|
5386
5592
|
}
|
|
5387
5593
|
|
|
5388
5594
|
/**
|
|
5389
5595
|
*
|
|
5390
|
-
*
|
|
5596
|
+
* *v1.0.0*
|
|
5391
5597
|
*
|
|
5392
|
-
*
|
|
5598
|
+
* Компонент для вывода элемента списка.
|
|
5393
5599
|
*
|
|
5394
|
-
*
|
|
5600
|
+
* Полиморфный компонент.
|
|
5395
5601
|
*
|
|
5396
|
-
*
|
|
5602
|
+
* Можно передать "ref" и атрибуты выбранного HTML-элемента (по умолчанию \<button\>).
|
|
5397
5603
|
*/
|
|
5398
|
-
declare const ListItem: React.
|
|
5604
|
+
declare const ListItem: <C extends React.ElementType = "button">(props: PolymorphicPropsWithRef<C, ListItemProps>) => React.ReactElement | null;
|
|
5399
5605
|
|
|
5400
5606
|
type IndicatorPalette = {
|
|
5401
5607
|
color: CSSColor;
|
|
5402
5608
|
backgroundColor: CSSColor;
|
|
5403
5609
|
shadowColor: CSSColor;
|
|
5404
5610
|
};
|
|
5405
|
-
interface IndicatorProps extends ResponsiveSizeProps<Size$
|
|
5611
|
+
interface IndicatorProps extends ResponsiveSizeProps<Size$q, SizeValue$1>, ResponsiveMarginProps, React.ComponentPropsWithRef<'span'> {
|
|
5406
5612
|
/** Custom colors */
|
|
5407
5613
|
palette?: Partial<Record<keyof IndicatorPalette, Color>>;
|
|
5408
5614
|
/** Text content */
|
|
@@ -6571,7 +6777,7 @@ interface NotificationProps extends ResponsiveSizeProps<Size$a>, ResponsiveLayou
|
|
|
6571
6777
|
* @slot
|
|
6572
6778
|
* @default undefined */
|
|
6573
6779
|
addon?: React.ReactNode | ((addonProps: {
|
|
6574
|
-
anchorProps:
|
|
6780
|
+
anchorProps: AnchorProps;
|
|
6575
6781
|
buttonProps: ButtonProps;
|
|
6576
6782
|
}) => React.ReactNode);
|
|
6577
6783
|
/**
|
|
@@ -6590,7 +6796,7 @@ interface NotificationProps extends ResponsiveSizeProps<Size$a>, ResponsiveLayou
|
|
|
6590
6796
|
titleProps: TextProps;
|
|
6591
6797
|
textProps: TextProps;
|
|
6592
6798
|
buttonProps: ButtonProps;
|
|
6593
|
-
anchorProps:
|
|
6799
|
+
anchorProps: AnchorProps;
|
|
6594
6800
|
discardButtonProps: IconButtonProps;
|
|
6595
6801
|
}) => React.ReactNode);
|
|
6596
6802
|
/**
|
|
@@ -7959,7 +8165,7 @@ declare function useScrollLock(params: ScrollLockParams): void;
|
|
|
7959
8165
|
|
|
7960
8166
|
declare const vAlign: (align: "top" | "middle" | "bottom" | "text-top" | "text-bottom" | "baseline") => styled_components.FlattenSimpleInterpolation;
|
|
7961
8167
|
|
|
7962
|
-
declare function buildMediaQuery(value: number | Size$
|
|
8168
|
+
declare function buildMediaQuery(value: number | Size$q | 'auto' | 'initial' | 'inherit' | boolean, property: string | ((_size: number | 'auto' | 'initial' | 'inherit' | boolean, _sizing?: null | string) => FlattenSimpleInterpolation | null), screenQueryFunction: typeof screenXs, sizing: null | string, sizes?: Record<Size$q, number>): ReturnType<typeof css>;
|
|
7963
8169
|
declare const desktopFirst: (a: string, b: string) => number;
|
|
7964
8170
|
declare const mobileFirst: (a: string, b: string) => number;
|
|
7965
8171
|
|
|
@@ -10008,52 +10214,6 @@ interface FormLabelProps extends ResponsiveSizeProps<Size$2>, ResponsiveMarginPr
|
|
|
10008
10214
|
*/
|
|
10009
10215
|
declare const FormLabel: React.ForwardRefExoticComponent<FormLabelProps>;
|
|
10010
10216
|
|
|
10011
|
-
type SkeletonPalette = {
|
|
10012
|
-
color: CSSColor;
|
|
10013
|
-
gradientColor: CSSColor;
|
|
10014
|
-
gradientHighlightColor: CSSColor;
|
|
10015
|
-
};
|
|
10016
|
-
interface SkeletonProps extends ResponsiveMarginProps, React.ComponentPropsWithRef<'div'> {
|
|
10017
|
-
/** Element to infer sizing */
|
|
10018
|
-
children?: React.ReactNode;
|
|
10019
|
-
/** Custom colors */
|
|
10020
|
-
palette?: Partial<Record<keyof SkeletonPalette, Color>>;
|
|
10021
|
-
/** Display 'inline-block' */
|
|
10022
|
-
inline?: boolean;
|
|
10023
|
-
/** Root border-radius: 50% */
|
|
10024
|
-
round?: boolean;
|
|
10025
|
-
/** Root border-radius */
|
|
10026
|
-
borderRadius?: string | number;
|
|
10027
|
-
/** Root width */
|
|
10028
|
-
width?: string | number;
|
|
10029
|
-
/** Root height */
|
|
10030
|
-
height?: string | number;
|
|
10031
|
-
/** Value (ms) to control animation speed */
|
|
10032
|
-
animationDuration?: number;
|
|
10033
|
-
/** Delay to animation start (ms) to avoid flicker at fast connection */
|
|
10034
|
-
animationDelay?: number;
|
|
10035
|
-
/** Appearance variant */
|
|
10036
|
-
primary?: boolean;
|
|
10037
|
-
/** Appearance variant */
|
|
10038
|
-
secondary?: boolean;
|
|
10039
|
-
/** Appearance variant */
|
|
10040
|
-
onColored?: boolean;
|
|
10041
|
-
/** Root node type */
|
|
10042
|
-
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
10043
|
-
}
|
|
10044
|
-
|
|
10045
|
-
/**
|
|
10046
|
-
*
|
|
10047
|
-
* Component accepts all \<div\> attributes.
|
|
10048
|
-
*
|
|
10049
|
-
* Responsive "margin" props are supported.
|
|
10050
|
-
*
|
|
10051
|
-
* Exposed "ref" attached to root node.
|
|
10052
|
-
*
|
|
10053
|
-
* See full [SkeletonProps](https://github.com/foxford/ui/blob/master/packages/ui/src/components/Skeleton/types.ts)
|
|
10054
|
-
*/
|
|
10055
|
-
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps>;
|
|
10056
|
-
|
|
10057
10217
|
declare const FuseSearchKeys: {
|
|
10058
10218
|
readonly text: "text";
|
|
10059
10219
|
readonly label: "label";
|
|
@@ -10295,7 +10455,7 @@ interface DropdownBaseProps extends ResponsiveSizeProps<Size$1>, ResponsiveMargi
|
|
|
10295
10455
|
*
|
|
10296
10456
|
* @general
|
|
10297
10457
|
* @default undefined */
|
|
10298
|
-
renderOption?: (option: DropdownOption, optionProps:
|
|
10458
|
+
renderOption?: (option: DropdownOption, optionProps: RenderOptionListItemProps) => JSX.Element | null;
|
|
10299
10459
|
/**
|
|
10300
10460
|
* Включить мод множественного выбора.
|
|
10301
10461
|
*
|
|
@@ -10533,6 +10693,12 @@ interface DropdownBaseProps extends ResponsiveSizeProps<Size$1>, ResponsiveMargi
|
|
|
10533
10693
|
marginXL?: Margin$1;
|
|
10534
10694
|
}
|
|
10535
10695
|
type DropdownProps = DropdownBaseProps & Omit<React.ComponentPropsWithRef<'div'>, keyof DropdownBaseProps | 'children'>;
|
|
10696
|
+
type RenderOptionListItemProps = ListItemProps & {
|
|
10697
|
+
ref?: React.Ref<HTMLElement>;
|
|
10698
|
+
role?: React.AriaRole;
|
|
10699
|
+
'aria-selected'?: boolean;
|
|
10700
|
+
onClick: React.MouseEventHandler<HTMLElement>;
|
|
10701
|
+
};
|
|
10536
10702
|
|
|
10537
10703
|
/**
|
|
10538
10704
|
*
|
|
@@ -10843,4 +11009,4 @@ declare const MediaProvider: (props: React.PropsWithChildren<{
|
|
|
10843
11009
|
value: MediaMediator;
|
|
10844
11010
|
}>) => JSX.Element;
|
|
10845
11011
|
|
|
10846
|
-
export { Accordion, type AccordionItemProps, type AccordionProps, ActionBtn, type ActionBtnProps, AddElement, type AddElementProps, Alert, type AlertProps, Amount, type AmountProps, Anchor, Arrow, ArrowBadge, type ArrowBadgeProps, type ArrowProps, AspectRatio, type AspectRatioProps, Avatar, type AvatarProps, Badge, type BadgeProps, type BaseProps, type Breakpoint$1 as Breakpoint, Button, type ButtonProps, COUNTRY_DATA, type CSSBorderStyle, type CSSColor, type CSSFontWeight, type CSSGlobalValue, type CSSUnit, type CSSVerticalAlign, CURRENCY_MAP, Checkbox, type CheckboxProps, Chip, type ChipProps, type Color, ColorNames, type ColorPaletteKey, Container, type ContainerProps, ContextMenu, type ContextMenuMultiLevelProps, type ContextMenuProps, CurrencyCodes, DEFAULT_MASK, Dialog, type DialogComponentProps, type DialogProps, type DividerProps, type DomTarget, Dropdown, type DropdownProps, FormLabel, type FormLabelProps, type HEX, INITIAL_MASK, Icon, IconButton, type IconButtonProps, type IconISOCode, type IconName, type IconProps, Indicator, type IndicatorProps, Input, type InputCheckboxProps, type InputMaskOptions, type InputMaskState, type InputPhoneProps, type InputProps, type InputRadioProps, type KeysOfUnion, ListItem, type ListItemProps, Media, MediaMediator, type MediaProps, MediaProvider, Menu, type MenuComponentProps, type MenuContainerProps, type MenuDividerProps, type MenuListProps, type MenuProps, Modal, type ModalProps, Notification, type NotificationProps, type Nullable, type Orientation, Paper, type PaperProps, type PlaygroundToolbar, Popover, type PopoverComponentProps, type PopoverProps, Progress, ProgressCircle$1 as ProgressCircle, type ProgressCircleProps$1 as ProgressCircleProps, ProgressLine, type ProgressLineProps, type ProgressProps, type ProgressSegmentedProps, type RGB, type RGBA, Radio, type RadioProps, type ResponsiveLayoutInterpolationProps, type ResponsiveLayoutProps, type ResponsivePositionProps, type ResponsivePropKey, type ResponsiveProps, type ResponsiveSizeInterpolationProps, type ResponsiveSizeProps, withThemeScrollable as Scrollable, type ScrollableProps, Section, type SectionProps, Select, type SelectProps, Separator, type SeparatorProps, type Size$
|
|
11012
|
+
export { Accordion, type AccordionItemProps, type AccordionProps, ActionBtn, type ActionBtnProps, AddElement, type AddElementProps, Alert, type AlertProps, Amount, type AmountProps, Anchor, Arrow, ArrowBadge, type ArrowBadgeProps, type ArrowProps, AspectRatio, type AspectRatioProps, Avatar, type AvatarProps, Badge, type BadgeProps, type BaseProps, type Breakpoint$1 as Breakpoint, Button, type ButtonProps, COUNTRY_DATA, type CSSBorderStyle, type CSSColor, type CSSFontWeight, type CSSGlobalValue, type CSSUnit, type CSSVerticalAlign, CURRENCY_MAP, Checkbox, type CheckboxProps, Chip, type ChipProps, type Color, ColorNames, type ColorPaletteKey, type ComponentElementType, Container, type ContainerProps, ContextMenu, type ContextMenuMultiLevelProps, type ContextMenuProps, CurrencyCodes, DEFAULT_MASK, Dialog, type DialogComponentProps, type DialogProps, type DividerProps, type DomTarget, Dropdown, type DropdownProps, FormLabel, type FormLabelProps, type HEX, INITIAL_MASK, Icon, IconButton, type IconButtonProps, type IconISOCode, type IconName, type IconProps, Indicator, type IndicatorProps, Input, type InputCheckboxProps, type InputMaskOptions, type InputMaskState, type InputPhoneProps, type InputProps, type InputRadioProps, type KeysOfUnion, ListItem, type ListItemProps, Media, MediaMediator, type MediaProps, MediaProvider, Menu, type MenuComponentProps, type MenuContainerProps, type MenuDividerProps, type MenuListProps, type MenuProps, Modal, type ModalProps, Notification, type NotificationProps, type Nullable, type Orientation, Paper, type PaperProps, type PlaygroundToolbar, type PolymorphicProps, type PolymorphicPropsWithRef, type PolymorphicRef, Popover, type PopoverComponentProps, type PopoverProps, Progress, ProgressCircle$1 as ProgressCircle, type ProgressCircleProps$1 as ProgressCircleProps, ProgressLine, type ProgressLineProps, type ProgressProps, type ProgressSegmentedProps, type RGB, type RGBA, Radio, type RadioProps, type ResponsiveLayoutInterpolationProps, type ResponsiveLayoutProps, type ResponsivePositionProps, type ResponsivePropKey, type ResponsiveProps, type ResponsiveSizeInterpolationProps, type ResponsiveSizeProps, withThemeScrollable as Scrollable, type ScrollableProps, Section, type SectionProps, Select, type SelectProps, Separator, type SeparatorProps, type Size$q as Size, type SizeValue$1 as SizeValue, Skeleton, type SkeletonProps, Spacer, type SpacerProps, Spinner, type SpinnerProps, Switch, type SwitchProps, Switcher, type SwitcherProps, Tab, TabList, type TabListPanelProps, type TabListProps, type TabListTabProps, type TabProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextEllipseProps, type TextHeadingProps, type TextProps, Textarea, type TextareaProps, type Theme, type ThemeMode, type ThemeName, type ThemePreset, ThemeProvider, type ToolbarControl, Tooltip, type TooltipComponentProps, type TooltipProps, type WithMergedPropsOptions, type WithThemePreset, type WrappedComponentProps, adultDarkTheme, adultLightTheme, babyDarkTheme, babyLightTheme, baseInputStyle, buildMediaQuery, color, desktopFirst, getDarkHoverColor, getDarkStrongHoverColor, getLightHoverColor, getLightStrongHoverColor, hexToRgbA, isHex, mobileFirst, motherDarkTheme, motherLightTheme, property, responsiveNamedProperty, responsiveProperty, screenL, screenM, screenMaxL, screenMaxM, screenMaxS, screenMaxXl, screenMaxXs, screenMaxXxs, screenMinL, screenMinM, screenMinS, screenMinXl, screenMinXs, screenRetina, screenS, screenXl, screenXs, teenDarkTheme, teenLightTheme, defaultTheme as theme, useClickOutside, useScrollLock, useScrollMonitor, vAlign };
|