@foxford/ui 2.105.0 → 2.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
|
@@ -982,21 +990,21 @@ declare function ThemeProvider(props: ThemeProviderProps): JSX.Element;
|
|
|
982
990
|
/**
|
|
983
991
|
* Value for breakpoint
|
|
984
992
|
*/
|
|
985
|
-
type PossibleValues = number | Size$
|
|
993
|
+
type PossibleValues = number | Size$q | 'auto' | 'initial' | 'inherit' | boolean;
|
|
986
994
|
type PropsProperties = 'size' | 'fontSize' | 'height' | 'width' | 'top' | 'right' | 'bottom' | 'left' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'fluid';
|
|
987
995
|
type CalcProperty = (_size: number | 'auto' | 'initial' | 'inherit' | boolean, _sizing?: null | string) => FlattenSimpleInterpolation | null;
|
|
988
996
|
type CssProperty = string | CalcProperty;
|
|
989
997
|
type ResponsiveKeys = '' | 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
990
998
|
type ResponsiveNamedProperty<T extends PropsProperties, V extends PossibleValues = PossibleValues> = Partial<Record<`${T}${ResponsiveKeys}`, V>>;
|
|
991
|
-
type ResponsiveProperty<V = number | Size$
|
|
992
|
-
declare const property: (value: PossibleValues, cssProperty?: CssProperty, sizing?: null | string, sizes?: Record<Size$
|
|
999
|
+
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];
|
|
1000
|
+
declare const property: (value: PossibleValues, cssProperty?: CssProperty, sizing?: null | string, sizes?: Record<Size$q, number>) => () => () => FlattenSimpleInterpolation | null;
|
|
993
1001
|
interface ResponsiveNamedPropertyPayload<T extends PropsProperties> {
|
|
994
1002
|
sizes: ResponsiveNamedProperty<T>;
|
|
995
1003
|
cssProperty: CssProperty;
|
|
996
1004
|
sizing?: null | string;
|
|
997
1005
|
customSizeHandler?: (_value: PossibleValues) => PossibleValues;
|
|
998
1006
|
sort?: (_a: string, _b: string) => number;
|
|
999
|
-
predefinedSizes?: Record<Size$
|
|
1007
|
+
predefinedSizes?: Record<Size$q, number>;
|
|
1000
1008
|
}
|
|
1001
1009
|
/**
|
|
1002
1010
|
* Миксин для генерации media запросов
|
|
@@ -1097,7 +1105,7 @@ interface ExpandButtonProps extends React.ComponentPropsWithoutRef<'button'> {
|
|
|
1097
1105
|
/** Кастомные цвета */
|
|
1098
1106
|
palette?: Partial<Record<keyof ExpandButtonPalette, Color>>;
|
|
1099
1107
|
}
|
|
1100
|
-
interface TextProps extends ResponsiveSizeProps<Size$
|
|
1108
|
+
interface TextProps extends ResponsiveSizeProps<Size$q, SizeValue$1>, ResponsiveMarginProps,
|
|
1101
1109
|
/** @deprecated */
|
|
1102
1110
|
DisplayProperty, ColorProperty, Omit<React.HTMLAttributes<HTMLElement>, 'color'>, Omit<React.BlockquoteHTMLAttributes<HTMLElement>, 'color'>, Omit<React.LabelHTMLAttributes<HTMLElement>, 'color'> {
|
|
1103
1111
|
/** Применение присета стилей и размеров */
|
|
@@ -2866,11 +2874,11 @@ type IconISOCode =
|
|
|
2866
2874
|
| 'af'
|
|
2867
2875
|
|
|
2868
2876
|
type SizeIcon = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
2869
|
-
type Size$
|
|
2870
|
-
type Margin$
|
|
2877
|
+
type Size$p = SizeIcon | number | 'inherit';
|
|
2878
|
+
type Margin$g = number | string;
|
|
2871
2879
|
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';
|
|
2872
2880
|
type IconName = IconName$1 | IconNameDefault | IconISOCode;
|
|
2873
|
-
interface IconBaseProps extends ResponsiveSizeProps<SizeIcon, Size$
|
|
2881
|
+
interface IconBaseProps extends ResponsiveSizeProps<SizeIcon, Size$p>, ResponsiveMarginProps {
|
|
2874
2882
|
/**
|
|
2875
2883
|
* Версия компонента: v3 ("brand") или v2 ("default").
|
|
2876
2884
|
*
|
|
@@ -2907,37 +2915,37 @@ interface IconBaseProps extends ResponsiveSizeProps<SizeIcon, Size$o>, Responsiv
|
|
|
2907
2915
|
*
|
|
2908
2916
|
* @general
|
|
2909
2917
|
* @default 'inherit' */
|
|
2910
|
-
size?: Size$
|
|
2918
|
+
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];
|
|
2911
2919
|
/**
|
|
2912
2920
|
* Размер для XXS брейкпоинта.
|
|
2913
2921
|
*
|
|
2914
2922
|
* @default undefined */
|
|
2915
|
-
sizeXXS?: Size$
|
|
2923
|
+
sizeXXS?: Size$p;
|
|
2916
2924
|
/**
|
|
2917
2925
|
* Размер для XS брейкпоинта.
|
|
2918
2926
|
*
|
|
2919
2927
|
* @default undefined */
|
|
2920
|
-
sizeXS?: Size$
|
|
2928
|
+
sizeXS?: Size$p;
|
|
2921
2929
|
/**
|
|
2922
2930
|
* Размер для S брейкпоинта.
|
|
2923
2931
|
*
|
|
2924
2932
|
* @default undefined */
|
|
2925
|
-
sizeS?: Size$
|
|
2933
|
+
sizeS?: Size$p;
|
|
2926
2934
|
/**
|
|
2927
2935
|
* Размер для M брейкпоинта.
|
|
2928
2936
|
*
|
|
2929
2937
|
* @default undefined */
|
|
2930
|
-
sizeM?: Size$
|
|
2938
|
+
sizeM?: Size$p;
|
|
2931
2939
|
/**
|
|
2932
2940
|
* Размер для L брейкпоинта.
|
|
2933
2941
|
*
|
|
2934
2942
|
* @default undefined */
|
|
2935
|
-
sizeL?: Size$
|
|
2943
|
+
sizeL?: Size$p;
|
|
2936
2944
|
/**
|
|
2937
2945
|
* Размер для XL брейкпоинта.
|
|
2938
2946
|
*
|
|
2939
2947
|
* @default undefined */
|
|
2940
|
-
sizeXL?: Size$
|
|
2948
|
+
sizeXL?: Size$p;
|
|
2941
2949
|
/**
|
|
2942
2950
|
* Модификация размеров.
|
|
2943
2951
|
*
|
|
@@ -2951,37 +2959,37 @@ interface IconBaseProps extends ResponsiveSizeProps<SizeIcon, Size$o>, Responsiv
|
|
|
2951
2959
|
*
|
|
2952
2960
|
* @general
|
|
2953
2961
|
* @default undefined */
|
|
2954
|
-
margin?: Margin$
|
|
2962
|
+
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];
|
|
2955
2963
|
/**
|
|
2956
2964
|
* Отступ для XXS брейкпоинта.
|
|
2957
2965
|
*
|
|
2958
2966
|
* @default undefined */
|
|
2959
|
-
marginXXS?: Margin$
|
|
2967
|
+
marginXXS?: Margin$g;
|
|
2960
2968
|
/**
|
|
2961
2969
|
* Отступ для XS брейкпоинта.
|
|
2962
2970
|
*
|
|
2963
2971
|
* @default undefined */
|
|
2964
|
-
marginXS?: Margin$
|
|
2972
|
+
marginXS?: Margin$g;
|
|
2965
2973
|
/**
|
|
2966
2974
|
* Отступ для S брейкпоинта.
|
|
2967
2975
|
*
|
|
2968
2976
|
* @default undefined */
|
|
2969
|
-
marginS?: Margin$
|
|
2977
|
+
marginS?: Margin$g;
|
|
2970
2978
|
/**
|
|
2971
2979
|
* Отступ для M брейкпоинта.
|
|
2972
2980
|
*
|
|
2973
2981
|
* @default undefined */
|
|
2974
|
-
marginM?: Margin$
|
|
2982
|
+
marginM?: Margin$g;
|
|
2975
2983
|
/**
|
|
2976
2984
|
* Отступ для L брейкпоинта.
|
|
2977
2985
|
*
|
|
2978
2986
|
* @default undefined */
|
|
2979
|
-
marginL?: Margin$
|
|
2987
|
+
marginL?: Margin$g;
|
|
2980
2988
|
/**
|
|
2981
2989
|
* Отступ для XL брейкпоинта.
|
|
2982
2990
|
*
|
|
2983
2991
|
* @default undefined */
|
|
2984
|
-
marginXL?: Margin$
|
|
2992
|
+
marginXL?: Margin$g;
|
|
2985
2993
|
/** @ignore @deprecated */
|
|
2986
2994
|
as?: React.ElementType;
|
|
2987
2995
|
}
|
|
@@ -2995,15 +3003,6 @@ type IconProps = IconBaseProps & Omit<React.ComponentPropsWithRef<'span'>, keyof
|
|
|
2995
3003
|
*/
|
|
2996
3004
|
declare const Icon: React.ForwardRefExoticComponent<IconProps>;
|
|
2997
3005
|
|
|
2998
|
-
type ComponentProp<Component extends React.ElementType> = {
|
|
2999
|
-
component?: Component;
|
|
3000
|
-
};
|
|
3001
|
-
type PolymorphicRef<C extends React.ElementType> = React.ComponentPropsWithRef<C>['ref'];
|
|
3002
|
-
type ElementProps<C extends React.ElementType, PropsToOmit extends PropertyKey = never> = Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit>;
|
|
3003
|
-
type PolymorphicComponentProps<C extends React.ElementType, Props> = ComponentProp<C> & Props & ElementProps<C, keyof Props | 'component'> & {
|
|
3004
|
-
ref?: PolymorphicRef<C>;
|
|
3005
|
-
};
|
|
3006
|
-
|
|
3007
3006
|
/**
|
|
3008
3007
|
* A URL pathname, beginning with a /.
|
|
3009
3008
|
*
|
|
@@ -3058,7 +3057,7 @@ interface Path {
|
|
|
3058
3057
|
*
|
|
3059
3058
|
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location
|
|
3060
3059
|
*/
|
|
3061
|
-
interface Location
|
|
3060
|
+
interface Location extends Path {
|
|
3062
3061
|
/**
|
|
3063
3062
|
* A value of arbitrary data associated with this location.
|
|
3064
3063
|
*
|
|
@@ -3076,10 +3075,10 @@ interface Location$1 extends Path {
|
|
|
3076
3075
|
key: Key;
|
|
3077
3076
|
}
|
|
3078
3077
|
|
|
3079
|
-
type Size$
|
|
3080
|
-
type SizeValue = Size$
|
|
3081
|
-
type Margin$
|
|
3082
|
-
interface AnchorProps extends ResponsiveSizeProps<Size$
|
|
3078
|
+
type Size$o = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
3079
|
+
type SizeValue = Size$o | 'initial' | 'inherit' | 'unset' | 'revert' | 'revert-layer' | number;
|
|
3080
|
+
type Margin$f = number | string;
|
|
3081
|
+
interface AnchorProps extends ResponsiveSizeProps<Size$o, SizeValue>, ResponsiveMarginProps,
|
|
3083
3082
|
/** @deprecated Use palette */
|
|
3084
3083
|
ColorProperty<'color'>,
|
|
3085
3084
|
/** @deprecated Use children as function */
|
|
@@ -3165,7 +3164,7 @@ DisplayProperty {
|
|
|
3165
3164
|
*
|
|
3166
3165
|
* @general
|
|
3167
3166
|
* @default 'a' */
|
|
3168
|
-
component?:
|
|
3167
|
+
component?: ComponentElementType;
|
|
3169
3168
|
/**
|
|
3170
3169
|
* Размер.
|
|
3171
3170
|
*
|
|
@@ -3209,7 +3208,7 @@ DisplayProperty {
|
|
|
3209
3208
|
*
|
|
3210
3209
|
* @general
|
|
3211
3210
|
* @default undefined */
|
|
3212
|
-
sizes?: Partial<Record<Size$
|
|
3211
|
+
sizes?: Partial<Record<Size$o, React.CSSProperties>>;
|
|
3213
3212
|
/**
|
|
3214
3213
|
* Внешние отступы.
|
|
3215
3214
|
*
|
|
@@ -3217,41 +3216,41 @@ DisplayProperty {
|
|
|
3217
3216
|
*
|
|
3218
3217
|
* @general
|
|
3219
3218
|
* @default undefined */
|
|
3220
|
-
margin?: Margin$
|
|
3219
|
+
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];
|
|
3221
3220
|
/**
|
|
3222
3221
|
* Отступ для XXS брейкпоинта.
|
|
3223
3222
|
*
|
|
3224
3223
|
* @default undefined */
|
|
3225
|
-
marginXXS?: Margin$
|
|
3224
|
+
marginXXS?: Margin$f;
|
|
3226
3225
|
/**
|
|
3227
3226
|
* Отступ для XS брейкпоинта.
|
|
3228
3227
|
*
|
|
3229
3228
|
* @default undefined */
|
|
3230
|
-
marginXS?: Margin$
|
|
3229
|
+
marginXS?: Margin$f;
|
|
3231
3230
|
/**
|
|
3232
3231
|
* Отступ для S брейкпоинта.
|
|
3233
3232
|
*
|
|
3234
3233
|
* @default undefined */
|
|
3235
|
-
marginS?: Margin$
|
|
3234
|
+
marginS?: Margin$f;
|
|
3236
3235
|
/**
|
|
3237
3236
|
* Отступ для M брейкпоинта.
|
|
3238
3237
|
*
|
|
3239
3238
|
* @default undefined */
|
|
3240
|
-
marginM?: Margin$
|
|
3239
|
+
marginM?: Margin$f;
|
|
3241
3240
|
/**
|
|
3242
3241
|
* Отступ для L брейкпоинта.
|
|
3243
3242
|
*
|
|
3244
3243
|
* @default undefined */
|
|
3245
|
-
marginL?: Margin$
|
|
3244
|
+
marginL?: Margin$f;
|
|
3246
3245
|
/**
|
|
3247
3246
|
* Отступ для XL брейкпоинта.
|
|
3248
3247
|
*
|
|
3249
3248
|
* @default undefined */
|
|
3250
|
-
marginXL?: Margin$
|
|
3249
|
+
marginXL?: Margin$f;
|
|
3251
3250
|
/** @ignore @deprecated */
|
|
3252
3251
|
replace?: boolean;
|
|
3253
3252
|
/** @ignore */
|
|
3254
|
-
to?: string | Partial<Location
|
|
3253
|
+
to?: string | Partial<Location> | ((location: Location) => string | Partial<Location>);
|
|
3255
3254
|
/** @ignore @deprecated Use component */
|
|
3256
3255
|
as?: React.ElementType<any>;
|
|
3257
3256
|
/** @ignore @deprecated Use children */
|
|
@@ -3261,19 +3260,20 @@ DisplayProperty {
|
|
|
3261
3260
|
/** @ignore @deprecated */
|
|
3262
3261
|
wrapper?: boolean;
|
|
3263
3262
|
}
|
|
3264
|
-
type PolymorphicAnchorProps = PolymorphicComponentProps<'a', AnchorProps>;
|
|
3265
3263
|
|
|
3266
3264
|
/**
|
|
3267
3265
|
*
|
|
3268
3266
|
* Контрол многоцелевого назначения.
|
|
3269
3267
|
*
|
|
3270
|
-
* Полиморфный компонент.
|
|
3268
|
+
* Полиморфный компонент.
|
|
3269
|
+
*
|
|
3270
|
+
* Можно передать "ref" и атрибуты выбранного HTML-элемента (по умолчанию \<a\>).
|
|
3271
3271
|
*/
|
|
3272
|
-
declare const Anchor: <C extends React.ElementType = "a">(props:
|
|
3272
|
+
declare const Anchor: <C extends React.ElementType = "a">(props: PolymorphicPropsWithRef<C, AnchorProps>) => React.ReactElement | null;
|
|
3273
3273
|
|
|
3274
|
-
type Size$
|
|
3275
|
-
type Margin$
|
|
3276
|
-
interface ButtonBaseProps extends ResponsiveSizeProps<Size$
|
|
3274
|
+
type Size$n = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
3275
|
+
type Margin$e = number | string;
|
|
3276
|
+
interface ButtonBaseProps extends ResponsiveSizeProps<Size$n>, ResponsiveMarginProps, ResponsiveNamedProperty<'fluid', boolean>, ResponsiveNamedProperty<'width', 'auto' | 'l' | 'm' | 's' | 'xs' | number>,
|
|
3277
3277
|
/** @deprecated */
|
|
3278
3278
|
ColorProperty,
|
|
3279
3279
|
/** @deprecated */
|
|
@@ -3410,7 +3410,7 @@ ResponsiveNamedProperty<'height', 'l' | 'm' | 's' | 'xs' | number> {
|
|
|
3410
3410
|
* Использовать компонент ссылки из контекста вместо кнопки (`theme.link`).
|
|
3411
3411
|
*
|
|
3412
3412
|
* @default undefined */
|
|
3413
|
-
to?: string | Partial<Location
|
|
3413
|
+
to?: string | Partial<Location> | ((location: Location) => string | Partial<Location>);
|
|
3414
3414
|
/**
|
|
3415
3415
|
* Использовать элемент ссылки вместо кнопки (`<a>`).
|
|
3416
3416
|
*
|
|
@@ -3444,43 +3444,43 @@ ResponsiveNamedProperty<'height', 'l' | 'm' | 's' | 'xs' | number> {
|
|
|
3444
3444
|
*
|
|
3445
3445
|
* @general
|
|
3446
3446
|
* @default 'm' */
|
|
3447
|
-
size?: Size$
|
|
3447
|
+
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];
|
|
3448
3448
|
/**
|
|
3449
3449
|
* Размер для XXS брейкпоинта.
|
|
3450
3450
|
*
|
|
3451
3451
|
* @default undefined */
|
|
3452
|
-
sizeXXS?: Size$
|
|
3452
|
+
sizeXXS?: Size$n;
|
|
3453
3453
|
/**
|
|
3454
3454
|
* Размер для XS брейкпоинта.
|
|
3455
3455
|
*
|
|
3456
3456
|
* @default undefined */
|
|
3457
|
-
sizeXS?: Size$
|
|
3457
|
+
sizeXS?: Size$n;
|
|
3458
3458
|
/**
|
|
3459
3459
|
* Размер для S брейкпоинта.
|
|
3460
3460
|
*
|
|
3461
3461
|
* @default undefined */
|
|
3462
|
-
sizeS?: Size$
|
|
3462
|
+
sizeS?: Size$n;
|
|
3463
3463
|
/**
|
|
3464
3464
|
* Размер для M брейкпоинта.
|
|
3465
3465
|
*
|
|
3466
3466
|
* @default undefined */
|
|
3467
|
-
sizeM?: Size$
|
|
3467
|
+
sizeM?: Size$n;
|
|
3468
3468
|
/**
|
|
3469
3469
|
* Размер для L брейкпоинта.
|
|
3470
3470
|
*
|
|
3471
3471
|
* @default undefined */
|
|
3472
|
-
sizeL?: Size$
|
|
3472
|
+
sizeL?: Size$n;
|
|
3473
3473
|
/**
|
|
3474
3474
|
* Размер для XL брейкпоинта.
|
|
3475
3475
|
*
|
|
3476
3476
|
* @default undefined */
|
|
3477
|
-
sizeXL?: Size$
|
|
3477
|
+
sizeXL?: Size$n;
|
|
3478
3478
|
/**
|
|
3479
3479
|
* Модификация размеров.
|
|
3480
3480
|
*
|
|
3481
3481
|
* @general
|
|
3482
3482
|
* @default undefined */
|
|
3483
|
-
sizes?: Partial<Record<Size$
|
|
3483
|
+
sizes?: Partial<Record<Size$n, React.CSSProperties>>;
|
|
3484
3484
|
/**
|
|
3485
3485
|
* Внешние отступы.
|
|
3486
3486
|
*
|
|
@@ -3488,37 +3488,37 @@ ResponsiveNamedProperty<'height', 'l' | 'm' | 's' | 'xs' | number> {
|
|
|
3488
3488
|
*
|
|
3489
3489
|
* @general
|
|
3490
3490
|
* @default undefined */
|
|
3491
|
-
margin?: Margin$
|
|
3491
|
+
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];
|
|
3492
3492
|
/**
|
|
3493
3493
|
* Отступ для XXS брейкпоинта.
|
|
3494
3494
|
*
|
|
3495
3495
|
* @default undefined */
|
|
3496
|
-
marginXXS?: Margin$
|
|
3496
|
+
marginXXS?: Margin$e;
|
|
3497
3497
|
/**
|
|
3498
3498
|
* Отступ для XS брейкпоинта.
|
|
3499
3499
|
*
|
|
3500
3500
|
* @default undefined */
|
|
3501
|
-
marginXS?: Margin$
|
|
3501
|
+
marginXS?: Margin$e;
|
|
3502
3502
|
/**
|
|
3503
3503
|
* Отступ для S брейкпоинта.
|
|
3504
3504
|
*
|
|
3505
3505
|
* @default undefined */
|
|
3506
|
-
marginS?: Margin$
|
|
3506
|
+
marginS?: Margin$e;
|
|
3507
3507
|
/**
|
|
3508
3508
|
* Отступ для M брейкпоинта.
|
|
3509
3509
|
*
|
|
3510
3510
|
* @default undefined */
|
|
3511
|
-
marginM?: Margin$
|
|
3511
|
+
marginM?: Margin$e;
|
|
3512
3512
|
/**
|
|
3513
3513
|
* Отступ для L брейкпоинта.
|
|
3514
3514
|
*
|
|
3515
3515
|
* @default undefined */
|
|
3516
|
-
marginL?: Margin$
|
|
3516
|
+
marginL?: Margin$e;
|
|
3517
3517
|
/**
|
|
3518
3518
|
* Отступ для XL брейкпоинта.
|
|
3519
3519
|
*
|
|
3520
3520
|
* @default undefined */
|
|
3521
|
-
marginXL?: Margin$
|
|
3521
|
+
marginXL?: Margin$e;
|
|
3522
3522
|
/** @ignore */
|
|
3523
3523
|
primary?: boolean;
|
|
3524
3524
|
/** @ignore */
|
|
@@ -3574,7 +3574,7 @@ interface AlertProps extends BaseProps {
|
|
|
3574
3574
|
content: React.ReactNode;
|
|
3575
3575
|
onClick(): void;
|
|
3576
3576
|
};
|
|
3577
|
-
linkProps?:
|
|
3577
|
+
linkProps?: PolymorphicPropsWithRef<'a', AnchorProps>;
|
|
3578
3578
|
/** Use alert without icon */
|
|
3579
3579
|
noIcon?: boolean;
|
|
3580
3580
|
/** You can cancel the action if the timer has not expired yet */
|
|
@@ -3609,9 +3609,9 @@ interface AlertProps extends BaseProps {
|
|
|
3609
3609
|
|
|
3610
3610
|
declare const Alert: react.ForwardRefExoticComponent<AlertProps & react.RefAttributes<HTMLDivElement>>;
|
|
3611
3611
|
|
|
3612
|
-
type Size$
|
|
3613
|
-
type Margin$
|
|
3614
|
-
interface ArrowProps extends ResponsiveSizeProps<Size$
|
|
3612
|
+
type Size$m = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
3613
|
+
type Margin$d = number | string;
|
|
3614
|
+
interface ArrowProps extends ResponsiveSizeProps<Size$m, SizeValue$1>, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'button'>, 'children'> {
|
|
3615
3615
|
/**
|
|
3616
3616
|
* Версия компонента: v3 ("brand") или v2 ("default").
|
|
3617
3617
|
*
|
|
@@ -3693,43 +3693,43 @@ interface ArrowProps extends ResponsiveSizeProps<Size$l, SizeValue$1>, Responsiv
|
|
|
3693
3693
|
*
|
|
3694
3694
|
* @general
|
|
3695
3695
|
* @default 'l' */
|
|
3696
|
-
size?: Size$
|
|
3696
|
+
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];
|
|
3697
3697
|
/**
|
|
3698
3698
|
* Размер для XXS брейкпоинта.
|
|
3699
3699
|
*
|
|
3700
3700
|
* @default undefined */
|
|
3701
|
-
sizeXXS?: Size$
|
|
3701
|
+
sizeXXS?: Size$m;
|
|
3702
3702
|
/**
|
|
3703
3703
|
* Размер для XS брейкпоинта.
|
|
3704
3704
|
*
|
|
3705
3705
|
* @default undefined */
|
|
3706
|
-
sizeXS?: Size$
|
|
3706
|
+
sizeXS?: Size$m;
|
|
3707
3707
|
/**
|
|
3708
3708
|
* Размер для S брейкпоинта.
|
|
3709
3709
|
*
|
|
3710
3710
|
* @default undefined */
|
|
3711
|
-
sizeS?: Size$
|
|
3711
|
+
sizeS?: Size$m;
|
|
3712
3712
|
/**
|
|
3713
3713
|
* Размер для M брейкпоинта.
|
|
3714
3714
|
*
|
|
3715
3715
|
* @default undefined */
|
|
3716
|
-
sizeM?: Size$
|
|
3716
|
+
sizeM?: Size$m;
|
|
3717
3717
|
/**
|
|
3718
3718
|
* Размер для L брейкпоинта.
|
|
3719
3719
|
*
|
|
3720
3720
|
* @default undefined */
|
|
3721
|
-
sizeL?: Size$
|
|
3721
|
+
sizeL?: Size$m;
|
|
3722
3722
|
/**
|
|
3723
3723
|
* Размер для XL брейкпоинта.
|
|
3724
3724
|
*
|
|
3725
3725
|
* @default undefined */
|
|
3726
|
-
sizeXL?: Size$
|
|
3726
|
+
sizeXL?: Size$m;
|
|
3727
3727
|
/**
|
|
3728
3728
|
* Модификация размеров.
|
|
3729
3729
|
*
|
|
3730
3730
|
* @general
|
|
3731
3731
|
* @default undefined */
|
|
3732
|
-
sizes?: Partial<Record<Size$
|
|
3732
|
+
sizes?: Partial<Record<Size$m, React.CSSProperties>>;
|
|
3733
3733
|
/**
|
|
3734
3734
|
* Внешние отступы.
|
|
3735
3735
|
*
|
|
@@ -3737,37 +3737,37 @@ interface ArrowProps extends ResponsiveSizeProps<Size$l, SizeValue$1>, Responsiv
|
|
|
3737
3737
|
*
|
|
3738
3738
|
* @general
|
|
3739
3739
|
* @default undefined */
|
|
3740
|
-
margin?: Margin$
|
|
3740
|
+
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];
|
|
3741
3741
|
/**
|
|
3742
3742
|
* Отступ для XXS брейкпоинта.
|
|
3743
3743
|
*
|
|
3744
3744
|
* @default undefined */
|
|
3745
|
-
marginXXS?: Margin$
|
|
3745
|
+
marginXXS?: Margin$d;
|
|
3746
3746
|
/**
|
|
3747
3747
|
* Отступ для XS брейкпоинта.
|
|
3748
3748
|
*
|
|
3749
3749
|
* @default undefined */
|
|
3750
|
-
marginXS?: Margin$
|
|
3750
|
+
marginXS?: Margin$d;
|
|
3751
3751
|
/**
|
|
3752
3752
|
* Отступ для S брейкпоинта.
|
|
3753
3753
|
*
|
|
3754
3754
|
* @default undefined */
|
|
3755
|
-
marginS?: Margin$
|
|
3755
|
+
marginS?: Margin$d;
|
|
3756
3756
|
/**
|
|
3757
3757
|
* Отступ для M брейкпоинта.
|
|
3758
3758
|
*
|
|
3759
3759
|
* @default undefined */
|
|
3760
|
-
marginM?: Margin$
|
|
3760
|
+
marginM?: Margin$d;
|
|
3761
3761
|
/**
|
|
3762
3762
|
* Отступ для L брейкпоинта.
|
|
3763
3763
|
*
|
|
3764
3764
|
* @default undefined */
|
|
3765
|
-
marginL?: Margin$
|
|
3765
|
+
marginL?: Margin$d;
|
|
3766
3766
|
/**
|
|
3767
3767
|
* Отступ для XL брейкпоинта.
|
|
3768
3768
|
*
|
|
3769
3769
|
* @default undefined */
|
|
3770
|
-
marginXL?: Margin$
|
|
3770
|
+
marginXL?: Margin$d;
|
|
3771
3771
|
/** @ignore */
|
|
3772
3772
|
inverse?: boolean;
|
|
3773
3773
|
/** @ignore @deprecated */
|
|
@@ -3784,8 +3784,8 @@ interface ArrowProps extends ResponsiveSizeProps<Size$l, SizeValue$1>, Responsiv
|
|
|
3784
3784
|
*/
|
|
3785
3785
|
declare const Arrow: React.ForwardRefExoticComponent<ArrowProps>;
|
|
3786
3786
|
|
|
3787
|
-
type Size$
|
|
3788
|
-
interface InputCheckboxProps extends ResponsiveSizeProps<Size$
|
|
3787
|
+
type Size$l = 'xl' | 'l' | 'm' | 's' | 'xs';
|
|
3788
|
+
interface InputCheckboxProps extends ResponsiveSizeProps<Size$l>, Omit<React.ComponentPropsWithRef<'input'>, 'size' | 'children'> {
|
|
3789
3789
|
/**
|
|
3790
3790
|
* Текущее состояние контрола (использование включает контролируемый режим).
|
|
3791
3791
|
*
|
|
@@ -3862,43 +3862,43 @@ interface InputCheckboxProps extends ResponsiveSizeProps<Size$k>, Omit<React.Com
|
|
|
3862
3862
|
*
|
|
3863
3863
|
* @general
|
|
3864
3864
|
* @default 'm' */
|
|
3865
|
-
size?: Size$
|
|
3865
|
+
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];
|
|
3866
3866
|
/**
|
|
3867
3867
|
* Размер для XXS брейкпоинта.
|
|
3868
3868
|
*
|
|
3869
3869
|
* @default undefined */
|
|
3870
|
-
sizeXXS?: Size$
|
|
3870
|
+
sizeXXS?: Size$l;
|
|
3871
3871
|
/**
|
|
3872
3872
|
* Размер для XS брейкпоинта.
|
|
3873
3873
|
*
|
|
3874
3874
|
* @default undefined */
|
|
3875
|
-
sizeXS?: Size$
|
|
3875
|
+
sizeXS?: Size$l;
|
|
3876
3876
|
/**
|
|
3877
3877
|
* Размер для S брейкпоинта.
|
|
3878
3878
|
*
|
|
3879
3879
|
* @default undefined */
|
|
3880
|
-
sizeS?: Size$
|
|
3880
|
+
sizeS?: Size$l;
|
|
3881
3881
|
/**
|
|
3882
3882
|
* Размер для M брейкпоинта.
|
|
3883
3883
|
*
|
|
3884
3884
|
* @default undefined */
|
|
3885
|
-
sizeM?: Size$
|
|
3885
|
+
sizeM?: Size$l;
|
|
3886
3886
|
/**
|
|
3887
3887
|
* Размер для L брейкпоинта.
|
|
3888
3888
|
*
|
|
3889
3889
|
* @default undefined */
|
|
3890
|
-
sizeL?: Size$
|
|
3890
|
+
sizeL?: Size$l;
|
|
3891
3891
|
/**
|
|
3892
3892
|
* Размер для XL брейкпоинта.
|
|
3893
3893
|
*
|
|
3894
3894
|
* @default undefined */
|
|
3895
|
-
sizeXL?: Size$
|
|
3895
|
+
sizeXL?: Size$l;
|
|
3896
3896
|
/**
|
|
3897
3897
|
* Модификация размеров.
|
|
3898
3898
|
*
|
|
3899
3899
|
* @general
|
|
3900
3900
|
* @default undefined */
|
|
3901
|
-
sizes?: Partial<Record<Size$
|
|
3901
|
+
sizes?: Partial<Record<Size$l, React.CSSProperties>>;
|
|
3902
3902
|
/** @ignore @deprecated */
|
|
3903
3903
|
onColored?: boolean;
|
|
3904
3904
|
}
|
|
@@ -3947,8 +3947,8 @@ declare enum SizeInput {
|
|
|
3947
3947
|
xs = 140
|
|
3948
3948
|
}
|
|
3949
3949
|
|
|
3950
|
-
type Size$
|
|
3951
|
-
interface TextareaBaseProps extends ResponsiveSizeProps<Size$
|
|
3950
|
+
type Size$k = 'l' | 'm' | 's' | 'xs';
|
|
3951
|
+
interface TextareaBaseProps extends ResponsiveSizeProps<Size$k>, ResponsiveMarginProps, ColorProperty, ColorProperty<'placeholderColor'>, ResponsiveNamedProperty<'width', 'auto' | keyof typeof SizeInput | number> {
|
|
3952
3952
|
/**
|
|
3953
3953
|
* Автоматически адаптировать число строк под контент.
|
|
3954
3954
|
*
|
|
@@ -4103,7 +4103,7 @@ type ArrowBadgePalette = {
|
|
|
4103
4103
|
color: CSSColor;
|
|
4104
4104
|
backgroundColor: CSSColor;
|
|
4105
4105
|
};
|
|
4106
|
-
interface ArrowBadgeProps extends ResponsiveSizeProps<Size$
|
|
4106
|
+
interface ArrowBadgeProps extends ResponsiveSizeProps<Size$q, SizeValue$1>, ResponsiveMarginProps,
|
|
4107
4107
|
/** @deprecated Use palette */
|
|
4108
4108
|
ColorProperty<'color'>,
|
|
4109
4109
|
/** @deprecated Use palette */
|
|
@@ -4145,9 +4145,9 @@ ColorProperty<'backgroundColor'>, Omit<React.ComponentPropsWithRef<'div'>, 'colo
|
|
|
4145
4145
|
*/
|
|
4146
4146
|
declare const ArrowBadge: React.ForwardRefExoticComponent<ArrowBadgeProps>;
|
|
4147
4147
|
|
|
4148
|
-
type Size$
|
|
4149
|
-
type Margin$
|
|
4150
|
-
interface TabProps extends ResponsiveSizeProps<Size$
|
|
4148
|
+
type Size$j = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
4149
|
+
type Margin$c = number | string;
|
|
4150
|
+
interface TabProps extends ResponsiveSizeProps<Size$j, SizeValue$1>, ResponsiveMarginProps,
|
|
4151
4151
|
/** @deprecated Use palette */
|
|
4152
4152
|
ColorProperty<'color'>,
|
|
4153
4153
|
/** @deprecated Use palette */
|
|
@@ -4238,43 +4238,43 @@ ColorProperty<'borderColor'>, Omit<React.ComponentPropsWithRef<'button'>, 'color
|
|
|
4238
4238
|
*
|
|
4239
4239
|
* @general
|
|
4240
4240
|
* @default 'm' */
|
|
4241
|
-
size?: Size$
|
|
4241
|
+
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];
|
|
4242
4242
|
/**
|
|
4243
4243
|
* Размер для XXS брейкпоинта.
|
|
4244
4244
|
*
|
|
4245
4245
|
* @default undefined */
|
|
4246
|
-
sizeXXS?: Size$
|
|
4246
|
+
sizeXXS?: Size$j;
|
|
4247
4247
|
/**
|
|
4248
4248
|
* Размер для XS брейкпоинта.
|
|
4249
4249
|
*
|
|
4250
4250
|
* @default undefined */
|
|
4251
|
-
sizeXS?: Size$
|
|
4251
|
+
sizeXS?: Size$j;
|
|
4252
4252
|
/**
|
|
4253
4253
|
* Размер для S брейкпоинта.
|
|
4254
4254
|
*
|
|
4255
4255
|
* @default undefined */
|
|
4256
|
-
sizeS?: Size$
|
|
4256
|
+
sizeS?: Size$j;
|
|
4257
4257
|
/**
|
|
4258
4258
|
* Размер для M брейкпоинта.
|
|
4259
4259
|
*
|
|
4260
4260
|
* @default undefined */
|
|
4261
|
-
sizeM?: Size$
|
|
4261
|
+
sizeM?: Size$j;
|
|
4262
4262
|
/**
|
|
4263
4263
|
* Размер для L брейкпоинта.
|
|
4264
4264
|
*
|
|
4265
4265
|
* @default undefined */
|
|
4266
|
-
sizeL?: Size$
|
|
4266
|
+
sizeL?: Size$j;
|
|
4267
4267
|
/**
|
|
4268
4268
|
* Размер для XL брейкпоинта.
|
|
4269
4269
|
*
|
|
4270
4270
|
* @default undefined */
|
|
4271
|
-
sizeXL?: Size$
|
|
4271
|
+
sizeXL?: Size$j;
|
|
4272
4272
|
/**
|
|
4273
4273
|
* Модификация размеров.
|
|
4274
4274
|
*
|
|
4275
4275
|
* @general
|
|
4276
4276
|
* @default undefined */
|
|
4277
|
-
sizes?: Partial<Record<Size$
|
|
4277
|
+
sizes?: Partial<Record<Size$j, React.CSSProperties>>;
|
|
4278
4278
|
/**
|
|
4279
4279
|
* Внешние отступы.
|
|
4280
4280
|
*
|
|
@@ -4282,37 +4282,37 @@ ColorProperty<'borderColor'>, Omit<React.ComponentPropsWithRef<'button'>, 'color
|
|
|
4282
4282
|
*
|
|
4283
4283
|
* @general
|
|
4284
4284
|
* @default undefined */
|
|
4285
|
-
margin?: Margin$
|
|
4285
|
+
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];
|
|
4286
4286
|
/**
|
|
4287
4287
|
* Отступ для XXS брейкпоинта.
|
|
4288
4288
|
*
|
|
4289
4289
|
* @default undefined */
|
|
4290
|
-
marginXXS?: Margin$
|
|
4290
|
+
marginXXS?: Margin$c;
|
|
4291
4291
|
/**
|
|
4292
4292
|
* Отступ для XS брейкпоинта.
|
|
4293
4293
|
*
|
|
4294
4294
|
* @default undefined */
|
|
4295
|
-
marginXS?: Margin$
|
|
4295
|
+
marginXS?: Margin$c;
|
|
4296
4296
|
/**
|
|
4297
4297
|
* Отступ для S брейкпоинта.
|
|
4298
4298
|
*
|
|
4299
4299
|
* @default undefined */
|
|
4300
|
-
marginS?: Margin$
|
|
4300
|
+
marginS?: Margin$c;
|
|
4301
4301
|
/**
|
|
4302
4302
|
* Отступ для M брейкпоинта.
|
|
4303
4303
|
*
|
|
4304
4304
|
* @default undefined */
|
|
4305
|
-
marginM?: Margin$
|
|
4305
|
+
marginM?: Margin$c;
|
|
4306
4306
|
/**
|
|
4307
4307
|
* Отступ для L брейкпоинта.
|
|
4308
4308
|
*
|
|
4309
4309
|
* @default undefined */
|
|
4310
|
-
marginL?: Margin$
|
|
4310
|
+
marginL?: Margin$c;
|
|
4311
4311
|
/**
|
|
4312
4312
|
* Отступ для XL брейкпоинта.
|
|
4313
4313
|
*
|
|
4314
4314
|
* @default undefined */
|
|
4315
|
-
marginXL?: Margin$
|
|
4315
|
+
marginXL?: Margin$c;
|
|
4316
4316
|
/** @ignore */
|
|
4317
4317
|
compact?: boolean;
|
|
4318
4318
|
/** @ignore */
|
|
@@ -4337,7 +4337,7 @@ type BadgePalette = {
|
|
|
4337
4337
|
color: CSSColor;
|
|
4338
4338
|
backgroundColor: CSSColor;
|
|
4339
4339
|
};
|
|
4340
|
-
interface BadgeProps extends ResponsiveSizeProps<Size$
|
|
4340
|
+
interface BadgeProps extends ResponsiveSizeProps<Size$q, SizeValue$1>, ResponsiveMarginProps,
|
|
4341
4341
|
/** @deprecated Use palette */
|
|
4342
4342
|
ColorProperty,
|
|
4343
4343
|
/** @deprecated Use children as function */
|
|
@@ -4390,9 +4390,9 @@ DisplayProperty, Omit<React.ComponentPropsWithRef<'div'>, 'color' | 'children'>
|
|
|
4390
4390
|
*/
|
|
4391
4391
|
declare const Badge: React.ForwardRefExoticComponent<BadgeProps>;
|
|
4392
4392
|
|
|
4393
|
-
type Size$
|
|
4394
|
-
type Margin$
|
|
4395
|
-
interface IconButtonBaseProps extends ResponsiveSizeProps<Size$
|
|
4393
|
+
type Size$i = 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs';
|
|
4394
|
+
type Margin$b = number | string;
|
|
4395
|
+
interface IconButtonBaseProps extends ResponsiveSizeProps<Size$i>, ResponsiveMarginProps {
|
|
4396
4396
|
/**
|
|
4397
4397
|
* Кастомные цвета.
|
|
4398
4398
|
*
|
|
@@ -4450,43 +4450,43 @@ interface IconButtonBaseProps extends ResponsiveSizeProps<Size$h>, ResponsiveMar
|
|
|
4450
4450
|
*
|
|
4451
4451
|
* @general
|
|
4452
4452
|
* @default 'm' */
|
|
4453
|
-
size?: Size$
|
|
4453
|
+
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];
|
|
4454
4454
|
/**
|
|
4455
4455
|
* Размер для XXS брейкпоинта.
|
|
4456
4456
|
*
|
|
4457
4457
|
* @default undefined */
|
|
4458
|
-
sizeXXS?: Size$
|
|
4458
|
+
sizeXXS?: Size$i;
|
|
4459
4459
|
/**
|
|
4460
4460
|
* Размер для XS брейкпоинта.
|
|
4461
4461
|
*
|
|
4462
4462
|
* @default undefined */
|
|
4463
|
-
sizeXS?: Size$
|
|
4463
|
+
sizeXS?: Size$i;
|
|
4464
4464
|
/**
|
|
4465
4465
|
* Размер для S брейкпоинта.
|
|
4466
4466
|
*
|
|
4467
4467
|
* @default undefined */
|
|
4468
|
-
sizeS?: Size$
|
|
4468
|
+
sizeS?: Size$i;
|
|
4469
4469
|
/**
|
|
4470
4470
|
* Размер для M брейкпоинта.
|
|
4471
4471
|
*
|
|
4472
4472
|
* @default undefined */
|
|
4473
|
-
sizeM?: Size$
|
|
4473
|
+
sizeM?: Size$i;
|
|
4474
4474
|
/**
|
|
4475
4475
|
* Размер для L брейкпоинта.
|
|
4476
4476
|
*
|
|
4477
4477
|
* @default undefined */
|
|
4478
|
-
sizeL?: Size$
|
|
4478
|
+
sizeL?: Size$i;
|
|
4479
4479
|
/**
|
|
4480
4480
|
* Размер для XL брейкпоинта.
|
|
4481
4481
|
*
|
|
4482
4482
|
* @default undefined */
|
|
4483
|
-
sizeXL?: Size$
|
|
4483
|
+
sizeXL?: Size$i;
|
|
4484
4484
|
/**
|
|
4485
4485
|
* Модификация размеров.
|
|
4486
4486
|
*
|
|
4487
4487
|
* @general
|
|
4488
4488
|
* @default undefined */
|
|
4489
|
-
sizes?: Partial<Record<Size$
|
|
4489
|
+
sizes?: Partial<Record<Size$i, React.CSSProperties>>;
|
|
4490
4490
|
/**
|
|
4491
4491
|
* Внешние отступы.
|
|
4492
4492
|
*
|
|
@@ -4494,37 +4494,37 @@ interface IconButtonBaseProps extends ResponsiveSizeProps<Size$h>, ResponsiveMar
|
|
|
4494
4494
|
*
|
|
4495
4495
|
* @general
|
|
4496
4496
|
* @default undefined */
|
|
4497
|
-
margin?: Margin$
|
|
4497
|
+
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];
|
|
4498
4498
|
/**
|
|
4499
4499
|
* Отступ для XXS брейкпоинта.
|
|
4500
4500
|
*
|
|
4501
4501
|
* @default undefined */
|
|
4502
|
-
marginXXS?: Margin$
|
|
4502
|
+
marginXXS?: Margin$b;
|
|
4503
4503
|
/**
|
|
4504
4504
|
* Отступ для XS брейкпоинта.
|
|
4505
4505
|
*
|
|
4506
4506
|
* @default undefined */
|
|
4507
|
-
marginXS?: Margin$
|
|
4507
|
+
marginXS?: Margin$b;
|
|
4508
4508
|
/**
|
|
4509
4509
|
* Отступ для S брейкпоинта.
|
|
4510
4510
|
*
|
|
4511
4511
|
* @default undefined */
|
|
4512
|
-
marginS?: Margin$
|
|
4512
|
+
marginS?: Margin$b;
|
|
4513
4513
|
/**
|
|
4514
4514
|
* Отступ для M брейкпоинта.
|
|
4515
4515
|
*
|
|
4516
4516
|
* @default undefined */
|
|
4517
|
-
marginM?: Margin$
|
|
4517
|
+
marginM?: Margin$b;
|
|
4518
4518
|
/**
|
|
4519
4519
|
* Отступ для L брейкпоинта.
|
|
4520
4520
|
*
|
|
4521
4521
|
* @default undefined */
|
|
4522
|
-
marginL?: Margin$
|
|
4522
|
+
marginL?: Margin$b;
|
|
4523
4523
|
/**
|
|
4524
4524
|
* Отступ для XL брейкпоинта.
|
|
4525
4525
|
*
|
|
4526
4526
|
* @default undefined */
|
|
4527
|
-
marginXL?: Margin$
|
|
4527
|
+
marginXL?: Margin$b;
|
|
4528
4528
|
}
|
|
4529
4529
|
type IconButtonProps = IconButtonBaseProps & Omit<React.ComponentPropsWithRef<'button'>, keyof IconButtonBaseProps>;
|
|
4530
4530
|
|
|
@@ -4767,14 +4767,14 @@ declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps> & {
|
|
|
4767
4767
|
Component: typeof TooltipComponent;
|
|
4768
4768
|
};
|
|
4769
4769
|
|
|
4770
|
-
type Size$
|
|
4770
|
+
type Size$h = 'xl' | 'l' | 'm' | 's' | 'xs';
|
|
4771
4771
|
type Layout$5 = 'vertical' | 'horizontal';
|
|
4772
4772
|
type PopoverComponentPalette = {
|
|
4773
4773
|
color: CSSColor;
|
|
4774
4774
|
backgroundColor: CSSColor;
|
|
4775
4775
|
shadowColor: CSSColor;
|
|
4776
4776
|
};
|
|
4777
|
-
interface PopoverComponentBaseProps extends ResponsiveSizeProps<Size$
|
|
4777
|
+
interface PopoverComponentBaseProps extends ResponsiveSizeProps<Size$h>, ResponsiveLayoutProps<Layout$5> {
|
|
4778
4778
|
/**
|
|
4779
4779
|
* Кастомные цвета.
|
|
4780
4780
|
*
|
|
@@ -4885,9 +4885,9 @@ type PopoverComponentProps = PopoverComponentBaseProps & Omit<React.ComponentPro
|
|
|
4885
4885
|
|
|
4886
4886
|
declare const PopoverComponent: React.ForwardRefExoticComponent<PopoverComponentProps>;
|
|
4887
4887
|
|
|
4888
|
-
type Size$
|
|
4888
|
+
type Size$g = 's' | 'xl' | 'l' | 'm' | 'xs';
|
|
4889
4889
|
type Layout$4 = 'vertical' | 'horizontal';
|
|
4890
|
-
interface PopoverBaseProps extends ResponsiveSizeProps<Size$
|
|
4890
|
+
interface PopoverBaseProps extends ResponsiveSizeProps<Size$g>, ResponsiveLayoutProps<Layout$4> {
|
|
4891
4891
|
/**
|
|
4892
4892
|
* Кастомные цвета.
|
|
4893
4893
|
*
|
|
@@ -5103,43 +5103,43 @@ interface PopoverBaseProps extends ResponsiveSizeProps<Size$f>, ResponsiveLayout
|
|
|
5103
5103
|
*
|
|
5104
5104
|
* @general
|
|
5105
5105
|
* @default 's' */
|
|
5106
|
-
size?: Size$
|
|
5106
|
+
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];
|
|
5107
5107
|
/**
|
|
5108
5108
|
* Размер для XXS брейкпоинта.
|
|
5109
5109
|
*
|
|
5110
5110
|
* @default undefined */
|
|
5111
|
-
sizeXXS?: Size$
|
|
5111
|
+
sizeXXS?: Size$g;
|
|
5112
5112
|
/**
|
|
5113
5113
|
* Размер для XS брейкпоинта.
|
|
5114
5114
|
*
|
|
5115
5115
|
* @default undefined */
|
|
5116
|
-
sizeXS?: Size$
|
|
5116
|
+
sizeXS?: Size$g;
|
|
5117
5117
|
/**
|
|
5118
5118
|
* Размер для S брейкпоинта.
|
|
5119
5119
|
*
|
|
5120
5120
|
* @default undefined */
|
|
5121
|
-
sizeS?: Size$
|
|
5121
|
+
sizeS?: Size$g;
|
|
5122
5122
|
/**
|
|
5123
5123
|
* Размер для M брейкпоинта.
|
|
5124
5124
|
*
|
|
5125
5125
|
* @default undefined */
|
|
5126
|
-
sizeM?: Size$
|
|
5126
|
+
sizeM?: Size$g;
|
|
5127
5127
|
/**
|
|
5128
5128
|
* Размер для L брейкпоинта.
|
|
5129
5129
|
*
|
|
5130
5130
|
* @default undefined */
|
|
5131
|
-
sizeL?: Size$
|
|
5131
|
+
sizeL?: Size$g;
|
|
5132
5132
|
/**
|
|
5133
5133
|
* Размер для XL брейкпоинта.
|
|
5134
5134
|
*
|
|
5135
5135
|
* @default undefined */
|
|
5136
|
-
sizeXL?: Size$
|
|
5136
|
+
sizeXL?: Size$g;
|
|
5137
5137
|
/**
|
|
5138
5138
|
* Модификация размеров.
|
|
5139
5139
|
*
|
|
5140
5140
|
* @general
|
|
5141
5141
|
* @default undefined */
|
|
5142
|
-
sizes?: Partial<Record<Size$
|
|
5142
|
+
sizes?: Partial<Record<Size$g, React.CSSProperties>>;
|
|
5143
5143
|
/**
|
|
5144
5144
|
* Вариант шаблона лейаута.
|
|
5145
5145
|
*
|
|
@@ -5307,92 +5307,298 @@ interface ProgressCircleProps$1 extends ResponsiveSizeProps<ProgressCircleSize>,
|
|
|
5307
5307
|
*/
|
|
5308
5308
|
declare const ProgressCircle$1: React.ForwardRefExoticComponent<ProgressCircleProps$1>;
|
|
5309
5309
|
|
|
5310
|
-
type
|
|
5310
|
+
type SkeletonPalette = {
|
|
5311
5311
|
color: CSSColor;
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
backgroundColorHover: CSSColor;
|
|
5315
|
-
mediaPlaceholderColor: CSSColor;
|
|
5312
|
+
gradientColor: CSSColor;
|
|
5313
|
+
gradientHighlightColor: CSSColor;
|
|
5316
5314
|
};
|
|
5317
|
-
interface
|
|
5318
|
-
/**
|
|
5319
|
-
|
|
5320
|
-
/** Main text content or render function */
|
|
5321
|
-
children?: React.ReactNode | ((props: Required<Pick<ListItemProps, 'textProps' | 'captionProps'>>) => React.ReactNode);
|
|
5322
|
-
/** Control to render (checkbox, radio, button, etc.) */
|
|
5323
|
-
control?: JSX.Element | ((props: Required<Pick<ListItemProps, 'size'>> & Pick<ListItemProps, 'sizeXXS' | 'sizeXS' | 'sizeS' | 'sizeM' | 'sizeL' | 'sizeXL' | 'onColored' | 'disabled'>) => JSX.Element);
|
|
5324
|
-
/** Control position on horizontal axis */
|
|
5325
|
-
controlPosition?: 'left' | 'right';
|
|
5326
|
-
/** Icons before and after content */
|
|
5327
|
-
icon?: JSX.Element | IconName | [Nullable<JSX.Element | IconName>, Nullable<JSX.Element | IconName>];
|
|
5328
|
-
/** Props for icon components */
|
|
5329
|
-
iconProps?: IconProps;
|
|
5330
|
-
/** Media to display */
|
|
5331
|
-
media?: React.ComponentPropsWithoutRef<'img'> | JSX.Element;
|
|
5332
|
-
/** Media border-radius */
|
|
5333
|
-
mediaBorderRadius?: string | number;
|
|
5334
|
-
/** Main text (alternative to children) */
|
|
5335
|
-
text?: React.ReactNode;
|
|
5336
|
-
/** Props for main text component */
|
|
5337
|
-
textProps?: TextProps;
|
|
5338
|
-
/** Additional text */
|
|
5339
|
-
caption?: React.ReactNode;
|
|
5340
|
-
/** Props for caption text component */
|
|
5341
|
-
captionProps?: TextProps;
|
|
5342
|
-
/** Caption position relative to main text */
|
|
5343
|
-
captionPosition?: 'top' | 'bottom';
|
|
5344
|
-
/** Additional components */
|
|
5345
|
-
addon?: React.ReactNode;
|
|
5315
|
+
interface SkeletonProps extends ResponsiveMarginProps, React.ComponentPropsWithRef<'div'> {
|
|
5316
|
+
/** Element to infer sizing */
|
|
5317
|
+
children?: React.ReactNode;
|
|
5346
5318
|
/** Custom colors */
|
|
5347
|
-
palette?: Partial<Record<keyof
|
|
5319
|
+
palette?: Partial<Record<keyof SkeletonPalette, Color>>;
|
|
5320
|
+
/** Display 'inline-block' */
|
|
5321
|
+
inline?: boolean;
|
|
5322
|
+
/** Root border-radius: 50% */
|
|
5323
|
+
round?: boolean;
|
|
5348
5324
|
/** Root border-radius */
|
|
5349
5325
|
borderRadius?: string | number;
|
|
5350
|
-
/**
|
|
5351
|
-
|
|
5326
|
+
/** Root width */
|
|
5327
|
+
width?: string | number;
|
|
5328
|
+
/** Root height */
|
|
5329
|
+
height?: string | number;
|
|
5330
|
+
/** Value (ms) to control animation speed */
|
|
5331
|
+
animationDuration?: number;
|
|
5332
|
+
/** Delay to animation start (ms) to avoid flicker at fast connection */
|
|
5333
|
+
animationDelay?: number;
|
|
5352
5334
|
/** Appearance variant */
|
|
5353
5335
|
primary?: boolean;
|
|
5354
5336
|
/** Appearance variant */
|
|
5355
5337
|
secondary?: boolean;
|
|
5356
5338
|
/** Appearance variant */
|
|
5339
|
+
onColored?: boolean;
|
|
5340
|
+
/** Root node type */
|
|
5341
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
5342
|
+
}
|
|
5343
|
+
|
|
5344
|
+
/**
|
|
5345
|
+
*
|
|
5346
|
+
* Component accepts all \<div\> attributes.
|
|
5347
|
+
*
|
|
5348
|
+
* Responsive "margin" props are supported.
|
|
5349
|
+
*
|
|
5350
|
+
* Exposed "ref" attached to root node.
|
|
5351
|
+
*
|
|
5352
|
+
* See full [SkeletonProps](https://github.com/foxford/ui/blob/master/packages/ui/src/components/Skeleton/types.ts)
|
|
5353
|
+
*/
|
|
5354
|
+
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps>;
|
|
5355
|
+
|
|
5356
|
+
type Size$f = 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
5357
|
+
type Margin$a = number | string;
|
|
5358
|
+
interface ListItemProps extends ResponsiveSizeProps<Size$f>, ResponsiveMarginProps {
|
|
5359
|
+
/**
|
|
5360
|
+
* Компонент рутового элемента.
|
|
5361
|
+
*
|
|
5362
|
+
* @general
|
|
5363
|
+
* @default 'button' */
|
|
5364
|
+
component?: ComponentElementType;
|
|
5365
|
+
/**
|
|
5366
|
+
* Кастомные цвета.
|
|
5367
|
+
*
|
|
5368
|
+
* @general
|
|
5369
|
+
* @default {} */
|
|
5370
|
+
palette?: {
|
|
5371
|
+
color?: Color;
|
|
5372
|
+
colorHover?: Color;
|
|
5373
|
+
colorActive?: Color;
|
|
5374
|
+
colorDisabled?: Color;
|
|
5375
|
+
backgroundColor?: Color;
|
|
5376
|
+
backgroundColorHover?: Color;
|
|
5377
|
+
backgroundColorActive?: Color;
|
|
5378
|
+
backgroundColorDisabled?: Color;
|
|
5379
|
+
};
|
|
5380
|
+
/**
|
|
5381
|
+
* Кастомный рутовый блок.
|
|
5382
|
+
*
|
|
5383
|
+
* Использование компонента только как контейнера.
|
|
5384
|
+
*
|
|
5385
|
+
* @slot
|
|
5386
|
+
* @default undefined */
|
|
5387
|
+
children?: React.ReactElement | ((rootProps: {
|
|
5388
|
+
textProps: TextProps;
|
|
5389
|
+
captionProps: TextProps;
|
|
5390
|
+
skeletonProps: SkeletonProps;
|
|
5391
|
+
}) => React.ReactNode);
|
|
5392
|
+
/**
|
|
5393
|
+
* Кастомный контентный блок.
|
|
5394
|
+
*
|
|
5395
|
+
* @slot
|
|
5396
|
+
* @default undefined */
|
|
5397
|
+
content?: React.ReactElement | ((contentProps: {
|
|
5398
|
+
textProps: TextProps;
|
|
5399
|
+
captionProps: TextProps;
|
|
5400
|
+
}) => React.ReactNode);
|
|
5401
|
+
/**
|
|
5402
|
+
* Основной текстовый контент.
|
|
5403
|
+
*
|
|
5404
|
+
* Если передана строка или число используется встроенная типографика.
|
|
5405
|
+
*
|
|
5406
|
+
* @slot
|
|
5407
|
+
* @default undefined */
|
|
5408
|
+
text?: React.ReactNode | ((textProps: TextProps) => React.ReactNode);
|
|
5409
|
+
/**
|
|
5410
|
+
* Дополнительный тектовый контент.
|
|
5411
|
+
*
|
|
5412
|
+
* Если передана строка или число используется встроенная типографика.
|
|
5413
|
+
*
|
|
5414
|
+
* @slot
|
|
5415
|
+
* @default undefined */
|
|
5416
|
+
caption?: React.ReactNode | ((captionProps: TextProps) => React.ReactNode);
|
|
5417
|
+
/**
|
|
5418
|
+
* Дополнительные элементы слева.
|
|
5419
|
+
*
|
|
5420
|
+
* @slot
|
|
5421
|
+
* @default undefined */
|
|
5422
|
+
addonLeft?: React.ReactElement;
|
|
5423
|
+
/**
|
|
5424
|
+
* Дополнительные элементы справа.
|
|
5425
|
+
*
|
|
5426
|
+
* @slot
|
|
5427
|
+
* @default undefined */
|
|
5428
|
+
addonRight?: React.ReactElement;
|
|
5429
|
+
/**
|
|
5430
|
+
* Кастомный лейаут при загрузке.
|
|
5431
|
+
*
|
|
5432
|
+
* @slot
|
|
5433
|
+
* @default undefined */
|
|
5434
|
+
loadingLayout?: React.ReactElement | ((loadingLayoutProps: {
|
|
5435
|
+
textProps: TextProps;
|
|
5436
|
+
captionProps: TextProps;
|
|
5437
|
+
skeletonProps: SkeletonProps;
|
|
5438
|
+
}) => React.ReactNode);
|
|
5439
|
+
/**
|
|
5440
|
+
* Вариант цветовой схемы.
|
|
5441
|
+
*
|
|
5442
|
+
* @general
|
|
5443
|
+
* @default true */
|
|
5444
|
+
primary?: boolean;
|
|
5445
|
+
/**
|
|
5446
|
+
* Вариант цветовой схемы.
|
|
5447
|
+
*
|
|
5448
|
+
* @general
|
|
5449
|
+
* @default false */
|
|
5450
|
+
secondary?: boolean;
|
|
5451
|
+
/**
|
|
5452
|
+
* Вариант цветовой схемы.
|
|
5453
|
+
*
|
|
5454
|
+
* @general
|
|
5455
|
+
* @default false */
|
|
5357
5456
|
danger?: boolean;
|
|
5358
|
-
/**
|
|
5457
|
+
/**
|
|
5458
|
+
* Вариант цветовой схемы.
|
|
5459
|
+
*
|
|
5460
|
+
* @general
|
|
5461
|
+
* @default false */
|
|
5359
5462
|
success?: boolean;
|
|
5360
|
-
/**
|
|
5463
|
+
/**
|
|
5464
|
+
* Активное визуальное состояние.
|
|
5465
|
+
*
|
|
5466
|
+
* @default false */
|
|
5361
5467
|
active?: boolean;
|
|
5362
|
-
/**
|
|
5363
|
-
|
|
5364
|
-
|
|
5468
|
+
/**
|
|
5469
|
+
* Вариант цветовой схемы.
|
|
5470
|
+
*
|
|
5471
|
+
* @general
|
|
5472
|
+
* @default false */
|
|
5473
|
+
contrast?: boolean;
|
|
5474
|
+
/**
|
|
5475
|
+
* Вариант цветовой схемы.
|
|
5476
|
+
*
|
|
5477
|
+
* Интерактивность будет отключена если рутовый элемент поддерживает атрибут.
|
|
5478
|
+
*
|
|
5479
|
+
* @general
|
|
5480
|
+
* @default false */
|
|
5365
5481
|
disabled?: boolean;
|
|
5366
|
-
/**
|
|
5482
|
+
/**
|
|
5483
|
+
* Использование скелетонов вместо контента.
|
|
5484
|
+
*
|
|
5485
|
+
* @general
|
|
5486
|
+
* @default false */
|
|
5367
5487
|
loading?: boolean;
|
|
5368
|
-
/**
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
/**
|
|
5375
|
-
|
|
5488
|
+
/**
|
|
5489
|
+
* Скругление краев (px).
|
|
5490
|
+
*
|
|
5491
|
+
* @general
|
|
5492
|
+
* @default 0 */
|
|
5493
|
+
borderRadius?: number;
|
|
5494
|
+
/**
|
|
5495
|
+
* Отображение иконки шеврона справа.
|
|
5496
|
+
*
|
|
5497
|
+
* @general
|
|
5498
|
+
* @default false */
|
|
5499
|
+
withChevron?: boolean;
|
|
5500
|
+
/**
|
|
5501
|
+
* Размер.
|
|
5502
|
+
*
|
|
5503
|
+
* Использование кортежей включает применение размеров в зависимости от ширины вьюпорта.
|
|
5504
|
+
*
|
|
5505
|
+
* @general
|
|
5506
|
+
* @default 's' */
|
|
5507
|
+
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];
|
|
5508
|
+
/**
|
|
5509
|
+
* Размер для XXS брейкпоинта.
|
|
5510
|
+
*
|
|
5511
|
+
* @default undefined */
|
|
5512
|
+
sizeXXS?: Size$f;
|
|
5513
|
+
/**
|
|
5514
|
+
* Размер для XS брейкпоинта.
|
|
5515
|
+
*
|
|
5516
|
+
* @default undefined */
|
|
5517
|
+
sizeXS?: Size$f;
|
|
5518
|
+
/**
|
|
5519
|
+
* Размер для S брейкпоинта.
|
|
5520
|
+
*
|
|
5521
|
+
* @default undefined */
|
|
5522
|
+
sizeS?: Size$f;
|
|
5523
|
+
/**
|
|
5524
|
+
* Размер для M брейкпоинта.
|
|
5525
|
+
*
|
|
5526
|
+
* @default undefined */
|
|
5527
|
+
sizeM?: Size$f;
|
|
5528
|
+
/**
|
|
5529
|
+
* Размер для L брейкпоинта.
|
|
5530
|
+
*
|
|
5531
|
+
* @default undefined */
|
|
5532
|
+
sizeL?: Size$f;
|
|
5533
|
+
/**
|
|
5534
|
+
* Размер для XL брейкпоинта.
|
|
5535
|
+
*
|
|
5536
|
+
* @default undefined */
|
|
5537
|
+
sizeXL?: Size$f;
|
|
5538
|
+
/**
|
|
5539
|
+
* Модификация размеров.
|
|
5540
|
+
*
|
|
5541
|
+
* @general
|
|
5542
|
+
* @default undefined */
|
|
5543
|
+
sizes?: Partial<Record<Size$f, React.CSSProperties>>;
|
|
5544
|
+
/**
|
|
5545
|
+
* Внешние отступы.
|
|
5546
|
+
*
|
|
5547
|
+
* Использование кортежей включает применение отступов в зависимости от ширины вьюпорта.
|
|
5548
|
+
*
|
|
5549
|
+
* @general
|
|
5550
|
+
* @default undefined */
|
|
5551
|
+
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];
|
|
5552
|
+
/**
|
|
5553
|
+
* Отступ для XXS брейкпоинта.
|
|
5554
|
+
*
|
|
5555
|
+
* @default undefined */
|
|
5556
|
+
marginXXS?: Margin$a;
|
|
5557
|
+
/**
|
|
5558
|
+
* Отступ для XS брейкпоинта.
|
|
5559
|
+
*
|
|
5560
|
+
* @default undefined */
|
|
5561
|
+
marginXS?: Margin$a;
|
|
5562
|
+
/**
|
|
5563
|
+
* Отступ для S брейкпоинта.
|
|
5564
|
+
*
|
|
5565
|
+
* @default undefined */
|
|
5566
|
+
marginS?: Margin$a;
|
|
5567
|
+
/**
|
|
5568
|
+
* Отступ для M брейкпоинта.
|
|
5569
|
+
*
|
|
5570
|
+
* @default undefined */
|
|
5571
|
+
marginM?: Margin$a;
|
|
5572
|
+
/**
|
|
5573
|
+
* Отступ для L брейкпоинта.
|
|
5574
|
+
*
|
|
5575
|
+
* @default undefined */
|
|
5576
|
+
marginL?: Margin$a;
|
|
5577
|
+
/**
|
|
5578
|
+
* Отступ для XL брейкпоинта.
|
|
5579
|
+
*
|
|
5580
|
+
* @default undefined */
|
|
5581
|
+
marginXL?: Margin$a;
|
|
5376
5582
|
}
|
|
5377
5583
|
|
|
5378
5584
|
/**
|
|
5379
5585
|
*
|
|
5380
|
-
*
|
|
5586
|
+
* *v1.0.0*
|
|
5381
5587
|
*
|
|
5382
|
-
*
|
|
5588
|
+
* Компонент для вывода элемента списка.
|
|
5383
5589
|
*
|
|
5384
|
-
*
|
|
5590
|
+
* Полиморфный компонент.
|
|
5385
5591
|
*
|
|
5386
|
-
*
|
|
5592
|
+
* Можно передать "ref" и атрибуты выбранного HTML-элемента (по умолчанию \<button\>).
|
|
5387
5593
|
*/
|
|
5388
|
-
declare const ListItem: React.
|
|
5594
|
+
declare const ListItem: <C extends React.ElementType = "button">(props: PolymorphicPropsWithRef<C, ListItemProps>) => React.ReactElement | null;
|
|
5389
5595
|
|
|
5390
5596
|
type IndicatorPalette = {
|
|
5391
5597
|
color: CSSColor;
|
|
5392
5598
|
backgroundColor: CSSColor;
|
|
5393
5599
|
shadowColor: CSSColor;
|
|
5394
5600
|
};
|
|
5395
|
-
interface IndicatorProps extends ResponsiveSizeProps<Size$
|
|
5601
|
+
interface IndicatorProps extends ResponsiveSizeProps<Size$q, SizeValue$1>, ResponsiveMarginProps, React.ComponentPropsWithRef<'span'> {
|
|
5396
5602
|
/** Custom colors */
|
|
5397
5603
|
palette?: Partial<Record<keyof IndicatorPalette, Color>>;
|
|
5398
5604
|
/** Text content */
|
|
@@ -6561,7 +6767,7 @@ interface NotificationProps extends ResponsiveSizeProps<Size$a>, ResponsiveLayou
|
|
|
6561
6767
|
* @slot
|
|
6562
6768
|
* @default undefined */
|
|
6563
6769
|
addon?: React.ReactNode | ((addonProps: {
|
|
6564
|
-
anchorProps:
|
|
6770
|
+
anchorProps: AnchorProps;
|
|
6565
6771
|
buttonProps: ButtonProps;
|
|
6566
6772
|
}) => React.ReactNode);
|
|
6567
6773
|
/**
|
|
@@ -6580,7 +6786,7 @@ interface NotificationProps extends ResponsiveSizeProps<Size$a>, ResponsiveLayou
|
|
|
6580
6786
|
titleProps: TextProps;
|
|
6581
6787
|
textProps: TextProps;
|
|
6582
6788
|
buttonProps: ButtonProps;
|
|
6583
|
-
anchorProps:
|
|
6789
|
+
anchorProps: AnchorProps;
|
|
6584
6790
|
discardButtonProps: IconButtonProps;
|
|
6585
6791
|
}) => React.ReactNode);
|
|
6586
6792
|
/**
|
|
@@ -7961,7 +8167,7 @@ declare function useScrollLock(params: ScrollLockParams): void;
|
|
|
7961
8167
|
|
|
7962
8168
|
declare const vAlign: (align: "top" | "middle" | "bottom" | "text-top" | "text-bottom" | "baseline") => styled_components.FlattenSimpleInterpolation;
|
|
7963
8169
|
|
|
7964
|
-
declare function buildMediaQuery(value: number | Size$
|
|
8170
|
+
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>;
|
|
7965
8171
|
declare const desktopFirst: (a: string, b: string) => number;
|
|
7966
8172
|
declare const mobileFirst: (a: string, b: string) => number;
|
|
7967
8173
|
|
|
@@ -10010,52 +10216,6 @@ interface FormLabelProps extends ResponsiveSizeProps<Size$2>, ResponsiveMarginPr
|
|
|
10010
10216
|
*/
|
|
10011
10217
|
declare const FormLabel: React.ForwardRefExoticComponent<FormLabelProps>;
|
|
10012
10218
|
|
|
10013
|
-
type SkeletonPalette = {
|
|
10014
|
-
color: CSSColor;
|
|
10015
|
-
gradientColor: CSSColor;
|
|
10016
|
-
gradientHighlightColor: CSSColor;
|
|
10017
|
-
};
|
|
10018
|
-
interface SkeletonProps extends ResponsiveMarginProps, React.ComponentPropsWithRef<'div'> {
|
|
10019
|
-
/** Element to infer sizing */
|
|
10020
|
-
children?: React.ReactNode;
|
|
10021
|
-
/** Custom colors */
|
|
10022
|
-
palette?: Partial<Record<keyof SkeletonPalette, Color>>;
|
|
10023
|
-
/** Display 'inline-block' */
|
|
10024
|
-
inline?: boolean;
|
|
10025
|
-
/** Root border-radius: 50% */
|
|
10026
|
-
round?: boolean;
|
|
10027
|
-
/** Root border-radius */
|
|
10028
|
-
borderRadius?: string | number;
|
|
10029
|
-
/** Root width */
|
|
10030
|
-
width?: string | number;
|
|
10031
|
-
/** Root height */
|
|
10032
|
-
height?: string | number;
|
|
10033
|
-
/** Value (ms) to control animation speed */
|
|
10034
|
-
animationDuration?: number;
|
|
10035
|
-
/** Delay to animation start (ms) to avoid flicker at fast connection */
|
|
10036
|
-
animationDelay?: number;
|
|
10037
|
-
/** Appearance variant */
|
|
10038
|
-
primary?: boolean;
|
|
10039
|
-
/** Appearance variant */
|
|
10040
|
-
secondary?: boolean;
|
|
10041
|
-
/** Appearance variant */
|
|
10042
|
-
onColored?: boolean;
|
|
10043
|
-
/** Root node type */
|
|
10044
|
-
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
10045
|
-
}
|
|
10046
|
-
|
|
10047
|
-
/**
|
|
10048
|
-
*
|
|
10049
|
-
* Component accepts all \<div\> attributes.
|
|
10050
|
-
*
|
|
10051
|
-
* Responsive "margin" props are supported.
|
|
10052
|
-
*
|
|
10053
|
-
* Exposed "ref" attached to root node.
|
|
10054
|
-
*
|
|
10055
|
-
* See full [SkeletonProps](https://github.com/foxford/ui/blob/master/packages/ui/src/components/Skeleton/types.ts)
|
|
10056
|
-
*/
|
|
10057
|
-
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps>;
|
|
10058
|
-
|
|
10059
10219
|
declare const FuseSearchKeys: {
|
|
10060
10220
|
readonly text: "text";
|
|
10061
10221
|
readonly label: "label";
|
|
@@ -10297,7 +10457,7 @@ interface DropdownBaseProps extends ResponsiveSizeProps<Size$1>, ResponsiveMargi
|
|
|
10297
10457
|
*
|
|
10298
10458
|
* @general
|
|
10299
10459
|
* @default undefined */
|
|
10300
|
-
renderOption?: (option: DropdownOption, optionProps:
|
|
10460
|
+
renderOption?: (option: DropdownOption, optionProps: RenderOptionListItemProps) => JSX.Element | null;
|
|
10301
10461
|
/**
|
|
10302
10462
|
* Включить мод множественного выбора.
|
|
10303
10463
|
*
|
|
@@ -10535,6 +10695,12 @@ interface DropdownBaseProps extends ResponsiveSizeProps<Size$1>, ResponsiveMargi
|
|
|
10535
10695
|
marginXL?: Margin$1;
|
|
10536
10696
|
}
|
|
10537
10697
|
type DropdownProps = DropdownBaseProps & Omit<React.ComponentPropsWithRef<'div'>, keyof DropdownBaseProps | 'children'>;
|
|
10698
|
+
type RenderOptionListItemProps = ListItemProps & {
|
|
10699
|
+
ref?: React.Ref<HTMLElement>;
|
|
10700
|
+
role?: React.AriaRole;
|
|
10701
|
+
'aria-selected'?: boolean;
|
|
10702
|
+
onClick: React.MouseEventHandler<HTMLElement>;
|
|
10703
|
+
};
|
|
10538
10704
|
|
|
10539
10705
|
/**
|
|
10540
10706
|
*
|
|
@@ -10853,4 +11019,4 @@ declare const MediaProvider: (props: React.PropsWithChildren<{
|
|
|
10853
11019
|
*/
|
|
10854
11020
|
declare const useMediaMatchers: () => Partial<Record<MediaMatcherId, boolean>>;
|
|
10855
11021
|
|
|
10856
|
-
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$
|
|
11022
|
+
export { Accordion, type AccordionItemProps, type AccordionProps, ActionBtn, type ActionBtnProps, AddElement, type AddElementProps, Alert, type AlertProps, Amount, type AmountProps, Anchor, type AnchorProps, 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, useMediaMatchers, useScrollLock, useScrollMonitor, vAlign };
|