@salutejs/plasma-new-hope 0.194.0-canary.1552.11858023676.0 → 0.194.0-canary.1556.11879682469.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +17 -17
  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 +17 -19
  5. package/cjs/components/Combobox/ComboboxNew/Combobox.js +12 -39
  6. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  7. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +17 -19
  8. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +17 -19
  9. package/cjs/components/DatePicker/RangeDate/RangeDate.css +17 -17
  10. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +17 -17
  11. package/cjs/components/DatePicker/SingleDate/SingleDate.css +17 -17
  12. package/cjs/components/DatePicker/SingleDate/SingleDate.js +9 -4
  13. package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  14. package/cjs/components/Pagination/Pagination.css +17 -17
  15. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +17 -17
  16. package/cjs/components/Range/Range.css +17 -17
  17. package/cjs/components/Select/Select.css +17 -17
  18. package/cjs/components/Select/ui/Inner/Inner.css +17 -17
  19. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +17 -17
  20. package/cjs/components/Select/ui/Target/Target.css +17 -17
  21. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +17 -17
  22. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +10 -3
  23. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  24. package/cjs/components/Slider/Slider.css +17 -17
  25. package/cjs/components/Slider/components/Double/Double.css +17 -17
  26. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +17 -17
  27. package/cjs/components/TextField/TextField.js +9 -5
  28. package/cjs/components/TextField/TextField.js.map +1 -1
  29. package/cjs/components/TextField/TextField.styles.js +20 -11
  30. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  31. package/cjs/components/TextField/{TextField.styles_j7dqpn.css → TextField.styles_ppcxpx.css} +1 -1
  32. package/cjs/components/TextField/TextField.tokens.js +1 -0
  33. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  34. package/cjs/components/TextField/ui/Hint/Hint.css +20 -20
  35. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  36. package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
  37. package/cjs/components/TextField/variations/_label-placement/base_y1lvvc.css +1 -0
  38. package/cjs/index.css +17 -19
  39. package/cjs/index.js +0 -2
  40. package/cjs/index.js.map +1 -1
  41. package/cjs/utils/index.js.map +1 -1
  42. package/emotion/cjs/components/Autocomplete/Autocomplete.js +7 -1
  43. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +13 -40
  44. package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.js +9 -4
  45. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +10 -3
  46. package/emotion/cjs/components/TextField/TextField.js +10 -6
  47. package/emotion/cjs/components/TextField/TextField.styles.js +29 -26
  48. package/emotion/cjs/components/TextField/TextField.tokens.js +1 -0
  49. package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  50. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  51. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  52. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  53. package/emotion/cjs/utils/index.js +1 -10
  54. package/emotion/es/components/Autocomplete/Autocomplete.js +7 -1
  55. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +13 -41
  56. package/emotion/es/components/DatePicker/SingleDate/SingleDate.js +9 -4
  57. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +10 -3
  58. package/emotion/es/components/TextField/TextField.js +10 -6
  59. package/emotion/es/components/TextField/TextField.styles.js +29 -26
  60. package/emotion/es/components/TextField/TextField.tokens.js +1 -0
  61. package/emotion/es/components/TextField/variations/_label-placement/base.js +1 -1
  62. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  63. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  64. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  65. package/emotion/es/utils/index.js +0 -1
  66. package/es/components/Autocomplete/Autocomplete.css +17 -17
  67. package/es/components/Autocomplete/Autocomplete.js +7 -1
  68. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  69. package/es/components/Combobox/ComboboxNew/Combobox.css +17 -19
  70. package/es/components/Combobox/ComboboxNew/Combobox.js +14 -41
  71. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  72. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +17 -19
  73. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +17 -19
  74. package/es/components/DatePicker/RangeDate/RangeDate.css +17 -17
  75. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +17 -17
  76. package/es/components/DatePicker/SingleDate/SingleDate.css +17 -17
  77. package/es/components/DatePicker/SingleDate/SingleDate.js +9 -4
  78. package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  79. package/es/components/Pagination/Pagination.css +17 -17
  80. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +17 -17
  81. package/es/components/Range/Range.css +17 -17
  82. package/es/components/Select/Select.css +17 -17
  83. package/es/components/Select/ui/Inner/Inner.css +17 -17
  84. package/es/components/Select/ui/Inner/ui/Item/Item.css +17 -17
  85. package/es/components/Select/ui/Target/Target.css +17 -17
  86. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +17 -17
  87. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +10 -3
  88. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  89. package/es/components/Slider/Slider.css +17 -17
  90. package/es/components/Slider/components/Double/Double.css +17 -17
  91. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +17 -17
  92. package/es/components/TextField/TextField.js +9 -5
  93. package/es/components/TextField/TextField.js.map +1 -1
  94. package/es/components/TextField/TextField.styles.js +20 -11
  95. package/es/components/TextField/TextField.styles.js.map +1 -1
  96. package/es/components/TextField/{TextField.styles_j7dqpn.css → TextField.styles_ppcxpx.css} +1 -1
  97. package/es/components/TextField/TextField.tokens.js +1 -0
  98. package/es/components/TextField/TextField.tokens.js.map +1 -1
  99. package/es/components/TextField/ui/Hint/Hint.css +20 -20
  100. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  101. package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
  102. package/es/components/TextField/variations/_label-placement/base_y1lvvc.css +1 -0
  103. package/es/index.css +17 -19
  104. package/es/index.js +0 -1
  105. package/es/index.js.map +1 -1
  106. package/es/utils/index.js.map +1 -1
  107. package/package.json +2 -2
  108. package/styled-components/cjs/components/Autocomplete/Autocomplete.js +7 -1
  109. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +13 -40
  110. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +9 -4
  111. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +10 -3
  112. package/styled-components/cjs/components/TextField/TextField.js +9 -5
  113. package/styled-components/cjs/components/TextField/TextField.styles.js +9 -6
  114. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -0
  115. package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  116. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  117. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  118. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  119. package/styled-components/cjs/utils/index.js +1 -10
  120. package/styled-components/es/components/Autocomplete/Autocomplete.js +7 -1
  121. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +13 -41
  122. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +9 -4
  123. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +10 -3
  124. package/styled-components/es/components/TextField/TextField.js +9 -5
  125. package/styled-components/es/components/TextField/TextField.styles.js +9 -6
  126. package/styled-components/es/components/TextField/TextField.tokens.js +1 -0
  127. package/styled-components/es/components/TextField/variations/_label-placement/base.js +1 -1
  128. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  129. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  130. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  131. package/styled-components/es/utils/index.js +0 -1
  132. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  133. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +717 -61
  134. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  135. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  136. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +31 -33
  137. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  138. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +717 -61
  139. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  140. package/types/components/DatePicker/SingleDate/SingleDate.d.ts +2 -2
  141. package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -1
  142. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +717 -61
  143. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  144. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +28 -9
  145. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
  146. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +176 -4
  147. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  148. package/types/components/Range/Range.styles.d.ts +717 -61
  149. package/types/components/Range/Range.styles.d.ts.map +1 -1
  150. package/types/components/Select/Select.types.d.ts +30 -10
  151. package/types/components/Select/Select.types.d.ts.map +1 -1
  152. package/types/components/Select/ui/Target/Target.d.ts +1 -1
  153. package/types/components/Select/ui/Target/Target.types.d.ts +1 -1
  154. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  155. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  156. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +717 -61
  157. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  158. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +1 -1
  159. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
  160. package/types/components/Slider/components/Double/Double.styles.d.ts +717 -61
  161. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  162. package/types/components/TextField/TextField.d.ts.map +1 -1
  163. package/types/components/TextField/TextField.styles.d.ts +3 -1
  164. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  165. package/types/components/TextField/TextField.tokens.d.ts +1 -0
  166. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  167. package/types/components/TextField/TextField.types.d.ts +43 -20
  168. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  169. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +3 -5
  170. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  171. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +452 -500
  172. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  173. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +47 -1
  174. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -1
  175. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +1246 -62
  176. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
  177. package/types/examples/plasma_b2c/components/Select/Select.d.ts +176 -4
  178. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
  179. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +717 -61
  180. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  181. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +3 -5
  182. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  183. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +452 -500
  184. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
  185. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +47 -1
  186. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -1
  187. package/types/examples/plasma_web/components/Mask/Mask.d.ts +1246 -62
  188. package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
  189. package/types/examples/plasma_web/components/Select/Select.d.ts +176 -4
  190. package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
  191. package/types/examples/plasma_web/components/TextField/TextField.d.ts +717 -61
  192. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  193. package/types/utils/index.d.ts +0 -1
  194. package/types/utils/index.d.ts.map +1 -1
  195. package/cjs/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.css +0 -1
  196. package/cjs/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.js +0 -39
  197. package/cjs/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.js.map +0 -1
  198. package/cjs/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles.js +0 -15
  199. package/cjs/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles.js.map +0 -1
  200. package/cjs/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles_18yw2bf.css +0 -1
  201. package/cjs/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  202. package/cjs/utils/createEvent.js +0 -54
  203. package/cjs/utils/createEvent.js.map +0 -1
  204. package/emotion/cjs/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.js +0 -40
  205. package/emotion/cjs/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles.js +0 -13
  206. package/emotion/cjs/utils/createEvent.js +0 -53
  207. package/emotion/es/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.js +0 -31
  208. package/emotion/es/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles.js +0 -6
  209. package/emotion/es/utils/createEvent.js +0 -47
  210. package/es/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.css +0 -1
  211. package/es/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.js +0 -35
  212. package/es/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.js.map +0 -1
  213. package/es/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles.js +0 -11
  214. package/es/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles.js.map +0 -1
  215. package/es/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles_18yw2bf.css +0 -1
  216. package/es/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  217. package/es/utils/createEvent.js +0 -50
  218. package/es/utils/createEvent.js.map +0 -1
  219. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.js +0 -40
  220. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles.js +0 -12
  221. package/styled-components/cjs/utils/createEvent.js +0 -53
  222. package/styled-components/es/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.js +0 -31
  223. package/styled-components/es/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles.js +0 -5
  224. package/styled-components/es/utils/createEvent.js +0 -47
  225. package/types/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.d.ts +0 -6
  226. package/types/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.d.ts.map +0 -1
  227. package/types/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles.d.ts +0 -3
  228. package/types/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles.d.ts.map +0 -1
  229. package/types/utils/createEvent.d.ts +0 -3
  230. package/types/utils/createEvent.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/TextField/TextField.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+IAA0B,CAAC"}
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/TextField/TextField.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+IAA0B,CAAC"}
@@ -6,7 +6,6 @@ export { IS_REACT_18, safeUseId } from './react';
6
6
  export { isNumber } from './isNumber';
