@salutejs/plasma-new-hope 0.78.0-canary.1201.8968491632.0 → 0.78.0-canary.1203.8970261959.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (377) hide show
  1. package/cjs/components/Calendar/Calendar.types.js.map +1 -1
  2. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +3 -1
  3. package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  4. package/cjs/components/Calendar/hooks/useDays.js +6 -3
  5. package/cjs/components/Calendar/hooks/useDays.js.map +1 -1
  6. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +2 -1
  7. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  8. package/cjs/components/Combobox/Combobox.css +7 -17
  9. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +6 -15
  10. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +2 -2
  11. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +6 -15
  12. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +2 -2
  13. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +6 -15
  14. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +2 -2
  15. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +6 -15
  16. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +2 -2
  17. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +23 -4
  18. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js +10 -81
  19. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js.map +1 -1
  20. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +9 -21
  21. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  22. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_936wgl.css +1 -0
  23. package/cjs/components/Dropdown/Dropdown.css +2 -25
  24. package/cjs/components/Dropdown/Dropdown.js +54 -138
  25. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  26. package/cjs/components/Dropdown/Dropdown.styles.js +7 -40
  27. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  28. package/cjs/components/Dropdown/Dropdown.styles_1daxhqh.css +2 -0
  29. package/cjs/components/Dropdown/Dropdown.tokens.js +23 -26
  30. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  31. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +4 -7
  32. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +100 -79
  33. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  34. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -31
  35. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  36. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1juhjtq.css +4 -0
  37. package/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base.js +1 -1
  38. package/cjs/components/Dropdown/ui/DropdownItem/variations/_size/base.js.map +1 -0
  39. package/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base.js +1 -1
  40. package/cjs/components/Dropdown/ui/DropdownItem/variations/_view/base.js.map +1 -0
  41. package/cjs/components/Dropdown/utils/index.js +0 -16
  42. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  43. package/cjs/components/Pagination/Pagination.css +7 -14
  44. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +7 -14
  45. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  46. package/cjs/components/Select/Select.css +7 -14
  47. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +6 -15
  48. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +2 -2
  49. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +6 -15
  50. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +2 -2
  51. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +6 -15
  52. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +2 -2
  53. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +6 -15
  54. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +2 -2
  55. package/cjs/components/Select/ui/SelectItem/SelectItem.css +7 -16
  56. package/cjs/components/Select/ui/SelectItem/SelectItem.js +3 -3
  57. package/cjs/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
  58. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +2 -2
  59. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
  60. package/cjs/components/Select/ui/SelectItem/{SelectItem.styles_vk39mp.css → SelectItem.styles_6h17aw.css} +1 -1
  61. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
  62. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  63. package/cjs/index.css +8 -18
  64. package/cjs/index.js +2 -8
  65. package/cjs/index.js.map +1 -1
  66. package/es/components/Calendar/Calendar.types.js.map +1 -1
  67. package/es/components/Calendar/CalendarBase/CalendarBase.js +3 -1
  68. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  69. package/es/components/Calendar/hooks/useDays.js +6 -3
  70. package/es/components/Calendar/hooks/useDays.js.map +1 -1
  71. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +2 -1
  72. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  73. package/es/components/Combobox/Combobox.css +7 -17
  74. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +6 -15
  75. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +2 -2
  76. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +6 -15
  77. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +2 -2
  78. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +6 -15
  79. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +2 -2
  80. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +6 -15
  81. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +2 -2
  82. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +23 -4
  83. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js +11 -82
  84. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js.map +1 -1
  85. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +10 -19
  86. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  87. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_936wgl.css +1 -0
  88. package/es/components/Dropdown/Dropdown.css +2 -25
  89. package/es/components/Dropdown/Dropdown.js +60 -144
  90. package/es/components/Dropdown/Dropdown.js.map +1 -1
  91. package/es/components/Dropdown/Dropdown.styles.js +7 -39
  92. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  93. package/es/components/Dropdown/Dropdown.styles_1daxhqh.css +2 -0
  94. package/es/components/Dropdown/Dropdown.tokens.js +23 -26
  95. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  96. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +4 -7
  97. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +100 -80
  98. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  99. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -30
  100. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  101. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1juhjtq.css +4 -0
  102. package/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base.js +1 -1
  103. package/es/components/Dropdown/ui/DropdownItem/variations/_size/base.js.map +1 -0
  104. package/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base.js +1 -1
  105. package/es/components/Dropdown/ui/DropdownItem/variations/_view/base.js.map +1 -0
  106. package/es/components/Dropdown/utils/index.js +2 -16
  107. package/es/components/Dropdown/utils/index.js.map +1 -1
  108. package/es/components/Pagination/Pagination.css +7 -14
  109. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +7 -14
  110. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  111. package/es/components/Select/Select.css +7 -14
  112. package/es/components/Select/ui/SelectDivider/SelectDivider.css +6 -15
  113. package/es/components/Select/ui/SelectDivider/SelectDivider.js +2 -2
  114. package/es/components/Select/ui/SelectFooter/SelectFooter.css +6 -15
  115. package/es/components/Select/ui/SelectFooter/SelectFooter.js +2 -2
  116. package/es/components/Select/ui/SelectGroup/SelectGroup.css +6 -15
  117. package/es/components/Select/ui/SelectGroup/SelectGroup.js +2 -2
  118. package/es/components/Select/ui/SelectHeader/SelectHeader.css +6 -15
  119. package/es/components/Select/ui/SelectHeader/SelectHeader.js +2 -2
  120. package/es/components/Select/ui/SelectItem/SelectItem.css +7 -16
  121. package/es/components/Select/ui/SelectItem/SelectItem.js +3 -3
  122. package/es/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
  123. package/es/components/Select/ui/SelectItem/SelectItem.styles.js +2 -2
  124. package/es/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
  125. package/es/components/Select/ui/SelectItem/{SelectItem.styles_vk39mp.css → SelectItem.styles_6h17aw.css} +1 -1
  126. package/es/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
  127. package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  128. package/es/index.css +8 -18
  129. package/es/index.js +1 -4
  130. package/es/index.js.map +1 -1
  131. package/package.json +2 -2
  132. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +3 -1
  133. package/styled-components/cjs/components/Calendar/hooks/useDays.js +6 -3
  134. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +2 -1
  135. package/styled-components/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js +2 -91
  136. package/styled-components/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +7 -27
  137. package/styled-components/cjs/components/Dropdown/Dropdown.js +54 -140
  138. package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +7 -22
  139. package/styled-components/cjs/components/Dropdown/Dropdown.template-doc.mdx +80 -0
  140. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +23 -26
  141. package/styled-components/cjs/components/Dropdown/index.js +1 -9
  142. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +105 -77
  143. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +19 -24
  144. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_size/tokens.json +19 -0
  145. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_view/tokens.json +9 -0
  146. package/styled-components/cjs/components/Dropdown/ui/index.js +5 -19
  147. package/styled-components/cjs/components/Dropdown/utils/index.js +1 -15
  148. package/styled-components/cjs/components/Dropdown/variations/_size/tokens.json +9 -1
  149. package/styled-components/cjs/components/Dropdown/variations/_view/tokens.json +1 -1
  150. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.js +1 -1
  151. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +1 -1
  152. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
  153. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +18 -6
  154. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.js +27 -0
  155. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.js +13 -0
  156. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +194 -0
  157. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.js +27 -0
  158. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.js +13 -0
  159. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
  160. package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +18 -6
  161. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.js +27 -0
  162. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.js +13 -0
  163. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +195 -0
  164. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.js +27 -0
  165. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.js +13 -0
  166. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
  167. package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +18 -6
  168. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.config.js +22 -0
  169. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.js +21 -0
  170. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.stories.tsx +277 -0
  171. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +3 -1
  172. package/styled-components/es/components/Calendar/hooks/useDays.js +6 -3
  173. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.js +2 -1
  174. package/styled-components/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js +3 -90
  175. package/styled-components/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +6 -23
  176. package/styled-components/es/components/Dropdown/Dropdown.js +55 -142
  177. package/styled-components/es/components/Dropdown/Dropdown.styles.js +5 -18
  178. package/styled-components/es/components/Dropdown/Dropdown.template-doc.mdx +80 -0
  179. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +23 -26
  180. package/styled-components/es/components/Dropdown/index.js +0 -1
  181. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +107 -78
  182. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +15 -21
  183. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_size/tokens.json +19 -0
  184. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_view/tokens.json +9 -0
  185. package/styled-components/es/components/Dropdown/ui/index.js +1 -3
  186. package/styled-components/es/components/Dropdown/utils/index.js +1 -15
  187. package/styled-components/es/components/Dropdown/variations/_size/tokens.json +9 -1
  188. package/styled-components/es/components/Dropdown/variations/_view/tokens.json +1 -1
  189. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.js +2 -2
  190. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.styles.js +1 -1
  191. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
  192. package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +18 -6
  193. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.js +21 -0
  194. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.js +7 -0
  195. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +194 -0
  196. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.js +21 -0
  197. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.js +7 -0
  198. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
  199. package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +18 -6
  200. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.js +21 -0
  201. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.js +7 -0
  202. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +195 -0
  203. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.js +21 -0
  204. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.js +7 -0
  205. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
  206. package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +18 -6
  207. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.config.js +16 -0
  208. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.js +15 -0
  209. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.stories.tsx +277 -0
  210. package/types/components/Calendar/Calendar.types.d.ts +4 -0
  211. package/types/components/Calendar/Calendar.types.d.ts.map +1 -1
  212. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
  213. package/types/components/Calendar/hooks/useDays.d.ts +1 -1
  214. package/types/components/Calendar/hooks/useDays.d.ts.map +1 -1
  215. package/types/components/Calendar/ui/CalendarDays/CalendarDays.d.ts.map +1 -1
  216. package/types/components/Calendar/ui/CalendarDays/CalendarDays.types.d.ts +1 -0
  217. package/types/components/Calendar/ui/CalendarDays/CalendarDays.types.d.ts.map +1 -1
  218. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.d.ts +13 -15
  219. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.d.ts.map +1 -1
  220. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.d.ts +1 -5
  221. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.d.ts.map +1 -1
  222. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.type.d.ts +2 -59
  223. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.type.d.ts.map +1 -1
  224. package/types/components/Dropdown/Dropdown.d.ts +4 -4
  225. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  226. package/types/components/Dropdown/Dropdown.styles.d.ts +1 -8
  227. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  228. package/types/components/Dropdown/Dropdown.tokens.d.ts +22 -24
  229. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  230. package/types/components/Dropdown/Dropdown.types.d.ts +40 -64
  231. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  232. package/types/components/Dropdown/index.d.ts +1 -3
  233. package/types/components/Dropdown/index.d.ts.map +1 -1
  234. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts +56 -2
  235. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  236. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +2 -5
  237. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  238. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +38 -44
  239. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  240. package/types/components/Dropdown/ui/DropdownItem/variations/_size/base.d.ts.map +1 -0
  241. package/types/components/Dropdown/ui/DropdownItem/variations/_view/base.d.ts.map +1 -0
  242. package/types/components/Dropdown/ui/index.d.ts +1 -3
  243. package/types/components/Dropdown/ui/index.d.ts.map +1 -1
  244. package/types/components/Dropdown/utils/index.d.ts +2 -5
  245. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  246. package/types/components/Select/ui/SelectItem/SelectItem.d.ts +2 -2
  247. package/types/components/Select/ui/SelectItem/SelectItem.d.ts.map +1 -1
  248. package/types/components/Select/ui/SelectItem/SelectItem.type.d.ts +2 -2
  249. package/types/components/Select/utils/index.d.ts +1 -1
  250. package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
  251. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.d.ts.map +1 -0
  252. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.d.ts +30 -0
  253. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.d.ts.map +1 -0
  254. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.d.ts +18 -0
  255. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.d.ts.map +1 -0
  256. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.d.ts +30 -0
  257. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.d.ts.map +1 -0
  258. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.d.ts +18 -0
  259. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.d.ts.map +1 -0
  260. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.d.ts +30 -0
  261. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.d.ts.map +1 -0
  262. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.d.ts +18 -0
  263. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.d.ts.map +1 -0
  264. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.d.ts +30 -0
  265. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.d.ts.map +1 -0
  266. package/types/examples/sds_engineer/components/Dropdown/Dropdown.config.d.ts +15 -0
  267. package/types/examples/sds_engineer/components/Dropdown/Dropdown.config.d.ts.map +1 -0
  268. package/types/examples/sds_engineer/components/Dropdown/Dropdown.d.ts +51 -0
  269. package/types/examples/sds_engineer/components/Dropdown/Dropdown.d.ts.map +1 -0
  270. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_s4sk53.css +0 -4
  271. package/cjs/components/Combobox/utils/index.js +0 -23
  272. package/cjs/components/Combobox/utils/index.js.map +0 -1
  273. package/cjs/components/Dropdown/Dropdown.styles_1tihqkp.css +0 -3
  274. package/cjs/components/Dropdown/hooks/useHashMaps.js +0 -34
  275. package/cjs/components/Dropdown/hooks/useHashMaps.js.map +0 -1
  276. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +0 -223
  277. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js.map +0 -1
  278. package/cjs/components/Dropdown/reducers/focusedPathReducer.js +0 -37
  279. package/cjs/components/Dropdown/reducers/focusedPathReducer.js.map +0 -1
  280. package/cjs/components/Dropdown/reducers/pathReducer.js +0 -41
  281. package/cjs/components/Dropdown/reducers/pathReducer.js.map +0 -1
  282. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -122
  283. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +0 -1
  284. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1o4szyu.css +0 -5
  285. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -30
  286. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +0 -1
  287. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles_12e50g5.css +0 -4
  288. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +0 -4
  289. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +0 -112
  290. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js.map +0 -1
  291. package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js.map +0 -1
  292. package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js.map +0 -1
  293. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_s4sk53.css +0 -4
  294. package/es/components/Combobox/utils/index.js +0 -19
  295. package/es/components/Combobox/utils/index.js.map +0 -1
  296. package/es/components/Dropdown/Dropdown.styles_1tihqkp.css +0 -3
  297. package/es/components/Dropdown/hooks/useHashMaps.js +0 -30
  298. package/es/components/Dropdown/hooks/useHashMaps.js.map +0 -1
  299. package/es/components/Dropdown/hooks/useKeyboardNavigation.js +0 -218
  300. package/es/components/Dropdown/hooks/useKeyboardNavigation.js.map +0 -1
  301. package/es/components/Dropdown/reducers/focusedPathReducer.js +0 -33
  302. package/es/components/Dropdown/reducers/focusedPathReducer.js.map +0 -1
  303. package/es/components/Dropdown/reducers/pathReducer.js +0 -37
  304. package/es/components/Dropdown/reducers/pathReducer.js.map +0 -1
  305. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -118
  306. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +0 -1
  307. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1o4szyu.css +0 -5
  308. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -23
  309. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +0 -1
  310. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles_12e50g5.css +0 -4
  311. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +0 -4
  312. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +0 -107
  313. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js.map +0 -1
  314. package/es/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js.map +0 -1
  315. package/es/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js.map +0 -1
  316. package/styled-components/cjs/components/Combobox/utils/index.js +0 -23
  317. package/styled-components/cjs/components/Dropdown/hooks/useHashMaps.js +0 -32
  318. package/styled-components/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +0 -221
  319. package/styled-components/cjs/components/Dropdown/reducers/focusedPathReducer.js +0 -40
  320. package/styled-components/cjs/components/Dropdown/reducers/pathReducer.js +0 -44
  321. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -117
  322. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.type.js +0 -5
  323. package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -33
  324. package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.js +0 -5
  325. package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +0 -119
  326. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +0 -25
  327. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.js +0 -11
  328. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +0 -292
  329. package/styled-components/es/components/Combobox/utils/index.js +0 -15
  330. package/styled-components/es/components/Dropdown/hooks/useHashMaps.js +0 -26
  331. package/styled-components/es/components/Dropdown/hooks/useKeyboardNavigation.js +0 -215
  332. package/styled-components/es/components/Dropdown/reducers/focusedPathReducer.js +0 -34
  333. package/styled-components/es/components/Dropdown/reducers/pathReducer.js +0 -38
  334. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -111
  335. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.type.js +0 -1
  336. package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -25
  337. package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.js +0 -1
  338. package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +0 -111
  339. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +0 -19
  340. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.js +0 -5
  341. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +0 -292
  342. package/types/components/Combobox/utils/index.d.ts +0 -4
  343. package/types/components/Combobox/utils/index.d.ts.map +0 -1
  344. package/types/components/Dropdown/hooks/useHashMaps.d.ts +0 -6
  345. package/types/components/Dropdown/hooks/useHashMaps.d.ts.map +0 -1
  346. package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts +0 -37
  347. package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts.map +0 -1
  348. package/types/components/Dropdown/reducers/focusedPathReducer.d.ts +0 -16
  349. package/types/components/Dropdown/reducers/focusedPathReducer.d.ts.map +0 -1
  350. package/types/components/Dropdown/reducers/pathReducer.d.ts +0 -20
  351. package/types/components/Dropdown/reducers/pathReducer.d.ts.map +0 -1
  352. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts +0 -5
  353. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +0 -1
  354. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +0 -26
  355. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +0 -1
  356. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.d.ts +0 -7
  357. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.d.ts.map +0 -1
  358. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.d.ts +0 -60
  359. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.d.ts.map +0 -1
  360. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.d.ts +0 -58
  361. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.d.ts.map +0 -1
  362. package/types/components/Dropdown/ui/DropdownItemOld/variations/_size/base.d.ts.map +0 -1
  363. package/types/components/Dropdown/ui/DropdownItemOld/variations/_view/base.d.ts.map +0 -1
  364. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +0 -1
  365. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +0 -13
  366. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +0 -1
  367. /package/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base_x642ct.css +0 -0
  368. /package/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base_x642ct.css +0 -0
  369. /package/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base_x642ct.css +0 -0
  370. /package/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base_x642ct.css +0 -0
  371. /package/styled-components/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base.js +0 -0
  372. /package/styled-components/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base.js +0 -0
  373. /package/styled-components/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base.js +0 -0
  374. /package/styled-components/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base.js +0 -0
  375. /package/types/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base.d.ts +0 -0
  376. /package/types/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base.d.ts +0 -0
  377. /package/types/examples/plasma_b2c/components/Dropdown/{Dropdown.config.d.ts → Normal/Dropdown.config.d.ts} +0 -0
