@salutejs/plasma-new-hope 0.196.1-dev.0 → 0.197.0-canary.1556.11973013493.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +18 -19
  2. package/cjs/components/Autocomplete/Autocomplete.js +7 -1
  3. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  4. package/cjs/components/Combobox/ComboboxNew/Combobox.css +18 -19
  5. package/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -2
  6. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  7. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +18 -19
  8. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +18 -19
  9. package/cjs/components/DatePicker/RangeDate/RangeDate.css +18 -19
  10. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +18 -19
  11. package/cjs/components/DatePicker/SingleDate/SingleDate.css +18 -19
  12. package/cjs/components/DatePicker/SingleDate/SingleDate.js +7 -3
  13. package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  14. package/cjs/components/Pagination/Pagination.css +18 -19
  15. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +18 -19
  16. package/cjs/components/Range/Range.css +18 -19
  17. package/cjs/components/Select/Select.css +18 -19
  18. package/cjs/components/Select/ui/Inner/Inner.css +18 -19
  19. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +18 -19
  20. package/cjs/components/Select/ui/Target/Target.css +18 -19
  21. package/cjs/components/Select/ui/Target/Target.js +1 -2
  22. package/cjs/components/Select/ui/Target/Target.js.map +1 -1
  23. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +18 -19
  24. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
  25. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  26. package/cjs/components/Slider/Slider.css +18 -19
  27. package/cjs/components/Slider/components/Double/Double.css +18 -19
  28. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +18 -19
  29. package/cjs/components/TextField/TextField.js +12 -11
  30. package/cjs/components/TextField/TextField.js.map +1 -1
  31. package/cjs/components/TextField/TextField.styles.js +20 -11
  32. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  33. package/cjs/components/TextField/{TextField.styles_j7dqpn.css → TextField.styles_ppcxpx.css} +1 -1
  34. package/cjs/components/TextField/TextField.tokens.js +1 -0
  35. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  36. package/cjs/components/TextField/ui/Hint/Hint.css +20 -20
  37. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.css +1 -2
  38. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +3 -17
  39. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  40. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -7
  41. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  42. package/{es/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1yosnxc.css → cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1y8n7la.css} +0 -1
  43. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  44. package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
  45. package/cjs/components/TextField/variations/_label-placement/base_y1lvvc.css +1 -0
  46. package/cjs/index.css +18 -19
  47. package/emotion/cjs/components/Autocomplete/Autocomplete.js +7 -1
  48. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -2
  49. package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.js +7 -3
  50. package/emotion/cjs/components/Select/ui/Target/Target.js +1 -2
  51. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
  52. package/emotion/cjs/components/TextField/TextField.js +13 -12
  53. package/emotion/cjs/components/TextField/TextField.styles.js +29 -26
  54. package/emotion/cjs/components/TextField/TextField.template-doc.mdx +3 -13
  55. package/emotion/cjs/components/TextField/TextField.tokens.js +1 -0
  56. package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +3 -17
  57. package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +3 -12
  58. package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  59. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -8
  60. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -10
  61. package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +1 -8
  62. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -12
  63. package/emotion/es/components/Autocomplete/Autocomplete.js +7 -1
  64. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +7 -2
  65. package/emotion/es/components/DatePicker/SingleDate/SingleDate.js +7 -3
  66. package/emotion/es/components/Select/ui/Target/Target.js +1 -2
  67. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
  68. package/emotion/es/components/TextField/TextField.js +13 -12
  69. package/emotion/es/components/TextField/TextField.styles.js +29 -26
  70. package/emotion/es/components/TextField/TextField.template-doc.mdx +3 -13
  71. package/emotion/es/components/TextField/TextField.tokens.js +1 -0
  72. package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +4 -18
  73. package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +2 -11
  74. package/emotion/es/components/TextField/variations/_label-placement/base.js +1 -1
  75. package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -8
  76. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -10
  77. package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +1 -8
  78. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -12
  79. package/es/components/Autocomplete/Autocomplete.css +18 -19
  80. package/es/components/Autocomplete/Autocomplete.js +7 -1
  81. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  82. package/es/components/Combobox/ComboboxNew/Combobox.css +18 -19
  83. package/es/components/Combobox/ComboboxNew/Combobox.js +7 -2
  84. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  85. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +18 -19
  86. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +18 -19
  87. package/es/components/DatePicker/RangeDate/RangeDate.css +18 -19
  88. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +18 -19
  89. package/es/components/DatePicker/SingleDate/SingleDate.css +18 -19
  90. package/es/components/DatePicker/SingleDate/SingleDate.js +7 -3
  91. package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  92. package/es/components/Pagination/Pagination.css +18 -19
  93. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +18 -19
  94. package/es/components/Range/Range.css +18 -19
  95. package/es/components/Select/Select.css +18 -19
  96. package/es/components/Select/ui/Inner/Inner.css +18 -19
  97. package/es/components/Select/ui/Inner/ui/Item/Item.css +18 -19
  98. package/es/components/Select/ui/Target/Target.css +18 -19
  99. package/es/components/Select/ui/Target/Target.js +1 -2
  100. package/es/components/Select/ui/Target/Target.js.map +1 -1
  101. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +18 -19
  102. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
  103. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  104. package/es/components/Slider/Slider.css +18 -19
  105. package/es/components/Slider/components/Double/Double.css +18 -19
  106. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +18 -19
  107. package/es/components/TextField/TextField.js +12 -11
  108. package/es/components/TextField/TextField.js.map +1 -1
  109. package/es/components/TextField/TextField.styles.js +20 -11
  110. package/es/components/TextField/TextField.styles.js.map +1 -1
  111. package/es/components/TextField/{TextField.styles_j7dqpn.css → TextField.styles_ppcxpx.css} +1 -1
  112. package/es/components/TextField/TextField.tokens.js +1 -0
  113. package/es/components/TextField/TextField.tokens.js.map +1 -1
  114. package/es/components/TextField/ui/Hint/Hint.css +20 -20
  115. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.css +1 -2
  116. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +4 -18
  117. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  118. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +2 -7
  119. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  120. package/{cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1yosnxc.css → es/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1y8n7la.css} +0 -1
  121. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  122. package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
  123. package/es/components/TextField/variations/_label-placement/base_y1lvvc.css +1 -0
  124. package/es/index.css +18 -19
  125. package/package.json +2 -2
  126. package/styled-components/cjs/components/Autocomplete/Autocomplete.js +7 -1
  127. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -2
  128. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +7 -3
  129. package/styled-components/cjs/components/Select/ui/Target/Target.js +1 -2
  130. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
  131. package/styled-components/cjs/components/TextField/TextField.js +12 -11
  132. package/styled-components/cjs/components/TextField/TextField.styles.js +9 -6
  133. package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +3 -13
  134. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -0
  135. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +3 -17
  136. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +2 -10
  137. package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  138. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -8
  139. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -10
  140. package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +1 -8
  141. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -12
  142. package/styled-components/es/components/Autocomplete/Autocomplete.js +7 -1
  143. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +7 -2
  144. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +7 -3
  145. package/styled-components/es/components/Select/ui/Target/Target.js +1 -2
  146. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
  147. package/styled-components/es/components/TextField/TextField.js +12 -11
  148. package/styled-components/es/components/TextField/TextField.styles.js +9 -6
  149. package/styled-components/es/components/TextField/TextField.template-doc.mdx +3 -13
  150. package/styled-components/es/components/TextField/TextField.tokens.js +1 -0
  151. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +4 -18
  152. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -9
  153. package/styled-components/es/components/TextField/variations/_label-placement/base.js +1 -1
  154. package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -8
  155. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -10
  156. package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +1 -8
  157. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -12
  158. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  159. package/types/components/Autocomplete/Autocomplete.types.d.ts +2 -3
  160. package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
  161. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +709 -69
  162. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  163. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  164. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +30 -10
  165. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  166. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +709 -69
  167. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  168. package/types/components/DatePicker/SingleDate/SingleDate.d.ts +2 -2
  169. package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -1
  170. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +709 -69
  171. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  172. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +28 -9
  173. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
  174. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +282 -20
  175. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  176. package/types/components/Range/Range.styles.d.ts +709 -69
  177. package/types/components/Range/Range.styles.d.ts.map +1 -1
  178. package/types/components/Select/Select.types.d.ts +30 -15
  179. package/types/components/Select/Select.types.d.ts.map +1 -1
  180. package/types/components/Select/ui/Target/Target.d.ts +1 -1
  181. package/types/components/Select/ui/Target/Target.d.ts.map +1 -1
  182. package/types/components/Select/ui/Target/Target.types.d.ts +1 -1
  183. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  184. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  185. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +709 -69
  186. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  187. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +1 -1
  188. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
  189. package/types/components/Slider/components/Double/Double.styles.d.ts +709 -69
  190. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  191. package/types/components/TextField/TextField.d.ts.map +1 -1
  192. package/types/components/TextField/TextField.styles.d.ts +3 -1
  193. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  194. package/types/components/TextField/TextField.tokens.d.ts +1 -0
  195. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  196. package/types/components/TextField/TextField.types.d.ts +42 -27
  197. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  198. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +1 -1
  199. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts +0 -1
  200. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts.map +1 -1
  201. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts +1 -5
  202. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts.map +1 -1
  203. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +5 -557
  204. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  205. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +1045 -133
  206. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  207. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +47 -1
  208. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -1
  209. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +1238 -70
  210. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
  211. package/types/examples/plasma_b2c/components/Select/Select.d.ts +282 -20
  212. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
  213. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +709 -69
  214. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  215. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +5 -557
  216. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  217. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +1045 -133
  218. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
  219. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +47 -1
  220. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -1
  221. package/types/examples/plasma_web/components/Mask/Mask.d.ts +1238 -70
  222. package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
  223. package/types/examples/plasma_web/components/Select/Select.d.ts +282 -20
  224. package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
  225. package/types/examples/plasma_web/components/TextField/TextField.d.ts +709 -69
  226. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  227. package/cjs/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  228. package/es/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
