@salutejs/plasma-new-hope 0.81.0-canary.1208.9111977682.0 → 0.81.1-canary.1209.9113456949.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. package/cjs/components/TextField/TextField.js +4 -10
  2. package/cjs/components/TextField/TextField.js.map +1 -1
  3. package/cjs/components/TextField/TextField.styles.js +1 -13
  4. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  5. package/cjs/components/TextField/{TextField.styles_aqmut.css → TextField.styles_1b1mddp.css} +0 -2
  6. package/cjs/components/TextField/TextField.tokens.js +0 -5
  7. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  8. package/cjs/components/TextField/variations/_label-placement/inner.js +1 -1
  9. package/cjs/components/TextField/variations/_label-placement/inner.js.map +1 -1
  10. package/cjs/components/TextField/variations/_label-placement/inner_gqlcj2.css +1 -0
  11. package/cjs/components/TextField/variations/_size/base.js +1 -1
  12. package/cjs/components/TextField/variations/_size/base.js.map +1 -1
  13. package/cjs/components/TextField/variations/_size/{base_ntoddv.css → base_1khzr9t.css} +1 -1
  14. package/cjs/components/TextField/variations/_view/base.js +1 -1
  15. package/cjs/components/TextField/variations/_view/base.js.map +1 -1
  16. package/cjs/components/TextField/variations/_view/{base_19gxyva.css → base_1qd77x6.css} +1 -1
  17. package/cjs/index.css +9 -28
  18. package/cjs/index.js +0 -5
  19. package/cjs/index.js.map +1 -1
  20. package/es/components/TextField/TextField.js +5 -11
  21. package/es/components/TextField/TextField.js.map +1 -1
  22. package/es/components/TextField/TextField.styles.js +2 -12
  23. package/es/components/TextField/TextField.styles.js.map +1 -1
  24. package/es/components/TextField/{TextField.styles_aqmut.css → TextField.styles_1b1mddp.css} +0 -2
  25. package/es/components/TextField/TextField.tokens.js +0 -5
  26. package/es/components/TextField/TextField.tokens.js.map +1 -1
  27. package/es/components/TextField/variations/_label-placement/inner.js +1 -1
  28. package/es/components/TextField/variations/_label-placement/inner.js.map +1 -1
  29. package/es/components/TextField/variations/_label-placement/inner_gqlcj2.css +1 -0
  30. package/es/components/TextField/variations/_size/base.js +1 -1
  31. package/es/components/TextField/variations/_size/base.js.map +1 -1
  32. package/es/components/TextField/variations/_size/{base_ntoddv.css → base_1khzr9t.css} +1 -1
  33. package/es/components/TextField/variations/_view/base.js +1 -1
  34. package/es/components/TextField/variations/_view/base.js.map +1 -1
  35. package/es/components/TextField/variations/_view/{base_19gxyva.css → base_1qd77x6.css} +1 -1
  36. package/es/index.css +9 -28
  37. package/es/index.js +0 -2
  38. package/es/index.js.map +1 -1
  39. package/package.json +4 -4
  40. package/styled-components/cjs/components/TextField/TextField.js +4 -10
  41. package/styled-components/cjs/components/TextField/TextField.styles.js +1 -7
  42. package/styled-components/cjs/components/TextField/TextField.tokens.js +0 -5
  43. package/styled-components/cjs/components/TextField/variations/_label-placement/inner.js +1 -1
  44. package/styled-components/cjs/components/TextField/variations/_size/base.js +1 -1
  45. package/styled-components/cjs/components/TextField/variations/_view/base.js +1 -1
  46. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +4 -4
  47. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +8 -8
  48. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -2
  49. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +4 -4
  50. package/styled-components/cjs/index.js +0 -11
  51. package/styled-components/es/components/TextField/TextField.js +5 -11
  52. package/styled-components/es/components/TextField/TextField.styles.js +0 -6
  53. package/styled-components/es/components/TextField/TextField.tokens.js +0 -5
  54. package/styled-components/es/components/TextField/variations/_label-placement/inner.js +2 -2
  55. package/styled-components/es/components/TextField/variations/_size/base.js +2 -2
  56. package/styled-components/es/components/TextField/variations/_view/base.js +2 -2
  57. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +4 -4
  58. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +8 -8
  59. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -2
  60. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.config.js +4 -4
  61. package/styled-components/es/index.js +1 -2
  62. package/types/components/TextField/TextField.d.ts.map +1 -1
  63. package/types/components/TextField/TextField.styles.d.ts +0 -2
  64. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  65. package/types/components/TextField/TextField.tokens.d.ts +0 -5
  66. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  67. package/types/components/TextField/TextField.types.d.ts +0 -8
  68. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  69. package/types/components/TextField/variations/_label-placement/inner.d.ts.map +1 -1
  70. package/types/components/TextField/variations/_size/base.d.ts.map +1 -1
  71. package/types/components/TextField/variations/_view/base.d.ts.map +1 -1
  72. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +1 -1
  73. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +0 -4
  74. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  75. package/types/examples/plasma_web/components/TextField/TextField.d.ts +0 -4
  76. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  77. package/types/examples/sds_engineer/components/TextField/TextField.d.ts +0 -4
  78. package/types/examples/sds_engineer/components/TextField/TextField.d.ts.map +1 -1
  79. package/types/index.d.ts +0 -1
  80. package/types/index.d.ts.map +1 -1
  81. package/cjs/components/Range/Range.css +0 -63
  82. package/cjs/components/Range/Range.js +0 -146
  83. package/cjs/components/Range/Range.js.map +0 -1
  84. package/cjs/components/Range/Range.styles.js +0 -63
  85. package/cjs/components/Range/Range.styles.js.map +0 -1
  86. package/cjs/components/Range/Range.styles_mc4w65.css +0 -8
  87. package/cjs/components/Range/Range.tokens.js +0 -105
  88. package/cjs/components/Range/Range.tokens.js.map +0 -1
  89. package/cjs/components/Range/utils/index.js +0 -24
  90. package/cjs/components/Range/utils/index.js.map +0 -1
  91. package/cjs/components/Range/variations/_disabled/base.js +0 -9
  92. package/cjs/components/Range/variations/_disabled/base.js.map +0 -1
  93. package/cjs/components/Range/variations/_disabled/base_1ufizo4.css +0 -1
  94. package/cjs/components/Range/variations/_readonly/base.js +0 -9
  95. package/cjs/components/Range/variations/_readonly/base.js.map +0 -1
  96. package/cjs/components/Range/variations/_readonly/base_hzmd8h.css +0 -1
  97. package/cjs/components/Range/variations/_size/base.js +0 -9
  98. package/cjs/components/Range/variations/_size/base.js.map +0 -1
  99. package/cjs/components/Range/variations/_size/base_f8ah3.css +0 -1
  100. package/cjs/components/Range/variations/_view/base.js +0 -9
  101. package/cjs/components/Range/variations/_view/base.js.map +0 -1
  102. package/cjs/components/Range/variations/_view/base_5iz3nr.css +0 -1
  103. package/cjs/components/TextField/variations/_label-placement/inner_7c08qb.css +0 -1
  104. package/es/components/Range/Range.css +0 -63
  105. package/es/components/Range/Range.js +0 -141
  106. package/es/components/Range/Range.js.map +0 -1
  107. package/es/components/Range/Range.styles.js +0 -52
  108. package/es/components/Range/Range.styles.js.map +0 -1
  109. package/es/components/Range/Range.styles_mc4w65.css +0 -8
  110. package/es/components/Range/Range.tokens.js +0 -100
  111. package/es/components/Range/Range.tokens.js.map +0 -1
  112. package/es/components/Range/utils/index.js +0 -19
  113. package/es/components/Range/utils/index.js.map +0 -1
  114. package/es/components/Range/variations/_disabled/base.js +0 -5
  115. package/es/components/Range/variations/_disabled/base.js.map +0 -1
  116. package/es/components/Range/variations/_disabled/base_1ufizo4.css +0 -1
  117. package/es/components/Range/variations/_readonly/base.js +0 -5
  118. package/es/components/Range/variations/_readonly/base.js.map +0 -1
  119. package/es/components/Range/variations/_readonly/base_hzmd8h.css +0 -1
  120. package/es/components/Range/variations/_size/base.js +0 -5
  121. package/es/components/Range/variations/_size/base.js.map +0 -1
  122. package/es/components/Range/variations/_size/base_f8ah3.css +0 -1
  123. package/es/components/Range/variations/_view/base.js +0 -5
  124. package/es/components/Range/variations/_view/base.js.map +0 -1
  125. package/es/components/Range/variations/_view/base_5iz3nr.css +0 -1
  126. package/es/components/TextField/variations/_label-placement/inner_7c08qb.css +0 -1
  127. package/styled-components/cjs/components/Range/Range.js +0 -148
  128. package/styled-components/cjs/components/Range/Range.styles.js +0 -39
  129. package/styled-components/cjs/components/Range/Range.tokens.js +0 -103
  130. package/styled-components/cjs/components/Range/Range.types.js +0 -5
  131. package/styled-components/cjs/components/Range/index.js +0 -25
  132. package/styled-components/cjs/components/Range/utils/index.js +0 -22
  133. package/styled-components/cjs/components/Range/variations/_disabled/base.js +0 -9
  134. package/styled-components/cjs/components/Range/variations/_disabled/tokens.json +0 -4
  135. package/styled-components/cjs/components/Range/variations/_readonly/base.js +0 -10
  136. package/styled-components/cjs/components/Range/variations/_readonly/tokens.json +0 -4
  137. package/styled-components/cjs/components/Range/variations/_size/base.js +0 -10
  138. package/styled-components/cjs/components/Range/variations/_size/tokens.json +0 -26
  139. package/styled-components/cjs/components/Range/variations/_view/base.js +0 -10
  140. package/styled-components/cjs/components/Range/variations/_view/tokens.json +0 -6
  141. package/styled-components/cjs/examples/plasma_b2c/components/Range/Range.config.js +0 -31
  142. package/styled-components/cjs/examples/plasma_b2c/components/Range/Range.js +0 -11
  143. package/styled-components/cjs/examples/plasma_b2c/components/Range/Range.stories.tsx +0 -312
  144. package/styled-components/cjs/examples/plasma_web/components/Range/Range.config.js +0 -31
  145. package/styled-components/cjs/examples/plasma_web/components/Range/Range.js +0 -11
  146. package/styled-components/cjs/examples/plasma_web/components/Range/Range.stories.tsx +0 -312
  147. package/styled-components/es/components/Range/Range.js +0 -139
  148. package/styled-components/es/components/Range/Range.styles.js +0 -31
  149. package/styled-components/es/components/Range/Range.tokens.js +0 -97
  150. package/styled-components/es/components/Range/Range.types.js +0 -1
  151. package/styled-components/es/components/Range/index.js +0 -2
  152. package/styled-components/es/components/Range/utils/index.js +0 -16
  153. package/styled-components/es/components/Range/variations/_disabled/base.js +0 -3
  154. package/styled-components/es/components/Range/variations/_disabled/tokens.json +0 -4
  155. package/styled-components/es/components/Range/variations/_readonly/base.js +0 -4
  156. package/styled-components/es/components/Range/variations/_readonly/tokens.json +0 -4
  157. package/styled-components/es/components/Range/variations/_size/base.js +0 -4
  158. package/styled-components/es/components/Range/variations/_size/tokens.json +0 -26
  159. package/styled-components/es/components/Range/variations/_view/base.js +0 -4
  160. package/styled-components/es/components/Range/variations/_view/tokens.json +0 -6
  161. package/styled-components/es/examples/plasma_b2c/components/Range/Range.config.js +0 -25
  162. package/styled-components/es/examples/plasma_b2c/components/Range/Range.js +0 -5
  163. package/styled-components/es/examples/plasma_b2c/components/Range/Range.stories.tsx +0 -312
  164. package/styled-components/es/examples/plasma_web/components/Range/Range.config.js +0 -25
  165. package/styled-components/es/examples/plasma_web/components/Range/Range.js +0 -5
  166. package/styled-components/es/examples/plasma_web/components/Range/Range.stories.tsx +0 -312
  167. package/types/components/Range/Range.d.ts +0 -31
  168. package/types/components/Range/Range.d.ts.map +0 -1
  169. package/types/components/Range/Range.styles.d.ts +0 -48
  170. package/types/components/Range/Range.styles.d.ts.map +0 -1
  171. package/types/components/Range/Range.tokens.d.ts +0 -98
  172. package/types/components/Range/Range.tokens.d.ts.map +0 -1
  173. package/types/components/Range/Range.types.d.ts +0 -143
  174. package/types/components/Range/Range.types.d.ts.map +0 -1
  175. package/types/components/Range/index.d.ts +0 -4
  176. package/types/components/Range/index.d.ts.map +0 -1
  177. package/types/components/Range/utils/index.d.ts +0 -5
  178. package/types/components/Range/utils/index.d.ts.map +0 -1
  179. package/types/components/Range/variations/_disabled/base.d.ts +0 -2
  180. package/types/components/Range/variations/_disabled/base.d.ts.map +0 -1
  181. package/types/components/Range/variations/_readonly/base.d.ts +0 -2
  182. package/types/components/Range/variations/_readonly/base.d.ts.map +0 -1
  183. package/types/components/Range/variations/_size/base.d.ts +0 -2
  184. package/types/components/Range/variations/_size/base.d.ts.map +0 -1
  185. package/types/components/Range/variations/_view/base.d.ts +0 -2
  186. package/types/components/Range/variations/_view/base.d.ts.map +0 -1
  187. package/types/examples/plasma_b2c/components/Range/Range.config.d.ts +0 -24
  188. package/types/examples/plasma_b2c/components/Range/Range.config.d.ts.map +0 -1
  189. package/types/examples/plasma_b2c/components/Range/Range.d.ts +0 -127
  190. package/types/examples/plasma_b2c/components/Range/Range.d.ts.map +0 -1
  191. package/types/examples/plasma_web/components/Range/Range.config.d.ts +0 -24
  192. package/types/examples/plasma_web/components/Range/Range.config.d.ts.map +0 -1
  193. package/types/examples/plasma_web/components/Range/Range.d.ts +0 -127
  194. package/types/examples/plasma_web/components/Range/Range.d.ts.map +0 -1
