@salutejs/sdds-dfa 0.167.0-canary.1511.11742976604.0 → 0.167.0-canary.1539.11742294440.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -128,8 +128,6 @@ import { modalClasses } from '@salutejs/plasma-new-hope/styled-components';
128
128
  import { ModalProps } from '@salutejs/plasma-new-hope/styled-components';
129
129
  import { MouseEvent as MouseEvent_2 } from 'react';
130
130
  import { MutableRefObject } from 'react';
131
- import { numberInputClasses } from '@salutejs/plasma-new-hope/styled-components';
132
- import { numberInputTokens } from '@salutejs/plasma-new-hope/styled-components';
133
131
  import { Orientation } from '@salutejs/plasma-new-hope/types/components/TextFieldGroup/TextFieldGroup.types';
134
132
  import { Overlay } from '@salutejs/plasma-new-hope/styled-components';
135
133
  import { OverlayProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -185,7 +183,6 @@ import { StepItemProps } from '@salutejs/plasma-new-hope/styled-components';
185
183
  import { StepsProps } from '@salutejs/plasma-new-hope/types/components/Steps/Steps.types';
186
184
  import { StyledComponent } from 'styled-components';
187
185
  import { SwitchProps as SwitchProps_2 } from '@salutejs/plasma-new-hope/styled-components';
188
- import { SyntheticEvent } from 'react';
189
186
  import { TabItemRefs } from '@salutejs/plasma-new-hope/styled-components';
190
187
  import { TabsContext } from '@salutejs/plasma-new-hope/styled-components';
191
188
  import { TabsControllerProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -3081,92 +3078,6 @@ export { modalClasses }
3081
3078
 
3082
3079
  export { ModalProps }
3083
3080
 
3084
- // @public (undocumented)
3085
- export const NumberInput: FunctionComponent<PropsType< {
3086
- view: {
3087
- default: PolymorphicClassName;
3088
- secondary: PolymorphicClassName;
3089
- accent: PolymorphicClassName;
3090
- clear: PolymorphicClassName;
3091
- };
3092
- size: {
3093
- l: PolymorphicClassName;
3094
- m: PolymorphicClassName;
3095
- s: PolymorphicClassName;
3096
- xs: PolymorphicClassName;
3097
- };
3098
- shape: {
3099
- cornered: PolymorphicClassName;
3100
- pilled: PolymorphicClassName;
3101
- };
3102
- inputBackgroundType: {
3103
- fill: PolymorphicClassName;
3104
- clear: PolymorphicClassName;
3105
- };
3106
- segmentation: {
3107
- default: PolymorphicClassName;
3108
- segmented: PolymorphicClassName;
3109
- solid: PolymorphicClassName;
3110
- };
3111
- disabled: {
3112
- true: PolymorphicClassName;
3113
- };
3114
- }> & (({
3115
- value?: number | undefined;
3116
- min?: number | undefined;
3117
- max?: number | undefined;
3118
- step?: number | undefined;
3119
- isLoading?: boolean | undefined;
3120
- loader?: ReactNode;
3121
- size?: string | undefined;
3122
- view?: string | undefined;
3123
- clear?: boolean | undefined;
3124
- shape?: string | undefined;
3125
- disabled?: boolean | undefined;
3126
- textBefore?: string | undefined;
3127
- textAfter?: string | undefined;
3128
- customIncrementButton?: ReactNode;
3129
- incrementIcon?: ReactNode;
3130
- customDecrementButton?: ReactNode;
3131
- decrementIcon?: ReactNode;
3132
- isManualInput?: boolean | undefined;
3133
- onChange?: ((event: SyntheticEvent<HTMLInputElement, Event> | null, value: string | number) => void) | undefined;
3134
- onIncrement?: ((value: number) => void) | undefined;
3135
- onDecrement?: ((value: number) => void) | undefined;
3136
- } & {
3137
- segmentation?: "clear" | undefined;
3138
- inputBackgroundType?: undefined;
3139
- } & Omit<InputHTMLAttributes_2<HTMLInputElement>, "onChange" | "size" | "value"> & RefAttributes<HTMLInputElement>) | ({
3140
- value?: number | undefined;
3141
- min?: number | undefined;
3142
- max?: number | undefined;
3143
- step?: number | undefined;
3144
- isLoading?: boolean | undefined;
3145
- loader?: ReactNode;
3146
- size?: string | undefined;
3147
- view?: string | undefined;
3148
- clear?: boolean | undefined;
3149
- shape?: string | undefined;
3150
- disabled?: boolean | undefined;
3151
- textBefore?: string | undefined;
3152
- textAfter?: string | undefined;
3153
- customIncrementButton?: ReactNode;
3154
- incrementIcon?: ReactNode;
3155
- customDecrementButton?: ReactNode;
3156
- decrementIcon?: ReactNode;
3157
- isManualInput?: boolean | undefined;
3158
- onChange?: ((event: SyntheticEvent<HTMLInputElement, Event> | null, value: string | number) => void) | undefined;
3159
- onIncrement?: ((value: number) => void) | undefined;
3160
- onDecrement?: ((value: number) => void) | undefined;
3161
- } & {
3162
- segmentation?: string | undefined;
3163
- inputBackgroundType?: string | undefined;
3164
- } & Omit<InputHTMLAttributes_2<HTMLInputElement>, "onChange" | "size" | "value"> & RefAttributes<HTMLInputElement>))>;
3165
-
3166
- export { numberInputClasses }
3167
-
3168
- export { numberInputTokens }
3169
-
3170
3081
  export { Overlay }
3171
3082
 
3172
3083
  export { OverlayProps }
@@ -3890,7 +3801,13 @@ xs: PolymorphicClassName;
3890
3801
  // @public (undocumented)
3891
3802
  export const Switch: FunctionComponent<PropsType< {
3892
3803
  size: {
3804
+ s: PolymorphicClassName;
3893
3805
  m: PolymorphicClassName;
3806
+ l: PolymorphicClassName;
3807
+ };
3808
+ toggleSize: {
3809
+ l: PolymorphicClassName;
3810
+ s: PolymorphicClassName;
3894
3811
  };
3895
3812
  view: {
3896
3813
  default: PolymorphicClassName;
@@ -2,12 +2,19 @@ export declare const config: {
2
2
  defaults: {
3
3
  view: string;
4
4
  size: string;
5
+ toggleSize: string;
5
6
  labelPosition: string;
6
7
  focused: string;
7
8
  };
8
9
  variations: {
9
10
  size: {
11
+ s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
10
12
  m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
13
+ l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
14
+ };
15
+ toggleSize: {
16
+ l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
17
+ s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
11
18
  };
12
19
  view: {
13
20
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -5,27 +5,34 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.config = void 0;
7
7
  var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
8
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
8
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
9
9
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
10
10
  var config = exports.config = {
11
11
  defaults: {
12
12
  view: 'default',
13
13
  size: 'm',
14
+ toggleSize: 'l',
14
15
  labelPosition: 'before',
15
16
  focused: 'true'
16
17
  },
17
18
  variations: {
18
19
  size: {
19
- m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--plasma-typo-body1-font-family);\n ", ": var(--plasma-typo-body1-font-style);\n ", ": var(--plasma-typo-body1-font-weight);\n ", ": var(--plasma-typo-body1-font-weight);\n ", ": var(--plasma-typo-body1-line-height);\n ", ": var(--plasma-typo-body1-font-size);\n ", ": var(--plasma-typo-body1-letter-spacing);\n ", ": 2.75rem;\n ", ": 1.75rem;\n ", ": calc(var(", ") / 2);\n ", ": 1.5rem;\n ", ": calc(var(", ") / 2);\n ", ": 0.125rem;\n ", ": 1.25;\n ", ": 0.75rem;\n "])), _styledComponents.switchTokens.fontFamily, _styledComponents.switchTokens.fontStyle, _styledComponents.switchTokens.fontWeight, _styledComponents.switchTokens.fontWeight, _styledComponents.switchTokens.lineHeight, _styledComponents.switchTokens.fontSize, _styledComponents.switchTokens.letterSpacing, _styledComponents.switchTokens.trackWidth, _styledComponents.switchTokens.trackHeight, _styledComponents.switchTokens.trackBorderRadius, _styledComponents.switchTokens.trackHeight, _styledComponents.switchTokens.thumbSize, _styledComponents.switchTokens.thumbBorderRadius, _styledComponents.switchTokens.thumbSize, _styledComponents.switchTokens.thumbOffset, _styledComponents.switchTokens.thumbPressScale, _styledComponents.switchTokens.labelOffset)
20
+ s: /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-line-height);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-line-height);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": 0.25rem;\n ", ": 0.75rem;\n "])), _styledComponents.switchTokens.fontFamily, _styledComponents.switchTokens.fontStyle, _styledComponents.switchTokens.fontWeight, _styledComponents.switchTokens.lineHeight, _styledComponents.switchTokens.fontSize, _styledComponents.switchTokens.letterSpacing, _styledComponents.switchTokens.descriptionFontFamily, _styledComponents.switchTokens.descriptionFontStyle, _styledComponents.switchTokens.descriptionFontWeight, _styledComponents.switchTokens.descriptionLineHeight, _styledComponents.switchTokens.descriptionFontSize, _styledComponents.switchTokens.descriptionLetterSpacing, _styledComponents.switchTokens.verticalGap, _styledComponents.switchTokens.labelOffset),
21
+ m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-font-weight);\n ", ": var(--plasma-typo-body-m-line-height);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-line-height);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": 0.25rem;\n ", ": 0.75rem;\n "])), _styledComponents.switchTokens.fontFamily, _styledComponents.switchTokens.fontStyle, _styledComponents.switchTokens.fontWeight, _styledComponents.switchTokens.lineHeight, _styledComponents.switchTokens.fontSize, _styledComponents.switchTokens.letterSpacing, _styledComponents.switchTokens.descriptionFontFamily, _styledComponents.switchTokens.descriptionFontStyle, _styledComponents.switchTokens.descriptionFontWeight, _styledComponents.switchTokens.descriptionLineHeight, _styledComponents.switchTokens.descriptionFontSize, _styledComponents.switchTokens.descriptionLetterSpacing, _styledComponents.switchTokens.verticalGap, _styledComponents.switchTokens.labelOffset),
22
+ l: /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--plasma-typo-body-l-font-family);\n ", ": var(--plasma-typo-body-l-font-style);\n ", ": var(--plasma-typo-body-l-font-weight);\n ", ": var(--plasma-typo-body-l-line-height);\n ", ": var(--plasma-typo-body-l-font-size);\n ", ": var(--plasma-typo-body-l-letter-spacing);\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-font-weight);\n ", ": var(--plasma-typo-body-m-line-height);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": 0.25rem;\n ", ": 0.75rem;\n "])), _styledComponents.switchTokens.fontFamily, _styledComponents.switchTokens.fontStyle, _styledComponents.switchTokens.fontWeight, _styledComponents.switchTokens.lineHeight, _styledComponents.switchTokens.fontSize, _styledComponents.switchTokens.letterSpacing, _styledComponents.switchTokens.descriptionFontFamily, _styledComponents.switchTokens.descriptionFontStyle, _styledComponents.switchTokens.descriptionFontWeight, _styledComponents.switchTokens.descriptionLineHeight, _styledComponents.switchTokens.descriptionFontSize, _styledComponents.switchTokens.descriptionLetterSpacing, _styledComponents.switchTokens.verticalGap, _styledComponents.switchTokens.labelOffset)
23
+ },
24
+ toggleSize: {
25
+ l: /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 2.75rem;\n ", ": 1.75rem;\n ", ": calc(var(", ") / 2);\n ", ": 1.5rem;\n ", ": calc(var(", ") / 2);\n ", ": 0.125rem;\n ", ": 1.25;\n "])), _styledComponents.switchTokens.trackWidth, _styledComponents.switchTokens.trackHeight, _styledComponents.switchTokens.trackBorderRadius, _styledComponents.switchTokens.trackHeight, _styledComponents.switchTokens.thumbSize, _styledComponents.switchTokens.thumbBorderRadius, _styledComponents.switchTokens.thumbSize, _styledComponents.switchTokens.thumbOffset, _styledComponents.switchTokens.thumbPressScale),
26
+ s: /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 2rem;\n ", ": 1.25rem;\n ", ": calc(var(", ") / 2);\n ", ": 1rem;\n ", ": calc(var(", ") / 2);\n ", ": 0.125rem;\n ", ": 1.25;\n "])), _styledComponents.switchTokens.trackWidth, _styledComponents.switchTokens.trackHeight, _styledComponents.switchTokens.trackBorderRadius, _styledComponents.switchTokens.trackHeight, _styledComponents.switchTokens.thumbSize, _styledComponents.switchTokens.thumbBorderRadius, _styledComponents.switchTokens.thumbSize, _styledComponents.switchTokens.thumbOffset, _styledComponents.switchTokens.thumbPressScale)
20
27
  },