@@ -16,12 +16,4 @@ export var StyledChip = /*#__PURE__*/styled(Chip).withConfig({
16
16
  outlineSize: '0.0625rem',
17
17
  outlineRadius: /*#__PURE__*/"calc(var(".concat(tokens.chipBorderRadius, ") - 0.1rem)"),
18
18
  outlineColor: /*#__PURE__*/"var(".concat(tokens.focusColor, ")")
19
- }), tokens.chipOpacityReadonly);
20
- export var TextChip = /*#__PURE__*/styled.button.withConfig({
21
- componentId: "plasma-new-hope__sc-1mypbcr-1"
22
- })(["display:block;flex:none;background:none;border:none;outline:none;padding:0;white-space:nowrap;cursor:pointer;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");color:var(", ");", " &:after{content:',';}&:last-child{&:after{content:'';}}"], tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.color, /*#__PURE__*/addFocus({
23
- outlineOffset: '0.0625rem',
24
- outlineSize: '0.0625rem',
25
- outlineRadius: /*#__PURE__*/"calc(var(".concat(tokens.chipBorderRadius, ") - 0.1rem)"),
26
- outlineColor: /*#__PURE__*/"var(".concat(tokens.focusColor, ")")
27
- }));
19
+ }), tokens.chipOpacityReadonly);
@@ -1,4 +1,4 @@
1
1
  import { css } from 'styled-components';
