@salutejs/plasma-new-hope 0.317.0-canary.1888.14214679698.0 → 0.317.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/cjs/components/Table/Table.css +22 -24
  2. package/cjs/components/Table/Table.js +16 -11
  3. package/cjs/components/Table/Table.js.map +1 -1
  4. package/cjs/components/Table/Table.styles.js +11 -17
  5. package/cjs/components/Table/Table.styles.js.map +1 -1
  6. package/cjs/components/Table/Table.styles_1eg2zsx.css +11 -0
  7. package/cjs/components/Table/Table.tokens.js +0 -9
  8. package/cjs/components/Table/Table.tokens.js.map +1 -1
  9. package/cjs/components/Table/ui/Cell/Cell.css +22 -24
  10. package/cjs/components/Table/ui/Cell/Cell.js.map +1 -1
  11. package/cjs/components/Table/ui/Cell/Cell.styles.js +1 -1
  12. package/cjs/components/Table/ui/Cell/Cell.styles.js.map +1 -1
  13. package/cjs/components/Table/ui/Cell/Cell.styles_1ikyrwt.css +1 -0
  14. package/cjs/components/Table/ui/EditableCell/EditableCell.css +23 -25
  15. package/cjs/components/Table/ui/EditableCell/EditableCell.js +9 -15
  16. package/cjs/components/Table/ui/EditableCell/EditableCell.js.map +1 -1
  17. package/cjs/components/Table/ui/EditableCell/EditableCell.styles.js +5 -5
  18. package/cjs/components/Table/ui/EditableCell/EditableCell.styles.js.map +1 -1
  19. package/cjs/components/Table/ui/EditableCell/{EditableCell.styles_d8duzc.css → EditableCell.styles_277bjm.css} +2 -2
  20. package/cjs/components/Table/ui/HeadCell/HeadCell.css +22 -24
  21. package/cjs/components/Table/ui/HeadCell/HeadCell.js +9 -9
  22. package/cjs/components/Table/ui/HeadCell/HeadCell.js.map +1 -1
  23. package/cjs/components/Table/ui/HeadCell/HeadCell.styles.js +1 -7
  24. package/cjs/components/Table/ui/HeadCell/HeadCell.styles.js.map +1 -1
  25. package/{es/components/Table/ui/HeadCell/HeadCell.styles_155gsrn.css → cjs/components/Table/ui/HeadCell/HeadCell.styles_1lo3lcf.css} +0 -1
  26. package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.css +22 -24
  27. package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.js +1 -3
  28. package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.js.map +1 -1
  29. package/cjs/engines/linaria.js +4 -2
  30. package/cjs/engines/linaria.js.map +1 -1
  31. package/cjs/index.css +24 -26
  32. package/emotion/cjs/components/Table/Table.js +16 -14
  33. package/emotion/cjs/components/Table/Table.styles.js +16 -20
  34. package/emotion/cjs/components/Table/Table.tokens.js +1 -9
  35. package/emotion/cjs/components/Table/ui/Cell/Cell.styles.js +2 -2
  36. package/emotion/cjs/components/Table/ui/EditableCell/EditableCell.js +9 -15
  37. package/emotion/cjs/components/Table/ui/EditableCell/EditableCell.styles.js +9 -9
  38. package/emotion/cjs/components/Table/ui/HeadCell/HeadCell.js +9 -9
  39. package/emotion/cjs/components/Table/ui/HeadCell/HeadCell.styles.js +5 -17
  40. package/emotion/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.js +1 -3
  41. package/emotion/cjs/components/Typography/Typography.template-doc.mdx +16 -0
  42. package/emotion/cjs/examples/plasma_b2c/components/Table/Table.stories.tsx +6 -7
  43. package/emotion/cjs/examples/plasma_web/components/Table/Table.stories.tsx +6 -7
  44. package/emotion/cjs/examples/typography/components/Body/Body.stories.tsx +4 -1
  45. package/emotion/cjs/examples/typography/components/Dspl/Dspl.stories.tsx +4 -1
  46. package/emotion/cjs/examples/typography/components/Heading/Heading.stories.tsx +4 -1
  47. package/emotion/cjs/examples/typography/components/Text/Text.stories.tsx +4 -1
  48. package/emotion/es/components/Table/Table.js +17 -15
  49. package/emotion/es/components/Table/Table.styles.js +15 -19
  50. package/emotion/es/components/Table/Table.tokens.js +0 -8
  51. package/emotion/es/components/Table/ui/Cell/Cell.styles.js +2 -2
  52. package/emotion/es/components/Table/ui/EditableCell/EditableCell.js +9 -15
  53. package/emotion/es/components/Table/ui/EditableCell/EditableCell.styles.js +10 -10
  54. package/emotion/es/components/Table/ui/HeadCell/HeadCell.js +10 -10
  55. package/emotion/es/components/Table/ui/HeadCell/HeadCell.styles.js +4 -16
  56. package/emotion/es/components/Table/ui/HeadCell/ui/Filter/Filter.js +1 -3
  57. package/emotion/es/components/Typography/Typography.template-doc.mdx +16 -0
  58. package/emotion/es/examples/plasma_b2c/components/Table/Table.stories.tsx +6 -7
  59. package/emotion/es/examples/plasma_web/components/Table/Table.stories.tsx +6 -7
  60. package/emotion/es/examples/typography/components/Body/Body.stories.tsx +4 -1
  61. package/emotion/es/examples/typography/components/Dspl/Dspl.stories.tsx +4 -1
  62. package/emotion/es/examples/typography/components/Heading/Heading.stories.tsx +4 -1
  63. package/emotion/es/examples/typography/components/Text/Text.stories.tsx +4 -1
  64. package/es/components/Table/Table.css +22 -24
  65. package/es/components/Table/Table.js +18 -13
  66. package/es/components/Table/Table.js.map +1 -1
  67. package/es/components/Table/Table.styles.js +12 -17
  68. package/es/components/Table/Table.styles.js.map +1 -1
  69. package/es/components/Table/Table.styles_1eg2zsx.css +11 -0
  70. package/es/components/Table/Table.tokens.js +1 -9
  71. package/es/components/Table/Table.tokens.js.map +1 -1
  72. package/es/components/Table/ui/Cell/Cell.css +22 -24
  73. package/es/components/Table/ui/Cell/Cell.js.map +1 -1
  74. package/es/components/Table/ui/Cell/Cell.styles.js +1 -1
  75. package/es/components/Table/ui/Cell/Cell.styles.js.map +1 -1
  76. package/es/components/Table/ui/Cell/Cell.styles_1ikyrwt.css +1 -0
  77. package/es/components/Table/ui/EditableCell/EditableCell.css +23 -25
  78. package/es/components/Table/ui/EditableCell/EditableCell.js +9 -15
  79. package/es/components/Table/ui/EditableCell/EditableCell.js.map +1 -1
  80. package/es/components/Table/ui/EditableCell/EditableCell.styles.js +5 -5
  81. package/es/components/Table/ui/EditableCell/EditableCell.styles.js.map +1 -1
  82. package/es/components/Table/ui/EditableCell/{EditableCell.styles_d8duzc.css → EditableCell.styles_277bjm.css} +2 -2
  83. package/es/components/Table/ui/HeadCell/HeadCell.css +22 -24
  84. package/es/components/Table/ui/HeadCell/HeadCell.js +10 -10
  85. package/es/components/Table/ui/HeadCell/HeadCell.js.map +1 -1
  86. package/es/components/Table/ui/HeadCell/HeadCell.styles.js +2 -7
  87. package/es/components/Table/ui/HeadCell/HeadCell.styles.js.map +1 -1
  88. package/{cjs/components/Table/ui/HeadCell/HeadCell.styles_155gsrn.css → es/components/Table/ui/HeadCell/HeadCell.styles_1lo3lcf.css} +0 -1
  89. package/es/components/Table/ui/HeadCell/ui/Filter/Filter.css +22 -24
  90. package/es/components/Table/ui/HeadCell/ui/Filter/Filter.js +1 -3
  91. package/es/components/Table/ui/HeadCell/ui/Filter/Filter.js.map +1 -1
  92. package/es/engines/linaria.js +4 -2
  93. package/es/engines/linaria.js.map +1 -1
  94. package/es/index.css +24 -26
  95. package/package.json +2 -2
  96. package/styled-components/cjs/components/Table/Table.js +16 -14
  97. package/styled-components/cjs/components/Table/Table.styles.js +10 -13
  98. package/styled-components/cjs/components/Table/Table.tokens.js +1 -9
  99. package/styled-components/cjs/components/Table/ui/Cell/Cell.styles.js +1 -1
  100. package/styled-components/cjs/components/Table/ui/EditableCell/EditableCell.js +9 -15
  101. package/styled-components/cjs/components/Table/ui/EditableCell/EditableCell.styles.js +3 -3
  102. package/styled-components/cjs/components/Table/ui/HeadCell/HeadCell.js +9 -9
  103. package/styled-components/cjs/components/Table/ui/HeadCell/HeadCell.styles.js +2 -5
  104. package/styled-components/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.js +1 -3
  105. package/styled-components/cjs/components/Typography/Typography.template-doc.mdx +16 -0
  106. package/styled-components/cjs/examples/plasma_b2c/components/Table/Table.stories.tsx +6 -7
  107. package/styled-components/cjs/examples/plasma_web/components/Table/Table.stories.tsx +6 -7
  108. package/styled-components/cjs/examples/typography/components/Body/Body.stories.tsx +4 -1
  109. package/styled-components/cjs/examples/typography/components/Dspl/Dspl.stories.tsx +4 -1
  110. package/styled-components/cjs/examples/typography/components/Heading/Heading.stories.tsx +4 -1
  111. package/styled-components/cjs/examples/typography/components/Text/Text.stories.tsx +4 -1
  112. package/styled-components/es/components/Table/Table.js +17 -15
  113. package/styled-components/es/components/Table/Table.styles.js +9 -12
  114. package/styled-components/es/components/Table/Table.tokens.js +0 -8
  115. package/styled-components/es/components/Table/ui/Cell/Cell.styles.js +1 -1
  116. package/styled-components/es/components/Table/ui/EditableCell/EditableCell.js +9 -15
  117. package/styled-components/es/components/Table/ui/EditableCell/EditableCell.styles.js +4 -4
  118. package/styled-components/es/components/Table/ui/HeadCell/HeadCell.js +10 -10
  119. package/styled-components/es/components/Table/ui/HeadCell/HeadCell.styles.js +1 -4
  120. package/styled-components/es/components/Table/ui/HeadCell/ui/Filter/Filter.js +1 -3
  121. package/styled-components/es/components/Typography/Typography.template-doc.mdx +16 -0
  122. package/styled-components/es/examples/plasma_b2c/components/Table/Table.stories.tsx +6 -7
  123. package/styled-components/es/examples/plasma_web/components/Table/Table.stories.tsx +6 -7
  124. package/styled-components/es/examples/typography/components/Body/Body.stories.tsx +4 -1
  125. package/styled-components/es/examples/typography/components/Dspl/Dspl.stories.tsx +4 -1
  126. package/styled-components/es/examples/typography/components/Heading/Heading.stories.tsx +4 -1
  127. package/styled-components/es/examples/typography/components/Text/Text.stories.tsx +4 -1
  128. package/types/components/Table/Table.d.ts +15 -2
  129. package/types/components/Table/Table.d.ts.map +1 -1
  130. package/types/components/Table/Table.styles.d.ts +0 -1
  131. package/types/components/Table/Table.styles.d.ts.map +1 -1
  132. package/types/components/Table/Table.tokens.d.ts +0 -8
  133. package/types/components/Table/Table.tokens.d.ts.map +1 -1
  134. package/types/components/Table/Table.types.d.ts +1 -11
  135. package/types/components/Table/Table.types.d.ts.map +1 -1
  136. package/types/components/Table/ui/Cell/Cell.d.ts +2 -3
  137. package/types/components/Table/ui/Cell/Cell.d.ts.map +1 -1
  138. package/types/components/Table/ui/EditableCell/EditableCell.d.ts +1 -12
  139. package/types/components/Table/ui/EditableCell/EditableCell.d.ts.map +1 -1
  140. package/types/components/Table/ui/HeadCell/HeadCell.d.ts +1 -11
  141. package/types/components/Table/ui/HeadCell/HeadCell.d.ts.map +1 -1
  142. package/types/components/Table/ui/HeadCell/HeadCell.styles.d.ts +0 -1
  143. package/types/components/Table/ui/HeadCell/HeadCell.styles.d.ts.map +1 -1
  144. package/types/components/Table/ui/HeadCell/ui/Filter/Filter.d.ts +1 -10
  145. package/types/components/Table/ui/HeadCell/ui/Filter/Filter.d.ts.map +1 -1
  146. package/types/components/Typography/Body/Body.d.ts +2 -2
  147. package/types/components/Typography/Body/Body.d.ts.map +1 -1
  148. package/types/components/Typography/Dspl/Dspl.d.ts +2 -2
  149. package/types/components/Typography/Dspl/Dspl.d.ts.map +1 -1
  150. package/types/components/Typography/Heading/Heading.d.ts +2 -2
  151. package/types/components/Typography/Heading/Heading.d.ts.map +1 -1
  152. package/types/components/Typography/Text/Text.d.ts +2 -2
  153. package/types/components/Typography/Text/Text.d.ts.map +1 -1
  154. package/types/components/Typography/Typography.d.ts +1 -1
  155. package/types/components/Typography/Typography.d.ts.map +1 -1
  156. package/types/components/Typography/Typography.types.d.ts +2 -1
  157. package/types/components/Typography/Typography.types.d.ts.map +1 -1
  158. package/cjs/components/Table/Table.styles_xngwgy.css +0 -12
  159. package/cjs/components/Table/ui/Cell/Cell.styles_1q2mjxm.css +0 -1
  160. package/emotion/cjs/examples/typography/components/Old/Body/Body.config.js +0 -20
  161. package/emotion/cjs/examples/typography/components/Old/Body/Body.js +0 -11
  162. package/emotion/cjs/examples/typography/components/Old/Body/Body.stories.tsx +0 -40
  163. package/emotion/cjs/examples/typography/components/Old/Button/Button.config.js +0 -19
  164. package/emotion/cjs/examples/typography/components/Old/Button/Button.js +0 -11
  165. package/emotion/cjs/examples/typography/components/Old/Button/Button.stories.tsx +0 -40
  166. package/emotion/cjs/examples/typography/components/Old/Caption/Caption.config.js +0 -18
  167. package/emotion/cjs/examples/typography/components/Old/Caption/Caption.js +0 -11
  168. package/emotion/cjs/examples/typography/components/Old/Caption/Caption.stories.tsx +0 -40
  169. package/emotion/cjs/examples/typography/components/Old/Display/Display.config.js +0 -20
  170. package/emotion/cjs/examples/typography/components/Old/Display/Display.js +0 -11
  171. package/emotion/cjs/examples/typography/components/Old/Display/Display.stories.tsx +0 -40
  172. package/emotion/cjs/examples/typography/components/Old/Footnote/Footnote.config.js +0 -19
  173. package/emotion/cjs/examples/typography/components/Old/Footnote/Footnote.js +0 -11
  174. package/emotion/cjs/examples/typography/components/Old/Footnote/Footnote.stories.tsx +0 -40
  175. package/emotion/cjs/examples/typography/components/Old/Headline/Headline.config.js +0 -21
  176. package/emotion/cjs/examples/typography/components/Old/Headline/Headline.js +0 -11
  177. package/emotion/cjs/examples/typography/components/Old/Headline/Headline.stories.tsx +0 -40
  178. package/emotion/cjs/examples/typography/components/Old/Paragraph/Paragraph.config.js +0 -19
  179. package/emotion/cjs/examples/typography/components/Old/Paragraph/Paragraph.js +0 -11
  180. package/emotion/cjs/examples/typography/components/Old/Paragraph/Paragraph.stories.tsx +0 -42
  181. package/emotion/cjs/examples/typography/components/Old/Subtitle/Subtitle.config.js +0 -18
  182. package/emotion/cjs/examples/typography/components/Old/Subtitle/Subtitle.js +0 -11
  183. package/emotion/cjs/examples/typography/components/Old/Subtitle/Subtitle.stories.tsx +0 -39
  184. package/emotion/cjs/examples/typography/components/Old/Underline/Underline.config.js +0 -18
  185. package/emotion/cjs/examples/typography/components/Old/Underline/Underline.js +0 -11
  186. package/emotion/cjs/examples/typography/components/Old/Underline/Underline.stories.tsx +0 -40
  187. package/emotion/es/examples/typography/components/Old/Body/Body.config.js +0 -14
  188. package/emotion/es/examples/typography/components/Old/Body/Body.js +0 -5
  189. package/emotion/es/examples/typography/components/Old/Body/Body.stories.tsx +0 -40
  190. package/emotion/es/examples/typography/components/Old/Button/Button.config.js +0 -13
  191. package/emotion/es/examples/typography/components/Old/Button/Button.js +0 -5
  192. package/emotion/es/examples/typography/components/Old/Button/Button.stories.tsx +0 -40
  193. package/emotion/es/examples/typography/components/Old/Caption/Caption.config.js +0 -12
  194. package/emotion/es/examples/typography/components/Old/Caption/Caption.js +0 -5
  195. package/emotion/es/examples/typography/components/Old/Caption/Caption.stories.tsx +0 -40
  196. package/emotion/es/examples/typography/components/Old/Display/Display.config.js +0 -14
  197. package/emotion/es/examples/typography/components/Old/Display/Display.js +0 -5
  198. package/emotion/es/examples/typography/components/Old/Display/Display.stories.tsx +0 -40
  199. package/emotion/es/examples/typography/components/Old/Footnote/Footnote.config.js +0 -13
  200. package/emotion/es/examples/typography/components/Old/Footnote/Footnote.js +0 -5
  201. package/emotion/es/examples/typography/components/Old/Footnote/Footnote.stories.tsx +0 -40
  202. package/emotion/es/examples/typography/components/Old/Headline/Headline.config.js +0 -15
  203. package/emotion/es/examples/typography/components/Old/Headline/Headline.js +0 -5
  204. package/emotion/es/examples/typography/components/Old/Headline/Headline.stories.tsx +0 -40
  205. package/emotion/es/examples/typography/components/Old/Paragraph/Paragraph.config.js +0 -13
  206. package/emotion/es/examples/typography/components/Old/Paragraph/Paragraph.js +0 -5
  207. package/emotion/es/examples/typography/components/Old/Paragraph/Paragraph.stories.tsx +0 -42
  208. package/emotion/es/examples/typography/components/Old/Subtitle/Subtitle.config.js +0 -12
  209. package/emotion/es/examples/typography/components/Old/Subtitle/Subtitle.js +0 -5
  210. package/emotion/es/examples/typography/components/Old/Subtitle/Subtitle.stories.tsx +0 -39
  211. package/emotion/es/examples/typography/components/Old/Underline/Underline.config.js +0 -12
  212. package/emotion/es/examples/typography/components/Old/Underline/Underline.js +0 -5
  213. package/emotion/es/examples/typography/components/Old/Underline/Underline.stories.tsx +0 -40
  214. package/es/components/Table/Table.styles_xngwgy.css +0 -12
  215. package/es/components/Table/ui/Cell/Cell.styles_1q2mjxm.css +0 -1
  216. package/styled-components/cjs/examples/typography/components/Old/Body/Body.config.js +0 -20
  217. package/styled-components/cjs/examples/typography/components/Old/Body/Body.js +0 -11
  218. package/styled-components/cjs/examples/typography/components/Old/Body/Body.stories.tsx +0 -40
  219. package/styled-components/cjs/examples/typography/components/Old/Button/Button.config.js +0 -19
  220. package/styled-components/cjs/examples/typography/components/Old/Button/Button.js +0 -11
  221. package/styled-components/cjs/examples/typography/components/Old/Button/Button.stories.tsx +0 -40
  222. package/styled-components/cjs/examples/typography/components/Old/Caption/Caption.config.js +0 -18
  223. package/styled-components/cjs/examples/typography/components/Old/Caption/Caption.js +0 -11
  224. package/styled-components/cjs/examples/typography/components/Old/Caption/Caption.stories.tsx +0 -40
  225. package/styled-components/cjs/examples/typography/components/Old/Display/Display.config.js +0 -20
  226. package/styled-components/cjs/examples/typography/components/Old/Display/Display.js +0 -11
  227. package/styled-components/cjs/examples/typography/components/Old/Display/Display.stories.tsx +0 -40
  228. package/styled-components/cjs/examples/typography/components/Old/Footnote/Footnote.config.js +0 -19
  229. package/styled-components/cjs/examples/typography/components/Old/Footnote/Footnote.js +0 -11
  230. package/styled-components/cjs/examples/typography/components/Old/Footnote/Footnote.stories.tsx +0 -40
  231. package/styled-components/cjs/examples/typography/components/Old/Headline/Headline.config.js +0 -21
  232. package/styled-components/cjs/examples/typography/components/Old/Headline/Headline.js +0 -11
  233. package/styled-components/cjs/examples/typography/components/Old/Headline/Headline.stories.tsx +0 -40
  234. package/styled-components/cjs/examples/typography/components/Old/Paragraph/Paragraph.config.js +0 -19
  235. package/styled-components/cjs/examples/typography/components/Old/Paragraph/Paragraph.js +0 -11
  236. package/styled-components/cjs/examples/typography/components/Old/Paragraph/Paragraph.stories.tsx +0 -42
  237. package/styled-components/cjs/examples/typography/components/Old/Subtitle/Subtitle.config.js +0 -18
  238. package/styled-components/cjs/examples/typography/components/Old/Subtitle/Subtitle.js +0 -11
  239. package/styled-components/cjs/examples/typography/components/Old/Subtitle/Subtitle.stories.tsx +0 -39
  240. package/styled-components/cjs/examples/typography/components/Old/Underline/Underline.config.js +0 -18
  241. package/styled-components/cjs/examples/typography/components/Old/Underline/Underline.js +0 -11
  242. package/styled-components/cjs/examples/typography/components/Old/Underline/Underline.stories.tsx +0 -40
  243. package/styled-components/es/examples/typography/components/Old/Body/Body.config.js +0 -14
  244. package/styled-components/es/examples/typography/components/Old/Body/Body.js +0 -5
  245. package/styled-components/es/examples/typography/components/Old/Body/Body.stories.tsx +0 -40
  246. package/styled-components/es/examples/typography/components/Old/Button/Button.config.js +0 -13
  247. package/styled-components/es/examples/typography/components/Old/Button/Button.js +0 -5
  248. package/styled-components/es/examples/typography/components/Old/Button/Button.stories.tsx +0 -40
  249. package/styled-components/es/examples/typography/components/Old/Caption/Caption.config.js +0 -12
  250. package/styled-components/es/examples/typography/components/Old/Caption/Caption.js +0 -5
  251. package/styled-components/es/examples/typography/components/Old/Caption/Caption.stories.tsx +0 -40
  252. package/styled-components/es/examples/typography/components/Old/Display/Display.config.js +0 -14
  253. package/styled-components/es/examples/typography/components/Old/Display/Display.js +0 -5
  254. package/styled-components/es/examples/typography/components/Old/Display/Display.stories.tsx +0 -40
  255. package/styled-components/es/examples/typography/components/Old/Footnote/Footnote.config.js +0 -13
  256. package/styled-components/es/examples/typography/components/Old/Footnote/Footnote.js +0 -5
  257. package/styled-components/es/examples/typography/components/Old/Footnote/Footnote.stories.tsx +0 -40
  258. package/styled-components/es/examples/typography/components/Old/Headline/Headline.config.js +0 -15
  259. package/styled-components/es/examples/typography/components/Old/Headline/Headline.js +0 -5
  260. package/styled-components/es/examples/typography/components/Old/Headline/Headline.stories.tsx +0 -40
  261. package/styled-components/es/examples/typography/components/Old/Paragraph/Paragraph.config.js +0 -13
  262. package/styled-components/es/examples/typography/components/Old/Paragraph/Paragraph.js +0 -5
  263. package/styled-components/es/examples/typography/components/Old/Paragraph/Paragraph.stories.tsx +0 -42
  264. package/styled-components/es/examples/typography/components/Old/Subtitle/Subtitle.config.js +0 -12
  265. package/styled-components/es/examples/typography/components/Old/Subtitle/Subtitle.js +0 -5
  266. package/styled-components/es/examples/typography/components/Old/Subtitle/Subtitle.stories.tsx +0 -39
  267. package/styled-components/es/examples/typography/components/Old/Underline/Underline.config.js +0 -12
  268. package/styled-components/es/examples/typography/components/Old/Underline/Underline.js +0 -5
  269. package/styled-components/es/examples/typography/components/Old/Underline/Underline.stories.tsx +0 -40