7
7
  export { mergeRefs, setRefList } from './setRefList';
8
8
  export { isEmpty } from './isEmpty';
9
- export { createEvent } from './createEvent';
10
9
  export * as constants from './constants';
11
10
  export * from './getPopoverPlacement';
12
11
  export { noop } from './noop';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,EAAE,eAAgB,CAAC,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,EAAE,WAAuD,CAAC;AAEvH,eAAO,MAAM,eAAe,MAAO,oBAAoB,WAAW,MAAM,MAAM,GAAG,MAAM,GAAG,aAAa,CAAC,KAAG,MAQ1G,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,EAAE,eAAgB,CAAC,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,EAAE,WAAuD,CAAC;AAEvH,eAAO,MAAM,eAAe,MAAO,oBAAoB,WAAW,MAAM,MAAM,GAAG,MAAM,GAAG,aAAa,CAAC,KAAG,MAQ1G,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1 +0,0 @@
1
- .SelectNative_styles_18yw2bf_st8j5fy__14a96fe5{visibility:hidden;width:0;height:0;opacity:0;margin:0;padding:0;border:none;}
@@ -1,39 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var React = require('react');
6
- var plasmaCore = require('@salutejs/plasma-core');
7
- var SelectNative_styles = require('./SelectNative.styles.js');
8
- var createEvent = require('../../../../../utils/createEvent.js');
9
-
10
- var SelectNative = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
11
- var name = _ref.name,
12
- multiple = _ref.multiple,
13
- value = _ref.value,
14
- onChange = _ref.onChange;
15
- var values = multiple ? value : [value];
16
- var selectRef = React.useRef(null);
17
- var forkRef = plasmaCore.useForkRef(selectRef, ref);
18
- React.useEffect(function () {
19
- var event = createEvent.createEvent(selectRef);
20
- if (onChange) {
21
- onChange(event);
22
- }
23
- }, [values]);
24
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectNative_styles.SelectHidden, {
25
- ref: forkRef,
26
- multiple: multiple,
27
- name: name,
28
- hidden: true,
29
- value: multiple ? values : values[0]
30
- }, values.map(function (v) {
31
- return /*#__PURE__*/React.createElement("option", {
32
- key: v,
33
- value: v
34
- }, v);
35
- })));
36
- });
37
-
38
- exports.SelectNative = SelectNative;
39
- //# sourceMappingURL=SelectNative.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectNative.js","sources":["../../../../../../src/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.tsx"],"sourcesContent":["import React, { ChangeEvent, forwardRef, useEffect, useRef } from 'react';\nimport { useForkRef } from '@salutejs/plasma-core';\n\nimport { createEvent } from '../../../../../utils';\nimport { ComboboxProps } from '../../Combobox.types';\n\nimport { SelectHidden } from './SelectNative.styles';\n\ntype Props = Pick<ComboboxProps, 'name' | 'value' | 'multiple'> & {\n onChange: (value: ChangeEvent<HTMLSelectElement> | null) => void;\n};\n\nexport const SelectNative = forwardRef<HTMLInputElement, Props>(({ name, multiple, value, onChange }, ref) => {\n const values = (multiple ? value : [value]) as string[];\n const selectRef = useRef<HTMLSelectElement>(null);\n const forkRef = useForkRef(selectRef, ref as any);\n\n useEffect(() => {\n const event = createEvent(selectRef);\n if (onChange) {\n onChange(event);\n }\n }, [values]);\n\n return (\n <>\n <SelectHidden ref={forkRef} multiple={multiple} name={name} hidden value={multiple ? values : values[0]}>\n {values.map((v) => (\n <option key={v} value={v}>\n {v}\n </option>\n ))}\n </SelectHidden>\n </>\n );\n});\n"],"names":["SelectNative","forwardRef","_ref","ref","name","multiple","value","onChange","values","selectRef","useRef","forkRef","useForkRef","useEffect","event","createEvent","React","createElement","Fragment","SelectHidden","hidden","map","v","key"],"mappings":";;;;;;;;;AAYO,IAAMA,YAAY,gBAAGC,gBAAU,CAA0B,UAAAC,IAAA,EAAsCC,GAAG,EAAK;AAAA,EAAA,IAA3CC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAEC,QAAQ,GAAAL,IAAA,CAARK,QAAQ,CAAA;EAC9F,IAAMC,MAAM,GAAIH,QAAQ,GAAGC,KAAK,GAAG,CAACA,KAAK,CAAc,CAAA;AACvD,EAAA,IAAMG,SAAS,GAAGC,YAAM,CAAoB,IAAI,CAAC,CAAA;AACjD,EAAA,IAAMC,OAAO,GAAGC,qBAAU,CAACH,SAAS,EAAEN,GAAU,CAAC,CAAA;AAEjDU,EAAAA,eAAS,CAAC,YAAM;AACZ,IAAA,IAAMC,KAAK,GAAGC,uBAAW,CAACN,SAAS,CAAC,CAAA;AACpC,IAAA,IAAIF,QAAQ,EAAE;MACVA,QAAQ,CAACO,KAAK,CAAC,CAAA;AACnB,KAAA;AACJ,GAAC,EAAE,CAACN,MAAM,CAAC,CAAC,CAAA;AAEZ,EAAA,oBACIQ,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,eACIF,KAAA,CAAAC,aAAA,CAACE,gCAAY,EAAA;AAAChB,IAAAA,GAAG,EAAEQ,OAAQ;AAACN,IAAAA,QAAQ,EAAEA,QAAS;AAACD,IAAAA,IAAI,EAAEA,IAAK;IAACgB,MAAM,EAAA,IAAA;AAACd,IAAAA,KAAK,EAAED,QAAQ,GAAGG,MAAM,GAAGA,MAAM,CAAC,CAAC,CAAA;AAAE,GAAA,EACnGA,MAAM,CAACa,GAAG,CAAC,UAACC,CAAC,EAAA;IAAA,oBACVN,KAAA,CAAAC,aAAA,CAAA,QAAA,EAAA;AAAQM,MAAAA,GAAG,EAAED,CAAE;AAAChB,MAAAA,KAAK,EAAEgB,CAAAA;AAAE,KAAA,EACpBA,CACG,CAAC,CAAA;GACZ,CACS,CAChB,CAAC,CAAA;AAEX,CAAC;;;;"}
@@ -1,15 +0,0 @@
1
- import './SelectNative.styles_18yw2bf.css';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var react = require('@linaria/react');
7
-
8
- var SelectHidden = /*#__PURE__*/react.styled('select')({
9
- name: "SelectHidden",
10
- "class": "st8j5fy",
11
- propsAsIs: false
12
- });
13
-
14
- exports.SelectHidden = SelectHidden;
15
- //# sourceMappingURL=SelectNative.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectNative.styles.js","sources":["../../../../../../src/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { applyHidden } from '../../../../../mixins';\n\nexport const SelectHidden = styled.select`\n ${applyHidden()};\n`;\n"],"names":["SelectHidden","styled","name","class","propsAsIs"],"mappings":";;;;;;AAIO,IAAMA,YAAY,gBAAGC,YAAM,CAAA,QAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAEjC;;;;"}
@@ -1 +0,0 @@
1
- .st8j5fy{visibility:hidden;width:0;height:0;opacity:0;margin:0;padding:0;border:none;}
@@ -1 +0,0 @@
1
- .b15d3bnf.label-placement-outer .l1gjsnfi{position:relative;display:inline-block;color:var(--plasma-textfield__label-color);}.b15d3bnf.label-placement-inner .i19ry60d{padding:var(--plasma-textfield-placement_inner__content-padding);}.b15d3bnf.label-placement-inner .smqgwd8,.b15d3bnf.label-placement-inner .s7hnwwb{padding:var(--plasma-textfield-placement_inner__content-padding);}.b15d3bnf.label-placement-inner .i13qvwoy:focus ~ .l1gjsnfi,.b15d3bnf.label-placement-inner .i13qvwoy.has-value ~ .l1gjsnfi{color:var(--plasma-textfield__placeholder-color);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;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);}.b15d3bnf.label-placement-inner .l1gjsnfi{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;height:var(--plasma-textfield-height);padding-top:calc(calc(var(--plasma-textfield-height) - var(--plasma-textfield__label-line-height)) / 2);padding-bottom:calc(calc(var(--plasma-textfield-height) - var(--plasma-textfield__label-line-height)) / 2);}.b15d3bnf.label-placement-inner.textfield-clear .l1gjsnfi{color:var(--plasma-textfield__clear-placeholder-color);}
@@ -1,54 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var createEvent = function createEvent(ref) {
6
- if (ref.current) {
7
- var event = new Event('change', {
8
- bubbles: true
9
- });
10
- Object.defineProperty(event, 'target', {
11
- writable: false,
12
- value: ref.current
13
- });
14
- var syntheticEvent = createSyntheticEvent(event);
15
- return syntheticEvent;
16
- }
17
- return null;
18
- };
19
- var createSyntheticEvent = function createSyntheticEvent(event) {
20
- var _isDefaultPrevented = false;
21
- var _isPropagationStopped = false;
22
- var preventDefault = function preventDefault() {
23
- _isDefaultPrevented = true;
24
- event.preventDefault();
25
- };
26
- var stopPropagation = function stopPropagation() {
27
- _isPropagationStopped = true;
28
- event.stopPropagation();
29
- };
30
- return {
31
- nativeEvent: event,
32
- currentTarget: event.currentTarget,
33
- target: event.target,
34
- bubbles: event.bubbles,
35
- cancelable: event.cancelable,
36
- defaultPrevented: event.defaultPrevented,
37
- eventPhase: event.eventPhase,
38
- isTrusted: event.isTrusted,
39
- preventDefault: preventDefault,
40
- isDefaultPrevented: function isDefaultPrevented() {
41
- return _isDefaultPrevented;
42
- },
43
- stopPropagation: stopPropagation,
44
- isPropagationStopped: function isPropagationStopped() {
45
- return _isPropagationStopped;
46
- },
47
- persist: function persist() {},
48
- timeStamp: event.timeStamp,
49
- type: event.type
50
- };
51
- };
52
-
53
- exports.createEvent = createEvent;
54
- //# sourceMappingURL=createEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createEvent.js","sources":["../../src/utils/createEvent.ts"],"sourcesContent":["import { RefObject } from 'react';\n\nexport const createEvent = <T extends HTMLSelectElement | HTMLInputElement | HTMLTextAreaElement>(\n ref: RefObject<T>,\n) => {\n if (ref.current) {\n const event = new Event('change', { bubbles: true });\n Object.defineProperty(event, 'target', { writable: false, value: ref.current });\n const syntheticEvent = createSyntheticEvent(event) as React.ChangeEvent<typeof ref.current>;\n return syntheticEvent;\n }\n\n return null;\n};\n\nconst createSyntheticEvent = <T extends Element, E extends Event>(event: E): React.SyntheticEvent<T, E> => {\n let isDefaultPrevented = false;\n let isPropagationStopped = false;\n const preventDefault = () => {\n isDefaultPrevented = true;\n event.preventDefault();\n };\n const stopPropagation = () => {\n isPropagationStopped = true;\n event.stopPropagation();\n };\n return {\n nativeEvent: event,\n currentTarget: event.currentTarget as EventTarget & T,\n target: event.target as EventTarget & T,\n bubbles: event.bubbles,\n cancelable: event.cancelable,\n defaultPrevented: event.defaultPrevented,\n eventPhase: event.eventPhase,\n isTrusted: event.isTrusted,\n preventDefault,\n isDefaultPrevented: () => isDefaultPrevented,\n stopPropagation,\n isPropagationStopped: () => isPropagationStopped,\n persist: () => {},\n timeStamp: event.timeStamp,\n type: event.type,\n };\n};\n"],"names":["createEvent","ref","current","event","Event","bubbles","Object","defineProperty","writable","value","syntheticEvent","createSyntheticEvent","isDefaultPrevented","isPropagationStopped","preventDefault","stopPropagation","nativeEvent","currentTarget","target","cancelable","defaultPrevented","eventPhase","isTrusted","persist","timeStamp","type"],"mappings":";;;;IAEaA,WAAW,GAAG,SAAdA,WAAWA,CACpBC,GAAiB,EAChB;EACD,IAAIA,GAAG,CAACC,OAAO,EAAE;AACb,IAAA,IAAMC,KAAK,GAAG,IAAIC,KAAK,CAAC,QAAQ,EAAE;AAAEC,MAAAA,OAAO,EAAE,IAAA;AAAK,KAAC,CAAC,CAAA;AACpDC,IAAAA,MAAM,CAACC,cAAc,CAACJ,KAAK,EAAE,QAAQ,EAAE;AAAEK,MAAAA,QAAQ,EAAE,KAAK;MAAEC,KAAK,EAAER,GAAG,CAACC,OAAAA;AAAQ,KAAC,CAAC,CAAA;AAC/E,IAAA,IAAMQ,cAAc,GAAGC,oBAAoB,CAACR,KAAK,CAA0C,CAAA;AAC3F,IAAA,OAAOO,cAAc,CAAA;AACzB,GAAA;AAEA,EAAA,OAAO,IAAI,CAAA;AACf,EAAC;AAED,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAwCR,KAAQ,EAAiC;EACvG,IAAIS,mBAAkB,GAAG,KAAK,CAAA;EAC9B,IAAIC,qBAAoB,GAAG,KAAK,CAAA;AAChC,EAAA,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,GAAS;AACzBF,IAAAA,mBAAkB,GAAG,IAAI,CAAA;IACzBT,KAAK,CAACW,cAAc,EAAE,CAAA;GACzB,CAAA;AACD,EAAA,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,GAAS;AAC1BF,IAAAA,qBAAoB,GAAG,IAAI,CAAA;IAC3BV,KAAK,CAACY,eAAe,EAAE,CAAA;GAC1B,CAAA;EACD,OAAO;AACHC,IAAAA,WAAW,EAAEb,KAAK;IAClBc,aAAa,EAAEd,KAAK,CAACc,aAAgC;IACrDC,MAAM,EAAEf,KAAK,CAACe,MAAyB;IACvCb,OAAO,EAAEF,KAAK,CAACE,OAAO;IACtBc,UAAU,EAAEhB,KAAK,CAACgB,UAAU;IAC5BC,gBAAgB,EAAEjB,KAAK,CAACiB,gBAAgB;IACxCC,UAAU,EAAElB,KAAK,CAACkB,UAAU;IAC5BC,SAAS,EAAEnB,KAAK,CAACmB,SAAS;AAC1BR,IAAAA,cAAc,EAAdA,cAAc;IACdF,kBAAkB,EAAE,SAAAA,kBAAA,GAAA;AAAA,MAAA,OAAMA,mBAAkB,CAAA;AAAA,KAAA;AAC5CG,IAAAA,eAAe,EAAfA,eAAe;IACfF,oBAAoB,EAAE,SAAAA,oBAAA,GAAA;AAAA,MAAA,OAAMA,qBAAoB,CAAA;AAAA,KAAA;AAChDU,IAAAA,OAAO,EAAE,SAAAA,OAAA,GAAM,EAAE;IACjBC,SAAS,EAAErB,KAAK,CAACqB,SAAS;IAC1BC,IAAI,EAAEtB,KAAK,CAACsB,IAAAA;GACf,CAAA;AACL,CAAC;;;;"}
@@ -1,40 +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.SelectNative = void 0;
8
- var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
- var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
10
- var _utils = /*#__PURE__*/require("../../../../../utils");
11
- var _SelectNative = /*#__PURE__*/require("./SelectNative.styles");
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 SelectNative = exports.SelectNative = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
15
- var name = _ref.name,
16
- multiple = _ref.multiple,
17
- value = _ref.value,
18
- onChange = _ref.onChange;
19
- var values = multiple ? value : [value];
20
- var selectRef = (0, _react.useRef)(null);
21
- var forkRef = (0, _plasmaCore.useForkRef)(selectRef, ref);
22
- (0, _react.useEffect)(function () {
23
- var event = (0, _utils.createEvent)(selectRef);
24
- if (onChange) {
25
- onChange(event);
26
- }
27
- }, [values]);
28
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_SelectNative.SelectHidden, {
29
- ref: forkRef,
30
- multiple: multiple,
31
- name: name,
32
- hidden: true,
33
- value: multiple ? values : values[0]
34
- }, values.map(function (v) {
35
- return /*#__PURE__*/_react["default"].createElement("option", {
36
- key: v,
37
- value: v
38
- }, v);
39
- })));
40
- });
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SelectHidden = void 0;
7
- var _base = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("@emotion/styled/base"));
8
- var _mixins = /*#__PURE__*/require("../../../../../mixins");
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
- var SelectHidden = exports.SelectHidden = /*#__PURE__*/(0, _base["default"])("select", {
11
- target: "eywcm6j0",
12
- label: "plasma-new-hope__SelectHidden"
13
- })( /*#__PURE__*/(0, _mixins.applyHidden)(), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29tYm9ib3gvQ29tYm9ib3hOZXcvdWkvU2VsZWN0TmF0aXZlL1NlbGVjdE5hdGl2ZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSXlDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29tYm9ib3gvQ29tYm9ib3hOZXcvdWkvU2VsZWN0TmF0aXZlL1NlbGVjdE5hdGl2ZS5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGFwcGx5SGlkZGVuIH0gZnJvbSAnLi4vLi4vLi4vLi4vLi4vbWl4aW5zJztcblxuZXhwb3J0IGNvbnN0IFNlbGVjdEhpZGRlbiA9IHN0eWxlZC5zZWxlY3RgXG4gICAgJHthcHBseUhpZGRlbigpfTtcbmA7XG4iXX0= */"));
@@ -1,53 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.createEvent = void 0;
7
- var createEvent = exports.createEvent = function createEvent(ref) {
8
- if (ref.current) {
9
- var event = new Event('change', {
10
- bubbles: true
11
- });
12
- Object.defineProperty(event, 'target', {
13
- writable: false,
14
- value: ref.current
15
- });
16
- var syntheticEvent = createSyntheticEvent(event);
17
- return syntheticEvent;
18
- }
19
- return null;
20
- };
21
- var createSyntheticEvent = function createSyntheticEvent(event) {
22
- var _isDefaultPrevented = false;
23
- var _isPropagationStopped = false;
24
- var preventDefault = function preventDefault() {
25
- _isDefaultPrevented = true;
26
- event.preventDefault();
27
- };
28
- var stopPropagation = function stopPropagation() {
29
- _isPropagationStopped = true;
30
- event.stopPropagation();
31
- };
32
- return {
33
- nativeEvent: event,
34
- currentTarget: event.currentTarget,
35
- target: event.target,
36
- bubbles: event.bubbles,
37
- cancelable: event.cancelable,
38
- defaultPrevented: event.defaultPrevented,
39
- eventPhase: event.eventPhase,
40
- isTrusted: event.isTrusted,
41
- preventDefault: preventDefault,
42
- isDefaultPrevented: function isDefaultPrevented() {
43
- return _isDefaultPrevented;
44
- },
45
- stopPropagation: stopPropagation,
46
- isPropagationStopped: function isPropagationStopped() {
47
- return _isPropagationStopped;
48
- },
49
- persist: function persist() {},
50
- timeStamp: event.timeStamp,
51
- type: event.type
52
- };
53
- };
@@ -1,31 +0,0 @@
1
- import React, { forwardRef, useEffect, useRef } from 'react';
2
- import { useForkRef } from '@salutejs/plasma-core';
3
- import { createEvent } from '../../../../../utils';
4
- import { SelectHidden } from './SelectNative.styles';
5
- export var SelectNative = /*#__PURE__*/forwardRef(function (_ref, ref) {
6
- var name = _ref.name,
7
- multiple = _ref.multiple,
8
- value = _ref.value,
9
- onChange = _ref.onChange;
10
- var values = multiple ? value : [value];
11
- var selectRef = useRef(null);
12
- var forkRef = useForkRef(selectRef, ref);
13
- useEffect(function () {
14
- var event = createEvent(selectRef);
15
- if (onChange) {
16
- onChange(event);
17
- }
18
- }, [values]);
19
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectHidden, {
20
- ref: forkRef,
21
- multiple: multiple,
22
- name: name,
23
- hidden: true,
24
- value: multiple ? values : values[0]
25
- }, values.map(function (v) {
26
- return /*#__PURE__*/React.createElement("option", {
27
- key: v,
28
- value: v
29
- }, v);
30
- })));
31
- });
@@ -1,6 +0,0 @@
1
- import _styled from "@emotion/styled/base";
2
- import { applyHidden } from '../../../../../mixins';
3
- export var SelectHidden = /*#__PURE__*/_styled("select", {
4
- target: "eywcm6j0",
5
- label: "plasma-new-hope__SelectHidden"
6
- })( /*#__PURE__*/applyHidden(), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29tYm9ib3gvQ29tYm9ib3hOZXcvdWkvU2VsZWN0TmF0aXZlL1NlbGVjdE5hdGl2ZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSXlDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29tYm9ib3gvQ29tYm9ib3hOZXcvdWkvU2VsZWN0TmF0aXZlL1NlbGVjdE5hdGl2ZS5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGFwcGx5SGlkZGVuIH0gZnJvbSAnLi4vLi4vLi4vLi4vLi4vbWl4aW5zJztcblxuZXhwb3J0IGNvbnN0IFNlbGVjdEhpZGRlbiA9IHN0eWxlZC5zZWxlY3RgXG4gICAgJHthcHBseUhpZGRlbigpfTtcbmA7XG4iXX0= */"));
@@ -1,47 +0,0 @@
1
- export var createEvent = function createEvent(ref) {
2
- if (ref.current) {
3
- var event = new Event('change', {
4
- bubbles: true
5
- });
6
- Object.defineProperty(event, 'target', {
7
- writable: false,
8
- value: ref.current
9
- });
10
- var syntheticEvent = createSyntheticEvent(event);
11
- return syntheticEvent;
12
- }
13
- return null;
14
- };
15
- var createSyntheticEvent = function createSyntheticEvent(event) {
16
- var _isDefaultPrevented = false;
17
- var _isPropagationStopped = false;
18
- var preventDefault = function preventDefault() {
19
- _isDefaultPrevented = true;
20
- event.preventDefault();
21
- };
22
- var stopPropagation = function stopPropagation() {
23
- _isPropagationStopped = true;
24
- event.stopPropagation();
25
- };
26
- return {
27
- nativeEvent: event,
28
- currentTarget: event.currentTarget,
29
- target: event.target,
30
- bubbles: event.bubbles,
31
- cancelable: event.cancelable,
32
- defaultPrevented: event.defaultPrevented,
33
- eventPhase: event.eventPhase,
34
- isTrusted: event.isTrusted,
35
- preventDefault: preventDefault,
36
- isDefaultPrevented: function isDefaultPrevented() {
37
- return _isDefaultPrevented;
38
- },
39
- stopPropagation: stopPropagation,
40
- isPropagationStopped: function isPropagationStopped() {
41
- return _isPropagationStopped;
42
- },
43
- persist: function persist() {},
44
- timeStamp: event.timeStamp,
45
- type: event.type
46
- };
47
- };
@@ -1 +0,0 @@
1
- .SelectNative_styles_18yw2bf_st8j5fy__14a96fe5{visibility:hidden;width:0;height:0;opacity:0;margin:0;padding:0;border:none;}
@@ -1,35 +0,0 @@
1
- import React, { forwardRef, useRef, useEffect } from 'react';
2
- import { useForkRef } from '@salutejs/plasma-core';
3
- import { SelectHidden } from './SelectNative.styles.js';
4
- import { createEvent } from '../../../../../utils/createEvent.js';
5
-
6
- var SelectNative = /*#__PURE__*/forwardRef(function (_ref, ref) {
7
- var name = _ref.name,
8
- multiple = _ref.multiple,
9
- value = _ref.value,
10
- onChange = _ref.onChange;
11
- var values = multiple ? value : [value];
12
- var selectRef = useRef(null);
13
- var forkRef = useForkRef(selectRef, ref);
14
- useEffect(function () {
15
- var event = createEvent(selectRef);
16
- if (onChange) {
17
- onChange(event);
18
- }
19
- }, [values]);
20
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectHidden, {
21
- ref: forkRef,
22
- multiple: multiple,
23
- name: name,
24
- hidden: true,
25
- value: multiple ? values : values[0]
26
- }, values.map(function (v) {
27
- return /*#__PURE__*/React.createElement("option", {
28
- key: v,
29
- value: v
30
- }, v);
31
- })));
32
- });
33
-
34
- export { SelectNative };
35
- //# sourceMappingURL=SelectNative.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectNative.js","sources":["../../../../../../src/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.tsx"],"sourcesContent":["import React, { ChangeEvent, forwardRef, useEffect, useRef } from 'react';\nimport { useForkRef } from '@salutejs/plasma-core';\n\nimport { createEvent } from '../../../../../utils';\nimport { ComboboxProps } from '../../Combobox.types';\n\nimport { SelectHidden } from './SelectNative.styles';\n\ntype Props = Pick<ComboboxProps, 'name' | 'value' | 'multiple'> & {\n onChange: (value: ChangeEvent<HTMLSelectElement> | null) => void;\n};\n\nexport const SelectNative = forwardRef<HTMLInputElement, Props>(({ name, multiple, value, onChange }, ref) => {\n const values = (multiple ? value : [value]) as string[];\n const selectRef = useRef<HTMLSelectElement>(null);\n const forkRef = useForkRef(selectRef, ref as any);\n\n useEffect(() => {\n const event = createEvent(selectRef);\n if (onChange) {\n onChange(event);\n }\n }, [values]);\n\n return (\n <>\n <SelectHidden ref={forkRef} multiple={multiple} name={name} hidden value={multiple ? values : values[0]}>\n {values.map((v) => (\n <option key={v} value={v}>\n {v}\n </option>\n ))}\n </SelectHidden>\n </>\n );\n});\n"],"names":["SelectNative","forwardRef","_ref","ref","name","multiple","value","onChange","values","selectRef","useRef","forkRef","useForkRef","useEffect","event","createEvent","React","createElement","Fragment","SelectHidden","hidden","map","v","key"],"mappings":";;;;;AAYO,IAAMA,YAAY,gBAAGC,UAAU,CAA0B,UAAAC,IAAA,EAAsCC,GAAG,EAAK;AAAA,EAAA,IAA3CC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAEC,QAAQ,GAAAL,IAAA,CAARK,QAAQ,CAAA;EAC9F,IAAMC,MAAM,GAAIH,QAAQ,GAAGC,KAAK,GAAG,CAACA,KAAK,CAAc,CAAA;AACvD,EAAA,IAAMG,SAAS,GAAGC,MAAM,CAAoB,IAAI,CAAC,CAAA;AACjD,EAAA,IAAMC,OAAO,GAAGC,UAAU,CAACH,SAAS,EAAEN,GAAU,CAAC,CAAA;AAEjDU,EAAAA,SAAS,CAAC,YAAM;AACZ,IAAA,IAAMC,KAAK,GAAGC,WAAW,CAACN,SAAS,CAAC,CAAA;AACpC,IAAA,IAAIF,QAAQ,EAAE;MACVA,QAAQ,CAACO,KAAK,CAAC,CAAA;AACnB,KAAA;AACJ,GAAC,EAAE,CAACN,MAAM,CAAC,CAAC,CAAA;AAEZ,EAAA,oBACIQ,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,eACIF,KAAA,CAAAC,aAAA,CAACE,YAAY,EAAA;AAAChB,IAAAA,GAAG,EAAEQ,OAAQ;AAACN,IAAAA,QAAQ,EAAEA,QAAS;AAACD,IAAAA,IAAI,EAAEA,IAAK;IAACgB,MAAM,EAAA,IAAA;AAACd,IAAAA,KAAK,EAAED,QAAQ,GAAGG,MAAM,GAAGA,MAAM,CAAC,CAAC,CAAA;AAAE,GAAA,EACnGA,MAAM,CAACa,GAAG,CAAC,UAACC,CAAC,EAAA;IAAA,oBACVN,KAAA,CAAAC,aAAA,CAAA,QAAA,EAAA;AAAQM,MAAAA,GAAG,EAAED,CAAE;AAAChB,MAAAA,KAAK,EAAEgB,CAAAA;AAAE,KAAA,EACpBA,CACG,CAAC,CAAA;GACZ,CACS,CAChB,CAAC,CAAA;AAEX,CAAC;;;;"}
@@ -1,11 +0,0 @@
1
- import './SelectNative.styles_18yw2bf.css';
2
- import { styled } from '@linaria/react';
3
-
4
- var SelectHidden = /*#__PURE__*/styled('select')({
5
- name: "SelectHidden",
6
- "class": "st8j5fy",
7
- propsAsIs: false
8
- });
9
-
10
- export { SelectHidden };
11
- //# sourceMappingURL=SelectNative.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectNative.styles.js","sources":["../../../../../../src/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { applyHidden } from '../../../../../mixins';\n\nexport const SelectHidden = styled.select`\n ${applyHidden()};\n`;\n"],"names":["SelectHidden","styled","name","class","propsAsIs"],"mappings":";;AAIO,IAAMA,YAAY,gBAAGC,MAAM,CAAA,QAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAEjC;;;;"}
@@ -1 +0,0 @@
1
- .st8j5fy{visibility:hidden;width:0;height:0;opacity:0;margin:0;padding:0;border:none;}
@@ -1 +0,0 @@
1
- .b15d3bnf.label-placement-outer .l1gjsnfi{position:relative;display:inline-block;color:var(--plasma-textfield__label-color);}.b15d3bnf.label-placement-inner .i19ry60d{padding:var(--plasma-textfield-placement_inner__content-padding);}.b15d3bnf.label-placement-inner .smqgwd8,.b15d3bnf.label-placement-inner .s7hnwwb{padding:var(--plasma-textfield-placement_inner__content-padding);}.b15d3bnf.label-placement-inner .i13qvwoy:focus ~ .l1gjsnfi,.b15d3bnf.label-placement-inner .i13qvwoy.has-value ~ .l1gjsnfi{color:var(--plasma-textfield__placeholder-color);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;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);}.b15d3bnf.label-placement-inner .l1gjsnfi{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;height:var(--plasma-textfield-height);padding-top:calc(calc(var(--plasma-textfield-height) - var(--plasma-textfield__label-line-height)) / 2);padding-bottom:calc(calc(var(--plasma-textfield-height) - var(--plasma-textfield__label-line-height)) / 2);}.b15d3bnf.label-placement-inner.textfield-clear .l1gjsnfi{color:var(--plasma-textfield__clear-placeholder-color);}
@@ -1,50 +0,0 @@
1
- var createEvent = function createEvent(ref) {
2
- if (ref.current) {
3
- var event = new Event('change', {
4
- bubbles: true
5
- });
6
- Object.defineProperty(event, 'target', {
7
- writable: false,
8
- value: ref.current
9
- });
10
- var syntheticEvent = createSyntheticEvent(event);
11
- return syntheticEvent;
12
- }
13
- return null;
14
- };
15
- var createSyntheticEvent = function createSyntheticEvent(event) {
16
- var _isDefaultPrevented = false;
17
- var _isPropagationStopped = false;
18
- var preventDefault = function preventDefault() {
19
- _isDefaultPrevented = true;
20
- event.preventDefault();
21
- };
22
- var stopPropagation = function stopPropagation() {
23
- _isPropagationStopped = true;
24
- event.stopPropagation();
25
- };
26
- return {
27
- nativeEvent: event,
28
- currentTarget: event.currentTarget,
29
- target: event.target,
30
- bubbles: event.bubbles,
31
- cancelable: event.cancelable,
32
- defaultPrevented: event.defaultPrevented,
33
- eventPhase: event.eventPhase,
34
- isTrusted: event.isTrusted,
35
- preventDefault: preventDefault,
36
- isDefaultPrevented: function isDefaultPrevented() {
37
- return _isDefaultPrevented;
38
- },
39
- stopPropagation: stopPropagation,
40
- isPropagationStopped: function isPropagationStopped() {
41
- return _isPropagationStopped;
42
- },
43
- persist: function persist() {},
44
- timeStamp: event.timeStamp,
45
- type: event.type
46
- };
47
- };
48
-
49
- export { createEvent };
50
- //# sourceMappingURL=createEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createEvent.js","sources":["../../src/utils/createEvent.ts"],"sourcesContent":["import { RefObject } from 'react';\n\nexport const createEvent = <T extends HTMLSelectElement | HTMLInputElement | HTMLTextAreaElement>(\n ref: RefObject<T>,\n) => {\n if (ref.current) {\n const event = new Event('change', { bubbles: true });\n Object.defineProperty(event, 'target', { writable: false, value: ref.current });\n const syntheticEvent = createSyntheticEvent(event) as React.ChangeEvent<typeof ref.current>;\n return syntheticEvent;\n }\n\n return null;\n};\n\nconst createSyntheticEvent = <T extends Element, E extends Event>(event: E): React.SyntheticEvent<T, E> => {\n let isDefaultPrevented = false;\n let isPropagationStopped = false;\n const preventDefault = () => {\n isDefaultPrevented = true;\n event.preventDefault();\n };\n const stopPropagation = () => {\n isPropagationStopped = true;\n event.stopPropagation();\n };\n return {\n nativeEvent: event,\n currentTarget: event.currentTarget as EventTarget & T,\n target: event.target as EventTarget & T,\n bubbles: event.bubbles,\n cancelable: event.cancelable,\n defaultPrevented: event.defaultPrevented,\n eventPhase: event.eventPhase,\n isTrusted: event.isTrusted,\n preventDefault,\n isDefaultPrevented: () => isDefaultPrevented,\n stopPropagation,\n isPropagationStopped: () => isPropagationStopped,\n persist: () => {},\n timeStamp: event.timeStamp,\n type: event.type,\n };\n};\n"],"names":["createEvent","ref","current","event","Event","bubbles","Object","defineProperty","writable","value","syntheticEvent","createSyntheticEvent","isDefaultPrevented","isPropagationStopped","preventDefault","stopPropagation","nativeEvent","currentTarget","target","cancelable","defaultPrevented","eventPhase","isTrusted","persist","timeStamp","type"],"mappings":"IAEaA,WAAW,GAAG,SAAdA,WAAWA,CACpBC,GAAiB,EAChB;EACD,IAAIA,GAAG,CAACC,OAAO,EAAE;AACb,IAAA,IAAMC,KAAK,GAAG,IAAIC,KAAK,CAAC,QAAQ,EAAE;AAAEC,MAAAA,OAAO,EAAE,IAAA;AAAK,KAAC,CAAC,CAAA;AACpDC,IAAAA,MAAM,CAACC,cAAc,CAACJ,KAAK,EAAE,QAAQ,EAAE;AAAEK,MAAAA,QAAQ,EAAE,KAAK;MAAEC,KAAK,EAAER,GAAG,CAACC,OAAAA;AAAQ,KAAC,CAAC,CAAA;AAC/E,IAAA,IAAMQ,cAAc,GAAGC,oBAAoB,CAACR,KAAK,CAA0C,CAAA;AAC3F,IAAA,OAAOO,cAAc,CAAA;AACzB,GAAA;AAEA,EAAA,OAAO,IAAI,CAAA;AACf,EAAC;AAED,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAwCR,KAAQ,EAAiC;EACvG,IAAIS,mBAAkB,GAAG,KAAK,CAAA;EAC9B,IAAIC,qBAAoB,GAAG,KAAK,CAAA;AAChC,EAAA,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,GAAS;AACzBF,IAAAA,mBAAkB,GAAG,IAAI,CAAA;IACzBT,KAAK,CAACW,cAAc,EAAE,CAAA;GACzB,CAAA;AACD,EAAA,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,GAAS;AAC1BF,IAAAA,qBAAoB,GAAG,IAAI,CAAA;IAC3BV,KAAK,CAACY,eAAe,EAAE,CAAA;GAC1B,CAAA;EACD,OAAO;AACHC,IAAAA,WAAW,EAAEb,KAAK;IAClBc,aAAa,EAAEd,KAAK,CAACc,aAAgC;IACrDC,MAAM,EAAEf,KAAK,CAACe,MAAyB;IACvCb,OAAO,EAAEF,KAAK,CAACE,OAAO;IACtBc,UAAU,EAAEhB,KAAK,CAACgB,UAAU;IAC5BC,gBAAgB,EAAEjB,KAAK,CAACiB,gBAAgB;IACxCC,UAAU,EAAElB,KAAK,CAACkB,UAAU;IAC5BC,SAAS,EAAEnB,KAAK,CAACmB,SAAS;AAC1BR,IAAAA,cAAc,EAAdA,cAAc;IACdF,kBAAkB,EAAE,SAAAA,kBAAA,GAAA;AAAA,MAAA,OAAMA,mBAAkB,CAAA;AAAA,KAAA;AAC5CG,IAAAA,eAAe,EAAfA,eAAe;IACfF,oBAAoB,EAAE,SAAAA,oBAAA,GAAA;AAAA,MAAA,OAAMA,qBAAoB,CAAA;AAAA,KAAA;AAChDU,IAAAA,OAAO,EAAE,SAAAA,OAAA,GAAM,EAAE;IACjBC,SAAS,EAAErB,KAAK,CAACqB,SAAS;IAC1BC,IAAI,EAAEtB,KAAK,CAACsB,IAAAA;GACf,CAAA;AACL,CAAC;;;;"}
@@ -1,40 +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.SelectNative = void 0;
8
- var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
- var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
10
- var _utils = /*#__PURE__*/require("../../../../../utils");
11
- var _SelectNative = /*#__PURE__*/require("./SelectNative.styles");
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 SelectNative = exports.SelectNative = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
15
- var name = _ref.name,
16
- multiple = _ref.multiple,
17
- value = _ref.value,
18
- onChange = _ref.onChange;
19
- var values = multiple ? value : [value];
20
- var selectRef = (0, _react.useRef)(null);
21
- var forkRef = (0, _plasmaCore.useForkRef)(selectRef, ref);
22
- (0, _react.useEffect)(function () {
23
- var event = (0, _utils.createEvent)(selectRef);
24
- if (onChange) {
25
- onChange(event);
26
- }
27
- }, [values]);
28
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_SelectNative.SelectHidden, {
29
- ref: forkRef,
30
- multiple: multiple,
31
- name: name,
32
- hidden: true,
33
- value: multiple ? values : values[0]
34
- }, values.map(function (v) {
35
- return /*#__PURE__*/_react["default"].createElement("option", {
36
- key: v,
37
- value: v
38
- }, v);
39
- })));
40
- });
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SelectHidden = void 0;
7
- var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("styled-components"));
8
- var _mixins = /*#__PURE__*/require("../../../../../mixins");
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
- var SelectHidden = exports.SelectHidden = /*#__PURE__*/_styledComponents["default"].select.withConfig({
11
- componentId: "plasma-new-hope__sc-w046ru-0"
12
- })(["", ";"], /*#__PURE__*/(0, _mixins.applyHidden)());
@@ -1,53 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.createEvent = void 0;
7
- var createEvent = exports.createEvent = function createEvent(ref) {
8
- if (ref.current) {
9
- var event = new Event('change', {
10
- bubbles: true
11
- });
12
- Object.defineProperty(event, 'target', {
13
- writable: false,
14
- value: ref.current
15
- });
16
- var syntheticEvent = createSyntheticEvent(event);
17
- return syntheticEvent;
18
- }
19
- return null;
20
- };
21
- var createSyntheticEvent = function createSyntheticEvent(event) {
22
- var _isDefaultPrevented = false;
23
- var _isPropagationStopped = false;
24
- var preventDefault = function preventDefault() {
25
- _isDefaultPrevented = true;
26
- event.preventDefault();
27
- };
28
- var stopPropagation = function stopPropagation() {
29
- _isPropagationStopped = true;
30
- event.stopPropagation();
31
- };
32
- return {
33
- nativeEvent: event,
34
- currentTarget: event.currentTarget,
35
- target: event.target,
36
- bubbles: event.bubbles,
37
- cancelable: event.cancelable,
38
- defaultPrevented: event.defaultPrevented,
39
- eventPhase: event.eventPhase,
40
- isTrusted: event.isTrusted,
41
- preventDefault: preventDefault,
42
- isDefaultPrevented: function isDefaultPrevented() {
43
- return _isDefaultPrevented;
44
- },
45
- stopPropagation: stopPropagation,
46
- isPropagationStopped: function isPropagationStopped() {
47
- return _isPropagationStopped;
48
- },
49
- persist: function persist() {},
50
- timeStamp: event.timeStamp,
51
- type: event.type
52
- };
53
- };