@salutejs/plasma-new-hope 0.81.0-canary.1208.9111977682.0 → 0.81.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) 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/TextField/TextField.config.js +8 -8
  47. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -2
  48. package/styled-components/cjs/index.js +0 -11
  49. package/styled-components/es/components/TextField/TextField.js +5 -11
  50. package/styled-components/es/components/TextField/TextField.styles.js +0 -6
  51. package/styled-components/es/components/TextField/TextField.tokens.js +0 -5
  52. package/styled-components/es/components/TextField/variations/_label-placement/inner.js +2 -2
  53. package/styled-components/es/components/TextField/variations/_size/base.js +2 -2
  54. package/styled-components/es/components/TextField/variations/_view/base.js +2 -2
  55. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +8 -8
  56. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -2
  57. package/styled-components/es/index.js +1 -2
  58. package/types/components/TextField/TextField.d.ts.map +1 -1
  59. package/types/components/TextField/TextField.styles.d.ts +0 -2
  60. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  61. package/types/components/TextField/TextField.tokens.d.ts +0 -5
  62. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  63. package/types/components/TextField/TextField.types.d.ts +0 -8
  64. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  65. package/types/components/TextField/variations/_label-placement/inner.d.ts.map +1 -1
  66. package/types/components/TextField/variations/_size/base.d.ts.map +1 -1
  67. package/types/components/TextField/variations/_view/base.d.ts.map +1 -1
  68. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +1 -1
  69. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +0 -4
  70. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  71. package/types/examples/plasma_web/components/TextField/TextField.d.ts +0 -4
  72. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  73. package/types/examples/sds_engineer/components/TextField/TextField.d.ts +0 -4
  74. package/types/examples/sds_engineer/components/TextField/TextField.d.ts.map +1 -1
  75. package/types/index.d.ts +0 -1
  76. package/types/index.d.ts.map +1 -1
  77. package/cjs/components/Range/Range.css +0 -63
  78. package/cjs/components/Range/Range.js +0 -146
  79. package/cjs/components/Range/Range.js.map +0 -1
  80. package/cjs/components/Range/Range.styles.js +0 -63
  81. package/cjs/components/Range/Range.styles.js.map +0 -1
  82. package/cjs/components/Range/Range.styles_mc4w65.css +0 -8
  83. package/cjs/components/Range/Range.tokens.js +0 -105
  84. package/cjs/components/Range/Range.tokens.js.map +0 -1
  85. package/cjs/components/Range/utils/index.js +0 -24
  86. package/cjs/components/Range/utils/index.js.map +0 -1
  87. package/cjs/components/Range/variations/_disabled/base.js +0 -9
  88. package/cjs/components/Range/variations/_disabled/base.js.map +0 -1
  89. package/cjs/components/Range/variations/_disabled/base_1ufizo4.css +0 -1
  90. package/cjs/components/Range/variations/_readonly/base.js +0 -9
  91. package/cjs/components/Range/variations/_readonly/base.js.map +0 -1
  92. package/cjs/components/Range/variations/_readonly/base_hzmd8h.css +0 -1
  93. package/cjs/components/Range/variations/_size/base.js +0 -9
  94. package/cjs/components/Range/variations/_size/base.js.map +0 -1
  95. package/cjs/components/Range/variations/_size/base_f8ah3.css +0 -1
  96. package/cjs/components/Range/variations/_view/base.js +0 -9
  97. package/cjs/components/Range/variations/_view/base.js.map +0 -1
  98. package/cjs/components/Range/variations/_view/base_5iz3nr.css +0 -1
  99. package/cjs/components/TextField/variations/_label-placement/inner_7c08qb.css +0 -1
  100. package/es/components/Range/Range.css +0 -63
  101. package/es/components/Range/Range.js +0 -141
  102. package/es/components/Range/Range.js.map +0 -1
  103. package/es/components/Range/Range.styles.js +0 -52
  104. package/es/components/Range/Range.styles.js.map +0 -1
  105. package/es/components/Range/Range.styles_mc4w65.css +0 -8
  106. package/es/components/Range/Range.tokens.js +0 -100
  107. package/es/components/Range/Range.tokens.js.map +0 -1
  108. package/es/components/Range/utils/index.js +0 -19
  109. package/es/components/Range/utils/index.js.map +0 -1
  110. package/es/components/Range/variations/_disabled/base.js +0 -5
  111. package/es/components/Range/variations/_disabled/base.js.map +0 -1
  112. package/es/components/Range/variations/_disabled/base_1ufizo4.css +0 -1
  113. package/es/components/Range/variations/_readonly/base.js +0 -5
  114. package/es/components/Range/variations/_readonly/base.js.map +0 -1
  115. package/es/components/Range/variations/_readonly/base_hzmd8h.css +0 -1
  116. package/es/components/Range/variations/_size/base.js +0 -5
  117. package/es/components/Range/variations/_size/base.js.map +0 -1
  118. package/es/components/Range/variations/_size/base_f8ah3.css +0 -1
  119. package/es/components/Range/variations/_view/base.js +0 -5
  120. package/es/components/Range/variations/_view/base.js.map +0 -1
  121. package/es/components/Range/variations/_view/base_5iz3nr.css +0 -1
  122. package/es/components/TextField/variations/_label-placement/inner_7c08qb.css +0 -1
  123. package/styled-components/cjs/components/Range/Range.js +0 -148
  124. package/styled-components/cjs/components/Range/Range.styles.js +0 -39
  125. package/styled-components/cjs/components/Range/Range.tokens.js +0 -103
  126. package/styled-components/cjs/components/Range/Range.types.js +0 -5
  127. package/styled-components/cjs/components/Range/index.js +0 -25
  128. package/styled-components/cjs/components/Range/utils/index.js +0 -22
  129. package/styled-components/cjs/components/Range/variations/_disabled/base.js +0 -9
  130. package/styled-components/cjs/components/Range/variations/_disabled/tokens.json +0 -4
  131. package/styled-components/cjs/components/Range/variations/_readonly/base.js +0 -10
  132. package/styled-components/cjs/components/Range/variations/_readonly/tokens.json +0 -4
  133. package/styled-components/cjs/components/Range/variations/_size/base.js +0 -10
  134. package/styled-components/cjs/components/Range/variations/_size/tokens.json +0 -26
  135. package/styled-components/cjs/components/Range/variations/_view/base.js +0 -10
  136. package/styled-components/cjs/components/Range/variations/_view/tokens.json +0 -6
  137. package/styled-components/cjs/examples/plasma_b2c/components/Range/Range.config.js +0 -31
  138. package/styled-components/cjs/examples/plasma_b2c/components/Range/Range.js +0 -11
  139. package/styled-components/cjs/examples/plasma_b2c/components/Range/Range.stories.tsx +0 -312
  140. package/styled-components/cjs/examples/plasma_web/components/Range/Range.config.js +0 -31
  141. package/styled-components/cjs/examples/plasma_web/components/Range/Range.js +0 -11
  142. package/styled-components/cjs/examples/plasma_web/components/Range/Range.stories.tsx +0 -312
  143. package/styled-components/es/components/Range/Range.js +0 -139
  144. package/styled-components/es/components/Range/Range.styles.js +0 -31
  145. package/styled-components/es/components/Range/Range.tokens.js +0 -97
  146. package/styled-components/es/components/Range/Range.types.js +0 -1
  147. package/styled-components/es/components/Range/index.js +0 -2
  148. package/styled-components/es/components/Range/utils/index.js +0 -16
  149. package/styled-components/es/components/Range/variations/_disabled/base.js +0 -3
  150. package/styled-components/es/components/Range/variations/_disabled/tokens.json +0 -4
  151. package/styled-components/es/components/Range/variations/_readonly/base.js +0 -4
  152. package/styled-components/es/components/Range/variations/_readonly/tokens.json +0 -4
  153. package/styled-components/es/components/Range/variations/_size/base.js +0 -4
  154. package/styled-components/es/components/Range/variations/_size/tokens.json +0 -26
  155. package/styled-components/es/components/Range/variations/_view/base.js +0 -4
  156. package/styled-components/es/components/Range/variations/_view/tokens.json +0 -6
  157. package/styled-components/es/examples/plasma_b2c/components/Range/Range.config.js +0 -25
  158. package/styled-components/es/examples/plasma_b2c/components/Range/Range.js +0 -5
  159. package/styled-components/es/examples/plasma_b2c/components/Range/Range.stories.tsx +0 -312
  160. package/styled-components/es/examples/plasma_web/components/Range/Range.config.js +0 -25
  161. package/styled-components/es/examples/plasma_web/components/Range/Range.js +0 -5
  162. package/styled-components/es/examples/plasma_web/components/Range/Range.stories.tsx +0 -312
  163. package/types/components/Range/Range.d.ts +0 -31
  164. package/types/components/Range/Range.d.ts.map +0 -1
  165. package/types/components/Range/Range.styles.d.ts +0 -48
  166. package/types/components/Range/Range.styles.d.ts.map +0 -1
  167. package/types/components/Range/Range.tokens.d.ts +0 -98
  168. package/types/components/Range/Range.tokens.d.ts.map +0 -1
  169. package/types/components/Range/Range.types.d.ts +0 -143
  170. package/types/components/Range/Range.types.d.ts.map +0 -1
  171. package/types/components/Range/index.d.ts +0 -4
  172. package/types/components/Range/index.d.ts.map +0 -1
  173. package/types/components/Range/utils/index.d.ts +0 -5
  174. package/types/components/Range/utils/index.d.ts.map +0 -1
  175. package/types/components/Range/variations/_disabled/base.d.ts +0 -2
  176. package/types/components/Range/variations/_disabled/base.d.ts.map +0 -1
  177. package/types/components/Range/variations/_readonly/base.d.ts +0 -2
  178. package/types/components/Range/variations/_readonly/base.d.ts.map +0 -1
  179. package/types/components/Range/variations/_size/base.d.ts +0 -2
  180. package/types/components/Range/variations/_size/base.d.ts.map +0 -1
  181. package/types/components/Range/variations/_view/base.d.ts +0 -2
  182. package/types/components/Range/variations/_view/base.d.ts.map +0 -1
  183. package/types/examples/plasma_b2c/components/Range/Range.config.d.ts +0 -24
  184. package/types/examples/plasma_b2c/components/Range/Range.config.d.ts.map +0 -1
  185. package/types/examples/plasma_b2c/components/Range/Range.d.ts +0 -127
  186. package/types/examples/plasma_b2c/components/Range/Range.d.ts.map +0 -1
  187. package/types/examples/plasma_web/components/Range/Range.config.d.ts +0 -24
  188. package/types/examples/plasma_web/components/Range/Range.config.d.ts.map +0 -1
  189. package/types/examples/plasma_web/components/Range/Range.d.ts +0 -127
  190. package/types/examples/plasma_web/components/Range/Range.d.ts.map +0 -1