21
28
  view: {
22
- "default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-accent);\n ", ": var(--surface-accent-hover);\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--surface-transparent-tertiary-hover);\n ", ": var(--on-dark-surface-solid-default);\n ", ": 0 1px 1px rgba(0, 0, 0, 0.11);\n "])), _styledComponents.switchTokens.trackBackgroundColorOn, _styledComponents.switchTokens.trackBackgroundColorOnHover, _styledComponents.switchTokens.trackBackgroundColorOff, _styledComponents.switchTokens.trackBackgroundColorOffHover, _styledComponents.switchTokens.thumbBackgroundColor, _styledComponents.switchTokens.thumbBoxShadow)
29
+ "default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--text-secondary);\n ", ": var(--surface-accent);\n ", ": var(--surface-accent-hover);\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--surface-transparent-tertiary-hover);\n ", ": var(--on-dark-surface-solid-default);\n ", ": 0 1px 1px rgba(0, 0, 0, 0.11);\n "])), _styledComponents.switchTokens.labelColor, _styledComponents.switchTokens.descriptionColor, _styledComponents.switchTokens.trackBackgroundColorOn, _styledComponents.switchTokens.trackBackgroundColorOnHover, _styledComponents.switchTokens.trackBackgroundColorOff, _styledComponents.switchTokens.trackBackgroundColorOffHover, _styledComponents.switchTokens.thumbBackgroundColor, _styledComponents.switchTokens.thumbBoxShadow)
23
30
  },
24
31
  disabled: {
25
- "true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), _styledComponents.switchTokens.disabledOpacity)
32
+ "true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), _styledComponents.switchTokens.disabledOpacity)
26
33
  },
27
34
  focused: {
28
- "true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-accent);\n "])), _styledComponents.switchTokens.trackFocusColor)
35
+ "true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-accent);\n "])), _styledComponents.switchTokens.trackFocusColor)
29
36
  }
30
37
  }
31
38
  };
@@ -1,7 +1,13 @@
1
1
  import { ComponentProps } from 'react';
2
2
  declare const SwitchComponent: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
3
3
  size: {
4
+ s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
4
5
  m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
6
+ l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
7
+ };
8
+ toggleSize: {
9
+ l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
10
+ s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
5
11
  };
