@salutejs/plasma-new-hope 0.69.0-canary.1155.8506197081.0 → 0.69.1-canary.1161.8560768609.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (390) hide show
  1. package/cjs/components/Cell/Cell.css +3 -0
  2. package/cjs/components/Cell/Cell.js +71 -0
  3. package/cjs/components/Cell/Cell.js.map +1 -0
  4. package/cjs/components/Cell/Cell.styles.js +39 -0
  5. package/cjs/components/Cell/Cell.styles.js.map +1 -0
  6. package/cjs/components/Cell/Cell.styles_ygfo1w.css +1 -0
  7. package/cjs/components/Cell/Cell.tokens.js +50 -0
  8. package/cjs/components/Cell/Cell.tokens.js.map +1 -0
  9. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +20 -0
  10. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -0
  11. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.styles.js +13 -0
  12. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.styles.js.map +1 -0
  13. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js +13 -0
  14. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js.map +1 -0
  15. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +13 -0
  16. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js.map +1 -0
  17. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js +13 -0
  18. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js.map +1 -0
  19. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +13 -0
  20. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js.map +1 -0
  21. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +13 -0
  22. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -0
  23. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +13 -0
  24. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js.map +1 -0
  25. package/cjs/components/Cell/variations/_size/base.js +9 -0
  26. package/cjs/components/Cell/variations/_size/base.js.map +1 -0
  27. package/cjs/components/Cell/variations/_size/base_x642ct.css +1 -0
  28. package/cjs/components/Cell/variations/_view/base.js +9 -0
  29. package/cjs/components/Cell/variations/_view/base.js.map +1 -0
  30. package/cjs/components/Cell/variations/_view/base_pir0qf.css +1 -0
  31. package/cjs/components/Combobox/Combobox.css +10 -10
  32. package/cjs/components/Combobox/Combobox.styles.js +5 -5
  33. package/cjs/components/Combobox/Combobox.styles.js.map +1 -1
  34. package/cjs/components/Combobox/{Combobox.styles_17ei5vn.css → Combobox.styles_dw6hnk.css} +1 -1
  35. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  36. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  37. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  38. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  39. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  40. package/cjs/components/Dropdown/Dropdown.css +4 -4
  41. package/cjs/components/Dropdown/Dropdown.js +0 -1
  42. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  43. package/cjs/components/Pagination/Pagination.css +4 -4
  44. package/cjs/components/Pagination/Pagination.js +14 -13
  45. package/cjs/components/Pagination/Pagination.js.map +1 -1
  46. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  47. package/cjs/components/Popover/Popover.css +4 -4
  48. package/cjs/components/Popover/Popover.js +7 -18
  49. package/cjs/components/Popover/Popover.js.map +1 -1
  50. package/cjs/components/Popover/Popover.styles.js +1 -1
  51. package/cjs/components/Popover/Popover.styles.js.map +1 -1
  52. package/cjs/components/Popover/{Popover.styles_1rk9t6z.css → Popover.styles_1ggb66y.css} +1 -1
  53. package/cjs/components/Select/Select.css +4 -4
  54. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
  55. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +40 -0
  56. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
  57. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +12 -0
  58. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
  59. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
  60. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js +9 -0
  61. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
  62. package/cjs/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +1 -0
  63. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js +9 -0
  64. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
  65. package/cjs/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +1 -0
  66. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
  67. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +40 -0
  68. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
  69. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +12 -0
  70. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
  71. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
  72. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js +9 -0
  73. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
  74. package/cjs/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
  75. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +9 -0
  76. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
  77. package/cjs/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
  78. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
  79. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +40 -0
  80. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
  81. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +12 -0
  82. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
  83. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
  84. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +9 -0
  85. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
  86. package/cjs/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
  87. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +9 -0
  88. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
  89. package/cjs/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
  90. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
  91. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +40 -0
  92. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
  93. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +12 -0
  94. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
  95. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
  96. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +9 -0
  97. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
  98. package/cjs/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
  99. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +9 -0
  100. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
  101. package/cjs/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
  102. package/cjs/components/Select/ui/SelectItem/SelectItem.css +4 -4
  103. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  104. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  105. package/cjs/index.css +37 -33
  106. package/cjs/index.js +53 -4
  107. package/cjs/index.js.map +1 -1
  108. package/cjs/utils/index.js +13 -1
  109. package/cjs/utils/index.js.map +1 -1
  110. package/cjs/utils/react.js +12 -2
  111. package/cjs/utils/react.js.map +1 -1
  112. package/es/components/Cell/Cell.css +3 -0
  113. package/es/components/Cell/Cell.js +66 -0
  114. package/es/components/Cell/Cell.js.map +1 -0
  115. package/es/components/Cell/Cell.styles.js +31 -0
  116. package/es/components/Cell/Cell.styles.js.map +1 -0
  117. package/es/components/Cell/Cell.styles_ygfo1w.css +1 -0
  118. package/es/components/Cell/Cell.tokens.js +45 -0
  119. package/es/components/Cell/Cell.tokens.js.map +1 -0
  120. package/es/components/Cell/ui/CellTextbox/CellTextbox.js +16 -0
  121. package/es/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -0
  122. package/es/components/Cell/ui/CellTextbox/CellTextbox.styles.js +9 -0
  123. package/es/components/Cell/ui/CellTextbox/CellTextbox.styles.js.map +1 -0
  124. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js +9 -0
  125. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js.map +1 -0
  126. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +9 -0
  127. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js.map +1 -0
  128. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js +9 -0
  129. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js.map +1 -0
  130. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +9 -0
  131. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js.map +1 -0
  132. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +9 -0
  133. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -0
  134. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +9 -0
  135. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js.map +1 -0
  136. package/es/components/Cell/variations/_size/base.js +5 -0
  137. package/es/components/Cell/variations/_size/base.js.map +1 -0
  138. package/es/components/Cell/variations/_size/base_x642ct.css +1 -0
  139. package/es/components/Cell/variations/_view/base.js +5 -0
  140. package/es/components/Cell/variations/_view/base.js.map +1 -0
  141. package/es/components/Cell/variations/_view/base_pir0qf.css +1 -0
  142. package/es/components/Combobox/Combobox.css +10 -10
  143. package/es/components/Combobox/Combobox.styles.js +5 -5
  144. package/es/components/Combobox/Combobox.styles.js.map +1 -1
  145. package/es/components/Combobox/{Combobox.styles_17ei5vn.css → Combobox.styles_dw6hnk.css} +1 -1
  146. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  147. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  148. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  149. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  150. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  151. package/es/components/Dropdown/Dropdown.css +4 -4
  152. package/es/components/Dropdown/Dropdown.js +0 -1
  153. package/es/components/Dropdown/Dropdown.js.map +1 -1
  154. package/es/components/Pagination/Pagination.css +4 -4
  155. package/es/components/Pagination/Pagination.js +15 -14
  156. package/es/components/Pagination/Pagination.js.map +1 -1
  157. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  158. package/es/components/Popover/Popover.css +4 -4
  159. package/es/components/Popover/Popover.js +7 -18
  160. package/es/components/Popover/Popover.js.map +1 -1
  161. package/es/components/Popover/Popover.styles.js +1 -1
  162. package/es/components/Popover/Popover.styles.js.map +1 -1
  163. package/es/components/Popover/{Popover.styles_1rk9t6z.css → Popover.styles_1ggb66y.css} +1 -1
  164. package/es/components/Select/Select.css +4 -4
  165. package/es/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
  166. package/es/components/Select/ui/SelectDivider/SelectDivider.js +35 -0
  167. package/es/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
  168. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +7 -0
  169. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
  170. package/es/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
  171. package/es/components/Select/ui/SelectDivider/variations/_size/base.js +5 -0
  172. package/es/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
  173. package/es/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +1 -0
  174. package/es/components/Select/ui/SelectDivider/variations/_view/base.js +5 -0
  175. package/es/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
  176. package/es/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +1 -0
  177. package/es/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
  178. package/es/components/Select/ui/SelectFooter/SelectFooter.js +35 -0
  179. package/es/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
  180. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +7 -0
  181. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
  182. package/es/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
  183. package/es/components/Select/ui/SelectFooter/variations/_size/base.js +5 -0
  184. package/es/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
  185. package/es/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
  186. package/es/components/Select/ui/SelectFooter/variations/_view/base.js +5 -0
  187. package/es/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
  188. package/es/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
  189. package/es/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
  190. package/es/components/Select/ui/SelectGroup/SelectGroup.js +35 -0
  191. package/es/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
  192. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +7 -0
  193. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
  194. package/es/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
  195. package/es/components/Select/ui/SelectGroup/variations/_size/base.js +5 -0
  196. package/es/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
  197. package/es/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
  198. package/es/components/Select/ui/SelectGroup/variations/_view/base.js +5 -0
  199. package/es/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
  200. package/es/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
  201. package/es/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
  202. package/es/components/Select/ui/SelectHeader/SelectHeader.js +35 -0
  203. package/es/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
  204. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +7 -0
  205. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
  206. package/es/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
  207. package/es/components/Select/ui/SelectHeader/variations/_size/base.js +5 -0
  208. package/es/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
  209. package/es/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
  210. package/es/components/Select/ui/SelectHeader/variations/_view/base.js +5 -0
  211. package/es/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
  212. package/es/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
  213. package/es/components/Select/ui/SelectItem/SelectItem.css +4 -4
  214. package/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  215. package/es/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  216. package/es/index.css +37 -33
  217. package/es/index.js +19 -0
  218. package/es/index.js.map +1 -1
  219. package/es/utils/index.js +11 -2
  220. package/es/utils/index.js.map +1 -1
  221. package/es/utils/react.js +9 -2
  222. package/es/utils/react.js.map +1 -1
  223. package/package.json +4 -4
  224. package/styled-components/cjs/components/Cell/Cell.js +71 -0
  225. package/styled-components/cjs/components/Cell/Cell.styles.js +35 -0
  226. package/styled-components/cjs/components/Cell/Cell.tokens.js +48 -0
  227. package/styled-components/cjs/components/Cell/Cell.types.js +5 -0
  228. package/styled-components/cjs/components/Cell/index.js +59 -0
  229. package/styled-components/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +19 -0
  230. package/styled-components/cjs/components/Cell/ui/CellTextbox/CellTextbox.styles.js +12 -0
  231. package/styled-components/cjs/components/Cell/ui/CellTextbox/CellTextbox.types.js +5 -0
  232. package/styled-components/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js +12 -0
  233. package/styled-components/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +12 -0
  234. package/styled-components/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js +12 -0
  235. package/styled-components/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +12 -0
  236. package/styled-components/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +12 -0
  237. package/styled-components/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +12 -0
  238. package/styled-components/cjs/components/Cell/variations/_size/base.js +8 -0
  239. package/styled-components/cjs/components/Cell/variations/_size/tokens.json +1 -0
  240. package/styled-components/cjs/components/Cell/variations/_stretching/base.js +9 -0
  241. package/styled-components/cjs/components/Cell/variations/_stretching/tokens.json +1 -0
  242. package/styled-components/cjs/components/Cell/variations/_view/base.js +9 -0
  243. package/styled-components/cjs/components/Cell/variations/_view/tokens.json +1 -0
  244. package/styled-components/cjs/components/Combobox/Combobox.styles.js +1 -1
  245. package/styled-components/cjs/components/Dropdown/Dropdown.js +0 -1
  246. package/styled-components/cjs/components/Pagination/Pagination.js +14 -13
  247. package/styled-components/cjs/components/Popover/Popover.js +7 -18
  248. package/styled-components/cjs/components/Popover/Popover.styles.js +1 -1
  249. package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  250. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.config.js +21 -0
  251. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.js +35 -0
  252. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.stories.tsx +128 -0
  253. package/styled-components/cjs/examples/plasma_b2c/components/Chip/Chip.config.js +1 -2
  254. package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.config.js +4 -4
  255. package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +14 -7
  256. package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
  257. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.config.js +21 -0
  258. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.js +35 -0
  259. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.stories.tsx +128 -0
  260. package/styled-components/cjs/examples/plasma_web/components/Chip/Chip.config.js +1 -2
  261. package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.config.js +4 -4
  262. package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.stories.tsx +14 -7
  263. package/styled-components/cjs/index.js +33 -0
  264. package/styled-components/es/components/Cell/Cell.js +62 -0
  265. package/styled-components/es/components/Cell/Cell.styles.js +27 -0
  266. package/styled-components/es/components/Cell/Cell.tokens.js +42 -0
  267. package/styled-components/es/components/Cell/Cell.types.js +1 -0
  268. package/styled-components/es/components/Cell/index.js +6 -0
  269. package/styled-components/es/components/Cell/ui/CellTextbox/CellTextbox.js +12 -0
  270. package/styled-components/es/components/Cell/ui/CellTextbox/CellTextbox.styles.js +5 -0
  271. package/styled-components/es/components/Cell/ui/CellTextbox/CellTextbox.types.js +1 -0
  272. package/styled-components/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js +5 -0
  273. package/styled-components/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +5 -0
  274. package/styled-components/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js +5 -0
  275. package/styled-components/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +5 -0
  276. package/styled-components/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +5 -0
  277. package/styled-components/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +5 -0
  278. package/styled-components/es/components/Cell/variations/_size/base.js +2 -0
  279. package/styled-components/es/components/Cell/variations/_size/tokens.json +1 -0
  280. package/styled-components/es/components/Cell/variations/_stretching/base.js +3 -0
  281. package/styled-components/es/components/Cell/variations/_stretching/tokens.json +1 -0
  282. package/styled-components/es/components/Cell/variations/_view/base.js +3 -0
  283. package/styled-components/es/components/Cell/variations/_view/tokens.json +1 -0
  284. package/styled-components/es/components/Combobox/Combobox.styles.js +1 -1
  285. package/styled-components/es/components/Dropdown/Dropdown.js +0 -1
  286. package/styled-components/es/components/Pagination/Pagination.js +14 -13
  287. package/styled-components/es/components/Popover/Popover.js +7 -18
  288. package/styled-components/es/components/Popover/Popover.styles.js +1 -1
  289. package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  290. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.config.js +15 -0
  291. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.js +6 -0
  292. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.stories.tsx +128 -0
  293. package/styled-components/es/examples/plasma_b2c/components/Chip/Chip.config.js +1 -2
  294. package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.config.js +4 -4
  295. package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +14 -7
  296. package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
  297. package/styled-components/es/examples/plasma_web/components/Cell/Cell.config.js +15 -0
  298. package/styled-components/es/examples/plasma_web/components/Cell/Cell.js +6 -0
  299. package/styled-components/es/examples/plasma_web/components/Cell/Cell.stories.tsx +128 -0
  300. package/styled-components/es/examples/plasma_web/components/Chip/Chip.config.js +1 -2
  301. package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.config.js +4 -4
  302. package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.stories.tsx +14 -7
  303. package/styled-components/es/index.js +3 -0
  304. package/types/components/Cell/Cell.d.ts +23 -0
  305. package/types/components/Cell/Cell.d.ts.map +1 -0
  306. package/types/components/Cell/Cell.styles.d.ts +11 -0
  307. package/types/components/Cell/Cell.styles.d.ts.map +1 -0
  308. package/types/components/Cell/Cell.tokens.d.ts +43 -0
  309. package/types/components/Cell/Cell.tokens.d.ts.map +1 -0
  310. package/types/components/Cell/Cell.types.d.ts +51 -0
  311. package/types/components/Cell/Cell.types.d.ts.map +1 -0
  312. package/types/components/Cell/index.d.ts +9 -0
  313. package/types/components/Cell/index.d.ts.map +1 -0
  314. package/types/components/Cell/ui/CellTextbox/CellTextbox.d.ts +4 -0
  315. package/types/components/Cell/ui/CellTextbox/CellTextbox.d.ts.map +1 -0
  316. package/types/components/Cell/ui/CellTextbox/CellTextbox.styles.d.ts +2 -0
  317. package/types/components/Cell/ui/CellTextbox/CellTextbox.styles.d.ts.map +1 -0
  318. package/types/components/Cell/ui/CellTextbox/CellTextbox.types.d.ts +33 -0
  319. package/types/components/Cell/ui/CellTextbox/CellTextbox.types.d.ts.map +1 -0
  320. package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.d.ts +3 -0
  321. package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.d.ts.map +1 -0
  322. package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.d.ts +2 -0
  323. package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.d.ts.map +1 -0
  324. package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.d.ts +3 -0
  325. package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.d.ts.map +1 -0
  326. package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.d.ts +2 -0
  327. package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.d.ts.map +1 -0
  328. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.d.ts +3 -0
  329. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.d.ts.map +1 -0
  330. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.d.ts +2 -0
  331. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.d.ts.map +1 -0
  332. package/types/components/Cell/variations/_size/base.d.ts +2 -0
  333. package/types/components/Cell/variations/_size/base.d.ts.map +1 -0
  334. package/types/components/Cell/variations/_stretching/base.d.ts +2 -0
  335. package/types/components/Cell/variations/_stretching/base.d.ts.map +1 -0
  336. package/types/components/Cell/variations/_view/base.d.ts +2 -0
  337. package/types/components/Cell/variations/_view/base.d.ts.map +1 -0
  338. package/types/components/Chip/Chip.d.ts +26 -2
  339. package/types/components/Chip/Chip.d.ts.map +1 -1
  340. package/types/components/Chip/Chip.types.d.ts +6 -5
  341. package/types/components/Chip/Chip.types.d.ts.map +1 -1
  342. package/types/components/Combobox/Combobox.styles.d.ts +2 -8
  343. package/types/components/Combobox/Combobox.styles.d.ts.map +1 -1
  344. package/types/components/Combobox/ui/ComboboxChip/ComboboxChip.styles.d.ts +13 -1
  345. package/types/components/Combobox/ui/ComboboxChip/ComboboxChip.styles.d.ts.map +1 -1
  346. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  347. package/types/components/Dropdown/Dropdown.styles.d.ts +1 -7
  348. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  349. package/types/components/Indicator/Indicator.d.ts +2 -2
  350. package/types/components/Pagination/Pagination.d.ts.map +1 -1
  351. package/types/components/Popover/Popover.d.ts +2 -2
  352. package/types/components/Popover/Popover.d.ts.map +1 -1
  353. package/types/components/Popover/Popover.styles.d.ts.map +1 -1
  354. package/types/components/Popover/Popover.types.d.ts +12 -19
  355. package/types/components/Popover/Popover.types.d.ts.map +1 -1
  356. package/types/components/Select/Select.styles.d.ts +2 -8
  357. package/types/components/Select/Select.styles.d.ts.map +1 -1
  358. package/types/components/Select/ui/SelectChip/SelectChip.styles.d.ts +13 -1
  359. package/types/components/Select/ui/SelectChip/SelectChip.styles.d.ts.map +1 -1
  360. package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts.map +1 -1
  361. package/types/examples/plasma_b2c/components/Cell/Cell.config.d.ts +14 -0
  362. package/types/examples/plasma_b2c/components/Cell/Cell.config.d.ts.map +1 -0
  363. package/types/examples/plasma_b2c/components/Cell/Cell.d.ts +45 -0
  364. package/types/examples/plasma_b2c/components/Cell/Cell.d.ts.map +1 -0
  365. package/types/examples/plasma_b2c/components/Chip/Chip.config.d.ts +0 -1
  366. package/types/examples/plasma_b2c/components/Chip/Chip.config.d.ts.map +1 -1
  367. package/types/examples/plasma_b2c/components/Chip/Chip.d.ts +13 -2
  368. package/types/examples/plasma_b2c/components/Chip/Chip.d.ts.map +1 -1
  369. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +2 -2
  370. package/types/examples/plasma_b2c/components/Indicator/Indicator.d.ts +2 -2
  371. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts +1 -7
  372. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts.map +1 -1
  373. package/types/examples/plasma_web/components/Cell/Cell.config.d.ts +14 -0
  374. package/types/examples/plasma_web/components/Cell/Cell.config.d.ts.map +1 -0
  375. package/types/examples/plasma_web/components/Cell/Cell.d.ts +45 -0
  376. package/types/examples/plasma_web/components/Cell/Cell.d.ts.map +1 -0
  377. package/types/examples/plasma_web/components/Chip/Chip.config.d.ts +0 -1
  378. package/types/examples/plasma_web/components/Chip/Chip.config.d.ts.map +1 -1
  379. package/types/examples/plasma_web/components/Chip/Chip.d.ts +13 -2
  380. package/types/examples/plasma_web/components/Chip/Chip.d.ts.map +1 -1
  381. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +2 -2
  382. package/types/examples/plasma_web/components/Indicator/Indicator.d.ts +2 -2
  383. package/types/examples/plasma_web/components/Popover/Popover.d.ts +1 -7
  384. package/types/examples/plasma_web/components/Popover/Popover.d.ts.map +1 -1
  385. package/types/examples/sds_engineer/components/Chip/Chip.d.ts +13 -1
  386. package/types/examples/sds_engineer/components/Chip/Chip.d.ts.map +1 -1
  387. package/types/examples/sds_engineer/components/Popover/Popover.d.ts +1 -7
  388. package/types/examples/sds_engineer/components/Popover/Popover.d.ts.map +1 -1
  389. package/types/index.d.ts +3 -0
  390. package/types/index.d.ts.map +1 -1
