@ozen-ui/kit 0.42.0 → 0.44.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/Calendar/package.json +5 -0
- package/DatePicker/package.json +5 -0
- package/__inner__/cjs/components/Accordion/Accordion.css +1 -1
- package/__inner__/cjs/components/Alert/Alert.css +40 -21
- package/__inner__/cjs/components/Alert/Alert.d.ts +3 -1
- package/__inner__/cjs/components/Alert/Alert.js +5 -5
- package/__inner__/cjs/components/Autocomplete/components/AutocompleteRenderRight/AutocompleteRenderRight.js +3 -3
- package/__inner__/cjs/components/Breadcrumbs/components/BreadcrumbItem.d.ts +1 -1
- package/__inner__/cjs/components/Button/Button.css +7 -1
- package/__inner__/cjs/components/ButtonNext/Button.css +7 -1
- package/__inner__/cjs/components/Card/Card.d.ts +1 -0
- package/__inner__/cjs/components/Card/Card.js +3 -3
- package/__inner__/cjs/components/DataList/DataList.js +3 -1
- package/__inner__/cjs/components/Dialog/Dialog.css +1 -1
- package/__inner__/cjs/components/Dialog/Dialog.d.ts +1 -1
- package/__inner__/cjs/components/Dialog/Dialog.js +3 -3
- package/__inner__/cjs/components/Drawer/Drawer.css +9 -4
- package/__inner__/cjs/components/Drawer/Drawer.d.ts +1 -1
- package/__inner__/cjs/components/Drawer/Drawer.js +4 -4
- package/__inner__/cjs/components/FieldControl/FieldControl.css +6 -6
- package/__inner__/cjs/components/File/File.css +3 -3
- package/__inner__/cjs/components/IconButton/IconButton.css +7 -1
- package/__inner__/cjs/components/IconButtonNext/IconButton.css +8 -1
- package/__inner__/cjs/components/IconButtonNext/IconButton.d.ts +1 -2
- package/__inner__/cjs/components/Indicator/Indicator.d.ts +1 -1
- package/__inner__/cjs/components/InputNumber/InputNumber.css +3 -3
- package/__inner__/cjs/components/InputNumber/InputNumber.js +3 -3
- package/__inner__/cjs/components/List/List.css +13 -9
- package/__inner__/cjs/components/Menu/Menu.d.ts +7 -0
- package/__inner__/cjs/components/Menu/Menu.js +12 -5
- package/__inner__/cjs/components/Menu/constants.d.ts +1 -0
- package/__inner__/cjs/components/Menu/constants.js +4 -0
- package/__inner__/cjs/components/Modal/components/ModalConsumer.js +1 -1
- package/__inner__/cjs/components/Pagination/components/PaginationItem/PaginationItem.css +2 -2
- package/__inner__/cjs/components/Paper/Paper.css +8 -0
- package/__inner__/cjs/components/Paper/Paper.d.ts +4 -1
- package/__inner__/cjs/components/Paper/Paper.js +1 -1
- package/__inner__/cjs/components/Popover/Popover.js +1 -1
- package/__inner__/cjs/components/SectionMessage/SectionMessage.css +9 -5
- package/__inner__/cjs/components/SectionMessage/SectionMessage.d.ts +1 -1
- package/__inner__/cjs/components/Segment/Segment.css +20 -5
- package/__inner__/cjs/components/Segment/components/SegmentItem.css +17 -14
- package/__inner__/cjs/components/Tabs/components/ScrollButton/ScrollButton.css +13 -49
- package/__inner__/cjs/components/Tabs/components/ScrollButton/ScrollButton.d.ts +3 -3
- package/__inner__/cjs/components/Tabs/components/ScrollButton/ScrollButton.js +2 -2
- package/__inner__/cjs/components/Tabs/components/Tab/Tab.css +6 -2
- package/__inner__/cjs/components/Tag/Tag.css +9 -6
- package/__inner__/cjs/components/ThemeProvider/_borderRadius/Theme_borderRadius_ozenDefault.css +1 -0
- package/__inner__/cjs/components/ThemeProvider/themes/helper.d.ts +1 -1
- package/__inner__/cjs/components/ThemeProvider/themes/helper.js +1 -0
- package/__inner__/cjs/components/Tooltip/Tooltip.js +1 -1
- package/__inner__/cjs/locale/locale.js +9 -0
- package/__inner__/cjs/utils/getPaperSizeToFormElement.d.ts +3 -0
- package/__inner__/cjs/utils/getPaperSizeToFormElement.js +12 -0
- package/__inner__/esm/components/Accordion/Accordion.css +1 -1
- package/__inner__/esm/components/Alert/Alert.css +40 -21
- package/__inner__/esm/components/Alert/Alert.d.ts +3 -1
- package/__inner__/esm/components/Alert/Alert.js +5 -5
- package/__inner__/esm/components/Autocomplete/components/AutocompleteRenderRight/AutocompleteRenderRight.js +1 -1
- package/__inner__/esm/components/Breadcrumbs/components/BreadcrumbItem.d.ts +1 -1
- package/__inner__/esm/components/Button/Button.css +7 -1
- package/__inner__/esm/components/ButtonNext/Button.css +7 -1
- package/__inner__/esm/components/Card/Card.d.ts +1 -0
- package/__inner__/esm/components/Card/Card.js +3 -3
- package/__inner__/esm/components/DataList/DataList.js +3 -1
- package/__inner__/esm/components/Dialog/Dialog.css +1 -1
- package/__inner__/esm/components/Dialog/Dialog.d.ts +1 -1
- package/__inner__/esm/components/Dialog/Dialog.js +2 -2
- package/__inner__/esm/components/Drawer/Drawer.css +9 -4
- package/__inner__/esm/components/Drawer/Drawer.d.ts +1 -1
- package/__inner__/esm/components/Drawer/Drawer.js +3 -3
- package/__inner__/esm/components/FieldControl/FieldControl.css +6 -6
- package/__inner__/esm/components/File/File.css +3 -3
- package/__inner__/esm/components/IconButton/IconButton.css +7 -1
- package/__inner__/esm/components/IconButtonNext/IconButton.css +8 -1
- package/__inner__/esm/components/IconButtonNext/IconButton.d.ts +1 -2
- package/__inner__/esm/components/Indicator/Indicator.d.ts +1 -1
- package/__inner__/esm/components/InputNumber/InputNumber.css +3 -3
- package/__inner__/esm/components/InputNumber/InputNumber.js +1 -1
- package/__inner__/esm/components/List/List.css +13 -9
- package/__inner__/esm/components/Menu/Menu.d.ts +7 -0
- package/__inner__/esm/components/Menu/Menu.js +12 -5
- package/__inner__/esm/components/Menu/constants.d.ts +1 -0
- package/__inner__/esm/components/Menu/constants.js +1 -0
- package/__inner__/esm/components/Modal/components/ModalConsumer.js +1 -1
- package/__inner__/esm/components/Pagination/components/PaginationItem/PaginationItem.css +2 -2
- package/__inner__/esm/components/Paper/Paper.css +8 -0
- package/__inner__/esm/components/Paper/Paper.d.ts +4 -1
- package/__inner__/esm/components/Paper/Paper.js +1 -1
- package/__inner__/esm/components/Popover/Popover.js +1 -1
- package/__inner__/esm/components/SectionMessage/SectionMessage.css +9 -5
- package/__inner__/esm/components/SectionMessage/SectionMessage.d.ts +1 -1
- package/__inner__/esm/components/Segment/Segment.css +20 -5
- package/__inner__/esm/components/Segment/components/SegmentItem.css +17 -14
- package/__inner__/esm/components/Tabs/components/ScrollButton/ScrollButton.css +13 -49
- package/__inner__/esm/components/Tabs/components/ScrollButton/ScrollButton.d.ts +3 -3
- package/__inner__/esm/components/Tabs/components/ScrollButton/ScrollButton.js +2 -2
- package/__inner__/esm/components/Tabs/components/Tab/Tab.css +6 -2
- package/__inner__/esm/components/Tag/Tag.css +9 -6
- package/__inner__/esm/components/ThemeProvider/_borderRadius/Theme_borderRadius_ozenDefault.css +1 -0
- package/__inner__/esm/components/ThemeProvider/themes/helper.d.ts +1 -1
- package/__inner__/esm/components/ThemeProvider/themes/helper.js +1 -0
- package/__inner__/esm/components/Tooltip/Tooltip.js +1 -1
- package/__inner__/esm/locale/locale.js +9 -0
- package/__inner__/esm/utils/getPaperSizeToFormElement.d.ts +3 -0
- package/__inner__/esm/utils/getPaperSizeToFormElement.js +8 -0
- package/package.json +4 -4
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
inline-size: 100%;
|
|
8
8
|
max-inline-size: var(--drawer-width);
|
|
9
9
|
block-size: 100%;
|
|
10
|
-
border-radius: var(--drawer-border-radius);
|
|
11
10
|
display: flex;
|
|
12
11
|
flex-direction: column;
|
|
13
12
|
box-sizing: border-box;
|
|
@@ -106,18 +105,24 @@
|
|
|
106
105
|
}
|
|
107
106
|
.Drawer_placement_right {
|
|
108
107
|
--drawer-start-position: 100%;
|
|
109
|
-
--drawer-border-radius: var(--border-radius-m) 0 0 var(--border-radius-m);
|
|
110
108
|
justify-content: flex-end;
|
|
111
109
|
}
|
|
110
|
+
.Drawer_placement_right .Modal-Window {
|
|
111
|
+
border-start-end-radius: 0;
|
|
112
|
+
border-end-end-radius: 0;
|
|
113
|
+
}
|
|
112
114
|
.Drawer_placement_left {
|
|
113
115
|
--drawer-start-position: -100%;
|
|
114
|
-
--drawer-border-radius: 0 var(--border-radius-m) var(--border-radius-m) 0;
|
|
115
116
|
justify-content: flex-start;
|
|
116
117
|
}
|
|
118
|
+
.Drawer_placement_left .Modal-Window {
|
|
119
|
+
border-start-start-radius: 0;
|
|
120
|
+
border-end-start-radius: 0;
|
|
121
|
+
}
|
|
117
122
|
.Drawer_hasCloseButton {
|
|
118
123
|
--drawer-header-item-padding-right: 24px;
|
|
119
124
|
}
|
|
120
|
-
.
|
|
125
|
+
.IconButtonNext.Drawer-CloseButton {
|
|
121
126
|
position: absolute;
|
|
122
127
|
inset-block-start: 8px;
|
|
123
128
|
inset-inline-end: 8px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './Drawer.css';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { type IconButtonProps } from '../
|
|
3
|
+
import { type IconButtonProps } from '../IconButtonNext';
|
|
4
4
|
import { type ModalProps } from '../Modal';
|
|
5
5
|
export declare const cnDrawer: import("@bem-react/classname").ClassNameFormatter;
|
|
6
6
|
export declare const drawerVariant: readonly ["little", "medium", "large"];
|
|
@@ -4,7 +4,7 @@ import React, { forwardRef } from 'react';
|
|
|
4
4
|
import { CrossIcon } from '@ozen-ui/icons';
|
|
5
5
|
import { useThemeProps } from '../../hooks/useThemeProps';
|
|
6
6
|
import { cn } from '../../utils/classname';
|
|
7
|
-
import { IconButton } from '../
|
|
7
|
+
import { IconButton } from '../IconButtonNext';
|
|
8
8
|
import { Modal } from '../Modal';
|
|
9
9
|
import { DRAWER_DEFAULT_HIDE_CLOSE_BUTTON, DRAWER_DEFAULT_PLACEMENT, DRAWER_DEFAULT_SIZE, DRAWER_DEFAULT_VARIANT, } from './constants';
|
|
10
10
|
export var cnDrawer = cn('Drawer');
|
|
@@ -20,9 +20,9 @@ export var Drawer = forwardRef(function (inProps, ref) {
|
|
|
20
20
|
props: inProps,
|
|
21
21
|
name: 'Drawer',
|
|
22
22
|
});
|
|
23
|
-
var _a = props.variant, variant = _a === void 0 ? DRAWER_DEFAULT_VARIANT : _a, _b = props.size, size = _b === void 0 ? DRAWER_DEFAULT_SIZE : _b, _c = props.placement, placement = _c === void 0 ? DRAWER_DEFAULT_PLACEMENT : _c, _d = props.hideCloseButton, hideCloseButton = _d === void 0 ? DRAWER_DEFAULT_HIDE_CLOSE_BUTTON : _d, open = props.open, onClose = props.onClose, children = props.children, className = props.className, transitionProps = props.transitionProps, closeButtonProps = props.closeButtonProps, other = __rest(props, ["variant", "size", "placement", "hideCloseButton", "open", "onClose", "children", "className", "transitionProps", "closeButtonProps"]);
|
|
23
|
+
var _a = props.variant, variant = _a === void 0 ? DRAWER_DEFAULT_VARIANT : _a, _b = props.size, size = _b === void 0 ? DRAWER_DEFAULT_SIZE : _b, _c = props.placement, placement = _c === void 0 ? DRAWER_DEFAULT_PLACEMENT : _c, _d = props.hideCloseButton, hideCloseButton = _d === void 0 ? DRAWER_DEFAULT_HIDE_CLOSE_BUTTON : _d, open = props.open, onClose = props.onClose, children = props.children, className = props.className, windowProps = props.windowProps, transitionProps = props.transitionProps, closeButtonProps = props.closeButtonProps, other = __rest(props, ["variant", "size", "placement", "hideCloseButton", "open", "onClose", "children", "className", "windowProps", "transitionProps", "closeButtonProps"]);
|
|
24
24
|
var _e = closeButtonProps || {}, closeButtonClassName = _e.className, closeButtonRestProps = __rest(_e, ["className"]);
|
|
25
|
-
return (React.createElement(Modal, __assign({}, other, { open: open, onClose: onClose, className: cnDrawer({ variant: variant, size: size, placement: placement, hasCloseButton: !hideCloseButton }, [className]), transitionProps: __assign({ classNames: cnDrawer({ animation: true }) }, transitionProps), ref: ref }),
|
|
25
|
+
return (React.createElement(Modal, __assign({}, other, { open: open, onClose: onClose, windowProps: __assign({ radius: size === 's' ? 'l' : 'xl' }, windowProps), className: cnDrawer({ variant: variant, size: size, placement: placement, hasCloseButton: !hideCloseButton }, [className]), transitionProps: __assign({ classNames: cnDrawer({ animation: true }) }, transitionProps), ref: ref }),
|
|
26
26
|
!hideCloseButton && (React.createElement(IconButton, __assign({ size: iconButtonSizeMapper[size], variant: "ghost", name: "close" }, closeButtonRestProps, { className: cnDrawer('CloseButton', [closeButtonClassName]), onClick: onClose, icon: CrossIcon, compressed: true }))),
|
|
27
27
|
React.createElement("div", { className: cnDrawer('InnerContainer') }, children)));
|
|
28
28
|
});
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
--textfield-input-padding: 8px 0;
|
|
18
18
|
--textfield-input-gap: var(--spacing-2xs);
|
|
19
19
|
--textfield-gutter-x: var(--control-padding-xs);
|
|
20
|
-
--textfield-border-radius: var(--border-radius-
|
|
20
|
+
--textfield-border-radius: var(--border-radius-m);
|
|
21
21
|
--textfield-input-height: var(--control-height-2xs);
|
|
22
22
|
|
|
23
23
|
font: var(--typography-text-2xs-font);
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
--textfield-input-padding: 12px 0;
|
|
31
31
|
--textfield-input-gap: var(--spacing-2xs);
|
|
32
32
|
--textfield-gutter-x: var(--control-padding-xs);
|
|
33
|
-
--textfield-border-radius: var(--border-radius-
|
|
33
|
+
--textfield-border-radius: var(--border-radius-m);
|
|
34
34
|
--textfield-input-height: var(--control-height-xs);
|
|
35
35
|
|
|
36
36
|
font: var(--typography-text-xs-font);
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
--textfield-input-padding: 14px 0;
|
|
44
44
|
--textfield-input-gap: var(--spacing-xs);
|
|
45
45
|
--textfield-gutter-x: var(--control-padding-s);
|
|
46
|
-
--textfield-border-radius: var(--border-radius-
|
|
46
|
+
--textfield-border-radius: var(--border-radius-l);
|
|
47
47
|
--textfield-input-height: var(--control-height-s);
|
|
48
48
|
|
|
49
49
|
font: var(--typography-text-s-font);
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
--textfield-input-padding: 16px 0;
|
|
57
57
|
--textfield-input-gap: var(--spacing-xs);
|
|
58
58
|
--textfield-gutter-x: var(--control-padding-m);
|
|
59
|
-
--textfield-border-radius: var(--border-radius-
|
|
59
|
+
--textfield-border-radius: var(--border-radius-l);
|
|
60
60
|
--textfield-input-height: var(--control-height-m);
|
|
61
61
|
|
|
62
62
|
font: var(--typography-text-m-font);
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
--textfield-input-padding: 18px 0;
|
|
70
70
|
--textfield-input-gap: var(--spacing-s);
|
|
71
71
|
--textfield-gutter-x: var(--control-padding-l);
|
|
72
|
-
--textfield-border-radius: var(--border-radius-
|
|
72
|
+
--textfield-border-radius: var(--border-radius-l);
|
|
73
73
|
--textfield-input-height: var(--control-height-l);
|
|
74
74
|
|
|
75
75
|
font: var(--typography-text-l-font);
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
}
|
|
108
108
|
.FieldControl_focused,
|
|
109
109
|
.FieldControl_focused:hover {
|
|
110
|
-
--textfield-border-width: var(--border-width-
|
|
110
|
+
--textfield-border-width: var(--border-width-s);
|
|
111
111
|
--textfield-border-color: var(--color-border-action);
|
|
112
112
|
--textfield-background-color: var(--color-background-main);
|
|
113
113
|
}
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
font: var(--typography-text-s_1-font);
|
|
4
4
|
letter-spacing: var(--typography-text-s_1-letter_spacing, 0);
|
|
5
5
|
text-transform: var(--typography-text-s_1-text_transform, none);
|
|
6
|
-
inline-size: var(--
|
|
7
|
-
block-size: var(--
|
|
6
|
+
inline-size: var(--control-height-xs);
|
|
7
|
+
block-size: var(--control-height-xs);
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
justify-content: center;
|
|
11
|
-
border-radius: var(--border-radius-
|
|
11
|
+
border-radius: var(--border-radius-m);
|
|
12
12
|
overflow: hidden;
|
|
13
13
|
transition: background-color var(--transition-default);
|
|
14
14
|
}
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
align-items: center;
|
|
13
13
|
justify-content: center;
|
|
14
14
|
cursor: pointer;
|
|
15
|
-
border-radius: var(--border-radius-xs);
|
|
16
15
|
border: none;
|
|
17
16
|
color: var(--icon-button-font-color);
|
|
18
17
|
background-color: var(--icon-button-bg-color);
|
|
19
18
|
opacity: 1;
|
|
19
|
+
border-radius: var(--icon-button-border-radius);
|
|
20
20
|
transition:
|
|
21
21
|
background-color var(--transition-default),
|
|
22
22
|
box-shadow var(--transition-default),
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
.IconButton_size_2xs {
|
|
29
29
|
--icon-button-size: 32px;
|
|
30
|
+
--icon-button-border-radius: var(--border-radius-m);
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
.IconButton_size_2xs.IconButton_compressed:not(.IconButton_variant_function) {
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
|
|
36
37
|
.IconButton_size_xs {
|
|
37
38
|
--icon-button-size: 40px;
|
|
39
|
+
--icon-button-border-radius: var(--border-radius-m);
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
.IconButton_size_xs.IconButton_compressed:not(.IconButton_variant_function) {
|
|
@@ -43,6 +45,7 @@
|
|
|
43
45
|
|
|
44
46
|
.IconButton_size_s {
|
|
45
47
|
--icon-button-size: 48px;
|
|
48
|
+
--icon-button-border-radius: var(--border-radius-l);
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
.IconButton_size_s.IconButton_compressed:not(.IconButton_variant_function) {
|
|
@@ -51,6 +54,7 @@
|
|
|
51
54
|
|
|
52
55
|
.IconButton_size_m {
|
|
53
56
|
--icon-button-size: 56px;
|
|
57
|
+
--icon-button-border-radius: var(--border-radius-l);
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
.IconButton_size_m.IconButton_compressed:not(.IconButton_variant_function) {
|
|
@@ -59,6 +63,7 @@
|
|
|
59
63
|
|
|
60
64
|
.IconButton_size_l {
|
|
61
65
|
--icon-button-size: 64px;
|
|
66
|
+
--icon-button-border-radius: var(--border-radius-l);
|
|
62
67
|
}
|
|
63
68
|
|
|
64
69
|
.IconButton_size_l.IconButton_compressed:not(.IconButton_variant_function) {
|
|
@@ -116,6 +121,7 @@
|
|
|
116
121
|
|
|
117
122
|
.IconButton_variant_function {
|
|
118
123
|
--icon-button-size: auto;
|
|
124
|
+
--icon-button-border-radius: var(--border-radius-xs);
|
|
119
125
|
}
|
|
120
126
|
|
|
121
127
|
.IconButton_variant_function:hover {
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
align-items: center;
|
|
13
13
|
justify-content: center;
|
|
14
14
|
cursor: pointer;
|
|
15
|
-
border-radius: var(--border-radius-xs);
|
|
16
15
|
border: none;
|
|
17
16
|
color: var(--icon-button-font-color);
|
|
18
17
|
background-color: var(--icon-button-bg-color);
|
|
19
18
|
opacity: 1;
|
|
19
|
+
border-radius: var(--icon-button-border-radius);
|
|
20
20
|
transition:
|
|
21
21
|
background-color var(--transition-default),
|
|
22
22
|
box-shadow var(--transition-default),
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
.IconButtonNext_size_2xs {
|
|
29
29
|
--icon-button-size: 32px;
|
|
30
|
+
--icon-button-border-radius: var(--border-radius-m);
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
.IconButtonNext_size_2xs.IconButtonNext_compressed:not(.IconButtonNext_variant_function) {
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
|
|
36
37
|
.IconButtonNext_size_xs {
|
|
37
38
|
--icon-button-size: 40px;
|
|
39
|
+
--icon-button-border-radius: var(--border-radius-m);
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
.IconButtonNext_size_xs.IconButtonNext_compressed:not(.IconButtonNext_variant_function) {
|
|
@@ -43,6 +45,7 @@
|
|
|
43
45
|
|
|
44
46
|
.IconButtonNext_size_s {
|
|
45
47
|
--icon-button-size: 48px;
|
|
48
|
+
--icon-button-border-radius: var(--border-radius-l);
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
.IconButtonNext_size_s.IconButtonNext_compressed:not(.IconButtonNext_variant_function) {
|
|
@@ -51,6 +54,7 @@
|
|
|
51
54
|
|
|
52
55
|
.IconButtonNext_size_m {
|
|
53
56
|
--icon-button-size: 56px;
|
|
57
|
+
--icon-button-border-radius: var(--border-radius-l);
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
.IconButtonNext_size_m.IconButtonNext_compressed:not(.IconButtonNext_variant_function) {
|
|
@@ -59,6 +63,7 @@
|
|
|
59
63
|
|
|
60
64
|
.IconButtonNext_size_l {
|
|
61
65
|
--icon-button-size: 64px;
|
|
66
|
+
--icon-button-border-radius: var(--border-radius-m);
|
|
62
67
|
}
|
|
63
68
|
|
|
64
69
|
.IconButtonNext_size_l.IconButtonNext_compressed:not(.IconButtonNext_variant_function) {
|
|
@@ -209,6 +214,7 @@
|
|
|
209
214
|
|
|
210
215
|
.IconButtonNext_variant_function {
|
|
211
216
|
--icon-button-size: auto;
|
|
217
|
+
--icon-button-border-radius: var(--border-radius-xs);
|
|
212
218
|
}
|
|
213
219
|
|
|
214
220
|
.IconButtonNext_variant_function.IconButtonNext_color_primary,
|
|
@@ -258,6 +264,7 @@
|
|
|
258
264
|
--icon-button-bg-color: var(--color-background-main);
|
|
259
265
|
--icon-button-bg-color-hover: var(--color-background-main-hover);
|
|
260
266
|
--icon-button-bg-color-active: var(--color-background-main-pressed);
|
|
267
|
+
--icon-button-bg-color-focus: var(--color-background-main);
|
|
261
268
|
--icon-button-font-color: var(--color-content-primary);
|
|
262
269
|
--icon-button-font-color-active: var(--color-content-primary);
|
|
263
270
|
--icon-button-font-color-focus: var(--color-content-primary);
|
|
@@ -12,7 +12,7 @@ export type IconButtonColorVariant = (typeof iconButtonColorVariant)[number];
|
|
|
12
12
|
export type IconButtonIcon = RenderContentType<IconProps & {
|
|
13
13
|
size?: IconSize;
|
|
14
14
|
}>['content'];
|
|
15
|
-
type IconButtonBaseProps = {
|
|
15
|
+
export type IconButtonBaseProps = {
|
|
16
16
|
/** Иконка */
|
|
17
17
|
icon: IconButtonIcon;
|
|
18
18
|
/** Вариант представления компонента */
|
|
@@ -38,4 +38,3 @@ type IconButtonBaseProps = {
|
|
|
38
38
|
export type IconButtonProps<As extends ElementType = typeof ICON_BUTTON_DEFAULT_TAG> = PolymorphicComponentPropsWithoutRef<IconButtonBaseProps, As>;
|
|
39
39
|
export declare const cnIconButton: import("@bem-react/classname").ClassNameFormatter;
|
|
40
40
|
export declare const IconButton: import("../../utils/polymorphicComponentWithRef").PolymorphicComponentWithRef<IconButtonBaseProps, "button">;
|
|
41
|
-
export {};
|
|
@@ -23,7 +23,7 @@ export declare const Indicator: React.ForwardRefExoticComponent<{
|
|
|
23
23
|
/** Цветовой вариант индикатор
|
|
24
24
|
* @default success
|
|
25
25
|
* */
|
|
26
|
-
variant?: "
|
|
26
|
+
variant?: "error" | "info" | "success" | "warning" | "neutral" | undefined;
|
|
27
27
|
/** Размер
|
|
28
28
|
* @default m
|
|
29
29
|
* */
|
|
@@ -94,12 +94,12 @@
|
|
|
94
94
|
row-gap: var(--input-number-button-gap);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
.
|
|
98
|
-
.
|
|
97
|
+
.IconButtonNext.InputNumber-Increment,
|
|
98
|
+
.IconButtonNext.InputNumber-Decrement {
|
|
99
99
|
inline-size: var(--input-number-button-inline-size);
|
|
100
100
|
block-size: var(--input-number-button-block-size);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
.
|
|
103
|
+
.IconButtonNext.InputNumber-Increment *, .IconButtonNext.InputNumber-Decrement * {
|
|
104
104
|
pointer-events: none;
|
|
105
105
|
}
|
|
@@ -15,7 +15,7 @@ import { FieldIcon } from '../FieldIcon';
|
|
|
15
15
|
import { FieldInput } from '../FieldInput';
|
|
16
16
|
import { FieldLabel } from '../FieldLabel';
|
|
17
17
|
import { Fieldset } from '../Fieldset';
|
|
18
|
-
import { IconButton } from '../
|
|
18
|
+
import { IconButton } from '../IconButtonNext';
|
|
19
19
|
import { INPUT_NUMBER_DEFAULT_AUTO_FOCUS, INPUT_NUMBER_DEFAULT_DISABLED, INPUT_NUMBER_DEFAULT_ERROR, INPUT_NUMBER_DEFAULT_FULL_WIDTH, INPUT_NUMBER_DEFAULT_MAX, INPUT_NUMBER_DEFAULT_MIN, INPUT_NUMBER_DEFAULT_REQUIRED, INPUT_NUMBER_DEFAULT_SIZE, INPUT_NUMBER_DEFAULT_STEP, INPUT_NUMBER_DEFAULT_VALUE, } from './constants';
|
|
20
20
|
import { getValue, isInputInvalid, isValidValue } from './utils';
|
|
21
21
|
export var cnInputNumber = cn('InputNumber');
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
.List {
|
|
2
|
-
--list-item-color: var(--color-content-primary);
|
|
3
|
-
--list-item-border-radius: var(--border-radius-xs);
|
|
4
2
|
--list-item-bg-color: transparent;
|
|
3
|
+
--list-item-color: var(--color-content-primary);
|
|
4
|
+
--list-pipka-bg-color: var(--color-content-action);
|
|
5
|
+
--list-item-bg-color-disabled: var(--color-content-tertiary);
|
|
5
6
|
--list-item-bg-color-hover: var(--color-background-main-hover);
|
|
6
7
|
--list-item-bg-color-active: var(--color-background-main-pressed);
|
|
7
|
-
--list-item-bg-color-disabled: var(--color-content-tertiary);
|
|
8
|
-
--list-pipka-bg-color: var(--color-content-action);
|
|
9
8
|
--list-pipka-border-radius: 0 var(--border-radius-xs) var(--border-radius-xs)
|
|
10
9
|
0;
|
|
11
10
|
display: flex;
|
|
@@ -30,57 +29,62 @@
|
|
|
30
29
|
|
|
31
30
|
.List_size_2xs {
|
|
32
31
|
--list-gutter: var(--spacing-3xs);
|
|
33
|
-
--list-item-min-height:
|
|
32
|
+
--list-item-min-height: var(--control-height-2xs);
|
|
34
33
|
--list-item-icon-min-width: 16px;
|
|
35
34
|
--list-item-avatar-min-width: 16px;
|
|
36
35
|
--list-item-padding: 0 8px;
|
|
37
36
|
--list-item-children-margin-right: 8px;
|
|
38
37
|
--list-pipka-height: 32px;
|
|
39
38
|
--list-pipka-width: 4px;
|
|
39
|
+
--list-item-border-radius: var(--border-radius-m);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.List_size_xs {
|
|
43
43
|
--list-gutter: var(--spacing-3xs);
|
|
44
|
-
--list-item-min-height:
|
|
44
|
+
--list-item-min-height: var(--control-height-xs);
|
|
45
45
|
--list-item-icon-min-width: 16px;
|
|
46
46
|
--list-item-avatar-min-width: 24px;
|
|
47
47
|
--list-item-padding: 4px 8px;
|
|
48
48
|
--list-item-children-margin-right: 8px;
|
|
49
49
|
--list-pipka-height: 40px;
|
|
50
50
|
--list-pipka-width: 4px;
|
|
51
|
+
--list-item-border-radius: var(--border-radius-m);
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
.List_size_s {
|
|
54
55
|
--list-gutter: var(--spacing-3xs);
|
|
55
|
-
--list-item-min-height:
|
|
56
|
+
--list-item-min-height: var(--control-height-s);
|
|
56
57
|
--list-item-icon-min-width: 16px;
|
|
57
58
|
--list-item-avatar-min-width: 32px;
|
|
58
59
|
--list-item-padding: 6px 12px;
|
|
59
60
|
--list-item-children-margin-right: 12px;
|
|
60
61
|
--list-pipka-height: 40px;
|
|
61
62
|
--list-pipka-width: 4px;
|
|
63
|
+
--list-item-border-radius: var(--border-radius-l);
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
.List_size_m {
|
|
65
67
|
--list-gutter: var(--spacing-2xs);
|
|
66
|
-
--list-item-min-height:
|
|
68
|
+
--list-item-min-height: var(--control-height-m);
|
|
67
69
|
--list-item-icon-min-width: 24px;
|
|
68
70
|
--list-item-avatar-min-width: 40px;
|
|
69
71
|
--list-item-padding: 8px 12px;
|
|
70
72
|
--list-item-children-margin-right: 12px;
|
|
71
73
|
--list-pipka-height: 48px;
|
|
72
74
|
--list-pipka-width: 4px;
|
|
75
|
+
--list-item-border-radius: var(--border-radius-l);
|
|
73
76
|
}
|
|
74
77
|
|
|
75
78
|
.List_size_l {
|
|
76
79
|
--list-gutter: var(--spacing-2xs);
|
|
77
|
-
--list-item-min-height:
|
|
80
|
+
--list-item-min-height: var(--control-height-l);
|
|
78
81
|
--list-item-icon-min-width: 24px;
|
|
79
82
|
--list-item-avatar-min-width: 48px;
|
|
80
83
|
--list-item-padding: 8px 16px;
|
|
81
84
|
--list-item-children-margin-right: 16px;
|
|
82
85
|
--list-pipka-height: 48px;
|
|
83
86
|
--list-pipka-width: 4px;
|
|
87
|
+
--list-item-border-radius: var(--border-radius-l);
|
|
84
88
|
}
|
|
85
89
|
|
|
86
90
|
.List_disablePadding,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import './Menu.css';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { RefObject, ComponentPropsWithRef } from 'react';
|
|
4
|
+
import type { FormElementSizeVariant } from '../../types/FormElementSizeVariant';
|
|
4
5
|
import { type PopoverBaseProps } from '../Popover';
|
|
5
6
|
import type { PORTAL_DEFAULT_TAG } from '../Portal';
|
|
6
7
|
import { type MenuListProps } from './components';
|
|
@@ -8,6 +9,12 @@ export declare const cnMenu: import("@bem-react/classname").ClassNameFormatter;
|
|
|
8
9
|
export type MenuProps = {
|
|
9
10
|
/** Свойства компонента MenuList */
|
|
10
11
|
menuListProps?: Omit<MenuListProps, 'children'>;
|
|
12
|
+
/**
|
|
13
|
+
* Ссылка на компонент MenuList
|
|
14
|
+
* @deprecated Используйте menuListProps.ref
|
|
15
|
+
* */
|
|
11
16
|
menuListRef?: RefObject<HTMLDivElement>;
|
|
17
|
+
/** Размер компонента */
|
|
18
|
+
size?: FormElementSizeVariant;
|
|
12
19
|
} & Omit<PopoverBaseProps, 'disableEnforceFocus'> & ComponentPropsWithRef<typeof PORTAL_DEFAULT_TAG>;
|
|
13
20
|
export declare const Menu: React.ForwardRefExoticComponent<Omit<MenuProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
2
|
import './Menu.css';
|
|
3
3
|
import React, { forwardRef, useRef } from 'react';
|
|
4
|
+
import { deprecate } from '@ozen-ui/logger';
|
|
4
5
|
import { useEventListener } from '../../hooks/useEventListener';
|
|
5
6
|
import { useThemeProps } from '../../hooks/useThemeProps';
|
|
6
7
|
import { cn } from '../../utils/classname';
|
|
8
|
+
import { getPaperSizeToFormElement } from '../../utils/getPaperSizeToFormElement';
|
|
7
9
|
import { isKey } from '../../utils/isKey';
|
|
8
10
|
import { Popover, usePopover } from '../Popover';
|
|
9
11
|
import { MenuList } from './components';
|
|
12
|
+
import { MENU_DEFAULT_SIZE } from './constants';
|
|
10
13
|
export var cnMenu = cn('Menu');
|
|
11
14
|
var MenuContextConsumer = function (_a) {
|
|
12
|
-
var children = _a.children,
|
|
15
|
+
var children = _a.children, onClose = _a.onClose, menuListProps = _a.menuListProps;
|
|
13
16
|
var isTop = usePopover().isTop;
|
|
14
17
|
var docRef = useRef(document);
|
|
15
18
|
useEventListener({
|
|
@@ -23,12 +26,16 @@ var MenuContextConsumer = function (_a) {
|
|
|
23
26
|
element: docRef,
|
|
24
27
|
active: isTop,
|
|
25
28
|
});
|
|
26
|
-
return (React.createElement(MenuList, __assign({}, menuListProps, {
|
|
29
|
+
return (React.createElement(MenuList, __assign({}, menuListProps, { autoFocus: true }), children));
|
|
27
30
|
};
|
|
28
31
|
export var Menu = forwardRef(function (inProps, ref) {
|
|
29
32
|
var props = useThemeProps({ props: inProps, name: 'Menu' });
|
|
30
|
-
var open = props.open, menuListProps = props.menuListProps, menuListRef = props.menuListRef, onClose = props.onClose, children = props.children, className = props.className, other = __rest(props, ["open", "menuListProps", "menuListRef", "onClose", "children", "className"]);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
var _a = props.size, size = _a === void 0 ? MENU_DEFAULT_SIZE : _a, open = props.open, menuListProps = props.menuListProps, menuListRef = props.menuListRef, onClose = props.onClose, children = props.children, className = props.className, other = __rest(props, ["size", "open", "menuListProps", "menuListRef", "onClose", "children", "className"]);
|
|
34
|
+
var radius = getPaperSizeToFormElement(size);
|
|
35
|
+
if (process.env.NODE_ENV !== 'production' && menuListRef) {
|
|
36
|
+
deprecate('Свойство «menuListRef» устарело. Для замены используйте «menuListProps.ref».');
|
|
37
|
+
}
|
|
38
|
+
return (React.createElement(Popover, __assign({ offset: [0, 4], radius: radius }, other, { open: open, onClose: onClose, className: cnMenu('', [className]), disableEnforceFocus: true, ref: ref }),
|
|
39
|
+
React.createElement(MenuContextConsumer, { onClose: onClose, menuListRef: menuListRef, menuListProps: __assign(__assign({ size: size }, menuListProps), { ref: menuListRef || (menuListProps === null || menuListProps === void 0 ? void 0 : menuListProps.ref) }) }, children)));
|
|
33
40
|
});
|
|
34
41
|
Menu.displayName = 'Menu';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MENU_DEFAULT_SIZE = "m";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var MENU_DEFAULT_SIZE = 'm';
|
|
@@ -4,6 +4,6 @@ import { Paper } from '../../Paper';
|
|
|
4
4
|
import { cnModal } from '../index';
|
|
5
5
|
export var ModalConsumer = forwardRef(function (_a, ref) {
|
|
6
6
|
var children = _a.children, className = _a.className, other = __rest(_a, ["children", "className"]);
|
|
7
|
-
return (React.createElement(Paper, __assign({ radius: "
|
|
7
|
+
return (React.createElement(Paper, __assign({ radius: "l", background: "main" }, other, { className: cnModal('Window', [className]), tabIndex: -1, ref: ref }), children));
|
|
8
8
|
});
|
|
9
9
|
ModalConsumer.displayName = 'ModalConsumer';
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
text-transform: var(--typography-text-s-text_transform, none);
|
|
23
23
|
|
|
24
24
|
--pagination-item-size: var(--control-height-2xs);
|
|
25
|
-
--pagination-item-border-radius: var(--border-radius-
|
|
25
|
+
--pagination-item-border-radius: var(--border-radius-m);
|
|
26
26
|
}
|
|
27
27
|
.PaginationItem_size_l {
|
|
28
28
|
font: var(--typography-text-l-font);
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
text-transform: var(--typography-text-l-text_transform, none);
|
|
31
31
|
|
|
32
32
|
--pagination-item-size: var(--control-height-m);
|
|
33
|
-
--pagination-item-border-radius: var(--border-radius-
|
|
33
|
+
--pagination-item-border-radius: var(--border-radius-l);
|
|
34
34
|
}
|
|
35
35
|
.PaginationItem:hover:not(.PaginationItem_selected) {
|
|
36
36
|
--pagination-item-background: var(--color-background-primary-hover);
|
|
@@ -19,6 +19,14 @@
|
|
|
19
19
|
--paper-border-radius: var(--border-radius-l);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
.Paper_radius_xl {
|
|
23
|
+
--paper-border-radius: var(--border-radius-xl);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.Paper_radius_2xl {
|
|
27
|
+
--paper-border-radius: var(--border-radius-2xl);
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
.Paper_background_main {
|
|
23
31
|
--paper-background-color: var(--color-background-main);
|
|
24
32
|
}
|
|
@@ -2,15 +2,18 @@ import './Paper.css';
|
|
|
2
2
|
import { type ComponentRef, type ElementType } from 'react';
|
|
3
3
|
import { type PolymorphicComponentPropsWithRef } from '../../utils/polymorphicComponentWithRef';
|
|
4
4
|
export declare const PAPER_DEFAULT_TAG = "div";
|
|
5
|
-
export declare const paperRadiusVariant: readonly ["xs", "s", "l"];
|
|
5
|
+
export declare const paperRadiusVariant: readonly ["xs", "s", "l", "xl", "2xl"];
|
|
6
6
|
export type PaperRadiusVariant = (typeof paperRadiusVariant)[number];
|
|
7
7
|
export declare const paperBackgroundVariant: readonly ["main", "main-inverse", "action-light", "accent"];
|
|
8
8
|
export type PaperBackgroundVariant = (typeof paperBackgroundVariant)[number];
|
|
9
9
|
export declare const paperShadowVariant: readonly ["m", "l"];
|
|
10
10
|
export type PaperShadowVariant = (typeof paperShadowVariant)[number];
|
|
11
11
|
export type PaperBaseProps = {
|
|
12
|
+
/** Радиус скругления границы */
|
|
12
13
|
radius?: PaperRadiusVariant;
|
|
14
|
+
/** Фон */
|
|
13
15
|
background?: PaperBackgroundVariant;
|
|
16
|
+
/** Тень */
|
|
14
17
|
shadow?: PaperShadowVariant;
|
|
15
18
|
};
|
|
16
19
|
export type PaperProps<As extends ElementType = typeof PAPER_DEFAULT_TAG> = PolymorphicComponentPropsWithRef<PaperBaseProps, As>;
|
|
@@ -5,7 +5,7 @@ import { useThemeProps } from '../../hooks/useThemeProps';
|
|
|
5
5
|
import { cn } from '../../utils/classname';
|
|
6
6
|
import { polymorphicComponentWithRef, } from '../../utils/polymorphicComponentWithRef';
|
|
7
7
|
export var PAPER_DEFAULT_TAG = 'div';
|
|
8
|
-
export var paperRadiusVariant = ['xs', 's', 'l'];
|
|
8
|
+
export var paperRadiusVariant = ['xs', 's', 'l', 'xl', '2xl'];
|
|
9
9
|
export var paperBackgroundVariant = [
|
|
10
10
|
'main',
|
|
11
11
|
'main-inverse',
|
|
@@ -140,7 +140,7 @@ export var Popover = polymorphicComponentWithRef(function (inProps, ref) {
|
|
|
140
140
|
var portalRef = useMultiRef([ref, popoverRef, trapRef, setPopperElement]);
|
|
141
141
|
return (React.createElement(PopoverContext.Provider, { value: { isTop: isTop } },
|
|
142
142
|
React.createElement(CSSTransition, __assign({ classNames: cnPopover({ animation: true }), timeout: 120 }, transitionProps, { in: openState, onEnter: onEnter, onEntered: onEntered, onExit: onExit, onExited: onExited, unmountOnExit: true }),
|
|
143
|
-
React.createElement(Portal, __assign({ as: as, radius: "
|
|
143
|
+
React.createElement(Portal, __assign({ as: as, radius: "l", shadow: "l", background: "main" }, other, { style: __assign(__assign({}, style), styles.popper), ref: portalRef, className: cnPopover({ disableInteractive: disableInteractive }, [className]) }, attributes.popper),
|
|
144
144
|
children,
|
|
145
145
|
arrow && (React.createElement(PopoverArrow, __assign({}, arrowProps, { style: __assign(__assign({}, arrowProps === null || arrowProps === void 0 ? void 0 : arrowProps.style), styles.arrow), "data-popper-arrow": true })))))));
|
|
146
146
|
});
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
.SectionMessage {
|
|
3
3
|
--section-message-icon-padding: 2px;
|
|
4
4
|
padding: var(--section-message-padding);
|
|
5
|
-
border-radius: var(--border-radius-m);
|
|
6
|
-
background-color: var(--section-message-background-color);
|
|
7
|
-
display: flex;
|
|
8
5
|
-moz-column-gap: var(--section-message-column-gap);
|
|
9
6
|
column-gap: var(--section-message-column-gap);
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
border-radius: var(--section-message-border-radius);
|
|
8
|
+
background-color: var(--section-message-background-color);
|
|
9
|
+
display: flex;
|
|
12
10
|
overflow: auto;
|
|
11
|
+
inline-size: 100%;
|
|
13
12
|
box-sizing: border-box;
|
|
13
|
+
align-items: flex-start;
|
|
14
14
|
}
|
|
15
15
|
.SectionMessage_status_info {
|
|
16
16
|
--section-message-icon-color: var(--color-content-info);
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
--section-message-padding: 12px;
|
|
47
47
|
--section-message-column-gap: var(--spacing-2xs);
|
|
48
48
|
--section-message-icon-padding: 0;
|
|
49
|
+
--section-message-border-radius: var(--border-radius-m);
|
|
49
50
|
|
|
50
51
|
font: var(--typography-text-xs-font);
|
|
51
52
|
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
.SectionMessage_size_s {
|
|
62
63
|
--section-message-padding: 14px 16px;
|
|
63
64
|
--section-message-column-gap: var(--spacing-xs);
|
|
65
|
+
--section-message-border-radius: var(--border-radius-l);
|
|
64
66
|
|
|
65
67
|
font: var(--typography-text-s-font);
|
|
66
68
|
|
|
@@ -77,6 +79,7 @@
|
|
|
77
79
|
--section-message-padding: 16px 20px;
|
|
78
80
|
--section-message-column-gap: var(--spacing-xs);
|
|
79
81
|
--section-message-icon-padding: 0;
|
|
82
|
+
--section-message-border-radius: var(--border-radius-l);
|
|
80
83
|
|
|
81
84
|
font: var(--typography-text-m-font);
|
|
82
85
|
|
|
@@ -92,6 +95,7 @@
|
|
|
92
95
|
.SectionMessage_size_l {
|
|
93
96
|
--section-message-padding: 18px 24px;
|
|
94
97
|
--section-message-column-gap: var(--spacing-s);
|
|
98
|
+
--section-message-border-radius: var(--border-radius-l);
|
|
95
99
|
|
|
96
100
|
font: var(--typography-text-l-font);
|
|
97
101
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './SectionMessage.css';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { HTMLAttributes, ReactElement } from 'react';
|
|
4
|
-
import type { ButtonProps } from '../
|
|
4
|
+
import type { ButtonProps } from '../ButtonNext';
|
|
5
5
|
export declare const cnSectionMessage: import("@bem-react/classname").ClassNameFormatter;
|
|
6
6
|
export declare const sectionMessageStatusVariant: readonly ["success", "error", "warning", "info", "neutral"];
|
|
7
7
|
export type SectionMessageStatusVariant = (typeof sectionMessageStatusVariant)[number];
|