@foxford/ui 2.74.0 → 2.75.0-beta-9c898b3-20250515
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/Accordion/Accordion.js +1 -1
- package/components/Accordion/Accordion.js.map +1 -1
- package/components/Accordion/Accordion.mjs +1 -1
- package/components/Accordion/Accordion.mjs.map +1 -1
- package/components/Accordion/AccordionDivider.js +2 -0
- package/components/Accordion/AccordionDivider.js.map +1 -0
- package/components/Accordion/AccordionDivider.mjs +2 -0
- package/components/Accordion/AccordionDivider.mjs.map +1 -0
- package/components/Accordion/hooks.js +2 -0
- package/components/Accordion/hooks.js.map +1 -0
- package/components/Accordion/hooks.mjs +2 -0
- package/components/Accordion/hooks.mjs.map +1 -0
- package/components/Accordion/sizes.js +2 -0
- package/components/Accordion/sizes.js.map +1 -0
- package/components/Accordion/sizes.mjs +2 -0
- package/components/Accordion/sizes.mjs.map +1 -0
- package/components/Accordion/style.js +1 -1
- package/components/Accordion/style.js.map +1 -1
- package/components/Accordion/style.mjs +1 -1
- package/components/Accordion/style.mjs.map +1 -1
- package/components/AccordionItem/AccordionItem.js +2 -0
- package/components/AccordionItem/AccordionItem.js.map +1 -0
- package/components/AccordionItem/AccordionItem.mjs +2 -0
- package/components/AccordionItem/AccordionItem.mjs.map +1 -0
- package/components/AccordionItem/hooks.js +2 -0
- package/components/AccordionItem/hooks.js.map +1 -0
- package/components/AccordionItem/hooks.mjs +2 -0
- package/components/AccordionItem/hooks.mjs.map +1 -0
- package/components/AccordionItem/sizes.js +2 -0
- package/components/AccordionItem/sizes.js.map +1 -0
- package/components/AccordionItem/sizes.mjs +2 -0
- package/components/AccordionItem/sizes.mjs.map +1 -0
- package/components/AccordionItem/style.js +2 -0
- package/components/AccordionItem/style.js.map +1 -0
- package/components/AccordionItem/style.mjs +2 -0
- package/components/AccordionItem/style.mjs.map +1 -0
- package/components/Button/Button.js +1 -1
- package/components/Button/Button.js.map +1 -1
- package/components/Button/Button.mjs +1 -1
- package/components/Button/Button.mjs.map +1 -1
- package/dts/index.d.ts +515 -129
- package/mixins/focus.js +1 -1
- package/mixins/focus.js.map +1 -1
- package/mixins/focus.mjs +1 -1
- package/mixins/focus.mjs.map +1 -1
- package/package.json +2 -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/context/accordion.js +2 -0
- package/shared/context/accordion.js.map +1 -0
- package/shared/context/accordion.mjs +2 -0
- package/shared/context/accordion.mjs.map +1 -0
- package/shared/utils/dom.js +1 -1
- package/shared/utils/dom.js.map +1 -1
- package/shared/utils/dom.mjs +1 -1
- package/shared/utils/dom.mjs.map +1 -1
- package/components/Accordion/constants.js +0 -2
- package/components/Accordion/constants.js.map +0 -1
- package/components/Accordion/constants.mjs +0 -2
- package/components/Accordion/constants.mjs.map +0 -1
package/dts/index.d.ts
CHANGED
|
@@ -884,8 +884,8 @@ declare type CSSColor = RGB | RGBA | HEX | CSSGlobalValue | 'currentcolor' | 'tr
|
|
|
884
884
|
declare type CSSBorderStyle = CSSGlobalValue | 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset';
|
|
885
885
|
declare type CSSVerticalAlign = CSSGlobalValue | 'baseline' | 'sub' | 'super' | 'text-top' | 'text-bottom' | 'middle' | 'top' | 'bottom';
|
|
886
886
|
declare type CSSFontWeight = CSSGlobalValue | 'normal' | 'bold' | 'lighter' | 'bolder' | number;
|
|
887
|
-
declare type Size$
|
|
888
|
-
declare type SizeValue = Size$
|
|
887
|
+
declare type Size$6 = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
888
|
+
declare type SizeValue = Size$6 | CSSGlobalValue | number;
|
|
889
889
|
declare type Breakpoint = 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
890
890
|
declare type Color = keyof typeof ColorNames | CSSColor;
|
|
891
891
|
declare type ColorPaletteKey = 'color' | `color${string}` | `${string}Color` | `${string}Color${string}`;
|
|
@@ -985,7 +985,7 @@ declare const adultDarkTheme: DefaultTheme;
|
|
|
985
985
|
/**
|
|
986
986
|
* Value for breakpoint
|
|
987
987
|
*/
|
|
988
|
-
declare type PossibleValues = number | Size$
|
|
988
|
+
declare type PossibleValues = number | Size$6 | 'auto' | 'initial' | 'inherit' | boolean;
|
|
989
989
|
declare type PropsProperties = 'size' | 'fontSize' | 'height' | 'width' | 'top' | 'right' | 'bottom' | 'left' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'fluid';
|
|
990
990
|
declare type CalcProperty = (_size: number | 'auto' | 'initial' | 'inherit' | boolean, _sizing?: null | string) => FlattenSimpleInterpolation | null;
|
|
991
991
|
declare type CssProperty = string | CalcProperty;
|
|
@@ -993,15 +993,15 @@ declare type ResponsiveKeys = '' | 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
|
993
993
|
declare type ResponsiveNamedProperty<T extends PropsProperties, V extends PossibleValues = PossibleValues> = {
|
|
994
994
|
[key in `${T}${ResponsiveKeys}`]?: V;
|
|
995
995
|
};
|
|
996
|
-
declare type ResponsiveProperty<V = number | Size$
|
|
997
|
-
declare const property: (value: PossibleValues, cssProperty?: CssProperty, sizing?: null | string, sizes?: Record<Size$
|
|
996
|
+
declare type ResponsiveProperty<V = number | Size$6> = V | [desktop: V, tablet: V, mobile: V] | [xl: V, l: V, m: V, s: V, xs: V, xxs: V];
|
|
997
|
+
declare const property: (value: PossibleValues, cssProperty?: CssProperty, sizing?: null | string, sizes?: Record<Size$6, number>) => () => () => FlattenSimpleInterpolation | null;
|
|
998
998
|
interface ResponsiveNamedPropertyPayload<T extends PropsProperties> {
|
|
999
999
|
sizes: ResponsiveNamedProperty<T>;
|
|
1000
1000
|
cssProperty: CssProperty;
|
|
1001
1001
|
sizing?: null | string;
|
|
1002
1002
|
customSizeHandler?: (_value: PossibleValues) => PossibleValues;
|
|
1003
1003
|
sort?: (_a: string, _b: string) => number;
|
|
1004
|
-
predefinedSizes?: Record<Size$
|
|
1004
|
+
predefinedSizes?: Record<Size$6, number>;
|
|
1005
1005
|
}
|
|
1006
1006
|
/**
|
|
1007
1007
|
* Миксин для генерации media запросов
|
|
@@ -1111,7 +1111,7 @@ interface ExpandButtonProps extends React.ComponentPropsWithoutRef<'button'> {
|
|
|
1111
1111
|
/** Кастомные цвета */
|
|
1112
1112
|
palette?: Partial<Record<keyof ExpandButtonPalette, Color>>;
|
|
1113
1113
|
}
|
|
1114
|
-
interface TextProps extends ResponsiveSizeProps<Size$
|
|
1114
|
+
interface TextProps extends ResponsiveSizeProps<Size$6, SizeValue>, ResponsiveMarginProps,
|
|
1115
1115
|
/** @deprecated */
|
|
1116
1116
|
DisplayProperty, ColorProperty, Omit<React.HTMLAttributes<HTMLElement>, 'color'>, Omit<React.BlockquoteHTMLAttributes<HTMLElement>, 'color'>, Omit<React.LabelHTMLAttributes<HTMLElement>, 'color'> {
|
|
1117
1117
|
/** Применение присета стилей и размеров */
|
|
@@ -1188,7 +1188,7 @@ declare const Text: React.ForwardRefExoticComponent<TextProps> & {
|
|
|
1188
1188
|
declare type IconPackIconName = Uncapitalize<keyof typeof IconPack>;
|
|
1189
1189
|
declare 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';
|
|
1190
1190
|
declare type IconName = IconPackIconName | IconNameDefault;
|
|
1191
|
-
interface IconProps extends ResponsiveSizeProps<Size$
|
|
1191
|
+
interface IconProps extends ResponsiveSizeProps<Size$6, SizeValue>, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'span'>, 'children'> {
|
|
1192
1192
|
/** UI: brand (v3), or default (v2) */
|
|
1193
1193
|
preset?: ThemePreset;
|
|
1194
1194
|
/** Icon color */
|
|
@@ -1292,7 +1292,7 @@ declare type AnchorPalette = {
|
|
|
1292
1292
|
colorHover: CSSColor;
|
|
1293
1293
|
colorDisabled: CSSColor;
|
|
1294
1294
|
};
|
|
1295
|
-
interface AnchorProps extends ResponsiveSizeProps<Size$
|
|
1295
|
+
interface AnchorProps extends ResponsiveSizeProps<Size$6, SizeValue>, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'a'>, 'color' | 'children'>,
|
|
1296
1296
|
/** @deprecated Use palette */
|
|
1297
1297
|
ColorProperty<'color'>,
|
|
1298
1298
|
/** @deprecated Use children as function */
|
|
@@ -1366,7 +1366,7 @@ declare type ButtonPalette = {
|
|
|
1366
1366
|
borderColorDisabled: CSSColor;
|
|
1367
1367
|
shadowColor: CSSColor;
|
|
1368
1368
|
};
|
|
1369
|
-
interface ButtonProps extends ResponsiveSizeProps<Size$
|
|
1369
|
+
interface ButtonProps extends ResponsiveSizeProps<Size$6, 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'>,
|
|
1370
1370
|
/** @deprecated Use children as function or inline prop */
|
|
1371
1371
|
DisplayProperty,
|
|
1372
1372
|
/** @deprecated */
|
|
@@ -1581,7 +1581,7 @@ declare type ArrowPalette = {
|
|
|
1581
1581
|
borderColorDisabled: CSSColor;
|
|
1582
1582
|
shadowColor: CSSColor;
|
|
1583
1583
|
};
|
|
1584
|
-
interface ArrowProps extends ResponsiveSizeProps<Size$
|
|
1584
|
+
interface ArrowProps extends ResponsiveSizeProps<Size$6, SizeValue>, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'button'>, 'children'> {
|
|
1585
1585
|
/**
|
|
1586
1586
|
* UI: v3 (brand), or v2 (default)
|
|
1587
1587
|
* @default "default" */
|
|
@@ -1871,7 +1871,7 @@ declare type ArrowBadgePalette = {
|
|
|
1871
1871
|
color: CSSColor;
|
|
1872
1872
|
backgroundColor: CSSColor;
|
|
1873
1873
|
};
|
|
1874
|
-
interface ArrowBadgeProps extends ResponsiveSizeProps<Size$
|
|
1874
|
+
interface ArrowBadgeProps extends ResponsiveSizeProps<Size$6, SizeValue>, ResponsiveMarginProps,
|
|
1875
1875
|
/** @deprecated Use palette */
|
|
1876
1876
|
ColorProperty<'color'>,
|
|
1877
1877
|
/** @deprecated Use palette */
|
|
@@ -1924,7 +1924,7 @@ declare type TabPalette = {
|
|
|
1924
1924
|
backgroundColorDisabled: CSSColor;
|
|
1925
1925
|
borderColorDisabled: CSSColor;
|
|
1926
1926
|
};
|
|
1927
|
-
interface TabProps extends ResponsiveSizeProps<Size$
|
|
1927
|
+
interface TabProps extends ResponsiveSizeProps<Size$6, SizeValue>, ResponsiveMarginProps,
|
|
1928
1928
|
/** @deprecated Use palette */
|
|
1929
1929
|
ColorProperty<'color'>,
|
|
1930
1930
|
/** @deprecated Use palette */
|
|
@@ -1982,7 +1982,7 @@ declare type BadgePalette = {
|
|
|
1982
1982
|
color: CSSColor;
|
|
1983
1983
|
backgroundColor: CSSColor;
|
|
1984
1984
|
};
|
|
1985
|
-
interface BadgeProps extends ResponsiveSizeProps<Size$
|
|
1985
|
+
interface BadgeProps extends ResponsiveSizeProps<Size$6, SizeValue>, ResponsiveMarginProps,
|
|
1986
1986
|
/** @deprecated Use palette */
|
|
1987
1987
|
ColorProperty,
|
|
1988
1988
|
/** @deprecated Use children as function */
|
|
@@ -2318,14 +2318,14 @@ declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps> & {
|
|
|
2318
2318
|
Component: typeof TooltipComponent;
|
|
2319
2319
|
};
|
|
2320
2320
|
|
|
2321
|
-
declare type Size$
|
|
2321
|
+
declare type Size$5 = 'xl' | 'l' | 'm' | 's' | 'xs';
|
|
2322
2322
|
declare type Layout$3 = 'vertical' | 'horizontal';
|
|
2323
2323
|
declare type PopoverComponentPalette = {
|
|
2324
2324
|
color: CSSColor;
|
|
2325
2325
|
backgroundColor: CSSColor;
|
|
2326
2326
|
shadowColor: CSSColor;
|
|
2327
2327
|
};
|
|
2328
|
-
interface PopoverComponentBaseProps extends ResponsiveSizeProps<Size$
|
|
2328
|
+
interface PopoverComponentBaseProps extends ResponsiveSizeProps<Size$5>, ResponsiveLayoutProps<Layout$3> {
|
|
2329
2329
|
/**
|
|
2330
2330
|
* Кастомные цвета.
|
|
2331
2331
|
*
|
|
@@ -2436,9 +2436,9 @@ declare type PopoverComponentProps = PopoverComponentBaseProps & Omit<React.Comp
|
|
|
2436
2436
|
|
|
2437
2437
|
declare const PopoverComponent: React.ForwardRefExoticComponent<PopoverComponentProps>;
|
|
2438
2438
|
|
|
2439
|
-
declare type Size$
|
|
2439
|
+
declare type Size$4 = 's' | 'xl' | 'l' | 'm' | 'xs';
|
|
2440
2440
|
declare type Layout$2 = 'vertical' | 'horizontal';
|
|
2441
|
-
interface PopoverBaseProps extends ResponsiveSizeProps<Size$
|
|
2441
|
+
interface PopoverBaseProps extends ResponsiveSizeProps<Size$4>, ResponsiveLayoutProps<Layout$2> {
|
|
2442
2442
|
/**
|
|
2443
2443
|
* Кастомные цвета.
|
|
2444
2444
|
*
|
|
@@ -2654,43 +2654,43 @@ interface PopoverBaseProps extends ResponsiveSizeProps<Size$2>, ResponsiveLayout
|
|
|
2654
2654
|
*
|
|
2655
2655
|
* @general
|
|
2656
2656
|
* @default 's' */
|
|
2657
|
-
size?: Size$
|
|
2657
|
+
size?: Size$4 | [DESKTOP: Size$4, TABLET: Size$4, MOBILE: Size$4] | [XL: Size$4, L: Size$4, M: Size$4, S: Size$4, XS: Size$4, XXS: Size$4];
|
|
2658
2658
|
/**
|
|
2659
2659
|
* Размер для XXS брейкпоинта.
|
|
2660
2660
|
*
|
|
2661
2661
|
* @default undefined */
|
|
2662
|
-
sizeXXS?: Size$
|
|
2662
|
+
sizeXXS?: Size$4;
|
|
2663
2663
|
/**
|
|
2664
2664
|
* Размер для XS брейкпоинта.
|
|
2665
2665
|
*
|
|
2666
2666
|
* @default undefined */
|
|
2667
|
-
sizeXS?: Size$
|
|
2667
|
+
sizeXS?: Size$4;
|
|
2668
2668
|
/**
|
|
2669
2669
|
* Размер для S брейкпоинта.
|
|
2670
2670
|
*
|
|
2671
2671
|
* @default undefined */
|
|
2672
|
-
sizeS?: Size$
|
|
2672
|
+
sizeS?: Size$4;
|
|
2673
2673
|
/**
|
|
2674
2674
|
* Размер для M брейкпоинта.
|
|
2675
2675
|
*
|
|
2676
2676
|
* @default undefined */
|
|
2677
|
-
sizeM?: Size$
|
|
2677
|
+
sizeM?: Size$4;
|
|
2678
2678
|
/**
|
|
2679
2679
|
* Размер для L брейкпоинта.
|
|
2680
2680
|
*
|
|
2681
2681
|
* @default undefined */
|
|
2682
|
-
sizeL?: Size$
|
|
2682
|
+
sizeL?: Size$4;
|
|
2683
2683
|
/**
|
|
2684
2684
|
* Размер для XL брейкпоинта.
|
|
2685
2685
|
*
|
|
2686
2686
|
* @default undefined */
|
|
2687
|
-
sizeXL?: Size$
|
|
2687
|
+
sizeXL?: Size$4;
|
|
2688
2688
|
/**
|
|
2689
2689
|
* Модификация размеров.
|
|
2690
2690
|
*
|
|
2691
2691
|
* @general
|
|
2692
2692
|
* @default undefined */
|
|
2693
|
-
sizes?: Partial<Record<Size$
|
|
2693
|
+
sizes?: Partial<Record<Size$4, React.CSSProperties>>;
|
|
2694
2694
|
/**
|
|
2695
2695
|
* Вариант шаблона лейаута.
|
|
2696
2696
|
*
|
|
@@ -2816,7 +2816,7 @@ declare type ListItemPalette = {
|
|
|
2816
2816
|
backgroundColorHover: CSSColor;
|
|
2817
2817
|
mediaPlaceholderColor: CSSColor;
|
|
2818
2818
|
};
|
|
2819
|
-
interface ListItemProps extends ResponsiveSizeProps<Size$
|
|
2819
|
+
interface ListItemProps extends ResponsiveSizeProps<Size$6, SizeValue>, ResponsiveMarginProps, Omit<React.HTMLAttributes<HTMLElement>, 'children' | 'title'>, Omit<React.ButtonHTMLAttributes<HTMLElement>, 'children' | 'title' | 'type'>, Omit<React.AnchorHTMLAttributes<HTMLElement>, 'children' | 'title' | 'type' | 'media'> {
|
|
2820
2820
|
/** Root node type */
|
|
2821
2821
|
as?: React.ElementType;
|
|
2822
2822
|
/** Main text content or render function */
|
|
@@ -2894,7 +2894,7 @@ declare type IndicatorPalette = {
|
|
|
2894
2894
|
backgroundColor: CSSColor;
|
|
2895
2895
|
shadowColor: CSSColor;
|
|
2896
2896
|
};
|
|
2897
|
-
interface IndicatorProps extends ResponsiveSizeProps<Size$
|
|
2897
|
+
interface IndicatorProps extends ResponsiveSizeProps<Size$6, SizeValue>, ResponsiveMarginProps, React.ComponentPropsWithRef<'span'> {
|
|
2898
2898
|
/** Custom colors */
|
|
2899
2899
|
palette?: Partial<Record<keyof IndicatorPalette, Color>>;
|
|
2900
2900
|
/** Text content */
|
|
@@ -2939,7 +2939,7 @@ declare type AvatarPalette = {
|
|
|
2939
2939
|
shadowColor: CSSColor;
|
|
2940
2940
|
};
|
|
2941
2941
|
declare type AvatarSize = SizeValue | 'sm';
|
|
2942
|
-
interface AvatarProps extends ResponsiveSizeProps<Size$
|
|
2942
|
+
interface AvatarProps extends ResponsiveSizeProps<Size$6, AvatarSize>, ResponsiveMarginProps,
|
|
2943
2943
|
/** @deprecated Use palette */
|
|
2944
2944
|
ColorProperty<'color'>, Omit<React.ComponentPropsWithRef<'span'>, 'color'> {
|
|
2945
2945
|
/** UI: brand (v3), or default (v2) */
|
|
@@ -3250,14 +3250,14 @@ declare const Menu: React.ForwardRefExoticComponent<MenuProps> & {
|
|
|
3250
3250
|
Divider: typeof MenuDivider;
|
|
3251
3251
|
};
|
|
3252
3252
|
|
|
3253
|
-
declare type Size$
|
|
3253
|
+
declare type Size$3 = 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs';
|
|
3254
3254
|
declare type Layout$1 = 'vertical' | 'horizontal' | 'vertical-reverse' | 'horizontal-reverse';
|
|
3255
3255
|
declare type DialogComponentPalette = {
|
|
3256
3256
|
color: CSSColor;
|
|
3257
3257
|
backgroundColor: CSSColor;
|
|
3258
3258
|
shadowColor: CSSColor;
|
|
3259
3259
|
};
|
|
3260
|
-
interface DialogComponentBaseProps extends ResponsiveSizeProps<Size$
|
|
3260
|
+
interface DialogComponentBaseProps extends ResponsiveSizeProps<Size$3>, ResponsiveLayoutProps<Layout$1> {
|
|
3261
3261
|
/**
|
|
3262
3262
|
* Кнопка закрытия.
|
|
3263
3263
|
*
|
|
@@ -3411,10 +3411,10 @@ declare type DialogComponentProps = DialogComponentBaseProps & Omit<React.Compon
|
|
|
3411
3411
|
|
|
3412
3412
|
declare const DialogComponent: React.ForwardRefExoticComponent<DialogComponentProps>;
|
|
3413
3413
|
|
|
3414
|
-
declare type Size = 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs';
|
|
3414
|
+
declare type Size$2 = 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs';
|
|
3415
3415
|
declare type Layout = 'vertical' | 'horizontal' | 'vertical-reverse' | 'horizontal-reverse';
|
|
3416
3416
|
declare type Position = 'center' | 'top-center' | 'bottom-left' | 'bottom-right' | 'bottom-center';
|
|
3417
|
-
interface DialogBaseProps extends ResponsiveSizeProps<Size>, ResponsiveLayoutProps<Layout>, ResponsivePositionProps<Position> {
|
|
3417
|
+
interface DialogBaseProps extends ResponsiveSizeProps<Size$2>, ResponsiveLayoutProps<Layout>, ResponsivePositionProps<Position> {
|
|
3418
3418
|
/**
|
|
3419
3419
|
* Открыто диалоговое окно.
|
|
3420
3420
|
*
|
|
@@ -3696,43 +3696,43 @@ interface DialogBaseProps extends ResponsiveSizeProps<Size>, ResponsiveLayoutPro
|
|
|
3696
3696
|
*
|
|
3697
3697
|
* @general
|
|
3698
3698
|
* @default 's' */
|
|
3699
|
-
size?: Size | [DESKTOP: Size, TABLET: Size, MOBILE: Size] | [XL: Size, L: Size, M: Size, S: Size, XS: Size, XXS: Size];
|
|
3699
|
+
size?: Size$2 | [DESKTOP: Size$2, TABLET: Size$2, MOBILE: Size$2] | [XL: Size$2, L: Size$2, M: Size$2, S: Size$2, XS: Size$2, XXS: Size$2];
|
|
3700
3700
|
/**
|
|
3701
3701
|
* Размер для XXS брейкпоинта.
|
|
3702
3702
|
*
|
|
3703
3703
|
* @default undefined */
|
|
3704
|
-
sizeXXS?: Size;
|
|
3704
|
+
sizeXXS?: Size$2;
|
|
3705
3705
|
/**
|
|
3706
3706
|
* Размер для XS брейкпоинта.
|
|
3707
3707
|
*
|
|
3708
3708
|
* @default undefined */
|
|
3709
|
-
sizeXS?: Size;
|
|
3709
|
+
sizeXS?: Size$2;
|
|
3710
3710
|
/**
|
|
3711
3711
|
* Размер для S брейкпоинта.
|
|
3712
3712
|
*
|
|
3713
3713
|
* @default undefined */
|
|
3714
|
-
sizeS?: Size;
|
|
3714
|
+
sizeS?: Size$2;
|
|
3715
3715
|
/**
|
|
3716
3716
|
* Размер для M брейкпоинта.
|
|
3717
3717
|
*
|
|
3718
3718
|
* @default undefined */
|
|
3719
|
-
sizeM?: Size;
|
|
3719
|
+
sizeM?: Size$2;
|
|
3720
3720
|
/**
|
|
3721
3721
|
* Размер для L брейкпоинта.
|
|
3722
3722
|
*
|
|
3723
3723
|
* @default undefined */
|
|
3724
|
-
sizeL?: Size;
|
|
3724
|
+
sizeL?: Size$2;
|
|
3725
3725
|
/**
|
|
3726
3726
|
* Размер для XL брейкпоинта.
|
|
3727
3727
|
*
|
|
3728
3728
|
* @default undefined */
|
|
3729
|
-
sizeXL?: Size;
|
|
3729
|
+
sizeXL?: Size$2;
|
|
3730
3730
|
/**
|
|
3731
3731
|
* Модификация размеров.
|
|
3732
3732
|
*
|
|
3733
3733
|
* @general
|
|
3734
3734
|
* @default undefined */
|
|
3735
|
-
sizes?: Partial<Record<Size, React.CSSProperties>>;
|
|
3735
|
+
sizes?: Partial<Record<Size$2, React.CSSProperties>>;
|
|
3736
3736
|
/**
|
|
3737
3737
|
* Вариант шаблона лейаута.
|
|
3738
3738
|
*
|
|
@@ -3883,112 +3883,451 @@ interface NotificationProps extends ResponsiveSizeProps<NotificationSize>, Respo
|
|
|
3883
3883
|
*/
|
|
3884
3884
|
declare const Notification: React.ForwardRefExoticComponent<NotificationProps>;
|
|
3885
3885
|
|
|
3886
|
-
declare type
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3886
|
+
declare type Size$1 = 'l' | 'm' | 's' | 'xs';
|
|
3887
|
+
declare type Margin$1 = number | string;
|
|
3888
|
+
interface AccordionItemBaseProps extends ResponsiveSizeProps<Size$1>, ResponsiveMarginProps {
|
|
3889
|
+
/**
|
|
3890
|
+
* Кастомный блок хедера.
|
|
3891
|
+
*
|
|
3892
|
+
* @slot
|
|
3893
|
+
* @default undefined */
|
|
3894
|
+
header?: React.ReactNode | ((headerProps: {
|
|
3895
|
+
titleProps: TextProps;
|
|
3896
|
+
subtitleProps: TextProps;
|
|
3897
|
+
iconProps: IconProps;
|
|
3898
|
+
}) => React.ReactNode);
|
|
3899
|
+
/**
|
|
3900
|
+
* Дополнительные элементы в левой части хедера.
|
|
3901
|
+
*
|
|
3902
|
+
* @slot
|
|
3903
|
+
* @default undefined */
|
|
3904
|
+
addon?: React.ReactNode;
|
|
3905
|
+
/**
|
|
3906
|
+
* Основной контент хедера.
|
|
3907
|
+
*
|
|
3908
|
+
* @slot
|
|
3909
|
+
* @default undefined */
|
|
3910
|
+
content?: React.ReactNode | ((contentProps: {
|
|
3911
|
+
titleProps: TextProps;
|
|
3912
|
+
subtitleProps: TextProps;
|
|
3913
|
+
}) => React.ReactNode);
|
|
3914
|
+
/**
|
|
3915
|
+
* Заголовок в хедере.
|
|
3916
|
+
*
|
|
3917
|
+
* Если передана строка или число используется встроенная типографика.
|
|
3918
|
+
*
|
|
3919
|
+
* @slot
|
|
3920
|
+
* @default undefined */
|
|
3921
|
+
title?: React.ReactNode | ((titleProps: TextProps) => React.ReactNode);
|
|
3922
|
+
/**
|
|
3923
|
+
* Подзаголовок в хедере.
|
|
3924
|
+
*
|
|
3925
|
+
* Если передана строка или число используется встроенная типографика.
|
|
3926
|
+
*
|
|
3927
|
+
* @slot
|
|
3928
|
+
* @default undefined */
|
|
3929
|
+
subtitle?: React.ReactNode | ((subtitleProps: TextProps) => React.ReactNode);
|
|
3930
|
+
/**
|
|
3931
|
+
* Иконка-индикатор состояния динамической панели.
|
|
3932
|
+
*
|
|
3933
|
+
* По дефолту используется иконка chevronDown.
|
|
3934
|
+
*
|
|
3935
|
+
* @slot
|
|
3936
|
+
* @default undefined */
|
|
3937
|
+
icon?: React.ReactNode | ((iconProps: IconProps) => React.ReactNode);
|
|
3938
|
+
/**
|
|
3939
|
+
* Кастомный блок динамической панели.
|
|
3940
|
+
*
|
|
3941
|
+
* @slot
|
|
3942
|
+
* @default undefined */
|
|
3943
|
+
panel?: React.ReactNode;
|
|
3944
|
+
/**
|
|
3945
|
+
* Контент для динамической панели.
|
|
3946
|
+
*
|
|
3947
|
+
* @slot
|
|
3948
|
+
* @default undefined */
|
|
3893
3949
|
children?: React.ReactNode;
|
|
3894
|
-
/**
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
/**
|
|
3950
|
+
/**
|
|
3951
|
+
* Кастомные цвета.
|
|
3952
|
+
*
|
|
3953
|
+
* @general
|
|
3954
|
+
* @default {} */
|
|
3955
|
+
palette?: {
|
|
3956
|
+
headerColor?: Color;
|
|
3957
|
+
headerColorExpanded?: Color;
|
|
3958
|
+
headerColorDisabled?: Color;
|
|
3959
|
+
headerBackgroundColor?: Color;
|
|
3960
|
+
headerBackgroundColorExpanded?: Color;
|
|
3961
|
+
headerBackgroundColorDisabled?: Color;
|
|
3962
|
+
backgroundColor?: Color;
|
|
3963
|
+
backgroundColorExpanded?: Color;
|
|
3964
|
+
backgroundColorDisabled?: Color;
|
|
3965
|
+
};
|
|
3966
|
+
/**
|
|
3967
|
+
* Использование в хедере скелетонов вместо контента.
|
|
3968
|
+
*
|
|
3969
|
+
* @general
|
|
3970
|
+
* @default false */
|
|
3971
|
+
loading?: boolean;
|
|
3972
|
+
/**
|
|
3973
|
+
* Интерактивность отключена.
|
|
3974
|
+
*
|
|
3975
|
+
* @general
|
|
3976
|
+
* @default false */
|
|
3977
|
+
disabled?: boolean;
|
|
3978
|
+
/**
|
|
3979
|
+
* Уровень заголовка в хедере.
|
|
3980
|
+
*
|
|
3981
|
+
* @general
|
|
3982
|
+
* @default 'h3' */
|
|
3983
|
+
headingAs?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
3984
|
+
/**
|
|
3985
|
+
* Вариант внешнего вида без горизонтальных паддингов.
|
|
3986
|
+
*
|
|
3987
|
+
* @general
|
|
3988
|
+
* @default false */
|
|
3989
|
+
embedded?: boolean;
|
|
3990
|
+
/**
|
|
3991
|
+
* Раскрыть динамическую панель в начальном состоянии.
|
|
3992
|
+
*
|
|
3993
|
+
* @general
|
|
3994
|
+
* @default false */
|
|
3995
|
+
defaultExpanded?: boolean;
|
|
3996
|
+
/**
|
|
3997
|
+
* Текущее состояние динамической панели.
|
|
3998
|
+
*
|
|
3999
|
+
* Использование пропа включает контролируемый режим.
|
|
4000
|
+
*
|
|
4001
|
+
* @general
|
|
4002
|
+
* @default undefined */
|
|
4003
|
+
expanded?: boolean;
|
|
4004
|
+
/**
|
|
4005
|
+
* Идентификатор.
|
|
4006
|
+
*
|
|
4007
|
+
* Требуется для корректной работы, если компонент используется вместе с Accordion.
|
|
4008
|
+
*
|
|
4009
|
+
* @general
|
|
4010
|
+
* @default undefined */
|
|
4011
|
+
id?: string;
|
|
4012
|
+
/**
|
|
4013
|
+
* Скругление краев (px).
|
|
4014
|
+
*
|
|
4015
|
+
* @general
|
|
4016
|
+
* @default 0 */
|
|
4017
|
+
borderRadius?: number;
|
|
4018
|
+
/**
|
|
4019
|
+
* Вариант цветовой схемы.
|
|
4020
|
+
*
|
|
4021
|
+
* @general
|
|
4022
|
+
* @default false */
|
|
3911
4023
|
primary?: boolean;
|
|
3912
|
-
/**
|
|
4024
|
+
/**
|
|
4025
|
+
* Вариант цветовой схемы.
|
|
4026
|
+
*
|
|
4027
|
+
* @general
|
|
4028
|
+
* @default false */
|
|
3913
4029
|
secondary?: boolean;
|
|
3914
|
-
/**
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
4030
|
+
/**
|
|
4031
|
+
* Колбек будет вызван при изменении состояния динамической панели.
|
|
4032
|
+
*
|
|
4033
|
+
* @general
|
|
4034
|
+
* @default undefined */
|
|
4035
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
4036
|
+
/**
|
|
4037
|
+
* Размер.
|
|
4038
|
+
*
|
|
4039
|
+
* Использование кортежей включает применение размеров в зависимости от ширины вьюпорта.
|
|
4040
|
+
*
|
|
4041
|
+
* @general
|
|
4042
|
+
* @default 'm' */
|
|
4043
|
+
size?: Size$1 | [DESKTOP: Size$1, TABLET: Size$1, MOBILE: Size$1] | [XL: Size$1, L: Size$1, M: Size$1, S: Size$1, XS: Size$1, XXS: Size$1];
|
|
4044
|
+
/**
|
|
4045
|
+
* Размер для XXS брейкпоинта.
|
|
4046
|
+
*
|
|
4047
|
+
* @default undefined */
|
|
4048
|
+
sizeXXS?: Size$1;
|
|
4049
|
+
/**
|
|
4050
|
+
* Размер для XS брейкпоинта.
|
|
4051
|
+
*
|
|
4052
|
+
* @default undefined */
|
|
4053
|
+
sizeXS?: Size$1;
|
|
4054
|
+
/**
|
|
4055
|
+
* Размер для S брейкпоинта.
|
|
4056
|
+
*
|
|
4057
|
+
* @default undefined */
|
|
4058
|
+
sizeS?: Size$1;
|
|
4059
|
+
/**
|
|
4060
|
+
* Размер для M брейкпоинта.
|
|
4061
|
+
*
|
|
4062
|
+
* @default undefined */
|
|
4063
|
+
sizeM?: Size$1;
|
|
4064
|
+
/**
|
|
4065
|
+
* Размер для L брейкпоинта.
|
|
4066
|
+
*
|
|
4067
|
+
* @default undefined */
|
|
4068
|
+
sizeL?: Size$1;
|
|
4069
|
+
/**
|
|
4070
|
+
* Размер для XL брейкпоинта.
|
|
4071
|
+
*
|
|
4072
|
+
* @default undefined */
|
|
4073
|
+
sizeXL?: Size$1;
|
|
4074
|
+
/**
|
|
4075
|
+
* Модификация размеров.
|
|
4076
|
+
*
|
|
4077
|
+
* @general
|
|
4078
|
+
* @default undefined */
|
|
4079
|
+
sizes?: Partial<Record<Size$1, React.CSSProperties>>;
|
|
4080
|
+
/**
|
|
4081
|
+
* Внешние отступы.
|
|
4082
|
+
*
|
|
4083
|
+
* Использование кортежей включает применение отступов в зависимости от ширины вьюпорта.
|
|
4084
|
+
*
|
|
4085
|
+
* @general
|
|
4086
|
+
* @default undefined */
|
|
4087
|
+
margin?: Margin$1 | [DESKTOP: Margin$1, TABLET: Margin$1, MOBILE: Margin$1] | [XL: Margin$1, L: Margin$1, M: Margin$1, S: Margin$1, XS: Margin$1, XXS: Margin$1];
|
|
4088
|
+
/**
|
|
4089
|
+
* Отступ для XXS брейкпоинта.
|
|
4090
|
+
*
|
|
4091
|
+
* @default undefined */
|
|
4092
|
+
marginXXS?: Margin$1;
|
|
4093
|
+
/**
|
|
4094
|
+
* Отступ для XS брейкпоинта.
|
|
4095
|
+
*
|
|
4096
|
+
* @default undefined */
|
|
4097
|
+
marginXS?: Margin$1;
|
|
4098
|
+
/**
|
|
4099
|
+
* Отступ для S брейкпоинта.
|
|
4100
|
+
*
|
|
4101
|
+
* @default undefined */
|
|
4102
|
+
marginS?: Margin$1;
|
|
4103
|
+
/**
|
|
4104
|
+
* Отступ для M брейкпоинта.
|
|
4105
|
+
*
|
|
4106
|
+
* @default undefined */
|
|
4107
|
+
marginM?: Margin$1;
|
|
4108
|
+
/**
|
|
4109
|
+
* Отступ для L брейкпоинта.
|
|
4110
|
+
*
|
|
4111
|
+
* @default undefined */
|
|
4112
|
+
marginL?: Margin$1;
|
|
4113
|
+
/**
|
|
4114
|
+
* Отступ для XL брейкпоинта.
|
|
4115
|
+
*
|
|
4116
|
+
* @default undefined */
|
|
4117
|
+
marginXL?: Margin$1;
|
|
3918
4118
|
}
|
|
4119
|
+
declare type AccordionItemProps = AccordionItemBaseProps & Omit<React.ComponentPropsWithRef<'section'>, keyof AccordionItemBaseProps>;
|
|
3919
4120
|
|
|
3920
4121
|
/**
|
|
3921
4122
|
*
|
|
3922
|
-
*
|
|
4123
|
+
* Компонент для создания сворачиваемой секции контента.
|
|
3923
4124
|
*
|
|
3924
|
-
*
|
|
4125
|
+
* Поддерживается "ref" и все нативные атрибуты \<section\> элемента.
|
|
3925
4126
|
*
|
|
3926
|
-
*
|
|
4127
|
+
* Дизайн соответствует [рекомендациям WAI-ARIA](https://www.w3.org/WAI/ARIA/apg/patterns/accordion/).
|
|
3927
4128
|
*
|
|
3928
|
-
*
|
|
4129
|
+
* @visibleName Accordion.Item
|
|
3929
4130
|
*/
|
|
3930
|
-
declare const
|
|
4131
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps>;
|
|
3931
4132
|
|
|
3932
|
-
declare type
|
|
3933
|
-
declare type
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
*
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
*
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
/**
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
*
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
4133
|
+
declare type Size = 'l' | 'm' | 's' | 'xs';
|
|
4134
|
+
declare type Margin = number | string;
|
|
4135
|
+
interface AccordionBaseProps extends ResponsiveSizeProps<Size>, ResponsiveMarginProps {
|
|
4136
|
+
/**
|
|
4137
|
+
* Одновременно раскрыты могут быть несколько динамических панелей.
|
|
4138
|
+
*
|
|
4139
|
+
* @general
|
|
4140
|
+
* @default false */
|
|
4141
|
+
multiple?: boolean;
|
|
4142
|
+
/**
|
|
4143
|
+
* Динамическая панель может быть свернута после раскрытия.
|
|
4144
|
+
*
|
|
4145
|
+
* @general
|
|
4146
|
+
* @default false */
|
|
4147
|
+
collapsible?: boolean;
|
|
4148
|
+
/**
|
|
4149
|
+
* Идентификаторы раскрытых динамических панелей в начальном состоянии.
|
|
4150
|
+
*
|
|
4151
|
+
* Должны соответствовать идентификаторам айтемов аккордеона.
|
|
4152
|
+
*
|
|
4153
|
+
* @general
|
|
4154
|
+
* @default undefined */
|
|
4155
|
+
defaultExpanded?: string[];
|
|
4156
|
+
/**
|
|
4157
|
+
* Идентификаторы раскрытых динамических панелей.
|
|
4158
|
+
*
|
|
4159
|
+
* Должны соответствовать идентификаторам айтемов аккордеона.
|
|
4160
|
+
*
|
|
4161
|
+
* Использование пропа включает контролируемый режим.
|
|
4162
|
+
*
|
|
4163
|
+
* @general
|
|
4164
|
+
* @default undefined */
|
|
4165
|
+
expanded?: string[];
|
|
4166
|
+
/**
|
|
4167
|
+
* Кастомные цвета.
|
|
4168
|
+
*
|
|
4169
|
+
* @general
|
|
4170
|
+
* @default {} */
|
|
4171
|
+
palette?: {
|
|
4172
|
+
headerColor?: Color;
|
|
4173
|
+
headerColorExpanded?: Color;
|
|
4174
|
+
headerColorDisabled?: Color;
|
|
4175
|
+
headerBackgroundColor?: Color;
|
|
4176
|
+
headerBackgroundColorExpanded?: Color;
|
|
4177
|
+
headerBackgroundColorDisabled?: Color;
|
|
4178
|
+
backgroundColor?: Color;
|
|
4179
|
+
backgroundColorExpanded?: Color;
|
|
4180
|
+
backgroundColorDisabled?: Color;
|
|
4181
|
+
};
|
|
4182
|
+
/**
|
|
4183
|
+
* Использование скелетонов вместо контента.
|
|
4184
|
+
*
|
|
4185
|
+
* @general
|
|
4186
|
+
* @default false */
|
|
3963
4187
|
loading?: boolean;
|
|
3964
|
-
/**
|
|
3965
|
-
*
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
4188
|
+
/**
|
|
4189
|
+
* Интерактивность отключена.
|
|
4190
|
+
*
|
|
4191
|
+
* @general
|
|
4192
|
+
* @default false */
|
|
4193
|
+
disabled?: boolean;
|
|
4194
|
+
/**
|
|
4195
|
+
* Вариант внешнего вида без горизонтальных паддингов.
|
|
4196
|
+
*
|
|
4197
|
+
* @general
|
|
4198
|
+
* @default false */
|
|
4199
|
+
embedded?: boolean;
|
|
4200
|
+
/**
|
|
4201
|
+
* Скругление краев айтемов (px).
|
|
4202
|
+
*
|
|
4203
|
+
* @general
|
|
4204
|
+
* @default 0 */
|
|
4205
|
+
borderRadius?: number;
|
|
4206
|
+
/**
|
|
4207
|
+
* Отступ между айтемами (px).
|
|
4208
|
+
*
|
|
4209
|
+
* @general
|
|
4210
|
+
* @default undefined */
|
|
4211
|
+
gap?: number;
|
|
4212
|
+
/**
|
|
4213
|
+
* Вариант цветовой схемы.
|
|
4214
|
+
*
|
|
4215
|
+
* @general
|
|
4216
|
+
* @default false */
|
|
4217
|
+
primary?: boolean;
|
|
4218
|
+
/**
|
|
4219
|
+
* Вариант цветовой схемы.
|
|
4220
|
+
*
|
|
4221
|
+
* @general
|
|
4222
|
+
* @default false */
|
|
4223
|
+
secondary?: boolean;
|
|
4224
|
+
/**
|
|
4225
|
+
* Колбек будет вызван при изменении состояний динамических панелей.
|
|
4226
|
+
*
|
|
4227
|
+
* @general
|
|
4228
|
+
* @default undefined */
|
|
4229
|
+
onExpandedChange?: (expanded: string[]) => void;
|
|
4230
|
+
/**
|
|
4231
|
+
* Размер.
|
|
4232
|
+
*
|
|
4233
|
+
* Использование кортежей включает применение размеров в зависимости от ширины вьюпорта.
|
|
4234
|
+
*
|
|
4235
|
+
* @general
|
|
4236
|
+
* @default 'm' */
|
|
4237
|
+
size?: Size | [DESKTOP: Size, TABLET: Size, MOBILE: Size] | [XL: Size, L: Size, M: Size, S: Size, XS: Size, XXS: Size];
|
|
4238
|
+
/**
|
|
4239
|
+
* Размер для XXS брейкпоинта.
|
|
4240
|
+
*
|
|
4241
|
+
* @default undefined */
|
|
4242
|
+
sizeXXS?: Size;
|
|
4243
|
+
/**
|
|
4244
|
+
* Размер для XS брейкпоинта.
|
|
4245
|
+
*
|
|
4246
|
+
* @default undefined */
|
|
4247
|
+
sizeXS?: Size;
|
|
4248
|
+
/**
|
|
4249
|
+
* Размер для S брейкпоинта.
|
|
4250
|
+
*
|
|
4251
|
+
* @default undefined */
|
|
4252
|
+
sizeS?: Size;
|
|
4253
|
+
/**
|
|
4254
|
+
* Размер для M брейкпоинта.
|
|
4255
|
+
*
|
|
4256
|
+
* @default undefined */
|
|
4257
|
+
sizeM?: Size;
|
|
4258
|
+
/**
|
|
4259
|
+
* Размер для L брейкпоинта.
|
|
4260
|
+
*
|
|
4261
|
+
* @default undefined */
|
|
4262
|
+
sizeL?: Size;
|
|
4263
|
+
/**
|
|
4264
|
+
* Размер для XL брейкпоинта.
|
|
4265
|
+
*
|
|
4266
|
+
* @default undefined */
|
|
4267
|
+
sizeXL?: Size;
|
|
4268
|
+
/**
|
|
4269
|
+
* Модификация размеров.
|
|
4270
|
+
*
|
|
4271
|
+
* @general
|
|
4272
|
+
* @default undefined */
|
|
4273
|
+
sizes?: Partial<Record<Size, React.CSSProperties>>;
|
|
4274
|
+
/**
|
|
4275
|
+
* Внешние отступы.
|
|
4276
|
+
*
|
|
4277
|
+
* Использование кортежей включает применение отступов в зависимости от ширины вьюпорта.
|
|
4278
|
+
*
|
|
4279
|
+
* @general
|
|
4280
|
+
* @default undefined */
|
|
4281
|
+
margin?: Margin | [DESKTOP: Margin, TABLET: Margin, MOBILE: Margin] | [XL: Margin, L: Margin, M: Margin, S: Margin, XS: Margin, XXS: Margin];
|
|
4282
|
+
/**
|
|
4283
|
+
* Отступ для XXS брейкпоинта.
|
|
4284
|
+
*
|
|
4285
|
+
* @default undefined */
|
|
4286
|
+
marginXXS?: Margin;
|
|
4287
|
+
/**
|
|
4288
|
+
* Отступ для XS брейкпоинта.
|
|
4289
|
+
*
|
|
4290
|
+
* @default undefined */
|
|
4291
|
+
marginXS?: Margin;
|
|
4292
|
+
/**
|
|
4293
|
+
* Отступ для S брейкпоинта.
|
|
4294
|
+
*
|
|
4295
|
+
* @default undefined */
|
|
4296
|
+
marginS?: Margin;
|
|
4297
|
+
/**
|
|
4298
|
+
* Отступ для M брейкпоинта.
|
|
4299
|
+
*
|
|
4300
|
+
* @default undefined */
|
|
4301
|
+
marginM?: Margin;
|
|
4302
|
+
/**
|
|
4303
|
+
* Отступ для L брейкпоинта.
|
|
4304
|
+
*
|
|
4305
|
+
* @default undefined */
|
|
4306
|
+
marginL?: Margin;
|
|
4307
|
+
/**
|
|
4308
|
+
* Отступ для XL брейкпоинта.
|
|
4309
|
+
*
|
|
4310
|
+
* @default undefined */
|
|
4311
|
+
marginXL?: Margin;
|
|
3979
4312
|
}
|
|
4313
|
+
declare type AccordionProps = AccordionBaseProps & Omit<React.ComponentPropsWithRef<'div'>, keyof AccordionBaseProps>;
|
|
4314
|
+
declare type AccordionDividerBaseProps = ResponsiveMarginProps & ColorProperty;
|
|
4315
|
+
declare type AccordionDividerProps = AccordionDividerBaseProps & Omit<React.ComponentPropsWithRef<'div'>, keyof AccordionDividerBaseProps>;
|
|
4316
|
+
|
|
4317
|
+
declare const AccordionDivider: React.ForwardRefExoticComponent<AccordionDividerProps>;
|
|
3980
4318
|
|
|
3981
4319
|
/**
|
|
3982
4320
|
*
|
|
3983
|
-
* Компонент
|
|
3984
|
-
*
|
|
3985
|
-
* Можно передать "ref", который будет ассоциирован с рутовым элементом.
|
|
4321
|
+
* Компонент для создания вертикального стека сворачиваемых секций контента.
|
|
3986
4322
|
*
|
|
3987
|
-
*
|
|
4323
|
+
* Поддерживается "ref" и все нативные атрибуты \<div\> элемента.
|
|
3988
4324
|
*
|
|
3989
|
-
*
|
|
4325
|
+
* Дизайн соответствует [рекомендациям WAI-ARIA](https://www.w3.org/WAI/ARIA/apg/patterns/accordion/).
|
|
3990
4326
|
*/
|
|
3991
|
-
declare const Accordion: React.ForwardRefExoticComponent<AccordionProps
|
|
4327
|
+
declare const Accordion: React.ForwardRefExoticComponent<AccordionProps> & {
|
|
4328
|
+
Item: typeof AccordionItem;
|
|
4329
|
+
Divider: typeof AccordionDivider;
|
|
4330
|
+
};
|
|
3992
4331
|
|
|
3993
4332
|
declare type SwitchSize = 'xl' | 'l' | 'm' | 's' | 'xs';
|
|
3994
4333
|
declare type SwitchPalette = {
|
|
@@ -4095,6 +4434,7 @@ interface Theme {
|
|
|
4095
4434
|
DialogComponent?: Partial<DialogComponentProps>;
|
|
4096
4435
|
Notification?: Partial<NotificationProps>;
|
|
4097
4436
|
Accordion?: Partial<AccordionProps>;
|
|
4437
|
+
AccordionItem?: Partial<AccordionItemProps>;
|
|
4098
4438
|
Switch?: Partial<SwitchProps>;
|
|
4099
4439
|
};
|
|
4100
4440
|
}
|
|
@@ -4186,7 +4526,7 @@ declare const useScrollMonitor: ({ target, scrollThrottleMS, scrollEndDebounceMS
|
|
|
4186
4526
|
|
|
4187
4527
|
declare const vAlign: (vAlign: 'top' | 'middle' | 'bottom' | 'text-top' | 'text-bottom' | 'baseline') => styled_components.FlattenSimpleInterpolation;
|
|
4188
4528
|
|
|
4189
|
-
declare function buildMediaQuery(value: number | Size$
|
|
4529
|
+
declare function buildMediaQuery(value: number | Size$6 | '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$6, number>): ReturnType<typeof css>;
|
|
4190
4530
|
declare const desktopFirst: (a: string, b: string) => number;
|
|
4191
4531
|
declare const mobileFirst: (a: string, b: string) => number;
|
|
4192
4532
|
|
|
@@ -5969,6 +6309,52 @@ interface FormLabelProps extends ResponsiveSizeProps<FormLabelSize>, ResponsiveM
|
|
|
5969
6309
|
*/
|
|
5970
6310
|
declare const FormLabel: React.ForwardRefExoticComponent<FormLabelProps>;
|
|
5971
6311
|
|
|
6312
|
+
declare type SkeletonPalette = {
|
|
6313
|
+
color: CSSColor;
|
|
6314
|
+
gradientColor: CSSColor;
|
|
6315
|
+
gradientHighlightColor: CSSColor;
|
|
6316
|
+
};
|
|
6317
|
+
interface SkeletonProps extends ResponsiveMarginProps, React.ComponentPropsWithRef<'div'> {
|
|
6318
|
+
/** Element to infer sizing */
|
|
6319
|
+
children?: React.ReactNode;
|
|
6320
|
+
/** Custom colors */
|
|
6321
|
+
palette?: Partial<Record<keyof SkeletonPalette, Color>>;
|
|
6322
|
+
/** Display 'inline-block' */
|
|
6323
|
+
inline?: boolean;
|
|
6324
|
+
/** Root border-radius: 50% */
|
|
6325
|
+
round?: boolean;
|
|
6326
|
+
/** Root border-radius */
|
|
6327
|
+
borderRadius?: string | number;
|
|
6328
|
+
/** Root width */
|
|
6329
|
+
width?: string | number;
|
|
6330
|
+
/** Root height */
|
|
6331
|
+
height?: string | number;
|
|
6332
|
+
/** Value (ms) to control animation speed */
|
|
6333
|
+
animationDuration?: number;
|
|
6334
|
+
/** Delay to animation start (ms) to avoid flicker at fast connection */
|
|
6335
|
+
animationDelay?: number;
|
|
6336
|
+
/** Appearance variant */
|
|
6337
|
+
primary?: boolean;
|
|
6338
|
+
/** Appearance variant */
|
|
6339
|
+
secondary?: boolean;
|
|
6340
|
+
/** Appearance variant */
|
|
6341
|
+
onColored?: boolean;
|
|
6342
|
+
/** Root node type */
|
|
6343
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
6344
|
+
}
|
|
6345
|
+
|
|
6346
|
+
/**
|
|
6347
|
+
*
|
|
6348
|
+
* Component accepts all \<div\> attributes.
|
|
6349
|
+
*
|
|
6350
|
+
* Responsive "margin" props are supported.
|
|
6351
|
+
*
|
|
6352
|
+
* Exposed "ref" attached to root node.
|
|
6353
|
+
*
|
|
6354
|
+
* See full [SkeletonProps](https://github.com/foxford/ui/blob/master/src/components/Skeleton/types.ts)
|
|
6355
|
+
*/
|
|
6356
|
+
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps>;
|
|
6357
|
+
|
|
5972
6358
|
declare const FuseSearchKeys: {
|
|
5973
6359
|
readonly text: "text";
|
|
5974
6360
|
readonly label: "label";
|
|
@@ -6309,4 +6695,4 @@ declare type AspectRatioProps = AspectRatioBaseProps & Omit<React.ComponentProps
|
|
|
6309
6695
|
*/
|
|
6310
6696
|
declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioProps>;
|
|
6311
6697
|
|
|
6312
|
-
export { Accordion, type AccordionProps, ActionBtn, type ActionBtnProps, 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, 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, Dropdown, type DropdownProps, FormLabel, type FormLabelProps, type HEX, INITIAL_MASK, Icon, IconButton, type IconButtonProps, 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, Menu, type MenuComponentProps, type MenuContainerProps, type MenuDividerProps, type MenuListProps, type MenuProps, Modal, type ModalProps, Notification, type NotificationProps, type Nullable, Paper, type PaperProps, type PlaygroundPropControl, type PlaygroundToolbar, Popover, type PopoverComponentProps, type PopoverProps, Progress, ProgressCircle, type 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$
|
|
6698
|
+
export { Accordion, type AccordionItemProps, type AccordionProps, ActionBtn, type ActionBtnProps, 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, 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, Dropdown, type DropdownProps, FormLabel, type FormLabelProps, type HEX, INITIAL_MASK, Icon, IconButton, type IconButtonProps, 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, Menu, type MenuComponentProps, type MenuContainerProps, type MenuDividerProps, type MenuListProps, type MenuProps, Modal, type ModalProps, Notification, type NotificationProps, type Nullable, Paper, type PaperProps, type PlaygroundPropControl, type PlaygroundToolbar, Popover, type PopoverComponentProps, type PopoverProps, Progress, ProgressCircle, type 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$6 as Size, type SizeValue, Skeleton, type SkeletonProps, Spacer, type SpacerProps, Spinner, type SpinnerProps, Switch, type SwitchProps, Switcher, type SwitcherProps, Tab, 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, Tooltip, type TooltipComponentProps, type TooltipProps, 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, useClickOutside, useScrollMonitor, vAlign };
|