@@ -53,7 +53,7 @@ type Story = StoryObj<typeof Pagination>;
53
53
 
54
54
  export const Default: Story = {
55
55
  args: {
56
- count: 20,
56
+ count: 2000,
57
57
  value: 1,
58
58
  slots: 9,
59
59
  type: 'default',
@@ -71,12 +71,18 @@ const PaginationContent = (agrs) => {
71
71
  const [pageValue, setPageValue] = useState(agrs.value);
72
72
  const [perPageValue, setPerPageValue] = useState(agrs.perPage);
73
73
 
74
- const handleChange = useCallback(
75
- (page: number, perPage: number) => {
76
- setPerPageValue(perPage);
74
+ const handleChangePage = useCallback(
75
+ (page: number) => {
77
76
  setPageValue(page);
78
77
  },
79
- [pageValue, perPageValue, setPageValue, setPerPageValue],
78
+ [pageValue, setPageValue],
79
+ );
80
+
81
+ const handleChangePerpage = useCallback(
82
+ (perPage: number) => {
83
+ setPerPageValue(perPage);
84
+ },
85
+ [perPageValue, setPerPageValue],
80
86
  );
81
87
 
82
88
  return (
@@ -103,7 +109,8 @@ const PaginationContent = (agrs) => {
103
109
  Next
104
110
  </Button>
105
111
  }
106
- onChangeValue={handleChange}
112
+ onChangePageValue={handleChangePage}
113
+ onChangePerPageValue={handleChangePerpage}
107
114
  />
108
115
  </>
109
116
  );
@@ -111,7 +118,7 @@ const PaginationContent = (agrs) => {
111
118
 
112
119
  export const Content: Story = {
113
120
  args: {
114
- count: 20,
121
+ count: 2000,
115
122
  value: 1,
116
123
  slots: 9,
117
124
  type: 'default',
@@ -33,12 +33,6 @@ const meta: Meta<typeof Popover> = {
33
33
  },
34
34
  table: { defaultValue: { summary: true } },
35
35
  },
36
- closeOnBeyondTargetHover: {
37
- control: {
38
- type: 'boolean',
39
- },
40
- table: { defaultValue: { summary: true } },
41
- },
42
36
  closeOnEsc: {
43
37
  control: {
44
38
  type: 'boolean',
@@ -68,7 +62,6 @@ const meta: Meta<typeof Popover> = {
68
62
  placement: 'bottom',
69
63
  trigger: 'click',
70
64
  closeOnOverlayClick: true,
71
- closeOnBeyondTargetHover: true,
72
65
  closeOnEsc: true,
73
66
  isFocusTrapped: true,
74
67
  skidding: 0,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.config = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("styled-components");
8
+ var _Cell = /*#__PURE__*/require("../../../../components/Cell");
9
+ var config = exports.config = {
10
+ variations: {
11
+ view: {
12
+ "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;"], _Cell.cellTokens.cellColor, _Cell.cellTokens.cellLabelColor, _Cell.cellTokens.cellTitleColor, _Cell.cellTokens.cellSubtitleColor, _Cell.cellTokens.cellBackgroundColor)
13
+ },
14
+ size: {
15
+ l: /*#__PURE__*/(0, _styledComponents.css)(["", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);"], _Cell.cellTokens.cellWidth, _Cell.cellTokens.cellPadding, _Cell.cellTokens.cellPaddingLeftContent, _Cell.cellTokens.cellPaddingContent, _Cell.cellTokens.cellPaddingRightContent, _Cell.cellTokens.cellTextboxGap, _Cell.cellTokens.cellGap, _Cell.cellTokens.cellLabelFontFamily, _Cell.cellTokens.cellLabelFontSize, _Cell.cellTokens.cellLabelFontStyle, _Cell.cellTokens.cellLabelFontWeight, _Cell.cellTokens.cellLabelLetterSpacing, _Cell.cellTokens.cellLabelLineHeight, _Cell.cellTokens.cellTitleFontFamily, _Cell.cellTokens.cellTitleFontSize, _Cell.cellTokens.cellTitleFontStyle, _Cell.cellTokens.cellTitleFontWeight, _Cell.cellTokens.cellTitleLetterSpacing, _Cell.cellTokens.cellTitleLineHeight, _Cell.cellTokens.cellSubtitleFontFamily, _Cell.cellTokens.cellSubtitleFontSize, _Cell.cellTokens.cellSubtitleFontStyle, _Cell.cellTokens.cellSubtitleFontWeight, _Cell.cellTokens.cellSubtitleLetterSpacing, _Cell.cellTokens.cellSubtitleLineHeight),
16
+ m: /*#__PURE__*/(0, _styledComponents.css)(["", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], _Cell.cellTokens.cellWidth, _Cell.cellTokens.cellPadding, _Cell.cellTokens.cellPaddingLeftContent, _Cell.cellTokens.cellPaddingContent, _Cell.cellTokens.cellPaddingRightContent, _Cell.cellTokens.cellTextboxGap, _Cell.cellTokens.cellGap, _Cell.cellTokens.cellLabelFontFamily, _Cell.cellTokens.cellLabelFontSize, _Cell.cellTokens.cellLabelFontStyle, _Cell.cellTokens.cellLabelFontWeight, _Cell.cellTokens.cellLabelLetterSpacing, _Cell.cellTokens.cellLabelLineHeight, _Cell.cellTokens.cellTitleFontFamily, _Cell.cellTokens.cellTitleFontSize, _Cell.cellTokens.cellTitleFontStyle, _Cell.cellTokens.cellTitleFontWeight, _Cell.cellTokens.cellTitleLetterSpacing, _Cell.cellTokens.cellTitleLineHeight, _Cell.cellTokens.cellSubtitleFontFamily, _Cell.cellTokens.cellSubtitleFontSize, _Cell.cellTokens.cellSubtitleFontStyle, _Cell.cellTokens.cellSubtitleFontWeight, _Cell.cellTokens.cellSubtitleLetterSpacing, _Cell.cellTokens.cellSubtitleLineHeight),
17
+ s: /*#__PURE__*/(0, _styledComponents.css)(["", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], _Cell.cellTokens.cellWidth, _Cell.cellTokens.cellPadding, _Cell.cellTokens.cellPaddingLeftContent, _Cell.cellTokens.cellPaddingContent, _Cell.cellTokens.cellPaddingRightContent, _Cell.cellTokens.cellTextboxGap, _Cell.cellTokens.cellGap, _Cell.cellTokens.cellLabelFontFamily, _Cell.cellTokens.cellLabelFontSize, _Cell.cellTokens.cellLabelFontStyle, _Cell.cellTokens.cellLabelFontWeight, _Cell.cellTokens.cellLabelLetterSpacing, _Cell.cellTokens.cellLabelLineHeight, _Cell.cellTokens.cellTitleFontFamily, _Cell.cellTokens.cellTitleFontSize, _Cell.cellTokens.cellTitleFontStyle, _Cell.cellTokens.cellTitleFontWeight, _Cell.cellTokens.cellTitleLetterSpacing, _Cell.cellTokens.cellTitleLineHeight, _Cell.cellTokens.cellSubtitleFontFamily, _Cell.cellTokens.cellSubtitleFontSize, _Cell.cellTokens.cellSubtitleFontStyle, _Cell.cellTokens.cellSubtitleFontWeight, _Cell.cellTokens.cellSubtitleLetterSpacing, _Cell.cellTokens.cellSubtitleLineHeight),
18
+ xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.25rem;", ":0.375rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], _Cell.cellTokens.cellWidth, _Cell.cellTokens.cellPadding, _Cell.cellTokens.cellPaddingLeftContent, _Cell.cellTokens.cellPaddingContent, _Cell.cellTokens.cellPaddingRightContent, _Cell.cellTokens.cellTextboxGap, _Cell.cellTokens.cellGap, _Cell.cellTokens.cellGap, _Cell.cellTokens.cellLabelFontFamily, _Cell.cellTokens.cellLabelFontSize, _Cell.cellTokens.cellLabelFontStyle, _Cell.cellTokens.cellLabelFontWeight, _Cell.cellTokens.cellLabelLetterSpacing, _Cell.cellTokens.cellLabelLineHeight, _Cell.cellTokens.cellTitleFontFamily, _Cell.cellTokens.cellTitleFontSize, _Cell.cellTokens.cellTitleFontStyle, _Cell.cellTokens.cellTitleFontWeight, _Cell.cellTokens.cellTitleLetterSpacing, _Cell.cellTokens.cellTitleLineHeight, _Cell.cellTokens.cellSubtitleFontFamily, _Cell.cellTokens.cellSubtitleFontSize, _Cell.cellTokens.cellSubtitleFontStyle, _Cell.cellTokens.cellSubtitleFontWeight, _Cell.cellTokens.cellSubtitleLetterSpacing, _Cell.cellTokens.cellSubtitleLineHeight)
19
+ }
20
+ }
21
+ };
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Cell = void 0;
7
+ Object.defineProperty(exports, "CellTextbox", {
8
+ enumerable: true,
9
+ get: function get() {
10
+ return _Cell.CellTextbox;
11
+ }
12
+ });
13
+ Object.defineProperty(exports, "CellTextboxLabel", {
14
+ enumerable: true,
15
+ get: function get() {
16
+ return _Cell.CellTextboxLabel;
17
+ }
18
+ });
19
+ Object.defineProperty(exports, "CellTextboxSubtitle", {
20
+ enumerable: true,
21
+ get: function get() {
22
+ return _Cell.CellTextboxSubtitle;
23
+ }
24
+ });
25
+ Object.defineProperty(exports, "CellTextboxTitle", {
26
+ enumerable: true,
27
+ get: function get() {
28
+ return _Cell.CellTextboxTitle;
29
+ }
30
+ });
31
+ var _engines = /*#__PURE__*/require("../../../../engines");
32
+ var _Cell = /*#__PURE__*/require("../../../../components/Cell");
33
+ var _Cell2 = /*#__PURE__*/require("./Cell.config");
34
+ var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Cell.cellConfig, _Cell2.config);
35
+ var Cell = exports.Cell = /*#__PURE__*/(0, _engines.component)(mergedConfig);
@@ -0,0 +1,128 @@
1
+ import React from 'react';
2
+ import type { ComponentProps } from 'react';
3
+ import type { StoryObj, Meta } from '@storybook/react';
4
+ import styled from 'styled-components';
5
+
6
+ import { WithTheme } from '../../../_helpers';
7
+ import { Avatar } from '../Avatar/Avatar';
8
+ import { IconChevronLeft } from '../../../../components/_Icon';
9
+
10
+ import { Cell, CellTextbox, CellTextboxTitle } from './Cell';
11
+
12
+ type StoryProps = ComponentProps<typeof Cell> & {
13
+ itemsCount?: number;
14
+ disableLeftContent?: boolean;
15
+ disableRightContent?: boolean;
16
+ };
17
+ type Story = StoryObj<StoryProps>;
18
+
19
+ const sizes = ['l', 'm', 's', 'xs'];
20
+ const stretchingValues = ['fixed', 'filled', 'auto'];
21
+ const alignLeft = ['top', 'center', 'bottom'];
22
+ const alignRight = ['top', 'center', 'bottom'];
23
+
24
+ type SizesCell = 'xs' | 'l' | 'm' | 's' | undefined;
25
+ type SizesAvatar = 'l' | 'm' | 's';
26
+
27
+ const getSize = (size: SizesCell): SizesAvatar => {
28
+ if (size === 'xs' || !size) {
29
+ return 's';
30
+ }
31
+
32
+ return size;
33
+ };
34
+
35
+ const meta: Meta<typeof Cell> = {
36
+ title: 'plasma_web/Cell',
37
+ decorators: [WithTheme],
38
+ argTypes: {
39
+ size: {
40
+ options: sizes,
41
+ control: {
42
+ type: 'select',
43
+ },
44
+ },
45
+ stretching: {
46
+ options: stretchingValues,
47
+ control: {
48
+ type: 'select',
49
+ },
50
+ },
51
+ alignContentLeft: {
52
+ options: alignLeft,
53
+ control: {
54
+ type: 'select',
55
+ },
56
+ },
57
+ alignContentRight: {
58
+ options: alignRight,
59
+ control: {
60
+ type: 'select',
61
+ },
62
+ },
63
+ },
64
+ };
65
+
66
+ export default meta;
67
+
68
+ const ChevronRight = styled(IconChevronLeft)`
69
+ transform: rotate(180deg);
70
+ color: var(--text-secondary);
71
+ `;
72
+
73
+ export const Default: Story = {
74
+ args: {
75
+ size: 'm',
76
+ stretching: 'filled',
77
+ disableLeftContent: false,
78
+ disableRightContent: false,
79
+ alignContentLeft: 'center',
80
+ alignContentRight: 'center',
81
+ title: 'Title',
82
+ subtitle: 'Subtitle',
83
+ label: 'Label',
84
+ },
85
+ render: ({ ...args }: StoryProps) => {
86
+ return (
87
+ <Cell
88
+ contentLeft={
89
+ !args.disableLeftContent && (
90
+ <Avatar size={getSize(args.size)} url="https://avatars.githubusercontent.com/u/1813468?v=4" />
91
+ )
92
+ }
93
+ contentRight={!args.disableRightContent && <ChevronRight color="inherit" size="xs" />}
94
+ {...args}
95
+ />
96
+ );
97
+ },
98
+ };
99
+
100
+ export const WithContentTextboxCustom: Story = {
101
+ args: {
102
+ size: 'm',
103
+ stretching: 'filled',
104
+ },
105
+ render: ({ ...args }: StoryProps) => {
106
+ const MyStyledText = styled.div`
107
+ font-size: 12px;
108
+ font-weight: 600;
109
+ opacity: 0.5;
110
+ `;
111
+ return (
112
+ <Cell
113
+ view="default"
114
+ size={args.size}
115
+ stretching={args.stretching}
116
+ contentLeft={
117
+ <Avatar size={getSize(args.size)} url="https://avatars.githubusercontent.com/u/1813468?v=4" />
118
+ }
119
+ contentRight={<ChevronRight color="inherit" size="xs" />}
120
+ >
121
+ <CellTextbox>
122
+ <CellTextboxTitle>Title</CellTextboxTitle>
123
+ <MyStyledText>My styled Text</MyStyledText>
124
+ </CellTextbox>
125
+ </Cell>
126
+ );
127
+ },
128
+ };
@@ -8,13 +8,12 @@ var _styledComponents = /*#__PURE__*/require("styled-components");
8
8
  var _Chip = /*#__PURE__*/require("../../../../components/Chip");
9
9
  var config = exports.config = {
10
10
  defaults: {
11
- view: 'default',
11
+ view: 'primary',
12
12
  focused: 'true',
13
13
  size: 'm'
14
14
  },
15
15
  variations: {
16
16
  view: {
17
- "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);"], _Chip.chipTokens.color, _Chip.chipTokens.background, _Chip.chipTokens.colorHover, _Chip.chipTokens.backgroundHover, _Chip.chipTokens.colorActive, _Chip.chipTokens.backgroundActive, _Chip.chipTokens.backgroundReadOnly, _Chip.chipTokens.colorReadOnly, _Chip.chipTokens.backgroundReadOnlyHover, _Chip.chipTokens.colorReadOnlyHover),
18
17
  primary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);"], _Chip.chipTokens.color, _Chip.chipTokens.background, _Chip.chipTokens.colorHover, _Chip.chipTokens.backgroundHover, _Chip.chipTokens.colorActive, _Chip.chipTokens.backgroundActive, _Chip.chipTokens.backgroundReadOnly, _Chip.chipTokens.colorReadOnly, _Chip.chipTokens.backgroundReadOnlyHover, _Chip.chipTokens.colorReadOnlyHover),
19
18
  secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 85% );", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 80% );", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);"], _Chip.chipTokens.color, _Chip.chipTokens.background, _Chip.chipTokens.colorHover, _Chip.chipTokens.backgroundHover, _Chip.chipTokens.colorActive, _Chip.chipTokens.backgroundActive, _Chip.chipTokens.backgroundReadOnly, _Chip.chipTokens.colorReadOnly, _Chip.chipTokens.backgroundReadOnlyHover, _Chip.chipTokens.colorReadOnlyHover),
20
19
  positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-positive) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-positive) 85%);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);"], _Chip.chipTokens.color, _Chip.chipTokens.background, _Chip.chipTokens.colorHover, _Chip.chipTokens.backgroundHover, _Chip.chipTokens.colorActive, _Chip.chipTokens.backgroundActive, _Chip.chipTokens.backgroundReadOnly, _Chip.chipTokens.colorReadOnly, _Chip.chipTokens.backgroundReadOnlyHover, _Chip.chipTokens.colorReadOnlyHover)