@@ -4,7 +4,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.base = exports.Tr = exports.Thead = exports.Th = exports.Tbody = exports.Table = exports.StyledDivider = exports.StyledCheckbox = exports.Resizer = exports.LinkButton = exports.ButtonAccent = exports.Button = void 0;
7
+ exports.base = exports.Tr = exports.Thead = exports.Th = exports.Table = exports.StyledDivider = exports.StyledCheckbox = exports.Resizer = exports.LinkButton = exports.ButtonAccent = exports.Button = void 0;
8
8
  var _styledComponents = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("styled-components"));
9
9
  var _engines = /*#__PURE__*/require("../../engines");
10
10
  var _Checkbox = /*#__PURE__*/require("../Checkbox");
@@ -51,18 +51,15 @@ var Thead = exports.Thead = /*#__PURE__*/_styledComponents["default"].thead.with
51
51
  view === 'clear' ? 'none' : borderVariant === 'header' || borderVariant === 'rows' ? "inset 0 -1px 0 0 var(".concat(_Table.tableTokens.borderColor, ")") : "inset 0 1px 0 0 var(".concat(_Table.tableTokens.borderColor, "), inset 0 -1px 0 0 var(").concat(_Table.tableTokens.borderColor, ")")
52
52
  );
53
53
  }, Tr);
