@salutejs/sdds-finportal 0.147.0-canary.1452.11462555994.0 → 0.147.0-canary.1503.11466452273.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/sdds-finportal.api.md +4 -84
- package/components/Notification/Notification.d.ts +3 -2
- package/components/Notification/Notification.js +5 -3
- package/components/Slider/Slider.config.js +3 -3
- package/components/Slider/Slider.d.ts +2 -92
- package/es/components/Notification/Notification.js +6 -4
- package/es/components/Slider/Slider.config.js +3 -3
- package/package.json +3 -3
- package/temp/sdds-finportal.api.md +4 -84
@@ -133,6 +133,7 @@ import { MouseEvent as MouseEvent_2 } from 'react';
|
|
133
133
|
import { MutableRefObject } from 'react';
|
134
134
|
import { NotificationIconPlacement } from '@salutejs/plasma-new-hope/styled-components';
|
135
135
|
import { NotificationLayout } from '@salutejs/plasma-new-hope/styled-components';
|
136
|
+
import { NotificationPlacement } from '@salutejs/plasma-new-hope/styled-components';
|
136
137
|
import { NotificationProps } from '@salutejs/plasma-new-hope/styled-components';
|
137
138
|
import { Orientation } from '@salutejs/plasma-new-hope/types/components/TextFieldGroup/TextFieldGroup.types';
|
138
139
|
import { Overlay } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -2893,6 +2894,7 @@ export { NotificationProps }
|
|
2893
2894
|
export const NotificationsProvider: React_2.FC<{
|
2894
2895
|
children: ReactNode;
|
2895
2896
|
frame?: string;
|
2897
|
+
placement?: NotificationPlacement;
|
2896
2898
|
}>;
|
2897
2899
|
|
2898
2900
|
export { Overlay }
|
@@ -3435,119 +3437,37 @@ onChange?: ((event: FormTypeNumber) => void) | undefined;
|
|
3435
3437
|
name: string;
|
3436
3438
|
value?: undefined;
|
3437
3439
|
defaultValue?: number | undefined;
|
3438
|
-
} & {
|
3439
|
-
orientation?: "horizontal" | undefined;
|
3440
|
-
labelPlacement?: "none" | "top" | "left" | undefined;
|
3441
|
-
scaleAlign?: "none" | "bottom" | "side" | undefined;
|
3442
|
-
sliderAlign?: "none" | undefined;
|
3443
|
-
reversed?: undefined;
|
3444
|
-
labelReversed?: undefined;
|
3445
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3446
|
-
onChangeCommitted?: ((value: number) => void) | undefined;
|
3447
|
-
ariaLabel?: string | undefined;
|
3448
|
-
showCurrentValue?: boolean | undefined;
|
3449
|
-
showRangeValues?: boolean | undefined;
|
3450
|
-
rangeValuesPlacement?: string | undefined;
|
3451
|
-
showScale?: boolean | undefined;
|
3452
|
-
hideMinValueDiff?: number | undefined;
|
3453
|
-
hideMaxValueDiff?: number | undefined;
|
3454
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
3455
|
-
labelContentLeft?: ReactNode;
|
3456
|
-
labelContent?: ReactNode;
|
3457
|
-
multipleStepSize?: number | undefined;
|
3458
|
-
view?: string | undefined;
|
3459
|
-
size?: "s" | "m" | "l" | undefined;
|
3460
|
-
type?: "single" | undefined;
|
3461
|
-
hasPointer?: boolean | undefined;
|
3462
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
3463
|
-
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
3464
|
-
onChange?: ((event: FormTypeNumber) => void) | undefined;
|
3465
|
-
name: string;
|
3466
|
-
value?: undefined;
|
3467
|
-
defaultValue?: number | undefined;
|
3468
|
-
} & {
|
3469
|
-
orientation: "vertical";
|
3470
|
-
sliderAlign?: "none" | "center" | "right" | "left" | undefined;
|
3471
|
-
scaleAlign?: undefined;
|
3472
|
-
reversed?: boolean | undefined;
|
3473
|
-
labelReversed?: boolean | undefined;
|
3474
3440
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3475
3441
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
3476
3442
|
ariaLabel?: string | undefined;
|
3477
3443
|
showCurrentValue?: boolean | undefined;
|
3478
3444
|
showRangeValues?: boolean | undefined;
|
3479
|
-
rangeValuesPlacement?: string | undefined;
|
3480
|
-
showScale?: boolean | undefined;
|
3481
3445
|
hideMinValueDiff?: number | undefined;
|
3482
3446
|
hideMaxValueDiff?: number | undefined;
|
3447
|
+
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
3483
3448
|
labelPlacement?: "outer" | "inner" | undefined;
|
3484
|
-
labelContentLeft?: ReactNode;
|
3485
|
-
labelContent?: ReactNode;
|
3486
3449
|
multipleStepSize?: number | undefined;
|
3487
3450
|
view?: string | undefined;
|
3488
3451
|
size?: "s" | "m" | "l" | undefined;
|
3489
3452
|
type?: "single" | undefined;
|
3490
|
-
hasPointer?: boolean | undefined;
|
3491
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
3492
3453
|
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
3493
3454
|
onChange?: ((value: number) => void) | undefined;
|
3494
3455
|
value: number;
|
3495
3456
|
name?: undefined;
|
3496
3457
|
defaultValue?: undefined;
|
3497
|
-
} & {
|
3498
|
-
orientation?: "horizontal" | undefined;
|
3499
|
-
labelPlacement?: "none" | "top" | "left" | undefined;
|
3500
|
-
scaleAlign?: "none" | "bottom" | "side" | undefined;
|
3501
|
-
sliderAlign?: "none" | undefined;
|
3502
|
-
reversed?: undefined;
|
3503
|
-
labelReversed?: undefined;
|
3504
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3505
|
-
onChangeCommitted?: ((value: number) => void) | undefined;
|
3506
|
-
ariaLabel?: string | undefined;
|
3507
|
-
showCurrentValue?: boolean | undefined;
|
3508
|
-
showRangeValues?: boolean | undefined;
|
3509
|
-
rangeValuesPlacement?: string | undefined;
|
3510
|
-
showScale?: boolean | undefined;
|
3511
|
-
hideMinValueDiff?: number | undefined;
|
3512
|
-
hideMaxValueDiff?: number | undefined;
|
3513
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
3514
|
-
labelContentLeft?: ReactNode;
|
3515
|
-
labelContent?: ReactNode;
|
3516
|
-
multipleStepSize?: number | undefined;
|
3517
|
-
view?: string | undefined;
|
3518
|
-
size?: "s" | "m" | "l" | undefined;
|
3519
|
-
type?: "single" | undefined;
|
3520
|
-
hasPointer?: boolean | undefined;
|
3521
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
3522
|
-
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
3523
|
-
onChange?: ((value: number) => void) | undefined;
|
3524
|
-
value: number;
|
3525
|
-
name?: undefined;
|
3526
|
-
defaultValue?: undefined;
|
3527
|
-
} & {
|
3528
|
-
orientation: "vertical";
|
3529
|
-
sliderAlign?: "none" | "center" | "right" | "left" | undefined;
|
3530
|
-
scaleAlign?: undefined;
|
3531
|
-
reversed?: boolean | undefined;
|
3532
|
-
labelReversed?: boolean | undefined;
|
3533
3458
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3534
3459
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
3535
3460
|
ariaLabel?: string | undefined;
|
3536
3461
|
showCurrentValue?: boolean | undefined;
|
3537
3462
|
showRangeValues?: boolean | undefined;
|
3538
|
-
rangeValuesPlacement?: string | undefined;
|
3539
|
-
showScale?: boolean | undefined;
|
3540
3463
|
hideMinValueDiff?: number | undefined;
|
3541
3464
|
hideMaxValueDiff?: number | undefined;
|
3465
|
+
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
3542
3466
|
labelPlacement?: "outer" | "inner" | undefined;
|
3543
|
-
labelContentLeft?: ReactNode;
|
3544
|
-
labelContent?: ReactNode;
|
3545
3467
|
multipleStepSize?: number | undefined;
|
3546
3468
|
view?: string | undefined;
|
3547
3469
|
size?: "s" | "m" | "l" | undefined;
|
3548
3470
|
type?: "single" | undefined;
|
3549
|
-
hasPointer?: boolean | undefined;
|
3550
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
3551
3471
|
} & RefAttributes<HTMLDivElement>) | (Omit<DoubleSliderProps, "onChange" | "defaultValue" | "value"> & {
|
3552
3472
|
onChange?: ((event: FormTypeString) => void) | undefined;
|
3553
3473
|
name?: string | undefined;
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
|
-
import { NotificationProps, NotificationIconPlacement, NotificationLayout, addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
|
2
|
+
import { NotificationProps, NotificationIconPlacement, NotificationPlacement, NotificationLayout, addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
|
3
3
|
export { modalClasses } from '../Modal';
|
4
4
|
export declare const Notification: React.ForwardRefExoticComponent<NotificationProps & React.RefAttributes<HTMLDivElement>>;
|
5
5
|
export declare const NotificationsProvider: React.FC<{
|
6
6
|
children: ReactNode;
|
7
7
|
frame?: string;
|
8
|
+
placement?: NotificationPlacement;
|
8
9
|
}>;
|
9
|
-
export type { NotificationIconPlacement, NotificationLayout, NotificationProps };
|
10
|
+
export type { NotificationIconPlacement, NotificationPlacement, NotificationLayout, NotificationProps };
|
10
11
|
export { addNotification, closeNotification };
|
@@ -27,14 +27,16 @@ var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-c
|
|
27
27
|
var _Notification = /*#__PURE__*/require("./Notification.config");
|
28
28
|
var _Modal = /*#__PURE__*/require("../Modal");
|
29
29
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
30
|
-
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.
|
30
|
+
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.notificationConfig, _Notification.config);
|
31
31
|
var Notification = exports.Notification = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
32
32
|
var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
|
33
33
|
var children = _ref.children,
|
34
34
|
_ref$frame = _ref.frame,
|
35
|
-
frame = _ref$frame === void 0 ? 'document' : _ref$frame
|
35
|
+
frame = _ref$frame === void 0 ? 'document' : _ref$frame,
|
36
|
+
placement = _ref.placement;
|
36
37
|
return /*#__PURE__*/_react["default"].createElement(_styledComponents.NotificationsProvider, {
|
37
38
|
config: mergedConfig,
|
38
|
-
frame: frame
|
39
|
+
frame: frame,
|
40
|
+
placement: placement
|
39
41
|
}, children);
|
40
42
|
};
|
@@ -19,9 +19,9 @@ var config = exports.config = {
|
|
19
19
|
gradient: /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n\n ", ": var(--text-secondary);\n\n ", ": var(--surface-solid-tertiary);\n ", ": var(--on-light-surface-solid-card);\n ", ": var(--surface-accent-gradient);\n\n ", ": var(--surface-solid-tertiary);\n\n ", ": var(--surface-accent-gradient);\n\n ", ": var(--text-secondary);\n ", ": var(--surface-transparent-primary);\n ", ": var(--text-primary);\n ", ": var(--text-secondary);\n ", ": var(--text-primary);\n ", ": var(--text-primary);\n "])), _styledComponents.sliderTokens.labelColor, _styledComponents.sliderTokens.rangeValueColor, _styledComponents.sliderTokens.thumbBorderColor, _styledComponents.sliderTokens.thumbBackgroundColor, _styledComponents.sliderTokens.thumbFocusBorderColor, _styledComponents.sliderTokens.railBackgroundColor, _styledComponents.sliderTokens.fillColor, _styledComponents.sliderTokens.textFieldColor, _styledComponents.sliderTokens.textFieldBackgroundColor, _styledComponents.sliderTokens.textFieldCaretColor, _styledComponents.sliderTokens.textFieldPlaceholderColor, _styledComponents.sliderTokens.textFiledFocusColor, _styledComponents.sliderTokens.textFieldActiveColor)
|
20
20
|
},
|
21
21
|
size: {
|
22
|
-
l: /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n ", ": 0.375rem;\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n ", ": 0.875rem;\n
|
23
|
-
m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n ", ": 0.375rem;\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n ", ": 0.875rem;\n
|
24
|
-
s: /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 0.375rem;\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n ", ": 0.875rem;\n
|
22
|
+
l: /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n ", ": 0.375rem;\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n ", ": 0.875rem;\n\n ", ": var(--plasma-typo-body-l-font-family);\n ", ": var(--plasma-typo-body-l-font-size);\n ", ": var(--plasma-typo-body-l-font-style);\n ", ": var(--plasma-typo-body-l-font-weight);\n ", ": var(--plasma-typo-body-l-letter-spacing);\n ", ": var(--plasma-typo-body-l-line-height);\n\n ", ": 0.75rem;\n ", ": 0.75rem;\n ", ": -1.25rem;\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": 1.5rem;\n ", ": 0.125rem solid;\n\n ", ": 1.625rem;\n\n ", ": var(--plasma-typo-text-s-font-family);\n ", ": var(--plasma-typo-text-s-font-size);\n ", ": var(--plasma-typo-text-s-font-style);\n ", ": var(--plasma-typo-text-s-font-weight);\n ", ": var(--plasma-typo-text-s-letter-spacing);\n ", ": var(--plasma-typo-text-s-line-height);\n\n ", ": 0.25rem;\n ", ": 0.125rem;\n ", ": 0.75rem;\n\n ", ": 0.125rem;\n\n ", ": 3.5rem;\n ", ": 1.25rem 1rem 1.25rem 1rem;\n ", ": 0.75rem;\n ", ": var(--plasma-typo-body-l-font-family);\n ", ": var(--plasma-typo-body-l-font-size);\n ", ": var(--plasma-typo-body-l-font-style);\n ", ": var(--plasma-typo-body-l-font-weight);\n ", ": var(--plasma-typo-body-l-letter-spacing);\n ", ": var(--plasma-typo-body-l-line-height);\n "])), _styledComponents.sliderTokens.height, _styledComponents.sliderTokens.doubleWrapperGap, _styledComponents.sliderTokens.labelWrapperGap, _styledComponents.sliderTokens.labelWrapperMarginBottom, _styledComponents.sliderTokens.labelWrapperMarginRight, _styledComponents.sliderTokens.labelFontFamily, _styledComponents.sliderTokens.labelFontSize, _styledComponents.sliderTokens.labelFontStyle, _styledComponents.sliderTokens.labelFontWeight, _styledComponents.sliderTokens.labelLetterSpacing, _styledComponents.sliderTokens.labelLineHeight, _styledComponents.sliderTokens.rangeMinValueMargin, _styledComponents.sliderTokens.rangeMaxValueMargin, _styledComponents.sliderTokens.rangeValueBottomOffset, _styledComponents.sliderTokens.rangeValueFontFamily, _styledComponents.sliderTokens.rangeValueFontSize, _styledComponents.sliderTokens.rangeValueFontStyle, _styledComponents.sliderTokens.rangeValueFontWeight, _styledComponents.sliderTokens.rangeValueLetterSpacing, _styledComponents.sliderTokens.rangeValueLineHeight, _styledComponents.sliderTokens.thumbSize, _styledComponents.sliderTokens.thumbBorder, _styledComponents.sliderTokens.currentValueTopOffset, _styledComponents.sliderTokens.currentValueFontFamily, _styledComponents.sliderTokens.currentValueFontSize, _styledComponents.sliderTokens.currentValueFontStyle, _styledComponents.sliderTokens.currentValueFontWeight, _styledComponents.sliderTokens.currentValueLetterSpacing, _styledComponents.sliderTokens.currentValueLineHeight, _styledComponents.sliderTokens.railHeight, _styledComponents.sliderTokens.railBorderRadius, _styledComponents.sliderTokens.railIndent, _styledComponents.sliderTokens.textFieldWrapperGap, _styledComponents.sliderTokens.textFieldHeight, _styledComponents.sliderTokens.textFieldPadding, _styledComponents.sliderTokens.textFieldBorderRadius, _styledComponents.sliderTokens.textFieldFontFamily, _styledComponents.sliderTokens.textFieldFontSize, _styledComponents.sliderTokens.textFieldFontStyle, _styledComponents.sliderTokens.textFieldFontWeight, _styledComponents.sliderTokens.textFieldLetterSpacing, _styledComponents.sliderTokens.textFieldLineHeight),
|
23
|
+
m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n ", ": 0.375rem;\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n ", ": 0.875rem;\n\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-font-weight);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-m-line-height);\n\n ", ": 0.75rem;\n ", ": 0.75rem;\n ", ": -1.25rem;\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": 1.5rem;\n ", ": 0.125rem solid;\n\n ", ": 1.75rem;\n\n ", ": var(--plasma-typo-text-xs-font-family);\n ", ": var(--plasma-typo-text-xs-font-size);\n ", ": var(--plasma-typo-text-xs-font-style);\n ", ": var(--plasma-typo-text-xs-font-weight);\n ", ": var(--plasma-typo-text-xs-letter-spacing);\n ", ": var(--plasma-typo-text-xs-line-height);\n\n ", ": 0.25rem;\n ", ": 0.125rem;\n ", ": 0.75rem;\n\n ", ": 0.125rem;\n\n ", ": 3rem;\n ", ": 0.875rem 1rem 0.875rem 1rem;\n ", ": 0.75rem;\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-font-weight);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-m-line-height);\n "])), _styledComponents.sliderTokens.height, _styledComponents.sliderTokens.doubleWrapperGap, _styledComponents.sliderTokens.labelWrapperGap, _styledComponents.sliderTokens.labelWrapperMarginBottom, _styledComponents.sliderTokens.labelWrapperMarginRight, _styledComponents.sliderTokens.labelFontFamily, _styledComponents.sliderTokens.labelFontSize, _styledComponents.sliderTokens.labelFontStyle, _styledComponents.sliderTokens.labelFontWeight, _styledComponents.sliderTokens.labelLetterSpacing, _styledComponents.sliderTokens.labelLineHeight, _styledComponents.sliderTokens.rangeMinValueMargin, _styledComponents.sliderTokens.rangeMaxValueMargin, _styledComponents.sliderTokens.rangeValueBottomOffset, _styledComponents.sliderTokens.rangeValueFontFamily, _styledComponents.sliderTokens.rangeValueFontSize, _styledComponents.sliderTokens.rangeValueFontStyle, _styledComponents.sliderTokens.rangeValueFontWeight, _styledComponents.sliderTokens.rangeValueLetterSpacing, _styledComponents.sliderTokens.rangeValueLineHeight, _styledComponents.sliderTokens.thumbSize, _styledComponents.sliderTokens.thumbBorder, _styledComponents.sliderTokens.currentValueTopOffset, _styledComponents.sliderTokens.currentValueFontFamily, _styledComponents.sliderTokens.currentValueFontSize, _styledComponents.sliderTokens.currentValueFontStyle, _styledComponents.sliderTokens.currentValueFontWeight, _styledComponents.sliderTokens.currentValueLetterSpacing, _styledComponents.sliderTokens.currentValueLineHeight, _styledComponents.sliderTokens.railHeight, _styledComponents.sliderTokens.railBorderRadius, _styledComponents.sliderTokens.railIndent, _styledComponents.sliderTokens.textFieldWrapperGap, _styledComponents.sliderTokens.textFieldHeight, _styledComponents.sliderTokens.textFieldPadding, _styledComponents.sliderTokens.textFieldBorderRadius, _styledComponents.sliderTokens.textFieldFontFamily, _styledComponents.sliderTokens.textFieldFontSize, _styledComponents.sliderTokens.textFieldFontStyle, _styledComponents.sliderTokens.textFieldFontWeight, _styledComponents.sliderTokens.textFieldLetterSpacing, _styledComponents.sliderTokens.textFieldLineHeight),
|
24
|
+
s: /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 0.375rem;\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n ", ": 0.875rem;\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": 0.5rem;\n ", ": 0.5rem;\n ", ": -1.25rem;\n\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": 1rem;\n ", ": 0.125rem solid;\n\n ", ": 1.25rem;\n\n ", ": var(--plasma-typo-text-xs-font-family);\n ", ": var(--plasma-typo-text-xs-font-size);\n ", ": var(--plasma-typo-text-xs-font-style);\n ", ": var(--plasma-typo-text-xs-font-weight);\n ", ": var(--plasma-typo-text-xs-letter-spacing);\n ", ": var(--plasma-typo-text-xs-line-height);\n\n ", ": 0.25rem;\n ", ": 0.125rem;\n ", ": 0.75rem;\n\n ", ": 0.125rem;\n\n ", ": 2.5rem;\n ", ": 0.5rem 1rem 0.5rem 1rem;\n ", ": 0.625rem;\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n "])), _styledComponents.sliderTokens.height, _styledComponents.sliderTokens.doubleWrapperGap, _styledComponents.sliderTokens.labelWrapperGap, _styledComponents.sliderTokens.labelWrapperMarginBottom, _styledComponents.sliderTokens.labelWrapperMarginRight, _styledComponents.sliderTokens.labelFontFamily, _styledComponents.sliderTokens.labelFontSize, _styledComponents.sliderTokens.labelFontStyle, _styledComponents.sliderTokens.labelFontWeight, _styledComponents.sliderTokens.labelLetterSpacing, _styledComponents.sliderTokens.labelLineHeight, _styledComponents.sliderTokens.rangeMinValueMargin, _styledComponents.sliderTokens.rangeMaxValueMargin, _styledComponents.sliderTokens.rangeValueBottomOffset, _styledComponents.sliderTokens.rangeValueFontFamily, _styledComponents.sliderTokens.rangeValueFontSize, _styledComponents.sliderTokens.rangeValueFontStyle, _styledComponents.sliderTokens.rangeValueFontWeight, _styledComponents.sliderTokens.rangeValueLetterSpacing, _styledComponents.sliderTokens.rangeValueLineHeight, _styledComponents.sliderTokens.thumbSize, _styledComponents.sliderTokens.thumbBorder, _styledComponents.sliderTokens.currentValueTopOffset, _styledComponents.sliderTokens.currentValueFontFamily, _styledComponents.sliderTokens.currentValueFontSize, _styledComponents.sliderTokens.currentValueFontStyle, _styledComponents.sliderTokens.currentValueFontWeight, _styledComponents.sliderTokens.currentValueLetterSpacing, _styledComponents.sliderTokens.currentValueLineHeight, _styledComponents.sliderTokens.railHeight, _styledComponents.sliderTokens.railBorderRadius, _styledComponents.sliderTokens.railIndent, _styledComponents.sliderTokens.textFieldWrapperGap, _styledComponents.sliderTokens.textFieldHeight, _styledComponents.sliderTokens.textFieldPadding, _styledComponents.sliderTokens.textFieldBorderRadius, _styledComponents.sliderTokens.textFieldFontFamily, _styledComponents.sliderTokens.textFieldFontSize, _styledComponents.sliderTokens.textFieldFontStyle, _styledComponents.sliderTokens.textFieldFontWeight, _styledComponents.sliderTokens.textFieldLetterSpacing, _styledComponents.sliderTokens.textFieldLineHeight)
|
25
25
|
},
|
26
26
|
disabled: {
|
27
27
|
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), _styledComponents.sliderTokens.disabledOpacity)
|
@@ -18,131 +18,41 @@ export declare const Slider: import("react").FunctionComponent<import("@salutejs
|
|
18
18
|
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
19
19
|
};
|
20
20
|
}> & ((import("@salutejs/plasma-new-hope/types/components/Slider/components/SliderBase/SliderBase.types").SliderBaseProps & import("@salutejs/plasma-new-hope/types/components/Slider/components").SliderInternalProps & {
|
21
|
-
/**
|
22
|
-
* Слайдер позволяет определить числовое значение в пределах указанного промежутка.
|
23
|
-
* Можно указать два значения.
|
24
|
-
*/
|
25
21
|
onChange?: ((event: import("@salutejs/plasma-new-hope/types/types/FormType").FormTypeNumber) => void) | undefined;
|
26
22
|
name: string;
|
27
23
|
value?: undefined;
|
28
24
|
defaultValue?: number | undefined;
|
29
|
-
} & {
|
30
|
-
orientation?: "horizontal" | undefined;
|
31
|
-
labelPlacement?: "none" | "top" | "left" | undefined;
|
32
|
-
scaleAlign?: "none" | "bottom" | "side" | undefined;
|
33
|
-
sliderAlign?: "none" | undefined;
|
34
|
-
reversed?: undefined;
|
35
|
-
labelReversed?: undefined;
|
36
25
|
} & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
37
26
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
38
27
|
ariaLabel?: string | undefined;
|
39
28
|
showCurrentValue?: boolean | undefined;
|
40
29
|
showRangeValues?: boolean | undefined;
|
41
|
-
rangeValuesPlacement?: string | undefined;
|
42
|
-
showScale?: boolean | undefined;
|
43
30
|
hideMinValueDiff?: number | undefined;
|
44
31
|
hideMaxValueDiff?: number | undefined;
|
32
|
+
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
45
33
|
labelPlacement?: "outer" | "inner" | undefined;
|
46
|
-
labelContentLeft?: import("react").ReactNode;
|
47
|
-
labelContent?: import("react").ReactNode;
|
48
34
|
multipleStepSize?: number | undefined;
|
49
35
|
view?: string | undefined;
|
50
36
|
size?: "s" | "m" | "l" | undefined;
|
51
37
|
type?: "single" | undefined;
|
52
|
-
hasPointer?: boolean | undefined;
|
53
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
54
|
-
} & import("react").RefAttributes<HTMLDivElement>) | (import("@salutejs/plasma-new-hope/types/components/Slider/components/SliderBase/SliderBase.types").SliderBaseProps & import("@salutejs/plasma-new-hope/types/components/Slider/components").SliderInternalProps & {
|
55
|
-
/**
|
56
|
-
* Слайдер позволяет определить числовое значение в пределах указанного промежутка.
|
57
|
-
* Можно указать два значения.
|
58
|
-
*/
|
59
|
-
onChange?: ((event: import("@salutejs/plasma-new-hope/types/types/FormType").FormTypeNumber) => void) | undefined;
|
60
|
-
name: string;
|
61
|
-
value?: undefined;
|
62
|
-
defaultValue?: number | undefined;
|
63
|
-
} & {
|
64
|
-
orientation: "vertical";
|
65
|
-
sliderAlign?: "none" | "center" | "right" | "left" | undefined;
|
66
|
-
scaleAlign?: undefined;
|
67
|
-
reversed?: boolean | undefined;
|
68
|
-
labelReversed?: boolean | undefined;
|
69
|
-
} & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
70
|
-
onChangeCommitted?: ((value: number) => void) | undefined;
|
71
|
-
ariaLabel?: string | undefined;
|
72
|
-
showCurrentValue?: boolean | undefined;
|
73
|
-
showRangeValues?: boolean | undefined;
|
74
|
-
rangeValuesPlacement?: string | undefined;
|
75
|
-
showScale?: boolean | undefined;
|
76
|
-
hideMinValueDiff?: number | undefined;
|
77
|
-
hideMaxValueDiff?: number | undefined;
|
78
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
79
|
-
labelContentLeft?: import("react").ReactNode;
|
80
|
-
labelContent?: import("react").ReactNode;
|
81
|
-
multipleStepSize?: number | undefined;
|
82
|
-
view?: string | undefined;
|
83
|
-
size?: "s" | "m" | "l" | undefined;
|
84
|
-
type?: "single" | undefined;
|
85
|
-
hasPointer?: boolean | undefined;
|
86
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
87
|
-
} & import("react").RefAttributes<HTMLDivElement>) | (import("@salutejs/plasma-new-hope/types/components/Slider/components/SliderBase/SliderBase.types").SliderBaseProps & import("@salutejs/plasma-new-hope/types/components/Slider/components").SliderInternalProps & {
|
88
|
-
onChange?: ((value: number) => void) | undefined;
|
89
|
-
value: number;
|
90
|
-
name?: undefined;
|
91
|
-
defaultValue?: undefined;
|
92
|
-
} & {
|
93
|
-
orientation?: "horizontal" | undefined;
|
94
|
-
labelPlacement?: "none" | "top" | "left" | undefined;
|
95
|
-
scaleAlign?: "none" | "bottom" | "side" | undefined;
|
96
|
-
sliderAlign?: "none" | undefined;
|
97
|
-
reversed?: undefined;
|
98
|
-
labelReversed?: undefined;
|
99
|
-
} & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
100
|
-
onChangeCommitted?: ((value: number) => void) | undefined;
|
101
|
-
ariaLabel?: string | undefined;
|
102
|
-
showCurrentValue?: boolean | undefined;
|
103
|
-
showRangeValues?: boolean | undefined;
|
104
|
-
rangeValuesPlacement?: string | undefined;
|
105
|
-
showScale?: boolean | undefined;
|
106
|
-
hideMinValueDiff?: number | undefined;
|
107
|
-
hideMaxValueDiff?: number | undefined;
|
108
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
109
|
-
labelContentLeft?: import("react").ReactNode;
|
110
|
-
labelContent?: import("react").ReactNode;
|
111
|
-
multipleStepSize?: number | undefined;
|
112
|
-
view?: string | undefined;
|
113
|
-
size?: "s" | "m" | "l" | undefined;
|
114
|
-
type?: "single" | undefined;
|
115
|
-
hasPointer?: boolean | undefined;
|
116
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
117
38
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("@salutejs/plasma-new-hope/types/components/Slider/components/SliderBase/SliderBase.types").SliderBaseProps & import("@salutejs/plasma-new-hope/types/components/Slider/components").SliderInternalProps & {
|
118
39
|
onChange?: ((value: number) => void) | undefined;
|
119
40
|
value: number;
|
120
41
|
name?: undefined;
|
121
42
|
defaultValue?: undefined;
|
122
|
-
} & {
|
123
|
-
orientation: "vertical";
|
124
|
-
sliderAlign?: "none" | "center" | "right" | "left" | undefined;
|
125
|
-
scaleAlign?: undefined;
|
126
|
-
reversed?: boolean | undefined;
|
127
|
-
labelReversed?: boolean | undefined;
|
128
43
|
} & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
129
44
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
130
45
|
ariaLabel?: string | undefined;
|
131
46
|
showCurrentValue?: boolean | undefined;
|
132
47
|
showRangeValues?: boolean | undefined;
|
133
|
-
rangeValuesPlacement?: string | undefined;
|
134
|
-
showScale?: boolean | undefined;
|
135
48
|
hideMinValueDiff?: number | undefined;
|
136
49
|
hideMaxValueDiff?: number | undefined;
|
50
|
+
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
137
51
|
labelPlacement?: "outer" | "inner" | undefined;
|
138
|
-
labelContentLeft?: import("react").ReactNode;
|
139
|
-
labelContent?: import("react").ReactNode;
|
140
52
|
multipleStepSize?: number | undefined;
|
141
53
|
view?: string | undefined;
|
142
54
|
size?: "s" | "m" | "l" | undefined;
|
143
55
|
type?: "single" | undefined;
|
144
|
-
hasPointer?: boolean | undefined;
|
145
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
146
56
|
} & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("@salutejs/plasma-new-hope/styled-components").DoubleSliderProps, "onChange" | "defaultValue" | "value"> & {
|
147
57
|
onChange?: ((event: import("@salutejs/plasma-new-hope/types/types/FormType").FormTypeString) => void) | undefined;
|
148
58
|
name?: string | undefined;
|
@@ -1,16 +1,18 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { component, mergeConfig,
|
2
|
+
import { component, mergeConfig, notificationConfig, NotificationsProvider as Provider, addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
|
3
3
|
import { config } from './Notification.config';
|
4
4
|
export { modalClasses } from '../Modal';
|
5
|
-
var mergedConfig = /*#__PURE__*/mergeConfig(
|
5
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(notificationConfig, config);
|
6
6
|
export var Notification = /*#__PURE__*/component(mergedConfig);
|
7
7
|
export var NotificationsProvider = function NotificationsProvider(_ref) {
|
8
8
|
var children = _ref.children,
|
9
9
|
_ref$frame = _ref.frame,
|
10
|
-
frame = _ref$frame === void 0 ? 'document' : _ref$frame
|
10
|
+
frame = _ref$frame === void 0 ? 'document' : _ref$frame,
|
11
|
+
placement = _ref.placement;
|
11
12
|
return /*#__PURE__*/React.createElement(Provider, {
|
12
13
|
config: mergedConfig,
|
13
|
-
frame: frame
|
14
|
+
frame: frame,
|
15
|
+
placement: placement
|
14
16
|
}, children);
|
15
17
|
};
|
16
18
|
export { addNotification, closeNotification };
|
@@ -13,9 +13,9 @@ export var config = {
|
|
13
13
|
gradient: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n\n ", ": var(--text-secondary);\n\n ", ": var(--surface-solid-tertiary);\n ", ": var(--on-light-surface-solid-card);\n ", ": var(--surface-accent-gradient);\n\n ", ": var(--surface-solid-tertiary);\n\n ", ": var(--surface-accent-gradient);\n\n ", ": var(--text-secondary);\n ", ": var(--surface-transparent-primary);\n ", ": var(--text-primary);\n ", ": var(--text-secondary);\n ", ": var(--text-primary);\n ", ": var(--text-primary);\n "])), sliderTokens.labelColor, sliderTokens.rangeValueColor, sliderTokens.thumbBorderColor, sliderTokens.thumbBackgroundColor, sliderTokens.thumbFocusBorderColor, sliderTokens.railBackgroundColor, sliderTokens.fillColor, sliderTokens.textFieldColor, sliderTokens.textFieldBackgroundColor, sliderTokens.textFieldCaretColor, sliderTokens.textFieldPlaceholderColor, sliderTokens.textFiledFocusColor, sliderTokens.textFieldActiveColor)
|
14
14
|
},
|
15
15
|
size: {
|
16
|
-
l: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n ", ": 0.375rem;\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n ", ": 0.875rem;\n
|
17
|
-
m: /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n ", ": 0.375rem;\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n ", ": 0.875rem;\n
|
18
|
-
s: /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 0.375rem;\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n ", ": 0.875rem;\n
|
16
|
+
l: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n ", ": 0.375rem;\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n ", ": 0.875rem;\n\n ", ": var(--plasma-typo-body-l-font-family);\n ", ": var(--plasma-typo-body-l-font-size);\n ", ": var(--plasma-typo-body-l-font-style);\n ", ": var(--plasma-typo-body-l-font-weight);\n ", ": var(--plasma-typo-body-l-letter-spacing);\n ", ": var(--plasma-typo-body-l-line-height);\n\n ", ": 0.75rem;\n ", ": 0.75rem;\n ", ": -1.25rem;\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": 1.5rem;\n ", ": 0.125rem solid;\n\n ", ": 1.625rem;\n\n ", ": var(--plasma-typo-text-s-font-family);\n ", ": var(--plasma-typo-text-s-font-size);\n ", ": var(--plasma-typo-text-s-font-style);\n ", ": var(--plasma-typo-text-s-font-weight);\n ", ": var(--plasma-typo-text-s-letter-spacing);\n ", ": var(--plasma-typo-text-s-line-height);\n\n ", ": 0.25rem;\n ", ": 0.125rem;\n ", ": 0.75rem;\n\n ", ": 0.125rem;\n\n ", ": 3.5rem;\n ", ": 1.25rem 1rem 1.25rem 1rem;\n ", ": 0.75rem;\n ", ": var(--plasma-typo-body-l-font-family);\n ", ": var(--plasma-typo-body-l-font-size);\n ", ": var(--plasma-typo-body-l-font-style);\n ", ": var(--plasma-typo-body-l-font-weight);\n ", ": var(--plasma-typo-body-l-letter-spacing);\n ", ": var(--plasma-typo-body-l-line-height);\n "])), sliderTokens.height, sliderTokens.doubleWrapperGap, sliderTokens.labelWrapperGap, sliderTokens.labelWrapperMarginBottom, sliderTokens.labelWrapperMarginRight, sliderTokens.labelFontFamily, sliderTokens.labelFontSize, sliderTokens.labelFontStyle, sliderTokens.labelFontWeight, sliderTokens.labelLetterSpacing, sliderTokens.labelLineHeight, sliderTokens.rangeMinValueMargin, sliderTokens.rangeMaxValueMargin, sliderTokens.rangeValueBottomOffset, sliderTokens.rangeValueFontFamily, sliderTokens.rangeValueFontSize, sliderTokens.rangeValueFontStyle, sliderTokens.rangeValueFontWeight, sliderTokens.rangeValueLetterSpacing, sliderTokens.rangeValueLineHeight, sliderTokens.thumbSize, sliderTokens.thumbBorder, sliderTokens.currentValueTopOffset, sliderTokens.currentValueFontFamily, sliderTokens.currentValueFontSize, sliderTokens.currentValueFontStyle, sliderTokens.currentValueFontWeight, sliderTokens.currentValueLetterSpacing, sliderTokens.currentValueLineHeight, sliderTokens.railHeight, sliderTokens.railBorderRadius, sliderTokens.railIndent, sliderTokens.textFieldWrapperGap, sliderTokens.textFieldHeight, sliderTokens.textFieldPadding, sliderTokens.textFieldBorderRadius, sliderTokens.textFieldFontFamily, sliderTokens.textFieldFontSize, sliderTokens.textFieldFontStyle, sliderTokens.textFieldFontWeight, sliderTokens.textFieldLetterSpacing, sliderTokens.textFieldLineHeight),
|
17
|
+
m: /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n ", ": 0.375rem;\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n ", ": 0.875rem;\n\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-font-weight);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-m-line-height);\n\n ", ": 0.75rem;\n ", ": 0.75rem;\n ", ": -1.25rem;\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": 1.5rem;\n ", ": 0.125rem solid;\n\n ", ": 1.75rem;\n\n ", ": var(--plasma-typo-text-xs-font-family);\n ", ": var(--plasma-typo-text-xs-font-size);\n ", ": var(--plasma-typo-text-xs-font-style);\n ", ": var(--plasma-typo-text-xs-font-weight);\n ", ": var(--plasma-typo-text-xs-letter-spacing);\n ", ": var(--plasma-typo-text-xs-line-height);\n\n ", ": 0.25rem;\n ", ": 0.125rem;\n ", ": 0.75rem;\n\n ", ": 0.125rem;\n\n ", ": 3rem;\n ", ": 0.875rem 1rem 0.875rem 1rem;\n ", ": 0.75rem;\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-font-weight);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-m-line-height);\n "])), sliderTokens.height, sliderTokens.doubleWrapperGap, sliderTokens.labelWrapperGap, sliderTokens.labelWrapperMarginBottom, sliderTokens.labelWrapperMarginRight, sliderTokens.labelFontFamily, sliderTokens.labelFontSize, sliderTokens.labelFontStyle, sliderTokens.labelFontWeight, sliderTokens.labelLetterSpacing, sliderTokens.labelLineHeight, sliderTokens.rangeMinValueMargin, sliderTokens.rangeMaxValueMargin, sliderTokens.rangeValueBottomOffset, sliderTokens.rangeValueFontFamily, sliderTokens.rangeValueFontSize, sliderTokens.rangeValueFontStyle, sliderTokens.rangeValueFontWeight, sliderTokens.rangeValueLetterSpacing, sliderTokens.rangeValueLineHeight, sliderTokens.thumbSize, sliderTokens.thumbBorder, sliderTokens.currentValueTopOffset, sliderTokens.currentValueFontFamily, sliderTokens.currentValueFontSize, sliderTokens.currentValueFontStyle, sliderTokens.currentValueFontWeight, sliderTokens.currentValueLetterSpacing, sliderTokens.currentValueLineHeight, sliderTokens.railHeight, sliderTokens.railBorderRadius, sliderTokens.railIndent, sliderTokens.textFieldWrapperGap, sliderTokens.textFieldHeight, sliderTokens.textFieldPadding, sliderTokens.textFieldBorderRadius, sliderTokens.textFieldFontFamily, sliderTokens.textFieldFontSize, sliderTokens.textFieldFontStyle, sliderTokens.textFieldFontWeight, sliderTokens.textFieldLetterSpacing, sliderTokens.textFieldLineHeight),
|
18
|
+
s: /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 0.375rem;\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n ", ": 0.875rem;\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": 0.5rem;\n ", ": 0.5rem;\n ", ": -1.25rem;\n\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": 1rem;\n ", ": 0.125rem solid;\n\n ", ": 1.25rem;\n\n ", ": var(--plasma-typo-text-xs-font-family);\n ", ": var(--plasma-typo-text-xs-font-size);\n ", ": var(--plasma-typo-text-xs-font-style);\n ", ": var(--plasma-typo-text-xs-font-weight);\n ", ": var(--plasma-typo-text-xs-letter-spacing);\n ", ": var(--plasma-typo-text-xs-line-height);\n\n ", ": 0.25rem;\n ", ": 0.125rem;\n ", ": 0.75rem;\n\n ", ": 0.125rem;\n\n ", ": 2.5rem;\n ", ": 0.5rem 1rem 0.5rem 1rem;\n ", ": 0.625rem;\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n "])), sliderTokens.height, sliderTokens.doubleWrapperGap, sliderTokens.labelWrapperGap, sliderTokens.labelWrapperMarginBottom, sliderTokens.labelWrapperMarginRight, sliderTokens.labelFontFamily, sliderTokens.labelFontSize, sliderTokens.labelFontStyle, sliderTokens.labelFontWeight, sliderTokens.labelLetterSpacing, sliderTokens.labelLineHeight, sliderTokens.rangeMinValueMargin, sliderTokens.rangeMaxValueMargin, sliderTokens.rangeValueBottomOffset, sliderTokens.rangeValueFontFamily, sliderTokens.rangeValueFontSize, sliderTokens.rangeValueFontStyle, sliderTokens.rangeValueFontWeight, sliderTokens.rangeValueLetterSpacing, sliderTokens.rangeValueLineHeight, sliderTokens.thumbSize, sliderTokens.thumbBorder, sliderTokens.currentValueTopOffset, sliderTokens.currentValueFontFamily, sliderTokens.currentValueFontSize, sliderTokens.currentValueFontStyle, sliderTokens.currentValueFontWeight, sliderTokens.currentValueLetterSpacing, sliderTokens.currentValueLineHeight, sliderTokens.railHeight, sliderTokens.railBorderRadius, sliderTokens.railIndent, sliderTokens.textFieldWrapperGap, sliderTokens.textFieldHeight, sliderTokens.textFieldPadding, sliderTokens.textFieldBorderRadius, sliderTokens.textFieldFontFamily, sliderTokens.textFieldFontSize, sliderTokens.textFieldFontStyle, sliderTokens.textFieldFontWeight, sliderTokens.textFieldLetterSpacing, sliderTokens.textFieldLineHeight)
|
19
19
|
},
|
20
20
|
disabled: {
|
21
21
|
"true": /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), sliderTokens.disabledOpacity)
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-finportal",
|
3
|
-
"version": "0.147.0-canary.
|
3
|
+
"version": "0.147.0-canary.1503.11466452273.0",
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS FinPortal web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"directory": "packages/sdds-finportal"
|
20
20
|
},
|
21
21
|
"dependencies": {
|
22
|
-
"@salutejs/plasma-new-hope": "0.174.0-canary.
|
22
|
+
"@salutejs/plasma-new-hope": "0.174.0-canary.1503.11466452273.0",
|
23
23
|
"@salutejs/sdds-themes": "0.24.0-dev.0"
|
24
24
|
},
|
25
25
|
"peerDependencies": {
|
@@ -94,5 +94,5 @@
|
|
94
94
|
"Vasiliy Loginevskiy"
|
95
95
|
],
|
96
96
|
"sideEffects": false,
|
97
|
-
"gitHead": "
|
97
|
+
"gitHead": "1c5d74694d9b51013c584be5c05eb691be4ae341"
|
98
98
|
}
|
@@ -133,6 +133,7 @@ import { MouseEvent as MouseEvent_2 } from 'react';
|
|
133
133
|
import { MutableRefObject } from 'react';
|
134
134
|
import { NotificationIconPlacement } from '@salutejs/plasma-new-hope/styled-components';
|
135
135
|
import { NotificationLayout } from '@salutejs/plasma-new-hope/styled-components';
|
136
|
+
import { NotificationPlacement } from '@salutejs/plasma-new-hope/styled-components';
|
136
137
|
import { NotificationProps } from '@salutejs/plasma-new-hope/styled-components';
|
137
138
|
import { Orientation } from '@salutejs/plasma-new-hope/types/components/TextFieldGroup/TextFieldGroup.types';
|
138
139
|
import { Overlay } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -2893,6 +2894,7 @@ export { NotificationProps }
|
|
2893
2894
|
export const NotificationsProvider: React_2.FC<{
|
2894
2895
|
children: ReactNode;
|
2895
2896
|
frame?: string;
|
2897
|
+
placement?: NotificationPlacement;
|
2896
2898
|
}>;
|
2897
2899
|
|
2898
2900
|
export { Overlay }
|
@@ -3435,119 +3437,37 @@ onChange?: ((event: FormTypeNumber) => void) | undefined;
|
|
3435
3437
|
name: string;
|
3436
3438
|
value?: undefined;
|
3437
3439
|
defaultValue?: number | undefined;
|
3438
|
-
} & {
|
3439
|
-
orientation?: "horizontal" | undefined;
|
3440
|
-
labelPlacement?: "none" | "top" | "left" | undefined;
|
3441
|
-
scaleAlign?: "none" | "bottom" | "side" | undefined;
|
3442
|
-
sliderAlign?: "none" | undefined;
|
3443
|
-
reversed?: undefined;
|
3444
|
-
labelReversed?: undefined;
|
3445
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3446
|
-
onChangeCommitted?: ((value: number) => void) | undefined;
|
3447
|
-
ariaLabel?: string | undefined;
|
3448
|
-
showCurrentValue?: boolean | undefined;
|
3449
|
-
showRangeValues?: boolean | undefined;
|
3450
|
-
rangeValuesPlacement?: string | undefined;
|
3451
|
-
showScale?: boolean | undefined;
|
3452
|
-
hideMinValueDiff?: number | undefined;
|
3453
|
-
hideMaxValueDiff?: number | undefined;
|
3454
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
3455
|
-
labelContentLeft?: ReactNode;
|
3456
|
-
labelContent?: ReactNode;
|
3457
|
-
multipleStepSize?: number | undefined;
|
3458
|
-
view?: string | undefined;
|
3459
|
-
size?: "s" | "m" | "l" | undefined;
|
3460
|
-
type?: "single" | undefined;
|
3461
|
-
hasPointer?: boolean | undefined;
|
3462
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
3463
|
-
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
3464
|
-
onChange?: ((event: FormTypeNumber) => void) | undefined;
|
3465
|
-
name: string;
|
3466
|
-
value?: undefined;
|
3467
|
-
defaultValue?: number | undefined;
|
3468
|
-
} & {
|
3469
|
-
orientation: "vertical";
|
3470
|
-
sliderAlign?: "none" | "center" | "right" | "left" | undefined;
|
3471
|
-
scaleAlign?: undefined;
|
3472
|
-
reversed?: boolean | undefined;
|
3473
|
-
labelReversed?: boolean | undefined;
|
3474
3440
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3475
3441
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
3476
3442
|
ariaLabel?: string | undefined;
|
3477
3443
|
showCurrentValue?: boolean | undefined;
|
3478
3444
|
showRangeValues?: boolean | undefined;
|
3479
|
-
rangeValuesPlacement?: string | undefined;
|
3480
|
-
showScale?: boolean | undefined;
|
3481
3445
|
hideMinValueDiff?: number | undefined;
|
3482
3446
|
hideMaxValueDiff?: number | undefined;
|
3447
|
+
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
3483
3448
|
labelPlacement?: "outer" | "inner" | undefined;
|
3484
|
-
labelContentLeft?: ReactNode;
|
3485
|
-
labelContent?: ReactNode;
|
3486
3449
|
multipleStepSize?: number | undefined;
|
3487
3450
|
view?: string | undefined;
|
3488
3451
|
size?: "s" | "m" | "l" | undefined;
|
3489
3452
|
type?: "single" | undefined;
|
3490
|
-
hasPointer?: boolean | undefined;
|
3491
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
3492
3453
|
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
3493
3454
|
onChange?: ((value: number) => void) | undefined;
|
3494
3455
|
value: number;
|
3495
3456
|
name?: undefined;
|
3496
3457
|
defaultValue?: undefined;
|
3497
|
-
} & {
|
3498
|
-
orientation?: "horizontal" | undefined;
|
3499
|
-
labelPlacement?: "none" | "top" | "left" | undefined;
|
3500
|
-
scaleAlign?: "none" | "bottom" | "side" | undefined;
|
3501
|
-
sliderAlign?: "none" | undefined;
|
3502
|
-
reversed?: undefined;
|
3503
|
-
labelReversed?: undefined;
|
3504
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3505
|
-
onChangeCommitted?: ((value: number) => void) | undefined;
|
3506
|
-
ariaLabel?: string | undefined;
|
3507
|
-
showCurrentValue?: boolean | undefined;
|
3508
|
-
showRangeValues?: boolean | undefined;
|
3509
|
-
rangeValuesPlacement?: string | undefined;
|
3510
|
-
showScale?: boolean | undefined;
|
3511
|
-
hideMinValueDiff?: number | undefined;
|
3512
|
-
hideMaxValueDiff?: number | undefined;
|
3513
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
3514
|
-
labelContentLeft?: ReactNode;
|
3515
|
-
labelContent?: ReactNode;
|
3516
|
-
multipleStepSize?: number | undefined;
|
3517
|
-
view?: string | undefined;
|
3518
|
-
size?: "s" | "m" | "l" | undefined;
|
3519
|
-
type?: "single" | undefined;
|
3520
|
-
hasPointer?: boolean | undefined;
|
3521
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
3522
|
-
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
3523
|
-
onChange?: ((value: number) => void) | undefined;
|
3524
|
-
value: number;
|
3525
|
-
name?: undefined;
|
3526
|
-
defaultValue?: undefined;
|
3527
|
-
} & {
|
3528
|
-
orientation: "vertical";
|
3529
|
-
sliderAlign?: "none" | "center" | "right" | "left" | undefined;
|
3530
|
-
scaleAlign?: undefined;
|
3531
|
-
reversed?: boolean | undefined;
|
3532
|
-
labelReversed?: boolean | undefined;
|
3533
3458
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3534
3459
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
3535
3460
|
ariaLabel?: string | undefined;
|
3536
3461
|
showCurrentValue?: boolean | undefined;
|
3537
3462
|
showRangeValues?: boolean | undefined;
|
3538
|
-
rangeValuesPlacement?: string | undefined;
|
3539
|
-
showScale?: boolean | undefined;
|
3540
3463
|
hideMinValueDiff?: number | undefined;
|
3541
3464
|
hideMaxValueDiff?: number | undefined;
|
3465
|
+
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
3542
3466
|
labelPlacement?: "outer" | "inner" | undefined;
|
3543
|
-
labelContentLeft?: ReactNode;
|
3544
|
-
labelContent?: ReactNode;
|
3545
3467
|
multipleStepSize?: number | undefined;
|
3546
3468
|
view?: string | undefined;
|
3547
3469
|
size?: "s" | "m" | "l" | undefined;
|
3548
3470
|
type?: "single" | undefined;
|
3549
|
-
hasPointer?: boolean | undefined;
|
3550
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
3551
3471
|
} & RefAttributes<HTMLDivElement>) | (Omit<DoubleSliderProps, "onChange" | "defaultValue" | "value"> & {
|
3552
3472
|
onChange?: ((event: FormTypeString) => void) | undefined;
|
3553
3473
|
name?: string | undefined;
|