2
2
  import { classes, tokens } from '../../TextField.tokens';
3
3
  import { Input, InputContainer, Label, StyledTextAfter, StyledTextBefore } from '../../TextField.styles';
4
- export var base = /*#__PURE__*/css(["&.", "{", "{position:relative;display:inline-block;color:var(", ");}}&.", "{", "{padding:var(", ");}", ",", "{padding:var(", ");}", ":focus ~ ", ",", ".", " ~ ", "{color:var(", ");align-items:flex-start;padding:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{color:var(", ");pointer-events:none;position:absolute;top:0;display:flex;align-items:center;box-sizing:border-box;height:var(", ");padding-top:calc(calc(var(", ") - var(", ")) / 2);padding-bottom:calc(calc(var(", ") - var(", ")) / 2);}&.", " ", "{color:var(", ");}}"], classes.outerLabelPlacement, Label, tokens.labelColor, classes.innerLabelPlacement, InputContainer, tokens.contentLabelInnerPadding, StyledTextAfter, StyledTextBefore, tokens.contentLabelInnerPadding, Input, Label, Input, classes.hasValue, Label, tokens.placeholderColor, tokens.labelInnerPadding, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight, Label, tokens.placeholderColor, tokens.height, tokens.height, tokens.labelLineHeight, tokens.height, tokens.labelLineHeight, classes.clear, Label, tokens.clearPlaceholderColor);
4
+ export var base = /*#__PURE__*/css(["&.", "{", "{position:relative;display:inline-block;color:var(", ");}}&.", "{", "{padding:var(", ");}", ",", "{padding:var(", ");}", ":focus ~ ", ",", ".", " ~ ", ",", ".", " ~ ", "{color:var(", ");align-items:flex-start;padding:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{color:var(", ");pointer-events:none;position:absolute;top:0;display:flex;align-items:center;box-sizing:border-box;height:var(", ");padding-top:calc(calc(var(", ") - var(", ")) / 2);padding-bottom:calc(calc(var(", ") - var(", ")) / 2);}&.", " ", "{color:var(", ");}}"], classes.outerLabelPlacement, Label, tokens.labelColor, classes.innerLabelPlacement, InputContainer, tokens.contentLabelInnerPadding, StyledTextAfter, StyledTextBefore, tokens.contentLabelInnerPadding, Input, Label, Input, classes.hasValue, Label, Input, classes.forcePlaceholder, Label, tokens.placeholderColor, tokens.labelInnerPadding, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight, Label, tokens.placeholderColor, tokens.height, tokens.height, tokens.labelLineHeight, tokens.height, tokens.labelLineHeight, classes.clear, Label, tokens.clearPlaceholderColor);
@@ -104,11 +104,6 @@ const meta: Meta<StorySelectProps> = {
104
104
  },