@@ -1,146 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
6
- var React = require('react');
7
- var index$1 = require('../../utils/index.js');
8
- var base$1 = require('./variations/_size/base.js');
9
- var base = require('./variations/_view/base.js');
10
- var base$2 = require('./variations/_disabled/base.js');
11
- var base$3 = require('./variations/_readonly/base.js');
12
- var index = require('./utils/index.js');
13
- var Range_styles = require('./Range.styles.js');
14
- var Range_tokens = require('./Range.tokens.js');
15
-
16
- var _StyledDivider;
17
- var _excluded = ["label", "leftHelper", "contentLeft", "contentRight", "view", "size", "readOnly", "disabled", "dividerVariant", "dividerIcon", "firstValue", "secondValue", "firstValueError", "secondValueError", "firstValueSuccess", "secondValueSuccess", "firstPlaceholder", "secondPlaceholder", "firstTextfieldContentLeft", "firstTextfieldContentRight", "secondTextfieldContentLeft", "secondTextfieldContentRight", "firstTextfieldTextBefore", "secondTextfieldTextBefore", "firstTextfieldTextAfter", "secondTextfieldTextAfter", "onChangeFirstValue", "onChangeSecondValue", "onSearchFirstValue", "onSearchSecondValue", "onFocusFirstTextfield", "onFocusSecondTextfield", "onBlurFirstTextfield", "onBlurSecondTextfield"];
18
- var rangeRoot = function rangeRoot(Root) {
19
- return /*#__PURE__*/React.forwardRef(function (_ref, ref) {
20
- var _StyledDivider2;
21
- var label = _ref.label,
22
- leftHelper = _ref.leftHelper,
23
- contentLeft = _ref.contentLeft,
24
- contentRight = _ref.contentRight,
25
- view = _ref.view,
26
- size = _ref.size,
27
- _ref$readOnly = _ref.readOnly,
28
- readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
29
- _ref$disabled = _ref.disabled,
30
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
31
- _ref$dividerVariant = _ref.dividerVariant,
32
- dividerVariant = _ref$dividerVariant === void 0 ? 'dash' : _ref$dividerVariant,
33
- dividerIcon = _ref.dividerIcon,
34
- firstValue = _ref.firstValue,
35
- secondValue = _ref.secondValue,
36
- firstValueError = _ref.firstValueError,
37
- secondValueError = _ref.secondValueError,
38
- firstValueSuccess = _ref.firstValueSuccess,
39
- secondValueSuccess = _ref.secondValueSuccess,
40
- firstPlaceholder = _ref.firstPlaceholder,
41
- secondPlaceholder = _ref.secondPlaceholder,
42
- firstTextfieldContentLeft = _ref.firstTextfieldContentLeft,
43
- firstTextfieldContentRight = _ref.firstTextfieldContentRight,
44
- secondTextfieldContentLeft = _ref.secondTextfieldContentLeft,
45
- secondTextfieldContentRight = _ref.secondTextfieldContentRight,
46
- firstTextfieldTextBefore = _ref.firstTextfieldTextBefore,
47
- secondTextfieldTextBefore = _ref.secondTextfieldTextBefore,
48
- firstTextfieldTextAfter = _ref.firstTextfieldTextAfter,
49
- secondTextfieldTextAfter = _ref.secondTextfieldTextAfter,
50
- onChangeFirstValue = _ref.onChangeFirstValue,
51
- onChangeSecondValue = _ref.onChangeSecondValue,
52
- onSearchFirstValue = _ref.onSearchFirstValue,
53
- onSearchSecondValue = _ref.onSearchSecondValue,
54
- onFocusFirstTextfield = _ref.onFocusFirstTextfield,
55
- onFocusSecondTextfield = _ref.onFocusSecondTextfield,
56
- onBlurFirstTextfield = _ref.onBlurFirstTextfield,
57
- onBlurSecondTextfield = _ref.onBlurSecondTextfield,
58
- rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
59
- var rangeErrorClass = firstValueError && secondValueError ? Range_tokens.classes.rangeError : undefined;
60
- var firstValueErrorClass = !rangeErrorClass && firstValueError ? Range_tokens.classes.rangeValueError : undefined;
61
- var secondValueErrorClass = !rangeErrorClass && secondValueError ? Range_tokens.classes.rangeValueError : undefined;
62
- var rangeSuccessClass = firstValueSuccess && secondValueSuccess ? Range_tokens.classes.rangeSuccess : undefined;
63
- var firstValueSuccessClass = !rangeSuccessClass && firstValueSuccess ? Range_tokens.classes.rangeValueSuccess : undefined;
64
- var secondValueSuccessClass = !rangeSuccessClass && secondValueSuccess ? Range_tokens.classes.rangeValueSuccess : undefined;
65
- var handleChangeFirstValue = React.useCallback(index.getChangeHandler(onChangeFirstValue, disabled, readOnly), [onChangeFirstValue, disabled, readOnly]);
66
- var handleChangeSecondValue = React.useCallback(index.getChangeHandler(onChangeSecondValue, disabled, readOnly), [onChangeSecondValue, disabled, readOnly]);
67
- var handleSearchFirstValue = React.useCallback(index.getSearchHandler(onSearchFirstValue, disabled, readOnly), [onSearchFirstValue, disabled, readOnly]);
68
- var handleSearchSecondValue = React.useCallback(index.getSearchHandler(onSearchSecondValue, disabled, readOnly), [onSearchFirstValue, disabled, readOnly]);
69
- var Divider = React.useMemo(function () {
70
- if (dividerVariant === 'none') {
71
- return null;
72
- }
73
- if (dividerVariant === 'dash') {
74
- return _StyledDivider || (_StyledDivider = /*#__PURE__*/React.createElement(Range_styles.StyledDivider, null, "-"));
75
- }
76
- return _StyledDivider2 || (_StyledDivider2 = /*#__PURE__*/React.createElement(Range_styles.StyledDivider, null, dividerIcon));
77
- }, [dividerVariant, dividerIcon]);
78
- return /*#__PURE__*/React.createElement(Root, _rollupPluginBabelHelpers.extends({
79
- view: view,
80
- size: size,
81
- disabled: disabled,
82
- readOnly: !disabled && readOnly,
83
- ref: ref
84
- }, rest), label && /*#__PURE__*/React.createElement(Range_styles.StyledLabel, null, label), /*#__PURE__*/React.createElement(Range_styles.ContentWrapper, {
85
- className: index$1.cx(rangeErrorClass, rangeSuccessClass)
86
- }, contentLeft && /*#__PURE__*/React.createElement(Range_styles.StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(Range_styles.StyledInput, {
87
- className: index$1.cx(firstValueErrorClass, firstValueSuccessClass),
88
- value: firstValue,
89
- readOnly: readOnly,
90
- disabled: disabled,
91
- placeholder: firstPlaceholder,
92
- contentLeft: firstTextfieldContentLeft,
93
- contentRight: firstTextfieldContentRight,
94
- textBefore: firstTextfieldTextBefore,
95
- textAfter: firstTextfieldTextAfter,
96
- onChange: handleChangeFirstValue,
97
- onSearch: handleSearchFirstValue,
98
- onFocus: onFocusFirstTextfield,
99
- onBlur: onBlurFirstTextfield
100
- }), Divider, /*#__PURE__*/React.createElement(Range_styles.StyledInput, {
101
- className: index$1.cx(secondValueErrorClass, secondValueSuccessClass),
102
- value: secondValue,
103
- readOnly: readOnly,
104
- disabled: disabled,
105
- placeholder: secondPlaceholder,
106
- contentLeft: secondTextfieldContentLeft,
107
- contentRight: secondTextfieldContentRight,
108
- textBefore: secondTextfieldTextBefore,
109
- textAfter: secondTextfieldTextAfter,
110
- onChange: handleChangeSecondValue,
111
- onSearch: handleSearchSecondValue,
112
- onFocus: onFocusSecondTextfield,
113
- onBlur: onBlurSecondTextfield
114
- }), contentRight && /*#__PURE__*/React.createElement(Range_styles.StyledContentRight, null, contentRight)), leftHelper && /*#__PURE__*/React.createElement(Range_styles.LeftHelper, null, leftHelper));
115
- });
116
- };
117
- var rangeConfig = {
118
- name: 'Range',
119
- tag: 'div',
120
- layout: rangeRoot,
121
- base: Range_styles.base,
122
- variations: {
123
- view: {
124
- css: base.base
125
- },
126
- size: {
127
- css: base$1.base
128
- },
129
- disabled: {
130
- css: base$2.base,
131
- attrs: true
132
- },
133
- readOnly: {
134
- css: base$3.base,
135
- attrs: true
136
- }
137
- },
138
- defaults: {
139
- size: 'm',
140
- view: 'default'
141
- }
142
- };
143
-
144
- exports.rangeConfig = rangeConfig;
145
- exports.rangeRoot = rangeRoot;
146
- //# sourceMappingURL=Range.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Range.js","sources":["../../../src/components/Range/Range.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useMemo } from 'react';\n\nimport type { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport type { RangeProps } from './Range.types';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport { base as readOnlyCSS } from './variations/_readonly/base';\nimport { getChangeHandler, getSearchHandler } from './utils';\nimport {\n ContentWrapper,\n LeftHelper,\n StyledContentLeft,\n StyledContentRight,\n StyledDivider,\n StyledInput,\n StyledLabel,\n base,\n} from './Range.styles';\nimport { classes } from './Range.tokens';\n\nexport const rangeRoot = (Root: RootProps<HTMLDivElement, RangeProps>) =>\n forwardRef<HTMLInputElement, RangeProps>(\n (\n {\n label,\n leftHelper,\n contentLeft,\n contentRight,\n view,\n size,\n readOnly = false,\n disabled = false,\n\n dividerVariant = 'dash',\n dividerIcon,\n\n firstValue,\n secondValue,\n firstValueError,\n secondValueError,\n firstValueSuccess,\n secondValueSuccess,\n firstPlaceholder,\n secondPlaceholder,\n firstTextfieldContentLeft,\n firstTextfieldContentRight,\n secondTextfieldContentLeft,\n secondTextfieldContentRight,\n firstTextfieldTextBefore,\n secondTextfieldTextBefore,\n firstTextfieldTextAfter,\n secondTextfieldTextAfter,\n\n onChangeFirstValue,\n onChangeSecondValue,\n onSearchFirstValue,\n onSearchSecondValue,\n onFocusFirstTextfield,\n onFocusSecondTextfield,\n onBlurFirstTextfield,\n onBlurSecondTextfield,\n\n ...rest\n },\n ref,\n ) => {\n const rangeErrorClass = firstValueError && secondValueError ? classes.rangeError : undefined;\n const firstValueErrorClass = !rangeErrorClass && firstValueError ? classes.rangeValueError : undefined;\n const secondValueErrorClass = !rangeErrorClass && secondValueError ? classes.rangeValueError : undefined;\n const rangeSuccessClass = firstValueSuccess && secondValueSuccess ? classes.rangeSuccess : undefined;\n const firstValueSuccessClass =\n !rangeSuccessClass && firstValueSuccess ? classes.rangeValueSuccess : undefined;\n const secondValueSuccessClass =\n !rangeSuccessClass && secondValueSuccess ? classes.rangeValueSuccess : undefined;\n\n const handleChangeFirstValue = useCallback(getChangeHandler(onChangeFirstValue, disabled, readOnly), [\n onChangeFirstValue,\n disabled,\n readOnly,\n ]);\n\n const handleChangeSecondValue = useCallback(getChangeHandler(onChangeSecondValue, disabled, readOnly), [\n onChangeSecondValue,\n disabled,\n readOnly,\n ]);\n\n const handleSearchFirstValue = useCallback(getSearchHandler(onSearchFirstValue, disabled, readOnly), [\n onSearchFirstValue,\n disabled,\n readOnly,\n ]);\n\n const handleSearchSecondValue = useCallback(getSearchHandler(onSearchSecondValue, disabled, readOnly), [\n onSearchFirstValue,\n disabled,\n readOnly,\n ]);\n\n const Divider = useMemo(() => {\n if (dividerVariant === 'none') {\n return null;\n }\n\n if (dividerVariant === 'dash') {\n return <StyledDivider>-</StyledDivider>;\n }\n\n return <StyledDivider>{dividerIcon}</StyledDivider>;\n }, [dividerVariant, dividerIcon]);\n\n return (\n <Root view={view} size={size} disabled={disabled} readOnly={!disabled && readOnly} ref={ref} {...rest}>\n {label && <StyledLabel>{label}</StyledLabel>}\n <ContentWrapper className={cx(rangeErrorClass, rangeSuccessClass)}>\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n <StyledInput\n className={cx(firstValueErrorClass, firstValueSuccessClass)}\n value={firstValue}\n readOnly={readOnly}\n disabled={disabled}\n placeholder={firstPlaceholder}\n contentLeft={firstTextfieldContentLeft}\n contentRight={firstTextfieldContentRight}\n textBefore={firstTextfieldTextBefore}\n textAfter={firstTextfieldTextAfter}\n onChange={handleChangeFirstValue}\n onSearch={handleSearchFirstValue}\n onFocus={onFocusFirstTextfield}\n onBlur={onBlurFirstTextfield}\n />\n {Divider}\n <StyledInput\n className={cx(secondValueErrorClass, secondValueSuccessClass)}\n value={secondValue}\n readOnly={readOnly}\n disabled={disabled}\n placeholder={secondPlaceholder}\n contentLeft={secondTextfieldContentLeft}\n contentRight={secondTextfieldContentRight}\n textBefore={secondTextfieldTextBefore}\n textAfter={secondTextfieldTextAfter}\n onChange={handleChangeSecondValue}\n onSearch={handleSearchSecondValue}\n onFocus={onFocusSecondTextfield}\n onBlur={onBlurSecondTextfield}\n />\n {contentRight && <StyledContentRight>{contentRight}</StyledContentRight>}\n </ContentWrapper>\n {leftHelper && <LeftHelper>{leftHelper}</LeftHelper>}\n </Root>\n );\n },\n );\n\nexport const rangeConfig = {\n name: 'Range',\n tag: 'div',\n layout: rangeRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n readOnly: {\n css: readOnlyCSS,\n attrs: true,\n },\n },\n defaults: {\n size: 'm',\n view: 'default',\n },\n};\n"],"names":["rangeRoot","Root","forwardRef","_ref","ref","_StyledDivider2","label","leftHelper","contentLeft","contentRight","view","size","_ref$readOnly","readOnly","_ref$disabled","disabled","_ref$dividerVariant","dividerVariant","dividerIcon","firstValue","secondValue","firstValueError","secondValueError","firstValueSuccess","secondValueSuccess","firstPlaceholder","secondPlaceholder","firstTextfieldContentLeft","firstTextfieldContentRight","secondTextfieldContentLeft","secondTextfieldContentRight","firstTextfieldTextBefore","secondTextfieldTextBefore","firstTextfieldTextAfter","secondTextfieldTextAfter","onChangeFirstValue","onChangeSecondValue","onSearchFirstValue","onSearchSecondValue","onFocusFirstTextfield","onFocusSecondTextfield","onBlurFirstTextfield","onBlurSecondTextfield","rest","_objectWithoutProperties","_excluded","rangeErrorClass","classes","rangeError","undefined","firstValueErrorClass","rangeValueError","secondValueErrorClass","rangeSuccessClass","rangeSuccess","firstValueSuccessClass","rangeValueSuccess","secondValueSuccessClass","handleChangeFirstValue","useCallback","getChangeHandler","handleChangeSecondValue","handleSearchFirstValue","getSearchHandler","handleSearchSecondValue","Divider","useMemo","_StyledDivider","React","createElement","StyledDivider","_extends","StyledLabel","ContentWrapper","className","cx","StyledContentLeft","StyledInput","value","placeholder","textBefore","textAfter","onChange","onSearch","onFocus","onBlur","StyledContentRight","LeftHelper","rangeConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","disabledCSS","attrs","readOnlyCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;IAuBaA,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAA2C,EAAA;AAAA,EAAA,oBACjEC,gBAAU,CACN,UAAAC,IAAA,EA0CIC,GAAG,EACF;AAAA,IAAA,IAAAC,eAAA,CAAA;AAAA,IAAA,IAzCGC,KAAK,GAAAH,IAAA,CAALG,KAAK;MACLC,UAAU,GAAAJ,IAAA,CAAVI,UAAU;MACVC,WAAW,GAAAL,IAAA,CAAXK,WAAW;MACXC,YAAY,GAAAN,IAAA,CAAZM,YAAY;MACZC,IAAI,GAAAP,IAAA,CAAJO,IAAI;MACJC,IAAI,GAAAR,IAAA,CAAJQ,IAAI;MAAAC,aAAA,GAAAT,IAAA,CACJU,QAAQ;AAARA,MAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,aAAA;MAAAE,aAAA,GAAAX,IAAA,CAChBY,QAAQ;AAARA,MAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,aAAA;MAAAE,mBAAA,GAAAb,IAAA,CAEhBc,cAAc;AAAdA,MAAAA,cAAc,GAAAD,mBAAA,KAAG,KAAA,CAAA,GAAA,MAAM,GAAAA,mBAAA;MACvBE,WAAW,GAAAf,IAAA,CAAXe,WAAW;MAEXC,UAAU,GAAAhB,IAAA,CAAVgB,UAAU;MACVC,WAAW,GAAAjB,IAAA,CAAXiB,WAAW;MACXC,eAAe,GAAAlB,IAAA,CAAfkB,eAAe;MACfC,gBAAgB,GAAAnB,IAAA,CAAhBmB,gBAAgB;MAChBC,iBAAiB,GAAApB,IAAA,CAAjBoB,iBAAiB;MACjBC,kBAAkB,GAAArB,IAAA,CAAlBqB,kBAAkB;MAClBC,gB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,UAAU,EAAE;AACRnF,IAAAA,IAAI,EAAE;AACFoF,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACDpF,IAAAA,IAAI,EAAE;AACFmF,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACDjF,IAAAA,QAAQ,EAAE;AACN+E,MAAAA,GAAG,EAAEG,WAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;KACV;AACDrF,IAAAA,QAAQ,EAAE;AACNiF,MAAAA,GAAG,EAAEK,WAAW;AAChBD,MAAAA,KAAK,EAAE,IAAA;AACX,KAAA;GACH;AACDE,EAAAA,QAAQ,EAAE;AACNzF,IAAAA,IAAI,EAAE,GAAG;AACTD,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;;"}
@@ -1,63 +0,0 @@
1
- import './Range.styles_mc4w65.css';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var react = require('@linaria/react');
7
- require('@linaria/core');
8
- var common = require('../../engines/common.js');
9
- var TextField$1 = require('../TextField/TextField.js');
10
-
11
- var mergedConfig = /*#__PURE__*/common.mergeConfig(TextField$1.textFieldConfig);
12
- var TextField = /*#__PURE__*/common.component(mergedConfig);
13
-
14
- // NOTE: переопределение токенов TextField
15
- var _exp = function _exp() {
16
- return TextField;
17
- };
18
- var StyledInput = /*#__PURE__*/react.styled(_exp())({
19
- name: "StyledInput",
20
- "class": "s1k2erwt",
21
- propsAsIs: true
22
- });
23
- var base = "b16kyj37";
24
- var StyledLabel = /*#__PURE__*/react.styled('label')({
25
- name: "StyledLabel",
26
- "class": "s14q3826",
27
- propsAsIs: false
28
- });
29
- var LeftHelper = /*#__PURE__*/react.styled('div')({
30
- name: "LeftHelper",
31
- "class": "l1fwucr5",
32
- propsAsIs: false
33
- });
34
- var ContentWrapper = /*#__PURE__*/react.styled('div')({
35
- name: "ContentWrapper",
36
- "class": "czi0aji",
37
- propsAsIs: false
38
- });
39
- var StyledDivider = /*#__PURE__*/react.styled('div')({
40
- name: "StyledDivider",
41
- "class": "s1e6rwfy",
42
- propsAsIs: false
43
- });
44
- var StyledContentLeft = /*#__PURE__*/react.styled('div')({
45
- name: "StyledContentLeft",
46
- "class": "sfxtxl2",
47
- propsAsIs: false
48
- });
49
- var StyledContentRight = /*#__PURE__*/react.styled('div')({
50
- name: "StyledContentRight",
51
- "class": "s1hiyoiq",
52
- propsAsIs: false
53
- });
54
-
55
- exports.ContentWrapper = ContentWrapper;
56
- exports.LeftHelper = LeftHelper;
57
- exports.StyledContentLeft = StyledContentLeft;
58
- exports.StyledContentRight = StyledContentRight;
59
- exports.StyledDivider = StyledDivider;
60
- exports.StyledInput = StyledInput;
61
- exports.StyledLabel = StyledLabel;
62
- exports.base = base;
63
- //# sourceMappingURL=Range.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Range.styles.js","sources":["../../../src/components/Range/Range.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { component, mergeConfig } from '../../engines';\nimport { textFieldConfig, textFieldTokens } from '../TextField';\n\nimport { classes, tokens } from './Range.tokens';\n\nconst mergedConfig = mergeConfig(textFieldConfig);\nconst TextField = component(mergedConfig);\n\n// NOTE: переопределение токенов TextField\nexport const StyledInput = styled(TextField)`\n flex: 1;\n \n ${textFieldTokens.color}: var(${tokens.textFieldColor});\n ${textFieldTokens.placeholderColor}: var(${tokens.textFieldPlaceholderColor});\n ${textFieldTokens.caretColor}: var(${tokens.textFieldCaretColor});\n ${textFieldTokens.focusColor}: var(${tokens.textFieldFocusColor});\n\n ${textFieldTokens.backgroundColor}: var(${tokens.textFieldBackgroundColor});\n ${textFieldTokens.backgroundColorHover}: var(${tokens.textFieldBackgroundColorHover});\n ${textFieldTokens.backgroundColorFocus}: var(${tokens.textFieldBackgroundColorFocus});\n\n ${textFieldTokens.borderColor}: var(${tokens.textFieldBorderColor});\n ${textFieldTokens.borderColorHover}: var(${tokens.textFieldBorderColorHover});\n ${textFieldTokens.borderColorFocus}: var(${tokens.textFieldBorderColorFocus});\n\n ${textFieldTokens.colorReadOnly}: var(${tokens.textFieldColorReadOnly});\n ${textFieldTokens.backgroundColorReadOnly}: var(${tokens.textFieldBackgroundColorReadOnly});\n ${textFieldTokens.borderColorReadOnly}: var(${tokens.textFieldBorderColorReadOnly});\n ${textFieldTokens.placeholderColorReadOnly}: var(${tokens.textFieldPlaceholderColorReadOnly});\n\n ${textFieldTokens.height}: var(${tokens.textFieldHeight});\n ${textFieldTokens.borderWidth}: var(${tokens.textFieldBorderWidth});\n ${textFieldTokens.borderRadius}: var(${tokens.textFieldBorderRadius});\n\n ${textFieldTokens.padding}: var(${tokens.textFieldPadding});\n\n ${textFieldTokens.leftContentMargin}: var(${tokens.textFieldLeftContentMargin});\n ${textFieldTokens.rightContentMargin}: var(${tokens.textFieldRightContentMargin});\n\n ${textFieldTokens.fontFamily}: var(${tokens.textFieldFontFamily});\n ${textFieldTokens.fontSize}: var(${tokens.textFieldFontSize});\n ${textFieldTokens.fontStyle}: var(${tokens.textFieldFontStyle});\n ${textFieldTokens.fontWeight}: var(${tokens.textFieldFontWeight});\n ${textFieldTokens.letterSpacing}: var(${tokens.textFieldLetterSpacing});\n ${textFieldTokens.lineHeight}: var(${tokens.textFieldLineHeight});\n\n ${textFieldTokens.disabledOpacity}: var(${tokens.disabledOpacity});\n \n ${textFieldTokens.textBeforeColor}: var(${tokens.textFieldTextBeforeColor});\n ${textFieldTokens.textAfterColor}: var(${tokens.textFieldTextAfterColor});\n ${textFieldTokens.textBeforeMargin}: var(${tokens.textFieldTextBeforeMargin});\n ${textFieldTokens.textAfterMargin}: var(${tokens.textFieldTextAfterMargin});\n\n &.${classes.rangeValueError} {\n ${textFieldTokens.backgroundColor}: var(${tokens.textFieldBackgroundErrorColor});\n ${textFieldTokens.backgroundColorHover}: var(${tokens.textFieldBackgroundErrorColorHover});\n ${textFieldTokens.backgroundColorFocus}: var(${tokens.textFieldBackgroundErrorColorFocus});\n \n ${textFieldTokens.borderColor}: var(${tokens.textFieldBorderColorError});\n ${textFieldTokens.borderColorHover}: var(${tokens.textFieldBorderColorErrorHover});\n ${textFieldTokens.borderColorFocus}: var(${tokens.textFieldBorderColorErrorFocus});\n }\n\n &.${classes.rangeValueSuccess} {\n ${textFieldTokens.backgroundColor}: var(${tokens.textFieldBackgroundSuccessColor});\n ${textFieldTokens.backgroundColorHover}: var(${tokens.textFieldBackgroundSuccessColorHover});\n ${textFieldTokens.backgroundColorFocus}: var(${tokens.textFieldBackgroundSuccessColorFocus});\n \n ${textFieldTokens.borderColor}: var(${tokens.textFieldBorderColorSuccess});\n ${textFieldTokens.borderColorHover}: var(${tokens.textFieldBorderColorSuccessHover});\n ${textFieldTokens.borderColorFocus}: var(${tokens.textFieldBorderColorSuccessFocus});\n }\n`;\n\nexport const base = css``;\n\nexport const StyledLabel = styled.label``;\n\nexport const LeftHelper = styled.div``;\n\nexport const ContentWrapper = styled.div`\n display: flex;\n align-items: center;\n`;\n\nexport const StyledDivider = styled.div``;\n\nexport const StyledContentLeft = styled.div``;\n\nexport const StyledContentRight = styled.div``;\n"],"names":["mergedConfig","mergeConfig","textFieldConfig","TextField","component","_exp","StyledInput","styled","name","class","propsAsIs","base","StyledLabel","LeftHelper","ContentWrapper","StyledDivider","StyledContentLeft","StyledContentRight"],"mappings":";;;;;;;;;AAQA,IAAMA,YAAY,gBAAGC,kBAAW,CAACC,2BAAe,CAAC,CAAA;AACjD,IAAMC,SAAS,gBAAGC,gBAAS,CAACJ,YAAY,CAAC,CAAA;;AAEzC;AAAA,IAAAK,IAAA,GAVkBA,SAUlBA,IAAAA,GAAA;AAAA,EAAA,OACkCF,SAAS,CAAA;AAAA,CAAA,CAAA;AAApC,IAAMG,WAAW,gBAAGC,YAAM,CAAAF,IAAA,EAAA,CAAA,CAAA;AAAAG,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CA+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ma-range-textfield-placeholder-color);--plasma-textfield__caret-color:var(--plasma-range-textfield-caret-color);--plasma-textfield-focus-color:var(--plasma-range-textfield-focus-color);--plasma-textfield-bg-color:var(--plasma-range-textfield-background-color);--plasma-textfield-bg-color-hover:var(--plasma-range-textfield-background-color-hover);--plasma-textfield-bg-color-focus:var(--plasma-range-textfield-background-color-focus);--plasma-textfield-border-color:var(--plasma-range-textfield-border-color);--plasma-textfield-border-color-hover:var(--plasma-range-textfield-border-color-hover);--plasma-textfield-border-color-focus:var(--plasma-range-textfield-border-color-focus);--plasma-textfield-color-readonly:var(--plasma-range-textfield-color-readonly);--plasma-textfield-bg-color-readonly:var(--plasma-range-textfield-background-color-readonly);--plasma-textfield-border-color-readonly:var(--plasma-range-textfield-border-color-readonly);--plasma-textfield__placeholder-color-readonly:var(--plasma-range-textfield-placeholder-color-readonly);--plasma-textfield-height:var(--plasma-range-textfield-height);--plasmas-textfield-border-width:var(--plasma-range-textfield-border-width);--plasma-textfield-border-radius:var(--plasma-range-textfield-border-radius);--plasma-textfield-padding:var(--plasma-range-textfield-padding);--plasma-textfield__left-content-margin:var(--plasma-range-textfield__left-content-margin);--plasma-textfield__right-content-margin:var(--plasma-range-textfield__right-content-margin);--plasma-textfield-font-family:var(--plasma-range-textfield-font-family);--plasma-textfield-font-size:var(--plasma-range-textfield-font-size);--plasma-textfield-font-style:var(--plasma-range-textfield-font-style);--plasma-textfield-font-weight:var(--plasma-range-textfield-font-weight);--plasma-textfield-letter-spacing:var(--plasma-range-textfield-letter-spacing);--plasma-textfield-line-height:var(--plasma-range-textfield-line-height);--plasma-textfield-disabled-opacity:var(--plasma-range-disabled-opacity);--plasma-textfield__before-text-color:var(--plasma-range-textfield__before-text-color);--plasma-textfield__after-text-color:var(--plasma-range-textfield__after-text-color);--plasma-textfield__before-text-margin:var(--plasma-range-textfield__before-text-margin);--plasma-textfield__after-text-margin:var(--plasma-range-textfield__after-text-margin);}.s1k2erwt.range-value-error{--plasma-textfield-bg-color:var(--plasma-range-textfield-background-color-error);--plasma-textfield-bg-color-hover:var(--plasma-range-textfield-background-color-error-hover);--plasma-textfield-bg-color-focus:var(--plasma-range-textfield-background-color-error-focus);--plasma-textfield-border-color:var(--plasma-range-textfield-border-color-error);--plasma-textfield-border-color-hover:var(--plasma-range-textfield-border-color-error-hover);--plasma-textfield-border-color-focus:var(--plasma-range-textfield-border-color-error-focus);}.s1k2erwt.range-value-success{--plasma-textfield-bg-color:var(--plasma-range-textfield-background-color-success);--plasma-textfield-bg-color-hover:var(--plasma-range-textfield-background-color-success-hover);--plasma-textfield-bg-color-focus:var(--plasma-range-textfield-background-color-success-focus);--plasma-textfield-border-color:var(--plasma-range-textfield-border-color-success);--plasma-textfield-border-color-hover:var(--plasma-range-textfield-border-color-success-hover);--plasma-textfield-border-color-focus:var(--plasma-range-textfield-border-color-success-focus);}
2
-
3
-
4
-
5
- .czi0aji{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
6
-
7
-
8
-
@@ -1,105 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var classes = {
6
- rangeError: 'range-error',
7
- rangeValueError: 'range-value-error',
8
- rangeSuccess: 'range-success',
9
- rangeValueSuccess: 'range-value-success'
10
- };
11
- var tokens = {
12
- background: '--plasma-range-background',
13
- backgroundError: '--plasma-range-background-error',
14
- backgroundSuccess: '--plasma-range-background-success',
15
- backgroundReadOnly: '--plasma-range-background-readonly',
16
- borderRadius: '--plasma-range-border-radius',
17
- borderWidth: '--plasma-range-border-width',
18
- borderColor: '--plasma-range-border-color',
19
- borderColorError: '--plasma-range-border-color-error',
20
- borderColorSuccess: '--plasma-range-border-color-success',
21
- borderColorReadOnly: '--plasma-range-border-color-readonly',
22
- /** Токены разделителя */
23
- dividerColor: '--plasma-range__divider-color',
24
- dividerPadding: '--plasma-range__divider-padding',
25
- dividerFontFamily: '--plasma-range__divider-font-family',
26
- dividerFontStyle: '--plasma-range__divider-font-style',
27
- dividerFontSize: '--plasma-range__divider-font-size',
28
- dividerFontWeight: '--plasma-range__divider-font-weight',
29
- dividerLetterSpacing: '--plasma-range__divider-letter-spacing',
30
- dividerLineHeight: '--plasma-range__divider-line-height',
31
- /** Токены слотов для контента */
32
- leftContentMargin: '--plasma-range__left-content-margin',
33
- rightContentMargin: '--plasma-range__right-content-margin',
34
- /** Токены лейбла */
35
- labelColor: '--plasma-range__label-color',
36
- labelColorReadOnly: '--plasma-range__label-color-readonly',
37
- labelOffset: '--plasma-range__label-offset',
38
- labelFontFamily: '--plasma-range__label-font-family',
39
- labelFontStyle: '--plasma-range__label-font-style',
40
- labelFontSize: '--plasma-range__label-font-size',
41
- labelFontWeight: '--plasma-range__label-font-weight',
42
- labelLetterSpacing: '--plasma-range__label-letter-spacing',
43
- labelLineHeight: '--plasma-range__label-line-height',
44
- /** Токены вспомогательного текста */
45
- leftHelperColor: '--plasma-range__left-helper-color',
46
- leftHelperColorReadOnly: '--plasma-range__left-helper-color-readonly',
47
- leftHelperOffset: '--plasma-range__left-helper-offset',
48
- leftHelperFontFamily: '--plasma-range__left-helper-font-family',
49
- leftHelperFontStyle: '--plasma-range__left-helper-font-style',
50
- leftHelperFontSize: '--plasma-range__left-helper-font-size',
51
- leftHelperFontWeight: '--plasma-range__left-helper-font-weight',
52
- leftHelperLetterSpacing: '--plasma-range__left-helper-letter-spacing',
53
- leftHelperLineHeight: '--plasma-range__left-helper-line-height',
54
- /** Прозрачность для всего компонента в состоянии disabled */
55
- disabledOpacity: '--plasma-range-disabled-opacity',
56
- /** Цвет обводки поля ввода при фокусе */
57
- focusColor: '--plasma-range-focus-color',
58
- /** Токены полей ввода */
59
- textFieldColor: '--plasma-range-textfield-color',
60
- textFieldFocusColor: '--plasma-range-textfield-focus-color',
61
- textFieldPlaceholderColor: '--plasma-range-textfield-placeholder-color',
62
- textFieldCaretColor: '--plasma-range-textfield-caret-color',
63
- textFieldBackgroundColor: '--plasma-range-textfield-background-color',
64
- textFieldBackgroundColorHover: '--plasma-range-textfield-background-color-hover',
65
- textFieldBackgroundColorFocus: '--plasma-range-textfield-background-color-focus',
66
- textFieldBackgroundErrorColor: '--plasma-range-textfield-background-color-error',
67
- textFieldBackgroundErrorColorHover: '--plasma-range-textfield-background-color-error-hover',
68
- textFieldBackgroundErrorColorFocus: '--plasma-range-textfield-background-color-error-focus',
69
- textFieldBackgroundSuccessColor: '--plasma-range-textfield-background-color-success',
70
- textFieldBackgroundSuccessColorHover: '--plasma-range-textfield-background-color-success-hover',
71
- textFieldBackgroundSuccessColorFocus: '--plasma-range-textfield-background-color-success-focus',
72
- textFieldBorderColor: '--plasma-range-textfield-border-color',
73
- textFieldBorderColorHover: '--plasma-range-textfield-border-color-hover',
74
- textFieldBorderColorFocus: '--plasma-range-textfield-border-color-focus',
75
- textFieldBorderColorError: '--plasma-range-textfield-border-color-error',
76
- textFieldBorderColorErrorHover: '--plasma-range-textfield-border-color-error-hover',
77
- textFieldBorderColorErrorFocus: '--plasma-range-textfield-border-color-error-focus',
78
- textFieldBorderColorSuccess: '--plasma-range-textfield-border-color-success',
79
- textFieldBorderColorSuccessHover: '--plasma-range-textfield-border-color-success-hover',
80
- textFieldBorderColorSuccessFocus: '--plasma-range-textfield-border-color-success-focus',
81
- textFieldColorReadOnly: '--plasma-range-textfield-color-readonly',
82
- textFieldBackgroundColorReadOnly: '--plasma-range-textfield-background-color-readonly',
83
- textFieldBorderColorReadOnly: '--plasma-range-textfield-border-color-readonly',
84
- textFieldPlaceholderColorReadOnly: '--plasma-range-textfield-placeholder-color-readonly',
85
- textFieldHeight: '--plasma-range-textfield-height',
86
- textFieldBorderWidth: '--plasma-range-textfield-border-width',
87
- textFieldBorderRadius: '--plasma-range-textfield-border-radius',
88
- textFieldPadding: '--plasma-range-textfield-padding',
89
- textFieldLeftContentMargin: '--plasma-range-textfield__left-content-margin',
90
- textFieldRightContentMargin: '--plasma-range-textfield__right-content-margin',
91
- textFieldFontFamily: '--plasma-range-textfield-font-family',
92
- textFieldFontStyle: '--plasma-range-textfield-font-style',
93
- textFieldFontSize: '--plasma-range-textfield-font-size',
94
- textFieldFontWeight: '--plasma-range-textfield-font-weight',
95
- textFieldLetterSpacing: '--plasma-range-textfield-letter-spacing',
96
- textFieldLineHeight: '--plasma-range-textfield-line-height',
97
- textFieldTextBeforeColor: '--plasma-range-textfield__before-text-color',
98
- textFieldTextAfterColor: '--plasma-range-textfield__after-text-color',
99
- textFieldTextBeforeMargin: '--plasma-range-textfield__before-text-margin',
100
- textFieldTextAfterMargin: '--plasma-range-textfield__after-text-margin'
101
- };
102
-
103
- exports.classes = classes;
104
- exports.tokens = tokens;
105
- //# sourceMappingURL=Range.tokens.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Range.tokens.js","sources":["../../../src/components/Range/Range.tokens.ts"],"sourcesContent":["export const classes = {\n rangeError: 'range-error',\n rangeValueError: 'range-value-error',\n rangeSuccess: 'range-success',\n rangeValueSuccess: 'range-value-success',\n};\n\nexport const tokens = {\n background: '--plasma-range-background',\n backgroundError: '--plasma-range-background-error',\n backgroundSuccess: '--plasma-range-background-success',\n backgroundReadOnly: '--plasma-range-background-readonly',\n borderRadius: '--plasma-range-border-radius',\n borderWidth: '--plasma-range-border-width',\n borderColor: '--plasma-range-border-color',\n borderColorError: '--plasma-range-border-color-error',\n borderColorSuccess: '--plasma-range-border-color-success',\n borderColorReadOnly: '--plasma-range-border-color-readonly',\n\n /** Токены разделителя */\n dividerColor: '--plasma-range__divider-color',\n dividerPadding: '--plasma-range__divider-padding',\n dividerFontFamily: '--plasma-range__divider-font-family',\n dividerFontStyle: '--plasma-range__divider-font-style',\n dividerFontSize: '--plasma-range__divider-font-size',\n dividerFontWeight: '--plasma-range__divider-font-weight',\n dividerLetterSpacing: '--plasma-range__divider-letter-spacing',\n dividerLineHeight: '--plasma-range__divider-line-height',\n\n /** Токены слотов для контента */\n leftContentMargin: '--plasma-range__left-content-margin',\n rightContentMargin: '--plasma-range__right-content-margin',\n\n /** Токены лейбла */\n labelColor: '--plasma-range__label-color',\n labelColorReadOnly: '--plasma-range__label-color-readonly',\n labelOffset: '--plasma-range__label-offset',\n\n labelFontFamily: '--plasma-range__label-font-family',\n labelFontStyle: '--plasma-range__label-font-style',\n labelFontSize: '--plasma-range__label-font-size',\n labelFontWeight: '--plasma-range__label-font-weight',\n labelLetterSpacing: '--plasma-range__label-letter-spacing',\n labelLineHeight: '--plasma-range__label-line-height',\n\n /** Токены вспомогательного текста */\n leftHelperColor: '--plasma-range__left-helper-color',\n leftHelperColorReadOnly: '--plasma-range__left-helper-color-readonly',\n leftHelperOffset: '--plasma-range__left-helper-offset',\n\n leftHelperFontFamily: '--plasma-range__left-helper-font-family',\n leftHelperFontStyle: '--plasma-range__left-helper-font-style',\n leftHelperFontSize: '--plasma-range__left-helper-font-size',\n leftHelperFontWeight: '--plasma-range__left-helper-font-weight',\n leftHelperLetterSpacing: '--plasma-range__left-helper-letter-spacing',\n leftHelperLineHeight: '--plasma-range__left-helper-line-height',\n\n /** Прозрачность для всего компонента в состоянии disabled */\n disabledOpacity: '--plasma-range-disabled-opacity',\n\n /** Цвет обводки поля ввода при фокусе */\n focusColor: '--plasma-range-focus-color',\n\n /** Токены полей ввода */\n textFieldColor: '--plasma-range-textfield-color',\n textFieldFocusColor: '--plasma-range-textfield-focus-color',\n textFieldPlaceholderColor: '--plasma-range-textfield-placeholder-color',\n textFieldCaretColor: '--plasma-range-textfield-caret-color',\n\n textFieldBackgroundColor: '--plasma-range-textfield-background-color',\n textFieldBackgroundColorHover: '--plasma-range-textfield-background-color-hover',\n textFieldBackgroundColorFocus: '--plasma-range-textfield-background-color-focus',\n textFieldBackgroundErrorColor: '--plasma-range-textfield-background-color-error',\n textFieldBackgroundErrorColorHover: '--plasma-range-textfield-background-color-error-hover',\n textFieldBackgroundErrorColorFocus: '--plasma-range-textfield-background-color-error-focus',\n textFieldBackgroundSuccessColor: '--plasma-range-textfield-background-color-success',\n textFieldBackgroundSuccessColorHover: '--plasma-range-textfield-background-color-success-hover',\n textFieldBackgroundSuccessColorFocus: '--plasma-range-textfield-background-color-success-focus',\n\n textFieldBorderColor: '--plasma-range-textfield-border-color',\n textFieldBorderColorHover: '--plasma-range-textfield-border-color-hover',\n textFieldBorderColorFocus: '--plasma-range-textfield-border-color-focus',\n textFieldBorderColorError: '--plasma-range-textfield-border-color-error',\n textFieldBorderColorErrorHover: '--plasma-range-textfield-border-color-error-hover',\n textFieldBorderColorErrorFocus: '--plasma-range-textfield-border-color-error-focus',\n textFieldBorderColorSuccess: '--plasma-range-textfield-border-color-success',\n textFieldBorderColorSuccessHover: '--plasma-range-textfield-border-color-success-hover',\n textFieldBorderColorSuccessFocus: '--plasma-range-textfield-border-color-success-focus',\n\n textFieldColorReadOnly: '--plasma-range-textfield-color-readonly',\n textFieldBackgroundColorReadOnly: '--plasma-range-textfield-background-color-readonly',\n textFieldBorderColorReadOnly: '--plasma-range-textfield-border-color-readonly',\n textFieldPlaceholderColorReadOnly: '--plasma-range-textfield-placeholder-color-readonly',\n\n textFieldHeight: '--plasma-range-textfield-height',\n textFieldBorderWidth: '--plasma-range-textfield-border-width',\n textFieldBorderRadius: '--plasma-range-textfield-border-radius',\n textFieldPadding: '--plasma-range-textfield-padding',\n textFieldLeftContentMargin: '--plasma-range-textfield__left-content-margin',\n textFieldRightContentMargin: '--plasma-range-textfield__right-content-margin',\n textFieldFontFamily: '--plasma-range-textfield-font-family',\n textFieldFontStyle: '--plasma-range-textfield-font-style',\n textFieldFontSize: '--plasma-range-textfield-font-size',\n textFieldFontWeight: '--plasma-range-textfield-font-weight',\n textFieldLetterSpacing: '--plasma-range-textfield-letter-spacing',\n textFieldLineHeight: '--plasma-range-textfield-line-height',\n\n textFieldTextBeforeColor: '--plasma-range-textfield__before-text-color',\n textFieldTextAfterColor: '--plasma-range-textfield__after-text-color',\n textFieldTextBeforeMargin: '--plasma-range-textfield__before-text-margin',\n textFieldTextAfterMargin: '--plasma-range-textfield__after-text-margin',\n};\n"],"names":["classes","rangeError","rangeValueError","rangeSuccess","rangeValueSuccess","tokens","background","backgroundError","backgroundSuccess","backgroundReadOnly","borderRadius","borderWidth","borderColor","borderColorError","borderColorSuccess","borderColorReadOnly","dividerColor","dividerPadding","dividerFontFamily","dividerFontStyle","dividerFontSize","dividerFontWeight","dividerLetterSpacing","dividerLineHeight","leftContentMargin","rightContentMargin","labelColor","labelColorReadOnly","labelOffset","labelFontFamily","labelFontStyle","labelFontSize","labelFontWeight","labelLetterSpacing","labelLineHeight","leftHelperColor","leftHelperColorReadOnly","leftHelperOffset","leftHelperFontFamily","leftHelperFontStyle","leftHelperFontSize","leftHelperFontWeight","leftHelperLetterSpacing","leftHelperLineHeight","disabledOpacity","focusColor","textFieldColor","textFieldFocusColor","textFieldPlaceholderColor","textFieldCaretColor","textFieldBackgroundColor","textFieldBackgroundColorHover","textFieldBackgroundColorFocus","textFieldBackgroundErrorColor","textFieldBackgroundErrorColorHover","textFieldBackgroundErrorColorFocus","textFieldBackgroundSuccessColor","textFieldBackgroundSuccessColorHover","textFieldBackgroundSuccessColorFocus","textFieldBorderColor","textFieldBorderColorHover","textFieldBorderColorFocus","textFieldBorderColorError","textFieldBorderColorErrorHover","textFieldBorderColorErrorFocus","textFieldBorderColorSuccess","textFieldBorderColorSuccessHover","textFieldBorderColorSuccessFocus","textFieldColorReadOnly","textFieldBackgroundColorReadOnly","textFieldBorderColorReadOnly","textFieldPlaceholderColorReadOnly","textFieldHeight","textFieldBorderWidth","textFieldBorderRadius","textFieldPadding","textFieldLeftContentMargin","textFieldRightContentMargin","textFieldFontFamily","textFieldFontStyle","textFieldFontSize","textFieldFontWeight","textFieldLetterSpacing","textFieldLineHeight","textFieldTextBeforeColor","textFieldTextAfterColor","textFieldTextBeforeMargin","textFieldTextAfterMargin"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,UAAU,EAAE,aAAa;AACzBC,E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AAEvFC,EAAAA,sBAAsB,EAAE,yCAAyC;AACjEC,EAAAA,gCAAgC,EAAE,oDAAoD;AACtFC,EAAAA,4BAA4B,EAAE,gDAAgD;AAC9EC,EAAAA,iCAAiC,EAAE,qDAAqD;AAExFC,EAAAA,eAAe,EAAE,iCAAiC;AAClDC,EAAAA,oBAAoB,EAAE,uCAAuC;AAC7DC,EAAAA,qBAAqB,EAAE,wCAAwC;AAC/DC,EAAAA,gBAAgB,EAAE,kCAAkC;AACpDC,EAAAA,0BAA0B,EAAE,+CAA+C;AAC3EC,EAAAA,2BAA2B,EAAE,gDAAgD;AAC7EC,EAAAA,mBAAmB,EAAE,sCAAsC;AAC3DC,EAAAA,kBAAkB,EAAE,qCAAqC;AACzDC,EAAAA,iBAAiB,EAAE,oCAAoC;AACvDC,EAAAA,mBAAmB,EAAE,sCAAsC;AAC3DC,EAAAA,sBAAsB,EAAE,yCAAyC;AACjEC,EAAAA,mBAAmB,EAAE,sCAAsC;AAE3DC,EAAAA,wBAAwB,EAAE,6CAA6C;AACvEC,EAAAA,uBAAuB,EAAE,4CAA4C;AACrEC,EAAAA,yBAAyB,EAAE,8CAA8C;AACzEC,EAAAA,wBAAwB,EAAE,6CAAA;AAC9B;;;;;"}
@@ -1,24 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var getChangeHandler = function getChangeHandler(changeHandler, disabled, readOnly) {
6
- return function (event) {
7
- if (disabled || readOnly) {
8
- return;
9
- }
10
- changeHandler === null || changeHandler === void 0 || changeHandler(event, event.target.value);
11
- };
12
- };
13
- var getSearchHandler = function getSearchHandler(searchHandler, disabled, readOnly) {
14
- return function (value, event) {
15
- if (disabled || readOnly) {
16
- return;
17
- }
18
- searchHandler === null || searchHandler === void 0 || searchHandler(event, value);
19
- };
20
- };
21
-
22
- exports.getChangeHandler = getChangeHandler;
23
- exports.getSearchHandler = getSearchHandler;
24
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Range/utils/index.ts"],"sourcesContent":["import type { ChangeEvent, KeyboardEvent } from 'react';\n\nimport type { BaseCallbackChangeInstance, BaseCallbackKeyboardInstance } from '../Range.types';\n\nexport const getChangeHandler = (\n changeHandler?: BaseCallbackChangeInstance,\n disabled?: boolean,\n readOnly?: boolean,\n) => (event: ChangeEvent<HTMLInputElement>) => {\n if (disabled || readOnly) {\n return;\n }\n\n changeHandler?.(event, event.target.value);\n};\n\nexport const getSearchHandler = (\n searchHandler?: BaseCallbackKeyboardInstance,\n disabled?: boolean,\n readOnly?: boolean,\n) => (value: string, event?: KeyboardEvent<HTMLInputElement>) => {\n if (disabled || readOnly) {\n return;\n }\n\n searchHandler?.(event as KeyboardEvent<HTMLInputElement>, value);\n};\n"],"names":["getChangeHandler","changeHandler","disabled","readOnly","event","target","value","getSearchHandler","searchHandler"],"mappings":";;;;AAIO,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CACzBC,aAA0C,EAC1CC,QAAkB,EAClBC,QAAkB,EAAA;EAAA,OACjB,UAACC,KAAoC,EAAK;IAC3C,IAAIF,QAAQ,IAAIC,QAAQ,EAAE;AACtB,MAAA,OAAA;AACJ,KAAA;AAEAF,IAAAA,aAAa,KAAbA,IAAAA,IAAAA,aAAa,KAAbA,KAAAA,CAAAA,IAAAA,aAAa,CAAGG,KAAK,EAAEA,KAAK,CAACC,MAAM,CAACC,KAAK,CAAC,CAAA;GAC7C,CAAA;AAAA,EAAA;AAEM,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CACzBC,aAA4C,EAC5CN,QAAkB,EAClBC,QAAkB,EAAA;AAAA,EAAA,OACjB,UAACG,KAAa,EAAEF,KAAuC,EAAK;IAC7D,IAAIF,QAAQ,IAAIC,QAAQ,EAAE;AACtB,MAAA,OAAA;AACJ,KAAA;IAEAK,aAAa,KAAA,IAAA,IAAbA,aAAa,KAAbA,KAAAA,CAAAA,IAAAA,aAAa,CAAGJ,KAAK,EAAqCE,KAAK,CAAC,CAAA;GACnE,CAAA;AAAA;;;;;"}
@@ -1,9 +0,0 @@
1
- import './base_1ufizo4.css';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var base = "brz2a7";
7
-
8
- exports.base = base;
9
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Range/variations/_disabled/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../../Range.tokens';\n\nexport const base = css`\n &[disabled] {\n opacity: var(${tokens.disabledOpacity});\n cursor: not-allowed;\n }\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAKhB;;;;"}
@@ -1 +0,0 @@
1
- .brz2a7[disabled]{opacity:var(--plasma-range-disabled-opacity);cursor:not-allowed;}
@@ -1,9 +0,0 @@
1
- import './base_hzmd8h.css';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var base = "b1l9fpln";
7
-
8
- exports.base = base;
9
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Range/variations/_readonly/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../../Range.tokens';\nimport { ContentWrapper, LeftHelper, StyledLabel } from '../../Range.styles';\n\nexport const base = css`\n &[readonly] {\n cursor: default;\n\n ${ContentWrapper} {\n background: var(${tokens.backgroundReadOnly});\n }\n\n ${StyledLabel} {\n display: block;\n color: var(${tokens.labelColorReadOnly});\n }\n\n ${LeftHelper} {\n color: var(${tokens.leftHelperColorReadOnly});\n }\n }\n`;\n"],"names":["base"],"mappings":";;;;AAKO,IAAMA,IAAI,GAiBhB;;;;"}
@@ -1 +0,0 @@
1
- .b1l9fpln[readonly]{cursor:default;}.b1l9fpln[readonly] .czi0aji{background:var(--plasma-range-background-readonly);}.b1l9fpln[readonly] .s14q3826{display:block;color:var(--plasma-range__label-color-readonly);}.b1l9fpln[readonly] .l1fwucr5{color:var(--plasma-range__left-helper-color-readonly);}
@@ -1,9 +0,0 @@
1
- import './base_f8ah3.css';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var base = "bc2if5b";
7
-
8
- exports.base = base;
9
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Range/variations/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../../Range.tokens';\nimport {\n StyledLabel,\n LeftHelper,\n StyledContentLeft,\n StyledContentRight,\n StyledDivider,\n ContentWrapper,\n} from '../../Range.styles';\n\nexport const base = css`\n ${ContentWrapper} {\n width: inherit;\n border-radius: var(${tokens.borderRadius});\n }\n\n ${StyledDivider} {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: var(${tokens.dividerPadding});\n font-family: var(${tokens.dividerFontFamily});\n font-size: var(${tokens.dividerFontSize});\n font-style: var(${tokens.dividerFontStyle});\n font-weight: var(${tokens.dividerFontWeight});\n letter-spacing: var(${tokens.dividerLetterSpacing});\n line-height: var(${tokens.dividerLineHeight});\n }\n\n ${StyledLabel} {\n margin: var(${tokens.labelOffset});\n font-family: var(${tokens.labelFontFamily});\n font-size: var(${tokens.labelFontSize});\n font-style: var(${tokens.labelFontStyle});\n font-weight: var(${tokens.labelFontWeight});\n letter-spacing: var(${tokens.labelLetterSpacing});\n line-height: var(${tokens.labelLineHeight});\n }\n\n ${StyledContentLeft} {\n margin: var(${tokens.leftContentMargin});\n }\n\n ${StyledContentRight} {\n margin: var(${tokens.rightContentMargin});\n }\n\n ${LeftHelper} {\n margin: var(${tokens.leftHelperOffset});\n\n font-family: var(${tokens.leftHelperFontFamily});\n font-size: var(${tokens.leftHelperFontSize});\n font-style: var(${tokens.leftHelperFontStyle});\n font-weight: var(${tokens.leftHelperFontWeight});\n letter-spacing: var(${tokens.leftHelperLetterSpacing});\n line-height: var(${tokens.leftHelperLineHeight});\n }\n`;\n"],"names":["base"],"mappings":";;;;AAYO,IAAMA,IAAI,GAgDhB;;;;"}
@@ -1 +0,0 @@
1
- .bc2if5b .czi0aji{width:inherit;border-radius:var(--plasma-range-border-radius);}.bc2if5b .s1e6rwfy{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%;padding:var(--plasma-range__divider-padding);font-family:var(--plasma-range__divider-font-family);font-size:var(--plasma-range__divider-font-size);font-style:var(--plasma-range__divider-font-style);font-weight:var(--plasma-range__divider-font-weight);-webkit-letter-spacing:var(--plasma-range__divider-letter-spacing);-moz-letter-spacing:var(--plasma-range__divider-letter-spacing);-ms-letter-spacing:var(--plasma-range__divider-letter-spacing);letter-spacing:var(--plasma-range__divider-letter-spacing);line-height:var(--plasma-range__divider-line-height);}.bc2if5b .s14q3826{margin:var(--plasma-range__label-offset);font-family:var(--plasma-range__label-font-family);font-size:var(--plasma-range__label-font-size);font-style:var(--plasma-range__label-font-style);font-weight:var(--plasma-range__label-font-weight);-webkit-letter-spacing:var(--plasma-range__label-letter-spacing);-moz-letter-spacing:var(--plasma-range__label-letter-spacing);-ms-letter-spacing:var(--plasma-range__label-letter-spacing);letter-spacing:var(--plasma-range__label-letter-spacing);line-height:var(--plasma-range__label-line-height);}.bc2if5b .sfxtxl2{margin:var(--plasma-range__left-content-margin);}.bc2if5b .s1hiyoiq{margin:var(--plasma-range__right-content-margin);}.bc2if5b .l1fwucr5{margin:var(--plasma-range__left-helper-offset);font-family:var(--plasma-range__left-helper-font-family);font-size:var(--plasma-range__left-helper-font-size);font-style:var(--plasma-range__left-helper-font-style);font-weight:var(--plasma-range__left-helper-font-weight);-webkit-letter-spacing:var(--plasma-range__left-helper-letter-spacing);-moz-letter-spacing:var(--plasma-range__left-helper-letter-spacing);-ms-letter-spacing:var(--plasma-range__left-helper-letter-spacing);letter-spacing:var(--plasma-range__left-helper-letter-spacing);line-height:var(--plasma-range__left-helper-line-height);}
@@ -1,9 +0,0 @@
1
- import './base_5iz3nr.css';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var base = "bfrw0i0";
7
-
8
- exports.base = base;
9
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Range/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes, tokens } from '../../Range.tokens';\nimport { StyledLabel, LeftHelper, StyledDivider, ContentWrapper } from '../../Range.styles';\n\nexport const base = css`\n ${ContentWrapper} {\n background-color: var(${tokens.background});\n box-shadow: inset 0 0 0 var(${tokens.borderWidth}) var(${tokens.borderColor});\n\n &.${classes.rangeError} {\n background-color: var(${tokens.backgroundError});\n box-shadow: inset 0 0 0 var(${tokens.borderWidth}) var(${tokens.borderColorError});\n }\n\n &.${classes.rangeSuccess} {\n background-color: var(${tokens.backgroundSuccess});\n box-shadow: inset 0 0 0 var(${tokens.borderWidth}) var(${tokens.borderColorSuccess});\n }\n }\n\n ${StyledDivider} {\n color: var(${tokens.dividerColor});\n }\n\n ${StyledLabel} {\n display: block;\n color: var(${tokens.labelColor});\n }\n\n ${LeftHelper} {\n color: var(${tokens.leftHelperColor});\n }\n`;\n"],"names":["base"],"mappings":";;;;AAKO,IAAMA,IAAI,GA4BhB;;;;"}
@@ -1 +0,0 @@
1
- .bfrw0i0 .czi0aji{background-color:var(--plasma-range-background);box-shadow:inset 0 0 0 var(--plasma-range-border-width) var(--plasma-range-border-color);}.bfrw0i0 .czi0aji.range-error{background-color:var(--plasma-range-background-error);box-shadow:inset 0 0 0 var(--plasma-range-border-width) var(--plasma-range-border-color-error);}.bfrw0i0 .czi0aji.range-success{background-color:var(--plasma-range-background-success);box-shadow:inset 0 0 0 var(--plasma-range-border-width) var(--plasma-range-border-color-success);}.bfrw0i0 .s1e6rwfy{color:var(--plasma-range__divider-color);}.bfrw0i0 .s14q3826{display:block;color:var(--plasma-range__label-color);}.bfrw0i0 .l1fwucr5{color:var(--plasma-range__left-helper-color);}
@@ -1 +0,0 @@
1
- .l8oinlg .io4bpie{padding:var(--plasma-textfield-placement_inner__content-padding);}.l8oinlg .suk2zst,.l8oinlg .s600610{padding:var(--plasma-textfield-placement_inner__content-padding);}.l8oinlg .io4bpie:focus ~ .l13qvwoy,.l8oinlg .io4bpie:not(:placeholder-shown) ~ .l13qvwoy{height:auto;padding:var(--plasma-textfield-placement_inner__label-padding);font-family:var(--plasma-textfield-placement_inner__label-font-family);font-size:var(--plasma-textfield-placement_inner__label-font-size);font-style:var(--plasma-textfield-placement_inner__label-font-style);font-weight:var(--plasma-textfield-placement_inner__label-font-weight);-webkit-letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);-moz-letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);-ms-letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);line-height:var(--plasma-textfield-placement_inner__label-line-height);}.l8oinlg .io4bpie:not(:focus)::-webkit-input-placeholder{color:transparent;}.l8oinlg .io4bpie:not(:focus)::-moz-placeholder{color:transparent;}.l8oinlg .io4bpie:not(:focus):-ms-input-placeholder{color:transparent;}.l8oinlg .io4bpie:not(:focus)::placeholder{color:transparent;}.l8oinlg .io4bpie:focus::-webkit-input-placeholder{color:transparent;}.l8oinlg .io4bpie:focus::-moz-placeholder{color:transparent;}.l8oinlg .io4bpie:focus:-ms-input-placeholder{color:transparent;}.l8oinlg .io4bpie:focus::placeholder{color:transparent;}.l8oinlg .l13qvwoy{color:var(--plasma-textfield__placeholder-color);pointer-events:none;position:absolute;top:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-transition:padding 0.1s ease-in-out,height 0s;transition:padding 0.1s ease-in-out,height 0s;height:var(--plasma-textfield-height);padding-top:calc(var(--plasma-textfield-height) / 4);padding-bottom:calc(var(--plasma-textfield-height) / 4);}