@sima-land/ui-nucleons 45.0.0-alpha.61 → 45.0.0-alpha.63
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/README.md +2 -2
- package/dist/_internal/custom-scrollbar/custom-scrollbar.d.ts +1 -1
- package/dist/_internal/lifecycle/index.d.ts +1 -1
- package/dist/accordion/accordion-provider.d.ts +1 -1
- package/dist/accordion/accordion.d.ts +1 -1
- package/dist/alert/alert-body.d.ts +1 -1
- package/dist/alert/alert.d.ts +1 -1
- package/dist/arrow-button/arrow-button.d.ts +1 -1
- package/dist/autocomplete/autocomplete.d.ts +1 -1
- package/dist/autocomplete/menu.d.ts +1 -1
- package/dist/avatar/avatar.d.ts +1 -1
- package/dist/base-input/base-input.d.ts +1 -1
- package/dist/bottom-bar/bottom-bar.d.ts +1 -1
- package/dist/bottom-bar/bottom-bar.module.scss +3 -3
- package/dist/breakpoints.scss +0 -14
- package/dist/button/button.d.ts +0 -5
- package/dist/button/button.js +4 -2
- package/dist/button/button.js.map +1 -1
- package/dist/carousel/carousel.d.ts +3 -3
- package/dist/carousel/draggable.d.ts +1 -1
- package/dist/chip/chip.d.ts +2 -2
- package/dist/clean-buttons/clean-button.d.ts +1 -1
- package/dist/clean-buttons/clean-group.d.ts +1 -1
- package/dist/dot-nav/dot-nav.d.ts +1 -1
- package/dist/dropdown/dropdown-loading.d.ts +1 -1
- package/dist/dropdown/dropdown.d.ts +1 -1
- package/dist/dropdown-item/dropdown-item.d.ts +1 -1
- package/dist/expandable/expandable-group.d.ts +1 -1
- package/dist/field-block/field-block.d.ts +1 -1
- package/dist/file-icon/file-icon.d.ts +1 -1
- package/dist/group-overflow/group-overflow.d.ts +1 -1
- package/dist/hint/hint-view.d.ts +2 -2
- package/dist/hint/hint.d.ts +1 -1
- package/dist/hooks/use-breakpoint/index.d.ts +1 -1
- package/dist/info-text/info-text.d.ts +1 -1
- package/dist/input/input.d.ts +1 -1
- package/dist/layout/layout.d.ts +1 -1
- package/dist/layout/layout.module.scss +16 -16
- package/dist/layout/legacy.module.scss +6 -6
- package/dist/link/link.d.ts +0 -6
- package/dist/link/link.js +3 -2
- package/dist/link/link.js.map +1 -1
- package/dist/masked-input/masked-input.d.ts +1 -1
- package/dist/modal/modal.d.ts +1 -1
- package/dist/modal/slots.d.ts +3 -3
- package/dist/modal-overlay/modal-overlay.d.ts +1 -1
- package/dist/no-index/no-index-mark.d.ts +1 -1
- package/dist/no-index/no-index.d.ts +1 -1
- package/dist/pagination/pagination-item.d.ts +1 -1
- package/dist/pagination/pagination.d.ts +1 -1
- package/dist/panel/index.d.ts +1 -1
- package/dist/panel/index.js +1 -2
- package/dist/panel/index.js.map +1 -1
- package/dist/panel/panel.d.ts +3 -5
- package/dist/panel/panel.js +1 -29
- package/dist/panel/panel.js.map +1 -1
- package/dist/panel/panel.module.scss +40 -24
- package/dist/phone-input/menu-opener.d.ts +1 -1
- package/dist/phone-input/phone-input.d.ts +1 -1
- package/dist/plate/plate.d.ts +1 -5
- package/dist/plate/plate.js +7 -5
- package/dist/plate/plate.js.map +1 -1
- package/dist/plate/plate.module.scss +32 -1
- package/dist/plate/types.d.ts +1 -2
- package/dist/popup/popup-view.d.ts +1 -1
- package/dist/popup/popup.d.ts +1 -1
- package/dist/price/price.d.ts +1 -1
- package/dist/radio-button/radio-button.d.ts +1 -1
- package/dist/range/range.d.ts +1 -1
- package/dist/rating/rating.d.ts +1 -1
- package/dist/select/parts/button.d.ts +0 -5
- package/dist/select/parts/button.js +4 -2
- package/dist/select/parts/button.js.map +1 -1
- package/dist/select/parts/field-block.d.ts +1 -1
- package/dist/select/parts/icon.d.ts +1 -1
- package/dist/select/parts/menu.d.ts +1 -1
- package/dist/select/parts/text-button.d.ts +1 -1
- package/dist/select/select.d.ts +1 -1
- package/dist/side-page/side-page-body.d.ts +1 -1
- package/dist/side-page/side-page.d.ts +1 -1
- package/dist/skeleton/skeleton.d.ts +1 -1
- package/dist/snack-bar/context.d.ts +1 -1
- package/dist/snack-bar/index.d.ts +1 -1
- package/dist/snack-bar/index.js.map +1 -1
- package/dist/snack-bar/slots.d.ts +5 -5
- package/dist/snack-bar/snack-bar.d.ts +1 -1
- package/dist/snack-bar/snack-bar.module.scss +12 -13
- package/dist/snack-bar/types.d.ts +7 -2
- package/dist/spinner/spinner.d.ts +2 -2
- package/dist/stepper/stepper.d.ts +0 -5
- package/dist/stepper/stepper.js +4 -2
- package/dist/stepper/stepper.js.map +1 -1
- package/dist/super-ellipse-clip-path/super-ellipse-clip-path.d.ts +1 -1
- package/dist/switcher-row/switcher-row.d.ts +3 -3
- package/dist/tabs/tabs.d.ts +2 -2
- package/dist/textarea/textarea.d.ts +1 -1
- package/dist/timer/timer.d.ts +1 -1
- package/dist/toggle/toggle.d.ts +0 -3
- package/dist/toggle/toggle.js +6 -3
- package/dist/toggle/toggle.js.map +1 -1
- package/dist/top-bar/top-bar.d.ts +7 -3
- package/dist/top-bar/top-bar.js +1 -2
- package/dist/top-bar/top-bar.js.map +1 -1
- package/dist/top-bar/top-bar.module.scss +4 -1
- package/dist/touch-slider/touch-slider.d.ts +1 -1
- package/dist/touch-slider/touch-slider.module.scss +1 -1
- package/dist/unknown-content/unknown-content.d.ts +1 -1
- package/dist/unknown-content/unknown-content.module.scss +6 -6
- package/dist/upload-area/upload-area.d.ts +1 -1
- package/package.json +27 -31
- package/dist/box/box.d.ts +0 -8
- package/dist/box/box.js +0 -169
- package/dist/box/box.js.map +0 -1
- package/dist/box/box.module.scss +0 -76
- package/dist/box/index.d.ts +0 -2
- package/dist/box/index.js +0 -6
- package/dist/box/index.js.map +0 -1
- package/dist/box/types.d.ts +0 -60
- package/dist/box/types.js +0 -3
- package/dist/box/types.js.map +0 -1
- package/dist/styling/borders.d.ts +0 -6
- package/dist/styling/borders.js +0 -16
- package/dist/styling/borders.js.map +0 -1
- package/dist/styling/borders.module.scss +0 -15
- package/dist/styling/colors.d.ts +0 -10
- package/dist/styling/colors.js +0 -21
- package/dist/styling/colors.js.map +0 -1
- package/dist/styling/colors.module.scss +0 -20
- package/dist/styling/fonts.d.ts +0 -12
- package/dist/styling/fonts.js +0 -18
- package/dist/styling/fonts.js.map +0 -1
- package/dist/styling/fonts.module.scss +0 -23
- package/dist/styling/index.d.ts +0 -6
- package/dist/styling/index.js +0 -31
- package/dist/styling/index.js.map +0 -1
- package/dist/styling/shadows.d.ts +0 -8
- package/dist/styling/shadows.js +0 -16
- package/dist/styling/shadows.js.map +0 -1
- package/dist/styling/shadows.module.scss +0 -27
- package/dist/styling/shapes.d.ts +0 -24
- package/dist/styling/shapes.js +0 -32
- package/dist/styling/shapes.js.map +0 -1
- package/dist/styling/shapes.module.scss +0 -38
- package/dist/styling/sizes.d.ts +0 -30
- package/dist/styling/sizes.js +0 -41
- package/dist/styling/sizes.js.map +0 -1
- package/dist/styling/sizes.module.scss +0 -25
- package/dist/styling/utils.d.ts +0 -9
- package/dist/styling/utils.js +0 -21
- package/dist/styling/utils.js.map +0 -1
- package/dist/text/index.d.ts +0 -2
- package/dist/text/index.js +0 -8
- package/dist/text/index.js.map +0 -1
- package/dist/text/text.d.ts +0 -11
- package/dist/text/text.js +0 -50
- package/dist/text/text.js.map +0 -1
- package/dist/text/text.module.scss +0 -25
- package/dist/text/types.d.ts +0 -28
- package/dist/text/types.js +0 -3
- package/dist/text/types.js.map +0 -1
|
@@ -4,4 +4,4 @@ import type { PaginationProps } from './types';
|
|
|
4
4
|
* @param props Свойства.
|
|
5
5
|
* @return Элемент.
|
|
6
6
|
*/
|
|
7
|
-
export declare function Pagination({ rootRef, current: currentProp, total: totalProp, onPageChange, getItems, renderItem, className, ...restProps }: PaginationProps): import("react
|
|
7
|
+
export declare function Pagination({ rootRef, current: currentProp, total: totalProp, onPageChange, getItems, renderItem, className, ...restProps }: PaginationProps): import("react").JSX.Element;
|
package/dist/panel/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export type { PanelType, PanelProps } from './types';
|
|
2
|
-
export { Panel, PanelStyledMarkup
|
|
2
|
+
export { Panel, PanelStyledMarkup } from './panel';
|
package/dist/panel/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PanelStyledMarkup = exports.Panel = void 0;
|
|
4
4
|
var panel_1 = require("./panel");
|
|
5
5
|
Object.defineProperty(exports, "Panel", { enumerable: true, get: function () { return panel_1.Panel; } });
|
|
6
6
|
Object.defineProperty(exports, "PanelStyledMarkup", { enumerable: true, get: function () { return panel_1.PanelStyledMarkup; } });
|
|
7
|
-
Object.defineProperty(exports, "LINK_COLOR_BY_TYPE", { enumerable: true, get: function () { return panel_1.LINK_COLOR_BY_TYPE; } });
|
|
8
7
|
//# sourceMappingURL=index.js.map
|
package/dist/panel/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/panel/index.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/panel/index.ts"],"names":[],"mappings":";;;AACA,iCAAmD;AAA1C,8FAAA,KAAK,OAAA;AAAE,0GAAA,iBAAiB,OAAA"}
|
package/dist/panel/panel.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { PanelProps
|
|
2
|
-
import type { LinkProps } from '../link';
|
|
3
|
-
export declare const LINK_COLOR_BY_TYPE: Record<PanelType, LinkProps['color']>;
|
|
1
|
+
import type { PanelProps } from './types';
|
|
4
2
|
/**
|
|
5
3
|
* Информационная панель. Обычно используется для выводя важной информации которую нужно выделить.
|
|
6
4
|
* @param props Свойства.
|
|
7
5
|
* @return Элемент.
|
|
8
6
|
*/
|
|
9
|
-
export declare function Panel({ type, adornmentStart, adornmentEnd, className, style, children, 'data-testid': testId, }: PanelProps): import("react
|
|
7
|
+
export declare function Panel({ type, adornmentStart, adornmentEnd, className, style, children, 'data-testid': testId, }: PanelProps): import("react").JSX.Element;
|
|
10
8
|
export declare namespace Panel {
|
|
11
9
|
var UnknownContent: typeof PanelStyledMarkup;
|
|
12
10
|
}
|
|
@@ -17,4 +15,4 @@ export declare namespace Panel {
|
|
|
17
15
|
*/
|
|
18
16
|
export declare function PanelStyledMarkup({ markup }: {
|
|
19
17
|
markup: string;
|
|
20
|
-
}): import("react
|
|
18
|
+
}): import("react").JSX.Element;
|
package/dist/panel/panel.js
CHANGED
|
@@ -3,47 +3,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.LINK_COLOR_BY_TYPE = void 0;
|
|
7
6
|
exports.Panel = Panel;
|
|
8
7
|
exports.PanelStyledMarkup = PanelStyledMarkup;
|
|
9
8
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
10
|
-
const colors_1 = require("../styling/colors");
|
|
11
9
|
const bind_1 = __importDefault(require("classnames/bind"));
|
|
12
10
|
const panel_module_scss_1 = __importDefault(require("./panel.module.scss"));
|
|
13
11
|
const cx = bind_1.default.bind(panel_module_scss_1.default);
|
|
14
|
-
const PANEL_COLORS_BY_TYPE = {
|
|
15
|
-
info: {
|
|
16
|
-
textColor: 'basic-gray87',
|
|
17
|
-
panelColor: 'basic-gray4',
|
|
18
|
-
},
|
|
19
|
-
error: {
|
|
20
|
-
textColor: 'basic-white',
|
|
21
|
-
panelColor: 'additional-deep-red',
|
|
22
|
-
},
|
|
23
|
-
success: {
|
|
24
|
-
textColor: 'basic-white',
|
|
25
|
-
panelColor: 'additional-teal',
|
|
26
|
-
},
|
|
27
|
-
warning: {
|
|
28
|
-
textColor: 'basic-gray87',
|
|
29
|
-
panelColor: 'additional-yellow',
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
exports.LINK_COLOR_BY_TYPE = {
|
|
33
|
-
info: 'basic-blue',
|
|
34
|
-
error: 'basic-white',
|
|
35
|
-
success: 'basic-white',
|
|
36
|
-
warning: 'basic-gray87',
|
|
37
|
-
};
|
|
38
12
|
/**
|
|
39
13
|
* Информационная панель. Обычно используется для выводя важной информации которую нужно выделить.
|
|
40
14
|
* @param props Свойства.
|
|
41
15
|
* @return Элемент.
|
|
42
16
|
*/
|
|
43
17
|
function Panel({ type = 'info', adornmentStart, adornmentEnd, className, style, children, 'data-testid': testId = 'panel', }) {
|
|
44
|
-
|
|
45
|
-
const panelColor = PANEL_COLORS_BY_TYPE[type].panelColor;
|
|
46
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: cx('root', `type-${type}`, (0, colors_1.bgColor)(panelColor), (0, colors_1.color)(textColor), className), "data-testid": testId, style: style, children: [adornmentStart && (0, jsx_runtime_1.jsx)("div", { className: cx('adornment'), children: adornmentStart }), (0, jsx_runtime_1.jsx)("div", { className: cx('main'), children: children }), adornmentEnd && (0, jsx_runtime_1.jsx)("div", { className: cx('adornment'), children: adornmentEnd })] }));
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: cx('root', `type-${type}`, className), "data-testid": testId, style: style, children: [adornmentStart && (0, jsx_runtime_1.jsx)("div", { className: cx('adornment'), children: adornmentStart }), (0, jsx_runtime_1.jsx)("div", { className: cx('main'), children: children }), adornmentEnd && (0, jsx_runtime_1.jsx)("div", { className: cx('adornment'), children: adornmentEnd })] }));
|
|
47
19
|
}
|
|
48
20
|
/**
|
|
49
21
|
* Блок стилизующий неизвестную html-верстку по дизайн-гайдам Panel.
|
package/dist/panel/panel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.js","sourceRoot":"","sources":["../../src/panel/panel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"panel.js","sourceRoot":"","sources":["../../src/panel/panel.tsx"],"names":[],"mappings":";;;;;AAWA,sBAkBC;AAOD,8CAEC;;AArCD,2DAAyC;AACzC,4EAAyC;AAEzC,MAAM,EAAE,GAAG,cAAU,CAAC,IAAI,CAAC,2BAAM,CAAC,CAAC;AAEnC;;;;GAIG;AACH,SAAgB,KAAK,CAAC,EACpB,IAAI,GAAG,MAAM,EACb,cAAc,EACd,YAAY,EACZ,SAAS,EACT,KAAK,EACL,QAAQ,EACR,aAAa,EAAE,MAAM,GAAG,OAAO,GACpB;IACX,OAAO,CACL,iCAAK,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,QAAQ,IAAI,EAAE,EAAE,SAAS,CAAC,iBAAe,MAAM,EAAE,KAAK,EAAE,KAAK,aACrF,cAAc,IAAI,gCAAK,SAAS,EAAE,EAAE,CAAC,WAAW,CAAC,YAAG,cAAc,GAAO,EAE1E,gCAAK,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,YAAG,QAAQ,GAAO,EAE3C,YAAY,IAAI,gCAAK,SAAS,EAAE,EAAE,CAAC,WAAW,CAAC,YAAG,YAAY,GAAO,IAClE,CACP,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAsB;IAC9D,OAAO,gCAAK,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,EAAE,uBAAuB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAI,CAAC;AAChG,CAAC;AAED,KAAK,CAAC,cAAc,GAAG,iBAAiB,CAAC"}
|
|
@@ -9,39 +9,55 @@
|
|
|
9
9
|
border-radius: 4px;
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
box-sizing: border-box;
|
|
12
|
-
&.type-info
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
color: colors.$
|
|
12
|
+
&.type-info {
|
|
13
|
+
color: colors.$basic-gray87;
|
|
14
|
+
background-color: colors.$basic-gray4;
|
|
15
|
+
.unknown-content {
|
|
16
|
+
a {
|
|
17
|
+
color: colors.$basic-blue;
|
|
18
|
+
text-decoration: underline;
|
|
19
|
+
&:hover {
|
|
20
|
+
color: colors.$additional-deep-blue;
|
|
21
|
+
}
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
|
-
&.type-error
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
color: colors.$basic-
|
|
25
|
+
&.type-error {
|
|
26
|
+
color: colors.$basic-white;
|
|
27
|
+
background-color: colors.$additional-deep-red;
|
|
28
|
+
.unknown-content {
|
|
29
|
+
a {
|
|
30
|
+
color: colors.$basic-white;
|
|
31
|
+
text-decoration: underline;
|
|
32
|
+
&:hover {
|
|
33
|
+
color: colors.$basic-gray4;
|
|
34
|
+
}
|
|
27
35
|
}
|
|
28
36
|
}
|
|
29
37
|
}
|
|
30
|
-
&.type-success
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
color: colors.$basic-
|
|
38
|
+
&.type-success {
|
|
39
|
+
color: colors.$basic-white;
|
|
40
|
+
background-color: colors.$additional-teal;
|
|
41
|
+
.unknown-content {
|
|
42
|
+
a {
|
|
43
|
+
color: colors.$basic-white;
|
|
44
|
+
text-decoration: underline;
|
|
45
|
+
&:hover {
|
|
46
|
+
color: colors.$basic-gray4;
|
|
47
|
+
}
|
|
36
48
|
}
|
|
37
49
|
}
|
|
38
50
|
}
|
|
39
|
-
&.type-warning
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
color: colors.$basic-
|
|
51
|
+
&.type-warning {
|
|
52
|
+
color: colors.$basic-gray87;
|
|
53
|
+
background-color: colors.$additional-yellow;
|
|
54
|
+
.unknown-content {
|
|
55
|
+
a {
|
|
56
|
+
color: colors.$basic-gray87;
|
|
57
|
+
text-decoration: underline;
|
|
58
|
+
&:hover {
|
|
59
|
+
color: colors.$basic-gray54;
|
|
60
|
+
}
|
|
45
61
|
}
|
|
46
62
|
}
|
|
47
63
|
}
|
|
@@ -11,4 +11,4 @@ export interface PhoneInputMenuOpenerProps extends HTMLAttributes<HTMLDivElement
|
|
|
11
11
|
* @param props Свойства.
|
|
12
12
|
* @return Элемент.
|
|
13
13
|
*/
|
|
14
|
-
export declare function PhoneInputMenuOpener({ rootRef, visuallyOpen, visuallyDisabled, imageSrc, className, ...restProps }: PhoneInputMenuOpenerProps): import("react
|
|
14
|
+
export declare function PhoneInputMenuOpener({ rootRef, visuallyOpen, visuallyDisabled, imageSrc, className, ...restProps }: PhoneInputMenuOpenerProps): import("react").JSX.Element;
|
|
@@ -4,4 +4,4 @@ import { type PhoneInputProps } from './types';
|
|
|
4
4
|
* @param props Свойства.
|
|
5
5
|
* @return Элемент.
|
|
6
6
|
*/
|
|
7
|
-
export declare function PhoneInput({ value, defaultValue, onInput, onChange, ...restProps }: PhoneInputProps): import("react
|
|
7
|
+
export declare function PhoneInput({ value, defaultValue, onInput, onChange, ...restProps }: PhoneInputProps): import("react").JSX.Element;
|
package/dist/plate/plate.d.ts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
import type { PlateProps } from './types';
|
|
2
|
-
|
|
3
|
-
* Plate это просто div с возможностью легко задавать тень и скругления.
|
|
4
|
-
* И он должен оставаться компонентом, который только задает оформление обычного div.
|
|
5
|
-
*/
|
|
6
|
-
export declare const Plate: import("react").ForwardRefExoticComponent<PlateProps & import("react").RefAttributes<HTMLDivElement | null>>;
|
|
2
|
+
export declare const Plate: import("react").ForwardRefExoticComponent<PlateProps & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/plate/plate.js
CHANGED
|
@@ -6,16 +6,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Plate = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const react_1 = require("react");
|
|
9
|
-
const shadows_1 = require("../styling/shadows");
|
|
10
|
-
const shapes_1 = require("../styling/shapes");
|
|
11
9
|
const bind_1 = __importDefault(require("classnames/bind"));
|
|
12
10
|
const plate_module_scss_1 = __importDefault(require("./plate.module.scss"));
|
|
13
11
|
const cx = bind_1.default.bind(plate_module_scss_1.default);
|
|
14
12
|
/**
|
|
15
13
|
* Plate это просто div с возможностью легко задавать тень и скругления.
|
|
16
14
|
* И он должен оставаться компонентом, который только задает оформление обычного div.
|
|
15
|
+
* @param props Свойства компонента.
|
|
16
|
+
* @param ref Реф для корневого элемента.
|
|
17
|
+
* @return Элемент.
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: cx('root', className, shadow &&
|
|
20
|
-
}
|
|
19
|
+
function PurePlate({ className, children, rounds = 's', shadow = 'z1', 'data-testid': testId = 'plate', ...restProps }, ref) {
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: cx('root', className, shadow && `shadow-${shadow}`, rounds && `rounds-${rounds}`), "data-testid": testId, children: children, ...restProps }));
|
|
21
|
+
}
|
|
22
|
+
exports.Plate = (0, react_1.forwardRef)(PurePlate);
|
|
21
23
|
//# sourceMappingURL=plate.js.map
|
package/dist/plate/plate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plate.js","sourceRoot":"","sources":["../../src/plate/plate.tsx"],"names":[],"mappings":";;;;;;;AACA,
|
|
1
|
+
{"version":3,"file":"plate.js","sourceRoot":"","sources":["../../src/plate/plate.tsx"],"names":[],"mappings":";;;;;;;AACA,iCAA6C;AAC7C,2DAAyC;AACzC,4EAAyC;AAEzC,MAAM,EAAE,GAAG,cAAU,CAAC,IAAI,CAAC,2BAAM,CAAC,CAAC;AAEnC;;;;;;GAMG;AACH,SAAS,SAAS,CAChB,EACE,SAAS,EACT,QAAQ,EACR,MAAM,GAAG,GAAG,EACZ,MAAM,GAAG,IAAI,EACb,aAAa,EAAE,MAAM,GAAG,OAAO,EAC/B,GAAG,SAAS,EACD,EACb,GAAwB;IAExB,OAAO,CACL,gCACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,IAAI,UAAU,MAAM,EAAE,EAAE,MAAM,IAAI,UAAU,MAAM,EAAE,CAAC,iBAC/E,MAAM,EACnB,QAAQ,EAAE,QAAQ,KACd,SAAS,GACb,CACH,CAAC;AACJ,CAAC;AAEY,QAAA,KAAK,GAAG,IAAA,kBAAU,EAAC,SAAS,CAAC,CAAC"}
|
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
@use '../colors';
|
|
2
|
+
@use '../shadows';
|
|
3
|
+
|
|
1
4
|
.root {
|
|
2
|
-
background:
|
|
5
|
+
background: colors.$basic-white;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.shadow-z1 {
|
|
9
|
+
@include shadows.box-shadow('z1');
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.shadow-z2 {
|
|
13
|
+
@include shadows.box-shadow('z2');
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.shadow-z2-straight {
|
|
17
|
+
@include shadows.box-shadow('z2-straight');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.shadow-z3 {
|
|
21
|
+
@include shadows.box-shadow('z3');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.shadow-z4 {
|
|
25
|
+
@include shadows.box-shadow('z4');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.rounds-s {
|
|
29
|
+
border-radius: 4px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.rounds-m {
|
|
33
|
+
border-radius: 8px;
|
|
3
34
|
}
|
package/dist/plate/types.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
|
-
import type { BoxShadow } from '../styling/shadows';
|
|
3
2
|
import type { WithTestId } from '../types';
|
|
4
3
|
export interface PlateProps extends HTMLAttributes<HTMLDivElement>, WithTestId {
|
|
5
4
|
/** Тень. */
|
|
6
|
-
shadow?:
|
|
5
|
+
shadow?: 'z1' | 'z2' | 'z2-straight' | 'z3' | 'z4' | null;
|
|
7
6
|
/** Скругление углов. */
|
|
8
7
|
rounds?: 's' | 'm' | null;
|
|
9
8
|
}
|
|
@@ -4,4 +4,4 @@ import type { PopupViewProps } from './types';
|
|
|
4
4
|
* @param props Свойства.
|
|
5
5
|
* @return Элемент.
|
|
6
6
|
*/
|
|
7
|
-
export declare function PopupView({ children, onClose, popupRef, className, 'data-testid': testId, ...rest }: PopupViewProps): import("react
|
|
7
|
+
export declare function PopupView({ children, onClose, popupRef, className, 'data-testid': testId, ...rest }: PopupViewProps): import("react").JSX.Element;
|
package/dist/popup/popup.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import { PopupProps } from './types';
|
|
|
4
4
|
* @param props Свойства.
|
|
5
5
|
* @return Элемент.
|
|
6
6
|
*/
|
|
7
|
-
export declare function Popup({ showFor, ...rest }: PopupProps): import("react
|
|
7
|
+
export declare function Popup({ showFor, ...rest }: PopupProps): import("react").JSX.Element | null;
|
package/dist/price/price.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import type { PriceProps } from './types';
|
|
|
4
4
|
* @param props Параметры компонента.
|
|
5
5
|
* @return Элемент.
|
|
6
6
|
*/
|
|
7
|
-
export declare function Price({ className, currencyGrapheme: grapheme, graphemeBefore, crossedOut, value, 'data-testid': testId, }: PriceProps): import("react
|
|
7
|
+
export declare function Price({ className, currencyGrapheme: grapheme, graphemeBefore, crossedOut, value, 'data-testid': testId, }: PriceProps): import("react").JSX.Element;
|
|
@@ -4,4 +4,4 @@ import type { RadioButtonProps } from './types';
|
|
|
4
4
|
* @param props Свойства.
|
|
5
5
|
* @return Элемент.
|
|
6
6
|
*/
|
|
7
|
-
export declare function RadioButton({ style, className, 'data-testid': testId, ...restProps }: RadioButtonProps): import("react
|
|
7
|
+
export declare function RadioButton({ style, className, 'data-testid': testId, ...restProps }: RadioButtonProps): import("react").JSX.Element;
|
package/dist/range/range.d.ts
CHANGED
package/dist/rating/rating.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import type { RatingProps } from './types';
|
|
|
4
4
|
* @param props Свойства.
|
|
5
5
|
* @return Элемент.
|
|
6
6
|
*/
|
|
7
|
-
export declare const Rating: ({ size, value, className, "data-testid": testId, ...restProps }: RatingProps) => import("react
|
|
7
|
+
export declare const Rating: ({ size, value, className, "data-testid": testId, ...restProps }: RatingProps) => import("react").JSX.Element;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* "Открывашка" для Select в виде кнопки.
|
|
3
|
-
* @param props Свойства.
|
|
4
|
-
* @return Элемент.
|
|
5
|
-
*/
|
|
6
1
|
export declare const SelectButton: import("react").ForwardRefExoticComponent<import("../../button/types").CommonProps<import("../../button").ButtonAppearance> & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, keyof import("../../button/types").CommonProps<import("../../button").ButtonAppearance>> & {
|
|
7
2
|
appearance?: "button";
|
|
8
3
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -9,9 +9,10 @@ const helpers_1 = require("../../helpers");
|
|
|
9
9
|
/**
|
|
10
10
|
* "Открывашка" для Select в виде кнопки.
|
|
11
11
|
* @param props Свойства.
|
|
12
|
+
* @param ref Реф для DOM-элемента кнопки.
|
|
12
13
|
* @return Элемент.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
function PureSelectButton({ children, onMouseDown, onKeyDown, ...restProps }, ref) {
|
|
15
16
|
const { selectProps, currentValue, menuOpen, setMenuOpen, setOpenerElement, setAnchorElement } = (0, react_1.useContext)(utils_1.SelectContext);
|
|
16
17
|
const { label, disabled, renderValue = v => v } = selectProps;
|
|
17
18
|
const mergedRef = (0, react_1.useMemo)(() => (0, helpers_1.mergeRefs)([ref, setOpenerElement, setAnchorElement]), [ref, setOpenerElement, setAnchorElement]);
|
|
@@ -38,5 +39,6 @@ exports.SelectButton = (0, react_1.forwardRef)(function SelectButton({ children,
|
|
|
38
39
|
}
|
|
39
40
|
}, [onKeyDown, disabled, setMenuOpen]);
|
|
40
41
|
return ((0, jsx_runtime_1.jsx)(button_1.Button, { ...restProps, ref: mergedRef, disabled: disabled, onMouseDown: handleMouseDown, onKeyDown: handleKeyDown, children: children ?? (renderValue(currentValue) || label) }));
|
|
41
|
-
}
|
|
42
|
+
}
|
|
43
|
+
exports.SelectButton = (0, react_1.forwardRef)(PureSelectButton);
|
|
42
44
|
//# sourceMappingURL=button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/select/parts/button.tsx"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/select/parts/button.tsx"],"names":[],"mappings":";;;;AAAA,iCAQe;AACf,oCAAyC;AACzC,yCAAmD;AACnD,2CAA0C;AAI1C;;;;;GAKG;AACH,SAAS,gBAAgB,CACvB,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,SAAS,EAAqB,EACrE,GAA2B;IAE3B,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,GAC5F,IAAA,kBAAU,EAAC,qBAAa,CAAC,CAAC;IAE5B,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,WAAW,CAAC;IAE9D,MAAM,SAAS,GAAG,IAAA,eAAO,EACvB,GAAG,EAAE,CAAC,IAAA,mBAAS,EAAoB,CAAC,GAAG,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,EAC7E,CAAC,GAAG,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAC1C,CAAC;IAEF,MAAM,eAAe,GAAyC,IAAA,mBAAW,EACvE,KAAK,CAAC,EAAE;QACN,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC;QAErB,IAAI,QAAQ,IAAI,KAAK,CAAC,gBAAgB,EAAE,CAAC;YACvC,OAAO;QACT,CAAC;QAED,6BAA6B;QAC7B,CAAC,QAAQ,IAAI,KAAK,CAAC,cAAc,EAAE,CAAC;QAEpC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACvB,CAAC,EACD,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,CAAC,CAC/C,CAAC;IAEF,MAAM,aAAa,GAA4C,IAAA,mBAAW,EACxE,KAAK,CAAC,EAAE;QACN,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC;QAEnB,IAAI,QAAQ,IAAI,KAAK,CAAC,gBAAgB,EAAE,CAAC;YACvC,OAAO;QACT,CAAC;QAED,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,OAAO,CAAC;YACb,KAAK,SAAS,CAAC;YACf,KAAK,WAAW;gBACd,WAAW,CAAC,IAAI,CAAC,CAAC;gBAClB,MAAM;QACV,CAAC;IACH,CAAC,EACD,CAAC,SAAS,EAAE,QAAQ,EAAE,WAAW,CAAC,CACnC,CAAC;IAEF,OAAO,CACL,uBAAC,eAAM,OACD,SAAS,EACb,GAAG,EAAE,SAAS,EACd,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,eAAe,EAC5B,SAAS,EAAE,aAAa,YAEvB,QAAQ,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,KAAK,CAAC,GAC1C,CACV,CAAC;AACJ,CAAC;AAEY,QAAA,YAAY,GAAG,IAAA,kBAAU,EAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -4,4 +4,4 @@ import { FieldBlockProps } from '../../field-block';
|
|
|
4
4
|
* @param props Свойства.
|
|
5
5
|
* @return Элемент.
|
|
6
6
|
*/
|
|
7
|
-
export declare function SelectFieldBlock({ blockRef, blockProps, mainProps, ...restProps }: FieldBlockProps): import("react
|
|
7
|
+
export declare function SelectFieldBlock({ blockRef, blockProps, mainProps, ...restProps }: FieldBlockProps): import("react").JSX.Element;
|
|
@@ -8,4 +8,4 @@ export interface SelectIconProps extends SVGAttributes<SVGSVGElement> {
|
|
|
8
8
|
* @param props Свойства.
|
|
9
9
|
* @return Элемент.
|
|
10
10
|
*/
|
|
11
|
-
export declare function SelectIcon({ icon: Icon, ...restProps }: SelectIconProps): import("react
|
|
11
|
+
export declare function SelectIcon({ icon: Icon, ...restProps }: SelectIconProps): import("react").JSX.Element;
|
|
@@ -4,4 +4,4 @@ import { DropdownProps } from '../../dropdown';
|
|
|
4
4
|
* @param props Свойства.
|
|
5
5
|
* @return Элемент.
|
|
6
6
|
*/
|
|
7
|
-
export declare function SelectMenu(props: DropdownProps): import("react
|
|
7
|
+
export declare function SelectMenu(props: DropdownProps): import("react").JSX.Element | null;
|
|
@@ -4,4 +4,4 @@ import { TextButtonAsButtonProps } from '../../text-button';
|
|
|
4
4
|
* @param props Свойства.
|
|
5
5
|
* @return Элемент.
|
|
6
6
|
*/
|
|
7
|
-
export declare function SelectTextButton({ buttonRef, children, onMouseDown, onKeyDown, ...restProps }: TextButtonAsButtonProps): import("react
|
|
7
|
+
export declare function SelectTextButton({ buttonRef, children, onMouseDown, onKeyDown, ...restProps }: TextButtonAsButtonProps): import("react").JSX.Element;
|
package/dist/select/select.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import { SidePageBodyProps } from './types';
|
|
|
4
4
|
* @param props Свойства.
|
|
5
5
|
* @return Элемент.
|
|
6
6
|
*/
|
|
7
|
-
export declare function SidePageBody({ rootRef, children, className, withScrollDisable, scrollDisableOptions, 'data-testid': testId, ...restProps }: SidePageBodyProps): import("react
|
|
7
|
+
export declare function SidePageBody({ rootRef, children, className, withScrollDisable, scrollDisableOptions, 'data-testid': testId, ...restProps }: SidePageBodyProps): import("react").JSX.Element;
|
|
@@ -4,4 +4,4 @@ import type { SidePageProps } from './types';
|
|
|
4
4
|
* @param props Свойства.
|
|
5
5
|
* @return Элемент.
|
|
6
6
|
*/
|
|
7
|
-
export declare function SidePage({ size, className, children, onClose, overlayProps, 'data-testid': testId, ...restProps }: SidePageProps): import("react
|
|
7
|
+
export declare function SidePage({ size, className, children, onClose, overlayProps, 'data-testid': testId, ...restProps }: SidePageProps): import("react").JSX.Element;
|
|
@@ -4,4 +4,4 @@ import type { SkeletonProps } from './types';
|
|
|
4
4
|
* @param props Свойства.
|
|
5
5
|
* @return Элемент.
|
|
6
6
|
*/
|
|
7
|
-
export declare function Skeleton({ theme, shining, children, className, rootRef, ...restProps }: SkeletonProps): import("react
|
|
7
|
+
export declare function Skeleton({ theme, shining, children, className, rootRef, ...restProps }: SkeletonProps): import("react").JSX.Element;
|
|
@@ -6,7 +6,7 @@ import { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function SnackbarContextProvider({ children }: {
|
|
8
8
|
children?: ReactNode;
|
|
9
|
-
}): import("react
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
10
|
export declare const SnackbarContext: import("react").Context<ContextProps>;
|
|
11
11
|
interface ContextProps {
|
|
12
12
|
closePrevious?: VoidFunction;
|
|
@@ -2,4 +2,4 @@ export { SnackBarImage, SnackBarStartIcon, SnackBarEndIcon, SnackBarTitle, Snack
|
|
|
2
2
|
export { SnackBar } from './snack-bar';
|
|
3
3
|
export { useSnackBarPositioning } from './utils';
|
|
4
4
|
export { SnackbarContextProvider } from './context';
|
|
5
|
-
export type { SnackBarProps } from './types';
|
|
5
|
+
export type { SnackBarProps, SnackBarStyle } from './types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/snack-bar/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/snack-bar/index.ts"],"names":[],"mappings":";;;AAAA,iCAMiB;AALf,sGAAA,aAAa,OAAA;AACb,0GAAA,iBAAiB,OAAA;AACjB,wGAAA,eAAe,OAAA;AACf,sGAAA,aAAa,OAAA;AACb,yGAAA,gBAAgB,OAAA;AAElB,yCAAuC;AAA9B,qGAAA,QAAQ,OAAA;AACjB,iCAAiD;AAAxC,+GAAA,sBAAsB,OAAA;AAC/B,qCAAoD;AAA3C,kHAAA,uBAAuB,OAAA"}
|
|
@@ -5,28 +5,28 @@ import { SnackBarIconProps, SnackBarImageProps } from './types';
|
|
|
5
5
|
* @param props Параметры.
|
|
6
6
|
* @return Элемент.
|
|
7
7
|
*/
|
|
8
|
-
export declare function SnackBarImage(props: SnackBarImageProps): import("react
|
|
8
|
+
export declare function SnackBarImage(props: SnackBarImageProps): import("react").JSX.Element;
|
|
9
9
|
/**
|
|
10
10
|
* Компонент для вывода иконки в начале контента Snackbar.
|
|
11
11
|
* @param props Параметры.
|
|
12
12
|
* @return Элемент.
|
|
13
13
|
*/
|
|
14
|
-
export declare const SnackBarStartIcon: (props: SnackBarIconProps) => import("react
|
|
14
|
+
export declare const SnackBarStartIcon: (props: SnackBarIconProps) => import("react").JSX.Element;
|
|
15
15
|
/**
|
|
16
16
|
* Компонент для вывода иконки в конце контента Snackbar.
|
|
17
17
|
* @param props Параметры.
|
|
18
18
|
* @return Элемент.
|
|
19
19
|
*/
|
|
20
|
-
export declare const SnackBarEndIcon: (props: SnackBarIconProps) => import("react
|
|
20
|
+
export declare const SnackBarEndIcon: (props: SnackBarIconProps) => import("react").JSX.Element;
|
|
21
21
|
/**
|
|
22
22
|
* Компонент для вывода заголовка в Snackbar.
|
|
23
23
|
* @param props Параметры.
|
|
24
24
|
* @return Элемент.
|
|
25
25
|
*/
|
|
26
|
-
export declare function SnackBarTitle({ children, className, ...props }: HTMLAttributes<HTMLDivElement>): import("react
|
|
26
|
+
export declare function SnackBarTitle({ children, className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
27
27
|
/**
|
|
28
28
|
* Компонент для вывода подзаголовка в Snackbar.
|
|
29
29
|
* @param props Параметры.
|
|
30
30
|
* @return Элемент.
|
|
31
31
|
*/
|
|
32
|
-
export declare function SnackBarSubtitle({ children, className, ...props }: HTMLAttributes<HTMLDivElement>): import("react
|
|
32
|
+
export declare function SnackBarSubtitle({ children, className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
@@ -4,4 +4,4 @@ import { SnackBarProps } from './types';
|
|
|
4
4
|
* @param props Параметры.
|
|
5
5
|
* @return Элемент.
|
|
6
6
|
*/
|
|
7
|
-
export declare function SnackBar({ onClick, children, className, onMount, ...props }: SnackBarProps): import("react
|
|
7
|
+
export declare function SnackBar({ onClick, children, className, onMount, ...props }: SnackBarProps): import("react").JSX.Element;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
@use '../colors';
|
|
2
|
-
@use '../breakpoints
|
|
2
|
+
@use '../breakpoints';
|
|
3
3
|
|
|
4
4
|
.root {
|
|
5
5
|
--max-width: 464px;
|
|
6
6
|
--min-width: 304px;
|
|
7
7
|
--min-height: 56px;
|
|
8
|
-
--snackbar-bottom-gap: 12px;
|
|
9
8
|
background: colors.$basic-gray76;
|
|
10
9
|
border-radius: 10px;
|
|
11
10
|
padding: 12px;
|
|
@@ -14,38 +13,38 @@
|
|
|
14
13
|
min-width: var(--min-width);
|
|
15
14
|
min-height: var(--min-height);
|
|
16
15
|
position: fixed;
|
|
17
|
-
bottom: var(--snackbar-bottom-gap);
|
|
16
|
+
bottom: var(--snackbar-bottom-gap, 12px);
|
|
18
17
|
box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.12);
|
|
19
18
|
// частично иммитируем поведение layout
|
|
20
19
|
margin: 0 auto;
|
|
21
|
-
@include breakpoints.
|
|
20
|
+
@include breakpoints.gte('xs') {
|
|
22
21
|
width: fit-content;
|
|
23
|
-
--snackbar-bottom-gap
|
|
22
|
+
bottom: var(--snackbar-bottom-gap, 40px);
|
|
24
23
|
}
|
|
25
|
-
@include breakpoints.
|
|
24
|
+
@include breakpoints.lt('ms') {
|
|
26
25
|
left: var(--snackbar-position-left, 8px);
|
|
27
26
|
margin-right: 8px;
|
|
28
27
|
width: calc(100% - (var(--snackbar-position-left, 8px) + 8px));
|
|
29
28
|
}
|
|
30
|
-
@include breakpoints.
|
|
31
|
-
@include breakpoints.
|
|
29
|
+
@include breakpoints.gte('ms') {
|
|
30
|
+
@include breakpoints.lt('xs') {
|
|
32
31
|
left: var(--snackbar-position-left, 50%);
|
|
33
32
|
margin-left: calc(-1 * (var(--max-width) / 2));
|
|
34
33
|
width: 100%;
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
|
-
@include breakpoints.
|
|
38
|
-
@include breakpoints.
|
|
36
|
+
@include breakpoints.gte('xs') {
|
|
37
|
+
@include breakpoints.lt('l') {
|
|
39
38
|
left: var(--snackbar-position-left, 56px);
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
|
-
@include breakpoints.
|
|
43
|
-
@include breakpoints.
|
|
41
|
+
@include breakpoints.gte('l') {
|
|
42
|
+
@include breakpoints.lt('xl') {
|
|
44
43
|
// 1472 - максимальная ширина контейнера Layout на данном разрешении.
|
|
45
44
|
left: var(--snackbar-position-left, calc(((100% - 1472px) / 2) - 8px));
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
|
-
@include breakpoints.
|
|
47
|
+
@include breakpoints.gte('xl') {
|
|
49
48
|
// 1504 - максимальная ширина контейнера Layout на данном разрешении.
|
|
50
49
|
left: var(--snackbar-position-left, calc(((100% - 1504px) / 2) - 8px));
|
|
51
50
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { WithTestId } from '../types';
|
|
1
|
+
import type { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import type { WithTestId } from '../types';
|
|
3
|
+
export interface SnackBarStyle extends CSSProperties {
|
|
4
|
+
'--snackbar-bottom-gap'?: string;
|
|
5
|
+
}
|
|
3
6
|
export interface SnackBarProps extends HTMLAttributes<HTMLDivElement>, WithTestId {
|
|
4
7
|
/** Будет вызван при мoнтировании. */
|
|
5
8
|
onMount?: VoidFunction;
|
|
9
|
+
/** Стили. */
|
|
10
|
+
style?: SnackBarStyle;
|
|
6
11
|
}
|
|
7
12
|
export interface SnackBarImageProps extends HTMLAttributes<HTMLImageElement> {
|
|
8
13
|
src: string;
|
|
@@ -5,11 +5,11 @@ export declare const SPINNER_DIAMETER: Record<SpinnerSize, number>;
|
|
|
5
5
|
* @param props Свойства.
|
|
6
6
|
* @return Элемент.
|
|
7
7
|
*/
|
|
8
|
-
export declare function Spinner({ size, color, className, style, 'data-testid': testId, }: SpinnerProps): import("react
|
|
8
|
+
export declare function Spinner({ size, color, className, style, 'data-testid': testId, }: SpinnerProps): import("react").JSX.Element;
|
|
9
9
|
/**
|
|
10
10
|
* Спиннер.
|
|
11
11
|
* Выделен в отдельный компонент для возможности использования без обертки в виде div.
|
|
12
12
|
* @param props Свойства.
|
|
13
13
|
* @return Элемент.
|
|
14
14
|
*/
|
|
15
|
-
export declare function SpinnerSVG({ size, color, className, style, 'data-testid': testId, }: SpinnerProps): import("react
|
|
15
|
+
export declare function SpinnerSVG({ size, color, className, style, 'data-testid': testId, }: SpinnerProps): import("react").JSX.Element;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import type { StepperProps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Степпер - поле ввода количества.
|
|
4
|
-
* @param props Свойства.
|
|
5
|
-
* @return Элемент.
|
|
6
|
-
*/
|
|
7
2
|
export declare const Stepper: import("react").ForwardRefExoticComponent<StepperProps & import("react").RefAttributes<HTMLInputElement>>;
|