@salutejs/sdds-finportal 0.147.0-canary.1511.11518967304.0 → 0.148.0-canary.1452.11541985977.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/sdds-finportal.api.md +89 -2
- package/components/Slider/Slider.config.js +3 -3
- package/components/Slider/Slider.d.ts +88 -2
- package/components/ViewContainer/ViewContainer.config.d.ts +8 -0
- package/components/ViewContainer/ViewContainer.config.js +18 -0
- package/components/ViewContainer/ViewContainer.d.ts +7 -0
- package/components/ViewContainer/ViewContainer.js +10 -0
- package/components/ViewContainer/index.d.ts +1 -0
- package/components/ViewContainer/index.js +12 -0
- package/es/components/Slider/Slider.config.js +3 -3
- package/es/components/ViewContainer/ViewContainer.config.js +12 -0
- package/es/components/ViewContainer/ViewContainer.js +4 -0
- package/es/components/ViewContainer/index.js +1 -0
- package/es/index.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +11 -0
- package/package.json +4 -4
- package/temp/sdds-finportal.api.md +89 -2
@@ -221,6 +221,7 @@ import { usePopupContext } from '@salutejs/plasma-new-hope/styled-components';
|
|
221
221
|
import { useSegment } from '@salutejs/plasma-new-hope/styled-components';
|
222
222
|
import { useToast } from '@salutejs/plasma-new-hope/styled-components';
|
223
223
|
import { Variants } from '@salutejs/plasma-new-hope/types/engines/types';
|
224
|
+
import { ViewContainerCustomProps } from '@salutejs/plasma-new-hope/types/components/ViewContainer/ViewContainer';
|
224
225
|
import { withSkeleton } from '@salutejs/plasma-new-hope/styled-components';
|
225
226
|
|
226
227
|
// @public (undocumented)
|
@@ -3435,37 +3436,115 @@ onChange?: ((event: FormTypeNumber) => void) | undefined;
|
|
3435
3436
|
name: string;
|
3436
3437
|
value?: undefined;
|
3437
3438
|
defaultValue?: number | undefined;
|
3439
|
+
} & {
|
3440
|
+
orientation?: "horizontal" | undefined;
|
3441
|
+
labelPlacement?: "none" | "top" | "left" | undefined;
|
3442
|
+
scaleAlign?: "none" | "bottom" | "side" | undefined;
|
3443
|
+
sliderAlign?: "none" | undefined;
|
3444
|
+
reversed?: undefined;
|
3445
|
+
labelReversed?: undefined;
|
3446
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3447
|
+
onChangeCommitted?: ((value: number) => void) | undefined;
|
3448
|
+
ariaLabel?: string | undefined;
|
3449
|
+
showCurrentValue?: boolean | undefined;
|
3450
|
+
showRangeValues?: boolean | undefined;
|
3451
|
+
rangeValuesPlacement?: string | undefined;
|
3452
|
+
showScale?: boolean | undefined;
|
3453
|
+
hideMinValueDiff?: number | undefined;
|
3454
|
+
hideMaxValueDiff?: number | undefined;
|
3455
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
3456
|
+
labelContentLeft?: ReactNode;
|
3457
|
+
labelContent?: ReactNode;
|
3458
|
+
multipleStepSize?: number | undefined;
|
3459
|
+
view?: string | undefined;
|
3460
|
+
size?: "s" | "m" | "l" | undefined;
|
3461
|
+
type?: "single" | 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
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3475
|
+
onChangeCommitted?: ((value: number) => void) | undefined;
|
3476
|
+
ariaLabel?: string | undefined;
|
3477
|
+
showCurrentValue?: boolean | undefined;
|
3478
|
+
showRangeValues?: boolean | undefined;
|
3479
|
+
rangeValuesPlacement?: string | undefined;
|
3480
|
+
showScale?: boolean | undefined;
|
3481
|
+
hideMinValueDiff?: number | undefined;
|
3482
|
+
hideMaxValueDiff?: number | undefined;
|
3483
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
3484
|
+
labelContentLeft?: ReactNode;
|
3485
|
+
labelContent?: ReactNode;
|
3486
|
+
multipleStepSize?: number | undefined;
|
3487
|
+
view?: string | undefined;
|
3488
|
+
size?: "s" | "m" | "l" | undefined;
|
3489
|
+
type?: "single" | undefined;
|
3490
|
+
pointerSize?: "none" | "small" | "large" | undefined;
|
3491
|
+
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
3492
|
+
onChange?: ((value: number) => void) | undefined;
|
3493
|
+
value: number;
|
3494
|
+
name?: undefined;
|
3495
|
+
defaultValue?: undefined;
|
3496
|
+
} & {
|
3497
|
+
orientation?: "horizontal" | undefined;
|
3498
|
+
labelPlacement?: "none" | "top" | "left" | undefined;
|
3499
|
+
scaleAlign?: "none" | "bottom" | "side" | undefined;
|
3500
|
+
sliderAlign?: "none" | undefined;
|
3501
|
+
reversed?: undefined;
|
3502
|
+
labelReversed?: undefined;
|
3438
3503
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3439
3504
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
3440
3505
|
ariaLabel?: string | undefined;
|
3441
3506
|
showCurrentValue?: boolean | undefined;
|
3442
3507
|
showRangeValues?: boolean | undefined;
|
3508
|
+
rangeValuesPlacement?: string | undefined;
|
3509
|
+
showScale?: boolean | undefined;
|
3443
3510
|
hideMinValueDiff?: number | undefined;
|
3444
3511
|
hideMaxValueDiff?: number | undefined;
|
3445
|
-
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
3446
3512
|
labelPlacement?: "outer" | "inner" | undefined;
|
3513
|
+
labelContentLeft?: ReactNode;
|
3514
|
+
labelContent?: ReactNode;
|
3447
3515
|
multipleStepSize?: number | undefined;
|
3448
3516
|
view?: string | undefined;
|
3449
3517
|
size?: "s" | "m" | "l" | undefined;
|
3450
3518
|
type?: "single" | undefined;
|
3519
|
+
pointerSize?: "none" | "small" | "large" | undefined;
|
3451
3520
|
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
3452
3521
|
onChange?: ((value: number) => void) | undefined;
|
3453
3522
|
value: number;
|
3454
3523
|
name?: undefined;
|
3455
3524
|
defaultValue?: undefined;
|
3525
|
+
} & {
|
3526
|
+
orientation: "vertical";
|
3527
|
+
sliderAlign?: "none" | "center" | "right" | "left" | undefined;
|
3528
|
+
scaleAlign?: undefined;
|
3529
|
+
reversed?: boolean | undefined;
|
3530
|
+
labelReversed?: boolean | undefined;
|
3456
3531
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3457
3532
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
3458
3533
|
ariaLabel?: string | undefined;
|
3459
3534
|
showCurrentValue?: boolean | undefined;
|
3460
3535
|
showRangeValues?: boolean | undefined;
|
3536
|
+
rangeValuesPlacement?: string | undefined;
|
3537
|
+
showScale?: boolean | undefined;
|
3461
3538
|
hideMinValueDiff?: number | undefined;
|
3462
3539
|
hideMaxValueDiff?: number | undefined;
|
3463
|
-
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
3464
3540
|
labelPlacement?: "outer" | "inner" | undefined;
|
3541
|
+
labelContentLeft?: ReactNode;
|
3542
|
+
labelContent?: ReactNode;
|
3465
3543
|
multipleStepSize?: number | undefined;
|
3466
3544
|
view?: string | undefined;
|
3467
3545
|
size?: "s" | "m" | "l" | undefined;
|
3468
3546
|
type?: "single" | undefined;
|
3547
|
+
pointerSize?: "none" | "small" | "large" | undefined;
|
3469
3548
|
} & RefAttributes<HTMLDivElement>) | (Omit<DoubleSliderProps, "onChange" | "defaultValue" | "value"> & {
|
3470
3549
|
onChange?: ((event: FormTypeString) => void) | undefined;
|
3471
3550
|
name?: string | undefined;
|
@@ -5148,6 +5227,14 @@ export { useSegment }
|
|
5148
5227
|
|
5149
5228
|
export { useToast }
|
5150
5229
|
|
5230
|
+
// @public (undocumented)
|
5231
|
+
export const ViewContainer: FunctionComponent<PropsType< {
|
5232
|
+
view: {
|
5233
|
+
onDark: PolymorphicClassName;
|
5234
|
+
onLight: PolymorphicClassName;
|
5235
|
+
};
|
5236
|
+
}> & HTMLAttributes<HTMLDivElement> & ViewContainerCustomProps & RefAttributes<HTMLAnchorElement>>;
|
5237
|
+
|
5151
5238
|
export { withSkeleton }
|
5152
5239
|
|
5153
5240
|
|
@@ -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\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.
|
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 ", ":
|
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.
|
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 ", ": 1rem;\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.875rem;\n ", ": 0.875rem;\n ", ": 0.75rem;\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 ", ": 1rem;\n ", ": 1.25rem;\n ", ": 0.0625rem solid;\n\n ", ": 1.625rem;\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.size, _styledComponents.sliderTokens.doubleWrapperGap, _styledComponents.sliderTokens.labelWrapperGap, _styledComponents.sliderTokens.labelWrapperMarginBottom, _styledComponents.sliderTokens.labelWrapperMarginRight, _styledComponents.sliderTokens.labelWrapperVerticalMargin, _styledComponents.sliderTokens.labelFontFamily, _styledComponents.sliderTokens.labelFontSize, _styledComponents.sliderTokens.labelFontStyle, _styledComponents.sliderTokens.labelFontWeight, _styledComponents.sliderTokens.labelLetterSpacing, _styledComponents.sliderTokens.labelLineHeight, _styledComponents.sliderTokens.rangeValueHorizontalMargin, _styledComponents.sliderTokens.rangeValueBottomOffset, _styledComponents.sliderTokens.rangeValueHorizontalOffset, _styledComponents.sliderTokens.rangeValueVerticalMargin, _styledComponents.sliderTokens.valueFontFamily, _styledComponents.sliderTokens.valueFontSize, _styledComponents.sliderTokens.valueFontStyle, _styledComponents.sliderTokens.valueFontWeight, _styledComponents.sliderTokens.valueLetterSpacing, _styledComponents.sliderTokens.valueLineHeight, _styledComponents.sliderTokens.thumbSize, _styledComponents.sliderTokens.thumbSizeLarge, _styledComponents.sliderTokens.thumbBorder, _styledComponents.sliderTokens.currentValueTopOffset, _styledComponents.sliderTokens.railThickness, _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 ", ": 0.75rem;\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 ", ": 0.875rem;\n ", ": 0.625rem;\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 ", ": 1rem;\n ", ": 1.25rem;\n ", ": 0.0625rem solid;\n\n ", ": 1.75rem;\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.size, _styledComponents.sliderTokens.doubleWrapperGap, _styledComponents.sliderTokens.labelWrapperGap, _styledComponents.sliderTokens.labelWrapperMarginBottom, _styledComponents.sliderTokens.labelWrapperMarginRight, _styledComponents.sliderTokens.labelWrapperVerticalMargin, _styledComponents.sliderTokens.labelFontFamily, _styledComponents.sliderTokens.labelFontSize, _styledComponents.sliderTokens.labelFontStyle, _styledComponents.sliderTokens.labelFontWeight, _styledComponents.sliderTokens.labelLetterSpacing, _styledComponents.sliderTokens.labelLineHeight, _styledComponents.sliderTokens.rangeValueHorizontalMargin, _styledComponents.sliderTokens.rangeValueBottomOffset, _styledComponents.sliderTokens.rangeValueHorizontalOffset, _styledComponents.sliderTokens.rangeValueVerticalMargin, _styledComponents.sliderTokens.valueFontFamily, _styledComponents.sliderTokens.valueFontSize, _styledComponents.sliderTokens.valueFontStyle, _styledComponents.sliderTokens.valueFontWeight, _styledComponents.sliderTokens.valueLetterSpacing, _styledComponents.sliderTokens.valueLineHeight, _styledComponents.sliderTokens.thumbSize, _styledComponents.sliderTokens.thumbSizeLarge, _styledComponents.sliderTokens.thumbBorder, _styledComponents.sliderTokens.currentValueTopOffset, _styledComponents.sliderTokens.railThickness, _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 ", ": 0.625rem;\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.625rem;\n ", ": 0.625rem;\n ", ": 0.5rem;\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 ", ": 1.25rem;\n ", ": 0.0625rem solid;\n\n ", ": 1.25rem;\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.size, _styledComponents.sliderTokens.doubleWrapperGap, _styledComponents.sliderTokens.labelWrapperGap, _styledComponents.sliderTokens.labelWrapperMarginBottom, _styledComponents.sliderTokens.labelWrapperMarginRight, _styledComponents.sliderTokens.labelWrapperVerticalMargin, _styledComponents.sliderTokens.labelFontFamily, _styledComponents.sliderTokens.labelFontSize, _styledComponents.sliderTokens.labelFontStyle, _styledComponents.sliderTokens.labelFontWeight, _styledComponents.sliderTokens.labelLetterSpacing, _styledComponents.sliderTokens.labelLineHeight, _styledComponents.sliderTokens.rangeValueHorizontalMargin, _styledComponents.sliderTokens.rangeValueBottomOffset, _styledComponents.sliderTokens.rangeValueHorizontalOffset, _styledComponents.sliderTokens.rangeValueVerticalMargin, _styledComponents.sliderTokens.valueFontFamily, _styledComponents.sliderTokens.valueFontSize, _styledComponents.sliderTokens.valueFontStyle, _styledComponents.sliderTokens.valueFontWeight, _styledComponents.sliderTokens.valueLetterSpacing, _styledComponents.sliderTokens.valueLineHeight, _styledComponents.sliderTokens.thumbSize, _styledComponents.sliderTokens.thumbSizeLarge, _styledComponents.sliderTokens.thumbBorder, _styledComponents.sliderTokens.currentValueTopOffset, _styledComponents.sliderTokens.railThickness, _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,41 +18,127 @@ 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
|
+
*/
|
21
25
|
onChange?: ((event: import("@salutejs/plasma-new-hope/types/types/FormType").FormTypeNumber) => void) | undefined;
|
22
26
|
name: string;
|
23
27
|
value?: undefined;
|
24
28
|
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;
|
25
36
|
} & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
26
37
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
27
38
|
ariaLabel?: string | undefined;
|
28
39
|
showCurrentValue?: boolean | undefined;
|
29
40
|
showRangeValues?: boolean | undefined;
|
41
|
+
rangeValuesPlacement?: string | undefined;
|
42
|
+
showScale?: boolean | undefined;
|
30
43
|
hideMinValueDiff?: number | undefined;
|
31
44
|
hideMaxValueDiff?: number | undefined;
|
32
|
-
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
33
45
|
labelPlacement?: "outer" | "inner" | undefined;
|
46
|
+
labelContentLeft?: import("react").ReactNode;
|
47
|
+
labelContent?: import("react").ReactNode;
|
34
48
|
multipleStepSize?: number | undefined;
|
35
49
|
view?: string | undefined;
|
36
50
|
size?: "s" | "m" | "l" | undefined;
|
37
51
|
type?: "single" | undefined;
|
52
|
+
pointerSize?: "none" | "small" | "large" | undefined;
|
53
|
+
} & 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 & {
|
54
|
+
/**
|
55
|
+
* Слайдер позволяет определить числовое значение в пределах указанного промежутка.
|
56
|
+
* Можно указать два значения.
|
57
|
+
*/
|
58
|
+
onChange?: ((event: import("@salutejs/plasma-new-hope/types/types/FormType").FormTypeNumber) => void) | undefined;
|
59
|
+
name: string;
|
60
|
+
value?: undefined;
|
61
|
+
defaultValue?: number | undefined;
|
62
|
+
} & {
|
63
|
+
orientation: "vertical";
|
64
|
+
sliderAlign?: "none" | "center" | "right" | "left" | undefined;
|
65
|
+
scaleAlign?: undefined;
|
66
|
+
reversed?: boolean | undefined;
|
67
|
+
labelReversed?: boolean | undefined;
|
68
|
+
} & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
69
|
+
onChangeCommitted?: ((value: number) => void) | undefined;
|
70
|
+
ariaLabel?: string | undefined;
|
71
|
+
showCurrentValue?: boolean | undefined;
|
72
|
+
showRangeValues?: boolean | undefined;
|
73
|
+
rangeValuesPlacement?: string | undefined;
|
74
|
+
showScale?: boolean | undefined;
|
75
|
+
hideMinValueDiff?: number | undefined;
|
76
|
+
hideMaxValueDiff?: number | undefined;
|
77
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
78
|
+
labelContentLeft?: import("react").ReactNode;
|
79
|
+
labelContent?: import("react").ReactNode;
|
80
|
+
multipleStepSize?: number | undefined;
|
81
|
+
view?: string | undefined;
|
82
|
+
size?: "s" | "m" | "l" | undefined;
|
83
|
+
type?: "single" | undefined;
|
84
|
+
pointerSize?: "none" | "small" | "large" | undefined;
|
85
|
+
} & 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 & {
|
86
|
+
onChange?: ((value: number) => void) | undefined;
|
87
|
+
value: number;
|
88
|
+
name?: undefined;
|
89
|
+
defaultValue?: undefined;
|
90
|
+
} & {
|
91
|
+
orientation?: "horizontal" | undefined;
|
92
|
+
labelPlacement?: "none" | "top" | "left" | undefined;
|
93
|
+
scaleAlign?: "none" | "bottom" | "side" | undefined;
|
94
|
+
sliderAlign?: "none" | undefined;
|
95
|
+
reversed?: undefined;
|
96
|
+
labelReversed?: undefined;
|
97
|
+
} & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
98
|
+
onChangeCommitted?: ((value: number) => void) | undefined;
|
99
|
+
ariaLabel?: string | undefined;
|
100
|
+
showCurrentValue?: boolean | undefined;
|
101
|
+
showRangeValues?: boolean | undefined;
|
102
|
+
rangeValuesPlacement?: string | undefined;
|
103
|
+
showScale?: boolean | undefined;
|
104
|
+
hideMinValueDiff?: number | undefined;
|
105
|
+
hideMaxValueDiff?: number | undefined;
|
106
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
107
|
+
labelContentLeft?: import("react").ReactNode;
|
108
|
+
labelContent?: import("react").ReactNode;
|
109
|
+
multipleStepSize?: number | undefined;
|
110
|
+
view?: string | undefined;
|
111
|
+
size?: "s" | "m" | "l" | undefined;
|
112
|
+
type?: "single" | undefined;
|
113
|
+
pointerSize?: "none" | "small" | "large" | undefined;
|
38
114
|
} & 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 & {
|
39
115
|
onChange?: ((value: number) => void) | undefined;
|
40
116
|
value: number;
|
41
117
|
name?: undefined;
|
42
118
|
defaultValue?: undefined;
|
119
|
+
} & {
|
120
|
+
orientation: "vertical";
|
121
|
+
sliderAlign?: "none" | "center" | "right" | "left" | undefined;
|
122
|
+
scaleAlign?: undefined;
|
123
|
+
reversed?: boolean | undefined;
|
124
|
+
labelReversed?: boolean | undefined;
|
43
125
|
} & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
44
126
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
45
127
|
ariaLabel?: string | undefined;
|
46
128
|
showCurrentValue?: boolean | undefined;
|
47
129
|
showRangeValues?: boolean | undefined;
|
130
|
+
rangeValuesPlacement?: string | undefined;
|
131
|
+
showScale?: boolean | undefined;
|
48
132
|
hideMinValueDiff?: number | undefined;
|
49
133
|
hideMaxValueDiff?: number | undefined;
|
50
|
-
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
51
134
|
labelPlacement?: "outer" | "inner" | undefined;
|
135
|
+
labelContentLeft?: import("react").ReactNode;
|
136
|
+
labelContent?: import("react").ReactNode;
|
52
137
|
multipleStepSize?: number | undefined;
|
53
138
|
view?: string | undefined;
|
54
139
|
size?: "s" | "m" | "l" | undefined;
|
55
140
|
type?: "single" | undefined;
|
141
|
+
pointerSize?: "none" | "small" | "large" | undefined;
|
56
142
|
} & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("@salutejs/plasma-new-hope/styled-components").DoubleSliderProps, "onChange" | "defaultValue" | "value"> & {
|
57
143
|
onChange?: ((event: import("@salutejs/plasma-new-hope/types/types/FormType").FormTypeString) => void) | undefined;
|
58
144
|
name?: string | undefined;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.config = void 0;
|
7
|
+
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
+
var _sdds_finportal = /*#__PURE__*/require("@salutejs/sdds-themes/tokens/sdds_finportal");
|
9
|
+
var _templateObject, _templateObject2;
|
10
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
11
|
+
var config = exports.config = {
|
12
|
+
variations: {
|
13
|
+
view: {
|
14
|
+
onDark: /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", "\n "])), _sdds_finportal.viewContainer.dark),
|
15
|
+
onLight: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", "\n "])), _sdds_finportal.viewContainer.light)
|
16
|
+
}
|
17
|
+
}
|
18
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const ViewContainer: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
3
|
+
view: {
|
4
|
+
onDark: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
5
|
+
onLight: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
6
|
+
};
|
7
|
+
}> & import("react").HTMLAttributes<HTMLDivElement> & import("@salutejs/plasma-new-hope/types/components/ViewContainer/ViewContainer").ViewContainerCustomProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.ViewContainer = void 0;
|
7
|
+
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
+
var _ViewContainer = /*#__PURE__*/require("./ViewContainer.config");
|
9
|
+
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.viewContainerConfig, _ViewContainer.config);
|
10
|
+
var ViewContainer = exports.ViewContainer = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ViewContainer } from './ViewContainer';
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
Object.defineProperty(exports, "ViewContainer", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function get() {
|
9
|
+
return _ViewContainer.ViewContainer;
|
10
|
+
}
|
11
|
+
});
|
12
|
+
var _ViewContainer = /*#__PURE__*/require("./ViewContainer");
|
@@ -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\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.
|
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 ", ":
|
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.
|
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 ", ": 1rem;\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.875rem;\n ", ": 0.875rem;\n ", ": 0.75rem;\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 ", ": 1rem;\n ", ": 1.25rem;\n ", ": 0.0625rem solid;\n\n ", ": 1.625rem;\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.size, sliderTokens.doubleWrapperGap, sliderTokens.labelWrapperGap, sliderTokens.labelWrapperMarginBottom, sliderTokens.labelWrapperMarginRight, sliderTokens.labelWrapperVerticalMargin, sliderTokens.labelFontFamily, sliderTokens.labelFontSize, sliderTokens.labelFontStyle, sliderTokens.labelFontWeight, sliderTokens.labelLetterSpacing, sliderTokens.labelLineHeight, sliderTokens.rangeValueHorizontalMargin, sliderTokens.rangeValueBottomOffset, sliderTokens.rangeValueHorizontalOffset, sliderTokens.rangeValueVerticalMargin, sliderTokens.valueFontFamily, sliderTokens.valueFontSize, sliderTokens.valueFontStyle, sliderTokens.valueFontWeight, sliderTokens.valueLetterSpacing, sliderTokens.valueLineHeight, sliderTokens.thumbSize, sliderTokens.thumbSizeLarge, sliderTokens.thumbBorder, sliderTokens.currentValueTopOffset, sliderTokens.railThickness, 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 ", ": 0.75rem;\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 ", ": 0.875rem;\n ", ": 0.625rem;\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 ", ": 1rem;\n ", ": 1.25rem;\n ", ": 0.0625rem solid;\n\n ", ": 1.75rem;\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.size, sliderTokens.doubleWrapperGap, sliderTokens.labelWrapperGap, sliderTokens.labelWrapperMarginBottom, sliderTokens.labelWrapperMarginRight, sliderTokens.labelWrapperVerticalMargin, sliderTokens.labelFontFamily, sliderTokens.labelFontSize, sliderTokens.labelFontStyle, sliderTokens.labelFontWeight, sliderTokens.labelLetterSpacing, sliderTokens.labelLineHeight, sliderTokens.rangeValueHorizontalMargin, sliderTokens.rangeValueBottomOffset, sliderTokens.rangeValueHorizontalOffset, sliderTokens.rangeValueVerticalMargin, sliderTokens.valueFontFamily, sliderTokens.valueFontSize, sliderTokens.valueFontStyle, sliderTokens.valueFontWeight, sliderTokens.valueLetterSpacing, sliderTokens.valueLineHeight, sliderTokens.thumbSize, sliderTokens.thumbSizeLarge, sliderTokens.thumbBorder, sliderTokens.currentValueTopOffset, sliderTokens.railThickness, 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 ", ": 0.625rem;\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.625rem;\n ", ": 0.625rem;\n ", ": 0.5rem;\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 ", ": 1.25rem;\n ", ": 0.0625rem solid;\n\n ", ": 1.25rem;\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.size, sliderTokens.doubleWrapperGap, sliderTokens.labelWrapperGap, sliderTokens.labelWrapperMarginBottom, sliderTokens.labelWrapperMarginRight, sliderTokens.labelWrapperVerticalMargin, sliderTokens.labelFontFamily, sliderTokens.labelFontSize, sliderTokens.labelFontStyle, sliderTokens.labelFontWeight, sliderTokens.labelLetterSpacing, sliderTokens.labelLineHeight, sliderTokens.rangeValueHorizontalMargin, sliderTokens.rangeValueBottomOffset, sliderTokens.rangeValueHorizontalOffset, sliderTokens.rangeValueVerticalMargin, sliderTokens.valueFontFamily, sliderTokens.valueFontSize, sliderTokens.valueFontStyle, sliderTokens.valueFontWeight, sliderTokens.valueLetterSpacing, sliderTokens.valueLineHeight, sliderTokens.thumbSize, sliderTokens.thumbSizeLarge, sliderTokens.thumbBorder, sliderTokens.currentValueTopOffset, sliderTokens.railThickness, 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)
|
@@ -0,0 +1,12 @@
|
|
1
|
+
var _templateObject, _templateObject2;
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
3
|
+
import { css } from '@salutejs/plasma-new-hope/styled-components';
|
4
|
+
import { viewContainer } from '@salutejs/sdds-themes/tokens/sdds_finportal';
|
5
|
+
export var config = {
|
6
|
+
variations: {
|
7
|
+
view: {
|
8
|
+
onDark: /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", "\n "])), viewContainer.dark),
|
9
|
+
onLight: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", "\n "])), viewContainer.light)
|
10
|
+
}
|
11
|
+
}
|
12
|
+
};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { viewContainerConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
|
2
|
+
import { config } from './ViewContainer.config';
|
3
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(viewContainerConfig, config);
|
4
|
+
export var ViewContainer = /*#__PURE__*/component(mergedConfig);
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ViewContainer } from './ViewContainer';
|
package/es/index.js
CHANGED
@@ -54,5 +54,6 @@ export * from './components/Select';
|
|
54
54
|
export * from './components/Autocomplete';
|
55
55
|
export * from './components/EmptyState';
|
56
56
|
export * from './components/Attach';
|
57
|
+
export * from './components/ViewContainer';
|
57
58
|
export * from './mixins';
|
58
59
|
export * from './tokens';
|
package/index.d.ts
CHANGED
@@ -54,5 +54,6 @@ export * from './components/Select';
|
|
54
54
|
export * from './components/Autocomplete';
|
55
55
|
export * from './components/EmptyState';
|
56
56
|
export * from './components/Attach';
|
57
|
+
export * from './components/ViewContainer';
|
57
58
|
export * from './mixins';
|
58
59
|
export * from './tokens';
|
package/index.js
CHANGED
@@ -619,6 +619,17 @@ Object.keys(_Attach).forEach(function (key) {
|
|
619
619
|
}
|
620
620
|
});
|
621
621
|
});
|
622
|
+
var _ViewContainer = /*#__PURE__*/require("./components/ViewContainer");
|
623
|
+
Object.keys(_ViewContainer).forEach(function (key) {
|
624
|
+
if (key === "default" || key === "__esModule") return;
|
625
|
+
if (key in exports && exports[key] === _ViewContainer[key]) return;
|
626
|
+
Object.defineProperty(exports, key, {
|
627
|
+
enumerable: true,
|
628
|
+
get: function get() {
|
629
|
+
return _ViewContainer[key];
|
630
|
+
}
|
631
|
+
});
|
632
|
+
});
|
622
633
|
var _mixins = /*#__PURE__*/require("./mixins");
|
623
634
|
Object.keys(_mixins).forEach(function (key) {
|
624
635
|
if (key === "default" || key === "__esModule") return;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-finportal",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.148.0-canary.1452.11541985977.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,8 +19,8 @@
|
|
19
19
|
"directory": "packages/sdds-finportal"
|
20
20
|
},
|
21
21
|
"dependencies": {
|
22
|
-
"@salutejs/plasma-new-hope": "0.
|
23
|
-
"@salutejs/sdds-themes": "0.
|
22
|
+
"@salutejs/plasma-new-hope": "0.175.0-canary.1452.11541985977.0",
|
23
|
+
"@salutejs/sdds-themes": "0.25.0-dev.0"
|
24
24
|
},
|
25
25
|
"peerDependencies": {
|
26
26
|
"react": ">=16.13.1",
|
@@ -94,5 +94,5 @@
|
|
94
94
|
"Vasiliy Loginevskiy"
|
95
95
|
],
|
96
96
|
"sideEffects": false,
|
97
|
-
"gitHead": "
|
97
|
+
"gitHead": "6b125e5fd76336a6ec0f330a3c1e3a2fb2429f6f"
|
98
98
|
}
|
@@ -221,6 +221,7 @@ import { usePopupContext } from '@salutejs/plasma-new-hope/styled-components';
|
|
221
221
|
import { useSegment } from '@salutejs/plasma-new-hope/styled-components';
|
222
222
|
import { useToast } from '@salutejs/plasma-new-hope/styled-components';
|
223
223
|
import { Variants } from '@salutejs/plasma-new-hope/types/engines/types';
|
224
|
+
import { ViewContainerCustomProps } from '@salutejs/plasma-new-hope/types/components/ViewContainer/ViewContainer';
|
224
225
|
import { withSkeleton } from '@salutejs/plasma-new-hope/styled-components';
|
225
226
|
|
226
227
|
// @public (undocumented)
|
@@ -3435,37 +3436,115 @@ onChange?: ((event: FormTypeNumber) => void) | undefined;
|
|
3435
3436
|
name: string;
|
3436
3437
|
value?: undefined;
|
3437
3438
|
defaultValue?: number | undefined;
|
3439
|
+
} & {
|
3440
|
+
orientation?: "horizontal" | undefined;
|
3441
|
+
labelPlacement?: "none" | "top" | "left" | undefined;
|
3442
|
+
scaleAlign?: "none" | "bottom" | "side" | undefined;
|
3443
|
+
sliderAlign?: "none" | undefined;
|
3444
|
+
reversed?: undefined;
|
3445
|
+
labelReversed?: undefined;
|
3446
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3447
|
+
onChangeCommitted?: ((value: number) => void) | undefined;
|
3448
|
+
ariaLabel?: string | undefined;
|
3449
|
+
showCurrentValue?: boolean | undefined;
|
3450
|
+
showRangeValues?: boolean | undefined;
|
3451
|
+
rangeValuesPlacement?: string | undefined;
|
3452
|
+
showScale?: boolean | undefined;
|
3453
|
+
hideMinValueDiff?: number | undefined;
|
3454
|
+
hideMaxValueDiff?: number | undefined;
|
3455
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
3456
|
+
labelContentLeft?: ReactNode;
|
3457
|
+
labelContent?: ReactNode;
|
3458
|
+
multipleStepSize?: number | undefined;
|
3459
|
+
view?: string | undefined;
|
3460
|
+
size?: "s" | "m" | "l" | undefined;
|
3461
|
+
type?: "single" | 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
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3475
|
+
onChangeCommitted?: ((value: number) => void) | undefined;
|
3476
|
+
ariaLabel?: string | undefined;
|
3477
|
+
showCurrentValue?: boolean | undefined;
|
3478
|
+
showRangeValues?: boolean | undefined;
|
3479
|
+
rangeValuesPlacement?: string | undefined;
|
3480
|
+
showScale?: boolean | undefined;
|
3481
|
+
hideMinValueDiff?: number | undefined;
|
3482
|
+
hideMaxValueDiff?: number | undefined;
|
3483
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
3484
|
+
labelContentLeft?: ReactNode;
|
3485
|
+
labelContent?: ReactNode;
|
3486
|
+
multipleStepSize?: number | undefined;
|
3487
|
+
view?: string | undefined;
|
3488
|
+
size?: "s" | "m" | "l" | undefined;
|
3489
|
+
type?: "single" | undefined;
|
3490
|
+
pointerSize?: "none" | "small" | "large" | undefined;
|
3491
|
+
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
3492
|
+
onChange?: ((value: number) => void) | undefined;
|
3493
|
+
value: number;
|
3494
|
+
name?: undefined;
|
3495
|
+
defaultValue?: undefined;
|
3496
|
+
} & {
|
3497
|
+
orientation?: "horizontal" | undefined;
|
3498
|
+
labelPlacement?: "none" | "top" | "left" | undefined;
|
3499
|
+
scaleAlign?: "none" | "bottom" | "side" | undefined;
|
3500
|
+
sliderAlign?: "none" | undefined;
|
3501
|
+
reversed?: undefined;
|
3502
|
+
labelReversed?: undefined;
|
3438
3503
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3439
3504
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
3440
3505
|
ariaLabel?: string | undefined;
|
3441
3506
|
showCurrentValue?: boolean | undefined;
|
3442
3507
|
showRangeValues?: boolean | undefined;
|
3508
|
+
rangeValuesPlacement?: string | undefined;
|
3509
|
+
showScale?: boolean | undefined;
|
3443
3510
|
hideMinValueDiff?: number | undefined;
|
3444
3511
|
hideMaxValueDiff?: number | undefined;
|
3445
|
-
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
3446
3512
|
labelPlacement?: "outer" | "inner" | undefined;
|
3513
|
+
labelContentLeft?: ReactNode;
|
3514
|
+
labelContent?: ReactNode;
|
3447
3515
|
multipleStepSize?: number | undefined;
|
3448
3516
|
view?: string | undefined;
|
3449
3517
|
size?: "s" | "m" | "l" | undefined;
|
3450
3518
|
type?: "single" | undefined;
|
3519
|
+
pointerSize?: "none" | "small" | "large" | undefined;
|
3451
3520
|
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
3452
3521
|
onChange?: ((value: number) => void) | undefined;
|
3453
3522
|
value: number;
|
3454
3523
|
name?: undefined;
|
3455
3524
|
defaultValue?: undefined;
|
3525
|
+
} & {
|
3526
|
+
orientation: "vertical";
|
3527
|
+
sliderAlign?: "none" | "center" | "right" | "left" | undefined;
|
3528
|
+
scaleAlign?: undefined;
|
3529
|
+
reversed?: boolean | undefined;
|
3530
|
+
labelReversed?: boolean | undefined;
|
3456
3531
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
3457
3532
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
3458
3533
|
ariaLabel?: string | undefined;
|
3459
3534
|
showCurrentValue?: boolean | undefined;
|
3460
3535
|
showRangeValues?: boolean | undefined;
|
3536
|
+
rangeValuesPlacement?: string | undefined;
|
3537
|
+
showScale?: boolean | undefined;
|
3461
3538
|
hideMinValueDiff?: number | undefined;
|
3462
3539
|
hideMaxValueDiff?: number | undefined;
|
3463
|
-
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
3464
3540
|
labelPlacement?: "outer" | "inner" | undefined;
|
3541
|
+
labelContentLeft?: ReactNode;
|
3542
|
+
labelContent?: ReactNode;
|
3465
3543
|
multipleStepSize?: number | undefined;
|
3466
3544
|
view?: string | undefined;
|
3467
3545
|
size?: "s" | "m" | "l" | undefined;
|
3468
3546
|
type?: "single" | undefined;
|
3547
|
+
pointerSize?: "none" | "small" | "large" | undefined;
|
3469
3548
|
} & RefAttributes<HTMLDivElement>) | (Omit<DoubleSliderProps, "onChange" | "defaultValue" | "value"> & {
|
3470
3549
|
onChange?: ((event: FormTypeString) => void) | undefined;
|
3471
3550
|
name?: string | undefined;
|
@@ -5148,6 +5227,14 @@ export { useSegment }
|
|
5148
5227
|
|
5149
5228
|
export { useToast }
|
5150
5229
|
|
5230
|
+
// @public (undocumented)
|
5231
|
+
export const ViewContainer: FunctionComponent<PropsType< {
|
5232
|
+
view: {
|
5233
|
+
onDark: PolymorphicClassName;
|
5234
|
+
onLight: PolymorphicClassName;
|
5235
|
+
};
|
5236
|
+
}> & HTMLAttributes<HTMLDivElement> & ViewContainerCustomProps & RefAttributes<HTMLAnchorElement>>;
|
5237
|
+
|
5151
5238
|
export { withSkeleton }
|
5152
5239
|
|
5153
5240
|
|