54
- var Tbody = exports.Tbody = /*#__PURE__*/_styledComponents["default"].tbody.withConfig({
55
- componentId: "plasma-new-hope__sc-1nklm7n-3"
56
- })([""]);
57
54
  var Resizer = exports.Resizer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
58
- componentId: "plasma-new-hope__sc-1nklm7n-4"
59
- })(["display:", ";position:absolute;z-index:1;top:-0.0625rem;bottom:0;right:-0.125rem;width:0.1875rem;background:var(--outline-accent);cursor:col-resize;user-select:none;touch-action:none;"], function (_ref6) {
55
+ componentId: "plasma-new-hope__sc-1nklm7n-3"
56
+ })(["display:", ";position:absolute;z-index:1;top:-1px;bottom:0;right:-2px;width:0.1875rem;background:var(--outline-accent);cursor:col-resize;user-select:none;touch-action:none;"], function (_ref6) {
60
57
  var isResizing = _ref6.isResizing;
61
58
  return isResizing ? 'block' : 'none';
62
59
  });
63
60
  var Th = exports.Th = /*#__PURE__*/_styledComponents["default"].th.withConfig({
64
- componentId: "plasma-new-hope__sc-1nklm7n-5"
65
- })(["padding:", ";position:relative;font-weight:600;text-align:left;height:var(", ");background-color:transparent;color:inherit;border-width:0.0625rem;border-top-width:0;border-bottom-width:0;border-style:solid;border-color:", ";&:hover{", "{display:block;}}"], function (_ref7) {
61
+ componentId: "plasma-new-hope__sc-1nklm7n-4"
62
+ })(["padding:", ";position:relative;font-weight:600;text-align:left;height:var(", ");background-color:transparent;color:inherit;border-width:1px;border-top-width:0;border-bottom-width:0;border-style:solid;border-color:", ";&:hover{", "{display:block;}}"], function (_ref7) {
66
63
  var selectionCell = _ref7.selectionCell;
67
64
  return selectionCell ? "var(".concat(_Table.tableTokens.checkboxCellPadding, ")") : "var(".concat(_Table.tableTokens.cellPadding, ")");
68
65
  }, _Table.tableTokens.headerRowHeight, function (_ref8) {
@@ -70,17 +67,17 @@ var Th = exports.Th = /*#__PURE__*/_styledComponents["default"].th.withConfig({
70
67
  return borderVariant === 'all' ? "var(".concat(_Table.tableTokens.borderColor, ")") : 'transparent';
71
68
  }, Resizer);
72
69
  var StyledCheckbox = exports.StyledCheckbox = /*#__PURE__*/(0, _styledComponents["default"])(Checkbox).withConfig({
73
- componentId: "plasma-new-hope__sc-1nklm7n-6"
70
+ componentId: "plasma-new-hope__sc-1nklm7n-5"
74
71
  })(["", ":var(", ");", ":var(", ");", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);"], _Checkbox.checkboxTokens.triggerSize, _Table.tableTokens.checkboxTriggerSize, _Checkbox.checkboxTokens.triggerBorderRadius, _Table.tableTokens.checkboxTriggerBorderRadius, _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.triggerBorderColor);
75
72
  var StyledDivider = exports.StyledDivider = /*#__PURE__*/(0, _styledComponents["default"])(Divider).withConfig({
76
- componentId: "plasma-new-hope__sc-1nklm7n-7"
73
+ componentId: "plasma-new-hope__sc-1nklm7n-6"
77
74
  })(["", ":0.0625rem;", ":var(--surface-transparent-tertiary);", ":0.0625rem;"], _Divider.dividerTokens.baseSideSize, _Divider.dividerTokens.background, _Divider.dividerTokens.borderRadius);
78
75
  var Button = exports.Button = /*#__PURE__*/(0, _styledComponents["default"])(ButtonBase).withConfig({
79
- componentId: "plasma-new-hope__sc-1nklm7n-8"
76
+ componentId: "plasma-new-hope__sc-1nklm7n-7"
80
77
  })(["", ":var(", ");", ":0.4;", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], _Button.buttonTokens.buttonHeight, _Table.tableTokens.buttonHeight, _Button.buttonTokens.buttonDisabledOpacity, _Button.buttonTokens.buttonFontFamily, _Table.tableTokens.buttonFontFamily, _Button.buttonTokens.buttonFontSize, _Table.tableTokens.buttonFontSize, _Button.buttonTokens.buttonFontStyle, _Table.tableTokens.buttonFontStyle, _Button.buttonTokens.buttonFontWeight, _Table.tableTokens.buttonFontWeight, _Button.buttonTokens.buttonLetterSpacing, _Table.tableTokens.buttonLetterSpacing, _Button.buttonTokens.buttonLineHeight, _Table.tableTokens.buttonLineHeight);
81
78
  var ButtonAccent = exports.ButtonAccent = /*#__PURE__*/(0, _styledComponents["default"])(Button).withConfig({
82
- componentId: "plasma-new-hope__sc-1nklm7n-9"
79
+ componentId: "plasma-new-hope__sc-1nklm7n-8"
83
80
  })(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-secondary);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-accent-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonValueColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonBackgroundColorActive);
84
81
  var LinkButton = exports.LinkButton = /*#__PURE__*/(0, _styledComponents["default"])(LinkButtonBase).withConfig({
85
- componentId: "plasma-new-hope__sc-1nklm7n-10"
82
+ componentId: "plasma-new-hope__sc-1nklm7n-9"
86
83
  })(["", ":var(--text-primary);", ":var(--surface-transparent-clear);", ":var(--text-primary-hover);", ":var(--text-primary-active);", ":var(--surface-accent);", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], _LinkButton.linkButtonTokens.linkButtonColor, _LinkButton.linkButtonTokens.linkButtonBackgroundColor, _LinkButton.linkButtonTokens.linkButtonColorHover, _LinkButton.linkButtonTokens.linkButtonColorActive, _LinkButton.linkButtonTokens.linkButtonFocusColor, _LinkButton.linkButtonTokens.linkButtonFontFamily, _Table.tableTokens.linkButtonFontFamily, _LinkButton.linkButtonTokens.linkButtonFontSize, _Table.tableTokens.linkButtonFontSize, _LinkButton.linkButtonTokens.linkButtonFontStyle, _Table.tableTokens.linkButtonFontStyle, _LinkButton.linkButtonTokens.linkButtonFontWeight, _Table.tableTokens.linkButtonFontWeight, _LinkButton.linkButtonTokens.linkButtonLetterSpacing, _Table.tableTokens.linkButtonLetterSpacing, _LinkButton.linkButtonTokens.linkButtonLineHeight, _Table.tableTokens.linkButtonLineHeight);
@@ -3,15 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.tableTokens = exports.classes = void 0;
7
- var classes = exports.classes = {
8
- editIcon: 'edit-icon',
9
- sortingDefaultIcon: 'sorting-default-icon',
10
- sortingAscIcon: 'sorting-asc-icon',
11
- sortingDescIcon: 'sorting-desc-icon',
12
- filterIcon: 'filter-icon',
13
- resizeDivider: 'resize-divider'
14
- };
6
+ exports.tableTokens = void 0;
15
7
  var tableTokens = exports.tableTokens = {
16
8
  fontFamily: '--plasma-table-font-family',
17
9
  fontSize: '--plasma-table-font-size',
@@ -9,7 +9,7 @@ var _Table = /*#__PURE__*/require("../../Table.tokens");
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
10
  var Td = exports.Td = /*#__PURE__*/_styledComponents["default"].td.withConfig({
11
11
  componentId: "plasma-new-hope__sc-1doamj5-0"
12
- })(["position:relative;padding:", ";height:var(", ");border-width:0.0625rem;border-top-width:0;border-style:solid;border-color:", ";border-bottom-color:", ";box-sizing:border-box;"], function (_ref) {
12
+ })(["position:relative;padding:", ";height:var(", ");border-width:1px;border-top-width:0;border-style:solid;border-color:", ";border-bottom-color:", ";box-sizing:border-box;"], function (_ref) {
13
13
  var selectionCell = _ref.selectionCell;
14
14
  return selectionCell ? "var(".concat(_Table.tableTokens.checkboxCellPadding, ")") : "var(".concat(_Table.tableTokens.cellPadding, ")");
15
15
  }, _Table.tableTokens.rowHeight, function (_ref2) {
@@ -12,9 +12,8 @@ var _Table2 = /*#__PURE__*/require("../../Table");
12
12
  var _hooks = /*#__PURE__*/require("../../../../hooks");
13
13
  var _Icon = /*#__PURE__*/require("../../../_Icon");
14
14
  var _HeadCell = /*#__PURE__*/require("../HeadCell/HeadCell");
15
- var _Table3 = /*#__PURE__*/require("../../Table.tokens");
16
15
  var _EditableCell = /*#__PURE__*/require("./EditableCell.styles");
17
- var _Resizer;
16
+ var _IconEditOutline, _Resizer;
18
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
20
19
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -29,13 +28,12 @@ var keys = {
29
28
  Escape: 'Escape'
30
29
  };
31
30
  var EditableCell = exports.EditableCell = function EditableCell(_ref) {
32
- var _table$options$meta;
33
31
  var size = _ref.size,
34
- view = _ref.view,
35
32
  cell = _ref.cell,
36
33
  borderVariant = _ref.borderVariant,
37
34
  table = _ref.table,
38
- selected = _ref.selected;
35
+ selected = _ref.selected,
36
+ view = _ref.view;
39
37
  var _useState = (0, _react.useState)(cell.getValue()),
40
38
  _useState2 = _slicedToArray(_useState, 2),
41
39
  value = _useState2[0],
@@ -44,7 +42,7 @@ var EditableCell = exports.EditableCell = function EditableCell(_ref) {
44
42
  _useState4 = _slicedToArray(_useState3, 2),
45
43
  editingMode = _useState4[0],
46
44
  setEditingMode = _useState4[1];
47
- var updateData = (_table$options$meta = table.options.meta) === null || _table$options$meta === void 0 ? void 0 : _table$options$meta.updateData;
45
+ var updateData = table.options.meta.updateData;
48
46
  var ref = (0, _hooks.useOutsideClick)(function () {
49
47
  setEditingMode(false);
50
48
  });
@@ -61,18 +59,14 @@ var EditableCell = exports.EditableCell = function EditableCell(_ref) {
61
59
  };
62
60
  var handleSubmit = function handleSubmit(e) {
63
61
  e.stopPropagation();
64
- if (updateData) {
65
- updateData(cell.row.id, cell.column.id, value);
66
- }
62
+ updateData(cell.row.id, cell.column.id, value);
67
63
  setEditingMode(false);
68
64
  };
69
65
  var handleKeyDown = function handleKeyDown(event) {
70
66
  switch (event.code) {
71
67
  case keys.Enter:
72
68
  {
73
- if (updateData) {
74
- updateData(cell.row.id, cell.column.id, value);
75
- }
69
+ updateData(cell.row.id, cell.column.id, value);
76
70
  setEditingMode(false);
77
71
  break;
78
72
  }
@@ -112,11 +106,11 @@ var EditableCell = exports.EditableCell = function EditableCell(_ref) {
112
106
  tabIndex: -1
113
107
  }, /*#__PURE__*/_react["default"].createElement(_Icon.IconDoneCircleOutline, {
114
108
  size: (0, _HeadCell.getIconSize)(size)
115
- }))) : /*#__PURE__*/_react["default"].createElement(_EditableCell.ContentWrapper, null, (0, _reactTable.flexRender)(cell.column.columnDef.cell, cell.getContext()), /*#__PURE__*/_react["default"].createElement(_Icon.IconEditOutline, {
109
+ }))) : /*#__PURE__*/_react["default"].createElement(_EditableCell.ContentWrapper, null, (0, _reactTable.flexRender)(cell.column.columnDef.cell, cell.getContext()), _IconEditOutline || (_IconEditOutline = /*#__PURE__*/_react["default"].createElement(_Icon.IconEditOutline, {
116
110
  size: "xs",
117
- className: _Table3.classes.editIcon,
111
+ className: "editIcon",
118
112
  color: "var(--text-secondary)"
119
- }))), cell.column.getIsResizing() && (_Resizer || (_Resizer = /*#__PURE__*/_react["default"].createElement(_Table.Resizer, {
113
+ })))), cell.column.getIsResizing() && (_Resizer || (_Resizer = /*#__PURE__*/_react["default"].createElement(_Table.Resizer, {
120
114
  isResizing: true
121
115
  }))));
122
116
  };
@@ -13,7 +13,7 @@ var mergedIndicatorConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_IconButton.i
13
13
  var IconButton = /*#__PURE__*/(0, _engines.component)(mergedIndicatorConfig);
14
14
  var Td = exports.Td = /*#__PURE__*/_styledComponents["default"].td.withConfig({
15
15
  componentId: "plasma-new-hope__sc-1uu72a1-0"
16
- })(["position:relative;padding:", ";height:var(", ");border-width:0.0625rem;border-top-width:0;border-style:solid;border-color:", ";border-bottom-color:", ";cursor:pointer;box-sizing:border-box;& .", "{opacity:0;}&:hover .", "{opacity:1;}"], function (_ref) {
16
+ })(["position:relative;padding:", ";height:var(", ");border-width:1px;border-top-width:0;border-style:solid;border-color:", ";border-bottom-color:", ";cursor:pointer;box-sizing:border-box;& .editIcon{opacity:0;}&:hover .editIcon{opacity:1;}"], function (_ref) {
17
17
  var selectionCell = _ref.selectionCell,
18
18
  editingMode = _ref.editingMode;
19
19
  return (
@@ -31,7 +31,7 @@ var Td = exports.Td = /*#__PURE__*/_styledComponents["default"].td.withConfig({
31
31
  }, function (_ref3) {
32
32
  var borderVariant = _ref3.borderVariant;
33
33
  return borderVariant === 'all' || borderVariant === 'rows' ? "var(".concat(_Table.tableTokens.borderColor, ")") : 'transparent';
34
- }, _Table.classes.editIcon, _Table.classes.editIcon);
34
+ });
35
35
  var InnerWrapper = exports.InnerWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
36
36
  componentId: "plasma-new-hope__sc-1uu72a1-1"
37
37
  })(["display:flex;align-items:center;justify-content:space-between;width:100%;height:100%;"]);
@@ -43,7 +43,7 @@ var EditModeWrapper = exports.EditModeWrapper = /*#__PURE__*/_styledComponents["
43
43
  })(["display:flex;align-items:center;justify-content:space-between;gap:var(", ");height:100%;"], _Table.tableTokens.editableCellPadding);
44
44
  var InputWrapper = exports.InputWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
45
45
  componentId: "plasma-new-hope__sc-1uu72a1-4"
46
- })(["display:flex;align-items:center;height:100%;flex:1;padding:var(", ");background:var(", ");border:0.0625rem solid var(", ");border-radius:var(", ");box-sizing:border-box;gap:var(", ");"], _Table.tableTokens.editableCellInputPadding, _Table.tableTokens.editableCellInputBackground, _Table.tableTokens.editableCellInputBorderColor, _Table.tableTokens.editableCellInputBorderRadius, _Table.tableTokens.editableCellIconGap);
46
+ })(["display:flex;align-items:center;height:100%;flex:1;padding:var(", ");background:var(", ");border:1px solid var(", ");border-radius:var(", ");box-sizing:border-box;gap:var(", ");"], _Table.tableTokens.editableCellInputPadding, _Table.tableTokens.editableCellInputBackground, _Table.tableTokens.editableCellInputBorderColor, _Table.tableTokens.editableCellInputBorderRadius, _Table.tableTokens.editableCellIconGap);
47
47
  var Input = exports.Input = /*#__PURE__*/_styledComponents["default"].input.withConfig({
48
48
  componentId: "plasma-new-hope__sc-1uu72a1-5"
49
49
  })(["width:auto;border:none;padding:0;background:transparent;outline:none;caret-color:var(--text-accent);font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], _Table.tableTokens.fontFamily, _Table.tableTokens.fontSize, _Table.tableTokens.fontStyle, _Table.tableTokens.fontWeight, _Table.tableTokens.letterSpacing, _Table.tableTokens.lineHeight);
@@ -9,7 +9,6 @@ var _react = /*#__PURE__*/_interopRequireDefault(/*#__PURE__*/require("react"));
9
9
  var _Table = /*#__PURE__*/require("../../Table.styles");
10
10
  var _Icon = /*#__PURE__*/require("../../../_Icon");
11
11
  var _Table2 = /*#__PURE__*/require("../../Table");
12
- var _Table3 = /*#__PURE__*/require("../../Table.tokens");
13
12
  var _HeadCell = /*#__PURE__*/require("./HeadCell.styles");
14
13
  var _Filter = /*#__PURE__*/require("./ui/Filter/Filter");
15
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -38,22 +37,23 @@ var HeadCell = exports.HeadCell = function HeadCell(_ref) {
38
37
  size: size,
39
38
  outerFiltered: outerFiltered,
40
39
  tableContainerRef: tableContainerRef
41
- }), header.column.getCanSort() && /*#__PURE__*/_react["default"].createElement(_HeadCell.IconWrapper, {
40
+ }), header.column.getCanSort() && /*#__PURE__*/_react["default"].createElement("span", {
41
+ style: {
42
+ lineHeight: 0,
43
+ cursor: 'pointer',
44
+ userSelect: 'none'
45
+ },
42
46
  onClick: header.column.getToggleSortingHandler()
43
47
  }, (_asc$desc = {
44
48
  asc: /*#__PURE__*/_react["default"].createElement(_Icon.IconArrowUp, {
45
- size: getIconSize(size),
46
- className: _Table3.classes.sortingAscIcon
49
+ size: getIconSize(size)
47
50
  }),
48
51
  desc: /*#__PURE__*/_react["default"].createElement(_Icon.IconArrowDown, {
49
- size: getIconSize(size),
50
- className: _Table3.classes.sortingDescIcon
52
+ size: getIconSize(size)
51
53
  })
52
54
  }[header.column.getIsSorted()]) !== null && _asc$desc !== void 0 ? _asc$desc : /*#__PURE__*/_react["default"].createElement(_Icon.IconSwapVert, {
53
- size: getIconSize(size),
54
- className: _Table3.classes.sortingDefaultIcon
55
+ size: getIconSize(size)
55
56
  }))))), header.column.getCanResize() && /*#__PURE__*/_react["default"].createElement(_Table.Resizer, {
56
- className: _Table3.classes.resizeDivider,
57
57
  onMouseDown: header.getResizeHandler(),
58
58
  onTouchStart: header.getResizeHandler(),
59
59
  isResizing: header.column.getIsResizing()
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ThWrapper = exports.IconWrapper = exports.ControlButtons = void 0;
6
+ exports.ThWrapper = exports.ControlButtons = void 0;
7
7
  var _styledComponents = /*#__PURE__*/_interopRequireDefault(/*#__PURE__*/require("styled-components"));
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
9
  var ControlButtons = exports.ControlButtons = /*#__PURE__*/_styledComponents["default"].div.withConfig({
@@ -11,7 +11,4 @@ var ControlButtons = exports.ControlButtons = /*#__PURE__*/_styledComponents["de
11
11
  })(["display:flex;justify-content:space-between;align-items:center;gap:0.5rem;"]);
12
12
  var ThWrapper = exports.ThWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
13
13
  componentId: "plasma-new-hope__sc-haivw3-1"
14
- })(["display:flex;justify-content:space-between;align-items:center;gap:0.5rem;"]);
15
- var IconWrapper = exports.IconWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
16
- componentId: "plasma-new-hope__sc-haivw3-2"
17
- })(["line-height:0;cursor:pointer;user-select:none;"]);
14
+ })(["display:flex;justify-content:space-between;align-items:center;gap:0.5rem;"]);
@@ -10,7 +10,6 @@ var _hooks = /*#__PURE__*/require("../../../../../../hooks");
10
10
  var _Icon = /*#__PURE__*/require("../../../../../_Icon");
