@foxford/ui 2.80.0-beta-d262988-20250924 → 2.81.0-beta-3000e76-20250930
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Arrow.js","sources":["../../../../src/components/Arrow/Arrow.tsx"],"sourcesContent":["import { forwardRef } from 'react'\nimport { withMergedProps } from 'hocs/withMergedProps'\nimport type { MergedProps } from 'hocs/withMergedProps'\nimport { Icon } from 'components/Icon'\nimport type { IconProps } from 'components/Icon'\nimport { SIZES } from './constants'\nimport { SIZES_DEFAULT } from './default-constants'\nimport type { ArrowProps } from './types'\n\nimport * as Styled from './style'\n\nconst COMPONENT_NAME = 'Arrow'\n\n/**\n *\n *
|
|
1
|
+
{"version":3,"file":"Arrow.js","sources":["../../../../src/components/Arrow/Arrow.tsx"],"sourcesContent":["import { forwardRef } from 'react'\nimport { withMergedProps } from 'hocs/withMergedProps'\nimport type { MergedProps } from 'hocs/withMergedProps'\nimport { Icon } from 'components/Icon'\nimport type { IconProps } from 'components/Icon'\nimport { SIZES } from './constants'\nimport { SIZES_DEFAULT } from './default-constants'\nimport type { ArrowProps } from './types'\n\nimport * as Styled from './style'\n\nconst COMPONENT_NAME = 'Arrow'\n\n/**\n *\n * Контрол многоцелевого назначения.\n *\n * Поддерживается \"ref\" и все нативные атрибуты \\<button\\> элемента.\n */\nconst Arrow: React.ForwardRefExoticComponent<ArrowProps> = withMergedProps<ArrowProps, HTMLButtonElement>(\n forwardRef<HTMLButtonElement, MergedProps<ArrowProps>>((props, ref) => {\n const { type = 'button', size = 'l', top = true, iconProps = {}, ...restProps } = props\n\n const iconBaseProps: IconProps = { as: 'span', color: 'inherit' }\n\n return (\n <Styled.Root {...restProps} type={type} size={size} top={top} ref={ref}>\n <Icon name={restProps.preset === 'brand' ? 'arrowUp' : 'chevronUp'} {...iconBaseProps} {...iconProps} />\n </Styled.Root>\n )\n }),\n {\n displayName: COMPONENT_NAME,\n sizes: (props) => (props.preset === 'brand' ? SIZES : SIZES_DEFAULT),\n }\n)\n\nexport { Arrow, COMPONENT_NAME }\n\nexport type { ArrowProps }\n"],"names":["Arrow","withMergedProps","forwardRef","props","ref","type","size","top","iconProps","restProps","_jsx","Styled","children","jsx","Icon","name","preset","as","color","displayName","sizes","SIZES","SIZES_DEFAULT"],"mappings":"oTAmBMA,MAAAA,MAAqDC,gBAAAA,gBACzDC,MAAAA,YAAuD,CAACC,EAAOC,KAC7D,MAAMC,KAAEA,EAAO,SAAQC,KAAEA,EAAO,IAAGC,IAAEA,GAAM,EAAIC,UAAEA,EAAY,CAAE,KAAKC,GAAcN,EAIlF,OACEO,WAAAA,IAACC,MAAAA,KAAW,IAAKF,EAAWJ,KAAMA,EAAMC,KAAMA,EAAMC,IAAKA,EAAKH,IAAKA,EAAIQ,SACrEF,WAAAG,IAACC,UAAI,CAACC,KAAMN,EAAUO,SAAW,QAAU,UAAY,YAJxBC,GAAI,OAAQC,MAAO,aAIyCV,KAC/E,IAGlB,CACEW,YArBmB,QAsBnBC,MAAQjB,GAAWA,EAAMa,SAAW,QAAUK,UAAKA,MAAGC,iBAAAA,2DAtBnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Arrow.mjs","sources":["../../../../src/components/Arrow/Arrow.tsx"],"sourcesContent":["import { forwardRef } from 'react'\nimport { withMergedProps } from 'hocs/withMergedProps'\nimport type { MergedProps } from 'hocs/withMergedProps'\nimport { Icon } from 'components/Icon'\nimport type { IconProps } from 'components/Icon'\nimport { SIZES } from './constants'\nimport { SIZES_DEFAULT } from './default-constants'\nimport type { ArrowProps } from './types'\n\nimport * as Styled from './style'\n\nconst COMPONENT_NAME = 'Arrow'\n\n/**\n *\n *
|
|
1
|
+
{"version":3,"file":"Arrow.mjs","sources":["../../../../src/components/Arrow/Arrow.tsx"],"sourcesContent":["import { forwardRef } from 'react'\nimport { withMergedProps } from 'hocs/withMergedProps'\nimport type { MergedProps } from 'hocs/withMergedProps'\nimport { Icon } from 'components/Icon'\nimport type { IconProps } from 'components/Icon'\nimport { SIZES } from './constants'\nimport { SIZES_DEFAULT } from './default-constants'\nimport type { ArrowProps } from './types'\n\nimport * as Styled from './style'\n\nconst COMPONENT_NAME = 'Arrow'\n\n/**\n *\n * Контрол многоцелевого назначения.\n *\n * Поддерживается \"ref\" и все нативные атрибуты \\<button\\> элемента.\n */\nconst Arrow: React.ForwardRefExoticComponent<ArrowProps> = withMergedProps<ArrowProps, HTMLButtonElement>(\n forwardRef<HTMLButtonElement, MergedProps<ArrowProps>>((props, ref) => {\n const { type = 'button', size = 'l', top = true, iconProps = {}, ...restProps } = props\n\n const iconBaseProps: IconProps = { as: 'span', color: 'inherit' }\n\n return (\n <Styled.Root {...restProps} type={type} size={size} top={top} ref={ref}>\n <Icon name={restProps.preset === 'brand' ? 'arrowUp' : 'chevronUp'} {...iconBaseProps} {...iconProps} />\n </Styled.Root>\n )\n }),\n {\n displayName: COMPONENT_NAME,\n sizes: (props) => (props.preset === 'brand' ? SIZES : SIZES_DEFAULT),\n }\n)\n\nexport { Arrow, COMPONENT_NAME }\n\nexport type { ArrowProps }\n"],"names":["COMPONENT_NAME","Arrow","withMergedProps","forwardRef","props","ref","type","size","top","iconProps","restProps","_jsx","Styled","children","Icon","name","preset","as","color","displayName","sizes","SIZES","SIZES_DEFAULT"],"mappings":"oRAWMA,MAAAA,eAAiB,QAQjBC,MAAAA,MAAqDC,gBACzDC,YAAuD,CAACC,EAAOC,KAC7D,MAAMC,KAAEA,EAAO,SAAQC,KAAEA,EAAO,IAAGC,IAAEA,GAAM,EAAIC,UAAEA,EAAY,CAAE,KAAKC,GAAcN,EAIlF,OACEO,IAACC,KAAW,IAAKF,EAAWJ,KAAMA,EAAMC,KAAMA,EAAMC,IAAKA,EAAKH,IAAKA,EAAIQ,SACrEF,IAACG,KAAI,CAACC,KAAML,EAAUM,SAAW,QAAU,UAAY,YAJxBC,GAAI,OAAQC,MAAO,aAIyCT,KAC/E,IAGlB,CACEU,YArBmB,QAsBnBC,MAAQhB,GAAWA,EAAMY,SAAW,QAAUK,MAAQC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.js","sources":["../../../../src/components/Tab/Tab.tsx"],"sourcesContent":["import { forwardRef } from 'react'\nimport { withMergedProps } from 'hocs/withMergedProps'\nimport type { MergedProps } from 'hocs/withMergedProps'\nimport { Text } from 'components/Text'\nimport type { TextProps } from 'components/Text'\nimport { SIZES } from './constants'\nimport { SIZES_DEFAULT } from './default-constants'\nimport * as Styled from './style'\nimport type { TabProps } from './types'\n\nconst COMPONENT_NAME = 'Tab'\n\n/**\n *\n *
|
|
1
|
+
{"version":3,"file":"Tab.js","sources":["../../../../src/components/Tab/Tab.tsx"],"sourcesContent":["import { forwardRef } from 'react'\nimport { withMergedProps } from 'hocs/withMergedProps'\nimport type { MergedProps } from 'hocs/withMergedProps'\nimport { Text } from 'components/Text'\nimport type { TextProps } from 'components/Text'\nimport { SIZES } from './constants'\nimport { SIZES_DEFAULT } from './default-constants'\nimport * as Styled from './style'\nimport type { TabProps } from './types'\n\nconst COMPONENT_NAME = 'Tab'\n\n/**\n *\n * Контрол, предназначенный для навигации между разделами контента.\n *\n * Поддерживается \"ref\" и все нативные атрибуты \\<button\\> элемента.\n */\nconst Tab: React.ForwardRefExoticComponent<TabProps> = withMergedProps<TabProps, HTMLButtonElement>(\n forwardRef<HTMLButtonElement, MergedProps<TabProps>>((props, ref) => {\n const { size = 'm', type = 'button', textProps = {}, children, theme, ...restProps } = props\n\n const baseTextProps: TextProps = { as: 'span', size: 'inherit', color: 'inherit', weight: 'inherit' }\n\n return (\n <Styled.Root\n {...restProps}\n size={size}\n tabTheme={theme}\n type={restProps.as === undefined ? type : undefined}\n ref={ref}\n >\n {restProps.preset === 'brand' ? (\n <>\n {restProps.left ? <Styled.Edge /> : null}\n <Styled.Content>\n {typeof children === 'function' ? (\n children({ baseTextProps, textProps })\n ) : (\n <Text {...baseTextProps} {...textProps}>\n {children}\n </Text>\n )}\n </Styled.Content>\n {restProps.right ? <Styled.Edge after /> : null}\n </>\n ) : typeof children === 'function' ? (\n children({ baseTextProps, textProps })\n ) : (\n <Text {...baseTextProps} {...textProps}>\n {children}\n </Text>\n )}\n </Styled.Root>\n )\n }),\n {\n displayName: COMPONENT_NAME,\n sizes: (props) => {\n return props.preset === 'brand' ? SIZES : SIZES_DEFAULT\n },\n }\n)\n\nexport { Tab, COMPONENT_NAME }\n"],"names":["Tab","withMergedProps","forwardRef","props","ref","size","type","textProps","children","theme","restProps","baseTextProps","as","color","weight","_jsx","Styled","tabTheme","undefined","preset","_jsxs","_Fragment","left","jsx","Text","right","after","displayName","sizes","SIZES","SIZES_DEFAULT"],"mappings":"oTAkBMA,MAAAA,IAAiDC,gBAAAA,gBACrDC,MAAAA,YAAqD,CAACC,EAAOC,KAC3D,MAAMC,KAAEA,EAAO,IAAGC,KAAEA,EAAO,SAAQC,UAAEA,EAAY,CAAE,EAAAC,SAAEA,EAAQC,MAAEA,KAAUC,GAAcP,EAEvF,MAAMQ,EAA2B,CAAEC,GAAI,OAAQP,KAAM,UAAWQ,MAAO,UAAWC,OAAQ,WAE1F,OACEC,WAAAA,IAACC,MAAAA,KAAW,IACNN,EACJL,KAAMA,EACNY,SAAUR,EACVH,KAAMI,EAAUE,UAAOM,EAAYZ,OAAOY,EAC1Cd,IAAKA,EAAII,SAERE,EAAUS,SAAW,QACpBC,WAAAA,KAAAC,WAAAA,SAAA,CAAAb,UACGE,EAAUY,KAAOP,WAAAQ,IAACP,WAAa,CAAA,GAAI,KACpCD,WAAAQ,IAACP,cAAc,CAAAR,gBACLA,GAAa,WACnBA,EAAS,CAAEG,gBAAeJ,cAE1BQ,WAAAQ,IAACC,UAAI,IAAKb,KAAmBJ,EAASC,SACnCA,MAINE,EAAUe,MAAQV,WAAAA,IAACC,MAAAA,KAAW,CAACU,OAAK,IAAM,eAEpClB,GAAa,WACtBA,EAAS,CAAEG,gBAAeJ,cAE1BQ,WAAAQ,IAACC,UAAI,IAAKb,KAAmBJ,EAASC,SACnCA,KAGO,IAGlB,CACEmB,YA/CmB,MAgDnBC,MAAQzB,GACCA,EAAMgB,SAAW,QAAUU,UAAAA,MAAQC,iBAAAA,uCAjDzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.mjs","sources":["../../../../src/components/Tab/Tab.tsx"],"sourcesContent":["import { forwardRef } from 'react'\nimport { withMergedProps } from 'hocs/withMergedProps'\nimport type { MergedProps } from 'hocs/withMergedProps'\nimport { Text } from 'components/Text'\nimport type { TextProps } from 'components/Text'\nimport { SIZES } from './constants'\nimport { SIZES_DEFAULT } from './default-constants'\nimport * as Styled from './style'\nimport type { TabProps } from './types'\n\nconst COMPONENT_NAME = 'Tab'\n\n/**\n *\n *
|
|
1
|
+
{"version":3,"file":"Tab.mjs","sources":["../../../../src/components/Tab/Tab.tsx"],"sourcesContent":["import { forwardRef } from 'react'\nimport { withMergedProps } from 'hocs/withMergedProps'\nimport type { MergedProps } from 'hocs/withMergedProps'\nimport { Text } from 'components/Text'\nimport type { TextProps } from 'components/Text'\nimport { SIZES } from './constants'\nimport { SIZES_DEFAULT } from './default-constants'\nimport * as Styled from './style'\nimport type { TabProps } from './types'\n\nconst COMPONENT_NAME = 'Tab'\n\n/**\n *\n * Контрол, предназначенный для навигации между разделами контента.\n *\n * Поддерживается \"ref\" и все нативные атрибуты \\<button\\> элемента.\n */\nconst Tab: React.ForwardRefExoticComponent<TabProps> = withMergedProps<TabProps, HTMLButtonElement>(\n forwardRef<HTMLButtonElement, MergedProps<TabProps>>((props, ref) => {\n const { size = 'm', type = 'button', textProps = {}, children, theme, ...restProps } = props\n\n const baseTextProps: TextProps = { as: 'span', size: 'inherit', color: 'inherit', weight: 'inherit' }\n\n return (\n <Styled.Root\n {...restProps}\n size={size}\n tabTheme={theme}\n type={restProps.as === undefined ? type : undefined}\n ref={ref}\n >\n {restProps.preset === 'brand' ? (\n <>\n {restProps.left ? <Styled.Edge /> : null}\n <Styled.Content>\n {typeof children === 'function' ? (\n children({ baseTextProps, textProps })\n ) : (\n <Text {...baseTextProps} {...textProps}>\n {children}\n </Text>\n )}\n </Styled.Content>\n {restProps.right ? <Styled.Edge after /> : null}\n </>\n ) : typeof children === 'function' ? (\n children({ baseTextProps, textProps })\n ) : (\n <Text {...baseTextProps} {...textProps}>\n {children}\n </Text>\n )}\n </Styled.Root>\n )\n }),\n {\n displayName: COMPONENT_NAME,\n sizes: (props) => {\n return props.preset === 'brand' ? SIZES : SIZES_DEFAULT\n },\n }\n)\n\nexport { Tab, COMPONENT_NAME }\n"],"names":["COMPONENT_NAME","Tab","withMergedProps","forwardRef","props","ref","size","type","textProps","children","theme","restProps","baseTextProps","as","color","weight","_jsx","Styled","tabTheme","undefined","preset","_jsxs","_Fragment","left","Text","right","after","displayName","sizes","SIZES","SIZES_DEFAULT"],"mappings":"+SAUMA,MAAAA,eAAiB,MAQjBC,MAAAA,IAAiDC,gBACrDC,YAAqD,CAACC,EAAOC,KAC3D,MAAMC,KAAEA,EAAO,IAAGC,KAAEA,EAAO,SAAQC,UAAEA,EAAY,CAAE,EAAAC,SAAEA,EAAQC,MAAEA,KAAUC,GAAcP,EAEvF,MAAMQ,EAA2B,CAAEC,GAAI,OAAQP,KAAM,UAAWQ,MAAO,UAAWC,OAAQ,WAE1F,OACEC,IAACC,KAAW,IACNN,EACJL,KAAMA,EACNY,SAAUR,EACVH,KAAMI,EAAUE,UAAOM,EAAYZ,OAAOY,EAC1Cd,IAAKA,EAAII,SAERE,EAAUS,SAAW,QACpBC,KAAAC,SAAA,CAAAb,UACGE,EAAUY,KAAOP,IAACC,KAAa,CAAA,GAAI,KACpCD,IAACC,QAAc,CAAAR,gBACLA,GAAa,WACnBA,EAAS,CAAEG,gBAAeJ,cAE1BQ,IAACQ,KAAI,IAAKZ,KAAmBJ,EAASC,SACnCA,MAINE,EAAUc,MAAQT,IAACC,KAAW,CAACS,OAAK,IAAM,eAEpCjB,GAAa,WACtBA,EAAS,CAAEG,gBAAeJ,cAE1BQ,IAACQ,KAAI,IAAKZ,KAAmBJ,EAASC,SACnCA,KAGO,IAGlB,CACEkB,YA/CmB,MAgDnBC,MAAQxB,GACCA,EAAMgB,SAAW,QAAUS,MAAQC"}
|
package/dts/index.d.ts
CHANGED
|
@@ -883,8 +883,8 @@ type CSSColor = RGB | RGBA | HEX | CSSGlobalValue | 'currentcolor' | 'transparen
|
|
|
883
883
|
type CSSBorderStyle = CSSGlobalValue | 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset';
|
|
884
884
|
type CSSVerticalAlign = CSSGlobalValue | 'baseline' | 'sub' | 'super' | 'text-top' | 'text-bottom' | 'middle' | 'top' | 'bottom';
|
|
885
885
|
type CSSFontWeight = CSSGlobalValue | 'normal' | 'bold' | 'lighter' | 'bolder' | number;
|
|
886
|
-
type Size$
|
|
887
|
-
type SizeValue = Size$
|
|
886
|
+
type Size$d = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
887
|
+
type SizeValue = Size$d | CSSGlobalValue | number;
|
|
888
888
|
type Breakpoint = 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
889
889
|
type Color = keyof typeof ColorNames | CSSColor;
|
|
890
890
|
type ColorPaletteKey = 'color' | `color${string}` | `${string}Color` | `${string}Color${string}`;
|
|
@@ -979,21 +979,21 @@ declare const adultDarkTheme: DefaultTheme;
|
|
|
979
979
|
/**
|
|
980
980
|
* Value for breakpoint
|
|
981
981
|
*/
|
|
982
|
-
type PossibleValues = number | Size$
|
|
982
|
+
type PossibleValues = number | Size$d | 'auto' | 'initial' | 'inherit' | boolean;
|
|
983
983
|
type PropsProperties = 'size' | 'fontSize' | 'height' | 'width' | 'top' | 'right' | 'bottom' | 'left' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'fluid';
|
|
984
984
|
type CalcProperty = (_size: number | 'auto' | 'initial' | 'inherit' | boolean, _sizing?: null | string) => FlattenSimpleInterpolation | null;
|
|
985
985
|
type CssProperty = string | CalcProperty;
|
|
986
986
|
type ResponsiveKeys = '' | 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
987
987
|
type ResponsiveNamedProperty<T extends PropsProperties, V extends PossibleValues = PossibleValues> = Partial<Record<`${T}${ResponsiveKeys}`, V>>;
|
|
988
|
-
type ResponsiveProperty<V = number | Size$
|
|
989
|
-
declare const property: (value: PossibleValues, cssProperty?: CssProperty, sizing?: null | string, sizes?: Record<Size$
|
|
988
|
+
type ResponsiveProperty<V = number | Size$d> = V | [desktop: V, tablet: V, mobile: V] | [xl: V, l: V, m: V, s: V, xs: V, xxs: V];
|
|
989
|
+
declare const property: (value: PossibleValues, cssProperty?: CssProperty, sizing?: null | string, sizes?: Record<Size$d, number>) => () => () => FlattenSimpleInterpolation | null;
|
|
990
990
|
interface ResponsiveNamedPropertyPayload<T extends PropsProperties> {
|
|
991
991
|
sizes: ResponsiveNamedProperty<T>;
|
|
992
992
|
cssProperty: CssProperty;
|
|
993
993
|
sizing?: null | string;
|
|
994
994
|
customSizeHandler?: (_value: PossibleValues) => PossibleValues;
|
|
995
995
|
sort?: (_a: string, _b: string) => number;
|
|
996
|
-
predefinedSizes?: Record<Size$
|
|
996
|
+
predefinedSizes?: Record<Size$d, number>;
|
|
997
997
|
}
|
|
998
998
|
/**
|
|
999
999
|
* Миксин для генерации media запросов
|
|
@@ -1094,7 +1094,7 @@ interface ExpandButtonProps extends React.ComponentPropsWithoutRef<'button'> {
|
|
|
1094
1094
|
/** Кастомные цвета */
|
|
1095
1095
|
palette?: Partial<Record<keyof ExpandButtonPalette, Color>>;
|
|
1096
1096
|
}
|
|
1097
|
-
interface TextProps extends ResponsiveSizeProps<Size$
|
|
1097
|
+
interface TextProps extends ResponsiveSizeProps<Size$d, SizeValue>, ResponsiveMarginProps,
|
|
1098
1098
|
/** @deprecated */
|
|
1099
1099
|
DisplayProperty, ColorProperty, Omit<React.HTMLAttributes<HTMLElement>, 'color'>, Omit<React.BlockquoteHTMLAttributes<HTMLElement>, 'color'>, Omit<React.LabelHTMLAttributes<HTMLElement>, 'color'> {
|
|
1100
1100
|
/** Применение присета стилей и размеров */
|
|
@@ -1171,7 +1171,7 @@ declare const Text: React.ForwardRefExoticComponent<TextProps> & {
|
|
|
1171
1171
|
type IconPackIconName = Uncapitalize<keyof typeof IconPack>;
|
|
1172
1172
|
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';
|
|
1173
1173
|
type IconName = IconPackIconName | IconNameDefault;
|
|
1174
|
-
interface IconProps extends ResponsiveSizeProps<Size$
|
|
1174
|
+
interface IconProps extends ResponsiveSizeProps<Size$d, SizeValue>, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'span'>, 'children'> {
|
|
1175
1175
|
/** UI: brand (v3), or default (v2) */
|
|
1176
1176
|
preset?: ThemePreset;
|
|
1177
1177
|
/** Icon color */
|
|
@@ -1275,7 +1275,7 @@ type AnchorPalette = {
|
|
|
1275
1275
|
colorHover: CSSColor;
|
|
1276
1276
|
colorDisabled: CSSColor;
|
|
1277
1277
|
};
|
|
1278
|
-
interface AnchorProps extends ResponsiveSizeProps<Size$
|
|
1278
|
+
interface AnchorProps extends ResponsiveSizeProps<Size$d, SizeValue>, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'a'>, 'color' | 'children'>,
|
|
1279
1279
|
/** @deprecated Use palette */
|
|
1280
1280
|
ColorProperty<'color'>,
|
|
1281
1281
|
/** @deprecated Use children as function */
|
|
@@ -1334,9 +1334,9 @@ DisplayProperty {
|
|
|
1334
1334
|
*/
|
|
1335
1335
|
declare const Anchor: React.ForwardRefExoticComponent<AnchorProps>;
|
|
1336
1336
|
|
|
1337
|
-
type Size$
|
|
1338
|
-
type Margin$
|
|
1339
|
-
interface ButtonBaseProps extends ResponsiveSizeProps<Size$
|
|
1337
|
+
type Size$c = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
1338
|
+
type Margin$8 = number | string;
|
|
1339
|
+
interface ButtonBaseProps extends ResponsiveSizeProps<Size$c>, ResponsiveMarginProps, ResponsiveNamedProperty<'fluid', boolean>, ResponsiveNamedProperty<'width', 'auto' | 'l' | 'm' | 's' | 'xs' | number>,
|
|
1340
1340
|
/** @deprecated */
|
|
1341
1341
|
ColorProperty,
|
|
1342
1342
|
/** @deprecated */
|
|
@@ -1501,43 +1501,43 @@ ResponsiveNamedProperty<'height', 'l' | 'm' | 's' | 'xs' | number> {
|
|
|
1501
1501
|
*
|
|
1502
1502
|
* @general
|
|
1503
1503
|
* @default 'm' */
|
|
1504
|
-
size?: Size$
|
|
1504
|
+
size?: Size$c | [DESKTOP: Size$c, TABLET: Size$c, MOBILE: Size$c] | [XL: Size$c, L: Size$c, M: Size$c, S: Size$c, XS: Size$c, XXS: Size$c];
|
|
1505
1505
|
/**
|
|
1506
1506
|
* Размер для XXS брейкпоинта.
|
|
1507
1507
|
*
|
|
1508
1508
|
* @default undefined */
|
|
1509
|
-
sizeXXS?: Size$
|
|
1509
|
+
sizeXXS?: Size$c;
|
|
1510
1510
|
/**
|
|
1511
1511
|
* Размер для XS брейкпоинта.
|
|
1512
1512
|
*
|
|
1513
1513
|
* @default undefined */
|
|
1514
|
-
sizeXS?: Size$
|
|
1514
|
+
sizeXS?: Size$c;
|
|
1515
1515
|
/**
|
|
1516
1516
|
* Размер для S брейкпоинта.
|
|
1517
1517
|
*
|
|
1518
1518
|
* @default undefined */
|
|
1519
|
-
sizeS?: Size$
|
|
1519
|
+
sizeS?: Size$c;
|
|
1520
1520
|
/**
|
|
1521
1521
|
* Размер для M брейкпоинта.
|
|
1522
1522
|
*
|
|
1523
1523
|
* @default undefined */
|
|
1524
|
-
sizeM?: Size$
|
|
1524
|
+
sizeM?: Size$c;
|
|
1525
1525
|
/**
|
|
1526
1526
|
* Размер для L брейкпоинта.
|
|
1527
1527
|
*
|
|
1528
1528
|
* @default undefined */
|
|
1529
|
-
sizeL?: Size$
|
|
1529
|
+
sizeL?: Size$c;
|
|
1530
1530
|
/**
|
|
1531
1531
|
* Размер для XL брейкпоинта.
|
|
1532
1532
|
*
|
|
1533
1533
|
* @default undefined */
|
|
1534
|
-
sizeXL?: Size$
|
|
1534
|
+
sizeXL?: Size$c;
|
|
1535
1535
|
/**
|
|
1536
1536
|
* Модификация размеров.
|
|
1537
1537
|
*
|
|
1538
1538
|
* @general
|
|
1539
1539
|
* @default undefined */
|
|
1540
|
-
sizes?: Partial<Record<Size$
|
|
1540
|
+
sizes?: Partial<Record<Size$c, React.CSSProperties>>;
|
|
1541
1541
|
/**
|
|
1542
1542
|
* Внешние отступы.
|
|
1543
1543
|
*
|
|
@@ -1545,37 +1545,37 @@ ResponsiveNamedProperty<'height', 'l' | 'm' | 's' | 'xs' | number> {
|
|
|
1545
1545
|
*
|
|
1546
1546
|
* @general
|
|
1547
1547
|
* @default undefined */
|
|
1548
|
-
margin?: Margin$
|
|
1548
|
+
margin?: Margin$8 | [DESKTOP: Margin$8, TABLET: Margin$8, MOBILE: Margin$8] | [XL: Margin$8, L: Margin$8, M: Margin$8, S: Margin$8, XS: Margin$8, XXS: Margin$8];
|
|
1549
1549
|
/**
|
|
1550
1550
|
* Отступ для XXS брейкпоинта.
|
|
1551
1551
|
*
|
|
1552
1552
|
* @default undefined */
|
|
1553
|
-
marginXXS?: Margin$
|
|
1553
|
+
marginXXS?: Margin$8;
|
|
1554
1554
|
/**
|
|
1555
1555
|
* Отступ для XS брейкпоинта.
|
|
1556
1556
|
*
|
|
1557
1557
|
* @default undefined */
|
|
1558
|
-
marginXS?: Margin$
|
|
1558
|
+
marginXS?: Margin$8;
|
|
1559
1559
|
/**
|
|
1560
1560
|
* Отступ для S брейкпоинта.
|
|
1561
1561
|
*
|
|
1562
1562
|
* @default undefined */
|
|
1563
|
-
marginS?: Margin$
|
|
1563
|
+
marginS?: Margin$8;
|
|
1564
1564
|
/**
|
|
1565
1565
|
* Отступ для M брейкпоинта.
|
|
1566
1566
|
*
|
|
1567
1567
|
* @default undefined */
|
|
1568
|
-
marginM?: Margin$
|
|
1568
|
+
marginM?: Margin$8;
|
|
1569
1569
|
/**
|
|
1570
1570
|
* Отступ для L брейкпоинта.
|
|
1571
1571
|
*
|
|
1572
1572
|
* @default undefined */
|
|
1573
|
-
marginL?: Margin$
|
|
1573
|
+
marginL?: Margin$8;
|
|
1574
1574
|
/**
|
|
1575
1575
|
* Отступ для XL брейкпоинта.
|
|
1576
1576
|
*
|
|
1577
1577
|
* @default undefined */
|
|
1578
|
-
marginXL?: Margin$
|
|
1578
|
+
marginXL?: Margin$8;
|
|
1579
1579
|
/** @ignore */
|
|
1580
1580
|
primary?: boolean;
|
|
1581
1581
|
/** @ignore */
|
|
@@ -1666,62 +1666,165 @@ interface AlertProps extends BaseProps {
|
|
|
1666
1666
|
|
|
1667
1667
|
declare const Alert: react.ForwardRefExoticComponent<AlertProps & react.RefAttributes<HTMLDivElement>>;
|
|
1668
1668
|
|
|
1669
|
-
type
|
|
1670
|
-
|
|
1671
|
-
backgroundColor: CSSColor;
|
|
1672
|
-
borderColor: CSSColor;
|
|
1673
|
-
colorHover: CSSColor;
|
|
1674
|
-
backgroundColorHover: CSSColor;
|
|
1675
|
-
borderColorHover: CSSColor;
|
|
1676
|
-
colorActive: CSSColor;
|
|
1677
|
-
backgroundColorActive: CSSColor;
|
|
1678
|
-
borderColorActive: CSSColor;
|
|
1679
|
-
colorDisabled: CSSColor;
|
|
1680
|
-
backgroundColorDisabled: CSSColor;
|
|
1681
|
-
borderColorDisabled: CSSColor;
|
|
1682
|
-
shadowColor: CSSColor;
|
|
1683
|
-
};
|
|
1669
|
+
type Size$b = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
1670
|
+
type Margin$7 = number | string;
|
|
1684
1671
|
interface ArrowProps extends ResponsiveSizeProps<Size$b, SizeValue>, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'button'>, 'children'> {
|
|
1685
1672
|
/**
|
|
1686
|
-
*
|
|
1687
|
-
*
|
|
1688
|
-
|
|
1673
|
+
* Версия компонента: v3 ("brand") или v2 ("default").
|
|
1674
|
+
*
|
|
1675
|
+
* @general
|
|
1676
|
+
* @default 'default' */
|
|
1677
|
+
preset?: 'default' | 'brand';
|
|
1689
1678
|
/**
|
|
1690
|
-
*
|
|
1679
|
+
* Кастомные цвета.
|
|
1680
|
+
*
|
|
1681
|
+
* @general
|
|
1691
1682
|
* @default undefined */
|
|
1692
|
-
palette?:
|
|
1683
|
+
palette?: {
|
|
1684
|
+
color?: Color;
|
|
1685
|
+
backgroundColor?: Color;
|
|
1686
|
+
borderColor?: Color;
|
|
1687
|
+
colorHover?: Color;
|
|
1688
|
+
backgroundColorHover?: Color;
|
|
1689
|
+
borderColorHover?: Color;
|
|
1690
|
+
colorActive?: Color;
|
|
1691
|
+
backgroundColorActive?: Color;
|
|
1692
|
+
borderColorActive?: Color;
|
|
1693
|
+
colorDisabled?: Color;
|
|
1694
|
+
backgroundColorDisabled?: Color;
|
|
1695
|
+
borderColorDisabled?: Color;
|
|
1696
|
+
shadowColor?: Color;
|
|
1697
|
+
};
|
|
1693
1698
|
/**
|
|
1694
|
-
*
|
|
1699
|
+
* Пропсы для компонента иконки.
|
|
1700
|
+
*
|
|
1701
|
+
* @general
|
|
1695
1702
|
* @default {} */
|
|
1696
1703
|
iconProps?: IconProps;
|
|
1697
1704
|
/**
|
|
1698
|
-
*
|
|
1705
|
+
* Квадратная форма рутового элемента.
|
|
1706
|
+
*
|
|
1707
|
+
* @general
|
|
1699
1708
|
* @default false */
|
|
1700
1709
|
square?: boolean;
|
|
1701
1710
|
/**
|
|
1702
|
-
*
|
|
1711
|
+
* Вариант направления стрелки.
|
|
1712
|
+
*
|
|
1713
|
+
* @general
|
|
1703
1714
|
* @default true */
|
|
1704
1715
|
top?: boolean;
|
|
1705
1716
|
/**
|
|
1706
|
-
*
|
|
1717
|
+
* Вариант направления стрелки.
|
|
1718
|
+
*
|
|
1719
|
+
* @general
|
|
1707
1720
|
* @default false */
|
|
1708
1721
|
right?: boolean;
|
|
1709
1722
|
/**
|
|
1710
|
-
*
|
|
1723
|
+
* Вариант направления стрелки.
|
|
1724
|
+
*
|
|
1725
|
+
* @general
|
|
1711
1726
|
* @default false */
|
|
1712
1727
|
bottom?: boolean;
|
|
1713
1728
|
/**
|
|
1714
|
-
*
|
|
1729
|
+
* Вариант направления стрелки.
|
|
1730
|
+
*
|
|
1731
|
+
* @general
|
|
1715
1732
|
* @default false */
|
|
1716
1733
|
left?: boolean;
|
|
1717
1734
|
/**
|
|
1718
|
-
*
|
|
1735
|
+
* Вариант цветовой схемы.
|
|
1736
|
+
*
|
|
1737
|
+
* @general
|
|
1719
1738
|
* @default false */
|
|
1720
1739
|
contrast?: boolean;
|
|
1721
1740
|
/**
|
|
1722
|
-
*
|
|
1741
|
+
* Вариант внешнего вида.
|
|
1742
|
+
*
|
|
1743
|
+
* @general
|
|
1723
1744
|
* @default false */
|
|
1724
1745
|
outline?: boolean;
|
|
1746
|
+
/**
|
|
1747
|
+
* Размер.
|
|
1748
|
+
*
|
|
1749
|
+
* Использование кортежей включает применение размеров в зависимости от ширины вьюпорта.
|
|
1750
|
+
*
|
|
1751
|
+
* @general
|
|
1752
|
+
* @default 'l' */
|
|
1753
|
+
size?: Size$b | [DESKTOP: Size$b, TABLET: Size$b, MOBILE: Size$b] | [XL: Size$b, L: Size$b, M: Size$b, S: Size$b, XS: Size$b, XXS: Size$b];
|
|
1754
|
+
/**
|
|
1755
|
+
* Размер для XXS брейкпоинта.
|
|
1756
|
+
*
|
|
1757
|
+
* @default undefined */
|
|
1758
|
+
sizeXXS?: Size$b;
|
|
1759
|
+
/**
|
|
1760
|
+
* Размер для XS брейкпоинта.
|
|
1761
|
+
*
|
|
1762
|
+
* @default undefined */
|
|
1763
|
+
sizeXS?: Size$b;
|
|
1764
|
+
/**
|
|
1765
|
+
* Размер для S брейкпоинта.
|
|
1766
|
+
*
|
|
1767
|
+
* @default undefined */
|
|
1768
|
+
sizeS?: Size$b;
|
|
1769
|
+
/**
|
|
1770
|
+
* Размер для M брейкпоинта.
|
|
1771
|
+
*
|
|
1772
|
+
* @default undefined */
|
|
1773
|
+
sizeM?: Size$b;
|
|
1774
|
+
/**
|
|
1775
|
+
* Размер для L брейкпоинта.
|
|
1776
|
+
*
|
|
1777
|
+
* @default undefined */
|
|
1778
|
+
sizeL?: Size$b;
|
|
1779
|
+
/**
|
|
1780
|
+
* Размер для XL брейкпоинта.
|
|
1781
|
+
*
|
|
1782
|
+
* @default undefined */
|
|
1783
|
+
sizeXL?: Size$b;
|
|
1784
|
+
/**
|
|
1785
|
+
* Модификация размеров.
|
|
1786
|
+
*
|
|
1787
|
+
* @general
|
|
1788
|
+
* @default undefined */
|
|
1789
|
+
sizes?: Partial<Record<Size$b, React.CSSProperties>>;
|
|
1790
|
+
/**
|
|
1791
|
+
* Внешние отступы.
|
|
1792
|
+
*
|
|
1793
|
+
* Использование кортежей включает применение отступов в зависимости от ширины вьюпорта.
|
|
1794
|
+
*
|
|
1795
|
+
* @general
|
|
1796
|
+
* @default undefined */
|
|
1797
|
+
margin?: Margin$7 | [DESKTOP: Margin$7, TABLET: Margin$7, MOBILE: Margin$7] | [XL: Margin$7, L: Margin$7, M: Margin$7, S: Margin$7, XS: Margin$7, XXS: Margin$7];
|
|
1798
|
+
/**
|
|
1799
|
+
* Отступ для XXS брейкпоинта.
|
|
1800
|
+
*
|
|
1801
|
+
* @default undefined */
|
|
1802
|
+
marginXXS?: Margin$7;
|
|
1803
|
+
/**
|
|
1804
|
+
* Отступ для XS брейкпоинта.
|
|
1805
|
+
*
|
|
1806
|
+
* @default undefined */
|
|
1807
|
+
marginXS?: Margin$7;
|
|
1808
|
+
/**
|
|
1809
|
+
* Отступ для S брейкпоинта.
|
|
1810
|
+
*
|
|
1811
|
+
* @default undefined */
|
|
1812
|
+
marginS?: Margin$7;
|
|
1813
|
+
/**
|
|
1814
|
+
* Отступ для M брейкпоинта.
|
|
1815
|
+
*
|
|
1816
|
+
* @default undefined */
|
|
1817
|
+
marginM?: Margin$7;
|
|
1818
|
+
/**
|
|
1819
|
+
* Отступ для L брейкпоинта.
|
|
1820
|
+
*
|
|
1821
|
+
* @default undefined */
|
|
1822
|
+
marginL?: Margin$7;
|
|
1823
|
+
/**
|
|
1824
|
+
* Отступ для XL брейкпоинта.
|
|
1825
|
+
*
|
|
1826
|
+
* @default undefined */
|
|
1827
|
+
marginXL?: Margin$7;
|
|
1725
1828
|
/** @ignore */
|
|
1726
1829
|
inverse?: boolean;
|
|
1727
1830
|
/** @ignore @deprecated */
|
|
@@ -1730,13 +1833,9 @@ interface ArrowProps extends ResponsiveSizeProps<Size$b, SizeValue>, ResponsiveM
|
|
|
1730
1833
|
|
|
1731
1834
|
/**
|
|
1732
1835
|
*
|
|
1733
|
-
*
|
|
1734
|
-
*
|
|
1735
|
-
* Responsive "size", "margin" props are supported.
|
|
1736
|
-
*
|
|
1737
|
-
* Exposed "ref" attached to root node.
|
|
1836
|
+
* Контрол многоцелевого назначения.
|
|
1738
1837
|
*
|
|
1739
|
-
*
|
|
1838
|
+
* Поддерживается "ref" и все нативные атрибуты \<button\> элемента.
|
|
1740
1839
|
*/
|
|
1741
1840
|
declare const Arrow: React.ForwardRefExoticComponent<ArrowProps>;
|
|
1742
1841
|
|
|
@@ -1971,7 +2070,7 @@ type ArrowBadgePalette = {
|
|
|
1971
2070
|
color: CSSColor;
|
|
1972
2071
|
backgroundColor: CSSColor;
|
|
1973
2072
|
};
|
|
1974
|
-
interface ArrowBadgeProps extends ResponsiveSizeProps<Size$
|
|
2073
|
+
interface ArrowBadgeProps extends ResponsiveSizeProps<Size$d, SizeValue>, ResponsiveMarginProps,
|
|
1975
2074
|
/** @deprecated Use palette */
|
|
1976
2075
|
ColorProperty<'color'>,
|
|
1977
2076
|
/** @deprecated Use palette */
|
|
@@ -2013,47 +2112,174 @@ ColorProperty<'backgroundColor'>, Omit<React.ComponentPropsWithRef<'div'>, 'colo
|
|
|
2013
2112
|
*/
|
|
2014
2113
|
declare const ArrowBadge: React.ForwardRefExoticComponent<ArrowBadgeProps>;
|
|
2015
2114
|
|
|
2016
|
-
type
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
borderColor: CSSColor;
|
|
2020
|
-
colorHover: CSSColor;
|
|
2021
|
-
backgroundColorHover: CSSColor;
|
|
2022
|
-
borderColorHover: CSSColor;
|
|
2023
|
-
colorDisabled: CSSColor;
|
|
2024
|
-
backgroundColorDisabled: CSSColor;
|
|
2025
|
-
borderColorDisabled: CSSColor;
|
|
2026
|
-
};
|
|
2027
|
-
interface TabProps extends ResponsiveSizeProps<Size$b, SizeValue>, ResponsiveMarginProps,
|
|
2115
|
+
type Size$a = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
2116
|
+
type Margin$6 = number | string;
|
|
2117
|
+
interface TabProps extends ResponsiveSizeProps<Size$a, SizeValue>, ResponsiveMarginProps,
|
|
2028
2118
|
/** @deprecated Use palette */
|
|
2029
2119
|
ColorProperty<'color'>,
|
|
2030
2120
|
/** @deprecated Use palette */
|
|
2031
2121
|
ColorProperty<'borderColor'>, Omit<React.ComponentPropsWithRef<'button'>, 'color' | 'children'> {
|
|
2032
|
-
/**
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2122
|
+
/**
|
|
2123
|
+
* Версия компонента: v3 ("brand") или v2 ("default").
|
|
2124
|
+
*
|
|
2125
|
+
* @general
|
|
2126
|
+
* @default 'default' */
|
|
2127
|
+
preset?: 'default' | 'brand';
|
|
2128
|
+
/**
|
|
2129
|
+
* Кастомные цвета.
|
|
2130
|
+
*
|
|
2131
|
+
* @general
|
|
2132
|
+
* @default undefined */
|
|
2133
|
+
palette?: {
|
|
2134
|
+
color?: Color;
|
|
2135
|
+
backgroundColor?: Color;
|
|
2136
|
+
borderColor?: Color;
|
|
2137
|
+
colorHover?: Color;
|
|
2138
|
+
backgroundColorHover?: Color;
|
|
2139
|
+
borderColorHover?: Color;
|
|
2140
|
+
colorDisabled?: Color;
|
|
2141
|
+
backgroundColorDisabled?: Color;
|
|
2142
|
+
borderColorDisabled?: Color;
|
|
2143
|
+
};
|
|
2144
|
+
/**
|
|
2145
|
+
* Основной контент.
|
|
2146
|
+
*
|
|
2147
|
+
* @general
|
|
2148
|
+
* @default undefined */
|
|
2037
2149
|
children: React.ReactNode | ((props: {
|
|
2038
2150
|
textProps: TextProps;
|
|
2039
2151
|
baseTextProps: Partial<TextProps>;
|
|
2040
2152
|
}) => React.ReactNode);
|
|
2041
|
-
/**
|
|
2153
|
+
/**
|
|
2154
|
+
* Пропсы для компонента типографики.
|
|
2155
|
+
*
|
|
2156
|
+
* @general
|
|
2157
|
+
* @default {} */
|
|
2042
2158
|
textProps?: TextProps;
|
|
2043
|
-
/**
|
|
2159
|
+
/**
|
|
2160
|
+
* Признак, управляющий активным состоянием.
|
|
2161
|
+
*
|
|
2162
|
+
* @general
|
|
2163
|
+
* @default false */
|
|
2044
2164
|
active?: boolean;
|
|
2045
|
-
/**
|
|
2165
|
+
/**
|
|
2166
|
+
* Вариант внешнего вида.
|
|
2167
|
+
*
|
|
2168
|
+
* @general
|
|
2169
|
+
* @default false */
|
|
2046
2170
|
outline?: boolean;
|
|
2047
|
-
/**
|
|
2171
|
+
/**
|
|
2172
|
+
* Вариант внешнего вида.
|
|
2173
|
+
*
|
|
2174
|
+
* @general
|
|
2175
|
+
* @default false */
|
|
2048
2176
|
onColored?: boolean;
|
|
2049
|
-
/**
|
|
2177
|
+
/**
|
|
2178
|
+
* Вариант внешнего вида.
|
|
2179
|
+
*
|
|
2180
|
+
* @general
|
|
2181
|
+
* @default false */
|
|
2050
2182
|
black?: boolean;
|
|
2051
|
-
/**
|
|
2183
|
+
/**
|
|
2184
|
+
* Вариант направления указателя.
|
|
2185
|
+
*
|
|
2186
|
+
* @general
|
|
2187
|
+
* @default false */
|
|
2052
2188
|
left?: boolean;
|
|
2053
|
-
/**
|
|
2189
|
+
/**
|
|
2190
|
+
* Вариант направления указателя.
|
|
2191
|
+
*
|
|
2192
|
+
* @general
|
|
2193
|
+
* @default false */
|
|
2054
2194
|
right?: boolean;
|
|
2055
|
-
/**
|
|
2195
|
+
/**
|
|
2196
|
+
* Скруглённые границы рутового элемента.
|
|
2197
|
+
*
|
|
2198
|
+
* @general
|
|
2199
|
+
* @default false */
|
|
2056
2200
|
rounded?: boolean;
|
|
2201
|
+
/**
|
|
2202
|
+
* Размер.
|
|
2203
|
+
*
|
|
2204
|
+
* Использование кортежей включает применение размеров в зависимости от ширины вьюпорта.
|
|
2205
|
+
*
|
|
2206
|
+
* @general
|
|
2207
|
+
* @default 'm' */
|
|
2208
|
+
size?: Size$a | [DESKTOP: Size$a, TABLET: Size$a, MOBILE: Size$a] | [XL: Size$a, L: Size$a, M: Size$a, S: Size$a, XS: Size$a, XXS: Size$a];
|
|
2209
|
+
/**
|
|
2210
|
+
* Размер для XXS брейкпоинта.
|
|
2211
|
+
*
|
|
2212
|
+
* @default undefined */
|
|
2213
|
+
sizeXXS?: Size$a;
|
|
2214
|
+
/**
|
|
2215
|
+
* Размер для XS брейкпоинта.
|
|
2216
|
+
*
|
|
2217
|
+
* @default undefined */
|
|
2218
|
+
sizeXS?: Size$a;
|
|
2219
|
+
/**
|
|
2220
|
+
* Размер для S брейкпоинта.
|
|
2221
|
+
*
|
|
2222
|
+
* @default undefined */
|
|
2223
|
+
sizeS?: Size$a;
|
|
2224
|
+
/**
|
|
2225
|
+
* Размер для M брейкпоинта.
|
|
2226
|
+
*
|
|
2227
|
+
* @default undefined */
|
|
2228
|
+
sizeM?: Size$a;
|
|
2229
|
+
/**
|
|
2230
|
+
* Размер для L брейкпоинта.
|
|
2231
|
+
*
|
|
2232
|
+
* @default undefined */
|
|
2233
|
+
sizeL?: Size$a;
|
|
2234
|
+
/**
|
|
2235
|
+
* Размер для XL брейкпоинта.
|
|
2236
|
+
*
|
|
2237
|
+
* @default undefined */
|
|
2238
|
+
sizeXL?: Size$a;
|
|
2239
|
+
/**
|
|
2240
|
+
* Модификация размеров.
|
|
2241
|
+
*
|
|
2242
|
+
* @general
|
|
2243
|
+
* @default undefined */
|
|
2244
|
+
sizes?: Partial<Record<Size$a, React.CSSProperties>>;
|
|
2245
|
+
/**
|
|
2246
|
+
* Внешние отступы.
|
|
2247
|
+
*
|
|
2248
|
+
* Использование кортежей включает применение отступов в зависимости от ширины вьюпорта.
|
|
2249
|
+
*
|
|
2250
|
+
* @general
|
|
2251
|
+
* @default undefined */
|
|
2252
|
+
margin?: Margin$6 | [DESKTOP: Margin$6, TABLET: Margin$6, MOBILE: Margin$6] | [XL: Margin$6, L: Margin$6, M: Margin$6, S: Margin$6, XS: Margin$6, XXS: Margin$6];
|
|
2253
|
+
/**
|
|
2254
|
+
* Отступ для XXS брейкпоинта.
|
|
2255
|
+
*
|
|
2256
|
+
* @default undefined */
|
|
2257
|
+
marginXXS?: Margin$6;
|
|
2258
|
+
/**
|
|
2259
|
+
* Отступ для XS брейкпоинта.
|
|
2260
|
+
*
|
|
2261
|
+
* @default undefined */
|
|
2262
|
+
marginXS?: Margin$6;
|
|
2263
|
+
/**
|
|
2264
|
+
* Отступ для S брейкпоинта.
|
|
2265
|
+
*
|
|
2266
|
+
* @default undefined */
|
|
2267
|
+
marginS?: Margin$6;
|
|
2268
|
+
/**
|
|
2269
|
+
* Отступ для M брейкпоинта.
|
|
2270
|
+
*
|
|
2271
|
+
* @default undefined */
|
|
2272
|
+
marginM?: Margin$6;
|
|
2273
|
+
/**
|
|
2274
|
+
* Отступ для L брейкпоинта.
|
|
2275
|
+
*
|
|
2276
|
+
* @default undefined */
|
|
2277
|
+
marginL?: Margin$6;
|
|
2278
|
+
/**
|
|
2279
|
+
* Отступ для XL брейкпоинта.
|
|
2280
|
+
*
|
|
2281
|
+
* @default undefined */
|
|
2282
|
+
marginXL?: Margin$6;
|
|
2057
2283
|
/** @ignore */
|
|
2058
2284
|
compact?: boolean;
|
|
2059
2285
|
/** @ignore */
|
|
@@ -2068,13 +2294,9 @@ ColorProperty<'borderColor'>, Omit<React.ComponentPropsWithRef<'button'>, 'color
|
|
|
2068
2294
|
|
|
2069
2295
|
/**
|
|
2070
2296
|
*
|
|
2071
|
-
*
|
|
2297
|
+
* Контрол, предназначенный для навигации между разделами контента.
|
|
2072
2298
|
*
|
|
2073
|
-
*
|
|
2074
|
-
*
|
|
2075
|
-
* Exposed "ref" attached to root node.
|
|
2076
|
-
*
|
|
2077
|
-
* See full [TabProps](https://github.com/foxford/ui/blob/master/packages/ui/src/components/Tab/types.ts)
|
|
2299
|
+
* Поддерживается "ref" и все нативные атрибуты \<button\> элемента.
|
|
2078
2300
|
*/
|
|
2079
2301
|
declare const Tab: React.ForwardRefExoticComponent<TabProps>;
|
|
2080
2302
|
|
|
@@ -2082,7 +2304,7 @@ type BadgePalette = {
|
|
|
2082
2304
|
color: CSSColor;
|
|
2083
2305
|
backgroundColor: CSSColor;
|
|
2084
2306
|
};
|
|
2085
|
-
interface BadgeProps extends ResponsiveSizeProps<Size$
|
|
2307
|
+
interface BadgeProps extends ResponsiveSizeProps<Size$d, SizeValue>, ResponsiveMarginProps,
|
|
2086
2308
|
/** @deprecated Use palette */
|
|
2087
2309
|
ColorProperty,
|
|
2088
2310
|
/** @deprecated Use children as function */
|
|
@@ -3059,7 +3281,7 @@ type ListItemPalette = {
|
|
|
3059
3281
|
backgroundColorHover: CSSColor;
|
|
3060
3282
|
mediaPlaceholderColor: CSSColor;
|
|
3061
3283
|
};
|
|
3062
|
-
interface ListItemProps extends ResponsiveSizeProps<Size$
|
|
3284
|
+
interface ListItemProps extends ResponsiveSizeProps<Size$d, SizeValue>, ResponsiveMarginProps, Omit<React.HTMLAttributes<HTMLElement>, 'children' | 'title'>, Omit<React.ButtonHTMLAttributes<HTMLElement>, 'children' | 'title' | 'type'>, Omit<React.AnchorHTMLAttributes<HTMLElement>, 'children' | 'title' | 'type' | 'media'> {
|
|
3063
3285
|
/** Root node type */
|
|
3064
3286
|
as?: React.ElementType;
|
|
3065
3287
|
/** Main text content or render function */
|
|
@@ -3137,7 +3359,7 @@ type IndicatorPalette = {
|
|
|
3137
3359
|
backgroundColor: CSSColor;
|
|
3138
3360
|
shadowColor: CSSColor;
|
|
3139
3361
|
};
|
|
3140
|
-
interface IndicatorProps extends ResponsiveSizeProps<Size$
|
|
3362
|
+
interface IndicatorProps extends ResponsiveSizeProps<Size$d, SizeValue>, ResponsiveMarginProps, React.ComponentPropsWithRef<'span'> {
|
|
3141
3363
|
/** Custom colors */
|
|
3142
3364
|
palette?: Partial<Record<keyof IndicatorPalette, Color>>;
|
|
3143
3365
|
/** Text content */
|
|
@@ -3182,7 +3404,7 @@ type AvatarPalette = {
|
|
|
3182
3404
|
shadowColor: CSSColor;
|
|
3183
3405
|
};
|
|
3184
3406
|
type AvatarSize = SizeValue | 'sm';
|
|
3185
|
-
interface AvatarProps extends ResponsiveSizeProps<Size$
|
|
3407
|
+
interface AvatarProps extends ResponsiveSizeProps<Size$d, AvatarSize>, ResponsiveMarginProps,
|
|
3186
3408
|
/** @deprecated Use palette */
|
|
3187
3409
|
ColorProperty<'color'>, Omit<React.ComponentPropsWithRef<'span'>, 'color'> {
|
|
3188
3410
|
/** UI: brand (v3), or default (v2) */
|
|
@@ -5278,7 +5500,7 @@ declare const useScrollMonitor: ({ target, scrollThrottleMS, scrollEndDebounceMS
|
|
|
5278
5500
|
|
|
5279
5501
|
declare const vAlign: (align: "top" | "middle" | "bottom" | "text-top" | "text-bottom" | "baseline") => styled_components.FlattenSimpleInterpolation;
|
|
5280
5502
|
|
|
5281
|
-
declare function buildMediaQuery(value: number | Size$
|
|
5503
|
+
declare function buildMediaQuery(value: number | Size$d | '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$d, number>): ReturnType<typeof css>;
|
|
5282
5504
|
declare const desktopFirst: (a: string, b: string) => number;
|
|
5283
5505
|
declare const mobileFirst: (a: string, b: string) => number;
|
|
5284
5506
|
|
|
@@ -7561,4 +7783,4 @@ type AspectRatioProps = AspectRatioBaseProps & Omit<React.ComponentPropsWithRef<
|
|
|
7561
7783
|
*/
|
|
7562
7784
|
declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioProps>;
|
|
7563
7785
|
|
|
7564
|
-
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, type DividerProps, type DomTarget, 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 PlaygroundToolbar, Popover, type PopoverComponentProps, type PopoverProps, Progress, ProgressCircle$1 as ProgressCircle, type ProgressCircleProps$1 as ProgressCircleProps, ProgressLine, type ProgressLineProps, type ProgressProps, type ProgressSegmentedProps, type RGB, type RGBA, Radio, type RadioProps, type ResponsiveLayoutInterpolationProps, type ResponsiveLayoutProps, type ResponsivePositionProps, type ResponsivePropKey, type ResponsiveProps, type ResponsiveSizeInterpolationProps, type ResponsiveSizeProps, withThemeScrollable as Scrollable, type ScrollableProps, Section, type SectionProps, Select, type SelectProps, Separator, type SeparatorProps, type Size$
|
|
7786
|
+
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, type DividerProps, type DomTarget, 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 PlaygroundToolbar, Popover, type PopoverComponentProps, type PopoverProps, Progress, ProgressCircle$1 as ProgressCircle, type ProgressCircleProps$1 as ProgressCircleProps, ProgressLine, type ProgressLineProps, type ProgressProps, type ProgressSegmentedProps, type RGB, type RGBA, Radio, type RadioProps, type ResponsiveLayoutInterpolationProps, type ResponsiveLayoutProps, type ResponsivePositionProps, type ResponsivePropKey, type ResponsiveProps, type ResponsiveSizeInterpolationProps, type ResponsiveSizeProps, withThemeScrollable as Scrollable, type ScrollableProps, Section, type SectionProps, Select, type SelectProps, Separator, type SeparatorProps, type Size$d as Size, type SizeValue, Skeleton, type SkeletonProps, Spacer, type SpacerProps, Spinner, type SpinnerProps, Switch, type SwitchProps, Switcher, type SwitcherProps, Tab, TabList, type TabListPanelProps, type TabListProps, type TabListTabProps, type TabProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextEllipseProps, type TextHeadingProps, type TextProps, Textarea, type TextareaProps, type Theme, type ThemeMode, type ThemeName, type ThemePreset, ThemeProvider, type ToolbarControl, Tooltip, type TooltipComponentProps, type TooltipProps, type 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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foxford/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.81.0-beta-3000e76-20250930",
|
|
4
4
|
"description": "UI components and utilities",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/foxford/ui/issues"
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
"shared",
|
|
69
69
|
"theme"
|
|
70
70
|
],
|
|
71
|
-
"sha": "
|
|
71
|
+
"sha": "3000e76",
|
|
72
72
|
"scripts": {}
|
|
73
73
|
}
|