@@ -1,66 +1,60 @@
1
- import type { HTMLAttributes, ReactNode, SyntheticEvent } from 'react';
2
- import { DropdownProps } from '../../Dropdown.types';
3
- import type { FocusedPathState } from '../../reducers/focusedPathReducer';
4
- import type { PathState } from '../../reducers/pathReducer';
5
- export declare type DropdownItemOption = {
1
+ import type { HTMLAttributes, ReactNode, MouseEvent, ElementType } from 'react';
2
+ declare type DropdownItemCustomProps = {
6
3
  /**
7
- * Значение у item
4
+ * Уникальный идентификатор элемента
8
5
  */
9
- value: string | number;
6
+ id?: string;
10
7
  /**
11
- * Метка-подпись к item
8
+ * Компонент не активен
12
9
  */
13
- label: string;
10
+ disabled?: boolean;
14
11
  /**
15
- * Список дочерних items.
12
+ * Метка-подпись к элементу
16
13
  */
17
- items?: Array<DropdownItemOption>;
14
+ label?: ReactNode;
18
15
  /**
19
- * Item не активен
16
+ * WAI-ARIA role элемента меню
20
17
  */
21
- disabled?: boolean;
18
+ role?: string;
22
19
  /**
23
20
  * Слот для контента слева
24
21
  */
25
- contentLeft?: ReactNode;
22
+ contentLeft?: ElementType | ReactNode;
26
23
  /**
27
24
  * Слот для контента справа
28
25
  */
29
- contentRight?: ReactNode;
26
+ contentRight?: ElementType | ReactNode;
27
+ /**
28
+ * Название слота контента
29
+ */
30
+ name?: string;
31
+ /**
32
+ * Отмечен ли данный элемент
33
+ */
34
+ checked?: boolean;
35
+ /**
36
+ * Содержимое контента
37
+ */
38
+ text?: string;
39
+ /**
40
+ * Значение контента
41
+ */
42
+ value?: string | number | boolean;
30
43
  /**
31
- * Выбранный item.
32
- * @deprecated использовать ContentLeft || ContentRight
44
+ * Значение контента
33
45
  */
34
- isActive?: boolean;
46
+ isSelected?: boolean;
35
47
  /**
36
- * Кастомный цвет текста
37
- * @deprecated
48
+ * Коллбек при клике на элемент
38
49
  */
39
- color?: string;
50
+ onClick?: (event: MouseEvent<HTMLDivElement>) => void;
40
51
  /**
41
- * Айтем не активен
42
- * @deprecated использовать disabled
52
+ * Коллбек при выборе элемента
43
53
  */
44
- isDisabled?: boolean;
54
+ onSelect?: (value?: any, text?: any) => void;
55
+ size?: string;
56
+ view?: string;
45
57
  };
46
- export interface DropdownItemProps extends HTMLAttributes<HTMLLIElement> {
47
- item: DropdownItemOption;
48
- focusedPath: FocusedPathState;
49
- currentLevel: number;
50
- index: number;
51
- variant: DropdownProps['variant'];
52
- path?: PathState;
53
- itemRole?: DropdownProps['itemRole'];
54
- closeOnSelect?: DropdownProps['closeOnSelect'];
55
- handleGlobalToggle?: (opened: boolean, event: Event | SyntheticEvent<Element, Event>) => void;
56
- onHover?: DropdownProps['onHover'];
57
- onItemSelect?: DropdownProps['onItemSelect'];
58
- onItemClick?: DropdownProps['onItemClick'];
59
- hasArrow?: DropdownProps['hasArrow'];
60
- ariaControls?: string;
61
- ariaExpanded?: boolean;
62
- ariaHasPopup?: React.AriaAttributes['aria-haspopup'];
63
- ariaLevel?: React.AriaAttributes['aria-level'];
64
- ariaLabel?: React.AriaAttributes['aria-label'];
65
- }
58
+ export declare type DropdownItemProps = Omit<HTMLAttributes<HTMLDivElement>, 'onSelect'> & DropdownItemCustomProps;
59
+ export {};
66
60
  //# sourceMappingURL=DropdownItem.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownItem.type.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D,oBAAY,kBAAkB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,aAAa,CAAC;IACpE,IAAI,EAAE,kBAAkB,CAAC;IACzB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,aAAa,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC/C,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC;IAC9F,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IACnC,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC7C,WAAW,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC3C,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;IACrD,SAAS,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;CAClD"}
1
+ {"version":3,"file":"DropdownItem.type.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEhF,aAAK,uBAAuB,GAAG;IAC3B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACtD;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,iBAAiB,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,GAAG,uBAAuB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Dropdown/ui/DropdownItem/variations/_size/base.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,0CAAQ,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Dropdown/ui/DropdownItem/variations/_view/base.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,0CAAQ,CAAC"}
@@ -2,7 +2,5 @@ export { dropdownDividerRoot, dropdownDividerConfig } from './DropdownDivider/Dr
2
2
  export { dropdownFooterRoot, dropdownFooterConfig } from './DropdownFooter/DropdownFooter';
3
3
  export { dropdownGroupRoot, dropdownGroupConfig } from './DropdownGroup/DropdownGroup';
4
4
  export { dropdownHeaderRoot, dropdownHeaderConfig } from './DropdownHeader/DropdownHeader';
5
- export { DropdownItem } from './DropdownItem/DropdownItem';
6
- export { DropdownInner } from './DropdownInner/DropdownInner';
7
- export { dropdownItemOldRoot, dropdownItemOldConfig } from './DropdownItemOld/DropdownItemOld';
5
+ export { dropdownItemRoot, dropdownItemConfig } from './DropdownItem/DropdownItem';
8
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC3F,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1,9 +1,6 @@
1
- import type { ReactNode } from 'react';
2
- import React, { HTMLAttributes, ElementType } from 'react';
3
- import type { DropdownPlacement, DropdownPlacementBasic, DropdownProps } from '../Dropdown.types';
1
+ import React, { ElementType, ReactNode } from 'react';
2
+ import type { DropdownPlacement, DropdownPlacementBasic } from '../Dropdown.types';
4
3
  export declare const getPlacement: (placement: DropdownPlacement) => import("@popperjs/core").ComputedPlacement;
5
4
  export declare const getPlacements: (placements?: DropdownPlacement | DropdownPlacementBasic[] | undefined) => import("@popperjs/core").ComputedPlacement | import("@popperjs/core").ComputedPlacement[] | undefined;
6
- export declare const getCorrectHeight: (listHeight: Required<DropdownProps>['listHeight']) => string;
7
- export declare const childrenWithProps: (children: ReactNode, additionalProps: HTMLAttributes<HTMLLIElement>) => (string | number | React.ReactFragment | React.ReactElement<any, string | React.JSXElementConstructor<any>>)[] | null | undefined;
8
5
  export declare const getValidComponent: (element: ElementType | ReactNode, props: object) => string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
9
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,EAAY,cAAc,EAAE,WAAW,EAAgC,MAAM,OAAO,CAAC;AAGnG,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElG,eAAO,MAAM,YAAY,cAAe,iBAAiB,+CAExD,CAAC;AAEF,eAAO,MAAM,aAAa,kLAUzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,eAAgB,SAAS,aAAa,CAAC,CAAC,YAAY,CAAC,KAAG,MAKpF,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAAc,SAAS,mBAAmB,eAAe,aAAa,CAAC,sIAM/F,CAAC;AAMP,eAAO,MAAM,iBAAiB,YAAa,WAAW,GAAG,SAAS,SAAS,MAAM,qFAYhF,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;AAGpF,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEnF,eAAO,MAAM,YAAY,cAAe,iBAAiB,+CAExD,CAAC;AAEF,eAAO,MAAM,aAAa,kLAUzB,CAAC;AAMF,eAAO,MAAM,iBAAiB,YAAa,WAAW,GAAG,SAAS,SAAS,MAAM,qFAYhF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const selectItemRoot: (Root: import("../../../..").RootProps<HTMLDivElement, import("../../../Dropdown/ui/DropdownItemOld/DropdownItem.type").DropdownItemProps>) => import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement>, "onSelect"> & {
2
+ export declare const selectItemRoot: (Root: import("../../../..").RootProps<HTMLDivElement, import("../../../Dropdown/ui/DropdownItem/DropdownItem.type").DropdownItemProps>) => import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement>, "onSelect"> & {
3
3
  id?: string | undefined;
4
4
  disabled?: boolean | undefined;
5
5
  label?: import("react").ReactNode;
@@ -19,7 +19,7 @@ export declare const selectItemRoot: (Root: import("../../../..").RootProps<HTML
19
19
  export declare const selectItemConfig: {
20
20
  name: string;
21
21
  tag: string;
22
- layout: (Root: import("../../../..").RootProps<HTMLDivElement, import("../../../Dropdown/ui/DropdownItemOld/DropdownItem.type").DropdownItemProps>) => import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement>, "onSelect"> & {
22
+ layout: (Root: import("../../../..").RootProps<HTMLDivElement, import("../../../Dropdown/ui/DropdownItem/DropdownItem.type").DropdownItemProps>) => import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement>, "onSelect"> & {
23
23
  id?: string | undefined;
24
24
  disabled?: boolean | undefined;
25
25
  label?: import("react").ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/ui/SelectItem/SelectItem.tsx"],"names":[],"mappings":";AAMA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;kDAAsB,CAAC;AAElD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB5B,CAAC"}
1
+ {"version":3,"file":"SelectItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/ui/SelectItem/SelectItem.tsx"],"names":[],"mappings":";AAMA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;kDAAmB,CAAC;AAE/C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB5B,CAAC"}
@@ -1,3 +1,3 @@
1
- import { ComboboxItemProps } from '../../../Combobox/ui/ComboboxItem/ComboboxItem.type';
2
- export declare type SelectItemProps = ComboboxItemProps;
1
+ import { DropdownItemProps } from '../../../Dropdown/ui/DropdownItem/DropdownItem.type';
2
+ export declare type SelectItemProps = DropdownItemProps;
3
3
  //# sourceMappingURL=SelectItem.type.d.ts.map
@@ -8,7 +8,7 @@ declare type NewSelectedFunc = {
8
8
  };
9
9
  export declare const getNewSelected: NewSelectedFunc;
10
10
  export declare const getValues: (items: ReactElement[], value?: SelectValue | undefined, result?: Array<Array<string>>) => string[][];
11
- export declare const updatePropsRecursively: (children?: ReactElement<import("../../Combobox/ui/ComboboxItem/ComboboxItem.type").ComboboxItemProps, string | import("react").JSXElementConstructor<any>>[] | undefined, externalProps?: Record<string, any> | undefined, value?: SelectValue | undefined, search?: string | undefined, filterFunction?: ((childText: string, filterValue?: string | undefined) => boolean) | undefined) => ReactNode[];
11
+ export declare const updatePropsRecursively: (children?: ReactElement<import("../../Dropdown/ui/DropdownItem/DropdownItem.type").DropdownItemProps, string | import("react").JSXElementConstructor<any>>[] | undefined, externalProps?: Record<string, any> | undefined, value?: SelectValue | undefined, search?: string | undefined, filterFunction?: ((childText: string, filterValue?: string | undefined) => boolean) | undefined) => ReactNode[];
12
12
  export declare const getChildren: (children: ReactElement<SelectItemProps>[], externalProps: Record<string, any>, value?: SelectValue | undefined, search?: string | undefined, filterFunction?: (text: string, filterValue?: string) => boolean) => ReactNode[];
13
13
  export {};
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DisclosureRight.d.ts","sourceRoot":"","sources":["../../../../src/components/_Icon/Icon.assets/DisclosureRight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAqB/C,CAAC"}
1
+ {"version":3,"file":"DisclosureRight.d.ts","sourceRoot":"","sources":["../../../../src/components/_Icon/Icon.assets/DisclosureRight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAsB/C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.config.d.ts","sourceRoot":"","sources":["../../../../../../src/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CA4FlB,CAAC"}
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ export declare const Dropdown: import("react").FunctionComponent<import("../../../../../engines/types").PropsType<{
3
+ size: {
4
+ xs: import("@linaria/core").LinariaClassName;
5
+ s: import("@linaria/core").LinariaClassName;
6
+ m: import("@linaria/core").LinariaClassName;
7
+ l: import("@linaria/core").LinariaClassName;
8
+ };
9
+ view: {
10
+ default: import("@linaria/core").LinariaClassName;
11
+ };
12
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("../../../../../components/Dropdown/Dropdown.types").CustomDropdownProps & import("react").RefAttributes<HTMLDivElement>>;
13
+ export declare const DropdownItem: import("react").FunctionComponent<import("../../../../../engines/types").PropsType<import("../../../../../engines/types").Variants> & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onSelect"> & {
14
+ id?: string | undefined;
15
+ disabled?: boolean | undefined;
16
+ label?: import("react").ReactNode;
17
+ role?: string | undefined;
18
+ contentLeft?: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment | import("react").ReactPortal | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | null | undefined;
19
+ contentRight?: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment | import("react").ReactPortal | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | null | undefined;
20
+ name?: string | undefined;
21
+ checked?: boolean | undefined;
22
+ text?: string | undefined;
23
+ value?: string | number | boolean | undefined;
24
+ isSelected?: boolean | undefined;
25
+ onClick?: ((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
26
+ onSelect?: ((value?: any, text?: any) => void) | undefined;
27
+ size?: string | undefined;
28
+ view?: string | undefined;
29
+ } & import("react").RefAttributes<HTMLDivElement>>;
30
+ //# sourceMappingURL=Dropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,QAAQ;;;;;;;;;;sLAA0B,CAAC;AAGhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;kDAA8B,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const config: {
2
+ defaults: {
3
+ view: string;
4
+ size: string;
5
+ };
6
+ variations: {
7
+ size: {
8
+ xs: import("@linaria/core").LinariaClassName;
9
+ s: import("@linaria/core").LinariaClassName;
10
+ m: import("@linaria/core").LinariaClassName;
11
+ l: import("@linaria/core").LinariaClassName;
12
+ };
13
+ view: {
14
+ default: import("@linaria/core").LinariaClassName;
15
+ };
16
+ };
17
+ };
18
+ //# sourceMappingURL=Dropdown.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.config.d.ts","sourceRoot":"","sources":["../../../../../../src/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CA4FlB,CAAC"}
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ export declare const Dropdown: import("react").FunctionComponent<import("../../../../../engines/types").PropsType<{
3
+ size: {
4
+ xs: import("@linaria/core").LinariaClassName;
5
+ s: import("@linaria/core").LinariaClassName;
6
+ m: import("@linaria/core").LinariaClassName;
7
+ l: import("@linaria/core").LinariaClassName;
8
+ };
9
+ view: {
10
+ default: import("@linaria/core").LinariaClassName;
11
+ };
12
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("../../../../../components/Dropdown/Dropdown.types").CustomDropdownProps & import("react").RefAttributes<HTMLDivElement>>;
13
+ export declare const DropdownItem: import("react").FunctionComponent<import("../../../../../engines/types").PropsType<import("../../../../../engines/types").Variants> & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onSelect"> & {
14
+ id?: string | undefined;
15
+ disabled?: boolean | undefined;
16
+ label?: import("react").ReactNode;
17
+ role?: string | undefined;
18
+ contentLeft?: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment | import("react").ReactPortal | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | null | undefined;
19
+ contentRight?: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment | import("react").ReactPortal | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | null | undefined;
20
+ name?: string | undefined;
21
+ checked?: boolean | undefined;
22
+ text?: string | undefined;
23
+ value?: string | number | boolean | undefined;
24
+ isSelected?: boolean | undefined;
25
+ onClick?: ((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
26
+ onSelect?: ((value?: any, text?: any) => void) | undefined;
27
+ size?: string | undefined;
28
+ view?: string | undefined;
29
+ } & import("react").RefAttributes<HTMLDivElement>>;
30
+ //# sourceMappingURL=Dropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,QAAQ;;;;;;;;;;sLAA0B,CAAC;AAGhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;kDAA8B,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const config: {
2
+ defaults: {
3
+ view: string;
4
+ size: string;
5
+ };
6
+ variations: {
7
+ size: {
8
+ xs: import("@linaria/core").LinariaClassName;
9
+ s: import("@linaria/core").LinariaClassName;
10
+ m: import("@linaria/core").LinariaClassName;
11
+ l: import("@linaria/core").LinariaClassName;
12
+ };
13
+ view: {
14
+ default: import("@linaria/core").LinariaClassName;
15
+ };
16
+ };
17
+ };
18
+ //# sourceMappingURL=Dropdown.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.config.d.ts","sourceRoot":"","sources":["../../../../../../src/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CA4FlB,CAAC"}
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ export declare const Dropdown: import("react").FunctionComponent<import("../../../../../engines/types").PropsType<{
3
+ size: {
4
+ xs: import("@linaria/core").LinariaClassName;
5
+ s: import("@linaria/core").LinariaClassName;
6
+ m: import("@linaria/core").LinariaClassName;
7
+ l: import("@linaria/core").LinariaClassName;
8
+ };
9
+ view: {
10
+ default: import("@linaria/core").LinariaClassName;
11
+ };
12
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("../../../../../components/Dropdown/Dropdown.types").CustomDropdownProps & import("react").RefAttributes<HTMLDivElement>>;
13
+ export declare const DropdownItem: import("react").FunctionComponent<import("../../../../../engines/types").PropsType<import("../../../../../engines/types").Variants> & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onSelect"> & {
14
+ id?: string | undefined;
15
+ disabled?: boolean | undefined;
16
+ label?: import("react").ReactNode;
17
+ role?: string | undefined;
18
+ contentLeft?: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment | import("react").ReactPortal | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | null | undefined;
19
+ contentRight?: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment | import("react").ReactPortal | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | null | undefined;
20
+ name?: string | undefined;
21
+ checked?: boolean | undefined;
22
+ text?: string | undefined;
23
+ value?: string | number | boolean | undefined;
24
+ isSelected?: boolean | undefined;
25
+ onClick?: ((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
26
+ onSelect?: ((value?: any, text?: any) => void) | undefined;
27
+ size?: string | undefined;
28
+ view?: string | undefined;
29
+ } & import("react").RefAttributes<HTMLDivElement>>;
30
+ //# sourceMappingURL=Dropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/examples/plasma_web/components/Dropdown/Normal/Dropdown.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,QAAQ;;;;;;;;;;sLAA0B,CAAC;AAGhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;kDAA8B,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const config: {
2
+ defaults: {
3
+ view: string;
4
+ size: string;
5
+ };
6
+ variations: {
7
+ size: {
8
+ xs: import("@linaria/core").LinariaClassName;
9
+ s: import("@linaria/core").LinariaClassName;
10
+ m: import("@linaria/core").LinariaClassName;
11
+ l: import("@linaria/core").LinariaClassName;
12
+ };
13
+ view: {
14
+ default: import("@linaria/core").LinariaClassName;
15
+ };
16
+ };
17
+ };
18
+ //# sourceMappingURL=Dropdown.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.config.d.ts","sourceRoot":"","sources":["../../../../../../src/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CA4FlB,CAAC"}
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ export declare const Dropdown: import("react").FunctionComponent<import("../../../../../engines/types").PropsType<{
3
+ size: {
4
+ xs: import("@linaria/core").LinariaClassName;
5
+ s: import("@linaria/core").LinariaClassName;
6
+ m: import("@linaria/core").LinariaClassName;
7
+ l: import("@linaria/core").LinariaClassName;
8
+ };
9
+ view: {
10
+ default: import("@linaria/core").LinariaClassName;
11
+ };
12
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("../../../../../components/Dropdown/Dropdown.types").CustomDropdownProps & import("react").RefAttributes<HTMLDivElement>>;
13
+ export declare const DropdownItem: import("react").FunctionComponent<import("../../../../../engines/types").PropsType<import("../../../../../engines/types").Variants> & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onSelect"> & {
14
+ id?: string | undefined;
15
+ disabled?: boolean | undefined;
16
+ label?: import("react").ReactNode;
17
+ role?: string | undefined;
18
+ contentLeft?: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment | import("react").ReactPortal | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | null | undefined;
19
+ contentRight?: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment | import("react").ReactPortal | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | null | undefined;
20
+ name?: string | undefined;
21
+ checked?: boolean | undefined;
22
+ text?: string | undefined;
23
+ value?: string | number | boolean | undefined;
24
+ isSelected?: boolean | undefined;
25
+ onClick?: ((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
26
+ onSelect?: ((value?: any, text?: any) => void) | undefined;
27
+ size?: string | undefined;
28
+ view?: string | undefined;
29
+ } & import("react").RefAttributes<HTMLDivElement>>;
30
+ //# sourceMappingURL=Dropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/examples/plasma_web/components/Dropdown/Tight/Dropdown.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,QAAQ;;;;;;;;;;sLAA0B,CAAC;AAGhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;kDAA8B,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const config: {
2
+ defaults: {
3
+ view: string;
4
+ size: string;
5
+ };
6
+ variations: {
7
+ size: {
8
+ m: import("@linaria/core").LinariaClassName;
9
+ };
10
+ view: {
11
+ primary: import("@linaria/core").LinariaClassName;
12
+ };
13
+ };
14
+ };
15
+ //# sourceMappingURL=Dropdown.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/Dropdown/Dropdown.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CAgIlB,CAAC"}
@@ -0,0 +1,51 @@
1
+ /// <reference types="react" />
2
+ export declare const Dropdown: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
3
+ size: {
4
+ m: import("@linaria/core").LinariaClassName;
5
+ };
6
+ view: {
7
+ primary: import("@linaria/core").LinariaClassName;
8
+ };
9
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Dropdown/Dropdown.types").CustomDropdownProps & import("react").RefAttributes<HTMLDivElement>>;
10
+ export declare const DropdownDivider: import("react").FunctionComponent<import("../../../../engines/types").PropsType<import("../../../../engines/types").Variants> & import("react").HTMLAttributes<HTMLDivElement> & {
11
+ id?: string | undefined;
12
+ size?: string | undefined;
13
+ view?: string | undefined;
14
+ } & import("react").RefAttributes<HTMLDivElement>>;
15
+ export declare const DropdownFooter: import("react").FunctionComponent<import("../../../../engines/types").PropsType<import("../../../../engines/types").Variants> & import("react").HTMLAttributes<HTMLDivElement> & {
16
+ id?: string | undefined;
17
+ size?: string | undefined;
18
+ view?: string | undefined;
19
+ } & import("react").RefAttributes<HTMLDivElement>>;
20
+ export declare const DropdownGroup: import("react").FunctionComponent<import("../../../../engines/types").PropsType<import("../../../../engines/types").Variants> & import("react").HTMLAttributes<HTMLDivElement> & {
21
+ id?: string | undefined;
22
+ labelClassName?: string | undefined;
23
+ groupClassName?: string | undefined;
24
+ label?: import("react").ReactNode;
25
+ role?: string | undefined;
26
+ size?: string | undefined;
27
+ view?: string | undefined;
28
+ } & import("react").RefAttributes<HTMLDivElement>>;
29
+ export declare const DropdownHeader: import("react").FunctionComponent<import("../../../../engines/types").PropsType<import("../../../../engines/types").Variants> & import("react").HTMLAttributes<HTMLDivElement> & {
30
+ id?: string | undefined;
31
+ size?: string | undefined;
32
+ view?: string | undefined;
33
+ } & import("react").RefAttributes<HTMLDivElement>>;
34
+ export declare const DropdownItem: import("react").FunctionComponent<import("../../../../engines/types").PropsType<import("../../../../engines/types").Variants> & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onSelect"> & {
35
+ id?: string | undefined;
36
+ disabled?: boolean | undefined;
37
+ label?: import("react").ReactNode;
38
+ role?: string | undefined;
39
+ contentLeft?: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment | import("react").ReactPortal | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | null | undefined;
40
+ contentRight?: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment | import("react").ReactPortal | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | null | undefined;
41
+ name?: string | undefined;
42
+ checked?: boolean | undefined;
43
+ text?: string | undefined;
44
+ value?: string | number | boolean | undefined;
45
+ isSelected?: boolean | undefined;
46
+ onClick?: ((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
47
+ onSelect?: ((value?: any, text?: any) => void) | undefined;
48
+ size?: string | undefined;
49
+ view?: string | undefined;
50
+ } & import("react").RefAttributes<HTMLDivElement>>;
51
+ //# sourceMappingURL=Dropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/Dropdown/Dropdown.ts"],"names":[],"mappings":";AAaA,eAAO,MAAM,QAAQ;;;;;;;mLAA0B,CAAC;AAGhD,eAAO,MAAM,eAAe;;;;kDAAiC,CAAC;AAG9D,eAAO,MAAM,cAAc;;;;kDAAgC,CAAC;AAG5D,eAAO,MAAM,aAAa;;;;;;;;kDAA+B,CAAC;AAG1D,eAAO,MAAM,cAAc;;;;kDAAgC,CAAC;AAG5D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;kDAA8B,CAAC"}
@@ -1,4 +0,0 @@
1
- .s1thh7ji{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-combobox-item-content-left-width);color:var(--plasma-combobox-item-content-left-color);}
2
- .s1exy6xj{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-combobox-item-content-right-width);color:var(--plasma-combobox-item-content-right-color);}
3
- .s18437sq{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
4
- .bvoi56l{box-sizing:content-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;width:100%;font-family:var(--plasma-combobox-item-font-family);font-size:var(--plasma-combobox-item-font-size);font-style:var(--plasma-combobox-item-font-style);font-weight:var(--plasma-combobox-item-letter-spacing);-webkit-letter-spacing:var(--plasma-combobox-item-line-height);-moz-letter-spacing:var(--plasma-combobox-item-line-height);-ms-letter-spacing:var(--plasma-combobox-item-line-height);letter-spacing:var(--plasma-combobox-item-line-height);line-height:var(--plasma-combobox-item-font-weight);background:var(--plasma-combobox-item-background);color:var(--plasma-combobox-item-color);border-radius:var(--plasma-combobox-item-border-radius);width:var(--plasma-combobox-item-width);height:var(--plasma-combobox-item-height);padding:var(--plasma-combobox-item-padding-top) var(--plasma-combobox-item-padding-right) var(--plasma-combobox-item-padding-bottom) var(--plasma-combobox-item-padding-left);margin:var(--plasma-combobox-item-margin-top) var(--plasma-combobox-item-margin-right) var(--plasma-combobox-item-margin-bottom) var(--plasma-combobox-item-margin-left);}.bvoi56l:focus{outline:none;}.bvoi56l::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-combobox-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.bvoi56l.focus-visible:focus::before,.bvoi56l[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-combobox-focus-color);}.bvoi56l:hover:not(.combobox-item-is-disabled){cursor:pointer;background:var(--plasma-combobox-item-background-hover);}.bvoi56l.combobox-item-is-selected{color:var(--plasma-combobox-item-color-selected);background:var(--plasma-combobox-item-background-selected);}.bvoi56l.combobox-item-is-selected:hover:not(.combobox-item-is-disabled){background:var(--plasma-combobox-item-background-selected-hover);}.bvoi56l.combobox-item-is-disabled{opacity:var(--plasma-combobox-disabled-opacity);cursor:not-allowed;}
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
6
- var React = require('react');
7
-
8
- var isReactObject = function isReactObject(element) {
9
- return _rollupPluginBabelHelpers.typeof(element) === 'object' || typeof element === 'function';
10
- };
11
- var getValidComponent = function getValidComponent(element, props) {
12
- if ( /*#__PURE__*/React.isValidElement(element)) {
13
- return /*#__PURE__*/React.cloneElement(element, props);
14
- }
15
- if (isReactObject(element)) {
16
- var Component = element;
17
- return /*#__PURE__*/React.createElement(Component, props);
18
- }
19
- return element;
20
- };
21
-
22
- exports.getValidComponent = getValidComponent;
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Combobox/utils/index.tsx"],"sourcesContent":["import React, { cloneElement, isValidElement } from 'react';\nimport type { ElementType, ReactNode } from 'react';\n\nconst isReactObject = (element: any): element is ElementType => {\n return typeof element === 'object' || typeof element === 'function';\n};\n\nexport const getValidComponent = (element: ElementType | ReactNode, props: object) => {\n if (isValidElement(element)) {\n return cloneElement(element, props);\n }\n\n if (isReactObject(element)) {\n const Component = element;\n\n return <Component {...props} />;\n }\n\n return element;\n};\n"],"names":["isReactObject","element","_typeof","getValidComponent","props","isValidElement","cloneElement","Component","React","createElement"],"mappings":";;;;;;;AAGA,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,OAAY,EAA6B;EAC5D,OAAOC,gCAAA,CAAOD,OAAO,CAAA,KAAK,QAAQ,IAAI,OAAOA,OAAO,KAAK,UAAU,CAAA;AACvE,CAAC,CAAA;AAEM,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIF,OAAgC,EAAEG,KAAa,EAAK;AAClF,EAAA,kBAAIC,oBAAc,CAACJ,OAAO,CAAC,EAAE;AACzB,IAAA,oBAAOK,kBAAY,CAACL,OAAO,EAAEG,KAAK,CAAC,CAAA;AACvC,GAAA;AAEA,EAAA,IAAIJ,aAAa,CAACC,OAAO,CAAC,EAAE;IACxB,IAAMM,SAAS,GAAGN,OAAO,CAAA;AAEzB,IAAA,oBAAOO,KAAA,CAAAC,aAAA,CAACF,SAAS,EAAKH,KAAQ,CAAC,CAAA;AACnC,GAAA;AAEA,EAAA,OAAOH,OAAO,CAAA;AAClB;;;;"}
@@ -1,3 +0,0 @@
1
- .sn7uamp .popover-wrapper,.sn7uamp .popover-target{display:block;}
2
- .ujr7fmv{box-sizing:border-box;background:var(--plasma-dropdown-background);box-shadow:var(--plasma-dropdown-box-shadow);border-radius:var(--plasma-dropdown-border-radius);width:var(--ujr7fmv-0);height:var(--ujr7fmv-1);overflow:var(--ujr7fmv-2);margin:var(--ujr7fmv-3);padding:var(--plasma-dropdown-padding);}
3
- .byfocd2{display:inline-block;}
@@ -1,34 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var React = require('react');
6
-
7
- // Данный хук рекурсивно проходится по дереву items и создаем 2 мапы: мапу путей и мапу фокусов.
8
- // Нужно для получения информации всей об item, зная только путь до нее.
9
-
10
- var useHashMaps = function useHashMaps(items) {
11
- return React.useMemo(function () {
12
- var pathMap = new Map();
13
- var focusedToValueMap = new Map();
14
- pathMap.set('root', items.length);
15
- var rec = function rec(items) {
16
- var prevIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
17
- items.forEach(function (item, index) {
18
- var value = item.value,
19
- innerItems = item.items;
20
- var currIndex = "".concat(prevIndex, "/").concat(index).replace(/^(\/)/, '');
21
- focusedToValueMap.set(currIndex, item);
22
- if (innerItems) {
23
- pathMap.set(value, innerItems.length);
24
- rec(innerItems, currIndex);
25
- }
26
- });
27
- };
28
- rec(items);
29
- return [pathMap, focusedToValueMap];
30
- }, [items]);
31
- };
32
-
33
- exports.useHashMaps = useHashMaps;
34
- //# sourceMappingURL=useHashMaps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useHashMaps.js","sources":["../../../../src/components/Dropdown/hooks/useHashMaps.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport { DropdownProps } from '../Dropdown.types';\nimport { DropdownItemOption } from '../ui/DropdownItem/DropdownItem.type';\n\nexport type PathMapType = Map<string | number, number>;\nexport type FocusedToValueMapType = Map<string, DropdownItemOption>;\n\n// Данный хук рекурсивно проходится по дереву items и создаем 2 мапы: мапу путей и мапу фокусов.\n// Нужно для получения информации всей об item, зная только путь до нее.\n\nexport const useHashMaps = (items: DropdownProps['items']) => {\n return useMemo(() => {\n const pathMap: PathMapType = new Map();\n const focusedToValueMap: FocusedToValueMapType = new Map();\n\n pathMap.set('root', items.length);\n\n const rec = (items: DropdownProps['items'], prevIndex = '') => {\n items.forEach((item: DropdownItemOption, index: number) => {\n const { value, items: innerItems } = item;\n\n const currIndex = `${prevIndex}/${index}`.replace(/^(\\/)/, '');\n focusedToValueMap.set(currIndex, item);\n\n if (innerItems) {\n pathMap.set(value, innerItems.length);\n rec(innerItems, currIndex);\n }\n });\n };\n rec(items);\n\n return [pathMap, focusedToValueMap] as [PathMapType, FocusedToValueMapType];\n }, [items]);\n};\n"],"names":["useHashMaps","items","useMemo","pathMap","Map","focusedToValueMap","set","length","rec","prevIndex","arguments","undefined","forEach","item","index","value","innerItems","currIndex","concat","replace"],"mappings":";;;;;;AAQA;AACA;;IAEaA,WAAW,GAAG,SAAdA,WAAWA,CAAIC,KAA6B,EAAK;EAC1D,OAAOC,aAAO,CAAC,YAAM;AACjB,IAAA,IAAMC,OAAoB,GAAG,IAAIC,GAAG,EAAE,CAAA;AACtC,IAAA,IAAMC,iBAAwC,GAAG,IAAID,GAAG,EAAE,CAAA;IAE1DD,OAAO,CAACG,GAAG,CAAC,MAAM,EAAEL,KAAK,CAACM,MAAM,CAAC,CAAA;AAEjC,IAAA,IAAMC,GAAG,GAAG,SAANA,GAAGA,CAAIP,KAA6B,EAAqB;AAAA,MAAA,IAAnBQ,SAAS,GAAAC,SAAA,CAAAH,MAAA,GAAA,CAAA,IAAAG,SAAA,CAAA,CAAA,CAAA,KAAAC,SAAA,GAAAD,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE,CAAA;AACtDT,MAAAA,KAAK,CAACW,OAAO,CAAC,UAACC,IAAwB,EAAEC,KAAa,EAAK;AACvD,QAAA,IAAQC,KAAK,GAAwBF,IAAI,CAAjCE,KAAK;UAASC,UAAU,GAAKH,IAAI,CAA1BZ,KAAK,CAAA;AAEpB,QAAA,IAAMgB,SAAS,GAAG,EAAA,CAAAC,MAAA,CAAGT,SAAS,EAAAS,GAAAA,CAAAA,CAAAA,MAAA,CAAIJ,KAAK,EAAGK,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;AAC9Dd,QAAAA,iBAAiB,CAACC,GAAG,CAACW,SAAS,EAAEJ,IAAI,CAAC,CAAA;AAEtC,QAAA,IAAIG,UAAU,EAAE;UACZb,OAAO,CAACG,GAAG,CAACS,KAAK,EAAEC,UAAU,CAACT,MAAM,CAAC,CAAA;AACrCC,UAAAA,GAAG,CAACQ,UAAU,EAAEC,SAAS,CAAC,CAAA;AAC9B,SAAA;AACJ,OAAC,CAAC,CAAA;KACL,CAAA;IACDT,GAAG,CAACP,KAAK,CAAC,CAAA;AAEV,IAAA,OAAO,CAACE,OAAO,EAAEE,iBAAiB,CAAC,CAAA;AACvC,GAAC,EAAE,CAACJ,KAAK,CAAC,CAAC,CAAA;AACf;;;;"}