@salutejs/sdds-finportal 0.146.0-canary.1452.11459530697.0 → 0.146.0-canary.1488.11458822191.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/sdds-finportal.api.md +11 -84
- package/components/Slider/Slider.config.js +3 -3
- package/components/Slider/Slider.d.ts +2 -92
- 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 +11 -84
@@ -220,6 +220,7 @@ import { usePopupContext } from '@salutejs/plasma-new-hope/styled-components';
|
|
220
220
|
import { useSegment } from '@salutejs/plasma-new-hope/styled-components';
|
221
221
|
import { useToast } from '@salutejs/plasma-new-hope/styled-components';
|
222
222
|
import { Variants } from '@salutejs/plasma-new-hope/types/engines/types';
|
223
|
+
import { ViewContainerCustomProps } from '@salutejs/plasma-new-hope/types/components/ViewContainer/ViewContainer';
|
223
224
|
import { withSkeleton } from '@salutejs/plasma-new-hope/styled-components';
|
224
225
|
|
225
226
|
// @public (undocumented)
|
@@ -2706,119 +2707,37 @@ onChange?: ((event: FormTypeNumber) => void) | undefined;
|
|
2706
2707
|
name: string;
|
2707
2708
|
value?: undefined;
|
2708
2709
|
defaultValue?: number | undefined;
|
2709
|
-
} & {
|
2710
|
-
orientation?: "horizontal" | undefined;
|
2711
|
-
labelPlacement?: "none" | "top" | "left" | undefined;
|
2712
|
-
scaleAlign?: "none" | "bottom" | "side" | undefined;
|
2713
|
-
sliderAlign?: "none" | undefined;
|
2714
|
-
reversed?: undefined;
|
2715
|
-
labelReversed?: undefined;
|
2716
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
2717
|
-
onChangeCommitted?: ((value: number) => void) | undefined;
|
2718
|
-
ariaLabel?: string | undefined;
|
2719
|
-
showCurrentValue?: boolean | undefined;
|
2720
|
-
showRangeValues?: boolean | undefined;
|
2721
|
-
rangeValuesPlacement?: string | undefined;
|
2722
|
-
showScale?: boolean | undefined;
|
2723
|
-
hideMinValueDiff?: number | undefined;
|
2724
|
-
hideMaxValueDiff?: number | undefined;
|
2725
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
2726
|
-
labelContentLeft?: ReactNode;
|
2727
|
-
labelContent?: ReactNode;
|
2728
|
-
multipleStepSize?: number | undefined;
|
2729
|
-
view?: string | undefined;
|
2730
|
-
size?: "s" | "m" | "l" | undefined;
|
2731
|
-
type?: "single" | undefined;
|
2732
|
-
hasPointer?: boolean | undefined;
|
2733
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
2734
|
-
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
2735
|
-
onChange?: ((event: FormTypeNumber) => void) | undefined;
|
2736
|
-
name: string;
|
2737
|
-
value?: undefined;
|
2738
|
-
defaultValue?: number | undefined;
|
2739
|
-
} & {
|
2740
|
-
orientation: "vertical";
|
2741
|
-
sliderAlign?: "none" | "center" | "right" | "left" | undefined;
|
2742
|
-
scaleAlign?: undefined;
|
2743
|
-
reversed?: boolean | undefined;
|
2744
|
-
labelReversed?: boolean | undefined;
|
2745
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
2746
|
-
onChangeCommitted?: ((value: number) => void) | undefined;
|
2747
|
-
ariaLabel?: string | undefined;
|
2748
|
-
showCurrentValue?: boolean | undefined;
|
2749
|
-
showRangeValues?: boolean | undefined;
|
2750
|
-
rangeValuesPlacement?: string | undefined;
|
2751
|
-
showScale?: boolean | undefined;
|
2752
|
-
hideMinValueDiff?: number | undefined;
|
2753
|
-
hideMaxValueDiff?: number | undefined;
|
2754
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
2755
|
-
labelContentLeft?: ReactNode;
|
2756
|
-
labelContent?: ReactNode;
|
2757
|
-
multipleStepSize?: number | undefined;
|
2758
|
-
view?: string | undefined;
|
2759
|
-
size?: "s" | "m" | "l" | undefined;
|
2760
|
-
type?: "single" | undefined;
|
2761
|
-
hasPointer?: boolean | undefined;
|
2762
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
2763
|
-
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
2764
|
-
onChange?: ((value: number) => void) | undefined;
|
2765
|
-
value: number;
|
2766
|
-
name?: undefined;
|
2767
|
-
defaultValue?: undefined;
|
2768
|
-
} & {
|
2769
|
-
orientation?: "horizontal" | undefined;
|
2770
|
-
labelPlacement?: "none" | "top" | "left" | undefined;
|
2771
|
-
scaleAlign?: "none" | "bottom" | "side" | undefined;
|
2772
|
-
sliderAlign?: "none" | undefined;
|
2773
|
-
reversed?: undefined;
|
2774
|
-
labelReversed?: undefined;
|
2775
2710
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
2776
2711
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
2777
2712
|
ariaLabel?: string | undefined;
|
2778
2713
|
showCurrentValue?: boolean | undefined;
|
2779
2714
|
showRangeValues?: boolean | undefined;
|
2780
|
-
rangeValuesPlacement?: string | undefined;
|
2781
|
-
showScale?: boolean | undefined;
|
2782
2715
|
hideMinValueDiff?: number | undefined;
|
2783
2716
|
hideMaxValueDiff?: number | undefined;
|
2717
|
+
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
2784
2718
|
labelPlacement?: "outer" | "inner" | undefined;
|
2785
|
-
labelContentLeft?: ReactNode;
|
2786
|
-
labelContent?: ReactNode;
|
2787
2719
|
multipleStepSize?: number | undefined;
|
2788
2720
|
view?: string | undefined;
|
2789
2721
|
size?: "s" | "m" | "l" | undefined;
|
2790
2722
|
type?: "single" | undefined;
|
2791
|
-
hasPointer?: boolean | undefined;
|
2792
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
2793
2723
|
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
2794
2724
|
onChange?: ((value: number) => void) | undefined;
|
2795
2725
|
value: number;
|
2796
2726
|
name?: undefined;
|
2797
2727
|
defaultValue?: undefined;
|
2798
|
-
} & {
|
2799
|
-
orientation: "vertical";
|
2800
|
-
sliderAlign?: "none" | "center" | "right" | "left" | undefined;
|
2801
|
-
scaleAlign?: undefined;
|
2802
|
-
reversed?: boolean | undefined;
|
2803
|
-
labelReversed?: boolean | undefined;
|
2804
2728
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
2805
2729
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
2806
2730
|
ariaLabel?: string | undefined;
|
2807
2731
|
showCurrentValue?: boolean | undefined;
|
2808
2732
|
showRangeValues?: boolean | undefined;
|
2809
|
-
rangeValuesPlacement?: string | undefined;
|
2810
|
-
showScale?: boolean | undefined;
|
2811
2733
|
hideMinValueDiff?: number | undefined;
|
2812
2734
|
hideMaxValueDiff?: number | undefined;
|
2735
|
+
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
2813
2736
|
labelPlacement?: "outer" | "inner" | undefined;
|
2814
|
-
labelContentLeft?: ReactNode;
|
2815
|
-
labelContent?: ReactNode;
|
2816
2737
|
multipleStepSize?: number | undefined;
|
2817
2738
|
view?: string | undefined;
|
2818
2739
|
size?: "s" | "m" | "l" | undefined;
|
2819
2740
|
type?: "single" | undefined;
|
2820
|
-
hasPointer?: boolean | undefined;
|
2821
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
2822
2741
|
} & RefAttributes<HTMLDivElement>) | (Omit<DoubleSliderProps, "onChange" | "defaultValue" | "value"> & {
|
2823
2742
|
onChange?: ((event: FormTypeString) => void) | undefined;
|
2824
2743
|
name?: string | undefined;
|
@@ -3631,6 +3550,14 @@ export { useSegment }
|
|
3631
3550
|
|
3632
3551
|
export { useToast }
|
3633
3552
|
|
3553
|
+
// @public (undocumented)
|
3554
|
+
export const ViewContainer: FunctionComponent<PropsType< {
|
3555
|
+
view: {
|
3556
|
+
onDark: PolymorphicClassName;
|
3557
|
+
onLight: PolymorphicClassName;
|
3558
|
+
};
|
3559
|
+
}> & HTMLAttributes<HTMLDivElement> & ViewContainerCustomProps & RefAttributes<HTMLAnchorElement>>;
|
3560
|
+
|
3634
3561
|
export { withSkeleton }
|
3635
3562
|
|
3636
3563
|
|
@@ -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;
|
@@ -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
|
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)
|
@@ -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.146.0-canary.
|
3
|
+
"version": "0.146.0-canary.1488.11458822191.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.173.0-canary.
|
23
|
-
"@salutejs/sdds-themes": "0.
|
22
|
+
"@salutejs/plasma-new-hope": "0.173.0-canary.1488.11458822191.0",
|
23
|
+
"@salutejs/sdds-themes": "0.25.0-canary.1488.11458822191.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": "6acfa715c176312ba9570bc115b9dffff9ae2f21"
|
98
98
|
}
|
@@ -220,6 +220,7 @@ import { usePopupContext } from '@salutejs/plasma-new-hope/styled-components';
|
|
220
220
|
import { useSegment } from '@salutejs/plasma-new-hope/styled-components';
|
221
221
|
import { useToast } from '@salutejs/plasma-new-hope/styled-components';
|
222
222
|
import { Variants } from '@salutejs/plasma-new-hope/types/engines/types';
|
223
|
+
import { ViewContainerCustomProps } from '@salutejs/plasma-new-hope/types/components/ViewContainer/ViewContainer';
|
223
224
|
import { withSkeleton } from '@salutejs/plasma-new-hope/styled-components';
|
224
225
|
|
225
226
|
// @public (undocumented)
|
@@ -2706,119 +2707,37 @@ onChange?: ((event: FormTypeNumber) => void) | undefined;
|
|
2706
2707
|
name: string;
|
2707
2708
|
value?: undefined;
|
2708
2709
|
defaultValue?: number | undefined;
|
2709
|
-
} & {
|
2710
|
-
orientation?: "horizontal" | undefined;
|
2711
|
-
labelPlacement?: "none" | "top" | "left" | undefined;
|
2712
|
-
scaleAlign?: "none" | "bottom" | "side" | undefined;
|
2713
|
-
sliderAlign?: "none" | undefined;
|
2714
|
-
reversed?: undefined;
|
2715
|
-
labelReversed?: undefined;
|
2716
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
2717
|
-
onChangeCommitted?: ((value: number) => void) | undefined;
|
2718
|
-
ariaLabel?: string | undefined;
|
2719
|
-
showCurrentValue?: boolean | undefined;
|
2720
|
-
showRangeValues?: boolean | undefined;
|
2721
|
-
rangeValuesPlacement?: string | undefined;
|
2722
|
-
showScale?: boolean | undefined;
|
2723
|
-
hideMinValueDiff?: number | undefined;
|
2724
|
-
hideMaxValueDiff?: number | undefined;
|
2725
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
2726
|
-
labelContentLeft?: ReactNode;
|
2727
|
-
labelContent?: ReactNode;
|
2728
|
-
multipleStepSize?: number | undefined;
|
2729
|
-
view?: string | undefined;
|
2730
|
-
size?: "s" | "m" | "l" | undefined;
|
2731
|
-
type?: "single" | undefined;
|
2732
|
-
hasPointer?: boolean | undefined;
|
2733
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
2734
|
-
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
2735
|
-
onChange?: ((event: FormTypeNumber) => void) | undefined;
|
2736
|
-
name: string;
|
2737
|
-
value?: undefined;
|
2738
|
-
defaultValue?: number | undefined;
|
2739
|
-
} & {
|
2740
|
-
orientation: "vertical";
|
2741
|
-
sliderAlign?: "none" | "center" | "right" | "left" | undefined;
|
2742
|
-
scaleAlign?: undefined;
|
2743
|
-
reversed?: boolean | undefined;
|
2744
|
-
labelReversed?: boolean | undefined;
|
2745
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
2746
|
-
onChangeCommitted?: ((value: number) => void) | undefined;
|
2747
|
-
ariaLabel?: string | undefined;
|
2748
|
-
showCurrentValue?: boolean | undefined;
|
2749
|
-
showRangeValues?: boolean | undefined;
|
2750
|
-
rangeValuesPlacement?: string | undefined;
|
2751
|
-
showScale?: boolean | undefined;
|
2752
|
-
hideMinValueDiff?: number | undefined;
|
2753
|
-
hideMaxValueDiff?: number | undefined;
|
2754
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
2755
|
-
labelContentLeft?: ReactNode;
|
2756
|
-
labelContent?: ReactNode;
|
2757
|
-
multipleStepSize?: number | undefined;
|
2758
|
-
view?: string | undefined;
|
2759
|
-
size?: "s" | "m" | "l" | undefined;
|
2760
|
-
type?: "single" | undefined;
|
2761
|
-
hasPointer?: boolean | undefined;
|
2762
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
2763
|
-
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
2764
|
-
onChange?: ((value: number) => void) | undefined;
|
2765
|
-
value: number;
|
2766
|
-
name?: undefined;
|
2767
|
-
defaultValue?: undefined;
|
2768
|
-
} & {
|
2769
|
-
orientation?: "horizontal" | undefined;
|
2770
|
-
labelPlacement?: "none" | "top" | "left" | undefined;
|
2771
|
-
scaleAlign?: "none" | "bottom" | "side" | undefined;
|
2772
|
-
sliderAlign?: "none" | undefined;
|
2773
|
-
reversed?: undefined;
|
2774
|
-
labelReversed?: undefined;
|
2775
2710
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
2776
2711
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
2777
2712
|
ariaLabel?: string | undefined;
|
2778
2713
|
showCurrentValue?: boolean | undefined;
|
2779
2714
|
showRangeValues?: boolean | undefined;
|
2780
|
-
rangeValuesPlacement?: string | undefined;
|
2781
|
-
showScale?: boolean | undefined;
|
2782
2715
|
hideMinValueDiff?: number | undefined;
|
2783
2716
|
hideMaxValueDiff?: number | undefined;
|
2717
|
+
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
2784
2718
|
labelPlacement?: "outer" | "inner" | undefined;
|
2785
|
-
labelContentLeft?: ReactNode;
|
2786
|
-
labelContent?: ReactNode;
|
2787
2719
|
multipleStepSize?: number | undefined;
|
2788
2720
|
view?: string | undefined;
|
2789
2721
|
size?: "s" | "m" | "l" | undefined;
|
2790
2722
|
type?: "single" | undefined;
|
2791
|
-
hasPointer?: boolean | undefined;
|
2792
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
2793
2723
|
} & RefAttributes<HTMLDivElement>) | (SliderBaseProps & SliderInternalProps & {
|
2794
2724
|
onChange?: ((value: number) => void) | undefined;
|
2795
2725
|
value: number;
|
2796
2726
|
name?: undefined;
|
2797
2727
|
defaultValue?: undefined;
|
2798
|
-
} & {
|
2799
|
-
orientation: "vertical";
|
2800
|
-
sliderAlign?: "none" | "center" | "right" | "left" | undefined;
|
2801
|
-
scaleAlign?: undefined;
|
2802
|
-
reversed?: boolean | undefined;
|
2803
|
-
labelReversed?: boolean | undefined;
|
2804
2728
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
|
2805
2729
|
onChangeCommitted?: ((value: number) => void) | undefined;
|
2806
2730
|
ariaLabel?: string | undefined;
|
2807
2731
|
showCurrentValue?: boolean | undefined;
|
2808
2732
|
showRangeValues?: boolean | undefined;
|
2809
|
-
rangeValuesPlacement?: string | undefined;
|
2810
|
-
showScale?: boolean | undefined;
|
2811
2733
|
hideMinValueDiff?: number | undefined;
|
2812
2734
|
hideMaxValueDiff?: number | undefined;
|
2735
|
+
rangeValuesPlacement?: "outer" | "inner" | undefined;
|
2813
2736
|
labelPlacement?: "outer" | "inner" | undefined;
|
2814
|
-
labelContentLeft?: ReactNode;
|
2815
|
-
labelContent?: ReactNode;
|
2816
2737
|
multipleStepSize?: number | undefined;
|
2817
2738
|
view?: string | undefined;
|
2818
2739
|
size?: "s" | "m" | "l" | undefined;
|
2819
2740
|
type?: "single" | undefined;
|
2820
|
-
hasPointer?: boolean | undefined;
|
2821
|
-
pointerSize?: "none" | "small" | "large" | undefined;
|
2822
2741
|
} & RefAttributes<HTMLDivElement>) | (Omit<DoubleSliderProps, "onChange" | "defaultValue" | "value"> & {
|
2823
2742
|
onChange?: ((event: FormTypeString) => void) | undefined;
|
2824
2743
|
name?: string | undefined;
|
@@ -3631,6 +3550,14 @@ export { useSegment }
|
|
3631
3550
|
|
3632
3551
|
export { useToast }
|
3633
3552
|
|
3553
|
+
// @public (undocumented)
|
3554
|
+
export const ViewContainer: FunctionComponent<PropsType< {
|
3555
|
+
view: {
|
3556
|
+
onDark: PolymorphicClassName;
|
3557
|
+
onLight: PolymorphicClassName;
|
3558
|
+
};
|
3559
|
+
}> & HTMLAttributes<HTMLDivElement> & ViewContainerCustomProps & RefAttributes<HTMLAnchorElement>>;
|
3560
|
+
|
3634
3561
|
export { withSkeleton }
|
3635
3562
|
|
3636
3563
|
|