105
105
  if: { arg: 'required', truthy: false },
106
106
  },
107
- chipType: {
108
- control: 'select',
109
- options: ['default', 'text'],
110
- if: { arg: 'target', eq: 'textfield-like' },
111
- },
112
107
  },
113
108
  args: {
114
109
  target: 'textfield-like',
@@ -126,7 +121,6 @@ const meta: Meta<StorySelectProps> = {
126
121
  optional: false,
127
122
  required: false,
128
123
  requiredPlacement: 'right',
129
- chipType: 'default',
130
124
  },
131
125
  parameters: {
132
126
  controls: {
@@ -150,7 +144,6 @@ const meta: Meta<StorySelectProps> = {
150
144
  'optional',
151
145
  'required',
152
146
  'requiredPlacement',
153
- 'chipType',
154
147
  ],
155
148
  },
156
149
  },
@@ -389,7 +382,7 @@ const SingleStory = (args: StorySelectProps) => {
389
382
  export const Single: StoryObj<StorySelectProps> = {
390
383
  parameters: {
391
384
  controls: {
392
- exclude: ['chipView', 'isTargetAmount', 'chipType'],
385
+ exclude: ['chipView', 'isTargetAmount'],
393
386
  },
394
387
  },
395
388
  render: (args) => <SingleStory {...args} />,
@@ -87,6 +87,12 @@ const meta: Meta<typeof TextField> = {
87
87
  type: 'inline-radio',
88
88
  },
89
89
  },
90
+ hasPlaceholder: {
91
+ control: {
92
+ type: 'boolean',
93
+ },
94
+ if: { arg: 'labelPlacement', eq: 'inner' },
95
+ },
90
96
  size: {
91
97
  options: sizes,
92
98
  control: {
@@ -134,10 +140,6 @@ const meta: Meta<typeof TextField> = {
134
140
  control: { type: 'text' },
135
141
  if: { arg: 'hasHint', truthy: true },
136
142
  },
137
- chipType: {
138
- control: 'select',
139
- options: ['default', 'text'],
140
- },
141
143
  },
142
144
  };
143
145
 
@@ -214,6 +216,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
214
216
  view: 'default',
215
217
  label: 'Лейбл',
216
218
  labelPlacement: 'outer',
219
+ hasPlaceholder: false,
217
220
  titleCaption: 'Подпись к полю',
218
221
  textBefore: '',
219
222
  textAfter: '',
@@ -237,11 +240,6 @@ export const Default: StoryObj<StoryPropsDefault> = {
237
240
  hintWidth: '10rem',
238
241
  hintHasArrow: true,
239
242
  },
240
- parameters: {
241
- controls: {
242
- exclude: ['chipType'],
243
- },
244
- },
245
243
  render: (args) => <StoryDemo {...args} />,
246
244
  };
247
245
 
@@ -297,7 +295,6 @@ export const Chips: StoryObj<StoryPropsChips> = {
297
295
  args: {
298
296
  ...Default.args,
299
297
  chips: ['1 value', '2 value', '3 value', '4 value'],
300
- chipType: 'default',
301
298
  },
302
299
  render: (args) => <StoryChips {...args} />,
303
300
  };
@@ -103,11 +103,6 @@ const meta: Meta<StorySelectProps> = {
103
103
  },
104
104
  if: { arg: 'required', truthy: false },
105
105
  },