11
11
  var _HeadCell = /*#__PURE__*/require("../../HeadCell");
12
12
  var _Table = /*#__PURE__*/require("../../../../Table.styles");
13
- var _Table2 = /*#__PURE__*/require("../../../../Table.tokens");
14
13
  var _Filter = /*#__PURE__*/require("./Filter.styles");
15
14
  var _StyledIndicator, _StyledDivider;
16
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -86,8 +85,7 @@ var Filter = exports.Filter = function Filter(_ref) {
86
85
  onChange: setLocalFiltered,
87
86
  renderTarget: function renderTarget() {
88
87
  return /*#__PURE__*/_react["default"].createElement(_Filter.IconFilterWrapper, null, /*#__PURE__*/_react["default"].createElement(_Icon.IconFilterFunnel, {
89
- size: (0, _HeadCell.getIconSize)(size),
90
- className: _Table2.classes.filterIcon
88
+ size: (0, _HeadCell.getIconSize)(size)
91
89
  }), filtered.length ? _StyledIndicator || (_StyledIndicator = /*#__PURE__*/_react["default"].createElement(_Filter.StyledIndicator, {
92
90
  size: "s",
93
91
  view: "accent"
@@ -23,6 +23,22 @@ title: Typography
23
23
  По умолчанию в типографике если текст превышает ширину элемента, то слова будут переноситься по пробелам.
24
24
  Чтобы запретить перенос по пробелам, необходимо установить свойство `noWrap` в значении `true`.
25
25
 
26
+ ## Смена тега
27
+ Если при использовании компонентов необходимо сменить тег, то можно использовать свойство `as`:
28
+
29
+ ```tsx live
30
+ import React from 'react';
31
+ import { BodyM } from '@salutejs/{{ package }}';
32
+
33
+ export function App() {
34
+ return (
35
+ <BodyM as="h3">
36
+ BodyM
37
+ </BodyM>
38
+ );
39
+ }
40
+ ```
41
+
26
42
  ## Состав
27
43
 
28
44
  ### Hero unit
@@ -1,6 +1,5 @@
1
1
  import React, { useRef, ComponentProps, useState } from 'react';
2
2
  import type { StoryObj, Meta } from '@storybook/react';
3
- import { getConfigVariations } from '@salutejs/plasma-sb-utils';
4
3
 
5
4
  import { WithTheme } from '../../../_helpers';
6
5
  import { ButtonGroup } from '../ButtonGroup/ButtonGroup';
@@ -9,12 +8,12 @@ import { IconButton } from '../IconButton/IconButton';
9
8
  import { IconEditOutline } from '../../../../components/_Icon';
10
9
  import { Dropdown } from '../Dropdown/Dropdown';
11
10
 
12
- import { config } from './Table.config';
13
11
  import { Table } from './Table';
14
12
 
15
13
  type StoryTableProps = ComponentProps<typeof Table>;
16
14
 
17
- const { views, sizes } = getConfigVariations(config);
15
+ const view = ['default', 'clear'];
16
+ const size = ['s', 'm', 'l'];
18
17
  const borderVariant = ['rows', 'header', 'all'];
19
18
 
20
19
  const meta: Meta<StoryTableProps> = {
@@ -24,11 +23,11 @@ const meta: Meta<StoryTableProps> = {
24
23
  argTypes: {
25
24
  view: {
26
25
  control: 'select',
27
- options: views,
26
+ options: view,
28
27
  },
29
28
  size: {
30
29
  control: 'select',
31
- options: sizes,
30
+ options: size,
32
31
  },
33
32
  borderVariant: {
34
33
  control: 'select',
@@ -515,8 +514,8 @@ const StoryComplex = (args: StoryTableProps) => {
515
514
  <Button text="Очистить выбранные" view="warning" size="xs" onClick={clearSelected} />
516
515
  <Button text="Убрать сортировку" view="warning" size="xs" onClick={clearSorted} />
517
516
  <Button text="Очистить фильтры" view="warning" size="xs" onClick={clearFiltered} />
518
- <Button text="Очистить все" view="negative" size="xs" onClick={clearAll} />
519
- <Button text="Добавить строку" view="positive" size="xs" onClick={addRow} />
517
+ <Button text="Очистить все" view="critical" size="xs" onClick={clearAll} />
518
+ <Button text="Добавить строку" view="success" size="xs" onClick={addRow} />
520
519
  </ButtonGroup>
521
520
 
522
521
  <br />
@@ -1,6 +1,5 @@
1
1
  import React, { useRef, ComponentProps, useState } from 'react';
2
2
  import type { StoryObj, Meta } from '@storybook/react';
3
- import { getConfigVariations } from '@salutejs/plasma-sb-utils';
4
3
 
5
4
  import { WithTheme } from '../../../_helpers';
6
5
  import { ButtonGroup } from '../ButtonGroup/ButtonGroup';
@@ -8,13 +7,13 @@ import { Button } from '../Button/Button';
8
7
  import { IconButton } from '../IconButton/IconButton';
9
8
  import { IconEditOutline } from '../../../../components/_Icon';
10
9
  import { Dropdown } from '../Dropdown/Dropdown';
11
- import { config } from '../../../plasma_b2c/components/Table/Table.config';
12
10
 
13
11
  import { Table } from './Table';
14
12
 
15
13
  type StoryTableProps = ComponentProps<typeof Table>;
16
14
 
17
- const { views, sizes } = getConfigVariations(config);
15
+ const view = ['default', 'clear'];
16
+ const size = ['s', 'm', 'l'];
18
17
  const borderVariant = ['rows', 'header', 'all'];
19
18
 
20
19
  const meta: Meta<StoryTableProps> = {
@@ -24,11 +23,11 @@ const meta: Meta<StoryTableProps> = {
24
23
  argTypes: {
25
24
  view: {
26
25
  control: 'select',
27
- options: views,
26
+ options: view,
28
27
  },
29
28
  size: {
30
29
  control: 'select',
31
- options: sizes,
30
+ options: size,
32
31
  },
33
32
  borderVariant: {
34
33
  control: 'select',
@@ -515,8 +514,8 @@ const StoryComplex = (args: StoryTableProps) => {
515
514
  <Button text="Очистить выбранные" view="warning" size="xs" onClick={clearSelected} />
516
515
  <Button text="Убрать сортировку" view="warning" size="xs" onClick={clearSorted} />
517
516
  <Button text="Очистить фильтры" view="warning" size="xs" onClick={clearFiltered} />
518
- <Button text="Очистить все" view="negative" size="xs" onClick={clearAll} />
519
- <Button text="Добавить строку" view="positive" size="xs" onClick={addRow} />
517
+ <Button text="Очистить все" view="critical" size="xs" onClick={clearAll} />
518
+ <Button text="Добавить строку" view="success" size="xs" onClick={addRow} />
520
519
  </ButtonGroup>
521
520
 
522
521
  <br />
@@ -9,7 +9,7 @@ import { Body } from './Body';
9
9
  import { config } from './Body.config';
10
10
 
11
11
  const meta: Meta<typeof Body> = {
12
- title: 'Data Display/Typography/Body',
12
+ title: 'typography/Body',
13
13
  decorators: [WithTheme],
14
14
  component: Body,
15
15
  argTypes: {
@@ -19,6 +19,9 @@ const meta: Meta<typeof Body> = {
19
19
  type: 'color',
20
20
  },
21
21
  },
22
+ as: {
23
+ control: 'text',
24
+ },
22
25
  },
23
26
  args: {
24
27
  noWrap: false,
@@ -9,7 +9,7 @@ import { Dspl } from './Dspl';
9
9
  import { config } from './Dspl.config';
10
10
 
11
11
  const meta: Meta<typeof Dspl> = {
12
- title: 'Data Display/Typography/Dspl',
12
+ title: 'typography/Dspl',
13
13
  decorators: [WithTheme],
14
14
  component: Dspl,
15
15
  argTypes: {
@@ -19,6 +19,9 @@ const meta: Meta<typeof Dspl> = {
19
19
  type: 'color',
20
20
  },
21
21
  },
22
+ as: {
23
+ control: 'text',
24
+ },
22
25
  },
23
26
  args: {
24
27
  noWrap: false,
@@ -9,7 +9,7 @@ import { Heading } from './Heading';
9
9
  import { config } from './Heading.config';
10
10
 
11
11
  const meta: Meta<typeof Heading> = {
12
- title: 'Data Display/Typography/Heading',
12
+ title: 'typography/Heading',
13
13
  decorators: [WithTheme],
14
14
  component: Heading,
15
15
  argTypes: {
@@ -19,6 +19,9 @@ const meta: Meta<typeof Heading> = {
19
19
  type: 'color',
20
20
  },
21
21
  },
22
+ as: {
23
+ control: 'text',
24
+ },
22
25
  },
23
26
  args: {
24
27
  noWrap: false,
@@ -9,7 +9,7 @@ import { Text } from './Text';
9
9
  import { config } from './Text.config';
10
10
 
11
11
  const meta: Meta<typeof Text> = {
12
- title: 'Data Display/Typography/Text',
12
+ title: 'typography/Text',
13
13
  decorators: [WithTheme],
14
14
  component: Text,
15
15
  argTypes: {
@@ -19,6 +19,9 @@ const meta: Meta<typeof Text> = {
19
19
  type: 'color',
20
20
  },
21
21
  },
22
+ as: {
23
+ control: 'text',
24
+ },
22
25
  },
23
26
  args: {
24
27
  noWrap: false,
@@ -1,5 +1,3 @@
1
- var _excluded = ["data", "onChange", "columns", "view", "size", "borderVariant", "enableSelection", "selected", "filtered", "sorted", "maxHeight", "stickyHeader", "onCellUpdate"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
1
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4
2
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
3
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
@@ -10,14 +8,12 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
10
8
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
9
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
14
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
11
  import React, { forwardRef, useState, useMemo, useRef } from 'react';
16
12
  import { getCoreRowModel, useReactTable, getSortedRowModel, getFilteredRowModel } from '@tanstack/react-table';
17
13
  import { useForkRef } from '@salutejs/plasma-core';
18
14
  import { HeadCell, Cell, EditableCell } from './ui';
19
- import { base, Table, Tr, Thead, StyledCheckbox, Tbody } from './Table.styles';
20
- export var SELECT_COLUMN_ID = 'SELECT_COLUMN_UNIQUE_ID';
15
+ import { base, Table, Tr, Thead, StyledCheckbox } from './Table.styles';
16
+ export var SELECT_COLUMN_ID = 'select#65768756432';
21
17
  export var tableRoot = function tableRoot(Root) {
22
18
  return /*#__PURE__*/forwardRef(function (_ref, ref) {
23
19
  var data = _ref.data,
@@ -33,8 +29,7 @@ export var tableRoot = function tableRoot(Root) {
33
29
  outerSorted = _ref.sorted,
34
30
  maxHeight = _ref.maxHeight,
35
31
  stickyHeader = _ref.stickyHeader,
36
- onCellUpdate = _ref.onCellUpdate,
37
- props = _objectWithoutProperties(_ref, _excluded);
32
+ onCellUpdate = _ref.onCellUpdate;
38
33
  var _useState = useState(outerSelected || {}),
39
34
  _useState2 = _slicedToArray(_useState, 2),
40
35
  innerSelected = _useState2[0],
@@ -128,10 +123,17 @@ export var tableRoot = function tableRoot(Root) {
128
123
  enableSorting: enableSorting,
129
124
  enableResizing: enableResizing,
130
125
  filterFn: function filterFn(row, columnId, filterArr) {
131
- if ((filterArr === null || filterArr === void 0 ? void 0 : filterArr.length) !== 0 && outerFilterFn && filterArr && Array.isArray(filterArr)) {
132
- return filterArr.some(function (filterValue) {
133
- return outerFilterFn(filterValue, row.getValue(columnId));
134
- });
126
+ if (outerFilterFn && filterArr && Array.isArray(filterArr)) {
127
+ if (filterArr.length === 0) {
128
+ return true;
129
+ }
130
+ for (var i = 0; i < filterArr.length; i++) {
131
+ var filterValue = filterArr[i];
132
+ if (outerFilterFn(filterValue, row.getValue(columnId))) {
133
+ return true;
134
+ }
135
+ }
136
+ return false;
135
137
  }
136
138
  return true;
137
139
  },
@@ -172,7 +174,7 @@ export var tableRoot = function tableRoot(Root) {
172
174
  }
173
175
  }
174
176
  });
175
- return /*#__PURE__*/React.createElement(Root, _extends({
177
+ return /*#__PURE__*/React.createElement(Root, {
176
178
  ref: rootRef,
177
179
  data: data,
178
180
  columns: columns,
@@ -181,7 +183,7 @@ export var tableRoot = function tableRoot(Root) {
181
183
  style: {
182
184
  maxHeight: maxHeight || 'none'
183
185
  }
184
- }, props), /*#__PURE__*/React.createElement(Table, {
186
+ }, /*#__PURE__*/React.createElement(Table, {
185
187
  borderVariant: borderVariant,
186
188
  stickyHeader: stickyHeader
187
189
  }, /*#__PURE__*/React.createElement(Thead, {
@@ -201,7 +203,7 @@ export var tableRoot = function tableRoot(Root) {
201
203
  tableContainerRef: tableContainerRef
202
204
  });
203
205
  }));
204
- })), /*#__PURE__*/React.createElement(Tbody, null, table.getRowModel().rows.map(function (row) {
206
+ })), /*#__PURE__*/React.createElement("tbody", null, table.getRowModel().rows.map(function (row) {
205
207
  return /*#__PURE__*/React.createElement(Tr, {
206
208
  key: row.id,
207
209
  selected: row.getIsSelected()
@@ -43,18 +43,15 @@ export var Thead = /*#__PURE__*/styled.thead.withConfig({
43
43
  view === 'clear' ? 'none' : borderVariant === 'header' || borderVariant === 'rows' ? "inset 0 -1px 0 0 var(".concat(tokens.borderColor, ")") : "inset 0 1px 0 0 var(".concat(tokens.borderColor, "), inset 0 -1px 0 0 var(").concat(tokens.borderColor, ")")
44
44
  );
45
45
  }, Tr);
46
- export var Tbody = /*#__PURE__*/styled.tbody.withConfig({
47
- componentId: "plasma-new-hope__sc-1nklm7n-3"
48
- })([""]);
49
46
  export var Resizer = /*#__PURE__*/styled.div.withConfig({
50
- componentId: "plasma-new-hope__sc-1nklm7n-4"
51
- })(["display:", ";position:absolute;z-index:1;top:-0.0625rem;bottom:0;right:-0.125rem;width:0.1875rem;background:var(--outline-accent);cursor:col-resize;user-select:none;touch-action:none;"], function (_ref6) {
47
+ componentId: "plasma-new-hope__sc-1nklm7n-3"
48
+ })(["display:", ";position:absolute;z-index:1;top:-1px;bottom:0;right:-2px;width:0.1875rem;background:var(--outline-accent);cursor:col-resize;user-select:none;touch-action:none;"], function (_ref6) {
52
49
  var isResizing = _ref6.isResizing;
53
50
  return isResizing ? 'block' : 'none';
54
51
  });
55
52
  export var Th = /*#__PURE__*/styled.th.withConfig({
56
- componentId: "plasma-new-hope__sc-1nklm7n-5"
57
- })(["padding:", ";position:relative;font-weight:600;text-align:left;height:var(", ");background-color:transparent;color:inherit;border-width:0.0625rem;border-top-width:0;border-bottom-width:0;border-style:solid;border-color:", ";&:hover{", "{display:block;}}"], function (_ref7) {
53
+ componentId: "plasma-new-hope__sc-1nklm7n-4"
54
+ })(["padding:", ";position:relative;font-weight:600;text-align:left;height:var(", ");background-color:transparent;color:inherit;border-width:1px;border-top-width:0;border-bottom-width:0;border-style:solid;border-color:", ";&:hover{", "{display:block;}}"], function (_ref7) {
58
55
  var selectionCell = _ref7.selectionCell;
59
56
  return selectionCell ? "var(".concat(tokens.checkboxCellPadding, ")") : "var(".concat(tokens.cellPadding, ")");
60
57
  }, tokens.headerRowHeight, function (_ref8) {
@@ -62,17 +59,17 @@ export var Th = /*#__PURE__*/styled.th.withConfig({
62
59
  return borderVariant === 'all' ? "var(".concat(tokens.borderColor, ")") : 'transparent';
63
60
  }, Resizer);
64
61
  export var StyledCheckbox = /*#__PURE__*/styled(Checkbox).withConfig({
65
- componentId: "plasma-new-hope__sc-1nklm7n-6"
62
+ componentId: "plasma-new-hope__sc-1nklm7n-5"
66
63
  })(["", ":var(", ");", ":var(", ");", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);"], checkboxTokens.triggerSize, tokens.checkboxTriggerSize, checkboxTokens.triggerBorderRadius, tokens.checkboxTriggerBorderRadius, checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.triggerBorderColor);
67
64
  export var StyledDivider = /*#__PURE__*/styled(Divider).withConfig({
68
- componentId: "plasma-new-hope__sc-1nklm7n-7"
65
+ componentId: "plasma-new-hope__sc-1nklm7n-6"
69
66
  })(["", ":0.0625rem;", ":var(--surface-transparent-tertiary);", ":0.0625rem;"], dividerTokens.baseSideSize, dividerTokens.background, dividerTokens.borderRadius);
70
67
  export var Button = /*#__PURE__*/styled(ButtonBase).withConfig({
71
- componentId: "plasma-new-hope__sc-1nklm7n-8"
68
+ componentId: "plasma-new-hope__sc-1nklm7n-7"
72
69
  })(["", ":var(", ");", ":0.4;", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], buttonTokens.buttonHeight, tokens.buttonHeight, buttonTokens.buttonDisabledOpacity, buttonTokens.buttonFontFamily, tokens.buttonFontFamily, buttonTokens.buttonFontSize, tokens.buttonFontSize, buttonTokens.buttonFontStyle, tokens.buttonFontStyle, buttonTokens.buttonFontWeight, tokens.buttonFontWeight, buttonTokens.buttonLetterSpacing, tokens.buttonLetterSpacing, buttonTokens.buttonLineHeight, tokens.buttonLineHeight);
73
70
  export var ButtonAccent = /*#__PURE__*/styled(Button).withConfig({
74
- componentId: "plasma-new-hope__sc-1nklm7n-9"
71
+ componentId: "plasma-new-hope__sc-1nklm7n-8"
75
72
  })(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-secondary);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-accent-active);"], buttonTokens.buttonColor, buttonTokens.buttonValueColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonBackgroundColorActive);
76
73
  export var LinkButton = /*#__PURE__*/styled(LinkButtonBase).withConfig({
77
- componentId: "plasma-new-hope__sc-1nklm7n-10"
74
+ componentId: "plasma-new-hope__sc-1nklm7n-9"
78
75
  })(["", ":var(--text-primary);", ":var(--surface-transparent-clear);", ":var(--text-primary-hover);", ":var(--text-primary-active);", ":var(--surface-accent);", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], linkButtonTokens.linkButtonColor, linkButtonTokens.linkButtonBackgroundColor, linkButtonTokens.linkButtonColorHover, linkButtonTokens.linkButtonColorActive, linkButtonTokens.linkButtonFocusColor, linkButtonTokens.linkButtonFontFamily, tokens.linkButtonFontFamily, linkButtonTokens.linkButtonFontSize, tokens.linkButtonFontSize, linkButtonTokens.linkButtonFontStyle, tokens.linkButtonFontStyle, linkButtonTokens.linkButtonFontWeight, tokens.linkButtonFontWeight, linkButtonTokens.linkButtonLetterSpacing, tokens.linkButtonLetterSpacing, linkButtonTokens.linkButtonLineHeight, tokens.linkButtonLineHeight);
@@ -1,11 +1,3 @@
1
- export var classes = {
2
- editIcon: 'edit-icon',
3
- sortingDefaultIcon: 'sorting-default-icon',
4
- sortingAscIcon: 'sorting-asc-icon',
5
- sortingDescIcon: 'sorting-desc-icon',
6
- filterIcon: 'filter-icon',
7
- resizeDivider: 'resize-divider'
8
- };
9
1
  export var tableTokens = {
10
2
  fontFamily: '--plasma-table-font-family',
11
3
  fontSize: '--plasma-table-font-size',
@@ -2,7 +2,7 @@ import styled from 'styled-components';
2
2
  import { tableTokens as tokens } from '../../Table.tokens';
3
3
  export var Td = /*#__PURE__*/styled.td.withConfig({
4
4
  componentId: "plasma-new-hope__sc-1doamj5-0"
5
- })(["position:relative;padding:", ";height:var(", ");border-width:0.0625rem;border-top-width:0;border-style:solid;border-color:", ";border-bottom-color:", ";box-sizing:border-box;"], function (_ref) {
5
+ })(["position:relative;padding:", ";height:var(", ");border-width:1px;border-top-width:0;border-style:solid;border-color:", ";border-bottom-color:", ";box-sizing:border-box;"], function (_ref) {
6
6
  var selectionCell = _ref.selectionCell;
7
7
  return selectionCell ? "var(".concat(tokens.checkboxCellPadding, ")") : "var(".concat(tokens.cellPadding, ")");
8
8
  }, tokens.rowHeight, function (_ref2) {