@@ -1,19 +0,0 @@
1
- var getChangeHandler = function getChangeHandler(changeHandler, disabled, readOnly) {
2
- return function (event) {
3
- if (disabled || readOnly) {
4
- return;
5
- }
6
- changeHandler === null || changeHandler === void 0 || changeHandler(event, event.target.value);
7
- };
8
- };
9
- var getSearchHandler = function getSearchHandler(searchHandler, disabled, readOnly) {
10
- return function (value, event) {
11
- if (disabled || readOnly) {
12
- return;
13
- }
14
- searchHandler === null || searchHandler === void 0 || searchHandler(event, value);
15
- };
16
- };
17
-
18
- export { getChangeHandler, getSearchHandler };
19
- //# 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,5 +0,0 @@
1
- import './base_1ufizo4.css';
2
- var base = "brz2a7";
3
-
4
- export { base };
5
- //# 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,5 +0,0 @@
1
- import './base_hzmd8h.css';
2
- var base = "b1l9fpln";
3
-
4
- export { base };
5
- //# 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,5 +0,0 @@
1
- import './base_f8ah3.css';
2
- var base = "bc2if5b";
3
-
4
- export { base };
5
- //# 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,5 +0,0 @@
1
- import './base_5iz3nr.css';
2
- var base = "bfrw0i0";
3
-
4
- export { base };
5
- //# 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);}
@@ -1,148 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.rangeRoot = exports.rangeConfig = void 0;
8
- var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
- var _utils = /*#__PURE__*/require("../../utils");
10
- var _base = /*#__PURE__*/require("./variations/_size/base");
11
- var _base2 = /*#__PURE__*/require("./variations/_view/base");
12
- var _base3 = /*#__PURE__*/require("./variations/_disabled/base");
13
- var _base4 = /*#__PURE__*/require("./variations/_readonly/base");
14
- var _utils2 = /*#__PURE__*/require("./utils");
15
- var _Range = /*#__PURE__*/require("./Range.styles");
16
- var _Range2 = /*#__PURE__*/require("./Range.tokens");
17
- var _StyledDivider;
18
- 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"];
19
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
21
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
22
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
24
- var rangeRoot = exports.rangeRoot = function rangeRoot(Root) {
25
- return /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
26
- var _StyledDivider2;
27
- var label = _ref.label,
28
- leftHelper = _ref.leftHelper,
29
- contentLeft = _ref.contentLeft,
30
- contentRight = _ref.contentRight,
31
- view = _ref.view,
32
- size = _ref.size,
33
- _ref$readOnly = _ref.readOnly,
34
- readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
35
- _ref$disabled = _ref.disabled,
36
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
37
- _ref$dividerVariant = _ref.dividerVariant,
38
- dividerVariant = _ref$dividerVariant === void 0 ? 'dash' : _ref$dividerVariant,
39
- dividerIcon = _ref.dividerIcon,
40
- firstValue = _ref.firstValue,
41
- secondValue = _ref.secondValue,
42
- firstValueError = _ref.firstValueError,
43
- secondValueError = _ref.secondValueError,
44
- firstValueSuccess = _ref.firstValueSuccess,
45
- secondValueSuccess = _ref.secondValueSuccess,
46
- firstPlaceholder = _ref.firstPlaceholder,
47
- secondPlaceholder = _ref.secondPlaceholder,
48
- firstTextfieldContentLeft = _ref.firstTextfieldContentLeft,
49
- firstTextfieldContentRight = _ref.firstTextfieldContentRight,
50
- secondTextfieldContentLeft = _ref.secondTextfieldContentLeft,
51
- secondTextfieldContentRight = _ref.secondTextfieldContentRight,
52
- firstTextfieldTextBefore = _ref.firstTextfieldTextBefore,
53
- secondTextfieldTextBefore = _ref.secondTextfieldTextBefore,
54
- firstTextfieldTextAfter = _ref.firstTextfieldTextAfter,
55
- secondTextfieldTextAfter = _ref.secondTextfieldTextAfter,
56
- onChangeFirstValue = _ref.onChangeFirstValue,
57
- onChangeSecondValue = _ref.onChangeSecondValue,
58
- onSearchFirstValue = _ref.onSearchFirstValue,
59
- onSearchSecondValue = _ref.onSearchSecondValue,
60
- onFocusFirstTextfield = _ref.onFocusFirstTextfield,
61
- onFocusSecondTextfield = _ref.onFocusSecondTextfield,
62
- onBlurFirstTextfield = _ref.onBlurFirstTextfield,
63
- onBlurSecondTextfield = _ref.onBlurSecondTextfield,
64
- rest = _objectWithoutProperties(_ref, _excluded);
65
- var rangeErrorClass = firstValueError && secondValueError ? _Range2.classes.rangeError : undefined;
66
- var firstValueErrorClass = !rangeErrorClass && firstValueError ? _Range2.classes.rangeValueError : undefined;
67
- var secondValueErrorClass = !rangeErrorClass && secondValueError ? _Range2.classes.rangeValueError : undefined;
68
- var rangeSuccessClass = firstValueSuccess && secondValueSuccess ? _Range2.classes.rangeSuccess : undefined;
69
- var firstValueSuccessClass = !rangeSuccessClass && firstValueSuccess ? _Range2.classes.rangeValueSuccess : undefined;
70
- var secondValueSuccessClass = !rangeSuccessClass && secondValueSuccess ? _Range2.classes.rangeValueSuccess : undefined;
71
- var handleChangeFirstValue = (0, _react.useCallback)((0, _utils2.getChangeHandler)(onChangeFirstValue, disabled, readOnly), [onChangeFirstValue, disabled, readOnly]);
72
- var handleChangeSecondValue = (0, _react.useCallback)((0, _utils2.getChangeHandler)(onChangeSecondValue, disabled, readOnly), [onChangeSecondValue, disabled, readOnly]);
73
- var handleSearchFirstValue = (0, _react.useCallback)((0, _utils2.getSearchHandler)(onSearchFirstValue, disabled, readOnly), [onSearchFirstValue, disabled, readOnly]);
74
- var handleSearchSecondValue = (0, _react.useCallback)((0, _utils2.getSearchHandler)(onSearchSecondValue, disabled, readOnly), [onSearchFirstValue, disabled, readOnly]);
75
- var Divider = (0, _react.useMemo)(function () {
76
- if (dividerVariant === 'none') {
77
- return null;
78
- }
79
- if (dividerVariant === 'dash') {
80
- return _StyledDivider || (_StyledDivider = /*#__PURE__*/_react["default"].createElement(_Range.StyledDivider, null, "-"));
81
- }
82
- return _StyledDivider2 || (_StyledDivider2 = /*#__PURE__*/_react["default"].createElement(_Range.StyledDivider, null, dividerIcon));
83
- }, [dividerVariant, dividerIcon]);
84
- return /*#__PURE__*/_react["default"].createElement(Root, _extends({
85
- view: view,
86
- size: size,
87
- disabled: disabled,
88
- readOnly: !disabled && readOnly,
89
- ref: ref
90
- }, rest), label && /*#__PURE__*/_react["default"].createElement(_Range.StyledLabel, null, label), /*#__PURE__*/_react["default"].createElement(_Range.ContentWrapper, {
91
- className: (0, _utils.cx)(rangeErrorClass, rangeSuccessClass)
92
- }, contentLeft && /*#__PURE__*/_react["default"].createElement(_Range.StyledContentLeft, null, contentLeft), /*#__PURE__*/_react["default"].createElement(_Range.StyledInput, {
93
- className: (0, _utils.cx)(firstValueErrorClass, firstValueSuccessClass),
94
- value: firstValue,
95
- readOnly: readOnly,
96
- disabled: disabled,
97
- placeholder: firstPlaceholder,
98
- contentLeft: firstTextfieldContentLeft,
99
- contentRight: firstTextfieldContentRight,
100
- textBefore: firstTextfieldTextBefore,
101
- textAfter: firstTextfieldTextAfter,
102
- onChange: handleChangeFirstValue,
103
- onSearch: handleSearchFirstValue,
104
- onFocus: onFocusFirstTextfield,
105
- onBlur: onBlurFirstTextfield
106
- }), Divider, /*#__PURE__*/_react["default"].createElement(_Range.StyledInput, {
107
- className: (0, _utils.cx)(secondValueErrorClass, secondValueSuccessClass),
108
- value: secondValue,
109
- readOnly: readOnly,
110
- disabled: disabled,
111
- placeholder: secondPlaceholder,
112
- contentLeft: secondTextfieldContentLeft,
113
- contentRight: secondTextfieldContentRight,
114
- textBefore: secondTextfieldTextBefore,
115
- textAfter: secondTextfieldTextAfter,
116
- onChange: handleChangeSecondValue,
117
- onSearch: handleSearchSecondValue,
118
- onFocus: onFocusSecondTextfield,
119
- onBlur: onBlurSecondTextfield
120
- }), contentRight && /*#__PURE__*/_react["default"].createElement(_Range.StyledContentRight, null, contentRight)), leftHelper && /*#__PURE__*/_react["default"].createElement(_Range.LeftHelper, null, leftHelper));
121
- });
122
- };
123
- var rangeConfig = exports.rangeConfig = {
124
- name: 'Range',
125
- tag: 'div',
126
- layout: rangeRoot,
127
- base: _Range.base,
128
- variations: {
129
- view: {
130
- css: _base2.base
131
- },
132
- size: {
133
- css: _base.base
134
- },
135
- disabled: {
136
- css: _base3.base,
137
- attrs: true
138
- },
139
- readOnly: {
140
- css: _base4.base,
141
- attrs: true
142
- }
143
- },
144
- defaults: {
145
- size: 'm',
146
- view: 'default'
147
- }
148
- };
@@ -1,39 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.base = exports.StyledLabel = exports.StyledInput = exports.StyledDivider = exports.StyledContentRight = exports.StyledContentLeft = exports.LeftHelper = exports.ContentWrapper = void 0;
8
- var _styledComponents = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("styled-components"));
9
- var _engines = /*#__PURE__*/require("../../engines");
10
- var _TextField = /*#__PURE__*/require("../TextField");
11
- var _Range = /*#__PURE__*/require("./Range.tokens");
12
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
- var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_TextField.textFieldConfig);
15
- var TextField = /*#__PURE__*/(0, _engines.component)(mergedConfig);
16
-
17
- // NOTE: переопределение токенов TextField
18
- var StyledInput = exports.StyledInput = /*#__PURE__*/(0, _styledComponents["default"])(TextField).withConfig({
19
- componentId: "plasma-new-hope__sc-xpkrak-0"
20
- })(["flex:1;", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");&.", "{", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");}&.", "{", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");}"], _TextField.textFieldTokens.color, _Range.tokens.textFieldColor, _TextField.textFieldTokens.placeholderColor, _Range.tokens.textFieldPlaceholderColor, _TextField.textFieldTokens.caretColor, _Range.tokens.textFieldCaretColor, _TextField.textFieldTokens.focusColor, _Range.tokens.textFieldFocusColor, _TextField.textFieldTokens.backgroundColor, _Range.tokens.textFieldBackgroundColor, _TextField.textFieldTokens.backgroundColorHover, _Range.tokens.textFieldBackgroundColorHover, _TextField.textFieldTokens.backgroundColorFocus, _Range.tokens.textFieldBackgroundColorFocus, _TextField.textFieldTokens.borderColor, _Range.tokens.textFieldBorderColor, _TextField.textFieldTokens.borderColorHover, _Range.tokens.textFieldBorderColorHover, _TextField.textFieldTokens.borderColorFocus, _Range.tokens.textFieldBorderColorFocus, _TextField.textFieldTokens.colorReadOnly, _Range.tokens.textFieldColorReadOnly, _TextField.textFieldTokens.backgroundColorReadOnly, _Range.tokens.textFieldBackgroundColorReadOnly, _TextField.textFieldTokens.borderColorReadOnly, _Range.tokens.textFieldBorderColorReadOnly, _TextField.textFieldTokens.placeholderColorReadOnly, _Range.tokens.textFieldPlaceholderColorReadOnly, _TextField.textFieldTokens.height, _Range.tokens.textFieldHeight, _TextField.textFieldTokens.borderWidth, _Range.tokens.textFieldBorderWidth, _TextField.textFieldTokens.borderRadius, _Range.tokens.textFieldBorderRadius, _TextField.textFieldTokens.padding, _Range.tokens.textFieldPadding, _TextField.textFieldTokens.leftContentMargin, _Range.tokens.textFieldLeftContentMargin, _TextField.textFieldTokens.rightContentMargin, _Range.tokens.textFieldRightContentMargin, _TextField.textFieldTokens.fontFamily, _Range.tokens.textFieldFontFamily, _TextField.textFieldTokens.fontSize, _Range.tokens.textFieldFontSize, _TextField.textFieldTokens.fontStyle, _Range.tokens.textFieldFontStyle, _TextField.textFieldTokens.fontWeight, _Range.tokens.textFieldFontWeight, _TextField.textFieldTokens.letterSpacing, _Range.tokens.textFieldLetterSpacing, _TextField.textFieldTokens.lineHeight, _Range.tokens.textFieldLineHeight, _TextField.textFieldTokens.disabledOpacity, _Range.tokens.disabledOpacity, _TextField.textFieldTokens.textBeforeColor, _Range.tokens.textFieldTextBeforeColor, _TextField.textFieldTokens.textAfterColor, _Range.tokens.textFieldTextAfterColor, _TextField.textFieldTokens.textBeforeMargin, _Range.tokens.textFieldTextBeforeMargin, _TextField.textFieldTokens.textAfterMargin, _Range.tokens.textFieldTextAfterMargin, _Range.classes.rangeValueError, _TextField.textFieldTokens.backgroundColor, _Range.tokens.textFieldBackgroundErrorColor, _TextField.textFieldTokens.backgroundColorHover, _Range.tokens.textFieldBackgroundErrorColorHover, _TextField.textFieldTokens.backgroundColorFocus, _Range.tokens.textFieldBackgroundErrorColorFocus, _TextField.textFieldTokens.borderColor, _Range.tokens.textFieldBorderColorError, _TextField.textFieldTokens.borderColorHover, _Range.tokens.textFieldBorderColorErrorHover, _TextField.textFieldTokens.borderColorFocus, _Range.tokens.textFieldBorderColorErrorFocus, _Range.classes.rangeValueSuccess, _TextField.textFieldTokens.backgroundColor, _Range.tokens.textFieldBackgroundSuccessColor, _TextField.textFieldTokens.backgroundColorHover, _Range.tokens.textFieldBackgroundSuccessColorHover, _TextField.textFieldTokens.backgroundColorFocus, _Range.tokens.textFieldBackgroundSuccessColorFocus, _TextField.textFieldTokens.borderColor, _Range.tokens.textFieldBorderColorSuccess, _TextField.textFieldTokens.borderColorHover, _Range.tokens.textFieldBorderColorSuccessHover, _TextField.textFieldTokens.borderColorFocus, _Range.tokens.textFieldBorderColorSuccessFocus);
21
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)([""]);
22
- var StyledLabel = exports.StyledLabel = /*#__PURE__*/_styledComponents["default"].label.withConfig({
23
- componentId: "plasma-new-hope__sc-xpkrak-1"
24
- })([""]);
25
- var LeftHelper = exports.LeftHelper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
26
- componentId: "plasma-new-hope__sc-xpkrak-2"
27
- })([""]);
28
- var ContentWrapper = exports.ContentWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
29
- componentId: "plasma-new-hope__sc-xpkrak-3"
30
- })(["display:flex;align-items:center;"]);
31
- var StyledDivider = exports.StyledDivider = /*#__PURE__*/_styledComponents["default"].div.withConfig({
32
- componentId: "plasma-new-hope__sc-xpkrak-4"
33
- })([""]);
34
- var StyledContentLeft = exports.StyledContentLeft = /*#__PURE__*/_styledComponents["default"].div.withConfig({
35
- componentId: "plasma-new-hope__sc-xpkrak-5"
36
- })([""]);
37
- var StyledContentRight = exports.StyledContentRight = /*#__PURE__*/_styledComponents["default"].div.withConfig({
38
- componentId: "plasma-new-hope__sc-xpkrak-6"
39
- })([""]);
@@ -1,103 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.tokens = exports.classes = void 0;
7
- var classes = exports.classes = {
8
- rangeError: 'range-error',
9
- rangeValueError: 'range-value-error',
10
- rangeSuccess: 'range-success',
11
- rangeValueSuccess: 'range-value-success'
12
- };
13
- var tokens = exports.tokens = {
14
- background: '--plasma-range-background',
15
- backgroundError: '--plasma-range-background-error',
16
- backgroundSuccess: '--plasma-range-background-success',
17
- backgroundReadOnly: '--plasma-range-background-readonly',
18
- borderRadius: '--plasma-range-border-radius',
19
- borderWidth: '--plasma-range-border-width',
20
- borderColor: '--plasma-range-border-color',
21
- borderColorError: '--plasma-range-border-color-error',
22
- borderColorSuccess: '--plasma-range-border-color-success',
23
- borderColorReadOnly: '--plasma-range-border-color-readonly',
24
- /** Токены разделителя */
25
- dividerColor: '--plasma-range__divider-color',
26
- dividerPadding: '--plasma-range__divider-padding',
27
- dividerFontFamily: '--plasma-range__divider-font-family',
28
- dividerFontStyle: '--plasma-range__divider-font-style',
29
- dividerFontSize: '--plasma-range__divider-font-size',
30
- dividerFontWeight: '--plasma-range__divider-font-weight',
31
- dividerLetterSpacing: '--plasma-range__divider-letter-spacing',
32
- dividerLineHeight: '--plasma-range__divider-line-height',
33
- /** Токены слотов для контента */
34
- leftContentMargin: '--plasma-range__left-content-margin',
35
- rightContentMargin: '--plasma-range__right-content-margin',
36
- /** Токены лейбла */
37
- labelColor: '--plasma-range__label-color',
38
- labelColorReadOnly: '--plasma-range__label-color-readonly',
39
- labelOffset: '--plasma-range__label-offset',
40
- labelFontFamily: '--plasma-range__label-font-family',
41
- labelFontStyle: '--plasma-range__label-font-style',
42
- labelFontSize: '--plasma-range__label-font-size',
43
- labelFontWeight: '--plasma-range__label-font-weight',
44
- labelLetterSpacing: '--plasma-range__label-letter-spacing',
45
- labelLineHeight: '--plasma-range__label-line-height',
46
- /** Токены вспомогательного текста */
47
- leftHelperColor: '--plasma-range__left-helper-color',
48
- leftHelperColorReadOnly: '--plasma-range__left-helper-color-readonly',
49
- leftHelperOffset: '--plasma-range__left-helper-offset',
50
- leftHelperFontFamily: '--plasma-range__left-helper-font-family',
51
- leftHelperFontStyle: '--plasma-range__left-helper-font-style',
52
- leftHelperFontSize: '--plasma-range__left-helper-font-size',
53
- leftHelperFontWeight: '--plasma-range__left-helper-font-weight',
54
- leftHelperLetterSpacing: '--plasma-range__left-helper-letter-spacing',
55
- leftHelperLineHeight: '--plasma-range__left-helper-line-height',
56
- /** Прозрачность для всего компонента в состоянии disabled */
57
- disabledOpacity: '--plasma-range-disabled-opacity',
58
- /** Цвет обводки поля ввода при фокусе */
59
- focusColor: '--plasma-range-focus-color',
60
- /** Токены полей ввода */
61
- textFieldColor: '--plasma-range-textfield-color',
62
- textFieldFocusColor: '--plasma-range-textfield-focus-color',
63
- textFieldPlaceholderColor: '--plasma-range-textfield-placeholder-color',
64
- textFieldCaretColor: '--plasma-range-textfield-caret-color',
65
- textFieldBackgroundColor: '--plasma-range-textfield-background-color',
66
- textFieldBackgroundColorHover: '--plasma-range-textfield-background-color-hover',
67
- textFieldBackgroundColorFocus: '--plasma-range-textfield-background-color-focus',
68
- textFieldBackgroundErrorColor: '--plasma-range-textfield-background-color-error',
69
- textFieldBackgroundErrorColorHover: '--plasma-range-textfield-background-color-error-hover',
70
- textFieldBackgroundErrorColorFocus: '--plasma-range-textfield-background-color-error-focus',
71
- textFieldBackgroundSuccessColor: '--plasma-range-textfield-background-color-success',
72
- textFieldBackgroundSuccessColorHover: '--plasma-range-textfield-background-color-success-hover',
73
- textFieldBackgroundSuccessColorFocus: '--plasma-range-textfield-background-color-success-focus',
74
- textFieldBorderColor: '--plasma-range-textfield-border-color',
75
- textFieldBorderColorHover: '--plasma-range-textfield-border-color-hover',
76
- textFieldBorderColorFocus: '--plasma-range-textfield-border-color-focus',
77
- textFieldBorderColorError: '--plasma-range-textfield-border-color-error',
78
- textFieldBorderColorErrorHover: '--plasma-range-textfield-border-color-error-hover',
79
- textFieldBorderColorErrorFocus: '--plasma-range-textfield-border-color-error-focus',
80
- textFieldBorderColorSuccess: '--plasma-range-textfield-border-color-success',
81
- textFieldBorderColorSuccessHover: '--plasma-range-textfield-border-color-success-hover',
82
- textFieldBorderColorSuccessFocus: '--plasma-range-textfield-border-color-success-focus',
83
- textFieldColorReadOnly: '--plasma-range-textfield-color-readonly',
84
- textFieldBackgroundColorReadOnly: '--plasma-range-textfield-background-color-readonly',
85
- textFieldBorderColorReadOnly: '--plasma-range-textfield-border-color-readonly',
86
- textFieldPlaceholderColorReadOnly: '--plasma-range-textfield-placeholder-color-readonly',
87
- textFieldHeight: '--plasma-range-textfield-height',
88
- textFieldBorderWidth: '--plasma-range-textfield-border-width',
89
- textFieldBorderRadius: '--plasma-range-textfield-border-radius',
90
- textFieldPadding: '--plasma-range-textfield-padding',
91
- textFieldLeftContentMargin: '--plasma-range-textfield__left-content-margin',
92
- textFieldRightContentMargin: '--plasma-range-textfield__right-content-margin',
93
- textFieldFontFamily: '--plasma-range-textfield-font-family',
94
- textFieldFontStyle: '--plasma-range-textfield-font-style',
95
- textFieldFontSize: '--plasma-range-textfield-font-size',
96
- textFieldFontWeight: '--plasma-range-textfield-font-weight',
97
- textFieldLetterSpacing: '--plasma-range-textfield-letter-spacing',
98
- textFieldLineHeight: '--plasma-range-textfield-line-height',
99
- textFieldTextBeforeColor: '--plasma-range-textfield__before-text-color',
100
- textFieldTextAfterColor: '--plasma-range-textfield__after-text-color',
101
- textFieldTextBeforeMargin: '--plasma-range-textfield__before-text-margin',
102
- textFieldTextAfterMargin: '--plasma-range-textfield__after-text-margin'
103
- };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "rangeConfig", {
7
- enumerable: true,
8
- get: function get() {
9
- return _Range.rangeConfig;
10
- }
11
- });
12
- Object.defineProperty(exports, "rangeRoot", {
13
- enumerable: true,
14
- get: function get() {
15
- return _Range.rangeRoot;
16
- }
17
- });
18
- Object.defineProperty(exports, "rangeTokens", {
19
- enumerable: true,
20
- get: function get() {
21
- return _Range2.tokens;
22
- }
23
- });
24
- var _Range = /*#__PURE__*/require("./Range");
25
- var _Range2 = /*#__PURE__*/require("./Range.tokens");
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getSearchHandler = exports.getChangeHandler = void 0;
7
- var getChangeHandler = exports.getChangeHandler = function getChangeHandler(changeHandler, disabled, readOnly) {
8
- return function (event) {
9
- if (disabled || readOnly) {
10
- return;
11
- }
12
- changeHandler === null || changeHandler === void 0 || changeHandler(event, event.target.value);
13
- };
14
- };
15
- var getSearchHandler = exports.getSearchHandler = function getSearchHandler(searchHandler, disabled, readOnly) {
16
- return function (value, event) {
17
- if (disabled || readOnly) {
18
- return;
19
- }
20
- searchHandler === null || searchHandler === void 0 || searchHandler(event, value);
21
- };
22
- };
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var _Range = /*#__PURE__*/require("../../Range.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["&[disabled]{opacity:var(", ");cursor:not-allowed;}"], _Range.tokens.disabledOpacity);
@@ -1,4 +0,0 @@
1
- {
2
- "type": "boolean",
3
- "tokens": ["--plasma-range-disabled-opacity"]
4
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var _Range = /*#__PURE__*/require("../../Range.tokens");
9
- var _Range2 = /*#__PURE__*/require("../../Range.styles");
10
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["&[readonly]{cursor:default;", "{background:var(", ");}", "{display:block;color:var(", ");}", "{color:var(", ");}}"], _Range2.ContentWrapper, _Range.tokens.backgroundReadOnly, _Range2.StyledLabel, _Range.tokens.labelColorReadOnly, _Range2.LeftHelper, _Range.tokens.leftHelperColorReadOnly);
@@ -1,4 +0,0 @@
1
- {
2
- "type": "boolean",
3
- "tokens": ["--plasma-range-background-read-only"]
4
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var _Range = /*#__PURE__*/require("../../Range.tokens");
9
- var _Range2 = /*#__PURE__*/require("../../Range.styles");
10
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["", "{width:inherit;border-radius:var(", ");}", "{display:flex;align-items:center;justify-content:center;height:100%;padding:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{margin:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{margin:var(", ");}", "{margin:var(", ");}", "{margin:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}"], _Range2.ContentWrapper, _Range.tokens.borderRadius, _Range2.StyledDivider, _Range.tokens.dividerPadding, _Range.tokens.dividerFontFamily, _Range.tokens.dividerFontSize, _Range.tokens.dividerFontStyle, _Range.tokens.dividerFontWeight, _Range.tokens.dividerLetterSpacing, _Range.tokens.dividerLineHeight, _Range2.StyledLabel, _Range.tokens.labelOffset, _Range.tokens.labelFontFamily, _Range.tokens.labelFontSize, _Range.tokens.labelFontStyle, _Range.tokens.labelFontWeight, _Range.tokens.labelLetterSpacing, _Range.tokens.labelLineHeight, _Range2.StyledContentLeft, _Range.tokens.leftContentMargin, _Range2.StyledContentRight, _Range.tokens.rightContentMargin, _Range2.LeftHelper, _Range.tokens.leftHelperOffset, _Range.tokens.leftHelperFontFamily, _Range.tokens.leftHelperFontSize, _Range.tokens.leftHelperFontStyle, _Range.tokens.leftHelperFontWeight, _Range.tokens.leftHelperLetterSpacing, _Range.tokens.leftHelperLineHeight);
@@ -1,26 +0,0 @@
1
- [
2
- "--plasma-range-border-radius",
3
- "--plasma-range__left-content-margin",
4
- "--plasma-range__right-content-margin",
5
- "--plasma-range__label-offset",
6
- "--plasma-range__label-font-family",
7
- "--plasma-range__label-font-style",
8
- "--plasma-range__label-font-size",
9
- "--plasma-range__label-font-weight",
10
- "--plasma-range__label-letter-spacing",
11
- "--plasma-range__label-line-height",
12
- "--plasma-range__left-helper-offset",
13
- "--plasma-range__left-helper-font-family",
14
- "--plasma-range__left-helper-font-style",
15
- "--plasma-range__left-helper-font-size",
16
- "--plasma-range__left-helper-font-weight",
17
- "--plasma-range__left-helper-letter-spacing",
18
- "--plasma-range__left-helper-line-height",
19
- "--plasma-range__divider-padding",
20
- "--plasma-range__divider-font-family",
21
- "--plasma-range__divider-font-style",
22
- "--plasma-range__divider-font-size",
23
- "--plasma-range__divider-font-weight",
24
- "--plasma-range__divider-letter-spacing",
25
- "--plasma-range__divider-line-height"
26
- ]
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var _Range = /*#__PURE__*/require("../../Range.tokens");
9
- var _Range2 = /*#__PURE__*/require("../../Range.styles");
10
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["", "{background-color:var(", ");box-shadow:inset 0 0 0 var(", ") var(", ");&.", "{background-color:var(", ");box-shadow:inset 0 0 0 var(", ") var(", ");}&.", "{background-color:var(", ");box-shadow:inset 0 0 0 var(", ") var(", ");}}", "{color:var(", ");}", "{display:block;color:var(", ");}", "{color:var(", ");}"], _Range2.ContentWrapper, _Range.tokens.background, _Range.tokens.borderWidth, _Range.tokens.borderColor, _Range.classes.rangeError, _Range.tokens.backgroundError, _Range.tokens.borderWidth, _Range.tokens.borderColorError, _Range.classes.rangeSuccess, _Range.tokens.backgroundSuccess, _Range.tokens.borderWidth, _Range.tokens.borderColorSuccess, _Range2.StyledDivider, _Range.tokens.dividerColor, _Range2.StyledLabel, _Range.tokens.labelColor, _Range2.LeftHelper, _Range.tokens.leftHelperColor);
@@ -1,6 +0,0 @@
1
- [
2
- "--plasma-range-background",
3
- "--plasma-range__label-color",
4
- "--plasma-range__left-helper-color",
5
- "--plasma-range__divider-color"
6
- ]