106
- chipType: {
107
- control: 'select',
108
- options: ['default', 'text'],
109
- if: { arg: 'target', eq: 'textfield-like' },
110
- },
111
106
  },
112
107
  args: {
113
108
  target: 'textfield-like',
@@ -125,7 +120,6 @@ const meta: Meta<StorySelectProps> = {
125
120
  optional: false,
126
121
  required: false,
127
122
  requiredPlacement: 'right',
128
- chipType: 'default',
129
123
  },
130
124
  parameters: {
131
125
  controls: {
@@ -149,7 +143,6 @@ const meta: Meta<StorySelectProps> = {
149
143
  'optional',
150
144
  'required',
151
145
  'requiredPlacement',
152
- 'chipType',
153
146
  ],
154
147
  },
155
148
  },
@@ -388,7 +381,7 @@ const SingleStory = (args: StorySelectProps) => {
388
381
  export const Single: StoryObj<StorySelectProps> = {
389
382
  parameters: {
390
383
  controls: {
391
- exclude: ['chipView', 'isTargetAmount', 'chipType'],
384
+ exclude: ['chipView', 'isTargetAmount'],
392
385
  },
393
386
  },
394
387
  render: (args) => <SingleStory {...args} />,
@@ -87,6 +87,12 @@ const meta: Meta<typeof TextField> = {
87
87
  type: 'inline-radio',
88
88
  },
89
89
  },
90
+ hasPlaceholder: {
91
+ control: {
92
+ type: 'boolean',
93
+ },
94
+ if: { arg: 'labelPlacement', eq: 'inner' },
95
+ },
90
96
  size: {
91
97
  options: sizes,
92
98
  control: {
@@ -134,10 +140,6 @@ const meta: Meta<typeof TextField> = {
134
140
  control: { type: 'text' },
135
141
  if: { arg: 'hasHint', truthy: true },
136
142
  },
137
- chipType: {
138
- control: 'select',
139
- options: ['default', 'text'],
140
- },
141
143
  },
142
144
  };
143
145
 
@@ -214,6 +216,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
214
216
  view: 'default',
215
217
  label: 'Лейбл',
216
218
  labelPlacement: 'outer',
219
+ hasPlaceholder: false,
217
220
  titleCaption: 'Подпись к полю',
218
221
  textBefore: '',
219
222
  textAfter: '',
@@ -223,11 +226,11 @@ export const Default: StoryObj<StoryPropsDefault> = {
223
226
  readOnly: false,
224
227
  enableContentLeft: true,
225
228
  enableContentRight: true,
226
- clear: false,
227
- hasDivider: false,
228
229
  optional: false,
229
230
  required: false,
230
231
  requiredPlacement: 'right',
232
+ clear: false,
233
+ hasDivider: false,
231
234
  hasHint: true,
232
235
  hintText: 'Текст подсказки',
233
236
  hintTrigger: 'hover',
@@ -237,11 +240,6 @@ export const Default: StoryObj<StoryPropsDefault> = {
237
240
  hintWidth: '10rem',
238
241
  hintHasArrow: true,
239
242
  },
240
- parameters: {
241
- controls: {
242
- exclude: ['chipType'],
243
- },
244
- },
245
243
  render: (args) => <StoryDemo {...args} />,
246
244
  };
247
245
 
@@ -297,7 +295,6 @@ export const Chips: StoryObj<StoryPropsChips> = {
297
295
  args: {
298
296
  ...Default.args,
299
297
  chips: ['1 value', '2 value', '3 value', '4 value'],
300
- chipType: 'default',
301
298
  },
302
299
  render: (args) => <StoryChips {...args} />,
303
300
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,sBAAsB,CAAC;AAGlF;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,UAAU,gBAAgB,EAAE,iBAAiB,CAAC,+FAuLhF,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBAzLQ,UAAU,gBAAgB,EAAE,iBAAiB,CAAC;;;;;;;;;;;;CAwMpF,CAAC"}
1
+ {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,sBAAsB,CAAC;AAGlF;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,UAAU,gBAAgB,EAAE,iBAAiB,CAAC,+FA8LhF,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBAhMQ,UAAU,gBAAgB,EAAE,iBAAiB,CAAC;;;;;;;;;;;;CA+MpF,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import type { InputHTMLAttributes, ReactNode } from 'react';
2
- import { DistributiveOmit } from '../../types';
3
- import { TextFieldPropsBase } from '../TextField/TextField.types';
2
+ import { TextFieldPropsBase, RequiredProps } from '../TextField/TextField.types';
4
3
  export declare type SuggestionItemType = {
5
4
  /**
6
5
  * Метка-подпись к подсказке
@@ -85,5 +84,5 @@ export declare type BaseProps = {
85
84
  */
86
85
  renderListEnd?: () => ReactNode;
87
86
  };
88
- export declare type AutocompleteProps = BaseProps & DistributiveOmit<TextFieldPropsBase, 'chips' | 'onChangeChips' | 'enumerationType' | 'chipType'> & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'required'>;
87
+ export declare type AutocompleteProps = BaseProps & RequiredProps & Omit<TextFieldPropsBase, 'chips' | 'onChangeChips' | 'enumerationType' | 'required' | 'optional' | 'requiredPlacement'> & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'required'>;
89
88
  //# sourceMappingURL=Autocomplete.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.types.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,oBAAY,kBAAkB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AAEF,oBAAY,SAAS,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACnC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAC;IAC/C;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,kBAAkB,EAAE,KAAK,SAAS,CAAC;IACxD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,SAAS,CAAC;CACnC,CAAC;AAEF,oBAAY,iBAAiB,GAAG,SAAS,GACrC,gBAAgB,CAAC,kBAAkB,EAAE,OAAO,GAAG,eAAe,GAAG,iBAAiB,GAAG,UAAU,CAAC,GAChG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"Autocomplete.types.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAEjF,oBAAY,kBAAkB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AAEF,oBAAY,SAAS,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACnC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAC;IAC/C;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,kBAAkB,EAAE,KAAK,SAAS,CAAC;IACxD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,SAAS,CAAC;CACnC,CAAC;AAEF,oBAAY,iBAAiB,GAAG,SAAS,GACrC,aAAa,GACb,IAAI,CACA,kBAAkB,EAClB,OAAO,GAAG,eAAe,GAAG,iBAAiB,GAAG,UAAU,GAAG,UAAU,GAAG,mBAAmB,CAChG,GACD,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC"}