6
12
  view: {
7
13
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -15,7 +21,13 @@ declare const SwitchComponent: import("react").FunctionComponent<import("@salute
15
21
  }> & import("@salutejs/plasma-new-hope/styled-components").SwitchProps & import("react").RefAttributes<HTMLInputElement>>;
16
22
  export declare const Switch: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
17
23
  size: {
24
+ s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
18
25
  m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
26
+ l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
27
+ };
28
+ toggleSize: {
29
+ l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
30
+ s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
19
31
  };
20
32
  view: {
21
33
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -1,25 +1,32 @@
1
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
1
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import { css, switchTokens } from '@salutejs/plasma-new-hope/styled-components';
4
4
  export var config = {
5
5
  defaults: {
6
6
  view: 'default',
7
7
  size: 'm',
8
+ toggleSize: 'l',
8
9
  labelPosition: 'before',
9
10
  focused: 'true'
10
11
  },
11
12
  variations: {
12
13
  size: {
13
- m: /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--plasma-typo-body1-font-family);\n ", ": var(--plasma-typo-body1-font-style);\n ", ": var(--plasma-typo-body1-font-weight);\n ", ": var(--plasma-typo-body1-font-weight);\n ", ": var(--plasma-typo-body1-line-height);\n ", ": var(--plasma-typo-body1-font-size);\n ", ": var(--plasma-typo-body1-letter-spacing);\n ", ": 2.75rem;\n ", ": 1.75rem;\n ", ": calc(var(", ") / 2);\n ", ": 1.5rem;\n ", ": calc(var(", ") / 2);\n ", ": 0.125rem;\n ", ": 1.25;\n ", ": 0.75rem;\n "])), switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffset, switchTokens.thumbPressScale, switchTokens.labelOffset)
14
+ s: /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-line-height);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-line-height);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": 0.25rem;\n ", ": 0.75rem;\n "])), switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.descriptionFontFamily, switchTokens.descriptionFontStyle, switchTokens.descriptionFontWeight, switchTokens.descriptionLineHeight, switchTokens.descriptionFontSize, switchTokens.descriptionLetterSpacing, switchTokens.verticalGap, switchTokens.labelOffset),
15
+ m: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-font-weight);\n ", ": var(--plasma-typo-body-m-line-height);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-line-height);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": 0.25rem;\n ", ": 0.75rem;\n "])), switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.descriptionFontFamily, switchTokens.descriptionFontStyle, switchTokens.descriptionFontWeight, switchTokens.descriptionLineHeight, switchTokens.descriptionFontSize, switchTokens.descriptionLetterSpacing, switchTokens.verticalGap, switchTokens.labelOffset),
16
+ l: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--plasma-typo-body-l-font-family);\n ", ": var(--plasma-typo-body-l-font-style);\n ", ": var(--plasma-typo-body-l-font-weight);\n ", ": var(--plasma-typo-body-l-line-height);\n ", ": var(--plasma-typo-body-l-font-size);\n ", ": var(--plasma-typo-body-l-letter-spacing);\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-font-weight);\n ", ": var(--plasma-typo-body-m-line-height);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": 0.25rem;\n ", ": 0.75rem;\n "])), switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.descriptionFontFamily, switchTokens.descriptionFontStyle, switchTokens.descriptionFontWeight, switchTokens.descriptionLineHeight, switchTokens.descriptionFontSize, switchTokens.descriptionLetterSpacing, switchTokens.verticalGap, switchTokens.labelOffset)
17
+ },
18
+ toggleSize: {
19
+ l: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 2.75rem;\n ", ": 1.75rem;\n ", ": calc(var(", ") / 2);\n ", ": 1.5rem;\n ", ": calc(var(", ") / 2);\n ", ": 0.125rem;\n ", ": 1.25;\n "])), switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffset, switchTokens.thumbPressScale),
20
+ s: /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 2rem;\n ", ": 1.25rem;\n ", ": calc(var(", ") / 2);\n ", ": 1rem;\n ", ": calc(var(", ") / 2);\n ", ": 0.125rem;\n ", ": 1.25;\n "])), switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffset, switchTokens.thumbPressScale)
14
21
  },
15
22
  view: {
16
- "default": /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-accent);\n ", ": var(--surface-accent-hover);\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--surface-transparent-tertiary-hover);\n ", ": var(--on-dark-surface-solid-default);\n ", ": 0 1px 1px rgba(0, 0, 0, 0.11);\n "])), switchTokens.trackBackgroundColorOn, switchTokens.trackBackgroundColorOnHover, switchTokens.trackBackgroundColorOff, switchTokens.trackBackgroundColorOffHover, switchTokens.thumbBackgroundColor, switchTokens.thumbBoxShadow)
23
+ "default": /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--text-secondary);\n ", ": var(--surface-accent);\n ", ": var(--surface-accent-hover);\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--surface-transparent-tertiary-hover);\n ", ": var(--on-dark-surface-solid-default);\n ", ": 0 1px 1px rgba(0, 0, 0, 0.11);\n "])), switchTokens.labelColor, switchTokens.descriptionColor, switchTokens.trackBackgroundColorOn, switchTokens.trackBackgroundColorOnHover, switchTokens.trackBackgroundColorOff, switchTokens.trackBackgroundColorOffHover, switchTokens.thumbBackgroundColor, switchTokens.thumbBoxShadow)
17
24
  },
18
25
  disabled: {
19
- "true": /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), switchTokens.disabledOpacity)
26
+ "true": /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), switchTokens.disabledOpacity)
20
27
  },
21
28
  focused: {
22
- "true": /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-accent);\n "])), switchTokens.trackFocusColor)
29
+ "true": /*#__PURE__*/css(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-accent);\n "])), switchTokens.trackFocusColor)
23
30
  }
24
31
  }
25
32
  };
package/es/index.js CHANGED
@@ -51,6 +51,5 @@ export * from './components/Autocomplete';
51
51
  export * from './components/EmptyState';
52
52
  export * from './components/Attach';
53
53
  export * from './components/ViewContainer';
54
- export * from './components/NumberInput';
55
54
  export * from './mixins';
56
55
  export * from './tokens';
package/index.d.ts CHANGED
@@ -51,6 +51,5 @@ export * from './components/Autocomplete';
51
51
  export * from './components/EmptyState';
52
52
  export * from './components/Attach';
53
53
  export * from './components/ViewContainer';
54
- export * from './components/NumberInput';
55
54
  export * from './mixins';
56
55
  export * from './tokens';
package/index.js CHANGED
@@ -586,17 +586,6 @@ Object.keys(_ViewContainer).forEach(function (key) {
586
586
  }
587
587
  });
588
588
  });
589
- var _NumberInput = /*#__PURE__*/require("./components/NumberInput");
590
- Object.keys(_NumberInput).forEach(function (key) {
591
- if (key === "default" || key === "__esModule") return;
592
- if (key in exports && exports[key] === _NumberInput[key]) return;
593
- Object.defineProperty(exports, key, {
594
- enumerable: true,
595
- get: function get() {
596
- return _NumberInput[key];
597
- }
598
- });
599
- });
600
589
  var _mixins = /*#__PURE__*/require("./mixins");
601
590
  Object.keys(_mixins).forEach(function (key) {
602
591
  if (key === "default" || key === "__esModule") return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/sdds-dfa",
3
- "version": "0.167.0-canary.1511.11742976604.0",
3
+ "version": "0.167.0-canary.1539.11742294440.0",
4
4
  "description": "Salute Design System / React UI kit for SDDS DFA web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -19,7 +19,7 @@
19
19
  "directory": "packages/sdds-dfa"
20
20
  },
21
21
  "dependencies": {
22
- "@salutejs/plasma-new-hope": "0.187.0-canary.1511.11742976604.0",
22
+ "@salutejs/plasma-new-hope": "0.187.0-canary.1539.11742294440.0",
23
23
  "@salutejs/sdds-themes": "0.27.0-dev.0"
24
24
  },
25
25
  "peerDependencies": {
@@ -95,5 +95,5 @@
95
95
  "Anton Vinogradov"
96
96
  ],
97
97
  "sideEffects": false,
98
- "gitHead": "31584d52925cf4188d57efc78d5735058a9a8bf1"
98
+ "gitHead": "279b967f00afe106f5c7ccc4ac5c6bfd74b0e75e"
99
99
  }
