@foxford/ui 2.41.0 → 2.42.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/Anchor/constants.js.map +1 -1
- package/components/Anchor/constants.mjs.map +1 -1
- package/components/Arrow/constants.js.map +1 -1
- package/components/Arrow/constants.mjs.map +1 -1
- package/components/Arrow/default-constants.js.map +1 -1
- package/components/Arrow/default-constants.mjs.map +1 -1
- package/components/ArrowBadge/constants.js.map +1 -1
- package/components/ArrowBadge/constants.mjs.map +1 -1
- package/components/Avatar/constants.js.map +1 -1
- package/components/Avatar/constants.mjs.map +1 -1
- package/components/Avatar/default-constants.js.map +1 -1
- package/components/Avatar/default-constants.mjs.map +1 -1
- package/components/Badge/constants.js.map +1 -1
- package/components/Badge/constants.mjs.map +1 -1
- package/components/Button/constants.js.map +1 -1
- package/components/Button/constants.mjs.map +1 -1
- package/components/Button/default-constants.js.map +1 -1
- package/components/Button/default-constants.mjs.map +1 -1
- package/components/Chip/constants.js.map +1 -1
- package/components/Chip/constants.mjs.map +1 -1
- package/components/Dialog/Dialog.js +2 -0
- package/components/Dialog/Dialog.js.map +1 -0
- package/components/Dialog/Dialog.mjs +2 -0
- package/components/Dialog/Dialog.mjs.map +1 -0
- package/components/Dialog/constants.js +2 -0
- package/components/Dialog/constants.js.map +1 -0
- package/components/Dialog/constants.mjs +2 -0
- package/components/Dialog/constants.mjs.map +1 -0
- package/components/Dialog/style.js +2 -0
- package/components/Dialog/style.js.map +1 -0
- package/components/Dialog/style.mjs +2 -0
- package/components/Dialog/style.mjs.map +1 -0
- package/components/DialogComponent/DialogComponent.js +2 -0
- package/components/DialogComponent/DialogComponent.js.map +1 -0
- package/components/DialogComponent/DialogComponent.mjs +2 -0
- package/components/DialogComponent/DialogComponent.mjs.map +1 -0
- package/components/DialogComponent/DialogContainer.js +2 -0
- package/components/DialogComponent/DialogContainer.js.map +1 -0
- package/components/DialogComponent/DialogContainer.mjs +2 -0
- package/components/DialogComponent/DialogContainer.mjs.map +1 -0
- package/components/DialogComponent/constants.js +2 -0
- package/components/DialogComponent/constants.js.map +1 -0
- package/components/DialogComponent/constants.mjs +2 -0
- package/components/DialogComponent/constants.mjs.map +1 -0
- package/components/DialogComponent/images/dragging.svg.js +2 -0
- package/components/DialogComponent/images/dragging.svg.js.map +1 -0
- package/components/DialogComponent/images/dragging.svg.mjs +2 -0
- package/components/DialogComponent/images/dragging.svg.mjs.map +1 -0
- package/components/DialogComponent/style.js +2 -0
- package/components/DialogComponent/style.js.map +1 -0
- package/components/DialogComponent/style.mjs +2 -0
- package/components/DialogComponent/style.mjs.map +1 -0
- package/components/DialogComponent/utils.js +2 -0
- package/components/DialogComponent/utils.js.map +1 -0
- package/components/DialogComponent/utils.mjs +2 -0
- package/components/DialogComponent/utils.mjs.map +1 -0
- package/components/Dropdown/constants.js.map +1 -1
- package/components/Dropdown/constants.mjs.map +1 -1
- package/components/FormInputLabel/constants.js.map +1 -1
- package/components/FormInputLabel/constants.mjs.map +1 -1
- package/components/FormLabel/constants.js.map +1 -1
- package/components/FormLabel/constants.mjs.map +1 -1
- package/components/Icon/constants.js.map +1 -1
- package/components/Icon/constants.mjs.map +1 -1
- package/components/IconButton/constants.js.map +1 -1
- package/components/IconButton/constants.mjs.map +1 -1
- package/components/Indicator/constants.js.map +1 -1
- package/components/Indicator/constants.mjs.map +1 -1
- package/components/InputCheckbox/constants.js.map +1 -1
- package/components/InputCheckbox/constants.mjs.map +1 -1
- package/components/InputRadio/constants.js.map +1 -1
- package/components/InputRadio/constants.mjs.map +1 -1
- package/components/ListItem/constants.js.map +1 -1
- package/components/ListItem/constants.mjs.map +1 -1
- package/components/MenuComponent/constants.js.map +1 -1
- package/components/MenuComponent/constants.mjs.map +1 -1
- package/components/MenuList/MenuList.js +1 -1
- package/components/MenuList/MenuList.js.map +1 -1
- package/components/MenuList/MenuList.mjs +1 -1
- package/components/MenuList/MenuList.mjs.map +1 -1
- package/components/PopoverComponent/constants.js.map +1 -1
- package/components/PopoverComponent/constants.mjs.map +1 -1
- package/components/Tab/constants.js.map +1 -1
- package/components/Tab/constants.mjs.map +1 -1
- package/components/Tab/default-constants.js.map +1 -1
- package/components/Tab/default-constants.mjs.map +1 -1
- package/components/Text/constants.js.map +1 -1
- package/components/Text/constants.mjs.map +1 -1
- package/components/Text/default-constants.js.map +1 -1
- package/components/Text/default-constants.mjs.map +1 -1
- package/components/TooltipComponent/constants.js.map +1 -1
- package/components/TooltipComponent/constants.mjs.map +1 -1
- package/components/Visibility/Visibility.js +2 -0
- package/components/Visibility/Visibility.js.map +1 -0
- package/components/Visibility/Visibility.mjs +2 -0
- package/components/Visibility/Visibility.mjs.map +1 -0
- package/components/Visibility/style.js +2 -0
- package/components/Visibility/style.js.map +1 -0
- package/components/Visibility/style.mjs +2 -0
- package/components/Visibility/style.mjs.map +1 -0
- package/dts/index.d.ts +271 -88
- package/hocs/withMergedProps.js.map +1 -1
- package/hocs/withMergedProps.mjs.map +1 -1
- package/hocs/withTranslation.js +2 -0
- package/hocs/withTranslation.js.map +1 -0
- package/hocs/withTranslation.mjs +2 -0
- package/hocs/withTranslation.mjs.map +1 -0
- package/hooks/useMergedPalette.js.map +1 -1
- package/hooks/useMergedPalette.mjs.map +1 -1
- package/hooks/useMergedProps.js.map +1 -1
- package/hooks/useMergedProps.mjs.map +1 -1
- package/hooks/useMergedSizes.js +1 -1
- package/hooks/useMergedSizes.js.map +1 -1
- package/hooks/useMergedSizes.mjs +1 -1
- package/hooks/useMergedSizes.mjs.map +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/mixins/create-responsive-props.js.map +1 -1
- package/mixins/create-responsive-props.mjs.map +1 -1
- package/mixins/responsive-position.js +2 -0
- package/mixins/responsive-position.js.map +1 -0
- package/mixins/responsive-position.mjs +2 -0
- package/mixins/responsive-position.mjs.map +1 -0
- package/mixins/responsive-size.js +1 -1
- package/mixins/responsive-size.js.map +1 -1
- package/mixins/responsive-size.mjs +1 -1
- package/mixins/responsive-size.mjs.map +1 -1
- package/package.json +1 -1
- package/shared/constants.js +1 -1
- package/shared/constants.js.map +1 -1
- package/shared/constants.mjs +1 -1
- package/shared/constants.mjs.map +1 -1
- package/shared/utils/style.js +1 -1
- package/shared/utils/style.js.map +1 -1
- package/shared/utils/style.mjs +1 -1
- package/shared/utils/style.mjs.map +1 -1
- package/theme/colors-dark.js +1 -1
- package/theme/colors-dark.js.map +1 -1
- package/theme/colors-dark.mjs +1 -1
- package/theme/colors-dark.mjs.map +1 -1
- package/theme/colors-light.js +1 -1
- package/theme/colors-light.js.map +1 -1
- package/theme/colors-light.mjs +1 -1
- package/theme/colors-light.mjs.map +1 -1
- package/theme/colors.js +1 -1
- package/theme/colors.js.map +1 -1
- package/theme/colors.mjs +1 -1
- package/theme/colors.mjs.map +1 -1
package/dts/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { CSSProperties, Component, SVGAttributes, FunctionComponent, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, PureComponent } from 'react';
|
|
4
4
|
import * as styled_components from 'styled-components';
|
|
5
|
-
import { DefaultTheme, FlattenSimpleInterpolation,
|
|
5
|
+
import { CSSObject, DefaultTheme, FlattenSimpleInterpolation, Interpolation, ThemeProps, SimpleInterpolation, css, StyledProps } from 'styled-components';
|
|
6
6
|
import { Props, PopperInstance, PlacementOptions, Styles } from 'react-floater/lib/types';
|
|
7
|
-
import { Classes } from 'react-modal';
|
|
7
|
+
import { Props as Props$1, Classes } from 'react-modal';
|
|
8
8
|
import * as rc_scrollbars_lib_Scrollbars_types from 'rc-scrollbars/lib/Scrollbars/types';
|
|
9
9
|
import * as rc_scrollbars from 'rc-scrollbars';
|
|
10
10
|
import { ScrollbarsProps } from 'rc-scrollbars';
|
|
@@ -305,7 +305,8 @@ declare enum BaseColorNames {
|
|
|
305
305
|
'product-low-group' = "product-low-group",
|
|
306
306
|
'product-low-outclass' = "product-low-outclass",
|
|
307
307
|
'product-low-course' = "product-low-course",
|
|
308
|
-
'product-low-tutor' = "product-low-tutor"
|
|
308
|
+
'product-low-tutor' = "product-low-tutor",
|
|
309
|
+
'bg-other-overlay' = "bg-other-overlay"
|
|
309
310
|
}
|
|
310
311
|
declare enum BrandColorNames {
|
|
311
312
|
'content-brand-primary' = "content-brand-primary",
|
|
@@ -550,6 +551,7 @@ declare const ColorNames: {
|
|
|
550
551
|
'product-low-outclass': (typeof BaseColorNames)["product-low-outclass"];
|
|
551
552
|
'product-low-course': (typeof BaseColorNames)["product-low-course"];
|
|
552
553
|
'product-low-tutor': (typeof BaseColorNames)["product-low-tutor"];
|
|
554
|
+
'bg-other-overlay': (typeof BaseColorNames)["bg-other-overlay"];
|
|
553
555
|
profession: UnitColorNames.profession;
|
|
554
556
|
professionDark: UnitColorNames.professionDark;
|
|
555
557
|
camps: UnitColorNames.camps;
|
|
@@ -871,19 +873,41 @@ declare type CSSBorderStyle = CSSGlobalValue | 'none' | 'hidden' | 'dotted' | 'd
|
|
|
871
873
|
declare type CSSVerticalAlign = CSSGlobalValue | 'baseline' | 'sub' | 'super' | 'text-top' | 'text-bottom' | 'middle' | 'top' | 'bottom';
|
|
872
874
|
declare type CSSFontWeight = CSSGlobalValue | 'normal' | 'bold' | 'lighter' | 'bolder' | number;
|
|
873
875
|
declare type Size = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
876
|
+
declare type SizeValue = Size | CSSGlobalValue | number;
|
|
874
877
|
declare type Breakpoint = 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
875
878
|
declare type Color = keyof typeof ColorNames | CSSColor;
|
|
876
879
|
declare type ColorPaletteKey = 'color' | `color${string}` | `${string}Color` | `${string}Color${string}`;
|
|
877
|
-
declare type Sizes = Record<Size, CSSProperties>;
|
|
878
880
|
declare type ThemePreset = 'default' | 'brand';
|
|
879
881
|
declare type ThemeMode = 'light' | 'dark';
|
|
880
882
|
declare type ThemeName = 'mother' | 'baby' | 'teen' | 'adult';
|
|
883
|
+
declare type ResponsivePropKey = 'size' | keyof CSSProperties;
|
|
884
|
+
declare type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
885
|
+
declare type WithThemePreset<T> = T & {
|
|
886
|
+
preset: ThemePreset;
|
|
887
|
+
};
|
|
881
888
|
|
|
882
889
|
interface BaseProps {
|
|
883
890
|
preset?: ThemePreset;
|
|
884
891
|
className?: string;
|
|
885
|
-
style?:
|
|
892
|
+
style?: CSSProperties;
|
|
886
893
|
}
|
|
894
|
+
declare type ResponsiveProps<K extends ResponsivePropKey, V> = {
|
|
895
|
+
[key in K]?: V | [DESKTOP: V, TABLET: V, MOBILE: V] | [XL: V, L: V, M: V, S: V, XS: V, XXS: V];
|
|
896
|
+
} & {
|
|
897
|
+
[key in `${K}${Breakpoint}`]?: V;
|
|
898
|
+
};
|
|
899
|
+
declare type ResponsiveSizeProps<S extends string, V = S> = ResponsiveProps<'size', V> & {
|
|
900
|
+
sizeUnits?: CSSUnit;
|
|
901
|
+
sizes?: Partial<Record<S, CSSProperties>>;
|
|
902
|
+
};
|
|
903
|
+
declare type ResponsivePositionProps<T extends string> = ResponsiveProps<'position', T> & {
|
|
904
|
+
positions?: Partial<Record<T, CSSProperties>>;
|
|
905
|
+
};
|
|
906
|
+
declare type ResponsiveSizeInterpolationProps<S extends string, V, P extends ResponsiveSizeProps<S, V>> = Omit<P, 'size' | 'sizes'> & {
|
|
907
|
+
size: NonNullable<P['size']>;
|
|
908
|
+
sizes: Record<KeysOfUnion<P['sizes']>, CSSProperties>;
|
|
909
|
+
dynamicSizeDeclaration?: (size: CSSGlobalValue | number, sizeUnits: CSSUnit) => CSSObject;
|
|
910
|
+
};
|
|
887
911
|
|
|
888
912
|
/**
|
|
889
913
|
* Converts HEX color code to RGB(A) string
|
|
@@ -1013,20 +1037,6 @@ declare class TextEllipse extends Component<TextEllipseProps, TextEllipseState>
|
|
|
1013
1037
|
render(): JSX.Element;
|
|
1014
1038
|
}
|
|
1015
1039
|
|
|
1016
|
-
declare type ResponsivePropKey = 'size' | keyof CSSProperties;
|
|
1017
|
-
declare type ResponsiveProps<K extends ResponsivePropKey, V> = {
|
|
1018
|
-
[key in K]?: V | [DESKTOP: V, TABLET: V, MOBILE: V] | [XL: V, L: V, M: V, S: V, XS: V, XXS: V];
|
|
1019
|
-
} & {
|
|
1020
|
-
[key in `${K}${Breakpoint}`]?: V;
|
|
1021
|
-
};
|
|
1022
|
-
|
|
1023
|
-
declare type SizeProperty = 'size';
|
|
1024
|
-
declare type SizeValue = Size | CSSGlobalValue | number;
|
|
1025
|
-
declare type ResponsiveSizeProps = ResponsiveProps<SizeProperty, SizeValue> & {
|
|
1026
|
-
sizeUnits?: CSSUnit;
|
|
1027
|
-
sizes?: Partial<Sizes>;
|
|
1028
|
-
};
|
|
1029
|
-
|
|
1030
1040
|
declare type MarginProperty = 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft';
|
|
1031
1041
|
declare type MarginValue = CSSGlobalValue | (string & {}) | number;
|
|
1032
1042
|
declare type ResponsiveMarginProps = ResponsiveProps<MarginProperty, MarginValue> & {
|
|
@@ -1049,7 +1059,7 @@ interface DisplayProperty {
|
|
|
1049
1059
|
}
|
|
1050
1060
|
|
|
1051
1061
|
declare type TypographyAppearance = 'display' | 'heading' | 'subheading' | 'subheading-compact' | 'body' | 'caption';
|
|
1052
|
-
interface TextProps extends ResponsiveSizeProps, ResponsiveMarginProps, DisplayProperty, ColorProperty, Omit<React.ComponentPropsWithRef<'div'>, 'color'> {
|
|
1062
|
+
interface TextProps extends ResponsiveSizeProps<Size, SizeValue>, ResponsiveMarginProps, DisplayProperty, ColorProperty, Omit<React.ComponentPropsWithRef<'div'>, 'color'> {
|
|
1053
1063
|
/** Root node polymorphic type */
|
|
1054
1064
|
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'div' | 'span';
|
|
1055
1065
|
/** Predefined styles and sizes */
|
|
@@ -4530,7 +4540,7 @@ declare namespace IconPack {
|
|
|
4530
4540
|
declare type IconPackIconName = Uncapitalize<keyof typeof IconPack>;
|
|
4531
4541
|
declare type IconNameDefault = 'book' | 'blackBoard' | 'burger' | 'eye' | 'email' | 'sort' | 'unsort' | 'person' | 'diamond' | 'diamondFilled' | 'diamondSolid' | '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';
|
|
4532
4542
|
declare type IconName = IconPackIconName | IconNameDefault;
|
|
4533
|
-
interface IconProps extends ResponsiveSizeProps, Omit<React.ComponentPropsWithRef<'span'>, 'children'> {
|
|
4543
|
+
interface IconProps extends ResponsiveSizeProps<Size, SizeValue>, Omit<React.ComponentPropsWithRef<'span'>, 'children'> {
|
|
4534
4544
|
/** UI: brand (v3), or default (v2) */
|
|
4535
4545
|
preset?: ThemePreset;
|
|
4536
4546
|
/** Icon color */
|
|
@@ -4634,7 +4644,7 @@ declare type AnchorPalette = {
|
|
|
4634
4644
|
colorHover: CSSColor;
|
|
4635
4645
|
colorDisabled: CSSColor;
|
|
4636
4646
|
};
|
|
4637
|
-
interface AnchorProps extends ResponsiveSizeProps, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'a'>, 'color' | 'children'>,
|
|
4647
|
+
interface AnchorProps extends ResponsiveSizeProps<Size, SizeValue>, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'a'>, 'color' | 'children'>,
|
|
4638
4648
|
/** @deprecated Use palette */
|
|
4639
4649
|
ColorProperty<'color'>,
|
|
4640
4650
|
/** @deprecated Use children as function */
|
|
@@ -4709,7 +4719,7 @@ declare type ButtonPalette = {
|
|
|
4709
4719
|
borderColorDisabled: CSSColor;
|
|
4710
4720
|
shadowColor: CSSColor;
|
|
4711
4721
|
};
|
|
4712
|
-
interface ButtonProps extends ResponsiveSizeProps, ColorProperty, ColorProperty<'fontColor'>, ResponsiveNamedProperty<'margin'>, ResponsiveNamedProperty<'marginTop'>, ResponsiveNamedProperty<'marginRight'>, ResponsiveNamedProperty<'marginBottom'>, ResponsiveNamedProperty<'marginLeft'>, ResponsiveNamedProperty<'fluid', boolean>, ResponsiveNamedProperty<'width', 'auto' | 'l' | 'm' | 's' | 'xs' | number>, Omit<React.ComponentPropsWithRef<'button'>, 'color' | 'children'>,
|
|
4722
|
+
interface ButtonProps extends ResponsiveSizeProps<Size, SizeValue>, ColorProperty, ColorProperty<'fontColor'>, ResponsiveNamedProperty<'margin'>, ResponsiveNamedProperty<'marginTop'>, ResponsiveNamedProperty<'marginRight'>, ResponsiveNamedProperty<'marginBottom'>, ResponsiveNamedProperty<'marginLeft'>, ResponsiveNamedProperty<'fluid', boolean>, ResponsiveNamedProperty<'width', 'auto' | 'l' | 'm' | 's' | 'xs' | number>, Omit<React.ComponentPropsWithRef<'button'>, 'color' | 'children'>,
|
|
4713
4723
|
/** @deprecated Use children as function or inline prop */
|
|
4714
4724
|
DisplayProperty,
|
|
4715
4725
|
/** @deprecated */
|
|
@@ -4879,7 +4889,7 @@ declare type ArrowPalette = {
|
|
|
4879
4889
|
borderColorDisabled: CSSColor;
|
|
4880
4890
|
shadowColor: CSSColor;
|
|
4881
4891
|
};
|
|
4882
|
-
interface ArrowProps extends ResponsiveSizeProps, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'button'>, 'children'> {
|
|
4892
|
+
interface ArrowProps extends ResponsiveSizeProps<Size, SizeValue>, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'button'>, 'children'> {
|
|
4883
4893
|
/** UI: brand (v3), or default (v2) */
|
|
4884
4894
|
preset?: ThemePreset;
|
|
4885
4895
|
/** Custom colors */
|
|
@@ -4933,7 +4943,7 @@ declare type InputCheckboxPalette = {
|
|
|
4933
4943
|
backgroundColorDisabledChecked: CSSColor;
|
|
4934
4944
|
borderColorDisabledChecked: CSSColor;
|
|
4935
4945
|
};
|
|
4936
|
-
interface InputCheckboxProps extends ResponsiveSizeProps, Omit<React.ComponentPropsWithRef<'input'>, 'size' | 'children'> {
|
|
4946
|
+
interface InputCheckboxProps extends ResponsiveSizeProps<Size, SizeValue>, Omit<React.ComponentPropsWithRef<'input'>, 'size' | 'children'> {
|
|
4937
4947
|
/** Custom colors */
|
|
4938
4948
|
palette?: Partial<Record<keyof InputCheckboxPalette, Color>>;
|
|
4939
4949
|
/** Display inline */
|
|
@@ -5041,7 +5051,7 @@ declare type ArrowBadgePalette = {
|
|
|
5041
5051
|
color: CSSColor;
|
|
5042
5052
|
backgroundColor: CSSColor;
|
|
5043
5053
|
};
|
|
5044
|
-
interface ArrowBadgeProps extends ResponsiveSizeProps, ResponsiveMarginProps,
|
|
5054
|
+
interface ArrowBadgeProps extends ResponsiveSizeProps<Size, SizeValue>, ResponsiveMarginProps,
|
|
5045
5055
|
/** @deprecated Use palette */
|
|
5046
5056
|
ColorProperty<'color'>,
|
|
5047
5057
|
/** @deprecated Use palette */
|
|
@@ -5094,7 +5104,7 @@ declare type TabPalette = {
|
|
|
5094
5104
|
backgroundColorDisabled: CSSColor;
|
|
5095
5105
|
borderColorDisabled: CSSColor;
|
|
5096
5106
|
};
|
|
5097
|
-
interface TabProps extends ResponsiveSizeProps, ResponsiveMarginProps,
|
|
5107
|
+
interface TabProps extends ResponsiveSizeProps<Size, SizeValue>, ResponsiveMarginProps,
|
|
5098
5108
|
/** @deprecated Use palette */
|
|
5099
5109
|
ColorProperty<'color'>,
|
|
5100
5110
|
/** @deprecated Use palette */
|
|
@@ -5152,7 +5162,7 @@ declare type BadgePalette = {
|
|
|
5152
5162
|
color: CSSColor;
|
|
5153
5163
|
backgroundColor: CSSColor;
|
|
5154
5164
|
};
|
|
5155
|
-
interface BadgeProps extends ResponsiveSizeProps, ResponsiveMarginProps,
|
|
5165
|
+
interface BadgeProps extends ResponsiveSizeProps<Size, SizeValue>, ResponsiveMarginProps,
|
|
5156
5166
|
/** @deprecated Use palette */
|
|
5157
5167
|
ColorProperty,
|
|
5158
5168
|
/** @deprecated Use children as function */
|
|
@@ -5258,7 +5268,7 @@ declare type TooltipComponentPalette = {
|
|
|
5258
5268
|
closeColorActive: CSSColor;
|
|
5259
5269
|
closeColorDisabled: CSSColor;
|
|
5260
5270
|
};
|
|
5261
|
-
interface TooltipComponentProps extends ResponsiveSizeProps, Omit<React.ComponentPropsWithRef<'div'>, 'children' | 'title'> {
|
|
5271
|
+
interface TooltipComponentProps extends ResponsiveSizeProps<Size, SizeValue>, Omit<React.ComponentPropsWithRef<'div'>, 'children' | 'title'> {
|
|
5262
5272
|
/** Custom colors */
|
|
5263
5273
|
palette?: Partial<Record<keyof TooltipComponentPalette, Color>>;
|
|
5264
5274
|
/** Appearance variant */
|
|
@@ -5297,7 +5307,7 @@ interface TooltipComponentProps extends ResponsiveSizeProps, Omit<React.Componen
|
|
|
5297
5307
|
*/
|
|
5298
5308
|
declare const TooltipComponent: React.ForwardRefExoticComponent<TooltipComponentProps>;
|
|
5299
5309
|
|
|
5300
|
-
interface TooltipProps extends ResponsiveSizeProps, React.RefAttributes<HTMLDivElement> {
|
|
5310
|
+
interface TooltipProps extends ResponsiveSizeProps<Size, SizeValue>, React.RefAttributes<HTMLDivElement> {
|
|
5301
5311
|
/** UI: brand (v3), or default (v2) */
|
|
5302
5312
|
preset?: ThemePreset;
|
|
5303
5313
|
/** Custom colors */
|
|
@@ -5394,7 +5404,7 @@ declare type PopoverComponentPalette = {
|
|
|
5394
5404
|
closeColorDisabled: CSSColor;
|
|
5395
5405
|
closeBackgroundColorDisabled: CSSColor;
|
|
5396
5406
|
};
|
|
5397
|
-
interface PopoverComponentProps extends ResponsiveSizeProps, Omit<React.ComponentPropsWithRef<'div'>, 'children' | 'title'> {
|
|
5407
|
+
interface PopoverComponentProps extends ResponsiveSizeProps<Size, SizeValue>, Omit<React.ComponentPropsWithRef<'div'>, 'children' | 'title'> {
|
|
5398
5408
|
/** Custom colors */
|
|
5399
5409
|
palette?: Partial<Record<keyof PopoverComponentPalette, Color>>;
|
|
5400
5410
|
/** Relationship of width to height */
|
|
@@ -5463,7 +5473,7 @@ interface PopoverComponentProps extends ResponsiveSizeProps, Omit<React.Componen
|
|
|
5463
5473
|
*/
|
|
5464
5474
|
declare const PopoverComponent: React.ForwardRefExoticComponent<PopoverComponentProps>;
|
|
5465
5475
|
|
|
5466
|
-
interface PopoverProps extends ResponsiveSizeProps, React.RefAttributes<HTMLDivElement> {
|
|
5476
|
+
interface PopoverProps extends ResponsiveSizeProps<Size, SizeValue>, React.RefAttributes<HTMLDivElement> {
|
|
5467
5477
|
/** Custom colors */
|
|
5468
5478
|
palette?: Partial<Record<keyof PopoverComponentPalette, Color>>;
|
|
5469
5479
|
/** Open automatically */
|
|
@@ -5576,7 +5586,7 @@ declare type ListItemPalette = {
|
|
|
5576
5586
|
backgroundColorHover: CSSColor;
|
|
5577
5587
|
mediaPlaceholderColor: CSSColor;
|
|
5578
5588
|
};
|
|
5579
|
-
interface ListItemProps extends ResponsiveSizeProps, ResponsiveMarginProps, Omit<React.HTMLAttributes<HTMLElement>, 'children' | 'title'>, Omit<React.ButtonHTMLAttributes<HTMLElement>, 'children' | 'title' | 'type'>, Omit<React.AnchorHTMLAttributes<HTMLElement>, 'children' | 'title' | 'type' | 'media'> {
|
|
5589
|
+
interface ListItemProps extends ResponsiveSizeProps<Size, SizeValue>, ResponsiveMarginProps, Omit<React.HTMLAttributes<HTMLElement>, 'children' | 'title'>, Omit<React.ButtonHTMLAttributes<HTMLElement>, 'children' | 'title' | 'type'>, Omit<React.AnchorHTMLAttributes<HTMLElement>, 'children' | 'title' | 'type' | 'media'> {
|
|
5580
5590
|
/** Root node type */
|
|
5581
5591
|
as?: React.ElementType;
|
|
5582
5592
|
/** Main text content or render function */
|
|
@@ -5654,7 +5664,7 @@ declare type IndicatorPalette = {
|
|
|
5654
5664
|
backgroundColor: CSSColor;
|
|
5655
5665
|
shadowColor: CSSColor;
|
|
5656
5666
|
};
|
|
5657
|
-
interface IndicatorProps extends ResponsiveSizeProps, React.ComponentPropsWithRef<'span'> {
|
|
5667
|
+
interface IndicatorProps extends ResponsiveSizeProps<Size, SizeValue>, React.ComponentPropsWithRef<'span'> {
|
|
5658
5668
|
/** Custom colors */
|
|
5659
5669
|
palette?: Partial<Record<keyof IndicatorPalette, Color>>;
|
|
5660
5670
|
/** Text content */
|
|
@@ -5698,13 +5708,12 @@ declare type AvatarPalette = {
|
|
|
5698
5708
|
backgroundColor: CSSColor;
|
|
5699
5709
|
shadowColor: CSSColor;
|
|
5700
5710
|
};
|
|
5701
|
-
|
|
5711
|
+
declare type AvatarSize = SizeValue | 'sm';
|
|
5712
|
+
interface AvatarProps extends ResponsiveSizeProps<Size, AvatarSize>, ResponsiveMarginProps,
|
|
5702
5713
|
/** @deprecated Use palette */
|
|
5703
5714
|
ColorProperty<'color'>, Omit<React.ComponentPropsWithRef<'span'>, 'color'> {
|
|
5704
5715
|
/** UI: brand (v3), or default (v2) */
|
|
5705
5716
|
preset?: ThemePreset;
|
|
5706
|
-
/** @ignore Component size */
|
|
5707
|
-
size?: ResponsiveSizeProps['size'] | 'sm';
|
|
5708
5717
|
/** Custom colors */
|
|
5709
5718
|
palette?: Partial<Record<keyof AvatarPalette, Color>>;
|
|
5710
5719
|
/** Text content (alternative to image) */
|
|
@@ -5743,7 +5752,7 @@ declare type IconButtonPalette = {
|
|
|
5743
5752
|
colorDisabled: CSSColor;
|
|
5744
5753
|
backgroundColorDisabled: CSSColor;
|
|
5745
5754
|
};
|
|
5746
|
-
interface IconButtonProps extends ResponsiveSizeProps, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'button'>, 'children'> {
|
|
5755
|
+
interface IconButtonProps extends ResponsiveSizeProps<Size, SizeValue>, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'button'>, 'children'> {
|
|
5747
5756
|
/** Custom colors */
|
|
5748
5757
|
palette?: Partial<Record<keyof IconButtonPalette, Color>>;
|
|
5749
5758
|
/** Icon to display */
|
|
@@ -5783,7 +5792,7 @@ declare type ChipPalette = {
|
|
|
5783
5792
|
backgroundColorDisabled: CSSColor;
|
|
5784
5793
|
borderColorDisabled: CSSColor;
|
|
5785
5794
|
};
|
|
5786
|
-
interface ChipProps extends ResponsiveSizeProps, ResponsiveMarginProps, React.RefAttributes<HTMLElement>, Omit<React.ButtonHTMLAttributes<HTMLElement>, 'children'> {
|
|
5795
|
+
interface ChipProps extends ResponsiveSizeProps<Size, SizeValue>, ResponsiveMarginProps, React.RefAttributes<HTMLElement>, Omit<React.ButtonHTMLAttributes<HTMLElement>, 'children'> {
|
|
5787
5796
|
/** Custom colors */
|
|
5788
5797
|
palette?: Partial<Record<keyof ChipPalette, Color>>;
|
|
5789
5798
|
/** Main text content or render function */
|
|
@@ -5843,7 +5852,7 @@ declare type MenuComponentPalette = {
|
|
|
5843
5852
|
borderColor: CSSColor;
|
|
5844
5853
|
shadowColor: CSSColor;
|
|
5845
5854
|
};
|
|
5846
|
-
interface MenuComponentProps extends ResponsiveSizeProps, Omit<React.ComponentPropsWithRef<'div'>, 'children'> {
|
|
5855
|
+
interface MenuComponentProps extends ResponsiveSizeProps<Size, SizeValue>, Omit<React.ComponentPropsWithRef<'div'>, 'children'> {
|
|
5847
5856
|
/** Custom colors */
|
|
5848
5857
|
palette?: Partial<Record<keyof MenuComponentPalette, Color>>;
|
|
5849
5858
|
/** Appearance variant */
|
|
@@ -5884,7 +5893,7 @@ interface MenuComponentProps extends ResponsiveSizeProps, Omit<React.ComponentPr
|
|
|
5884
5893
|
*/
|
|
5885
5894
|
declare const MenuComponent: React.ForwardRefExoticComponent<MenuComponentProps>;
|
|
5886
5895
|
|
|
5887
|
-
interface MenuListProps extends ResponsiveSizeProps, React.ComponentPropsWithRef<'ul'> {
|
|
5896
|
+
interface MenuListProps extends ResponsiveSizeProps<Size, SizeValue>, React.ComponentPropsWithRef<'ul'> {
|
|
5888
5897
|
/** Menu items (React elements receive "size" props) */
|
|
5889
5898
|
children: React.ReactNode;
|
|
5890
5899
|
/** Space between list items */
|
|
@@ -5947,7 +5956,7 @@ interface MenuDividerProps extends React.ComponentPropsWithRef<'div'> {
|
|
|
5947
5956
|
*/
|
|
5948
5957
|
declare const MenuDivider: React.ForwardRefExoticComponent<MenuDividerProps>;
|
|
5949
5958
|
|
|
5950
|
-
interface MenuProps extends ResponsiveSizeProps, React.RefAttributes<HTMLDivElement> {
|
|
5959
|
+
interface MenuProps extends ResponsiveSizeProps<Size, SizeValue>, React.RefAttributes<HTMLDivElement> {
|
|
5951
5960
|
/** Open automatically */
|
|
5952
5961
|
autoOpen?: boolean;
|
|
5953
5962
|
/** It will be called on state change */
|
|
@@ -6009,6 +6018,178 @@ declare const Menu: React.ForwardRefExoticComponent<MenuProps> & {
|
|
|
6009
6018
|
Divider: typeof MenuDivider;
|
|
6010
6019
|
};
|
|
6011
6020
|
|
|
6021
|
+
declare type DialogComponentSize = 'xxl' | 'xxl-landscape' | 'xl' | 'xl-landscape' | 'l' | 'l-landscape' | 'm' | 's' | 'xs';
|
|
6022
|
+
declare type DialogComponentPalette = {
|
|
6023
|
+
color: CSSColor;
|
|
6024
|
+
backgroundColor: CSSColor;
|
|
6025
|
+
shadowColor: CSSColor;
|
|
6026
|
+
};
|
|
6027
|
+
interface DialogComponentProps extends ResponsiveSizeProps<DialogComponentSize>, Omit<React.ComponentPropsWithRef<'div'>, 'title' | 'draggable'> {
|
|
6028
|
+
/** Текст над заголовком диалога */
|
|
6029
|
+
caption?: React.ReactNode;
|
|
6030
|
+
/** Пропсы для типографики текста над заголовком */
|
|
6031
|
+
captionProps?: TextProps;
|
|
6032
|
+
/** Основной контент */
|
|
6033
|
+
children?: React.ReactNode;
|
|
6034
|
+
/**
|
|
6035
|
+
* Пропсы для кнопки действия в правом верхнем углу диалога (дефолт иконка close).
|
|
6036
|
+
* Для рендера кнопки нужно передать iconButtonProps.onClick
|
|
6037
|
+
*/
|
|
6038
|
+
iconButtonProps?: IconButtonProps;
|
|
6039
|
+
/** Функция для рендера контролов диалога (аргументом получает текущие пропсы размеров) */
|
|
6040
|
+
controls?: (props: Partial<Record<keyof Pick<DialogComponentProps, 'size' | 'sizeXXS' | 'sizeXS' | 'sizeS' | 'sizeS' | 'sizeM' | 'sizeL' | 'sizeXL'>, Size>>) => React.ReactNode;
|
|
6041
|
+
/** Рендер области для захвата окна для перетаскивания */
|
|
6042
|
+
draggable?: boolean;
|
|
6043
|
+
/** Диалог находится в состоянии перетаскивания (использование визуальной индикации) */
|
|
6044
|
+
dragging?: boolean;
|
|
6045
|
+
/** Пропсы для иконки в области захвата для перетаскивания */
|
|
6046
|
+
draggingIconProps?: IconProps;
|
|
6047
|
+
/** Рендер картинки справа с горизонтальной ориентации (дефолт слева) */
|
|
6048
|
+
imgLandscapePositionRight?: boolean;
|
|
6049
|
+
/**
|
|
6050
|
+
* Пути картинок в зависимости от ориентации окна диалога.
|
|
6051
|
+
* Ожидаемое соотношение сторон картинок: 3:1 portrait, 5:7 landscape
|
|
6052
|
+
*/
|
|
6053
|
+
imgSrc?: {
|
|
6054
|
+
portrait?: string;
|
|
6055
|
+
landscape?: string;
|
|
6056
|
+
};
|
|
6057
|
+
/** Использование скелетонов вместо реального контента */
|
|
6058
|
+
loading?: boolean;
|
|
6059
|
+
/** Колбек будет передан в onPointerDown элемента области захвата */
|
|
6060
|
+
onGrab?: React.PointerEventHandler<HTMLElement>;
|
|
6061
|
+
/** Колбек будет передан в onKeyDown элемента с иконкой в области захвата */
|
|
6062
|
+
onNudge?: React.KeyboardEventHandler<HTMLElement>;
|
|
6063
|
+
/** Кастомные цвета */
|
|
6064
|
+
palette?: Partial<Record<keyof DialogComponentPalette, Color>>;
|
|
6065
|
+
/** Пропсы для скелетонов (используются при loading=true) */
|
|
6066
|
+
skeletonProps?: SkeletonProps;
|
|
6067
|
+
/** Подзаголовок диалога */
|
|
6068
|
+
subtitle?: React.ReactNode;
|
|
6069
|
+
/** Пропсы для типографики подзаголовка */
|
|
6070
|
+
subtitleProps?: TextProps;
|
|
6071
|
+
/** Заголовок диалога */
|
|
6072
|
+
title?: React.ReactNode;
|
|
6073
|
+
/** Пропсы типографики для заголовка */
|
|
6074
|
+
titleProps?: TextProps;
|
|
6075
|
+
}
|
|
6076
|
+
|
|
6077
|
+
/**
|
|
6078
|
+
*
|
|
6079
|
+
* Компонент поддерживает все атрибуты \<div\> элемента.
|
|
6080
|
+
*
|
|
6081
|
+
* Можно передать "ref", который будет ассоциирован с рутовым элементом.
|
|
6082
|
+
*
|
|
6083
|
+
* Поддерживаются пропсы определения размеров в зависимости от ширины вьюпорта.
|
|
6084
|
+
*
|
|
6085
|
+
* Полный интерфейс можно посмотреть [тут](https://github.com/foxford/ui/blob/master/src/components/DialogComponent/types.ts).
|
|
6086
|
+
*/
|
|
6087
|
+
declare const DialogComponent: React.ForwardRefExoticComponent<DialogComponentProps>;
|
|
6088
|
+
|
|
6089
|
+
declare type DialogPosition = 'center' | 'top-center' | 'bottom-left' | 'bottom-right' | 'bottom-center';
|
|
6090
|
+
interface DialogProps extends ResponsiveSizeProps<DialogComponentSize>, ResponsivePositionProps<DialogPosition>, Omit<React.ComponentPropsWithRef<'div'>, 'className' | 'title' | 'draggable'> {
|
|
6091
|
+
/** Открыто диалоговое окно */
|
|
6092
|
+
open: boolean;
|
|
6093
|
+
/** Колбек, который будет вызван после открытия */
|
|
6094
|
+
onAfterOpen?: Props$1['onAfterOpen'];
|
|
6095
|
+
/** Колбек, который будет вызван после закрытия */
|
|
6096
|
+
onAfterClose?: Props$1['onAfterClose'];
|
|
6097
|
+
/** Колбек, который будет вызван по клику на оверлей или нажатию "Esc" (рекомендуется использовать) */
|
|
6098
|
+
onRequestClose?: Props$1['onRequestClose'];
|
|
6099
|
+
/** Класс (или классы) для диалогового окна */
|
|
6100
|
+
className?: Props$1['className'];
|
|
6101
|
+
/** Задержка перед фактическим закрытием (мс) */
|
|
6102
|
+
closeTimeoutMS?: number;
|
|
6103
|
+
/** Класс для элемента портала диалога (дефолт ReactModalPortal) */
|
|
6104
|
+
portalClassName?: string;
|
|
6105
|
+
/** Класс для body при открытом диалоговом окне (дефолт ReactModal__Body--open) */
|
|
6106
|
+
bodyOpenClassName?: string;
|
|
6107
|
+
/** Класс для html при открытом диалоговом окне */
|
|
6108
|
+
htmlOpenClassName?: string;
|
|
6109
|
+
/** Вызов onRequestClose при клике на оверлей (дефолт true) */
|
|
6110
|
+
shouldCloseOnOverlayClick?: boolean;
|
|
6111
|
+
/** Вызов onRequestClose при нажатии "Esc" (дефолт true, не рекомендуется отключать) */
|
|
6112
|
+
shouldCloseOnEsc?: boolean;
|
|
6113
|
+
/** Возврат фокуса на элемент, который был в фокусе до открытия диалога (дефолт true) */
|
|
6114
|
+
shouldReturnFocusAfterClose?: boolean;
|
|
6115
|
+
/** После закрытия не скроллить до элемента, который имел фокус до открытия */
|
|
6116
|
+
preventScrollAfterClose?: boolean;
|
|
6117
|
+
/** Класс (или классы) для оверлея */
|
|
6118
|
+
overlayClassName?: Props$1['overlayClassName'];
|
|
6119
|
+
/** Колбек, который должен вернуть элемент для рендера диалога (дефолт document.body) */
|
|
6120
|
+
parentSelector?: Props$1['parentSelector'];
|
|
6121
|
+
/** Колбек, который получает аргументом элемент оверлея */
|
|
6122
|
+
overlayRef?: Props$1['overlayRef'];
|
|
6123
|
+
/** Колбек, который получает аргументом элемент рута диалогового окна */
|
|
6124
|
+
contentRef?: Props$1['contentRef'];
|
|
6125
|
+
/** Текст над заголовком диалога */
|
|
6126
|
+
caption?: React.ReactNode;
|
|
6127
|
+
/** Пропсы для типографики текста над заголовком */
|
|
6128
|
+
captionProps?: TextProps;
|
|
6129
|
+
/** Основной контент */
|
|
6130
|
+
children?: React.ReactNode;
|
|
6131
|
+
/**
|
|
6132
|
+
* Пропсы для кнопки действия в правом верхнем углу диалога (дефолт иконка close).
|
|
6133
|
+
* Для рендера кнопки нужно передать iconButtonProps.onClick
|
|
6134
|
+
*/
|
|
6135
|
+
iconButtonProps?: IconButtonProps;
|
|
6136
|
+
/** Функция для рендера контролов диалога (аргументом получает текущие пропсы размеров) */
|
|
6137
|
+
controls?: (props: Partial<Record<keyof Pick<DialogProps, 'size' | 'sizeXXS' | 'sizeXS' | 'sizeS' | 'sizeS' | 'sizeM' | 'sizeL' | 'sizeXL'>, Size>>) => React.ReactNode;
|
|
6138
|
+
/**
|
|
6139
|
+
* Диалоговое окно можно перетаскивать.
|
|
6140
|
+
* В этом случае оверлей не используется и диалог рендерит область захвата
|
|
6141
|
+
*/
|
|
6142
|
+
draggable?: boolean;
|
|
6143
|
+
/** Пропсы для иконки в области захвата для перетаскивания */
|
|
6144
|
+
draggingIconProps?: IconProps;
|
|
6145
|
+
/** Рендер картинки справа с горизонтальной ориентации (дефолт слева) */
|
|
6146
|
+
imgLandscapePositionRight?: boolean;
|
|
6147
|
+
/**
|
|
6148
|
+
* Пути картинок в зависимости от ориентации окна диалога.
|
|
6149
|
+
* Ожидаемое соотношение сторон картинок: 3:1 portrait, 5:7 landscape
|
|
6150
|
+
*/
|
|
6151
|
+
imgSrc?: {
|
|
6152
|
+
portrait?: string;
|
|
6153
|
+
landscape?: string;
|
|
6154
|
+
};
|
|
6155
|
+
/** Использование скелетонов вместо реального контента */
|
|
6156
|
+
loading?: boolean;
|
|
6157
|
+
/** Применение стилей размытия для оверлея */
|
|
6158
|
+
overlayBlur?: boolean;
|
|
6159
|
+
/** Кастомные цвета */
|
|
6160
|
+
palette?: {
|
|
6161
|
+
color?: Color;
|
|
6162
|
+
backgroundColor?: Color;
|
|
6163
|
+
shadowColor?: Color;
|
|
6164
|
+
overlayBackgroundColor?: Color;
|
|
6165
|
+
};
|
|
6166
|
+
/** Пропсы для скелетонов (используются при loading=true) */
|
|
6167
|
+
skeletonProps?: SkeletonProps;
|
|
6168
|
+
/** Подзаголовок диалога */
|
|
6169
|
+
subtitle?: React.ReactNode;
|
|
6170
|
+
/** Пропсы для типографики подзаголовка */
|
|
6171
|
+
subtitleProps?: TextProps;
|
|
6172
|
+
/** Заголовок диалога */
|
|
6173
|
+
title?: React.ReactNode;
|
|
6174
|
+
/** Пропсы типографики для заголовка */
|
|
6175
|
+
titleProps?: TextProps;
|
|
6176
|
+
}
|
|
6177
|
+
|
|
6178
|
+
/**
|
|
6179
|
+
*
|
|
6180
|
+
* Компонент поддерживает все атрибуты \<div\> элемента и пропсы "react-modal" [v3.16.1](https://reactcommunity.org/react-modal).
|
|
6181
|
+
*
|
|
6182
|
+
* Поддерживаются пропсы определения размеров и позиции в зависимости от ширины вьюпорта.
|
|
6183
|
+
*
|
|
6184
|
+
* Получить доступ к компоненту, не подключенному к "react-modal", можно через Dialog.Component.
|
|
6185
|
+
*
|
|
6186
|
+
* Полный интерфейс Dialog можно посмотреть [тут](https://github.com/foxford/ui/blob/master/src/components/Dialog/types.ts), интерфейс Dialog.Component [тут](https://github.com/foxford/ui/blob/master/src/components/DialogComponent/types.ts).
|
|
6187
|
+
*
|
|
6188
|
+
*/
|
|
6189
|
+
declare const Dialog: React.ForwardRefExoticComponent<DialogProps> & {
|
|
6190
|
+
Component: typeof DialogComponent;
|
|
6191
|
+
};
|
|
6192
|
+
|
|
6012
6193
|
interface Theme {
|
|
6013
6194
|
breakpoints: Readonly<Record<Lowercase<Breakpoint>, number>>;
|
|
6014
6195
|
assetHost?: string;
|
|
@@ -6030,30 +6211,32 @@ interface Theme {
|
|
|
6030
6211
|
preset: ThemePreset;
|
|
6031
6212
|
name: ThemeName;
|
|
6032
6213
|
components?: {
|
|
6033
|
-
Alert?: AlertProps
|
|
6034
|
-
Anchor?: AnchorProps
|
|
6035
|
-
Arrow?: ArrowProps
|
|
6036
|
-
ArrowBadge?: ArrowBadgeProps
|
|
6037
|
-
Avatar?: AvatarProps
|
|
6038
|
-
Badge?: BadgeProps
|
|
6039
|
-
Button?: ButtonProps
|
|
6040
|
-
Checkbox?: CheckboxProps
|
|
6041
|
-
Chip?: ChipProps
|
|
6042
|
-
IconButton?: IconButtonProps
|
|
6043
|
-
Indicator?: IndicatorProps
|
|
6044
|
-
ListItem?: ListItemProps
|
|
6045
|
-
Popover?: PopoverProps
|
|
6046
|
-
PopoverComponent?: PopoverComponentProps
|
|
6047
|
-
Skeleton?: SkeletonProps
|
|
6048
|
-
Switcher?: SwitcherProps
|
|
6049
|
-
Tab?: TabProps
|
|
6050
|
-
Text?: TextProps
|
|
6051
|
-
'Text.Heading'?: TextHeadingProps
|
|
6052
|
-
Textarea?: TextareaProps
|
|
6053
|
-
Tooltip?: TooltipProps
|
|
6054
|
-
TooltipComponent?: TooltipComponentProps
|
|
6055
|
-
Menu?: MenuProps
|
|
6056
|
-
MenuComponentProps?: MenuComponentProps
|
|
6214
|
+
Alert?: Partial<AlertProps>;
|
|
6215
|
+
Anchor?: Partial<AnchorProps>;
|
|
6216
|
+
Arrow?: Partial<ArrowProps>;
|
|
6217
|
+
ArrowBadge?: Partial<ArrowBadgeProps>;
|
|
6218
|
+
Avatar?: Partial<AvatarProps>;
|
|
6219
|
+
Badge?: Partial<BadgeProps>;
|
|
6220
|
+
Button?: Partial<ButtonProps>;
|
|
6221
|
+
Checkbox?: Partial<CheckboxProps>;
|
|
6222
|
+
Chip?: Partial<ChipProps>;
|
|
6223
|
+
IconButton?: Partial<IconButtonProps>;
|
|
6224
|
+
Indicator?: Partial<IndicatorProps>;
|
|
6225
|
+
ListItem?: Partial<ListItemProps>;
|
|
6226
|
+
Popover?: Partial<PopoverProps>;
|
|
6227
|
+
PopoverComponent?: Partial<PopoverComponentProps>;
|
|
6228
|
+
Skeleton?: Partial<SkeletonProps>;
|
|
6229
|
+
Switcher?: Partial<SwitcherProps>;
|
|
6230
|
+
Tab?: Partial<TabProps>;
|
|
6231
|
+
Text?: Partial<TextProps>;
|
|
6232
|
+
'Text.Heading'?: Partial<TextHeadingProps>;
|
|
6233
|
+
Textarea?: Partial<TextareaProps>;
|
|
6234
|
+
Tooltip?: Partial<TooltipProps>;
|
|
6235
|
+
TooltipComponent?: Partial<TooltipComponentProps>;
|
|
6236
|
+
Menu?: Partial<MenuProps>;
|
|
6237
|
+
MenuComponentProps?: Partial<MenuComponentProps>;
|
|
6238
|
+
Dialog?: Partial<DialogProps>;
|
|
6239
|
+
DialogComponentProps?: Partial<DialogComponentProps>;
|
|
6057
6240
|
};
|
|
6058
6241
|
}
|
|
6059
6242
|
|
|
@@ -6064,71 +6247,71 @@ declare type MediaQueryParams = {
|
|
|
6064
6247
|
/**
|
|
6065
6248
|
* @return `@media screen and (min-width: 320px) and (max-width: 374px) { ...args }`
|
|
6066
6249
|
*/
|
|
6067
|
-
declare const screenXs: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6250
|
+
declare const screenXs: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6068
6251
|
/**
|
|
6069
6252
|
* @return `@media screen and (min-width: 375px) and (max-width: 767px) { ...args }`
|
|
6070
6253
|
*/
|
|
6071
|
-
declare const screenS: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6254
|
+
declare const screenS: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6072
6255
|
/**
|
|
6073
6256
|
* @return `@media screen and (min-width: 768) and (max-width: 1023px) { ...args }`
|
|
6074
6257
|
*/
|
|
6075
|
-
declare const screenM: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6258
|
+
declare const screenM: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6076
6259
|
/**
|
|
6077
6260
|
* @return `@media screen and (min-width: 1024px) and (max-width: 1279px) { ...args }`
|
|
6078
6261
|
*/
|
|
6079
|
-
declare const screenL: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6262
|
+
declare const screenL: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6080
6263
|
/**
|
|
6081
6264
|
* @return `@media screen and (min-width: 1280px) and (max-width: 1439px) { ...args }`
|
|
6082
6265
|
*/
|
|
6083
|
-
declare const screenXl: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6266
|
+
declare const screenXl: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6084
6267
|
/**
|
|
6085
6268
|
* @return `@media screen and (max-width: 319px) { ...args }`
|
|
6086
6269
|
*/
|
|
6087
|
-
declare const screenMaxXxs: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6270
|
+
declare const screenMaxXxs: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6088
6271
|
/**
|
|
6089
6272
|
* @return `@media screen and (max-width: 374px) { ...args }`
|
|
6090
6273
|
*/
|
|
6091
|
-
declare const screenMaxXs: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6274
|
+
declare const screenMaxXs: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6092
6275
|
/**
|
|
6093
6276
|
* @return `@media screen and (min-width: 375px) { ...args }`
|
|
6094
6277
|
*/
|
|
6095
|
-
declare const screenMinXs: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6278
|
+
declare const screenMinXs: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6096
6279
|
/**
|
|
6097
6280
|
* @return `@media screen and (max-width: 767px) { ...args }`
|
|
6098
6281
|
*/
|
|
6099
|
-
declare const screenMaxS: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6282
|
+
declare const screenMaxS: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6100
6283
|
/**
|
|
6101
6284
|
* @return `@media screen and (min-width: 768px) { ...args }`
|
|
6102
6285
|
*/
|
|
6103
|
-
declare const screenMinS: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6286
|
+
declare const screenMinS: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6104
6287
|
/**
|
|
6105
6288
|
* @return `@media screen and (max-width: 1023px) { ...args }`
|
|
6106
6289
|
*/
|
|
6107
|
-
declare const screenMaxM: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6290
|
+
declare const screenMaxM: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6108
6291
|
/**
|
|
6109
6292
|
* @return `@media screen and (min-width: 1024px) { ...args }`
|
|
6110
6293
|
*/
|
|
6111
|
-
declare const screenMinM: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6294
|
+
declare const screenMinM: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6112
6295
|
/**
|
|
6113
6296
|
* @return `@media screen and (max-width: 1279px) { ...args }`
|
|
6114
6297
|
*/
|
|
6115
|
-
declare const screenMaxL: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6298
|
+
declare const screenMaxL: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6116
6299
|
/**
|
|
6117
6300
|
* @return `@media screen and (min-width: 1280px) { ...args }`
|
|
6118
6301
|
*/
|
|
6119
|
-
declare const screenMinL: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6302
|
+
declare const screenMinL: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6120
6303
|
/**
|
|
6121
6304
|
* @return `@media screen and (max-width: 1439px) { ...args }`
|
|
6122
6305
|
*/
|
|
6123
|
-
declare const screenMaxXl: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6306
|
+
declare const screenMaxXl: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6124
6307
|
/**
|
|
6125
6308
|
* @return `@media screen and (min-width: 1440px) { ...args }`
|
|
6126
6309
|
*/
|
|
6127
|
-
declare const screenMinXl: (params?: MediaQueryParams) => <T extends object>(args_0:
|
|
6310
|
+
declare const screenMinXl: (params?: MediaQueryParams) => <T extends object>(args_0: CSSObject | TemplateStringsArray, ...args_1: Interpolation<T & ThemeProps<DefaultTheme>>[]) => (props: ThemeProps<DefaultTheme>) => styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<T, DefaultTheme>>;
|
|
6128
6311
|
/**
|
|
6129
6312
|
* @return `@media -webkit-min-device-pixel-ratio: 2 and (min-resolution: 192dpi) { ...args }`
|
|
6130
6313
|
*/
|
|
6131
|
-
declare const screenRetina: (args_0:
|
|
6314
|
+
declare const screenRetina: (args_0: CSSObject | TemplateStringsArray, args_1: SimpleInterpolation) => styled_components.FlattenSimpleInterpolation;
|
|
6132
6315
|
|
|
6133
6316
|
declare const vAlign: (vAlign: 'top' | 'middle' | 'bottom' | 'text-top' | 'text-bottom' | 'baseline') => styled_components.FlattenSimpleInterpolation;
|
|
6134
6317
|
|
|
@@ -7347,7 +7530,7 @@ declare type InputPalette = {
|
|
|
7347
7530
|
controlsColorDisabled: CSSColor;
|
|
7348
7531
|
controlsBackgroundColorDisabled: CSSColor;
|
|
7349
7532
|
};
|
|
7350
|
-
interface InputProps extends ResponsiveSizeProps, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'input'>, 'children' | 'size' | 'type' | 'value' | 'defaultValue' | 'color' | 'width'>,
|
|
7533
|
+
interface InputProps extends ResponsiveSizeProps<Size, SizeValue>, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'input'>, 'children' | 'size' | 'type' | 'value' | 'defaultValue' | 'color' | 'width'>,
|
|
7351
7534
|
/** @deprecated Use palette */
|
|
7352
7535
|
ColorProperty,
|
|
7353
7536
|
/** @deprecated Use palette */
|
|
@@ -7461,7 +7644,7 @@ declare type InputRadioPalette = {
|
|
|
7461
7644
|
backgroundColorDisabledChecked: CSSColor;
|
|
7462
7645
|
borderColorDisabledChecked: CSSColor;
|
|
7463
7646
|
};
|
|
7464
|
-
interface InputRadioProps extends ResponsiveSizeProps, Omit<React.ComponentPropsWithRef<'input'>, 'size' | 'children'> {
|
|
7647
|
+
interface InputRadioProps extends ResponsiveSizeProps<Size, SizeValue>, Omit<React.ComponentPropsWithRef<'input'>, 'size' | 'children'> {
|
|
7465
7648
|
/** Custom colors */
|
|
7466
7649
|
palette?: Partial<Record<keyof InputRadioPalette, Color>>;
|
|
7467
7650
|
/** Display inline */
|
|
@@ -7597,7 +7780,7 @@ declare type FormLabelPalette = {
|
|
|
7597
7780
|
hintColorDisabled: CSSColor;
|
|
7598
7781
|
hintBackgroundColorDisabled: CSSColor;
|
|
7599
7782
|
};
|
|
7600
|
-
interface FormLabelProps extends ResponsiveSizeProps, ResponsiveMarginProps, React.ComponentPropsWithRef<'label'> {
|
|
7783
|
+
interface FormLabelProps extends ResponsiveSizeProps<Size, SizeValue>, ResponsiveMarginProps, React.ComponentPropsWithRef<'label'> {
|
|
7601
7784
|
/** Custom colors */
|
|
7602
7785
|
palette?: Partial<Record<keyof FormLabelPalette, Color>>;
|
|
7603
7786
|
/** Render radio or checkbox input */
|
|
@@ -7658,7 +7841,7 @@ declare type DropdownOption = {
|
|
|
7658
7841
|
/** Ассоциативные теги (учитывается в текстовом поиске) */
|
|
7659
7842
|
[FuseSearchKeys.tags]?: string[];
|
|
7660
7843
|
};
|
|
7661
|
-
interface DropdownProps extends ResponsiveSizeProps, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'div'>, 'children'> {
|
|
7844
|
+
interface DropdownProps extends ResponsiveSizeProps<Size, SizeValue>, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'div'>, 'children'> {
|
|
7662
7845
|
/** Закрывать выпадающее меню при скролле */
|
|
7663
7846
|
closeMenuOnScroll?: boolean;
|
|
7664
7847
|
/** Адаптировать цветовую схему для контрастного фона */
|
|
@@ -7761,4 +7944,4 @@ interface DropdownProps extends ResponsiveSizeProps, ResponsiveMarginProps, Omit
|
|
|
7761
7944
|
*/
|
|
7762
7945
|
declare const Dropdown: React.ForwardRefExoticComponent<DropdownProps>;
|
|
7763
7946
|
|
|
7764
|
-
export { ActionBtn, Alert, Amount, Anchor, Arrow, ArrowBadge, Avatar, Badge, type BaseProps, type Breakpoint, Button, COUNTRY_DATA, type CSSBorderStyle, type CSSColor, type CSSFontWeight, type CSSGlobalValue, type CSSUnit, type CSSVerticalAlign, CURRENCY_MAP, Checkbox, Chip, type Color, ColorNames, type ColorPaletteKey, Container, ContextMenu, CurrencyCodes, DEFAULT_MASK, Dropdown, FormLabel, type HEX, INITIAL_MASK, Icon, IconButton, Indicator, Input, ListItem, Menu, Modal, type Nullable, Paper, Popover, Progress, type RGB, type RGBA, Radio, withThemeScrollable as Scrollable, Section, Select, Separator, type Size, type
|
|
7947
|
+
export { ActionBtn, Alert, Amount, Anchor, Arrow, ArrowBadge, Avatar, Badge, type BaseProps, type Breakpoint, Button, COUNTRY_DATA, type CSSBorderStyle, type CSSColor, type CSSFontWeight, type CSSGlobalValue, type CSSUnit, type CSSVerticalAlign, CURRENCY_MAP, Checkbox, Chip, type Color, ColorNames, type ColorPaletteKey, Container, ContextMenu, CurrencyCodes, DEFAULT_MASK, Dialog, Dropdown, FormLabel, type HEX, INITIAL_MASK, Icon, IconButton, Indicator, Input, type KeysOfUnion, ListItem, Menu, Modal, type Nullable, Paper, Popover, Progress, type RGB, type RGBA, Radio, type ResponsivePositionProps, type ResponsivePropKey, type ResponsiveProps, type ResponsiveSizeInterpolationProps, type ResponsiveSizeProps, withThemeScrollable as Scrollable, Section, Select, Separator, type Size, type SizeValue, Skeleton, Spacer, Spinner, Switcher, Tab, Tabs, Tag, Text$1 as Text, Textarea, type Theme, type ThemeMode, type ThemeName, type ThemePreset, ThemeProvider, Tooltip, type WithThemePreset, adultDarkTheme, adultLightTheme, babyDarkTheme, babyLightTheme, baseInputStyle, buildMediaQuery, color, desktopFirst, 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, vAlign };
|