@salutejs/plasma-new-hope 0.336.0-canary.2222.17612018746.0 → 0.336.0-canary.2227.17639708086.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/cjs/components/Drawer/Drawer.css +2 -2
- package/cjs/components/Drawer/Drawer.js +7 -10
- package/cjs/components/Drawer/Drawer.js.map +1 -1
- package/cjs/components/Drawer/Drawer.styles.js +2 -10
- package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
- package/cjs/components/Drawer/{Drawer.styles_pltzxq.css → Drawer.styles_h5od79.css} +1 -1
- package/cjs/components/Drawer/Drawer.tokens.js +0 -10
- package/cjs/components/Drawer/Drawer.tokens.js.map +1 -1
- package/cjs/index.css +2 -2
- package/emotion/cjs/components/Drawer/Drawer.js +4 -13
- package/emotion/cjs/components/Drawer/Drawer.styles.js +4 -7
- package/emotion/cjs/components/Drawer/Drawer.tokens.js +0 -12
- package/emotion/cjs/examples/components/Range/Range.config.js +8 -7
- package/emotion/es/components/Drawer/Drawer.js +5 -9
- package/emotion/es/components/Drawer/Drawer.styles.js +5 -8
- package/emotion/es/components/Drawer/Drawer.tokens.js +0 -9
- package/emotion/es/examples/components/Range/Range.config.js +8 -7
- package/es/components/Drawer/Drawer.css +2 -2
- package/es/components/Drawer/Drawer.js +6 -8
- package/es/components/Drawer/Drawer.js.map +1 -1
- package/es/components/Drawer/Drawer.styles.js +2 -10
- package/es/components/Drawer/Drawer.styles.js.map +1 -1
- package/es/components/Drawer/{Drawer.styles_pltzxq.css → Drawer.styles_h5od79.css} +1 -1
- package/es/components/Drawer/Drawer.tokens.js +1 -10
- package/es/components/Drawer/Drawer.tokens.js.map +1 -1
- package/es/index.css +2 -2
- package/package.json +2 -2
- package/styled-components/cjs/components/Drawer/Drawer.js +4 -13
- package/styled-components/cjs/components/Drawer/Drawer.styles.js +4 -14
- package/styled-components/cjs/components/Drawer/Drawer.tokens.js +0 -12
- package/styled-components/cjs/examples/components/Range/Range.config.js +46 -0
- package/styled-components/es/components/Drawer/Drawer.js +5 -9
- package/styled-components/es/components/Drawer/Drawer.styles.js +5 -15
- package/styled-components/es/components/Drawer/Drawer.tokens.js +0 -9
- package/styled-components/es/examples/components/Range/Range.config.js +46 -0
- package/types/components/Drawer/Drawer.d.ts +0 -2
- package/types/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.styles.d.ts +1 -2
- package/types/components/Drawer/Drawer.styles.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.tokens.d.ts +0 -9
- package/types/components/Drawer/Drawer.tokens.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.types.d.ts +0 -16
- package/types/components/Drawer/Drawer.types.d.ts.map +1 -1
- package/types/examples/components/Drawer/Drawer.d.ts +0 -1
- package/types/examples/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/examples/components/Range/Range.config.d.ts +1 -0
- package/types/examples/components/Range/Range.config.d.ts.map +1 -1
- package/types/examples/components/Range/Range.d.ts +1 -0
- package/types/examples/components/Range/Range.d.ts.map +1 -1
@@ -54,9 +54,8 @@ function _object_without_properties_loose(source, excluded) {
|
|
54
54
|
return target;
|
55
55
|
}
|
56
56
|
import React, { forwardRef, useMemo } from "react";
|
57
|
-
import cls from "classnames";
|
58
57
|
import { useForkRef } from "@salutejs/plasma-core";
|
59
|
-
import { getSizeValueFromProp, safeUseId } from "../../utils";
|
58
|
+
import { cx, getSizeValueFromProp, safeUseId } from "../../utils";
|
60
59
|
import { usePopupContext } from "../Popup";
|
61
60
|
import { Overlay } from "../Overlay";
|
62
61
|
import { DEFAULT_Z_INDEX } from "../Popup/utils";
|
@@ -71,7 +70,7 @@ import { useDrawer } from "./hooks";
|
|
71
70
|
// issue #823
|
72
71
|
export var drawerRoot = function(Root) {
|
73
72
|
return /*#__PURE__*/ forwardRef(function(_param, outerRef) {
|
74
|
-
var id = _param.id, zIndex = _param.zIndex, popupInfo = _param.popupInfo, withBlur = _param.withBlur, children = _param.children, view = _param.view, size = _param.size, width = _param.width, height = _param.height, isOpen = _param.isOpen, opened = _param.opened, initialFocusRef = _param.initialFocusRef, focusAfterRef = _param.focusAfterRef,
|
73
|
+
var id = _param.id, zIndex = _param.zIndex, popupInfo = _param.popupInfo, withBlur = _param.withBlur, children = _param.children, view = _param.view, size = _param.size, width = _param.width, height = _param.height, isOpen = _param.isOpen, opened = _param.opened, initialFocusRef = _param.initialFocusRef, focusAfterRef = _param.focusAfterRef, className = _param.className, customBackgroundColor = _param.customBackgroundColor, customContentBackgroundColor = _param.customContentBackgroundColor, onClose = _param.onClose, onOverlayClick = _param.onOverlayClick, onEscKeyDown = _param.onEscKeyDown, offset = _param.offset, frame = _param.frame, _param_borderRadius = _param.borderRadius, borderRadius = _param_borderRadius === void 0 ? 'none' : _param_borderRadius, _param_placement = _param.placement, placement = _param_placement === void 0 ? 'right' : _param_placement, _param_closeOnEsc = _param.closeOnEsc, closeOnEsc = _param_closeOnEsc === void 0 ? true : _param_closeOnEsc, _param_closeOnOverlayClick = _param.closeOnOverlayClick, closeOnOverlayClick = _param_closeOnOverlayClick === void 0 ? true : _param_closeOnOverlayClick, _param_asModal = _param.asModal, asModal = _param_asModal === void 0 ? true : _param_asModal, draggable = _param.draggable, rest = _object_without_properties(_param, [
|
75
74
|
"id",
|
76
75
|
"zIndex",
|
77
76
|
"popupInfo",
|
@@ -85,7 +84,6 @@ export var drawerRoot = function(Root) {
|
|
85
84
|
"opened",
|
86
85
|
"initialFocusRef",
|
87
86
|
"focusAfterRef",
|
88
|
-
"animationInfo",
|
89
87
|
"className",
|
90
88
|
"customBackgroundColor",
|
91
89
|
"customContentBackgroundColor",
|
@@ -135,11 +133,10 @@ export var drawerRoot = function(Root) {
|
|
135
133
|
onClose();
|
136
134
|
}
|
137
135
|
};
|
138
|
-
var _obj;
|
139
136
|
return /*#__PURE__*/ React.createElement(StyledPopup, _object_spread({
|
140
137
|
id: innerId,
|
141
138
|
ref: asModal ? innerRef : outerRef,
|
142
|
-
className:
|
139
|
+
className: cx(placementClass),
|
143
140
|
opened: innerIsOpen,
|
144
141
|
zIndex: zIndex,
|
145
142
|
placement: placement,
|
@@ -149,7 +146,6 @@ export var drawerRoot = function(Root) {
|
|
149
146
|
height: innerHeight,
|
150
147
|
offset: offset,
|
151
148
|
withAnimation: true,
|
152
|
-
drawerAnimationInfo: animationInfo,
|
153
149
|
overlay: asModal && /*#__PURE__*/ React.createElement(Root, {
|
154
150
|
view: view
|
155
151
|
}, /*#__PURE__*/ React.createElement(Overlay, {
|
@@ -162,7 +158,6 @@ export var drawerRoot = function(Root) {
|
|
162
158
|
onOverlayClick: onDrawerOverlayKeyDown
|
163
159
|
}))
|
164
160
|
}, rest), /*#__PURE__*/ React.createElement(Root, {
|
165
|
-
className: classes.panel,
|
166
161
|
view: view,
|
167
162
|
size: size,
|
168
163
|
style: {
|
@@ -174,7 +169,8 @@ export var drawerRoot = function(Root) {
|
|
174
169
|
width: innerWidth,
|
175
170
|
height: innerHeight,
|
176
171
|
customBackgroundColor: customBackgroundColor,
|
177
|
-
customContentBackgroundColor: customContentBackgroundColor
|
172
|
+
customContentBackgroundColor: customContentBackgroundColor,
|
173
|
+
className: className
|
178
174
|
}, children)));
|
179
175
|
});
|
180
176
|
};
|
@@ -2,7 +2,7 @@ import styled from "styled-components";
|
|
2
2
|
import { component, mergeConfig } from "../../engines";
|
3
3
|
import { popupClasses, popupConfig } from "../Popup";
|
4
4
|
import { panelTokens, panelConfig } from "../Panel";
|
5
|
-
import { classes,
|
5
|
+
import { classes, tokens } from "./Drawer.tokens";
|
6
6
|
var mergedPanelConfig = mergeConfig(panelConfig);
|
7
7
|
var Panel = component(mergedPanelConfig);
|
8
8
|
var Popup = component(popupConfig);
|
@@ -59,7 +59,7 @@ var getAnimationStyles = function() {
|
|
59
59
|
};
|
60
60
|
export var StyledPanel = styled(Panel).withConfig({
|
61
61
|
displayName: "Drawer.styles__StyledPanel",
|
62
|
-
componentId: "sc-
|
62
|
+
componentId: "sc-7ba5c890-0"
|
63
63
|
})([
|
64
64
|
"",
|
65
65
|
":var(",
|
@@ -67,7 +67,7 @@ export var StyledPanel = styled(Panel).withConfig({
|
|
67
67
|
], panelTokens.closeColor, tokens.closeIconColor);
|
68
68
|
export var StyledPopup = styled(Popup).withConfig({
|
69
69
|
displayName: "Drawer.styles__StyledPopup",
|
70
|
-
componentId: "sc-
|
70
|
+
componentId: "sc-7ba5c890-1"
|
71
71
|
})([
|
72
72
|
"&&.",
|
73
73
|
"{animation:fadeIn 0.2s forwards;scrollbar-gutter:stable;}&&.",
|
@@ -77,21 +77,11 @@ export var StyledPopup = styled(Popup).withConfig({
|
|
77
77
|
" > div{width:",
|
78
78
|
";height:",
|
79
79
|
";}",
|
80
|
-
"
|
81
|
-
"{&& .",
|
82
|
-
"{animation:",
|
83
|
-
";}}&.",
|
84
|
-
"{&&.",
|
85
|
-
" .",
|
86
|
-
"{animation:var(",
|
87
|
-
");}}"
|
80
|
+
""
|
88
81
|
], classes.overlay, popupClasses.endAnimation, classes.overlay, popupClasses.root, popupClasses.root, function(param) {
|
89
82
|
var width = param.width;
|
90
83
|
return width || 'auto';
|
91
84
|
}, function(param) {
|
92
85
|
var height = param.height;
|
93
86
|
return height || 'auto';
|
94
|
-
}, getAnimationStyles()
|
95
|
-
var drawerAnimationInfo = param.drawerAnimationInfo;
|
96
|
-
return (drawerAnimationInfo === null || drawerAnimationInfo === void 0 ? void 0 : drawerAnimationInfo.enter) || "var(".concat(privateTokens.enterAnimation, ")");
|
97
|
-
}, classes.exitCustomAnimation, popupClasses.endAnimation, popupClasses.root, privateTokens.customExitAnimation);
|
87
|
+
}, getAnimationStyles());
|
@@ -3,9 +3,6 @@ export var classes = {
|
|
3
3
|
header: 'drawer-header',
|
4
4
|
footer: 'drawer-footer',
|
5
5
|
overlay: 'drawer-overlay',
|
6
|
-
panel: 'drawer-panel',
|
7
|
-
enterCustomAnimation: 'drawer-enter-custom-animation',
|
8
|
-
exitCustomAnimation: 'drawer-exit-custom-animation',
|
9
6
|
horizontal: 'drawer-horizontal',
|
10
7
|
hasHeader: 'drawer-has-header',
|
11
8
|
isRightClose: 'drawer-right-close-button',
|
@@ -14,12 +11,6 @@ export var classes = {
|
|
14
11
|
rightPlacement: 'drawer-right-placement',
|
15
12
|
leftPlacement: 'drawer-left-placement'
|
16
13
|
};
|
17
|
-
export var privateTokens = {
|
18
|
-
enterAnimation: '--plasma__private-drawer-enter-animation',
|
19
|
-
exitAnimation: '--plasma__private-drawer-exit-animation',
|
20
|
-
customEnterAnimation: '--plasma__private-drawer-custom-enter-animation',
|
21
|
-
customExitAnimation: '--plasma__private-drawer-custom-exit-animation'
|
22
|
-
};
|
23
14
|
export var tokens = {
|
24
15
|
drawerOverlayWithBlurColor: '--plasma-drawer-overlay-with-blur-color',
|
25
16
|
drawerOverlayColor: '--plasma-drawer-overlay-color',
|
@@ -36,6 +36,52 @@ export var config = {
|
|
36
36
|
], tokens.background, tokens.backgroundError, tokens.backgroundSuccess, tokens.dividerColor, tokens.labelColor, tokens.leftHelperColor, tokens.leftHelperColorError, tokens.leftHelperColorSuccess, tokens.textFieldColor, tokens.textFieldPlaceholderColor, tokens.textFieldCaretColor, tokens.textFieldBackgroundColorHover, tokens.textFieldBackgroundColorFocus, tokens.textFieldBackgroundErrorColor, tokens.textFieldBackgroundErrorColorHover, tokens.textFieldBackgroundErrorColorFocus, tokens.textFieldBackgroundSuccessColor, tokens.textFieldBackgroundSuccessColorHover, tokens.textFieldBackgroundSuccessColorFocus, tokens.textFieldTextBeforeColor, tokens.textFieldTextAfterColor, tokens.indicatorColor, tokens.focusColor, tokens.textFieldPlaceholderColorFocus)
|
37
37
|
},
|
38
38
|
size: {
|
39
|
+
xl: css([
|
40
|
+
"",
|
41
|
+
":1rem;",
|
42
|
+
":0 0.375rem;",
|
43
|
+
":var(--plasma-typo-body-l-font-family);",
|
44
|
+
":var(--plasma-typo-body-l-font-style);",
|
45
|
+
":var(--plasma-typo-body-l-font-size);",
|
46
|
+
":var(--plasma-typo-body-l-font-weight);",
|
47
|
+
":var(--plasma-typo-body-l-letter-spacing);",
|
48
|
+
":var(--plasma-typo-body-l-line-height);",
|
49
|
+
":0 0 0 1.125rem;",
|
50
|
+
":0;",
|
51
|
+
":0.75rem;",
|
52
|
+
":var(--plasma-typo-body-l-font-family);",
|
53
|
+
":var(--plasma-typo-body-l-font-style);",
|
54
|
+
":var(--plasma-typo-body-l-font-size);",
|
55
|
+
":var(--plasma-typo-body-l-font-weight);",
|
56
|
+
":var(--plasma-typo-body-l-letter-spacing);",
|
57
|
+
":var(--plasma-typo-body-l-line-height);",
|
58
|
+
":4rem;",
|
59
|
+
":1rem;",
|
60
|
+
":1.3125rem 1.125rem;",
|
61
|
+
":var(--plasma-typo-body-l-font-family);",
|
62
|
+
":var(--plasma-typo-body-l-font-style);",
|
63
|
+
":var(--plasma-typo-body-l-font-size);",
|
64
|
+
":var(--plasma-typo-body-l-font-weight);",
|
65
|
+
":var(--plasma-typo-body-l-letter-spacing);",
|
66
|
+
":var(--plasma-typo-body-l-line-height);",
|
67
|
+
":0.25rem 0 0 0;",
|
68
|
+
":var(--plasma-typo-body-xs-font-family);",
|
69
|
+
":var(--plasma-typo-body-xs-font-style);",
|
70
|
+
":var(--plasma-typo-body-xs-font-size);",
|
71
|
+
":var(--plasma-typo-body-xs-font-weight);",
|
72
|
+
":var(--plasma-typo-body-xs-letter-spacing);",
|
73
|
+
":var(--plasma-typo-body-xs-line-height);",
|
74
|
+
":-0.0625rem 0.5rem -0.0625rem 0;",
|
75
|
+
":-0.0625rem 0 -0.0625rem 0.75rem;",
|
76
|
+
":0 0.25rem 0 0;",
|
77
|
+
":0 0 0 0.25rem;",
|
78
|
+
":0.5rem;",
|
79
|
+
":0.375rem;",
|
80
|
+
":0 0 0 0;",
|
81
|
+
":0.5rem auto auto -0.75rem;",
|
82
|
+
":0 0 auto auto;",
|
83
|
+
":0.25rem -0.625rem auto auto;"
|
84
|
+
], tokens.borderRadius, tokens.dividerPadding, tokens.dividerFontFamily, tokens.dividerFontStyle, tokens.dividerFontSize, tokens.dividerFontWeight, tokens.dividerLetterSpacing, tokens.dividerLineHeight, tokens.leftContentMargin, tokens.rightContentMargin, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontStyle, tokens.labelFontSize, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.textFieldHeight, tokens.textFieldBorderRadius, tokens.textFieldPadding, tokens.textFieldFontFamily, tokens.textFieldFontStyle, tokens.textFieldFontSize, tokens.textFieldFontWeight, tokens.textFieldLetterSpacing, tokens.textFieldLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontStyle, tokens.leftHelperFontSize, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.textFieldLeftContentMargin, tokens.textFieldRightContentMargin, tokens.textFieldTextBeforeMargin, tokens.textFieldTextAfterMargin, tokens.indicatorSize, tokens.indicatorSizeOuter, tokens.indicatorPlacement, tokens.indicatorOuterPlacement, tokens.indicatorPlacementRight, tokens.indicatorOuterPlacementRight),
|
39
85
|
l: css([
|
40
86
|
"",
|
41
87
|
":0.875rem;",
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
2
2
|
import type { RootProps } from '../../engines';
|
3
3
|
import type { DrawerProps } from './Drawer.types';
|
4
4
|
export declare const drawerRoot: (Root: RootProps<HTMLDivElement, DrawerProps>) => React.ForwardRefExoticComponent<Omit<import("../Popup").PopupProps, "draggable" | "resizable"> & import("../Panel").PanelProps & {
|
5
|
-
animationInfo?: import("./Drawer.types").DrawerAnimationInfo;
|
6
5
|
placement?: import("./Drawer.types").DrawerPlacement;
|
7
6
|
asModal?: boolean;
|
8
7
|
customBackgroundColor?: string;
|
@@ -20,7 +19,6 @@ export declare const drawerConfig: {
|
|
20
19
|
name: string;
|
21
20
|
tag: string;
|
22
21
|
layout: (Root: RootProps<HTMLDivElement, DrawerProps>) => React.ForwardRefExoticComponent<Omit<import("../Popup").PopupProps, "draggable" | "resizable"> & import("../Panel").PanelProps & {
|
23
|
-
animationInfo?: import("./Drawer.types").DrawerAnimationInfo;
|
24
22
|
placement?: import("./Drawer.types").DrawerPlacement;
|
25
23
|
asModal?: boolean;
|
26
24
|
customBackgroundColor?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAUlD,eAAO,MAAM,UAAU,SAAU,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC;;;;;;;;;6BAmC3D,MAAA,UAAQ;sBAGF,MAAM,SAAS;oBAMZ,MAAO,SAAS;;wCAmFhC,CAAC;AAEN,eAAO,MAAM,YAAY;;;mBAjIQ,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC;;;;;;;;;iCAmC3D,MAAA,UAAQ;0BAGF,MAAM,SAAS;wBAMZ,MAAO,SAAS;;;;;;;;;;;;;;;;;;;;CA0GpC,CAAC"}
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import type {
|
1
|
+
import type { DrawerPlacement } from './Drawer.types';
|
2
2
|
export declare const StyledPanel: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("../../engines/types").PropsType<import("../../engines/types").Variants> & import("../Panel").PanelProps & import("react").RefAttributes<HTMLDivElement>>;
|
3
3
|
export declare const StyledPopup: import("@linaria/react").StyledComponent<{
|
4
4
|
placement: DrawerPlacement;
|
5
5
|
width?: number | string;
|
6
6
|
height?: number | string;
|
7
|
-
drawerAnimationInfo?: DrawerAnimationInfo;
|
8
7
|
} & import("../Popup").PopupProps & import("react").RefAttributes<HTMLDivElement>>;
|
9
8
|
//# sourceMappingURL=Drawer.styles.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Drawer.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.styles.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"Drawer.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.styles.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA8FtD,eAAO,MAAM,WAAW,0OAEvB,CAAC;AAEF,eAAO,MAAM,WAAW;eACT,eAAe;YAClB,MAAM,GAAG,MAAM;aACd,MAAM,GAAG,MAAM;kFAqC3B,CAAC"}
|
@@ -3,9 +3,6 @@ export declare const classes: {
|
|
3
3
|
header: string;
|
4
4
|
footer: string;
|
5
5
|
overlay: string;
|
6
|
-
panel: string;
|
7
|
-
enterCustomAnimation: string;
|
8
|
-
exitCustomAnimation: string;
|
9
6
|
horizontal: string;
|
10
7
|
hasHeader: string;
|
11
8
|
isRightClose: string;
|
@@ -14,12 +11,6 @@ export declare const classes: {
|
|
14
11
|
rightPlacement: string;
|
15
12
|
leftPlacement: string;
|
16
13
|
};
|
17
|
-
export declare const privateTokens: {
|
18
|
-
enterAnimation: string;
|
19
|
-
exitAnimation: string;
|
20
|
-
customEnterAnimation: string;
|
21
|
-
customExitAnimation: string;
|
22
|
-
};
|
23
14
|
export declare const tokens: {
|
24
15
|
drawerOverlayWithBlurColor: string;
|
25
16
|
drawerOverlayColor: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Drawer.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO
|
1
|
+
{"version":3,"file":"Drawer.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;CASlB,CAAC"}
|
@@ -8,23 +8,7 @@ export declare const drawerPlacements: {
|
|
8
8
|
left: string;
|
9
9
|
};
|
10
10
|
export type DrawerPlacement = keyof typeof drawerPlacements;
|
11
|
-
export type DrawerAnimationInfo = {
|
12
|
-
enter?: string;
|
13
|
-
exit?: string;
|
14
|
-
};
|
15
11
|
export type DrawerProps = Omit<PopupProps, 'draggable' | 'resizable'> & PanelProps & {
|
16
|
-
/**
|
17
|
-
* Информация об анимации.
|
18
|
-
* Свойство может содержать поля `enter` и `exit`
|
19
|
-
* @example
|
20
|
-
* ```
|
21
|
-
* {
|
22
|
-
* enter: 'animatinName 0.2s forwards',
|
23
|
-
* exit: 'exitAnimationName 0.2s forwards',
|
24
|
-
* }
|
25
|
-
* ```
|
26
|
-
*/
|
27
|
-
animationInfo?: DrawerAnimationInfo;
|
28
12
|
/**
|
29
13
|
* Расположение Drawer.
|
30
14
|
* @default
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Drawer.types.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAE5D,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"Drawer.types.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAE5D,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,WAAW,CAAC,GACjE,UAAU,GAAG;IACT;;;;OAIG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC9C;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACnE;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEN,MAAM,WAAW,cACb,SAAQ,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,QAAQ,CAAC,EACtD,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,cAAc,GAAG,SAAS,CAAC;IAChE,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B"}
|
@@ -10,7 +10,6 @@ export declare const Drawer: import("react").FunctionComponent<import("../../../
|
|
10
10
|
default: import("@linaria/core").LinariaClassName;
|
11
11
|
};
|
12
12
|
}> & Omit<import("../../..").PopupProps, "draggable" | "resizable"> & import("../../../components/Panel").PanelProps & {
|
13
|
-
animationInfo?: import("../../../components/Drawer/Drawer.types").DrawerAnimationInfo;
|
14
13
|
placement?: import("../../../components/Drawer/Drawer.types").DrawerPlacement;
|
15
14
|
asModal?: boolean;
|
16
15
|
customBackgroundColor?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Drawer/Drawer.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,MAAM
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Drawer/Drawer.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;6BAU4kC,MAAO,UAAU;sBAAyI,MAAO,SAAS;oBAA2M,MAAO,SAAS;;kDAVv7C,CAAC;AAG9C,eAAO,MAAM,aAAa;;mGAAiC,CAAC;AAG5D,eAAO,MAAM,YAAY;;;;;;mGAAgC,CAAC;AAG1D,eAAO,MAAM,YAAY;;mGAAgC,CAAC"}
|
@@ -8,6 +8,7 @@ export declare const config: {
|
|
8
8
|
default: import("@linaria/core").LinariaClassName;
|
9
9
|
};
|
10
10
|
size: {
|
11
|
+
xl: import("@linaria/core").LinariaClassName;
|
11
12
|
l: import("@linaria/core").LinariaClassName;
|
12
13
|
m: import("@linaria/core").LinariaClassName;
|
13
14
|
s: import("@linaria/core").LinariaClassName;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Range.config.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Range/Range.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM
|
1
|
+
{"version":3,"file":"Range.config.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Range/Range.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAwUlB,CAAC"}
|
@@ -3,6 +3,7 @@ export declare const Range: import("react").FunctionComponent<import("../../../e
|
|
3
3
|
default: import("@linaria/core").LinariaClassName;
|
4
4
|
};
|
5
5
|
size: {
|
6
|
+
xl: import("@linaria/core").LinariaClassName;
|
6
7
|
l: import("@linaria/core").LinariaClassName;
|
7
8
|
m: import("@linaria/core").LinariaClassName;
|
8
9
|
s: import("@linaria/core").LinariaClassName;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Range/Range.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK
|
1
|
+
{"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Range/Range.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yIAA0B,CAAC"}
|