@@ -24,10 +24,10 @@ var config = exports.config = {
24
24
  clear: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 95%);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 90%);"], _Pagination.paginationTokens.paginationCurrentButtonColor, _Pagination.paginationTokens.paginationCurrentButtonBackgroundColor, _Pagination.paginationTokens.paginationCurrentButtonHoverColor, _Pagination.paginationTokens.paginationCurrentButtonHoverBackgroundColor, _Pagination.paginationTokens.paginationCurrentButtonActiveColor, _Pagination.paginationTokens.paginationCurrentButtonActiveBackgroundColor)
25
25
  },
26
26
  size: {
27
- l: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":3.5rem;", ":3rem;", ":2.25rem;", ":0.875rem;", ":1.2rem;", ":1.45rem;", ":6.375rem;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":6.375rem;", ":1.5rem;", ":1rem;", ":1rem;", ":1rem;", ":1rem;", ":1.875rem;", ":transparent;", ":1rem;", ":6.375rem;", ":0 3.5rem 0 1.5rem;", ":0 3.625rem 0 0.375rem;", ":0 3.625rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.875rem;", ":4rem;", ":3.5rem;", ":0 0.625rem;", ":0.125rem;"], _Pagination.paginationTokens.paginationFontFamily, _Pagination.paginationTokens.paginationFontSize, _Pagination.paginationTokens.paginationFontStyle, _Pagination.paginationTokens.paginationFontWeight, _Pagination.paginationTokens.paginationLetterSpacing, _Pagination.paginationTokens.paginationLineHeight, _Pagination.paginationTokens.buttonHeight, _Pagination.paginationTokens.buttonWidth, _Pagination.paginationTokens.buttonWidthShorter, _Pagination.paginationTokens.buttonRadius, _Pagination.paginationTokens.paginationIconSize, _Pagination.paginationTokens.paginationIconDoubleSize, _Pagination.paginationTokens.selectWidth, _Pagination.paginationTokens.selectHeight, _Pagination.paginationTokens.selectPaddingTop, _Pagination.paginationTokens.selectPaddingRight, _Pagination.paginationTokens.selectPaddingBottom, _Pagination.paginationTokens.selectPaddingLeft, _Pagination.paginationTokens.selectItemWidth, _Pagination.paginationTokens.selectItemHeight, _Pagination.paginationTokens.selectItemPaddingTop, _Pagination.paginationTokens.selectItemPaddingRight, _Pagination.paginationTokens.selectItemPaddingBottom, _Pagination.paginationTokens.selectItemPaddingLeft, _Pagination.paginationTokens.selectItemContentLeftWidth, _Pagination.paginationTokens.selectItemBackground, _Pagination.paginationTokens.selectTargetArrowRight, _Pagination.paginationTokens.selectTargetWidth, _Pagination.paginationTokens.selectTargetPadding, _Pagination.paginationTokens.selectTargetPaddingHasChips, _Pagination.paginationTokens.selectTargetPaddingWithInput, _Pagination.paginationTokens.selectTargetInnerTop, _Pagination.paginationTokens.selectTargetLabelInnerTop, _Pagination.paginationTokens.inputBorderRadius, _Pagination.paginationTokens.inputWidth, _Pagination.paginationTokens.inputHeight, _Pagination.paginationTokens.inputPadding, _Pagination.paginationTokens.inputBorderWidth),
28
- m: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-bold-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":3rem;", ":3rem;", ":2rem;", ":0.75rem;", ":1.05rem;", ":1.3rem;", ":5.875rem;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":5.875rem;", ":1.5rem;", ":0.75rem;", ":0.75rem;", ":0.75rem;", ":0.75rem;", ":1.75rem;", ":transparent;", ":0.875rem;", ":5.875rem;", ":0 3.25rem 0 1.25rem;", ":0 3.375rem 0 0.375rem;", ":0 3.375rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.75rem;", ":3.5rem;", ":3rem;", ":0 0.625rem;", ":0.125rem;"], _Pagination.paginationTokens.paginationFontFamily, _Pagination.paginationTokens.paginationFontSize, _Pagination.paginationTokens.paginationFontStyle, _Pagination.paginationTokens.paginationFontWeight, _Pagination.paginationTokens.paginationLetterSpacing, _Pagination.paginationTokens.paginationLineHeight, _Pagination.paginationTokens.buttonHeight, _Pagination.paginationTokens.buttonWidth, _Pagination.paginationTokens.buttonWidthShorter, _Pagination.paginationTokens.buttonRadius, _Pagination.paginationTokens.paginationIconSize, _Pagination.paginationTokens.paginationIconDoubleSize, _Pagination.paginationTokens.selectWidth, _Pagination.paginationTokens.selectHeight, _Pagination.paginationTokens.selectPaddingTop, _Pagination.paginationTokens.selectPaddingRight, _Pagination.paginationTokens.selectPaddingBottom, _Pagination.paginationTokens.selectPaddingLeft, _Pagination.paginationTokens.selectItemWidth, _Pagination.paginationTokens.selectItemHeight, _Pagination.paginationTokens.selectItemPaddingTop, _Pagination.paginationTokens.selectItemPaddingRight, _Pagination.paginationTokens.selectItemPaddingBottom, _Pagination.paginationTokens.selectItemPaddingLeft, _Pagination.paginationTokens.selectItemContentLeftWidth, _Pagination.paginationTokens.selectItemBackground, _Pagination.paginationTokens.selectTargetArrowRight, _Pagination.paginationTokens.selectTargetWidth, _Pagination.paginationTokens.selectTargetPadding, _Pagination.paginationTokens.selectTargetPaddingHasChips, _Pagination.paginationTokens.selectTargetPaddingWithInput, _Pagination.paginationTokens.selectTargetInnerTop, _Pagination.paginationTokens.selectTargetLabelInnerTop, _Pagination.paginationTokens.inputBorderRadius, _Pagination.paginationTokens.inputWidth, _Pagination.paginationTokens.inputHeight, _Pagination.paginationTokens.inputPadding, _Pagination.paginationTokens.inputBorderWidth),
29
- s: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-bold-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":2.5rem;", ":2.5rem;", ":1.75rem;", ":3rem;", ":0.625rem;", ":0.9rem;", ":1.15rem;", ":5.375rem;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":5.375rem;", ":1.5rem;", ":0.5rem;", ":0.75rem;", ":0.5rem;", ":0.75rem;", ":1.75rem;", ":transparent;", ":0.75rem;", ":5.375rem;", ":0 3rem 0 1rem;", ":0 3.125rem 0 0.375rem;", ":0 3.125rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.625rem;", ":3rem;", ":2.5rem;", ":0 0.625rem;", ":0.125rem;"], _Pagination.paginationTokens.paginationFontFamily, _Pagination.paginationTokens.paginationFontSize, _Pagination.paginationTokens.paginationFontStyle, _Pagination.paginationTokens.paginationFontWeight, _Pagination.paginationTokens.paginationLetterSpacing, _Pagination.paginationTokens.paginationLineHeight, _Pagination.paginationTokens.buttonHeight, _Pagination.paginationTokens.buttonWidth, _Pagination.paginationTokens.buttonWidthShorter, _Pagination.paginationTokens.paginationInputWidth, _Pagination.paginationTokens.buttonRadius, _Pagination.paginationTokens.paginationIconSize, _Pagination.paginationTokens.paginationIconDoubleSize, _Pagination.paginationTokens.selectWidth, _Pagination.paginationTokens.selectHeight, _Pagination.paginationTokens.selectPaddingTop, _Pagination.paginationTokens.selectPaddingRight, _Pagination.paginationTokens.selectPaddingBottom, _Pagination.paginationTokens.selectPaddingLeft, _Pagination.paginationTokens.selectItemWidth, _Pagination.paginationTokens.selectItemHeight, _Pagination.paginationTokens.selectItemPaddingTop, _Pagination.paginationTokens.selectItemPaddingRight, _Pagination.paginationTokens.selectItemPaddingBottom, _Pagination.paginationTokens.selectItemPaddingLeft, _Pagination.paginationTokens.selectItemContentLeftWidth, _Pagination.paginationTokens.selectItemBackground, _Pagination.paginationTokens.selectTargetArrowRight, _Pagination.paginationTokens.selectTargetWidth, _Pagination.paginationTokens.selectTargetPadding, _Pagination.paginationTokens.selectTargetPaddingHasChips, _Pagination.paginationTokens.selectTargetPaddingWithInput, _Pagination.paginationTokens.selectTargetInnerTop, _Pagination.paginationTokens.selectTargetLabelInnerTop, _Pagination.paginationTokens.inputBorderRadius, _Pagination.paginationTokens.inputWidth, _Pagination.paginationTokens.inputHeight, _Pagination.paginationTokens.inputPadding, _Pagination.paginationTokens.inputBorderWidth),
30
- xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":2rem;", ":2.5rem;", ":0.5rem;", ":2rem;", ":1.5rem;", ":0.75rem;", ":1rem;", ":4.625rem;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":4.625rem;", ":1rem;", ":0.5rem;", ":0.5rem;", ":0.5rem;", ":0.5rem;", ":1.25rem;", ":transparent;", ":0.5rem;", ":4.625rem;", ":0 2.5rem 0 0.75rem;", ":0 2.625rem 0 0.375rem;", ":0 2.625rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.5rem;", ":2.5rem;", ":2rem;", ":0 0.625rem;", ":0.125rem;"], _Pagination.paginationTokens.paginationFontFamily, _Pagination.paginationTokens.paginationFontSize, _Pagination.paginationTokens.paginationFontStyle, _Pagination.paginationTokens.paginationFontWeight, _Pagination.paginationTokens.paginationLetterSpacing, _Pagination.paginationTokens.paginationLineHeight, _Pagination.paginationTokens.buttonHeight, _Pagination.paginationTokens.paginationInputWidth, _Pagination.paginationTokens.buttonRadius, _Pagination.paginationTokens.buttonWidth, _Pagination.paginationTokens.buttonWidthShorter, _Pagination.paginationTokens.paginationIconSize, _Pagination.paginationTokens.paginationIconDoubleSize, _Pagination.paginationTokens.selectWidth, _Pagination.paginationTokens.selectHeight, _Pagination.paginationTokens.selectPaddingTop, _Pagination.paginationTokens.selectPaddingRight, _Pagination.paginationTokens.selectPaddingBottom, _Pagination.paginationTokens.selectPaddingLeft, _Pagination.paginationTokens.selectItemWidth, _Pagination.paginationTokens.selectItemHeight, _Pagination.paginationTokens.selectItemPaddingTop, _Pagination.paginationTokens.selectItemPaddingRight, _Pagination.paginationTokens.selectItemPaddingBottom, _Pagination.paginationTokens.selectItemPaddingLeft, _Pagination.paginationTokens.selectItemContentLeftWidth, _Pagination.paginationTokens.selectItemBackground, _Pagination.paginationTokens.selectTargetArrowRight, _Pagination.paginationTokens.selectTargetWidth, _Pagination.paginationTokens.selectTargetPadding, _Pagination.paginationTokens.selectTargetPaddingHasChips, _Pagination.paginationTokens.selectTargetPaddingWithInput, _Pagination.paginationTokens.selectTargetInnerTop, _Pagination.paginationTokens.selectTargetLabelInnerTop, _Pagination.paginationTokens.inputBorderRadius, _Pagination.paginationTokens.inputWidth, _Pagination.paginationTokens.inputHeight, _Pagination.paginationTokens.inputPadding, _Pagination.paginationTokens.inputBorderWidth)
27
+ l: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":3.5rem;", ":3rem;", ":2.25rem;", ":0.875rem;", ":1.2rem;", ":1.45rem;", ":6.375rem;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":6.375rem;", ":1.5rem;", ":1rem;", ":1rem;", ":1rem;", ":1rem;", ":1.875rem;", ":transparent;", ":1rem;", ":6.375rem;", ":0 3.5rem 0 1.5rem;", ":0 3.625rem 0 0.375rem;", ":0 3.625rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.875rem;", ":4rem;", ":3.5rem;", ":0 0.625rem;", ":0.0625rem;"], _Pagination.paginationTokens.paginationFontFamily, _Pagination.paginationTokens.paginationFontSize, _Pagination.paginationTokens.paginationFontStyle, _Pagination.paginationTokens.paginationFontWeight, _Pagination.paginationTokens.paginationLetterSpacing, _Pagination.paginationTokens.paginationLineHeight, _Pagination.paginationTokens.buttonHeight, _Pagination.paginationTokens.buttonWidth, _Pagination.paginationTokens.buttonWidthShorter, _Pagination.paginationTokens.buttonRadius, _Pagination.paginationTokens.paginationIconSize, _Pagination.paginationTokens.paginationIconDoubleSize, _Pagination.paginationTokens.selectWidth, _Pagination.paginationTokens.selectHeight, _Pagination.paginationTokens.selectPaddingTop, _Pagination.paginationTokens.selectPaddingRight, _Pagination.paginationTokens.selectPaddingBottom, _Pagination.paginationTokens.selectPaddingLeft, _Pagination.paginationTokens.selectItemWidth, _Pagination.paginationTokens.selectItemHeight, _Pagination.paginationTokens.selectItemPaddingTop, _Pagination.paginationTokens.selectItemPaddingRight, _Pagination.paginationTokens.selectItemPaddingBottom, _Pagination.paginationTokens.selectItemPaddingLeft, _Pagination.paginationTokens.selectItemContentLeftWidth, _Pagination.paginationTokens.selectItemBackground, _Pagination.paginationTokens.selectTargetArrowRight, _Pagination.paginationTokens.selectTargetWidth, _Pagination.paginationTokens.selectTargetPadding, _Pagination.paginationTokens.selectTargetPaddingHasChips, _Pagination.paginationTokens.selectTargetPaddingWithInput, _Pagination.paginationTokens.selectTargetInnerTop, _Pagination.paginationTokens.selectTargetLabelInnerTop, _Pagination.paginationTokens.inputBorderRadius, _Pagination.paginationTokens.inputWidth, _Pagination.paginationTokens.inputHeight, _Pagination.paginationTokens.inputPadding, _Pagination.paginationTokens.inputBorderWidth),
28
+ m: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-bold-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":3rem;", ":3rem;", ":2rem;", ":0.75rem;", ":1.05rem;", ":1.3rem;", ":5.875rem;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":5.875rem;", ":1.5rem;", ":0.75rem;", ":0.75rem;", ":0.75rem;", ":0.75rem;", ":1.75rem;", ":transparent;", ":0.875rem;", ":5.875rem;", ":0 3.25rem 0 1.25rem;", ":0 3.375rem 0 0.375rem;", ":0 3.375rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.75rem;", ":3.5rem;", ":3rem;", ":0 0.625rem;", ":0.0625rem;"], _Pagination.paginationTokens.paginationFontFamily, _Pagination.paginationTokens.paginationFontSize, _Pagination.paginationTokens.paginationFontStyle, _Pagination.paginationTokens.paginationFontWeight, _Pagination.paginationTokens.paginationLetterSpacing, _Pagination.paginationTokens.paginationLineHeight, _Pagination.paginationTokens.buttonHeight, _Pagination.paginationTokens.buttonWidth, _Pagination.paginationTokens.buttonWidthShorter, _Pagination.paginationTokens.buttonRadius, _Pagination.paginationTokens.paginationIconSize, _Pagination.paginationTokens.paginationIconDoubleSize, _Pagination.paginationTokens.selectWidth, _Pagination.paginationTokens.selectHeight, _Pagination.paginationTokens.selectPaddingTop, _Pagination.paginationTokens.selectPaddingRight, _Pagination.paginationTokens.selectPaddingBottom, _Pagination.paginationTokens.selectPaddingLeft, _Pagination.paginationTokens.selectItemWidth, _Pagination.paginationTokens.selectItemHeight, _Pagination.paginationTokens.selectItemPaddingTop, _Pagination.paginationTokens.selectItemPaddingRight, _Pagination.paginationTokens.selectItemPaddingBottom, _Pagination.paginationTokens.selectItemPaddingLeft, _Pagination.paginationTokens.selectItemContentLeftWidth, _Pagination.paginationTokens.selectItemBackground, _Pagination.paginationTokens.selectTargetArrowRight, _Pagination.paginationTokens.selectTargetWidth, _Pagination.paginationTokens.selectTargetPadding, _Pagination.paginationTokens.selectTargetPaddingHasChips, _Pagination.paginationTokens.selectTargetPaddingWithInput, _Pagination.paginationTokens.selectTargetInnerTop, _Pagination.paginationTokens.selectTargetLabelInnerTop, _Pagination.paginationTokens.inputBorderRadius, _Pagination.paginationTokens.inputWidth, _Pagination.paginationTokens.inputHeight, _Pagination.paginationTokens.inputPadding, _Pagination.paginationTokens.inputBorderWidth),
29
+ s: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-bold-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":2.5rem;", ":2.5rem;", ":1.75rem;", ":3rem;", ":0.625rem;", ":0.9rem;", ":1.15rem;", ":5.375rem;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":5.375rem;", ":1.5rem;", ":0.5rem;", ":0.75rem;", ":0.5rem;", ":0.75rem;", ":1.75rem;", ":transparent;", ":0.75rem;", ":5.375rem;", ":0 3rem 0 1rem;", ":0 3.125rem 0 0.375rem;", ":0 3.125rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.625rem;", ":3rem;", ":2.5rem;", ":0 0.625rem;", ":0.0625rem;"], _Pagination.paginationTokens.paginationFontFamily, _Pagination.paginationTokens.paginationFontSize, _Pagination.paginationTokens.paginationFontStyle, _Pagination.paginationTokens.paginationFontWeight, _Pagination.paginationTokens.paginationLetterSpacing, _Pagination.paginationTokens.paginationLineHeight, _Pagination.paginationTokens.buttonHeight, _Pagination.paginationTokens.buttonWidth, _Pagination.paginationTokens.buttonWidthShorter, _Pagination.paginationTokens.paginationInputWidth, _Pagination.paginationTokens.buttonRadius, _Pagination.paginationTokens.paginationIconSize, _Pagination.paginationTokens.paginationIconDoubleSize, _Pagination.paginationTokens.selectWidth, _Pagination.paginationTokens.selectHeight, _Pagination.paginationTokens.selectPaddingTop, _Pagination.paginationTokens.selectPaddingRight, _Pagination.paginationTokens.selectPaddingBottom, _Pagination.paginationTokens.selectPaddingLeft, _Pagination.paginationTokens.selectItemWidth, _Pagination.paginationTokens.selectItemHeight, _Pagination.paginationTokens.selectItemPaddingTop, _Pagination.paginationTokens.selectItemPaddingRight, _Pagination.paginationTokens.selectItemPaddingBottom, _Pagination.paginationTokens.selectItemPaddingLeft, _Pagination.paginationTokens.selectItemContentLeftWidth, _Pagination.paginationTokens.selectItemBackground, _Pagination.paginationTokens.selectTargetArrowRight, _Pagination.paginationTokens.selectTargetWidth, _Pagination.paginationTokens.selectTargetPadding, _Pagination.paginationTokens.selectTargetPaddingHasChips, _Pagination.paginationTokens.selectTargetPaddingWithInput, _Pagination.paginationTokens.selectTargetInnerTop, _Pagination.paginationTokens.selectTargetLabelInnerTop, _Pagination.paginationTokens.inputBorderRadius, _Pagination.paginationTokens.inputWidth, _Pagination.paginationTokens.inputHeight, _Pagination.paginationTokens.inputPadding, _Pagination.paginationTokens.inputBorderWidth),
30
+ xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":2rem;", ":2.5rem;", ":0.5rem;", ":2rem;", ":1.5rem;", ":0.75rem;", ":1rem;", ":4.625rem;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":4.625rem;", ":1rem;", ":0.5rem;", ":0.5rem;", ":0.5rem;", ":0.5rem;", ":1.25rem;", ":transparent;", ":0.5rem;", ":4.625rem;", ":0 2.5rem 0 0.75rem;", ":0 2.625rem 0 0.375rem;", ":0 2.625rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.5rem;", ":2.5rem;", ":2rem;", ":0 0.625rem;", ":0.0625rem;"], _Pagination.paginationTokens.paginationFontFamily, _Pagination.paginationTokens.paginationFontSize, _Pagination.paginationTokens.paginationFontStyle, _Pagination.paginationTokens.paginationFontWeight, _Pagination.paginationTokens.paginationLetterSpacing, _Pagination.paginationTokens.paginationLineHeight, _Pagination.paginationTokens.buttonHeight, _Pagination.paginationTokens.paginationInputWidth, _Pagination.paginationTokens.buttonRadius, _Pagination.paginationTokens.buttonWidth, _Pagination.paginationTokens.buttonWidthShorter, _Pagination.paginationTokens.paginationIconSize, _Pagination.paginationTokens.paginationIconDoubleSize, _Pagination.paginationTokens.selectWidth, _Pagination.paginationTokens.selectHeight, _Pagination.paginationTokens.selectPaddingTop, _Pagination.paginationTokens.selectPaddingRight, _Pagination.paginationTokens.selectPaddingBottom, _Pagination.paginationTokens.selectPaddingLeft, _Pagination.paginationTokens.selectItemWidth, _Pagination.paginationTokens.selectItemHeight, _Pagination.paginationTokens.selectItemPaddingTop, _Pagination.paginationTokens.selectItemPaddingRight, _Pagination.paginationTokens.selectItemPaddingBottom, _Pagination.paginationTokens.selectItemPaddingLeft, _Pagination.paginationTokens.selectItemContentLeftWidth, _Pagination.paginationTokens.selectItemBackground, _Pagination.paginationTokens.selectTargetArrowRight, _Pagination.paginationTokens.selectTargetWidth, _Pagination.paginationTokens.selectTargetPadding, _Pagination.paginationTokens.selectTargetPaddingHasChips, _Pagination.paginationTokens.selectTargetPaddingWithInput, _Pagination.paginationTokens.selectTargetInnerTop, _Pagination.paginationTokens.selectTargetLabelInnerTop, _Pagination.paginationTokens.inputBorderRadius, _Pagination.paginationTokens.inputWidth, _Pagination.paginationTokens.inputHeight, _Pagination.paginationTokens.inputPadding, _Pagination.paginationTokens.inputBorderWidth)
31
31
  },