@@ -128,8 +128,6 @@ import { modalClasses } from '@salutejs/plasma-new-hope/styled-components';
128
128
  import { ModalProps } from '@salutejs/plasma-new-hope/styled-components';
129
129
  import { MouseEvent as MouseEvent_2 } from 'react';
130
130
  import { MutableRefObject } from 'react';
131
- import { numberInputClasses } from '@salutejs/plasma-new-hope/styled-components';
132
- import { numberInputTokens } from '@salutejs/plasma-new-hope/styled-components';
133
131
  import { Orientation } from '@salutejs/plasma-new-hope/types/components/TextFieldGroup/TextFieldGroup.types';
134
132
  import { Overlay } from '@salutejs/plasma-new-hope/styled-components';
135
133
  import { OverlayProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -185,7 +183,6 @@ import { StepItemProps } from '@salutejs/plasma-new-hope/styled-components';
185
183
  import { StepsProps } from '@salutejs/plasma-new-hope/types/components/Steps/Steps.types';
186
184
  import { StyledComponent } from 'styled-components';
187
185
  import { SwitchProps as SwitchProps_2 } from '@salutejs/plasma-new-hope/styled-components';
188
- import { SyntheticEvent } from 'react';
189
186
  import { TabItemRefs } from '@salutejs/plasma-new-hope/styled-components';
190
187
  import { TabsContext } from '@salutejs/plasma-new-hope/styled-components';
191
188
  import { TabsControllerProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -3081,92 +3078,6 @@ export { modalClasses }
3081
3078
 
3082
3079
  export { ModalProps }
3083
3080
 
3084
- // @public (undocumented)
3085
- export const NumberInput: FunctionComponent<PropsType< {
3086
- view: {
3087
- default: PolymorphicClassName;
3088
- secondary: PolymorphicClassName;
3089
- accent: PolymorphicClassName;
3090
- clear: PolymorphicClassName;
3091
- };
3092
- size: {
3093
- l: PolymorphicClassName;
3094
- m: PolymorphicClassName;
3095
- s: PolymorphicClassName;
3096
- xs: PolymorphicClassName;
3097
- };
3098
- shape: {
3099
- cornered: PolymorphicClassName;
3100
- pilled: PolymorphicClassName;
3101
- };
3102
- inputBackgroundType: {
3103
- fill: PolymorphicClassName;
3104
- clear: PolymorphicClassName;
3105
- };
3106
- segmentation: {
3107
- default: PolymorphicClassName;
3108
- segmented: PolymorphicClassName;
3109
- solid: PolymorphicClassName;
3110
- };
3111
- disabled: {
3112
- true: PolymorphicClassName;
3113
- };
3114
- }> & (({
3115
- value?: number | undefined;
3116
- min?: number | undefined;
3117
- max?: number | undefined;
3118
- step?: number | undefined;
3119
- isLoading?: boolean | undefined;
3120
- loader?: ReactNode;
3121
- size?: string | undefined;
3122
- view?: string | undefined;
3123
- clear?: boolean | undefined;
3124
- shape?: string | undefined;
3125
- disabled?: boolean | undefined;
3126
- textBefore?: string | undefined;
3127
- textAfter?: string | undefined;
3128
- customIncrementButton?: ReactNode;
3129
- incrementIcon?: ReactNode;
3130
- customDecrementButton?: ReactNode;
3131
- decrementIcon?: ReactNode;
3132
- isManualInput?: boolean | undefined;
3133
- onChange?: ((event: SyntheticEvent<HTMLInputElement, Event> | null, value: string | number) => void) | undefined;
3134
- onIncrement?: ((value: number) => void) | undefined;
3135
- onDecrement?: ((value: number) => void) | undefined;
3136
- } & {
3137
- segmentation?: "clear" | undefined;
3138
- inputBackgroundType?: undefined;
3139
- } & Omit<InputHTMLAttributes_2<HTMLInputElement>, "onChange" | "size" | "value"> & RefAttributes<HTMLInputElement>) | ({
3140
- value?: number | undefined;
3141
- min?: number | undefined;
3142
- max?: number | undefined;
3143
- step?: number | undefined;
3144
- isLoading?: boolean | undefined;
3145
- loader?: ReactNode;
3146
- size?: string | undefined;
3147
- view?: string | undefined;
3148
- clear?: boolean | undefined;
3149
- shape?: string | undefined;
3150
- disabled?: boolean | undefined;
3151
- textBefore?: string | undefined;
3152
- textAfter?: string | undefined;
3153
- customIncrementButton?: ReactNode;
3154
- incrementIcon?: ReactNode;
3155
- customDecrementButton?: ReactNode;
3156
- decrementIcon?: ReactNode;
3157
- isManualInput?: boolean | undefined;
3158
- onChange?: ((event: SyntheticEvent<HTMLInputElement, Event> | null, value: string | number) => void) | undefined;
3159
- onIncrement?: ((value: number) => void) | undefined;
3160
- onDecrement?: ((value: number) => void) | undefined;
3161
- } & {
3162
- segmentation?: string | undefined;
3163
- inputBackgroundType?: string | undefined;
3164
- } & Omit<InputHTMLAttributes_2<HTMLInputElement>, "onChange" | "size" | "value"> & RefAttributes<HTMLInputElement>))>;
3165
-
3166
- export { numberInputClasses }
3167
-
3168
- export { numberInputTokens }
3169
-
3170
3081
  export { Overlay }
3171
3082
 
3172
3083
  export { OverlayProps }
@@ -3890,7 +3801,13 @@ xs: PolymorphicClassName;
3890
3801
  // @public (undocumented)
3891
3802
  export const Switch: FunctionComponent<PropsType< {
3892
3803
  size: {
3804
+ s: PolymorphicClassName;
3893
3805
  m: PolymorphicClassName;
3806
+ l: PolymorphicClassName;
3807
+ };
3808
+ toggleSize: {
3809
+ l: PolymorphicClassName;
3810
+ s: PolymorphicClassName;
3894
3811
  };
3895
3812
  view: {
3896
3813
  default: PolymorphicClassName;
@@ -1,38 +0,0 @@
1
- export declare const config: {
2
- defaults: {
3
- view: string;
4
- size: string;
5
- shape: string;
6
- inputBackgroundType: string;
7
- };
8
- variations: {
9
- view: {
10
- default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
11
- secondary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
12
- accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
13
- clear: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
14
- };
15
- size: {
16
- l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
17
- m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
18
- s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
19
- xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
20
- };
21
- shape: {
22
- cornered: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
23
- pilled: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
24
- };
25
- inputBackgroundType: {
26
- fill: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
27
- clear: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
28
- };
29
- segmentation: {
30
- default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
31
- segmented: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
32
- solid: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
33
- };
34
- disabled: {
35
- true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
36
- };
37
- };
38
- };
@@ -1,47 +0,0 @@
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 _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
9
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
10
- var config = exports.config = {
11
- defaults: {
12
- view: 'default',
13
- size: 'l',
14
- shape: 'cornered',
15
- inputBackgroundType: 'fill'
16
- },
17
- variations: {
18
- view: {
19
- "default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-accent);\n ", ": var(--text-negative);\n ", ": var(--surface-transparent-negative);\n\n ", ": var(--text-primary);\n ", ": var(--inverse-text-primary);\n ", ": var(--text-tertiary);\n ", ": var(--inverse-text-tertiary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--inverse-surface-transparent-secondary);\n ", ": var(--surface-solid-default);\n\n ", ": var(--inverse-text-primary);\n ", ": var(--surface-solid-default);\n ", ": var(--inverse-text-primary);\n ", ": var(--inverse-text-primary-hover);\n ", ": var(--surface-solid-default-hover);\n ", ": var(--inverse-text-primary);\n ", ": var(--inverse-text-primary-active);\n ", ": var(--surface-solid-default-active);\n\n ", ": 0.4;\n\n ", ": inherit;\n ", ": inherit;\n "])), _styledComponents.numberInputTokens.caretColor, _styledComponents.numberInputTokens.errorColor, _styledComponents.numberInputTokens.backgroundErrorColor, _styledComponents.numberInputTokens.color, _styledComponents.numberInputTokens.colorSolid, _styledComponents.numberInputTokens.additionalTextColor, _styledComponents.numberInputTokens.additionalTextColorSolid, _styledComponents.numberInputTokens.backgroundColorFocus, _styledComponents.numberInputTokens.backgroundColorSolidFocus, _styledComponents.numberInputTokens.backgroundColorSolid, _styledComponents.numberInputTokens.iconButtonColor, _styledComponents.numberInputTokens.iconButtonBackgroundColor, _styledComponents.numberInputTokens.iconButtonColorHover, _styledComponents.numberInputTokens.iconButtonColorSolidHover, _styledComponents.numberInputTokens.iconButtonBackgroundColorHover, _styledComponents.numberInputTokens.iconButtonColorActive, _styledComponents.numberInputTokens.iconButtonColorSolidActive, _styledComponents.numberInputTokens.iconButtonBackgroundColorActive, _styledComponents.numberInputTokens.actionButtonDisabledOpacity, _styledComponents.numberInputTokens.loaderSpinnerColor, _styledComponents.numberInputTokens.loaderSpinnerColorSolid),
20
- secondary: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-accent);\n ", ": var(--text-negative);\n ", ": var(--surface-transparent-negative);\n\n ", ": var(--text-primary);\n ", ": var(--text-primary);\n ", ": var(--text-tertiary);\n ", ": var(--text-tertiary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--surface-transparent-secondary);\n\n ", ": var(--text-primary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--text-primary);\n ", ": var(--text-primary-hover);\n ", ": var(--surface-transparent-secondary-hover);\n ", ": var(--text-primary);\n ", ": var(--text-primary-active);\n ", ": var(--surface-transparent-secondary-active);\n\n ", ": 0.4;\n\n ", ": inherit;\n ", ": inherit;\n "])), _styledComponents.numberInputTokens.caretColor, _styledComponents.numberInputTokens.errorColor, _styledComponents.numberInputTokens.backgroundErrorColor, _styledComponents.numberInputTokens.color, _styledComponents.numberInputTokens.colorSolid, _styledComponents.numberInputTokens.additionalTextColor, _styledComponents.numberInputTokens.additionalTextColorSolid, _styledComponents.numberInputTokens.backgroundColorFocus, _styledComponents.numberInputTokens.backgroundColorSolidFocus, _styledComponents.numberInputTokens.backgroundColorSolid, _styledComponents.numberInputTokens.iconButtonColor, _styledComponents.numberInputTokens.iconButtonBackgroundColor, _styledComponents.numberInputTokens.iconButtonColorHover, _styledComponents.numberInputTokens.iconButtonColorSolidHover, _styledComponents.numberInputTokens.iconButtonBackgroundColorHover, _styledComponents.numberInputTokens.iconButtonColorActive, _styledComponents.numberInputTokens.iconButtonColorSolidActive, _styledComponents.numberInputTokens.iconButtonBackgroundColorActive, _styledComponents.numberInputTokens.actionButtonDisabledOpacity, _styledComponents.numberInputTokens.loaderSpinnerColor, _styledComponents.numberInputTokens.loaderSpinnerColorSolid),
21
- accent: /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-accent);\n ", ": var(--inverse-text-primary);\n ", ": var(--text-negative);\n ", ": var(--surface-transparent-negative);\n\n ", ": var(--text-primary);\n ", ": var(--on-dark-text-primary);\n ", ": var(--text-tertiary);\n ", ": var(--on-dark-text-tertiary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--on-dark-surface-transparent-secondary);\n ", ": var(--surface-accent);\n\n ", ": var(--on-dark-text-primary);\n ", ": var(--surface-accent);\n ", ": var(--inverse-text-primary);\n ", ": var(--on-dark-text-primary-hover);\n ", ": var(--surface-accent-hover);\n ", ": var(--inverse-text-primary);\n ", ": var(--on-dark-text-primary-active);\n ", ": var(--surface-accent-active);\n\n ", ": 0.4;\n\n ", ": inherit;\n ", ": inherit;\n "])), _styledComponents.numberInputTokens.caretColor, _styledComponents.numberInputTokens.caretColorSolid, _styledComponents.numberInputTokens.errorColor, _styledComponents.numberInputTokens.backgroundErrorColor, _styledComponents.numberInputTokens.color, _styledComponents.numberInputTokens.colorSolid, _styledComponents.numberInputTokens.additionalTextColor, _styledComponents.numberInputTokens.additionalTextColorSolid, _styledComponents.numberInputTokens.backgroundColorFocus, _styledComponents.numberInputTokens.backgroundColorSolidFocus, _styledComponents.numberInputTokens.backgroundColorSolid, _styledComponents.numberInputTokens.iconButtonColor, _styledComponents.numberInputTokens.iconButtonBackgroundColor, _styledComponents.numberInputTokens.iconButtonColorHover, _styledComponents.numberInputTokens.iconButtonColorSolidHover, _styledComponents.numberInputTokens.iconButtonBackgroundColorHover, _styledComponents.numberInputTokens.iconButtonColorActive, _styledComponents.numberInputTokens.iconButtonColorSolidActive, _styledComponents.numberInputTokens.iconButtonBackgroundColorActive, _styledComponents.numberInputTokens.actionButtonDisabledOpacity, _styledComponents.numberInputTokens.loaderSpinnerColor, _styledComponents.numberInputTokens.loaderSpinnerColorSolid),
22
- clear: /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-accent);\n ", ": var(--text-accent);\n ", ": var(--text-negative);\n ", ": var(--surface-transparent-negative);\n\n ", ": var(--text-primary);\n ", ": var(--text-primary);\n ", ": var(--text-primary-hover);\n ", ": var(--text-tertiary);\n ", ": var(--text-tertiary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--surface-transparent-secondary);\n ", ": transparent;\n\n ", ": var(--text-primary);\n ", ": transparent;\n ", ": var(--text-primary-hover);\n ", ": transparent;\n ", ": var(--text-primary-active);\n ", ": transparent;\n\n ", ": 0.4;\n\n ", ": inherit;\n ", ": inherit;\n "])), _styledComponents.numberInputTokens.caretColor, _styledComponents.numberInputTokens.caretColorSolid, _styledComponents.numberInputTokens.errorColor, _styledComponents.numberInputTokens.backgroundErrorColor, _styledComponents.numberInputTokens.color, _styledComponents.numberInputTokens.colorSolid, _styledComponents.numberInputTokens.iconButtonColorSolidHover, _styledComponents.numberInputTokens.additionalTextColor, _styledComponents.numberInputTokens.additionalTextColorSolid, _styledComponents.numberInputTokens.backgroundColorFocus, _styledComponents.numberInputTokens.backgroundColorSolidFocus, _styledComponents.numberInputTokens.backgroundColorSolid, _styledComponents.numberInputTokens.iconButtonColor, _styledComponents.numberInputTokens.iconButtonBackgroundColor, _styledComponents.numberInputTokens.iconButtonColorHover, _styledComponents.numberInputTokens.iconButtonBackgroundColorHover, _styledComponents.numberInputTokens.iconButtonColorActive, _styledComponents.numberInputTokens.iconButtonBackgroundColorActive, _styledComponents.numberInputTokens.actionButtonDisabledOpacity, _styledComponents.numberInputTokens.loaderSpinnerColor, _styledComponents.numberInputTokens.loaderSpinnerColorSolid)
23
- },
24
- size: {
25
- l: /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 11.75rem;\n ", ": 3.5rem;\n ", ": 3.5rem;\n ", ": 1.5rem;\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-bold-font-weight);\n ", ": var(--plasma-typo-body-l-letter-spacing);\n ", ": var(--plasma-typo-body-l-line-height);\n\n ", ": 0.875rem;\n ", ": 0.375rem;\n\n ", ": 0 0.125rem;\n ", ": 0.875rem;\n ", ": 3.5rem;\n ", ": 1.063rem 1.125rem;\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.25rem;\n ", ": 0.25rem;\n\n ", ": 1.375rem;\n "])), _styledComponents.numberInputTokens.rootMinWidth, _styledComponents.numberInputTokens.iconButtonHeight, _styledComponents.numberInputTokens.iconButtonWidth, _styledComponents.numberInputTokens.iconButtonPadding, _styledComponents.numberInputTokens.iconButtonFontFamily, _styledComponents.numberInputTokens.iconButtonFontSize, _styledComponents.numberInputTokens.iconButtonFontStyle, _styledComponents.numberInputTokens.iconButtonFontWeight, _styledComponents.numberInputTokens.iconButtonLetterSpacing, _styledComponents.numberInputTokens.iconButtonLineHeight, _styledComponents.numberInputTokens.iconButtonRadius, _styledComponents.numberInputTokens.iconButtonSegmentationRadius, _styledComponents.numberInputTokens.inputWrapperMargin, _styledComponents.numberInputTokens.inputWrapperBorderRadius, _styledComponents.numberInputTokens.textWrapperHeight, _styledComponents.numberInputTokens.textWrapperPadding, _styledComponents.numberInputTokens.fontFamily, _styledComponents.numberInputTokens.fontSize, _styledComponents.numberInputTokens.fontStyle, _styledComponents.numberInputTokens.fontWeight, _styledComponents.numberInputTokens.letterSpacing, _styledComponents.numberInputTokens.lineHeight, _styledComponents.numberInputTokens.textBeforeMarginRight, _styledComponents.numberInputTokens.textAfterMarginLeft, _styledComponents.numberInputTokens.loaderSpinnerSize),
26
- m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 10.25rem;\n ", ": 3rem;\n ", ": 3rem;\n ", ": 1.25rem;\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-bold-font-weight);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-m-line-height);\n\n ", ": 0.75rem;\n ", ": 0.25rem;\n\n ", ": 0 0.125rem;\n ", ": 0.75rem;\n ", ": 3rem;\n ", ": 0.875rem 1rem;\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.25rem;\n ", ": 0.25rem;\n\n ", ": 1.375rem;\n "])), _styledComponents.numberInputTokens.rootMinWidth, _styledComponents.numberInputTokens.iconButtonHeight, _styledComponents.numberInputTokens.iconButtonWidth, _styledComponents.numberInputTokens.iconButtonPadding, _styledComponents.numberInputTokens.iconButtonFontFamily, _styledComponents.numberInputTokens.iconButtonFontSize, _styledComponents.numberInputTokens.iconButtonFontStyle, _styledComponents.numberInputTokens.iconButtonFontWeight, _styledComponents.numberInputTokens.iconButtonLetterSpacing, _styledComponents.numberInputTokens.iconButtonLineHeight, _styledComponents.numberInputTokens.iconButtonRadius, _styledComponents.numberInputTokens.iconButtonSegmentationRadius, _styledComponents.numberInputTokens.inputWrapperMargin, _styledComponents.numberInputTokens.inputWrapperBorderRadius, _styledComponents.numberInputTokens.textWrapperHeight, _styledComponents.numberInputTokens.textWrapperPadding, _styledComponents.numberInputTokens.fontFamily, _styledComponents.numberInputTokens.fontSize, _styledComponents.numberInputTokens.fontStyle, _styledComponents.numberInputTokens.fontWeight, _styledComponents.numberInputTokens.letterSpacing, _styledComponents.numberInputTokens.lineHeight, _styledComponents.numberInputTokens.textBeforeMarginRight, _styledComponents.numberInputTokens.textAfterMarginLeft, _styledComponents.numberInputTokens.loaderSpinnerSize),
27
- s: /*#__PURE__*/(0, _styledComponents.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 8.75rem;\n ", ": 2.5rem;\n ", ": 2.5rem;\n ", ": 1rem;\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-bold-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": 0.625rem;\n ", ": 0.25rem;\n\n ", ": 0 0.125rem;\n ", ": 0.625rem;\n ", ": 2.5rem;\n ", ": 0.688rem 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.25rem;\n ", ": 0.25rem;\n\n ", ": 1.375rem;\n "])), _styledComponents.numberInputTokens.rootMinWidth, _styledComponents.numberInputTokens.iconButtonHeight, _styledComponents.numberInputTokens.iconButtonWidth, _styledComponents.numberInputTokens.iconButtonPadding, _styledComponents.numberInputTokens.iconButtonFontFamily, _styledComponents.numberInputTokens.iconButtonFontSize, _styledComponents.numberInputTokens.iconButtonFontStyle, _styledComponents.numberInputTokens.iconButtonFontWeight, _styledComponents.numberInputTokens.iconButtonLetterSpacing, _styledComponents.numberInputTokens.iconButtonLineHeight, _styledComponents.numberInputTokens.iconButtonRadius, _styledComponents.numberInputTokens.iconButtonSegmentationRadius, _styledComponents.numberInputTokens.inputWrapperMargin, _styledComponents.numberInputTokens.inputWrapperBorderRadius, _styledComponents.numberInputTokens.textWrapperHeight, _styledComponents.numberInputTokens.textWrapperPadding, _styledComponents.numberInputTokens.fontFamily, _styledComponents.numberInputTokens.fontSize, _styledComponents.numberInputTokens.fontStyle, _styledComponents.numberInputTokens.fontWeight, _styledComponents.numberInputTokens.letterSpacing, _styledComponents.numberInputTokens.lineHeight, _styledComponents.numberInputTokens.textBeforeMarginRight, _styledComponents.numberInputTokens.textAfterMarginLeft, _styledComponents.numberInputTokens.loaderSpinnerSize),
28
- xs: /*#__PURE__*/(0, _styledComponents.css)(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 6.875rem;\n ", ": 2rem;\n ", ": 2rem;\n ", ": 0.75rem;\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-bold-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": 0.5rem;\n ", ": 0.125rem;\n\n ", ": 0 0.125rem;\n ", ": 0.5rem;\n ", ": 2rem;\n ", ": 0.563rem 0.625rem;\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 ", ": 0.25rem;\n ", ": 0.25rem;\n\n ", ": 1rem;\n "])), _styledComponents.numberInputTokens.rootMinWidth, _styledComponents.numberInputTokens.iconButtonHeight, _styledComponents.numberInputTokens.iconButtonWidth, _styledComponents.numberInputTokens.iconButtonPadding, _styledComponents.numberInputTokens.iconButtonFontFamily, _styledComponents.numberInputTokens.iconButtonFontSize, _styledComponents.numberInputTokens.iconButtonFontStyle, _styledComponents.numberInputTokens.iconButtonFontWeight, _styledComponents.numberInputTokens.iconButtonLetterSpacing, _styledComponents.numberInputTokens.iconButtonLineHeight, _styledComponents.numberInputTokens.iconButtonRadius, _styledComponents.numberInputTokens.iconButtonSegmentationRadius, _styledComponents.numberInputTokens.inputWrapperMargin, _styledComponents.numberInputTokens.inputWrapperBorderRadius, _styledComponents.numberInputTokens.textWrapperHeight, _styledComponents.numberInputTokens.textWrapperPadding, _styledComponents.numberInputTokens.fontFamily, _styledComponents.numberInputTokens.fontSize, _styledComponents.numberInputTokens.fontStyle, _styledComponents.numberInputTokens.fontWeight, _styledComponents.numberInputTokens.letterSpacing, _styledComponents.numberInputTokens.lineHeight, _styledComponents.numberInputTokens.textBeforeMarginRight, _styledComponents.numberInputTokens.textAfterMarginLeft, _styledComponents.numberInputTokens.loaderSpinnerSize)
29
- },
30
- shape: {
31
- cornered: /*#__PURE__*/(0, _styledComponents.css)(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral([""]))),
32
- pilled: /*#__PURE__*/(0, _styledComponents.css)(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 50%;\n "])), _styledComponents.numberInputTokens.iconButtonRadius)
33
- },
34
- inputBackgroundType: {
35
- fill: /*#__PURE__*/(0, _styledComponents.css)(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-transparent-primary);\n ", ": var(--surface-transparent-primary);\n "])), _styledComponents.numberInputTokens.backgroundColor, _styledComponents.numberInputTokens.backgroundColorHover),
36
- clear: /*#__PURE__*/(0, _styledComponents.css)(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": transparent;\n ", ": transparent;\n "])), _styledComponents.numberInputTokens.backgroundColor, _styledComponents.numberInputTokens.backgroundColorHover)
37
- },
38
- segmentation: {
39
- "default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteral([""]))),
40
- segmented: /*#__PURE__*/(0, _styledComponents.css)(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteral([""]))),
41
- solid: /*#__PURE__*/(0, _styledComponents.css)(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0;\n "])), _styledComponents.numberInputTokens.iconButtonSegmentationRadius)
42
- },
43
- disabled: {
44
- "true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), _styledComponents.numberInputTokens.disabledOpacity)
45
- }
46
- }
47
- };
@@ -1,81 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const NumberInput: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
3
- view: {
4
- default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
5
- secondary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
6
- accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
7
- clear: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
8
- };
9
- size: {
10
- l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
11
- m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
12
- s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
13
- xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
14
- };
15
- shape: {
16
- cornered: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
17
- pilled: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
18
- };
19
- inputBackgroundType: {
20
- fill: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
21
- clear: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
22
- };
23
- segmentation: {
24
- default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
25
- segmented: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
26
- solid: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
27
- };
28
- disabled: {
29
- true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
30
- };
31
- }> & (({
32
- value?: number | undefined;
33
- min?: number | undefined;
34
- max?: number | undefined;
35
- step?: number | undefined;
36
- isLoading?: boolean | undefined;
37
- loader?: import("react").ReactNode;
38
- size?: string | undefined;
39
- view?: string | undefined;
40
- clear?: boolean | undefined;
41
- shape?: string | undefined;
42
- disabled?: boolean | undefined;
43
- textBefore?: string | undefined;
44
- textAfter?: string | undefined;
45
- customIncrementButton?: import("react").ReactNode;
46
- incrementIcon?: import("react").ReactNode;
47
- customDecrementButton?: import("react").ReactNode;
48
- decrementIcon?: import("react").ReactNode;
49
- isManualInput?: boolean | undefined;
50
- onChange?: ((event: import("react").SyntheticEvent<HTMLInputElement, Event> | null, value: string | number) => void) | undefined;
51
- onIncrement?: ((value: number) => void) | undefined;
52
- onDecrement?: ((value: number) => void) | undefined;
53
- } & {
54
- segmentation?: "clear" | undefined;
55
- inputBackgroundType?: undefined;
56
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "onChange" | "size" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
57
- value?: number | undefined;
58
- min?: number | undefined;
59
- max?: number | undefined;
60
- step?: number | undefined;
61
- isLoading?: boolean | undefined;
62
- loader?: import("react").ReactNode;
63
- size?: string | undefined;
64
- view?: string | undefined;
65
- clear?: boolean | undefined;
66
- shape?: string | undefined;
67
- disabled?: boolean | undefined;
68
- textBefore?: string | undefined;
69
- textAfter?: string | undefined;
70
- customIncrementButton?: import("react").ReactNode;
71
- incrementIcon?: import("react").ReactNode;
72
- customDecrementButton?: import("react").ReactNode;
73
- decrementIcon?: import("react").ReactNode;
74
- isManualInput?: boolean | undefined;
75
- onChange?: ((event: import("react").SyntheticEvent<HTMLInputElement, Event> | null, value: string | number) => void) | undefined;
76
- onIncrement?: ((value: number) => void) | undefined;
77
- onDecrement?: ((value: number) => void) | undefined;
78
- } & {
79
- segmentation?: string | undefined;
80
- inputBackgroundType?: string | undefined;
81
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "onChange" | "size" | "value"> & import("react").RefAttributes<HTMLInputElement>))>;
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.NumberInput = void 0;
7
- var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
8
- var _NumberInput = /*#__PURE__*/require("./NumberInput.config");
9
- var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.numberInputConfig, _NumberInput.config);
10
- var NumberInput = exports.NumberInput = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
@@ -1,2 +0,0 @@
1
- export { NumberInput } from './NumberInput';
2
- export { numberInputTokens, numberInputClasses } from '@salutejs/plasma-new-hope/styled-components';
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "NumberInput", {
7
- enumerable: true,
8
- get: function get() {
9
- return _NumberInput.NumberInput;
10
- }
11
- });
12
- Object.defineProperty(exports, "numberInputClasses", {
13
- enumerable: true,
14
- get: function get() {
15
- return _styledComponents.numberInputClasses;
16
- }
17
- });
18
- Object.defineProperty(exports, "numberInputTokens", {
19
- enumerable: true,
20
- get: function get() {
21
- return _styledComponents.numberInputTokens;
22
- }
23
- });
24
- var _NumberInput = /*#__PURE__*/require("./NumberInput");
25
- var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
@@ -1,41 +0,0 @@
1
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
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, numberInputTokens as tokens } from '@salutejs/plasma-new-hope/styled-components';
4
- export var config = {
5
- defaults: {
6
- view: 'default',
7
- size: 'l',
8
- shape: 'cornered',
9
- inputBackgroundType: 'fill'
10
- },
11
- variations: {
12
- view: {
13
- "default": /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-accent);\n ", ": var(--text-negative);\n ", ": var(--surface-transparent-negative);\n\n ", ": var(--text-primary);\n ", ": var(--inverse-text-primary);\n ", ": var(--text-tertiary);\n ", ": var(--inverse-text-tertiary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--inverse-surface-transparent-secondary);\n ", ": var(--surface-solid-default);\n\n ", ": var(--inverse-text-primary);\n ", ": var(--surface-solid-default);\n ", ": var(--inverse-text-primary);\n ", ": var(--inverse-text-primary-hover);\n ", ": var(--surface-solid-default-hover);\n ", ": var(--inverse-text-primary);\n ", ": var(--inverse-text-primary-active);\n ", ": var(--surface-solid-default-active);\n\n ", ": 0.4;\n\n ", ": inherit;\n ", ": inherit;\n "])), tokens.caretColor, tokens.errorColor, tokens.backgroundErrorColor, tokens.color, tokens.colorSolid, tokens.additionalTextColor, tokens.additionalTextColorSolid, tokens.backgroundColorFocus, tokens.backgroundColorSolidFocus, tokens.backgroundColorSolid, tokens.iconButtonColor, tokens.iconButtonBackgroundColor, tokens.iconButtonColorHover, tokens.iconButtonColorSolidHover, tokens.iconButtonBackgroundColorHover, tokens.iconButtonColorActive, tokens.iconButtonColorSolidActive, tokens.iconButtonBackgroundColorActive, tokens.actionButtonDisabledOpacity, tokens.loaderSpinnerColor, tokens.loaderSpinnerColorSolid),
14
- secondary: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-accent);\n ", ": var(--text-negative);\n ", ": var(--surface-transparent-negative);\n\n ", ": var(--text-primary);\n ", ": var(--text-primary);\n ", ": var(--text-tertiary);\n ", ": var(--text-tertiary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--surface-transparent-secondary);\n\n ", ": var(--text-primary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--text-primary);\n ", ": var(--text-primary-hover);\n ", ": var(--surface-transparent-secondary-hover);\n ", ": var(--text-primary);\n ", ": var(--text-primary-active);\n ", ": var(--surface-transparent-secondary-active);\n\n ", ": 0.4;\n\n ", ": inherit;\n ", ": inherit;\n "])), tokens.caretColor, tokens.errorColor, tokens.backgroundErrorColor, tokens.color, tokens.colorSolid, tokens.additionalTextColor, tokens.additionalTextColorSolid, tokens.backgroundColorFocus, tokens.backgroundColorSolidFocus, tokens.backgroundColorSolid, tokens.iconButtonColor, tokens.iconButtonBackgroundColor, tokens.iconButtonColorHover, tokens.iconButtonColorSolidHover, tokens.iconButtonBackgroundColorHover, tokens.iconButtonColorActive, tokens.iconButtonColorSolidActive, tokens.iconButtonBackgroundColorActive, tokens.actionButtonDisabledOpacity, tokens.loaderSpinnerColor, tokens.loaderSpinnerColorSolid),
15
- accent: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-accent);\n ", ": var(--inverse-text-primary);\n ", ": var(--text-negative);\n ", ": var(--surface-transparent-negative);\n\n ", ": var(--text-primary);\n ", ": var(--on-dark-text-primary);\n ", ": var(--text-tertiary);\n ", ": var(--on-dark-text-tertiary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--on-dark-surface-transparent-secondary);\n ", ": var(--surface-accent);\n\n ", ": var(--on-dark-text-primary);\n ", ": var(--surface-accent);\n ", ": var(--inverse-text-primary);\n ", ": var(--on-dark-text-primary-hover);\n ", ": var(--surface-accent-hover);\n ", ": var(--inverse-text-primary);\n ", ": var(--on-dark-text-primary-active);\n ", ": var(--surface-accent-active);\n\n ", ": 0.4;\n\n ", ": inherit;\n ", ": inherit;\n "])), tokens.caretColor, tokens.caretColorSolid, tokens.errorColor, tokens.backgroundErrorColor, tokens.color, tokens.colorSolid, tokens.additionalTextColor, tokens.additionalTextColorSolid, tokens.backgroundColorFocus, tokens.backgroundColorSolidFocus, tokens.backgroundColorSolid, tokens.iconButtonColor, tokens.iconButtonBackgroundColor, tokens.iconButtonColorHover, tokens.iconButtonColorSolidHover, tokens.iconButtonBackgroundColorHover, tokens.iconButtonColorActive, tokens.iconButtonColorSolidActive, tokens.iconButtonBackgroundColorActive, tokens.actionButtonDisabledOpacity, tokens.loaderSpinnerColor, tokens.loaderSpinnerColorSolid),
16
- clear: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-accent);\n ", ": var(--text-accent);\n ", ": var(--text-negative);\n ", ": var(--surface-transparent-negative);\n\n ", ": var(--text-primary);\n ", ": var(--text-primary);\n ", ": var(--text-primary-hover);\n ", ": var(--text-tertiary);\n ", ": var(--text-tertiary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--surface-transparent-secondary);\n ", ": transparent;\n\n ", ": var(--text-primary);\n ", ": transparent;\n ", ": var(--text-primary-hover);\n ", ": transparent;\n ", ": var(--text-primary-active);\n ", ": transparent;\n\n ", ": 0.4;\n\n ", ": inherit;\n ", ": inherit;\n "])), tokens.caretColor, tokens.caretColorSolid, tokens.errorColor, tokens.backgroundErrorColor, tokens.color, tokens.colorSolid, tokens.iconButtonColorSolidHover, tokens.additionalTextColor, tokens.additionalTextColorSolid, tokens.backgroundColorFocus, tokens.backgroundColorSolidFocus, tokens.backgroundColorSolid, tokens.iconButtonColor, tokens.iconButtonBackgroundColor, tokens.iconButtonColorHover, tokens.iconButtonBackgroundColorHover, tokens.iconButtonColorActive, tokens.iconButtonBackgroundColorActive, tokens.actionButtonDisabledOpacity, tokens.loaderSpinnerColor, tokens.loaderSpinnerColorSolid)
17
- },
18
- size: {
19
- l: /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 11.75rem;\n ", ": 3.5rem;\n ", ": 3.5rem;\n ", ": 1.5rem;\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-bold-font-weight);\n ", ": var(--plasma-typo-body-l-letter-spacing);\n ", ": var(--plasma-typo-body-l-line-height);\n\n ", ": 0.875rem;\n ", ": 0.375rem;\n\n ", ": 0 0.125rem;\n ", ": 0.875rem;\n ", ": 3.5rem;\n ", ": 1.063rem 1.125rem;\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.25rem;\n ", ": 0.25rem;\n\n ", ": 1.375rem;\n "])), tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize),
20
- m: /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 10.25rem;\n ", ": 3rem;\n ", ": 3rem;\n ", ": 1.25rem;\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-bold-font-weight);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-m-line-height);\n\n ", ": 0.75rem;\n ", ": 0.25rem;\n\n ", ": 0 0.125rem;\n ", ": 0.75rem;\n ", ": 3rem;\n ", ": 0.875rem 1rem;\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.25rem;\n ", ": 0.25rem;\n\n ", ": 1.375rem;\n "])), tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize),
21
- s: /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 8.75rem;\n ", ": 2.5rem;\n ", ": 2.5rem;\n ", ": 1rem;\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-bold-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": 0.625rem;\n ", ": 0.25rem;\n\n ", ": 0 0.125rem;\n ", ": 0.625rem;\n ", ": 2.5rem;\n ", ": 0.688rem 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.25rem;\n ", ": 0.25rem;\n\n ", ": 1.375rem;\n "])), tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize),
22
- xs: /*#__PURE__*/css(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 6.875rem;\n ", ": 2rem;\n ", ": 2rem;\n ", ": 0.75rem;\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-bold-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": 0.5rem;\n ", ": 0.125rem;\n\n ", ": 0 0.125rem;\n ", ": 0.5rem;\n ", ": 2rem;\n ", ": 0.563rem 0.625rem;\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 ", ": 0.25rem;\n ", ": 0.25rem;\n\n ", ": 1rem;\n "])), tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize)
23
- },
24
- shape: {
25
- cornered: /*#__PURE__*/css(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral([""]))),
26
- pilled: /*#__PURE__*/css(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 50%;\n "])), tokens.iconButtonRadius)
27
- },
28
- inputBackgroundType: {
29
- fill: /*#__PURE__*/css(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-transparent-primary);\n ", ": var(--surface-transparent-primary);\n "])), tokens.backgroundColor, tokens.backgroundColorHover),
30
- clear: /*#__PURE__*/css(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": transparent;\n ", ": transparent;\n "])), tokens.backgroundColor, tokens.backgroundColorHover)
31
- },
32
- segmentation: {
33
- "default": /*#__PURE__*/css(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteral([""]))),
34
- segmented: /*#__PURE__*/css(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteral([""]))),
35
- solid: /*#__PURE__*/css(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0;\n "])), tokens.iconButtonSegmentationRadius)
36
- },
37
- disabled: {
38
- "true": /*#__PURE__*/css(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), tokens.disabledOpacity)
39
- }
40
- }
41
- };
@@ -1,4 +0,0 @@
1
- import { numberInputConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
2
- import { config } from './NumberInput.config';
3
- var mergedConfig = /*#__PURE__*/mergeConfig(numberInputConfig, config);
4
- export var NumberInput = /*#__PURE__*/component(mergedConfig);
@@ -1,2 +0,0 @@
1
- export { NumberInput } from './NumberInput';
2
- export { numberInputTokens, numberInputClasses } from '@salutejs/plasma-new-hope/styled-components';