@foxford/ui 2.133.0 → 2.134.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Dropdown/Dropdown.js +1 -1
- package/components/Dropdown/Dropdown.js.map +1 -1
- package/components/Dropdown/Dropdown.mjs +1 -1
- package/components/Dropdown/Dropdown.mjs.map +1 -1
- package/components/GlossyButton/GlossyButton.js +2 -0
- package/components/GlossyButton/GlossyButton.js.map +1 -0
- package/components/GlossyButton/GlossyButton.mjs +2 -0
- package/components/GlossyButton/GlossyButton.mjs.map +1 -0
- package/components/GlossyButton/comets/CometsPlayer.js +2 -0
- package/components/GlossyButton/comets/CometsPlayer.js.map +1 -0
- package/components/GlossyButton/comets/CometsPlayer.mjs +2 -0
- package/components/GlossyButton/comets/CometsPlayer.mjs.map +1 -0
- package/components/GlossyButton/comets/CometsScene.js +2 -0
- package/components/GlossyButton/comets/CometsScene.js.map +1 -0
- package/components/GlossyButton/comets/CometsScene.mjs +2 -0
- package/components/GlossyButton/comets/CometsScene.mjs.map +1 -0
- package/components/GlossyButton/comets/utils.js +2 -0
- package/components/GlossyButton/comets/utils.js.map +1 -0
- package/components/GlossyButton/comets/utils.mjs +2 -0
- package/components/GlossyButton/comets/utils.mjs.map +1 -0
- package/components/GlossyButton/sizes.js +2 -0
- package/components/GlossyButton/sizes.js.map +1 -0
- package/components/GlossyButton/sizes.mjs +2 -0
- package/components/GlossyButton/sizes.mjs.map +1 -0
- package/components/GlossyButton/style.js +2 -0
- package/components/GlossyButton/style.js.map +1 -0
- package/components/GlossyButton/style.mjs +2 -0
- package/components/GlossyButton/style.mjs.map +1 -0
- package/dts/index.d.ts +299 -107
- package/hooks/useCanvasAnimation.js +2 -0
- package/hooks/useCanvasAnimation.js.map +1 -0
- package/hooks/useCanvasAnimation.mjs +2 -0
- package/hooks/useCanvasAnimation.mjs.map +1 -0
- package/hooks/useReducedMotion.js +2 -0
- package/hooks/useReducedMotion.js.map +1 -0
- package/hooks/useReducedMotion.mjs +2 -0
- package/hooks/useReducedMotion.mjs.map +1 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
package/dts/index.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ type CSSColor = RGB | RGBA | HEX | CSSGlobalValue | 'currentcolor' | 'transparen
|
|
|
27
27
|
type CSSBorderStyle = CSSGlobalValue | 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset';
|
|
28
28
|
type CSSVerticalAlign = CSSGlobalValue | 'baseline' | 'sub' | 'super' | 'text-top' | 'text-bottom' | 'middle' | 'top' | 'bottom';
|
|
29
29
|
type CSSFontWeight = CSSGlobalValue | 'normal' | 'bold' | 'lighter' | 'bolder' | number;
|
|
30
|
-
type Size$
|
|
31
|
-
type SizeValue$1 = Size$
|
|
30
|
+
type Size$B = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
31
|
+
type SizeValue$1 = Size$B | CSSGlobalValue | number;
|
|
32
32
|
type Breakpoint$1 = 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL';
|
|
33
33
|
type Orientation = 'landscape' | 'portrait';
|
|
34
34
|
type Color = ColorName | CSSColor;
|
|
@@ -94,7 +94,7 @@ interface ToolbarControl<T = Record<string, unknown>> {
|
|
|
94
94
|
type PlaygroundToolbar<T = Record<string, unknown>> = Record<string, ToolbarControl<T>[] | ToolbarControl<T>[][]>;
|
|
95
95
|
type WrappedComponentProps = {
|
|
96
96
|
preset?: ThemePreset;
|
|
97
|
-
sizes?: Partial<Record<Size$
|
|
97
|
+
sizes?: Partial<Record<Size$B, React.CSSProperties>>;
|
|
98
98
|
palette?: Partial<Record<ColorPaletteKey, Color>>;
|
|
99
99
|
};
|
|
100
100
|
type WithMergedPropsOptions<T extends WrappedComponentProps> = {
|
|
@@ -107,6 +107,11 @@ type PolymorphicProps<C extends React.ElementType, P> = {
|
|
|
107
107
|
type PolymorphicPropsWithRef<C extends React.ElementType, P> = PolymorphicProps<C, P> & {
|
|
108
108
|
ref?: PolymorphicRef<C>;
|
|
109
109
|
};
|
|
110
|
+
interface CanvasAnimationPlayer {
|
|
111
|
+
resize: () => void;
|
|
112
|
+
play: (element: Element) => void;
|
|
113
|
+
destroy: () => void;
|
|
114
|
+
}
|
|
110
115
|
|
|
111
116
|
declare const getLightHoverColor: (color: string) => HEX;
|
|
112
117
|
declare const getLightStrongHoverColor: (color: string) => HEX;
|
|
@@ -236,7 +241,7 @@ interface ExpandButtonProps extends React.ComponentPropsWithoutRef<'button'> {
|
|
|
236
241
|
/** Кастомные цвета */
|
|
237
242
|
palette?: Partial<Record<keyof ExpandButtonPalette, Color>>;
|
|
238
243
|
}
|
|
239
|
-
interface TextProps extends ResponsiveSizeProps<Size$
|
|
244
|
+
interface TextProps extends ResponsiveSizeProps<Size$B, SizeValue$1>, ResponsiveMarginProps,
|
|
240
245
|
/** @deprecated */
|
|
241
246
|
DisplayProperty, ColorProperty, Omit<React.HTMLAttributes<HTMLElement>, 'color'>, Omit<React.BlockquoteHTMLAttributes<HTMLElement>, 'color'>, Omit<React.LabelHTMLAttributes<HTMLElement>, 'color'> {
|
|
242
247
|
/** Применение присета стилей и размеров */
|
|
@@ -310,8 +315,8 @@ declare const Text: React.ForwardRefExoticComponent<TextProps> & {
|
|
|
310
315
|
Ellipse: typeof TextEllipse;
|
|
311
316
|
};
|
|
312
317
|
|
|
313
|
-
type Size$
|
|
314
|
-
interface TimerBaseProps extends ResponsiveSizeProps<Size$
|
|
318
|
+
type Size$A = 's' | 'm';
|
|
319
|
+
interface TimerBaseProps extends ResponsiveSizeProps<Size$A> {
|
|
315
320
|
/**
|
|
316
321
|
* Время работы таймера (секунды).
|
|
317
322
|
*/
|
|
@@ -1378,11 +1383,11 @@ type IconISOCode =
|
|
|
1378
1383
|
| 'af'
|
|
1379
1384
|
|
|
1380
1385
|
type SizeIcon = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
1381
|
-
type Size$
|
|
1382
|
-
type Margin$
|
|
1386
|
+
type Size$z = SizeIcon | number | 'inherit';
|
|
1387
|
+
type Margin$r = number | string;
|
|
1383
1388
|
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';
|
|
1384
1389
|
type IconName = IconName$1 | IconNameDefault | IconISOCode;
|
|
1385
|
-
interface IconBaseProps extends ResponsiveSizeProps<SizeIcon, Size$
|
|
1390
|
+
interface IconBaseProps extends ResponsiveSizeProps<SizeIcon, Size$z>, ResponsiveMarginProps {
|
|
1386
1391
|
/**
|
|
1387
1392
|
* Версия компонента: v3 ("brand") или v2 ("default").
|
|
1388
1393
|
*
|
|
@@ -1437,37 +1442,37 @@ interface IconBaseProps extends ResponsiveSizeProps<SizeIcon, Size$y>, Responsiv
|
|
|
1437
1442
|
*
|
|
1438
1443
|
* @general
|
|
1439
1444
|
* @default 'inherit' */
|
|
1440
|
-
size?: Size$
|
|
1445
|
+
size?: Size$z | [DESKTOP: Size$z, TABLET: Size$z, MOBILE: Size$z] | [XL: Size$z, L: Size$z, M: Size$z, S: Size$z, XS: Size$z, XXS: Size$z];
|
|
1441
1446
|
/**
|
|
1442
1447
|
* Размер для XXS брейкпоинта.
|
|
1443
1448
|
*
|
|
1444
1449
|
* @default undefined */
|
|
1445
|
-
sizeXXS?: Size$
|
|
1450
|
+
sizeXXS?: Size$z;
|
|
1446
1451
|
/**
|
|
1447
1452
|
* Размер для XS брейкпоинта.
|
|
1448
1453
|
*
|
|
1449
1454
|
* @default undefined */
|
|
1450
|
-
sizeXS?: Size$
|
|
1455
|
+
sizeXS?: Size$z;
|
|
1451
1456
|
/**
|
|
1452
1457
|
* Размер для S брейкпоинта.
|
|
1453
1458
|
*
|
|
1454
1459
|
* @default undefined */
|
|
1455
|
-
sizeS?: Size$
|
|
1460
|
+
sizeS?: Size$z;
|
|
1456
1461
|
/**
|
|
1457
1462
|
* Размер для M брейкпоинта.
|
|
1458
1463
|
*
|
|
1459
1464
|
* @default undefined */
|
|
1460
|
-
sizeM?: Size$
|
|
1465
|
+
sizeM?: Size$z;
|
|
1461
1466
|
/**
|
|
1462
1467
|
* Размер для L брейкпоинта.
|
|
1463
1468
|
*
|
|
1464
1469
|
* @default undefined */
|
|
1465
|
-
sizeL?: Size$
|
|
1470
|
+
sizeL?: Size$z;
|
|
1466
1471
|
/**
|
|
1467
1472
|
* Размер для XL брейкпоинта.
|
|
1468
1473
|
*
|
|
1469
1474
|
* @default undefined */
|
|
1470
|
-
sizeXL?: Size$
|
|
1475
|
+
sizeXL?: Size$z;
|
|
1471
1476
|
/**
|
|
1472
1477
|
* Модификация размеров.
|
|
1473
1478
|
*
|
|
@@ -1481,37 +1486,37 @@ interface IconBaseProps extends ResponsiveSizeProps<SizeIcon, Size$y>, Responsiv
|
|
|
1481
1486
|
*
|
|
1482
1487
|
* @general
|
|
1483
1488
|
* @default undefined */
|
|
1484
|
-
margin?: Margin$
|
|
1489
|
+
margin?: Margin$r | [DESKTOP: Margin$r, TABLET: Margin$r, MOBILE: Margin$r] | [XL: Margin$r, L: Margin$r, M: Margin$r, S: Margin$r, XS: Margin$r, XXS: Margin$r];
|
|
1485
1490
|
/**
|
|
1486
1491
|
* Отступ для XXS брейкпоинта.
|
|
1487
1492
|
*
|
|
1488
1493
|
* @default undefined */
|
|
1489
|
-
marginXXS?: Margin$
|
|
1494
|
+
marginXXS?: Margin$r;
|
|
1490
1495
|
/**
|
|
1491
1496
|
* Отступ для XS брейкпоинта.
|
|
1492
1497
|
*
|
|
1493
1498
|
* @default undefined */
|
|
1494
|
-
marginXS?: Margin$
|
|
1499
|
+
marginXS?: Margin$r;
|
|
1495
1500
|
/**
|
|
1496
1501
|
* Отступ для S брейкпоинта.
|
|
1497
1502
|
*
|
|
1498
1503
|
* @default undefined */
|
|
1499
|
-
marginS?: Margin$
|
|
1504
|
+
marginS?: Margin$r;
|
|
1500
1505
|
/**
|
|
1501
1506
|
* Отступ для M брейкпоинта.
|
|
1502
1507
|
*
|
|
1503
1508
|
* @default undefined */
|
|
1504
|
-
marginM?: Margin$
|
|
1509
|
+
marginM?: Margin$r;
|
|
1505
1510
|
/**
|
|
1506
1511
|
* Отступ для L брейкпоинта.
|
|
1507
1512
|
*
|
|
1508
1513
|
* @default undefined */
|
|
1509
|
-
marginL?: Margin$
|
|
1514
|
+
marginL?: Margin$r;
|
|
1510
1515
|
/**
|
|
1511
1516
|
* Отступ для XL брейкпоинта.
|
|
1512
1517
|
*
|
|
1513
1518
|
* @default undefined */
|
|
1514
|
-
marginXL?: Margin$
|
|
1519
|
+
marginXL?: Margin$r;
|
|
1515
1520
|
/** @ignore @deprecated */
|
|
1516
1521
|
as?: React.ElementType;
|
|
1517
1522
|
}
|
|
@@ -1525,9 +1530,9 @@ type IconProps = IconBaseProps & Omit<React.ComponentPropsWithRef<'span'>, keyof
|
|
|
1525
1530
|
*/
|
|
1526
1531
|
declare const Icon: React.ForwardRefExoticComponent<IconProps>;
|
|
1527
1532
|
|
|
1528
|
-
type Size$
|
|
1529
|
-
type Margin$
|
|
1530
|
-
interface IconButtonBaseProps extends ResponsiveSizeProps<Size$
|
|
1533
|
+
type Size$y = 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs';
|
|
1534
|
+
type Margin$q = number | string;
|
|
1535
|
+
interface IconButtonBaseProps extends ResponsiveSizeProps<Size$y>, ResponsiveMarginProps {
|
|
1531
1536
|
/**
|
|
1532
1537
|
* Кастомные цвета.
|
|
1533
1538
|
*
|
|
@@ -1597,43 +1602,43 @@ interface IconButtonBaseProps extends ResponsiveSizeProps<Size$x>, ResponsiveMar
|
|
|
1597
1602
|
*
|
|
1598
1603
|
* @general
|
|
1599
1604
|
* @default 'm' */
|
|
1600
|
-
size?: Size$
|
|
1605
|
+
size?: Size$y | [DESKTOP: Size$y, TABLET: Size$y, MOBILE: Size$y] | [XL: Size$y, L: Size$y, M: Size$y, S: Size$y, XS: Size$y, XXS: Size$y];
|
|
1601
1606
|
/**
|
|
1602
1607
|
* Размер для XXS брейкпоинта.
|
|
1603
1608
|
*
|
|
1604
1609
|
* @default undefined */
|
|
1605
|
-
sizeXXS?: Size$
|
|
1610
|
+
sizeXXS?: Size$y;
|
|
1606
1611
|
/**
|
|
1607
1612
|
* Размер для XS брейкпоинта.
|
|
1608
1613
|
*
|
|
1609
1614
|
* @default undefined */
|
|
1610
|
-
sizeXS?: Size$
|
|
1615
|
+
sizeXS?: Size$y;
|
|
1611
1616
|
/**
|
|
1612
1617
|
* Размер для S брейкпоинта.
|
|
1613
1618
|
*
|
|
1614
1619
|
* @default undefined */
|
|
1615
|
-
sizeS?: Size$
|
|
1620
|
+
sizeS?: Size$y;
|
|
1616
1621
|
/**
|
|
1617
1622
|
* Размер для M брейкпоинта.
|
|
1618
1623
|
*
|
|
1619
1624
|
* @default undefined */
|
|
1620
|
-
sizeM?: Size$
|
|
1625
|
+
sizeM?: Size$y;
|
|
1621
1626
|
/**
|
|
1622
1627
|
* Размер для L брейкпоинта.
|
|
1623
1628
|
*
|
|
1624
1629
|
* @default undefined */
|
|
1625
|
-
sizeL?: Size$
|
|
1630
|
+
sizeL?: Size$y;
|
|
1626
1631
|
/**
|
|
1627
1632
|
* Размер для XL брейкпоинта.
|
|
1628
1633
|
*
|
|
1629
1634
|
* @default undefined */
|
|
1630
|
-
sizeXL?: Size$
|
|
1635
|
+
sizeXL?: Size$y;
|
|
1631
1636
|
/**
|
|
1632
1637
|
* Модификация размеров.
|
|
1633
1638
|
*
|
|
1634
1639
|
* @general
|
|
1635
1640
|
* @default undefined */
|
|
1636
|
-
sizes?: Partial<Record<Size$
|
|
1641
|
+
sizes?: Partial<Record<Size$y, React.CSSProperties>>;
|
|
1637
1642
|
/**
|
|
1638
1643
|
* Внешние отступы.
|
|
1639
1644
|
*
|
|
@@ -1641,37 +1646,37 @@ interface IconButtonBaseProps extends ResponsiveSizeProps<Size$x>, ResponsiveMar
|
|
|
1641
1646
|
*
|
|
1642
1647
|
* @general
|
|
1643
1648
|
* @default undefined */
|
|
1644
|
-
margin?: Margin$
|
|
1649
|
+
margin?: Margin$q | [DESKTOP: Margin$q, TABLET: Margin$q, MOBILE: Margin$q] | [XL: Margin$q, L: Margin$q, M: Margin$q, S: Margin$q, XS: Margin$q, XXS: Margin$q];
|
|
1645
1650
|
/**
|
|
1646
1651
|
* Отступ для XXS брейкпоинта.
|
|
1647
1652
|
*
|
|
1648
1653
|
* @default undefined */
|
|
1649
|
-
marginXXS?: Margin$
|
|
1654
|
+
marginXXS?: Margin$q;
|
|
1650
1655
|
/**
|
|
1651
1656
|
* Отступ для XS брейкпоинта.
|
|
1652
1657
|
*
|
|
1653
1658
|
* @default undefined */
|
|
1654
|
-
marginXS?: Margin$
|
|
1659
|
+
marginXS?: Margin$q;
|
|
1655
1660
|
/**
|
|
1656
1661
|
* Отступ для S брейкпоинта.
|
|
1657
1662
|
*
|
|
1658
1663
|
* @default undefined */
|
|
1659
|
-
marginS?: Margin$
|
|
1664
|
+
marginS?: Margin$q;
|
|
1660
1665
|
/**
|
|
1661
1666
|
* Отступ для M брейкпоинта.
|
|
1662
1667
|
*
|
|
1663
1668
|
* @default undefined */
|
|
1664
|
-
marginM?: Margin$
|
|
1669
|
+
marginM?: Margin$q;
|
|
1665
1670
|
/**
|
|
1666
1671
|
* Отступ для L брейкпоинта.
|
|
1667
1672
|
*
|
|
1668
1673
|
* @default undefined */
|
|
1669
|
-
marginL?: Margin$
|
|
1674
|
+
marginL?: Margin$q;
|
|
1670
1675
|
/**
|
|
1671
1676
|
* Отступ для XL брейкпоинта.
|
|
1672
1677
|
*
|
|
1673
1678
|
* @default undefined */
|
|
1674
|
-
marginXL?: Margin$
|
|
1679
|
+
marginXL?: Margin$q;
|
|
1675
1680
|
}
|
|
1676
1681
|
type IconButtonProps = IconButtonBaseProps & Omit<React.ComponentPropsWithRef<'button'>, keyof IconButtonBaseProps>;
|
|
1677
1682
|
|
|
@@ -1760,21 +1765,21 @@ interface Location extends Path {
|
|
|
1760
1765
|
/**
|
|
1761
1766
|
* Value for breakpoint
|
|
1762
1767
|
*/
|
|
1763
|
-
type PossibleValues = number | Size$
|
|
1768
|
+
type PossibleValues = number | Size$B | 'auto' | 'initial' | 'inherit' | boolean;
|
|
1764
1769
|
type PropsProperties = 'size' | 'fontSize' | 'height' | 'width' | 'top' | 'right' | 'bottom' | 'left' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'fluid';
|
|
1765
1770
|
type CalcProperty = (_size: number | 'auto' | 'initial' | 'inherit' | boolean, _sizing?: null | string) => FlattenSimpleInterpolation | null;
|
|
1766
1771
|
type CssProperty = string | CalcProperty;
|
|
1767
1772
|
type ResponsiveKeys = '' | 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
1768
1773
|
type ResponsiveNamedProperty<T extends PropsProperties, V extends PossibleValues = PossibleValues> = Partial<Record<`${T}${ResponsiveKeys}`, V>>;
|
|
1769
|
-
type ResponsiveProperty<V = number | Size$
|
|
1770
|
-
declare const property: (value: PossibleValues, cssProperty?: CssProperty, sizing?: null | string, sizes?: Record<Size$
|
|
1774
|
+
type ResponsiveProperty<V = number | Size$B> = V | [desktop: V, tablet: V, mobile: V] | [xl: V, l: V, m: V, s: V, xs: V, xxs: V];
|
|
1775
|
+
declare const property: (value: PossibleValues, cssProperty?: CssProperty, sizing?: null | string, sizes?: Record<Size$B, number>) => () => () => FlattenSimpleInterpolation | null;
|
|
1771
1776
|
interface ResponsiveNamedPropertyPayload<T extends PropsProperties> {
|
|
1772
1777
|
sizes: ResponsiveNamedProperty<T>;
|
|
1773
1778
|
cssProperty: CssProperty;
|
|
1774
1779
|
sizing?: null | string;
|
|
1775
1780
|
customSizeHandler?: (_value: PossibleValues) => PossibleValues;
|
|
1776
1781
|
sort?: (_a: string, _b: string) => number;
|
|
1777
|
-
predefinedSizes?: Record<Size$
|
|
1782
|
+
predefinedSizes?: Record<Size$B, number>;
|
|
1778
1783
|
}
|
|
1779
1784
|
/**
|
|
1780
1785
|
* Миксин для генерации media запросов
|
|
@@ -1796,9 +1801,9 @@ declare const responsiveNamedProperty: <T extends PropsProperties>({ sizes, pred
|
|
|
1796
1801
|
*/
|
|
1797
1802
|
declare const responsiveProperty: (propName: string, cssProperty?: string | null, sizing?: null | string) => () => (props: any) => styled_components.FlattenInterpolation<styled_components.ThemeProps<styled_components.DefaultTheme>> | null;
|
|
1798
1803
|
|
|
1799
|
-
type Size$
|
|
1800
|
-
type Margin$
|
|
1801
|
-
interface ButtonBaseProps extends ResponsiveSizeProps<Size$
|
|
1804
|
+
type Size$x = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
1805
|
+
type Margin$p = number | string;
|
|
1806
|
+
interface ButtonBaseProps extends ResponsiveSizeProps<Size$x>, ResponsiveMarginProps, ResponsiveNamedProperty<'fluid', boolean>, ResponsiveNamedProperty<'width', 'auto' | 'l' | 'm' | 's' | 'xs' | number>,
|
|
1802
1807
|
/** @deprecated */
|
|
1803
1808
|
ColorProperty,
|
|
1804
1809
|
/** @deprecated */
|
|
@@ -2026,53 +2031,53 @@ ResponsiveNamedProperty<'height', 'l' | 'm' | 's' | 'xs' | number> {
|
|
|
2026
2031
|
*
|
|
2027
2032
|
* @general
|
|
2028
2033
|
* @default 'm' */
|
|
2029
|
-
size?: Size$
|
|
2034
|
+
size?: Size$x | [DESKTOP: Size$x, TABLET: Size$x, MOBILE: Size$x] | [XL: Size$x, L: Size$x, M: Size$x, S: Size$x, XS: Size$x, XXS: Size$x];
|
|
2030
2035
|
/**
|
|
2031
2036
|
* Размер для XXS брейкпоинта.
|
|
2032
2037
|
*
|
|
2033
2038
|
* @default undefined */
|
|
2034
|
-
sizeXXS?: Size$
|
|
2039
|
+
sizeXXS?: Size$x;
|
|
2035
2040
|
/**
|
|
2036
2041
|
* Размер для XS брейкпоинта.
|
|
2037
2042
|
*
|
|
2038
2043
|
* @default undefined */
|
|
2039
|
-
sizeXS?: Size$
|
|
2044
|
+
sizeXS?: Size$x;
|
|
2040
2045
|
/**
|
|
2041
2046
|
* Размер для S брейкпоинта.
|
|
2042
2047
|
*
|
|
2043
2048
|
* @default undefined */
|
|
2044
|
-
sizeS?: Size$
|
|
2049
|
+
sizeS?: Size$x;
|
|
2045
2050
|
/**
|
|
2046
2051
|
* Размер для M брейкпоинта.
|
|
2047
2052
|
*
|
|
2048
2053
|
* @default undefined */
|
|
2049
|
-
sizeM?: Size$
|
|
2054
|
+
sizeM?: Size$x;
|
|
2050
2055
|
/**
|
|
2051
2056
|
* Размер для L брейкпоинта.
|
|
2052
2057
|
*
|
|
2053
2058
|
* @default undefined */
|
|
2054
|
-
sizeL?: Size$
|
|
2059
|
+
sizeL?: Size$x;
|
|
2055
2060
|
/**
|
|
2056
2061
|
* Размер для XL брейкпоинта.
|
|
2057
2062
|
*
|
|
2058
2063
|
* @default undefined */
|
|
2059
|
-
sizeXL?: Size$
|
|
2064
|
+
sizeXL?: Size$x;
|
|
2060
2065
|
/**
|
|
2061
2066
|
* Модификация размеров.
|
|
2062
2067
|
*
|
|
2063
2068
|
* @general
|
|
2064
2069
|
* @default undefined */
|
|
2065
|
-
sizes?: Partial<Record<Size$
|
|
2070
|
+
sizes?: Partial<Record<Size$x, React.CSSProperties>>;
|
|
2066
2071
|
/**
|
|
2067
2072
|
* Модификация размеров текста.
|
|
2068
2073
|
*
|
|
2069
2074
|
* @default undefined */
|
|
2070
|
-
textSizes?: Partial<Record<Size$
|
|
2075
|
+
textSizes?: Partial<Record<Size$x, React.CSSProperties>>;
|
|
2071
2076
|
/**
|
|
2072
2077
|
* Модификация размеров иконок.
|
|
2073
2078
|
*
|
|
2074
2079
|
* @default undefined */
|
|
2075
|
-
iconSizes?: Partial<Record<Size$
|
|
2080
|
+
iconSizes?: Partial<Record<Size$x, React.CSSProperties>>;
|
|
2076
2081
|
/**
|
|
2077
2082
|
* Внешние отступы.
|
|
2078
2083
|
*
|
|
@@ -2080,37 +2085,37 @@ ResponsiveNamedProperty<'height', 'l' | 'm' | 's' | 'xs' | number> {
|
|
|
2080
2085
|
*
|
|
2081
2086
|
* @general
|
|
2082
2087
|
* @default undefined */
|
|
2083
|
-
margin?: Margin$
|
|
2088
|
+
margin?: Margin$p | [DESKTOP: Margin$p, TABLET: Margin$p, MOBILE: Margin$p] | [XL: Margin$p, L: Margin$p, M: Margin$p, S: Margin$p, XS: Margin$p, XXS: Margin$p];
|
|
2084
2089
|
/**
|
|
2085
2090
|
* Отступ для XXS брейкпоинта.
|
|
2086
2091
|
*
|
|
2087
2092
|
* @default undefined */
|
|
2088
|
-
marginXXS?: Margin$
|
|
2093
|
+
marginXXS?: Margin$p;
|
|
2089
2094
|
/**
|
|
2090
2095
|
* Отступ для XS брейкпоинта.
|
|
2091
2096
|
*
|
|
2092
2097
|
* @default undefined */
|
|
2093
|
-
marginXS?: Margin$
|
|
2098
|
+
marginXS?: Margin$p;
|
|
2094
2099
|
/**
|
|
2095
2100
|
* Отступ для S брейкпоинта.
|
|
2096
2101
|
*
|
|
2097
2102
|
* @default undefined */
|
|
2098
|
-
marginS?: Margin$
|
|
2103
|
+
marginS?: Margin$p;
|
|
2099
2104
|
/**
|
|
2100
2105
|
* Отступ для M брейкпоинта.
|
|
2101
2106
|
*
|
|
2102
2107
|
* @default undefined */
|
|
2103
|
-
marginM?: Margin$
|
|
2108
|
+
marginM?: Margin$p;
|
|
2104
2109
|
/**
|
|
2105
2110
|
* Отступ для L брейкпоинта.
|
|
2106
2111
|
*
|
|
2107
2112
|
* @default undefined */
|
|
2108
|
-
marginL?: Margin$
|
|
2113
|
+
marginL?: Margin$p;
|
|
2109
2114
|
/**
|
|
2110
2115
|
* Отступ для XL брейкпоинта.
|
|
2111
2116
|
*
|
|
2112
2117
|
* @default undefined */
|
|
2113
|
-
marginXL?: Margin$
|
|
2118
|
+
marginXL?: Margin$p;
|
|
2114
2119
|
/** @ignore */
|
|
2115
2120
|
primary?: boolean;
|
|
2116
2121
|
/** @ignore */
|
|
@@ -2148,10 +2153,10 @@ type ButtonProps = ButtonBaseProps & Omit<React.ComponentPropsWithRef<'button'>,
|
|
|
2148
2153
|
*/
|
|
2149
2154
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps>;
|
|
2150
2155
|
|
|
2151
|
-
type Size$
|
|
2152
|
-
type SizeValue = Size$
|
|
2153
|
-
type Margin$
|
|
2154
|
-
interface AnchorProps extends ResponsiveSizeProps<Size$
|
|
2156
|
+
type Size$w = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
2157
|
+
type SizeValue = Size$w | 'initial' | 'inherit' | 'unset' | 'revert' | 'revert-layer' | number;
|
|
2158
|
+
type Margin$o = number | string;
|
|
2159
|
+
interface AnchorProps extends ResponsiveSizeProps<Size$w, SizeValue>, ResponsiveMarginProps,
|
|
2155
2160
|
/** @deprecated Use palette */
|
|
2156
2161
|
ColorProperty<'color'>,
|
|
2157
2162
|
/** @deprecated Use children as function */
|
|
@@ -2281,7 +2286,7 @@ DisplayProperty {
|
|
|
2281
2286
|
*
|
|
2282
2287
|
* @general
|
|
2283
2288
|
* @default undefined */
|
|
2284
|
-
sizes?: Partial<Record<Size$
|
|
2289
|
+
sizes?: Partial<Record<Size$w, React.CSSProperties>>;
|
|
2285
2290
|
/**
|
|
2286
2291
|
* Внешние отступы.
|
|
2287
2292
|
*
|
|
@@ -2289,37 +2294,37 @@ DisplayProperty {
|
|
|
2289
2294
|
*
|
|
2290
2295
|
* @general
|
|
2291
2296
|
* @default undefined */
|
|
2292
|
-
margin?: Margin$
|
|
2297
|
+
margin?: Margin$o | [DESKTOP: Margin$o, TABLET: Margin$o, MOBILE: Margin$o] | [XL: Margin$o, L: Margin$o, M: Margin$o, S: Margin$o, XS: Margin$o, XXS: Margin$o];
|
|
2293
2298
|
/**
|
|
2294
2299
|
* Отступ для XXS брейкпоинта.
|
|
2295
2300
|
*
|
|
2296
2301
|
* @default undefined */
|
|
2297
|
-
marginXXS?: Margin$
|
|
2302
|
+
marginXXS?: Margin$o;
|
|
2298
2303
|
/**
|
|
2299
2304
|
* Отступ для XS брейкпоинта.
|
|
2300
2305
|
*
|
|
2301
2306
|
* @default undefined */
|
|
2302
|
-
marginXS?: Margin$
|
|
2307
|
+
marginXS?: Margin$o;
|
|
2303
2308
|
/**
|
|
2304
2309
|
* Отступ для S брейкпоинта.
|
|
2305
2310
|
*
|
|
2306
2311
|
* @default undefined */
|
|
2307
|
-
marginS?: Margin$
|
|
2312
|
+
marginS?: Margin$o;
|
|
2308
2313
|
/**
|
|
2309
2314
|
* Отступ для M брейкпоинта.
|
|
2310
2315
|
*
|
|
2311
2316
|
* @default undefined */
|
|
2312
|
-
marginM?: Margin$
|
|
2317
|
+
marginM?: Margin$o;
|
|
2313
2318
|
/**
|
|
2314
2319
|
* Отступ для L брейкпоинта.
|
|
2315
2320
|
*
|
|
2316
2321
|
* @default undefined */
|
|
2317
|
-
marginL?: Margin$
|
|
2322
|
+
marginL?: Margin$o;
|
|
2318
2323
|
/**
|
|
2319
2324
|
* Отступ для XL брейкпоинта.
|
|
2320
2325
|
*
|
|
2321
2326
|
* @default undefined */
|
|
2322
|
-
marginXL?: Margin$
|
|
2327
|
+
marginXL?: Margin$o;
|
|
2323
2328
|
/** @ignore */
|
|
2324
2329
|
leftIconProps?: IconProps;
|
|
2325
2330
|
/** @ignore */
|
|
@@ -2348,8 +2353,8 @@ DisplayProperty {
|
|
|
2348
2353
|
*/
|
|
2349
2354
|
declare const Anchor: <C extends React.ElementType = "a">(props: PolymorphicPropsWithRef<C, AnchorProps>) => React.ReactElement | null;
|
|
2350
2355
|
|
|
2351
|
-
type Margin$
|
|
2352
|
-
type Size$
|
|
2356
|
+
type Margin$n = number | string;
|
|
2357
|
+
type Size$v = 'm' | 's';
|
|
2353
2358
|
type AlertType = 'info' | 'success' | 'warning' | 'error';
|
|
2354
2359
|
type Layout$6 = 'vertical' | 'horizontal';
|
|
2355
2360
|
interface AlertBaseProps {
|
|
@@ -2451,43 +2456,43 @@ interface AlertBaseProps {
|
|
|
2451
2456
|
*
|
|
2452
2457
|
* @general
|
|
2453
2458
|
* @default 's' */
|
|
2454
|
-
size?: Size$
|
|
2459
|
+
size?: Size$v | [DESKTOP: Size$v, TABLET: Size$v, MOBILE: Size$v] | [XL: Size$v, L: Size$v, M: Size$v, S: Size$v, XS: Size$v, XXS: Size$v];
|
|
2455
2460
|
/**
|
|
2456
2461
|
* Размер для XXS брейкпоинта.
|
|
2457
2462
|
*
|
|
2458
2463
|
* @default undefined */
|
|
2459
|
-
sizeXXS?: Size$
|
|
2464
|
+
sizeXXS?: Size$v;
|
|
2460
2465
|
/**
|
|
2461
2466
|
* Размер для XS брейкпоинта.
|
|
2462
2467
|
*
|
|
2463
2468
|
* @default undefined */
|
|
2464
|
-
sizeXS?: Size$
|
|
2469
|
+
sizeXS?: Size$v;
|
|
2465
2470
|
/**
|
|
2466
2471
|
* Размер для S брейкпоинта.
|
|
2467
2472
|
*
|
|
2468
2473
|
* @default undefined */
|
|
2469
|
-
sizeS?: Size$
|
|
2474
|
+
sizeS?: Size$v;
|
|
2470
2475
|
/**
|
|
2471
2476
|
* Размер для M брейкпоинта.
|
|
2472
2477
|
*
|
|
2473
2478
|
* @default undefined */
|
|
2474
|
-
sizeM?: Size$
|
|
2479
|
+
sizeM?: Size$v;
|
|
2475
2480
|
/**
|
|
2476
2481
|
* Размер для L брейкпоинта.
|
|
2477
2482
|
*
|
|
2478
2483
|
* @default undefined */
|
|
2479
|
-
sizeL?: Size$
|
|
2484
|
+
sizeL?: Size$v;
|
|
2480
2485
|
/**
|
|
2481
2486
|
* Размер для XL брейкпоинта.
|
|
2482
2487
|
*
|
|
2483
2488
|
* @default undefined */
|
|
2484
|
-
sizeXL?: Size$
|
|
2489
|
+
sizeXL?: Size$v;
|
|
2485
2490
|
/**
|
|
2486
2491
|
* Модификация размеров.
|
|
2487
2492
|
*
|
|
2488
2493
|
* @general
|
|
2489
2494
|
* @default undefined */
|
|
2490
|
-
sizes?: Partial<Record<Size$
|
|
2495
|
+
sizes?: Partial<Record<Size$v, React.CSSProperties>>;
|
|
2491
2496
|
/**
|
|
2492
2497
|
* Вариант шаблона лейаута.
|
|
2493
2498
|
*
|
|
@@ -2533,37 +2538,37 @@ interface AlertBaseProps {
|
|
|
2533
2538
|
*
|
|
2534
2539
|
* @general
|
|
2535
2540
|
* @default undefined */
|
|
2536
|
-
margin?: Margin$
|
|
2541
|
+
margin?: Margin$n | [DESKTOP: Margin$n, TABLET: Margin$n, MOBILE: Margin$n] | [XL: Margin$n, L: Margin$n, M: Margin$n, S: Margin$n, XS: Margin$n, XXS: Margin$n];
|
|
2537
2542
|
/**
|
|
2538
2543
|
* Отступ для XXS брейкпоинта.
|
|
2539
2544
|
*
|
|
2540
2545
|
* @default undefined */
|
|
2541
|
-
marginXXS?: Margin$
|
|
2546
|
+
marginXXS?: Margin$n;
|
|
2542
2547
|
/**
|
|
2543
2548
|
* Отступ для XS брейкпоинта.
|
|
2544
2549
|
*
|
|
2545
2550
|
* @default undefined */
|
|
2546
|
-
marginXS?: Margin$
|
|
2551
|
+
marginXS?: Margin$n;
|
|
2547
2552
|
/**
|
|
2548
2553
|
* Отступ для S брейкпоинта.
|
|
2549
2554
|
*
|
|
2550
2555
|
* @default undefined */
|
|
2551
|
-
marginS?: Margin$
|
|
2556
|
+
marginS?: Margin$n;
|
|
2552
2557
|
/**
|
|
2553
2558
|
* Отступ для M брейкпоинта.
|
|
2554
2559
|
*
|
|
2555
2560
|
* @default undefined */
|
|
2556
|
-
marginM?: Margin$
|
|
2561
|
+
marginM?: Margin$n;
|
|
2557
2562
|
/**
|
|
2558
2563
|
* Отступ для L брейкпоинта.
|
|
2559
2564
|
*
|
|
2560
2565
|
* @default undefined */
|
|
2561
|
-
marginL?: Margin$
|
|
2566
|
+
marginL?: Margin$n;
|
|
2562
2567
|
/**
|
|
2563
2568
|
* Отступ для XL брейкпоинта.
|
|
2564
2569
|
*
|
|
2565
2570
|
* @default undefined */
|
|
2566
|
-
marginXL?: Margin$
|
|
2571
|
+
marginXL?: Margin$n;
|
|
2567
2572
|
/**
|
|
2568
2573
|
* @ignore
|
|
2569
2574
|
*/
|
|
@@ -2584,9 +2589,9 @@ declare const Alert: React.ForwardRefExoticComponent<AlertProps> & {
|
|
|
2584
2589
|
Timer: typeof Timer;
|
|
2585
2590
|
};
|
|
2586
2591
|
|
|
2587
|
-
type Size$
|
|
2588
|
-
type Margin$
|
|
2589
|
-
interface ArrowProps extends ResponsiveSizeProps<Size$
|
|
2592
|
+
type Size$u = 'xxxl' | 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs' | 'xxxs';
|
|
2593
|
+
type Margin$m = number | string;
|
|
2594
|
+
interface ArrowProps extends ResponsiveSizeProps<Size$u, SizeValue$1>, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'button'>, 'children'> {
|
|
2590
2595
|
/**
|
|
2591
2596
|
* Версия компонента: v3 ("brand") или v2 ("default").
|
|
2592
2597
|
*
|
|
@@ -2668,6 +2673,196 @@ interface ArrowProps extends ResponsiveSizeProps<Size$t, SizeValue$1>, Responsiv
|
|
|
2668
2673
|
*
|
|
2669
2674
|
* @general
|
|
2670
2675
|
* @default 'l' */
|
|
2676
|
+
size?: Size$u | [DESKTOP: Size$u, TABLET: Size$u, MOBILE: Size$u] | [XL: Size$u, L: Size$u, M: Size$u, S: Size$u, XS: Size$u, XXS: Size$u];
|
|
2677
|
+
/**
|
|
2678
|
+
* Размер для XXS брейкпоинта.
|
|
2679
|
+
*
|
|
2680
|
+
* @default undefined */
|
|
2681
|
+
sizeXXS?: Size$u;
|
|
2682
|
+
/**
|
|
2683
|
+
* Размер для XS брейкпоинта.
|
|
2684
|
+
*
|
|
2685
|
+
* @default undefined */
|
|
2686
|
+
sizeXS?: Size$u;
|
|
2687
|
+
/**
|
|
2688
|
+
* Размер для S брейкпоинта.
|
|
2689
|
+
*
|
|
2690
|
+
* @default undefined */
|
|
2691
|
+
sizeS?: Size$u;
|
|
2692
|
+
/**
|
|
2693
|
+
* Размер для M брейкпоинта.
|
|
2694
|
+
*
|
|
2695
|
+
* @default undefined */
|
|
2696
|
+
sizeM?: Size$u;
|
|
2697
|
+
/**
|
|
2698
|
+
* Размер для L брейкпоинта.
|
|
2699
|
+
*
|
|
2700
|
+
* @default undefined */
|
|
2701
|
+
sizeL?: Size$u;
|
|
2702
|
+
/**
|
|
2703
|
+
* Размер для XL брейкпоинта.
|
|
2704
|
+
*
|
|
2705
|
+
* @default undefined */
|
|
2706
|
+
sizeXL?: Size$u;
|
|
2707
|
+
/**
|
|
2708
|
+
* Модификация размеров.
|
|
2709
|
+
*
|
|
2710
|
+
* @general
|
|
2711
|
+
* @default undefined */
|
|
2712
|
+
sizes?: Partial<Record<Size$u, React.CSSProperties>>;
|
|
2713
|
+
/**
|
|
2714
|
+
* Внешние отступы.
|
|
2715
|
+
*
|
|
2716
|
+
* Использование кортежей включает применение отступов в зависимости от ширины вьюпорта.
|
|
2717
|
+
*
|
|
2718
|
+
* @general
|
|
2719
|
+
* @default undefined */
|
|
2720
|
+
margin?: Margin$m | [DESKTOP: Margin$m, TABLET: Margin$m, MOBILE: Margin$m] | [XL: Margin$m, L: Margin$m, M: Margin$m, S: Margin$m, XS: Margin$m, XXS: Margin$m];
|
|
2721
|
+
/**
|
|
2722
|
+
* Отступ для XXS брейкпоинта.
|
|
2723
|
+
*
|
|
2724
|
+
* @default undefined */
|
|
2725
|
+
marginXXS?: Margin$m;
|
|
2726
|
+
/**
|
|
2727
|
+
* Отступ для XS брейкпоинта.
|
|
2728
|
+
*
|
|
2729
|
+
* @default undefined */
|
|
2730
|
+
marginXS?: Margin$m;
|
|
2731
|
+
/**
|
|
2732
|
+
* Отступ для S брейкпоинта.
|
|
2733
|
+
*
|
|
2734
|
+
* @default undefined */
|
|
2735
|
+
marginS?: Margin$m;
|
|
2736
|
+
/**
|
|
2737
|
+
* Отступ для M брейкпоинта.
|
|
2738
|
+
*
|
|
2739
|
+
* @default undefined */
|
|
2740
|
+
marginM?: Margin$m;
|
|
2741
|
+
/**
|
|
2742
|
+
* Отступ для L брейкпоинта.
|
|
2743
|
+
*
|
|
2744
|
+
* @default undefined */
|
|
2745
|
+
marginL?: Margin$m;
|
|
2746
|
+
/**
|
|
2747
|
+
* Отступ для XL брейкпоинта.
|
|
2748
|
+
*
|
|
2749
|
+
* @default undefined */
|
|
2750
|
+
marginXL?: Margin$m;
|
|
2751
|
+
/** @ignore */
|
|
2752
|
+
inverse?: boolean;
|
|
2753
|
+
/** @ignore @deprecated */
|
|
2754
|
+
onColored?: boolean;
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2757
|
+
/**
|
|
2758
|
+
*
|
|
2759
|
+
* *v1.0.0*
|
|
2760
|
+
*
|
|
2761
|
+
* Контрол многоцелевого назначения.
|
|
2762
|
+
*
|
|
2763
|
+
* Поддерживается "ref" и все нативные атрибуты \<button\> элемента.
|
|
2764
|
+
*/
|
|
2765
|
+
declare const Arrow: React.ForwardRefExoticComponent<ArrowProps>;
|
|
2766
|
+
|
|
2767
|
+
type Size$t = 'l' | 'm' | 's' | 'xs';
|
|
2768
|
+
type Margin$l = number | string;
|
|
2769
|
+
interface GlossyButtonProps extends ResponsiveSizeProps<Size$t>, ResponsiveMarginProps {
|
|
2770
|
+
/**
|
|
2771
|
+
* Компонент рутового элемента.
|
|
2772
|
+
*
|
|
2773
|
+
* @general
|
|
2774
|
+
* @default 'button' */
|
|
2775
|
+
component?: ComponentElementType;
|
|
2776
|
+
/**
|
|
2777
|
+
* Основной текстовый контент.
|
|
2778
|
+
*
|
|
2779
|
+
* Если передана строка или число, используется встроенная типографика.
|
|
2780
|
+
*
|
|
2781
|
+
* @slot
|
|
2782
|
+
* @default undefined */
|
|
2783
|
+
text?: React.ReactNode | ((textProps: TextProps) => React.ReactNode);
|
|
2784
|
+
/**
|
|
2785
|
+
* Дополнительные элементы слева.
|
|
2786
|
+
*
|
|
2787
|
+
* @slot
|
|
2788
|
+
* @default undefined */
|
|
2789
|
+
addonLeft?: React.ReactElement | ((addonLeftProps: {
|
|
2790
|
+
iconProps: IconProps;
|
|
2791
|
+
}) => React.ReactNode);
|
|
2792
|
+
/**
|
|
2793
|
+
* Дополнительные элементы справа.
|
|
2794
|
+
*
|
|
2795
|
+
* @slot
|
|
2796
|
+
* @default undefined */
|
|
2797
|
+
addonRight?: React.ReactElement | ((addonRightProps: {
|
|
2798
|
+
iconProps: IconProps;
|
|
2799
|
+
}) => React.ReactNode);
|
|
2800
|
+
/**
|
|
2801
|
+
* Иконка для состояния загрузки.
|
|
2802
|
+
*
|
|
2803
|
+
* По умолчанию используется loaderFill.
|
|
2804
|
+
*
|
|
2805
|
+
* @slot
|
|
2806
|
+
* @default undefined */
|
|
2807
|
+
loadingIcon?: React.ReactElement | ((iconProps: IconProps) => React.ReactNode);
|
|
2808
|
+
/**
|
|
2809
|
+
* Основной контент.
|
|
2810
|
+
*
|
|
2811
|
+
* @slot
|
|
2812
|
+
* @default undefined */
|
|
2813
|
+
children?: React.ReactNode | ((props: {
|
|
2814
|
+
textProps: TextProps;
|
|
2815
|
+
iconProps: IconProps;
|
|
2816
|
+
loadingIconProps: IconProps;
|
|
2817
|
+
}) => React.ReactNode);
|
|
2818
|
+
/**
|
|
2819
|
+
* Отображение на одной линии с другими элементами.
|
|
2820
|
+
*
|
|
2821
|
+
* @default true */
|
|
2822
|
+
inline?: boolean;
|
|
2823
|
+
/**
|
|
2824
|
+
* Вариант цветовой схемы.
|
|
2825
|
+
*
|
|
2826
|
+
* @general
|
|
2827
|
+
* @default 'primary' */
|
|
2828
|
+
variant?: 'primary' | 'secondary' | 'black';
|
|
2829
|
+
/**
|
|
2830
|
+
* Использование тени.
|
|
2831
|
+
*
|
|
2832
|
+
* @general
|
|
2833
|
+
* @default false */
|
|
2834
|
+
shadow?: boolean;
|
|
2835
|
+
/**
|
|
2836
|
+
* Анимация комет внутри кнопки.
|
|
2837
|
+
*
|
|
2838
|
+
* @general
|
|
2839
|
+
* @default false */
|
|
2840
|
+
animated?: boolean;
|
|
2841
|
+
/**
|
|
2842
|
+
* Индикация выполнения операции.
|
|
2843
|
+
*
|
|
2844
|
+
* @general
|
|
2845
|
+
* @default false */
|
|
2846
|
+
loading?: boolean;
|
|
2847
|
+
/**
|
|
2848
|
+
* Неактивное состояние.
|
|
2849
|
+
*
|
|
2850
|
+
* @general
|
|
2851
|
+
* @default false */
|
|
2852
|
+
disabled?: boolean;
|
|
2853
|
+
/**
|
|
2854
|
+
* Отображать основной контент при наличии статуса (`loading`).
|
|
2855
|
+
*
|
|
2856
|
+
* @general
|
|
2857
|
+
* @default false */
|
|
2858
|
+
showContentOnStatus?: boolean;
|
|
2859
|
+
/**
|
|
2860
|
+
* Размер.
|
|
2861
|
+
*
|
|
2862
|
+
* Использование кортежей включает применение размеров в зависимости от ширины вьюпорта.
|
|
2863
|
+
*
|
|
2864
|
+
* @general
|
|
2865
|
+
* @default 'm' */
|
|
2671
2866
|
size?: Size$t | [DESKTOP: Size$t, TABLET: Size$t, MOBILE: Size$t] | [XL: Size$t, L: Size$t, M: Size$t, S: Size$t, XS: Size$t, XXS: Size$t];
|
|
2672
2867
|
/**
|
|
2673
2868
|
* Размер для XXS брейкпоинта.
|
|
@@ -2743,21 +2938,17 @@ interface ArrowProps extends ResponsiveSizeProps<Size$t, SizeValue$1>, Responsiv
|
|
|
2743
2938
|
*
|
|
2744
2939
|
* @default undefined */
|
|
2745
2940
|
marginXL?: Margin$l;
|
|
2746
|
-
/** @ignore */
|
|
2747
|
-
inverse?: boolean;
|
|
2748
|
-
/** @ignore @deprecated */
|
|
2749
|
-
onColored?: boolean;
|
|
2750
2941
|
}
|
|
2751
2942
|
|
|
2752
2943
|
/**
|
|
2753
|
-
*
|
|
2754
|
-
* *v1.0.0*
|
|
2755
2944
|
*
|
|
2756
2945
|
* Контрол многоцелевого назначения.
|
|
2757
2946
|
*
|
|
2758
|
-
*
|
|
2947
|
+
* Полиморфный компонент.
|
|
2948
|
+
*
|
|
2949
|
+
* Можно передать "ref" и атрибуты выбранного HTML-элемента (по умолчанию \<button\>).
|
|
2759
2950
|
*/
|
|
2760
|
-
declare const
|
|
2951
|
+
declare const GlossyButton: <C extends React.ElementType = "button">(props: PolymorphicPropsWithRef<C, GlossyButtonProps>) => React.ReactElement | null;
|
|
2761
2952
|
|
|
2762
2953
|
type Size$s = 'xl' | 'l' | 'm' | 's' | 'xs';
|
|
2763
2954
|
interface InputCheckboxProps extends ResponsiveSizeProps<Size$s>, Omit<React.ComponentPropsWithRef<'input'>, 'size' | 'children'> {
|
|
@@ -7832,6 +8023,7 @@ interface BaseTheme {
|
|
|
7832
8023
|
Button?: Partial<ButtonProps>;
|
|
7833
8024
|
Checkbox?: Partial<CheckboxProps>;
|
|
7834
8025
|
Chip?: Partial<ChipProps>;
|
|
8026
|
+
GlossyButton?: Partial<GlossyButtonProps>;
|
|
7835
8027
|
IconButton?: Partial<IconButtonProps>;
|
|
7836
8028
|
Indicator?: Partial<IndicatorProps>;
|
|
7837
8029
|
ListItem?: Partial<ListItemProps>;
|
|
@@ -8006,7 +8198,7 @@ declare const useMediaMatchers: () => Partial<Record<MediaMatcherId, boolean>>;
|
|
|
8006
8198
|
|
|
8007
8199
|
declare const vAlign: (align: "top" | "middle" | "bottom" | "text-top" | "text-bottom" | "baseline") => styled_components.FlattenSimpleInterpolation;
|
|
8008
8200
|
|
|
8009
|
-
declare function buildMediaQuery(value: number | Size$
|
|
8201
|
+
declare function buildMediaQuery(value: number | Size$B | '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$B, number>): ReturnType<typeof css>;
|
|
8010
8202
|
declare const desktopFirst: (a: string, b: string) => number;
|
|
8011
8203
|
declare const mobileFirst: (a: string, b: string) => number;
|
|
8012
8204
|
|
|
@@ -11574,4 +11766,4 @@ declare const ImageUploader: React.ForwardRefExoticComponent<ImageUploaderProps>
|
|
|
11574
11766
|
Grid: typeof ImageUploaderGrid;
|
|
11575
11767
|
};
|
|
11576
11768
|
|
|
11577
|
-
export { Accordion, type AccordionItemProps, type AccordionProps, ActionBtn, type ActionBtnProps, AddElement, type AddElementProps, Alert, type AlertBaseProps, type AlertProps, Amount, type AmountProps, Anchor, type AnchorProps, Arrow, ArrowBadge, type ArrowBadgeProps, type ArrowProps, AspectRatio, type AspectRatioProps, Avatar, type AvatarProps, Badge, type BadgeProps, type BaseProps, type Breakpoint$1 as Breakpoint, Button, type ButtonProps, COUNTRY_DATA, type CSSBorderStyle, type CSSColor, type CSSFontWeight, type CSSGlobalValue, type CSSUnit, type CSSVerticalAlign, CURRENCY_MAP, Checkbox, type CheckboxProps, Chip, type ChipProps, type Color, type ColorName, type ColorPaletteKey, type ComponentElementType, Container, type ContainerProps, ContextMenu, type ContextMenuMultiLevelProps, type ContextMenuProps, CurrencyCodes, DEFAULT_MASK, Dialog, type DialogComponentProps, type DialogProps, type DividerProps, type DomTarget, Dropdown, type DropdownProps, FileUploader, type FileUploaderItemProps, type FileUploaderListProps, type FileUploaderProps, FormLabel, type FormLabelProps, Gradient, type GradientProps, type HEX, INITIAL_MASK, Icon, IconButton, type IconButtonProps, type IconISOCode, type IconName, type IconProps, ImageUploader, type ImageUploaderGridProps, type ImageUploaderProps, Indicator, type IndicatorProps, Input, type InputCheckboxProps, type InputMaskOptions, type InputMaskState, type InputPhoneProps, type InputProps, type InputRadioProps, type KeysOfUnion, ListItem, type ListItemProps, type MarginValue, Media, type MediaBreakpoint, type MediaMatcherId, MediaMediator, type MediaProps, MediaProvider, Menu, type MenuComponentProps, type MenuContainerProps, type MenuDividerProps, type MenuListProps, type MenuProps, Modal, type ModalProps, Notification, type NotificationProps, type Nullable, type Orientation, Paper, type PaperProps, type PlaygroundToolbar, type PolymorphicProps, type PolymorphicPropsWithRef, type PolymorphicRef, Popover, type PopoverComponentProps, type PopoverProps, Progress, ProgressCircle$1 as ProgressCircle, type ProgressCircleProps$1 as ProgressCircleProps, ProgressLine, type ProgressLineProps, type ProgressProps, type ProgressSegmentedProps, type RGB, type RGBA, Radio, type RadioProps, type ResponsiveLayoutInterpolationProps, type ResponsiveLayoutProps, type ResponsiveMarginProps$1 as ResponsiveMarginProps, type ResponsivePositionProps, type ResponsivePropKey, type ResponsiveProps, type ResponsiveSizeInterpolationProps, type ResponsiveSizeProps, withThemeScrollable as Scrollable, type ScrollableProps, Section, type SectionProps, Select, type SelectProps, type SemanticTheme, Separator, type SeparatorProps, type Size$
|
|
11769
|
+
export { Accordion, type AccordionItemProps, type AccordionProps, ActionBtn, type ActionBtnProps, AddElement, type AddElementProps, Alert, type AlertBaseProps, type AlertProps, Amount, type AmountProps, Anchor, type AnchorProps, Arrow, ArrowBadge, type ArrowBadgeProps, type ArrowProps, AspectRatio, type AspectRatioProps, Avatar, type AvatarProps, Badge, type BadgeProps, type BaseProps, type Breakpoint$1 as Breakpoint, Button, type ButtonProps, COUNTRY_DATA, type CSSBorderStyle, type CSSColor, type CSSFontWeight, type CSSGlobalValue, type CSSUnit, type CSSVerticalAlign, CURRENCY_MAP, type CanvasAnimationPlayer, Checkbox, type CheckboxProps, Chip, type ChipProps, type Color, type ColorName, type ColorPaletteKey, type ComponentElementType, Container, type ContainerProps, ContextMenu, type ContextMenuMultiLevelProps, type ContextMenuProps, CurrencyCodes, DEFAULT_MASK, Dialog, type DialogComponentProps, type DialogProps, type DividerProps, type DomTarget, Dropdown, type DropdownProps, FileUploader, type FileUploaderItemProps, type FileUploaderListProps, type FileUploaderProps, FormLabel, type FormLabelProps, GlossyButton, type GlossyButtonProps, Gradient, type GradientProps, type HEX, INITIAL_MASK, Icon, IconButton, type IconButtonProps, type IconISOCode, type IconName, type IconProps, ImageUploader, type ImageUploaderGridProps, type ImageUploaderProps, Indicator, type IndicatorProps, Input, type InputCheckboxProps, type InputMaskOptions, type InputMaskState, type InputPhoneProps, type InputProps, type InputRadioProps, type KeysOfUnion, ListItem, type ListItemProps, type MarginValue, Media, type MediaBreakpoint, type MediaMatcherId, MediaMediator, type MediaProps, MediaProvider, Menu, type MenuComponentProps, type MenuContainerProps, type MenuDividerProps, type MenuListProps, type MenuProps, Modal, type ModalProps, Notification, type NotificationProps, type Nullable, type Orientation, Paper, type PaperProps, type PlaygroundToolbar, type PolymorphicProps, type PolymorphicPropsWithRef, type PolymorphicRef, Popover, type PopoverComponentProps, type PopoverProps, Progress, ProgressCircle$1 as ProgressCircle, type ProgressCircleProps$1 as ProgressCircleProps, ProgressLine, type ProgressLineProps, type ProgressProps, type ProgressSegmentedProps, type RGB, type RGBA, Radio, type RadioProps, type ResponsiveLayoutInterpolationProps, type ResponsiveLayoutProps, type ResponsiveMarginProps$1 as ResponsiveMarginProps, type ResponsivePositionProps, type ResponsivePropKey, type ResponsiveProps, type ResponsiveSizeInterpolationProps, type ResponsiveSizeProps, withThemeScrollable as Scrollable, type ScrollableProps, Section, type SectionProps, Select, type SelectProps, type SemanticTheme, Separator, type SeparatorProps, type Size$B as Size, type SizeValue$1 as SizeValue, Skeleton, type SkeletonProps, Spacer, type SpacerProps, Spinner, type SpinnerProps, Switch, type SwitchProps, Switcher, type SwitcherProps, Tab, TabList, type TabListPanelProps, type TabListProps, type TabListTabProps, type TabProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextEllipseProps, type TextHeadingProps, type TextProps, Textarea, type TextareaProps, type Theme, type ThemeMode, type ThemeName, type ThemePreset, ThemeProvider, type TimerBaseProps, type TimerProps, type ToolbarControl, Tooltip, type TooltipComponentProps, type TooltipProps, type WithMergedPropsOptions, type WithThemePreset, type WrappedComponentProps, adultDarkTheme, adultLightTheme, algoritmikaDayTheme, algoritmikaNightTheme, babyDarkTheme, babyLightTheme, baseInputStyle, buildMediaQuery, color, desktopFirst, examDayTheme, examNightTheme, foxfordDayTheme, foxfordNightTheme, getDarkHoverColor, getDarkStrongHoverColor, getLightHoverColor, getLightStrongHoverColor, hexToRgbA, isHex, mobileFirst, motherDarkTheme, motherLightTheme, property, responsiveNamedProperty, responsiveProperty, screenL, screenM, screenMaxL, screenMaxM, screenMaxS, screenMaxXl, screenMaxXs, screenMaxXxs, screenMinL, screenMinM, screenMinS, screenMinXl, screenMinXs, screenRetina, screenS, screenXl, screenXs, teenDarkTheme, teenLightTheme, defaultTheme as theme, useClickOutside, useMediaMatchers, useScrollLock, useScrollMonitor, vAlign };
|