32
32
  type: {
33
33
  compact: /*#__PURE__*/(0, _styledComponents.css)([""]),
@@ -53,7 +53,7 @@ type Story = StoryObj<typeof Pagination>;
53
53
 
54
54
  export const Default: Story = {
55
55
  args: {
56
- count: 20,
56
+ count: 2000,
57
57
  value: 1,
58
58
  slots: 9,
59
59
  type: 'default',
@@ -72,12 +72,18 @@ const PaginationContent = (agrs) => {
72
72
  const [pageValue, setPageValue] = useState(agrs.value);
73
73
  const [perPageValue, setPerPageValue] = useState(agrs.perPage);
74
74
 
75
- const handleChange = useCallback(
76
- (page: number, perPage: number) => {
77
- setPerPageValue(perPage);
75
+ const handleChangePage = useCallback(
76
+ (page: number) => {
78
77
  setPageValue(page);
79
78
  },
80
- [pageValue, perPageValue, setPageValue, setPerPageValue],
79
+ [pageValue, setPageValue],
80
+ );
81
+
82
+ const handleChangePerpage = useCallback(
83
+ (perPage: number) => {
84
+ setPerPageValue(perPage);
85
+ },
86
+ [perPageValue, setPerPageValue],
81
87
  );
82
88
 
83
89
  return (
@@ -104,7 +110,8 @@ const PaginationContent = (agrs) => {
104
110
  Next
105
111
  </Button>
106
112
  }
107
- onChangeValue={handleChange}
113
+ onChangePageValue={handleChangePage}
114
+ onChangePerPageValue={handleChangePerpage}
108
115
  />
109
116
  </>
110
117
  );
@@ -112,7 +119,7 @@ const PaginationContent = (agrs) => {
112
119
 
113
120
  export const Content: Story = {
114
121
  args: {
115
- count: 20,
122
+ count: 2000,
116
123
  value: 1,
117
124
  slots: 9,
118
125
  type: 'default',
@@ -36,6 +36,17 @@ Object.keys(_hooks).forEach(function (key) {
36
36
  }
37
37
  });
38
38
  });
39
+ var _utils = /*#__PURE__*/require("./utils");
40
+ Object.keys(_utils).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _utils[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function get() {
46
+ return _utils[key];
47
+ }
48
+ });
49
+ });
39
50
  var _Button = /*#__PURE__*/require("./components/Button");
40
51
  Object.keys(_Button).forEach(function (key) {
41
52
  if (key === "default" || key === "__esModule") return;
@@ -69,6 +80,17 @@ Object.keys(_Chip).forEach(function (key) {
69
80
  }
70
81
  });
71
82
  });
83
+ var _Cell = /*#__PURE__*/require("./components/Cell");
84
+ Object.keys(_Cell).forEach(function (key) {
85
+ if (key === "default" || key === "__esModule") return;
86
+ if (key in exports && exports[key] === _Cell[key]) return;
87
+ Object.defineProperty(exports, key, {
88
+ enumerable: true,
89
+ get: function get() {
90
+ return _Cell[key];
91
+ }
92
+ });
93
+ });
72
94
  var _Link = /*#__PURE__*/require("./components/Link");
73
95
  Object.keys(_Link).forEach(function (key) {
74
96
  if (key === "default" || key === "__esModule") return;
@@ -443,6 +465,17 @@ Object.keys(_Progress).forEach(function (key) {
443
465
  }
444
466
  });
445
467
  });
468
+ var _Select = /*#__PURE__*/require("./components/Select");
469
+ Object.keys(_Select).forEach(function (key) {
470
+ if (key === "default" || key === "__esModule") return;
471
+ if (key in exports && exports[key] === _Select[key]) return;
472
+ Object.defineProperty(exports, key, {
473
+ enumerable: true,
474
+ get: function get() {
475
+ return _Select[key];
476
+ }
477
+ });
478
+ });
446
479
  var _Divider = /*#__PURE__*/require("./components/Divider");
447
480
  Object.keys(_Divider).forEach(function (key) {
448
481
  if (key === "default" || key === "__esModule") return;
@@ -0,0 +1,62 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { cx } from '../../utils';
3
+ import { base, CellLeft, CellRight, CellContentWrapper, CellContent } from './Cell.styles';
4
+ import { classes } from './Cell.tokens';
5
+ import { base as viewCSS } from './variations/_view/base';
6
+ import { base as sizeCSS } from './variations/_size/base';
7
+ import { CellTextbox } from './ui/CellTextbox/CellTextbox';
8
+ export var cellRoot = function cellRoot(Root) {
9
+ return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
10
+ var size = _ref.size,
11
+ view = _ref.view,
12
+ contentLeft = _ref.contentLeft,
13
+ contentRight = _ref.contentRight,
14
+ _ref$alignContentLeft = _ref.alignContentLeft,
15
+ alignContentLeft = _ref$alignContentLeft === void 0 ? 'center' : _ref$alignContentLeft,
16
+ _ref$alignContentRigh = _ref.alignContentRight,
17
+ alignContentRight = _ref$alignContentRigh === void 0 ? 'center' : _ref$alignContentRigh,
18
+ children = _ref.children,
19
+ title = _ref.title,
20
+ subtitle = _ref.subtitle,
21
+ label = _ref.label,
22
+ description = _ref.description,
23
+ content = _ref.content,
24
+ _ref$stretching = _ref.stretching,
25
+ stretching = _ref$stretching === void 0 ? 'filled' : _ref$stretching;
26
+ var stretchingClass = classes["".concat(stretching, "Stretching")];
27
+ var titleText = title || description;
28
+ var contentLeftDeprecated = contentLeft || content;
29
+ return /*#__PURE__*/React.createElement(Root, {
30
+ ref: outerRootRef,
31
+ size: size,
32
+ view: view,
33
+ className: cx(stretchingClass, classes.cellRoot)
34
+ }, contentLeftDeprecated && /*#__PURE__*/React.createElement(CellLeft, {
35
+ align: alignContentLeft
36
+ }, contentLeftDeprecated), /*#__PURE__*/React.createElement(CellContentWrapper, null, /*#__PURE__*/React.createElement(CellContent, null, titleText || subtitle || label ? /*#__PURE__*/React.createElement(CellTextbox, {
37
+ label: label,
38
+ title: titleText,
39
+ subtitle: subtitle
40
+ }) : children), contentRight && /*#__PURE__*/React.createElement(CellRight, {
41
+ align: alignContentRight
42
+ }, contentRight)));
43
+ });
44
+ };
45
+ export var cellConfig = {
46
+ name: 'Cell',
47
+ tag: 'div',
48
+ layout: cellRoot,
49
+ base: base,
50
+ variations: {
51
+ view: {
52
+ css: viewCSS
53
+ },
54
+ size: {
55
+ css: sizeCSS
56
+ }
57
+ },
58
+ defaults: {
59
+ view: 'default',
60
+ size: 'm'
61
+ }
62
+ };
@@ -0,0 +1,27 @@
1
+ import styled from 'styled-components';
2
+ import { css } from 'styled-components';
3
+ import { tokens, classes } from './Cell.tokens';
4
+ var alignToFlex = {
5
+ center: 'center',
6
+ top: 'flex-start',
7
+ bottom: 'flex-end'
8
+ };
9
+ export var base = /*#__PURE__*/css(["&&.", "{width:var(", ");}&&.", "{width:100%;}&&.", "{width:auto;}"], classes.fixedStretching, tokens.cellWidth, classes.filledStretching, classes.autoStretching);
10
+ export var CellContentWrapper = /*#__PURE__*/styled.div.withConfig({
11
+ componentId: "plasma-new-hope__sc-16emz3n-0"
12
+ })(["display:flex;flex:auto;align-items:stretch;justify-content:space-between;gap:var(", ");height:auto;"], tokens.cellGap);
13
+ export var CellContent = /*#__PURE__*/styled.div.withConfig({
14
+ componentId: "plasma-new-hope__sc-16emz3n-1"
15
+ })(["display:flex;align-items:center;height:auto;"]);
16
+ export var CellLeft = /*#__PURE__*/styled.div.withConfig({
17
+ componentId: "plasma-new-hope__sc-16emz3n-2"
18
+ })(["display:flex;align-items:", ";"], function (_ref) {
19
+ var align = _ref.align;
20
+ return alignToFlex[align];
21
+ });
22
+ export var CellRight = /*#__PURE__*/styled.div.withConfig({
23
+ componentId: "plasma-new-hope__sc-16emz3n-3"
24
+ })(["display:flex;align-items:", ";text-align:right;"], function (_ref2) {
25
+ var align = _ref2.align;
26
+ return alignToFlex[align];
27
+ });
@@ -0,0 +1,42 @@
1
+ export var tokens = {
2
+ cellColor: '--plasma-cell-color',
3
+ cellBackgroundColor: '--plasma-cell-background-color',
4
+ cellPadding: '--plasma-cell-padding',
5
+ cellPaddingLeftContent: '--plasma-cell-padding-left-content',
6
+ cellPaddingContent: '--plasma-cell-padding-content',
7
+ cellPaddingRightContent: '--plasma-cell-padding-right-content',
8
+ cellTextboxGap: '--plasma-cell-textbox-gap',
9
+ cellGap: '--plasma-cell-gap',
10
+ cellWidth: '--plasma-cell-width',
11
+ cellLabelColor: '--plasma-cell-label-color',
12
+ cellLabelFontFamily: '--plasma-cell-label-font-family',
13
+ cellLabelFontSize: '--plasma-cell-label-font-size',
14
+ cellLabelFontStyle: '--plasma-cell-label-font-style',
15
+ cellLabelFontWeight: '--plasma-cell-label-font-weight',
16
+ cellLabelLetterSpacing: '--plasma-cell-label-letter-spacing',
17
+ cellLabelLineHeight: '--plasma-cell-label-line-height',
18
+ cellTitleColor: '--plasma-cell-title-color',
19
+ cellTitleFontFamily: '--plasma-cell-title-font-family',
20
+ cellTitleFontSize: '--plasma-cell-title-font-size',
21
+ cellTitleFontStyle: '--plasma-cell-title-font-style',
22
+ cellTitleFontWeight: '--plasma-cell-title-font-weight',
23
+ cellTitleLetterSpacing: '--plasma-cell-title-letter-spacing',
24
+ cellTitleLineHeight: '--plasma-cell-title-line-height',
25
+ cellSubtitleColor: '--plasma-cell-subtitle-color',
26
+ cellSubtitleFontFamily: '--plasma-cell-subtitle-font-family',
27
+ cellSubtitleFontSize: '--plasma-cell-subtitle-font-size',
28
+ cellSubtitleFontStyle: '--plasma-cell-subtitle-font-style',
29
+ cellSubtitleFontWeight: '--plasma-cell-subtitle-font-weight',
30
+ cellSubtitleLetterSpacing: '--plasma-cell-subtitle-letter-spacing',
31
+ cellSubtitleLineHeight: '--plasma-cell-subtitle-line-height'
32
+ };
33
+ export var classes = {
34
+ autoStretching: 'cell-stretching-auto',
35
+ filledStretching: 'cell-stretching-filled',
36
+ fixedStretching: 'cell-stretching-fixed',
37
+ cellWrapper: 'cell-wrapper',
38
+ cellRoot: 'cell-root',
39
+ cellContent: 'cell-content',
40
+ cellLeftContent: 'cell-left-content',
41
+ cellRightContent: 'cell-right-content'
42
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export { CellTextboxLabel } from './ui/CellTextboxLabel/CellTextboxLabel';
2
+ export { CellTextboxTitle } from './ui/CellTextboxTitle/CellTextboxTitle';
3
+ export { CellTextboxSubtitle } from './ui/CellTextboxSubtitle/CellTextboxSubtitle';
4
+ export { cellRoot, cellConfig } from './Cell';
5
+ export { tokens as cellTokens, classes as cellClasses } from './Cell.tokens';
6
+ export { CellTextbox } from './ui/CellTextbox/CellTextbox';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { CellTextboxLabel } from '../CellTextboxLabel/CellTextboxLabel';
3
+ import { CellTextboxTitle } from '../CellTextboxTitle/CellTextboxTitle';
4
+ import { CellTextboxSubtitle } from '../CellTextboxSubtitle/CellTextboxSubtitle';
5
+ import { CellTextboxStyled } from './CellTextbox.styles';
6
+ export var CellTextbox = function CellTextbox(_ref) {
7
+ var label = _ref.label,
8
+ title = _ref.title,
9
+ subtitle = _ref.subtitle,
10
+ children = _ref.children;
11
+ return /*#__PURE__*/React.createElement(CellTextboxStyled, null, label || title || subtitle ? /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(CellTextboxLabel, null, label), title && /*#__PURE__*/React.createElement(CellTextboxTitle, null, title), subtitle && /*#__PURE__*/React.createElement(CellTextboxSubtitle, null, subtitle)) : children);
12
+ };
@@ -0,0 +1,5 @@
1
+ import styled from 'styled-components';
2
+ import { tokens } from '../../Cell.tokens';
3
+ export var CellTextboxStyled = /*#__PURE__*/styled.div.withConfig({
4
+ componentId: "plasma-new-hope__sc-w4g41u-0"
5
+ })(["display:flex;flex-direction:column;gap:var(", ");"], tokens.cellTextboxGap);
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { StyledTextboxLabel } from './CellTextboxLabel.styles';
3
+ export var CellTextboxLabel = function CellTextboxLabel(props) {
4
+ return /*#__PURE__*/React.createElement(StyledTextboxLabel, null, props.children);
5
+ };