@ytsaurus/components 0.2.1 → 0.2.2

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 (268) hide show
  1. package/README.md +129 -148
  2. package/README.ru.md +165 -0
  3. package/build/esm/api/navigation/helpers/getTableTypeByAttributes.js +1 -1
  4. package/build/esm/api/navigation/helpers/getTableTypeByAttributes.js.map +1 -1
  5. package/build/esm/api/navigation/loadFolderByPath.js +1 -1
  6. package/build/esm/api/navigation/loadFolderByPath.js.map +1 -1
  7. package/build/esm/api/navigation/loadNodeByPath.js +1 -1
  8. package/build/esm/api/navigation/loadNodeByPath.js.map +1 -1
  9. package/build/esm/api/navigation/loadTableAttributesByPath.d.ts +2 -2
  10. package/build/esm/api/navigation/loadTableAttributesByPath.d.ts.map +1 -1
  11. package/build/esm/api/navigation/loadTableAttributesByPath.js +1 -1
  12. package/build/esm/api/navigation/loadTableAttributesByPath.js.map +1 -1
  13. package/build/esm/api/navigation/table.d.ts +0 -30
  14. package/build/esm/api/navigation/table.d.ts.map +1 -1
  15. package/build/esm/api/navigation/table.js +0 -46
  16. package/build/esm/api/navigation/table.js.map +1 -1
  17. package/build/esm/components/ClipboardButton/ClipboardButton.d.ts +1 -1
  18. package/build/esm/components/ClipboardButton/ClipboardButton.stories.d.ts +22 -0
  19. package/build/esm/components/ClipboardButton/ClipboardButton.stories.d.ts.map +1 -0
  20. package/build/esm/components/ClipboardButton/ClipboardButton.stories.js +20 -0
  21. package/build/esm/components/ClipboardButton/ClipboardButton.stories.js.map +1 -0
  22. package/build/esm/components/ClipboardButton/__tests__/ClipboardButton.visual.test.js +31 -0
  23. package/build/esm/components/ClipboardButton/__tests__/ClipboardButton.visual.test.js.map +1 -0
  24. package/build/esm/components/ColumnCell/ColumnCell.d.ts +7 -5
  25. package/build/esm/components/ColumnCell/ColumnCell.d.ts.map +1 -1
  26. package/build/esm/components/ColumnCell/ColumnCell.js +25 -21
  27. package/build/esm/components/ColumnCell/ColumnCell.js.map +1 -1
  28. package/build/esm/components/ColumnCell/ColumnCell.stories.d.ts +64 -0
  29. package/build/esm/components/ColumnCell/ColumnCell.stories.d.ts.map +1 -0
  30. package/build/esm/components/ColumnCell/ColumnCell.stories.js +83 -0
  31. package/build/esm/components/ColumnCell/ColumnCell.stories.js.map +1 -0
  32. package/build/esm/components/ColumnCell/__tests__/ColumnCell.visual.test.js +158 -0
  33. package/build/esm/components/ColumnCell/__tests__/ColumnCell.visual.test.js.map +1 -0
  34. package/build/esm/components/ColumnCell/columnCellStorySetup.d.ts +23 -0
  35. package/build/esm/components/ColumnCell/columnCellStorySetup.d.ts.map +1 -0
  36. package/build/esm/components/ColumnCell/columnCellStorySetup.js +41 -0
  37. package/build/esm/components/ColumnCell/columnCellStorySetup.js.map +1 -0
  38. package/build/esm/components/DataTableYT/DataTableYT.css +1 -1
  39. package/build/esm/components/DataTableYT/DataTableYT.css.map +1 -1
  40. package/build/esm/components/DataTableYT/DataTableYT.scss +1 -1
  41. package/build/esm/components/DataTableYT/DataTableYT.stories.d.ts +60 -0
  42. package/build/esm/components/DataTableYT/DataTableYT.stories.d.ts.map +1 -0
  43. package/build/esm/components/DataTableYT/DataTableYT.stories.js +106 -0
  44. package/build/esm/components/DataTableYT/DataTableYT.stories.js.map +1 -0
  45. package/build/esm/components/DataTableYT/__tests__/DataTableYT.visual.test.js +101 -0
  46. package/build/esm/components/DataTableYT/__tests__/DataTableYT.visual.test.js.map +1 -0
  47. package/build/esm/components/DataTableYT/dataTableYTStorySetup.d.ts +28 -0
  48. package/build/esm/components/DataTableYT/dataTableYTStorySetup.d.ts.map +1 -0
  49. package/build/esm/components/DataTableYT/dataTableYTStorySetup.js +56 -0
  50. package/build/esm/components/DataTableYT/dataTableYTStorySetup.js.map +1 -0
  51. package/build/esm/components/Hotkey/Hotkey.stories.d.ts +48 -0
  52. package/build/esm/components/Hotkey/Hotkey.stories.d.ts.map +1 -0
  53. package/build/esm/components/Hotkey/Hotkey.stories.js +81 -0
  54. package/build/esm/components/Hotkey/Hotkey.stories.js.map +1 -0
  55. package/build/esm/components/Label/Label.css +16 -16
  56. package/build/esm/components/Label/Label.css.map +1 -1
  57. package/build/esm/components/Label/Label.d.ts +3 -3
  58. package/build/esm/components/Label/Label.d.ts.map +1 -1
  59. package/build/esm/components/Label/Label.js +1 -0
  60. package/build/esm/components/Label/Label.js.map +1 -1
  61. package/build/esm/components/Label/Label.scss +26 -11
  62. package/build/esm/components/Label/Label.stories.d.ts +40 -0
  63. package/build/esm/components/Label/Label.stories.d.ts.map +1 -0
  64. package/build/esm/components/Label/Label.stories.js +62 -0
  65. package/build/esm/components/Label/Label.stories.js.map +1 -0
  66. package/build/esm/components/Label/LabelOnOff.d.ts +1 -1
  67. package/build/esm/components/Label/LabelOnOff.d.ts.map +1 -1
  68. package/build/esm/components/Label/LabelOnOff.js +1 -1
  69. package/build/esm/components/Label/LabelOnOff.js.map +1 -1
  70. package/build/esm/components/Label/__tests__/Label.visual.test.js +301 -0
  71. package/build/esm/components/Label/__tests__/Label.visual.test.js.map +1 -0
  72. package/build/esm/components/MetaTable/MetaTable.css +1 -1
  73. package/build/esm/components/MetaTable/MetaTable.css.map +1 -1
  74. package/build/esm/components/MetaTable/MetaTable.js +1 -1
  75. package/build/esm/components/MetaTable/MetaTable.js.map +1 -1
  76. package/build/esm/components/MetaTable/MetaTable.scss +1 -1
  77. package/build/esm/components/MetaTable/MetaTable.stories.d.ts +9 -0
  78. package/build/esm/components/MetaTable/MetaTable.stories.d.ts.map +1 -0
  79. package/build/esm/components/MetaTable/MetaTable.stories.js +29 -0
  80. package/build/esm/components/MetaTable/MetaTable.stories.js.map +1 -0
  81. package/build/esm/components/MetaTable/__tests__/MetaTable.visual.test.js +48 -0
  82. package/build/esm/components/MetaTable/__tests__/MetaTable.visual.test.js.map +1 -0
  83. package/build/esm/components/MetaTable/metaTableStorySetup.d.ts +8 -0
  84. package/build/esm/components/MetaTable/metaTableStorySetup.d.ts.map +1 -0
  85. package/build/esm/components/MetaTable/metaTableStorySetup.js +134 -0
  86. package/build/esm/components/MetaTable/metaTableStorySetup.js.map +1 -0
  87. package/build/esm/components/MetaTable/presets/erasure-replication.js +1 -1
  88. package/build/esm/components/MetaTable/presets/erasure-replication.js.map +1 -1
  89. package/build/esm/components/MetaTable/presets/helpers/commonFields.d.ts +2 -2
  90. package/build/esm/components/MetaTable/presets/helpers/commonFields.d.ts.map +1 -1
  91. package/build/esm/components/MetaTable/presets/helpers/commonFields.js.map +1 -1
  92. package/build/esm/components/MetaTable/presets/i18n/ru.json +1 -1
  93. package/build/esm/components/MetaTable/presets/main.d.ts +2 -2
  94. package/build/esm/components/MetaTable/presets/main.d.ts.map +1 -1
  95. package/build/esm/components/MetaTable/presets/main.js.map +1 -1
  96. package/build/esm/components/MetaTable/presets/presets.d.ts +3 -3
  97. package/build/esm/components/MetaTable/presets/presets.d.ts.map +1 -1
  98. package/build/esm/components/MetaTable/presets/presets.js.map +1 -1
  99. package/build/esm/components/MetaTable/presets/size.d.ts.map +1 -1
  100. package/build/esm/components/MetaTable/presets/size.js +1 -2
  101. package/build/esm/components/MetaTable/presets/size.js.map +1 -1
  102. package/build/esm/components/MetaTable/presets/ttl.d.ts +2 -2
  103. package/build/esm/components/MetaTable/presets/ttl.d.ts.map +1 -1
  104. package/build/esm/components/MetaTable/presets/ttl.js +10 -5
  105. package/build/esm/components/MetaTable/presets/ttl.js.map +1 -1
  106. package/build/esm/components/MetaTable/templates/RowsCount/RowsCount.css +1 -1
  107. package/build/esm/components/MetaTable/templates/RowsCount/RowsCount.css.map +1 -1
  108. package/build/esm/components/MetaTable/templates/RowsCount/RowsCount.js +3 -2
  109. package/build/esm/components/MetaTable/templates/RowsCount/RowsCount.js.map +1 -1
  110. package/build/esm/components/MetaTable/templates/RowsCount/RowsCount.scss +1 -1
  111. package/build/esm/components/MetaTable/templates/Template.d.ts +1 -1
  112. package/build/esm/components/MetaTable/templates/Template.d.ts.map +1 -1
  113. package/build/esm/components/MetaTable/templates/Template.js +8 -8
  114. package/build/esm/components/MetaTable/templates/Template.js.map +1 -1
  115. package/build/esm/components/MetaTable/templates/TemplateTime.d.ts.map +1 -1
  116. package/build/esm/components/MetaTable/templates/TemplateTime.js +1 -1
  117. package/build/esm/components/MetaTable/templates/TemplateTime.js.map +1 -1
  118. package/build/esm/components/NoContent/NoContent.stories.d.ts +44 -0
  119. package/build/esm/components/NoContent/NoContent.stories.d.ts.map +1 -0
  120. package/build/esm/components/NoContent/NoContent.stories.js +42 -0
  121. package/build/esm/components/NoContent/NoContent.stories.js.map +1 -0
  122. package/build/esm/components/NoContent/__tests__/NoContent.visual.test.js +90 -0
  123. package/build/esm/components/NoContent/__tests__/NoContent.visual.test.js.map +1 -0
  124. package/build/esm/components/SchemaDataType/DataType/DataType.css +2 -2
  125. package/build/esm/components/SchemaDataType/DataType/DataType.css.map +1 -1
  126. package/build/esm/components/SchemaDataType/DataType/DataType.scss +2 -2
  127. package/build/esm/components/SchemaDataType/DataType/DataType.stories.d.ts +9 -0
  128. package/build/esm/components/SchemaDataType/DataType/DataType.stories.d.ts.map +1 -0
  129. package/build/esm/components/SchemaDataType/DataType/DataType.stories.js +28 -0
  130. package/build/esm/components/SchemaDataType/DataType/DataType.stories.js.map +1 -0
  131. package/build/esm/components/SchemaDataType/DataType/__tests__/DataType.visual.test.js +51 -0
  132. package/build/esm/components/SchemaDataType/DataType/__tests__/DataType.visual.test.js.map +1 -0
  133. package/build/esm/components/SchemaDataType/DataType/dataTypeStorySetup.d.ts +9 -0
  134. package/build/esm/components/SchemaDataType/DataType/dataTypeStorySetup.d.ts.map +1 -0
  135. package/build/esm/components/SchemaDataType/DataType/dataTypeStorySetup.js +77 -0
  136. package/build/esm/components/SchemaDataType/DataType/dataTypeStorySetup.js.map +1 -0
  137. package/build/esm/components/Text/Text.css +8 -8
  138. package/build/esm/components/Text/Text.css.map +1 -1
  139. package/build/esm/components/Text/Text.scss +8 -8
  140. package/build/esm/components/Text/Text.stories.d.ts +37 -0
  141. package/build/esm/components/Text/Text.stories.d.ts.map +1 -0
  142. package/build/esm/components/Text/Text.stories.js +37 -0
  143. package/build/esm/components/Text/Text.stories.js.map +1 -0
  144. package/build/esm/components/Text/__tests__/Text.visual.test.js +89 -0
  145. package/build/esm/components/Text/__tests__/Text.visual.test.js.map +1 -0
  146. package/build/esm/components/Text/textStorySetup.d.ts +43 -0
  147. package/build/esm/components/Text/textStorySetup.d.ts.map +1 -0
  148. package/build/esm/components/Text/textStorySetup.js +149 -0
  149. package/build/esm/components/Text/textStorySetup.js.map +1 -0
  150. package/build/esm/components/Tooltip/Tooltip.stories.d.ts +48 -0
  151. package/build/esm/components/Tooltip/Tooltip.stories.d.ts.map +1 -0
  152. package/build/esm/components/Tooltip/Tooltip.stories.js +46 -0
  153. package/build/esm/components/Tooltip/Tooltip.stories.js.map +1 -0
  154. package/build/esm/components/Tooltip/__tests__/Tooltip.visual.test.js +64 -0
  155. package/build/esm/components/Tooltip/__tests__/Tooltip.visual.test.js.map +1 -0
  156. package/build/esm/components/YqlValue/YqlValue.d.ts +4 -7
  157. package/build/esm/components/YqlValue/YqlValue.d.ts.map +1 -1
  158. package/build/esm/components/YqlValue/YqlValue.js +13 -22
  159. package/build/esm/components/YqlValue/YqlValue.js.map +1 -1
  160. package/build/esm/components/YqlValue/YqlValue.stories.d.ts +15 -0
  161. package/build/esm/components/YqlValue/YqlValue.stories.d.ts.map +1 -0
  162. package/build/esm/components/YqlValue/YqlValue.stories.js +150 -0
  163. package/build/esm/components/YqlValue/YqlValue.stories.js.map +1 -0
  164. package/build/esm/components/YqlValue/__tests__/YqlValue.visual.test.js +56 -0
  165. package/build/esm/components/YqlValue/__tests__/YqlValue.visual.test.js.map +1 -0
  166. package/build/esm/components/YqlValue/yqlValueStorySetup.d.ts +24 -0
  167. package/build/esm/components/YqlValue/yqlValueStorySetup.d.ts.map +1 -0
  168. package/build/esm/components/YqlValue/yqlValueStorySetup.js +81 -0
  169. package/build/esm/components/YqlValue/yqlValueStorySetup.js.map +1 -0
  170. package/build/esm/index.d.ts +0 -2
  171. package/build/esm/index.d.ts.map +1 -1
  172. package/build/esm/index.js +0 -2
  173. package/build/esm/index.js.map +1 -1
  174. package/build/esm/internal/DefaultErrorBoundary/ErrorBoundary.css +2 -4
  175. package/build/esm/internal/DefaultErrorBoundary/ErrorBoundary.css.map +1 -1
  176. package/build/esm/internal/DefaultErrorBoundary/ErrorBoundary.scss +2 -2
  177. package/build/esm/internal/Yson/Yson.d.ts +26 -4
  178. package/build/esm/internal/Yson/Yson.d.ts.map +1 -1
  179. package/build/esm/internal/Yson/Yson.js +13 -21
  180. package/build/esm/internal/Yson/Yson.js.map +1 -1
  181. package/build/esm/modules/NavigationTable/NavigationTable.d.ts +9 -2
  182. package/build/esm/modules/NavigationTable/NavigationTable.d.ts.map +1 -1
  183. package/build/esm/modules/NavigationTable/NavigationTable.js +22 -5
  184. package/build/esm/modules/NavigationTable/NavigationTable.js.map +1 -1
  185. package/build/esm/modules/NavigationTable/NavigationTable.stories.d.ts +9 -0
  186. package/build/esm/modules/NavigationTable/NavigationTable.stories.d.ts.map +1 -0
  187. package/build/esm/modules/NavigationTable/NavigationTable.stories.js +42 -0
  188. package/build/esm/modules/NavigationTable/NavigationTable.stories.js.map +1 -0
  189. package/build/esm/modules/NavigationTable/PreviewTab.d.ts +6 -3
  190. package/build/esm/modules/NavigationTable/PreviewTab.d.ts.map +1 -1
  191. package/build/esm/modules/NavigationTable/PreviewTab.js +9 -6
  192. package/build/esm/modules/NavigationTable/PreviewTab.js.map +1 -1
  193. package/build/esm/modules/NavigationTable/SchemaTab.d.ts +2 -0
  194. package/build/esm/modules/NavigationTable/SchemaTab.d.ts.map +1 -1
  195. package/build/esm/modules/NavigationTable/SchemaTab.js +17 -10
  196. package/build/esm/modules/NavigationTable/SchemaTab.js.map +1 -1
  197. package/build/esm/modules/NavigationTable/__tests__/NavigationTable.visual.test.js +117 -0
  198. package/build/esm/modules/NavigationTable/__tests__/NavigationTable.visual.test.js.map +1 -0
  199. package/build/esm/modules/NavigationTable/index.d.ts +1 -1
  200. package/build/esm/modules/NavigationTable/index.d.ts.map +1 -1
  201. package/build/esm/modules/NavigationTable/index.js.map +1 -1
  202. package/build/esm/modules/NavigationTable/navigationTableStorySetup.d.ts +19 -0
  203. package/build/esm/modules/NavigationTable/navigationTableStorySetup.d.ts.map +1 -0
  204. package/build/esm/modules/NavigationTable/navigationTableStorySetup.js +75 -0
  205. package/build/esm/modules/NavigationTable/navigationTableStorySetup.js.map +1 -0
  206. package/build/esm/modules/NavigationTable/prepareColumns.d.ts +6 -1
  207. package/build/esm/modules/NavigationTable/prepareColumns.d.ts.map +1 -1
  208. package/build/esm/modules/NavigationTable/prepareColumns.js +9 -5
  209. package/build/esm/modules/NavigationTable/prepareColumns.js.map +1 -1
  210. package/build/esm/modules/index.d.ts +1 -1
  211. package/build/esm/modules/index.d.ts.map +1 -1
  212. package/build/esm/modules/index.js.map +1 -1
  213. package/build/esm/types/index.d.ts +1 -0
  214. package/build/esm/types/index.d.ts.map +1 -1
  215. package/build/esm/types/index.js.map +1 -1
  216. package/build/esm/types/interface-helpers-modules.d.ts +13 -0
  217. package/build/esm/{context/YtComponentsConfigContext.d.ts → types/navigationMeta.d.ts} +8 -34
  218. package/build/esm/types/navigationMeta.d.ts.map +1 -0
  219. package/build/esm/types/navigationMeta.js +2 -0
  220. package/build/esm/types/navigationMeta.js.map +1 -0
  221. package/build/esm/types/yt-types.d.ts +3 -0
  222. package/build/esm/types/yt-types.d.ts.map +1 -1
  223. package/build/esm/types/yt-types.js.map +1 -1
  224. package/build/esm/utils/hammer/format.d.ts +0 -2
  225. package/build/esm/utils/hammer/format.d.ts.map +1 -1
  226. package/build/esm/utils/hammer/format.js +0 -225
  227. package/build/esm/utils/hammer/format.js.map +1 -1
  228. package/build/esm/utils/hammer/index.d.ts +2 -2
  229. package/build/esm/utils/hammer/index.d.ts.map +1 -1
  230. package/build/esm/utils/hammer/index.js +2 -5
  231. package/build/esm/utils/hammer/index.js.map +1 -1
  232. package/build/esm/utils/index.d.ts +3 -2
  233. package/build/esm/utils/index.d.ts.map +1 -1
  234. package/build/esm/utils/index.js +3 -2
  235. package/build/esm/utils/index.js.map +1 -1
  236. package/build/esm/utils/ypath/index.d.ts +0 -1
  237. package/build/esm/utils/ypath/index.d.ts.map +1 -1
  238. package/build/esm/utils/ypath/index.js +0 -1
  239. package/build/esm/utils/ypath/index.js.map +1 -1
  240. package/package.json +29 -8
  241. package/src/styles/mixins.scss +11 -0
  242. package/build/esm/api/navigation/columns.d.ts +0 -31
  243. package/build/esm/api/navigation/columns.d.ts.map +0 -1
  244. package/build/esm/api/navigation/columns.js +0 -256
  245. package/build/esm/api/navigation/columns.js.map +0 -1
  246. package/build/esm/context/YtComponentsConfigContext.d.ts.map +0 -1
  247. package/build/esm/context/YtComponentsConfigContext.js +0 -64
  248. package/build/esm/context/YtComponentsConfigContext.js.map +0 -1
  249. package/build/esm/context/index.d.ts +0 -2
  250. package/build/esm/context/index.d.ts.map +0 -1
  251. package/build/esm/context/index.js +0 -2
  252. package/build/esm/context/index.js.map +0 -1
  253. package/build/esm/utils/ypath/appendInnerErrors.d.ts +0 -3
  254. package/build/esm/utils/ypath/appendInnerErrors.d.ts.map +0 -1
  255. package/build/esm/utils/ypath/appendInnerErrors.js +0 -16
  256. package/build/esm/utils/ypath/appendInnerErrors.js.map +0 -1
  257. package/build/esm/utils/ypath/ypath-base.d.ts +0 -9
  258. package/build/esm/utils/ypath/ypath-base.d.ts.map +0 -1
  259. package/build/esm/utils/ypath/ypath-base.js +0 -49
  260. package/build/esm/utils/ypath/ypath-base.js.map +0 -1
  261. package/build/esm/utils/ypath/ypath.d.ts +0 -4
  262. package/build/esm/utils/ypath/ypath.d.ts.map +0 -1
  263. package/build/esm/utils/ypath/ypath.js +0 -70
  264. package/build/esm/utils/ypath/ypath.js.map +0 -1
  265. package/build/esm/utils/ypath/ypath.spec.d.ts +0 -2
  266. package/build/esm/utils/ypath/ypath.spec.d.ts.map +0 -1
  267. package/build/esm/utils/ypath/ypath.spec.js +0 -116
  268. package/build/esm/utils/ypath/ypath.spec.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"names":["dataTypeStoryExamples","simple","name","optional","optionalMulti","optionalLevel","tagged","tags","withParams","params","tuple","complex","type","struct","key","nestedList","dataTypeVisualStoryCaseOrder","dataTypeStoryFrameStyle","minWidth","minHeight","padding","border","borderRadius"],"sources":["dataTypeStorySetup.ts"],"sourcesContent":["import type {CSSProperties} from 'react';\n\nimport type {DataTypeProps} from './DataType';\n\n/** Keys match Storybook `example` control; shared with Playwright visual tests. */\nexport type DataTypeStoryExampleKey =\n | 'simple'\n | 'optional'\n | 'optionalMulti'\n | 'tagged'\n | 'withParams'\n | 'tuple'\n | 'struct'\n | 'nestedList';\n\nexport const dataTypeStoryExamples: Record<DataTypeStoryExampleKey, DataTypeProps> = {\n simple: {name: 'String'},\n optional: {name: 'Int64', optional: true},\n optionalMulti: {name: 'Utf8', optional: true, optionalLevel: 3},\n tagged: {name: 'Json', tagged: true, tags: ['yson', 'meta']},\n withParams: {name: 'Decimal', params: [10, 2]},\n tuple: {\n name: 'Tuple',\n complex: true,\n type: [{name: 'String'}, {name: 'Bool'}, {name: 'Double'}],\n },\n struct: {\n name: 'Struct',\n complex: true,\n struct: [\n {key: 'id', type: {name: 'Int64'}},\n {key: 'payload', type: {name: 'Yson', optional: true}},\n ],\n },\n nestedList: {\n name: 'List',\n complex: true,\n type: [\n {\n name: 'Struct',\n complex: true,\n struct: [{key: 'ts', type: {name: 'Timestamp'}}],\n },\n ],\n },\n};\n\n/** Stable order for visual regression tests. */\nexport const dataTypeVisualStoryCaseOrder: DataTypeStoryExampleKey[] = [\n 'simple',\n 'optional',\n 'optionalMulti',\n 'tagged',\n 'withParams',\n 'tuple',\n 'struct',\n 'nestedList',\n];\n\nexport const dataTypeStoryFrameStyle: CSSProperties = {\n minWidth: 320,\n minHeight: 56,\n padding: 12,\n border: '1px dash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E,IAAI;QAAEF,IAAI,EAAE;UAACV,IAAI,EAAE;QAAW;MAAC,CAAC;IACnD,CAAC;EAET;AACJ,CAAC;;AAED;AACA,OAAO,IAAMc,4BAAuD,GAAG,CACnE,QAAQ,EACR,UAAU,EACV,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,YAAY,CACf;AAED,OAAO,IAAMC,uBAAsC,GAAG;EAClDC,QAAQ,EAAE,GAAG;EACbC,SAAS,EAAE,EAAE;EACbC,OAAO,EAAE,EAAE;EACXC,MAAM,EAAE,8CAA8C;EACtDC,YAAY,EAAE;AAClB,CAAC","ignoreList":[]}
@@ -9,29 +9,29 @@
9
9
  white-space: nowrap;
10
10
  }
11
11
  .yt-text_color_secondary {
12
- color: var(--secondary-text);
12
+ color: var(--secondary-text, var(--g-color-text-secondary));
13
13
  }
14
14
  .yt-text_color_success {
15
- color: var(--success-text);
15
+ color: var(--success-text, var(--g-color-text-positive));
16
16
  }
17
17
  .yt-text_color_info {
18
18
  color: var(--g-color-text-info);
19
19
  }
20
20
  .yt-text_color_warning {
21
- color: var(--warning-text);
21
+ color: var(--warning-text, var(--g-color-text-warning-heavy));
22
22
  }
23
23
  .yt-text_color_warning-light {
24
- color: var(--warning-color);
24
+ color: var(--warning-color, var(--g-color-text-warning));
25
25
  }
26
26
  .yt-text_color_danger {
27
- color: var(--danger-text);
27
+ color: var(--danger-text, var(--g-color-text-danger));
28
28
  }
29
29
  .yt-text_disabled {
30
- color: var(--disabled-link);
30
+ color: var(--disabled-link, var(--g-color-text-hint));
31
31
  cursor: inherit;
32
32
  }
33
33
  .yt-text_bold {
34
- font-weight: var(--yt-font-weight-bold);
34
+ font-weight: var(--yt-font-weight-bold, var(--g-text-accent-font-weight));
35
35
  }
36
36
  .yt-text_no-wrap {
37
37
  white-space: nowrap;
@@ -48,7 +48,7 @@
48
48
  .yt-text_escaped .unipika .escape {
49
49
  word-spacing: 5px;
50
50
  white-space: pre-wrap;
51
- background-color: var(--error-background);
51
+ background-color: var(--error-background, var(--g-color-base-danger-light));
52
52
  }
53
53
  .yt-text_escaped .unipika .string {
54
54
  position: relative;
@@ -1 +1 @@
1
- {"version":3,"sources":["Text.scss"],"names":[],"mappings":"AAEQ;EACI,iCAAA;EACA,eAAA;AADZ;AAKI;EACI,qBAAA;EACA,gBAAA;EACA,uBAAA;EACA,mBAAA;AAHR;AAOQ;EACI,4BAAA;AALZ;AAQQ;EACI,0BAAA;AANZ;AASQ;EACI,+BAAA;AAPZ;AAUQ;EACI,0BAAA;AARZ;AAWQ;EACI,2BAAA;AATZ;AAYQ;EACI,yBAAA;AAVZ;AAcI;EACI,2BAAA;EACA,eAAA;AAZR;AAeI;EACI,uCAAA;AAbR;AAgBI;EACI,mBAAA;AAdR;AAkBQ;EACI,eAAA;EACA,mBAAA;EACA,sCAAA;EACA,cAAA;AAhBZ;AAkBY;EACI,aAAA;AAhBhB;AAmBY;EACI,iBAAA;EACA,qBAAA;EACA,yCAAA;AAjBhB;AAoBY;EACI,kBAAA;EACA,cAAA;EACA,sBAAA;AAlBhB;AAuBI;EACI,0BAAA;AArBR","file":"Text.css","sourcesContent":[".yt-text {\n &_clickable {\n &:hover {\n color: var(--g-color-text-danger);\n cursor: pointer;\n }\n }\n\n &_ellipsis {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &_color {\n &_secondary {\n color: var(--secondary-text);\n }\n\n &_success {\n color: var(--success-text);\n }\n\n &_info {\n color: var(--g-color-text-info);\n }\n\n &_warning {\n color: var(--warning-text);\n }\n\n &_warning-light {\n color: var(--warning-color);\n }\n\n &_danger {\n color: var(--danger-text);\n }\n }\n\n &_disabled {\n color: var(--disabled-link);\n cursor: unset;\n }\n\n &_bold {\n font-weight: var(--yt-font-weight-bold);\n }\n\n &_no-wrap {\n white-space: nowrap;\n }\n\n &_escaped {\n & .unipika {\n display: inline;\n white-space: nowrap;\n font-family: var(--g-font-family-sans);\n color: inherit;\n\n .quote {\n display: none;\n }\n\n .escape {\n word-spacing: 5px;\n white-space: pre-wrap;\n background-color: var(--error-background);\n }\n\n & .string {\n position: relative;\n color: inherit;\n vertical-align: bottom;\n }\n }\n }\n\n &_capitalize {\n text-transform: capitalize;\n }\n}\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["Text.scss"],"names":[],"mappings":"AAEQ;EACI,iCAAA;EACA,eAAA;AADZ;AAKI;EACI,qBAAA;EACA,gBAAA;EACA,uBAAA;EACA,mBAAA;AAHR;AAOQ;EACI,2DAAA;AALZ;AAQQ;EACI,wDAAA;AANZ;AASQ;EACI,+BAAA;AAPZ;AAUQ;EACI,6DAAA;AARZ;AAWQ;EACI,wDAAA;AATZ;AAYQ;EACI,qDAAA;AAVZ;AAcI;EACI,qDAAA;EACA,eAAA;AAZR;AAeI;EACI,yEAAA;AAbR;AAgBI;EACI,mBAAA;AAdR;AAkBQ;EACI,eAAA;EACA,mBAAA;EACA,sCAAA;EACA,cAAA;AAhBZ;AAkBY;EACI,aAAA;AAhBhB;AAmBY;EACI,iBAAA;EACA,qBAAA;EACA,2EAAA;AAjBhB;AAoBY;EACI,kBAAA;EACA,cAAA;EACA,sBAAA;AAlBhB;AAuBI;EACI,0BAAA;AArBR","file":"Text.css","sourcesContent":[".yt-text {\n &_clickable {\n &:hover {\n color: var(--g-color-text-danger);\n cursor: pointer;\n }\n }\n\n &_ellipsis {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &_color {\n &_secondary {\n color: var(--secondary-text, var(--g-color-text-secondary));\n }\n\n &_success {\n color: var(--success-text, var(--g-color-text-positive));\n }\n\n &_info {\n color: var(--g-color-text-info);\n }\n\n &_warning {\n color: var(--warning-text, var(--g-color-text-warning-heavy));\n }\n\n &_warning-light {\n color: var(--warning-color, var(--g-color-text-warning));\n }\n\n &_danger {\n color: var(--danger-text, var(--g-color-text-danger));\n }\n }\n\n &_disabled {\n color: var(--disabled-link, var(--g-color-text-hint));\n cursor: unset;\n }\n\n &_bold {\n font-weight: var(--yt-font-weight-bold, var(--g-text-accent-font-weight));\n }\n\n &_no-wrap {\n white-space: nowrap;\n }\n\n &_escaped {\n & .unipika {\n display: inline;\n white-space: nowrap;\n font-family: var(--g-font-family-sans);\n color: inherit;\n\n .quote {\n display: none;\n }\n\n .escape {\n word-spacing: 5px;\n white-space: pre-wrap;\n background-color: var(--error-background, var(--g-color-base-danger-light));\n }\n\n & .string {\n position: relative;\n color: inherit;\n vertical-align: bottom;\n }\n }\n }\n\n &_capitalize {\n text-transform: capitalize;\n }\n}\n"],"sourceRoot":""}
@@ -15,11 +15,11 @@
15
15
 
16
16
  &_color {
17
17
  &_secondary {
18
- color: var(--secondary-text);
18
+ color: var(--secondary-text, var(--g-color-text-secondary));
19
19
  }
20
20
 
21
21
  &_success {
22
- color: var(--success-text);
22
+ color: var(--success-text, var(--g-color-text-positive));
23
23
  }
24
24
 
25
25
  &_info {
@@ -27,25 +27,25 @@
27
27
  }
28
28
 
29
29
  &_warning {
30
- color: var(--warning-text);
30
+ color: var(--warning-text, var(--g-color-text-warning-heavy));
31
31
  }
32
32
 
33
33
  &_warning-light {
34
- color: var(--warning-color);
34
+ color: var(--warning-color, var(--g-color-text-warning));
35
35
  }
36
36
 
37
37
  &_danger {
38
- color: var(--danger-text);
38
+ color: var(--danger-text, var(--g-color-text-danger));
39
39
  }
40
40
  }
41
41
 
42
42
  &_disabled {
43
- color: var(--disabled-link);
43
+ color: var(--disabled-link, var(--g-color-text-hint));
44
44
  cursor: unset;
45
45
  }
46
46
 
47
47
  &_bold {
48
- font-weight: var(--yt-font-weight-bold);
48
+ font-weight: var(--yt-font-weight-bold, var(--g-text-accent-font-weight));
49
49
  }
50
50
 
51
51
  &_no-wrap {
@@ -66,7 +66,7 @@
66
66
  .escape {
67
67
  word-spacing: 5px;
68
68
  white-space: pre-wrap;
69
- background-color: var(--error-background);
69
+ background-color: var(--error-background, var(--g-color-base-danger-light));
70
70
  }
71
71
 
72
72
  & .string {
@@ -0,0 +1,37 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { YTText } from './Text';
3
+ import type { TextProps } from './Text';
4
+ declare const meta: {
5
+ title: string;
6
+ component: typeof YTText;
7
+ tags: string[];
8
+ args: Pick<TextProps, "children" | "capitalize" | "bold" | "disabled" | "color" | "ellipsis" | "noWrap">;
9
+ argTypes: {
10
+ children: {
11
+ control: "text";
12
+ };
13
+ color: {
14
+ control: "select";
15
+ options: ("success" | "warning" | "danger" | "info" | "primary" | "secondary" | "warning-light" | undefined)[];
16
+ };
17
+ bold: {
18
+ control: "boolean";
19
+ };
20
+ noWrap: {
21
+ control: "boolean";
22
+ };
23
+ ellipsis: {
24
+ control: "boolean";
25
+ };
26
+ disabled: {
27
+ control: "boolean";
28
+ };
29
+ capitalize: {
30
+ control: "boolean";
31
+ };
32
+ };
33
+ };
34
+ export default meta;
35
+ type Story = StoryObj<typeof meta>;
36
+ export declare const YTTextStory: Story;
37
+ //# sourceMappingURL=Text.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/Text.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAO,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAC9B,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,QAAQ,CAAC;AAGtC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { YTText } from './Text';
2
+ import { textStoryDefaultArgs } from './textStorySetup';
3
+ var meta = {
4
+ title: 'Components/Text',
5
+ component: YTText,
6
+ tags: ['autodocs'],
7
+ args: textStoryDefaultArgs,
8
+ argTypes: {
9
+ children: {
10
+ control: 'text'
11
+ },
12
+ color: {
13
+ control: 'select',
14
+ options: [undefined, 'primary', 'secondary', 'success', 'info', 'warning', 'warning-light', 'danger']
15
+ },
16
+ bold: {
17
+ control: 'boolean'
18
+ },
19
+ noWrap: {
20
+ control: 'boolean'
21
+ },
22
+ ellipsis: {
23
+ control: 'boolean'
24
+ },
25
+ disabled: {
26
+ control: 'boolean'
27
+ },
28
+ capitalize: {
29
+ control: 'boolean'
30
+ }
31
+ }
32
+ };
33
+ export default meta;
34
+ export var YTTextStory = {
35
+ name: 'YTText'
36
+ };
37
+ // #sourceMappingURL=Text.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["YTText","textStoryDefaultArgs","meta","title","component","tags","args","argTypes","children","control","color","options","undefined","bold","noWrap","ellipsis","disabled","capitalize","YTTextStory","name"],"sources":["Text.stories.tsx"],"sourcesContent":["import type {Meta, StoryObj} from '@storybook/react';\n\nimport {YTText} from './Text';\nimport type {TextProps} from './Text';\nimport {textStoryDefaultArgs} from './textStorySetup';\n\nconst meta = {\n title: 'Components/Text',\n component: YTText,\n tags: ['autodocs'],\n args: textStoryDefaultArgs,\n argTypes: {\n children: {control: 'text'},\n color: {\n control: 'select',\n options: [\n undefined,\n 'primary',\n 'secondary',\n 'success',\n 'info',\n 'warning',\n 'warning-light',\n 'danger',\n ] satisfies Array<TextProps['color'] | undefined>,\n },\n bold: {control: 'boolean'},\n noWrap: {control: 'boolean'},\n ellipsis: {control: 'boolean'},\n disabled: {control: 'boolean'},\n capitalize: {control: 'boolean'},\n },\n} satisfies Meta<typeof YTText>;\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const YTTextStory: Story = {\n name: 'YTText',\n};\n"],"mappings":"AAEA,SAAQA,MAAM,QAAO,QAAQ;AAE7B,SAAQC,oBAAoB,QAAO,kBAAkB;AAErD,IAAMC,IAAI,GAAG;EACTC,KAAK,EAAE,iBAAiB;EACxBC,SAAS,EAAEJ,MAAM;EACjBK,IAAI,EAAE,CAAC,UAAU,CAAC;EAClBC,IAAI,EAAEL,oBAAoB;EAC1BM,QAAQ,EAAE;IACNC,QAAQ,EAAE;MAACC,OAAO,EAAE;IAAM,CAAC;IAC3BC,KAAK,EAAE;MACHD,OAAO,EAAE,QAAQ;MACjBE,OAAO,EAAE,CACLC,SAAS,EACT,SAAS,EACT,WAAW,EACX,SAAS,EACT,MAAM,EACN,SAAS,EACT,eAAe,EACf,QAAQ;IAEhB,CAAC;IACDC,IAAI,EAAE;MAACJ,OAAO,EAAE;IAAS,CAAC;IAC1BK,MAAM,EAAE;MAACL,OAAO,EAAE;IAAS,CAAC;IAC5BM,QAAQ,EAAE;MAACN,OAAO,EAAE;IAAS,CAAC;IAC9BO,QAAQ,EAAE;MAACP,OAAO,EAAE;IAAS,CAAC;IAC9BQ,UAAU,EAAE;MAACR,OAAO,EAAE;IAAS;EACnC;AACJ,CAA+B;AAE/B,eAAeP,IAAI;AAInB,OAAO,IAAMgB,WAAkB,GAAG;EAC9BC,IAAI,EAAE;AACV,CAAC","ignoreList":[]}
@@ -0,0 +1,89 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/regeneratorRuntime";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
+ import _createForOfIteratorHelper from "@babel/runtime/helpers/createForOfIteratorHelper";
4
+ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
5
+ import { test } from '../../../../playwright-components/core';
6
+ import { Bold, Escaped, NoWrap, Secondary, SecondaryBold, Warning, WarningLight, YTText } from '../Text';
7
+ import { textStoryFrameStyle, textVisualStoryCases } from '../textStorySetup';
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ var renderTextCase = function renderTextCase(c) {
10
+ switch (c.kind) {
11
+ case 'yt-text':
12
+ return /*#__PURE__*/_jsx(YTText, _objectSpread({}, c.props));
13
+ case 'Secondary':
14
+ return /*#__PURE__*/_jsx(Secondary, {
15
+ disabled: c.disabled,
16
+ children: c.children
17
+ });
18
+ case 'Bold':
19
+ return /*#__PURE__*/_jsx(Bold, {
20
+ children: c.children
21
+ });
22
+ case 'SecondaryBold':
23
+ return /*#__PURE__*/_jsx(SecondaryBold, {
24
+ children: c.children
25
+ });
26
+ case 'Warning':
27
+ return /*#__PURE__*/_jsx(Warning, {
28
+ children: c.children
29
+ });
30
+ case 'WarningLight':
31
+ return /*#__PURE__*/_jsx(WarningLight, {
32
+ children: c.children
33
+ });
34
+ case 'NoWrap':
35
+ return /*#__PURE__*/_jsx(NoWrap, {
36
+ children: c.children
37
+ });
38
+ case 'Escaped':
39
+ return /*#__PURE__*/_jsx(Escaped, {
40
+ text: c.text
41
+ });
42
+ default:
43
+ {
44
+ var _exhaustive = c;
45
+ return _exhaustive;
46
+ }
47
+ }
48
+ };
49
+ var _iterator = _createForOfIteratorHelper(textVisualStoryCases),
50
+ _step;
51
+ try {
52
+ var _loop = function _loop() {
53
+ var storyCase = _step.value;
54
+ test("Text: ".concat(storyCase.id), /*#__PURE__*/function () {
55
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
56
+ var mount, expectScreenshot, innerStyle;
57
+ return _regeneratorRuntime().wrap(function (_context) {
58
+ while (1) switch (_context.prev = _context.next) {
59
+ case 0:
60
+ mount = _ref.mount, expectScreenshot = _ref.expectScreenshot;
61
+ innerStyle = storyCase.kind === 'yt-text' ? storyCase.wrapperStyle : undefined;
62
+ _context.next = 1;
63
+ return mount(/*#__PURE__*/_jsx("div", {
64
+ style: _objectSpread(_objectSpread({}, textStoryFrameStyle), innerStyle),
65
+ children: renderTextCase(storyCase)
66
+ }));
67
+ case 1:
68
+ _context.next = 2;
69
+ return expectScreenshot();
70
+ case 2:
71
+ case "end":
72
+ return _context.stop();
73
+ }
74
+ }, _callee);
75
+ }));
76
+ return function (_x) {
77
+ return _ref2.apply(this, arguments);
78
+ };
79
+ }());
80
+ };
81
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
82
+ _loop();
83
+ }
84
+ } catch (err) {
85
+ _iterator.e(err);
86
+ } finally {
87
+ _iterator.f();
88
+ }
89
+ // #sourceMappingURL=Text.visual.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["test","Bold","Escaped","NoWrap","Secondary","SecondaryBold","Warning","WarningLight","YTText","textStoryFrameStyle","textVisualStoryCases","jsx","_jsx","renderTextCase","c","kind","_objectSpread","props","disabled","children","text","_exhaustive","_iterator","_createForOfIteratorHelper","_step","_loop","storyCase","value","concat","id","_ref2","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_ref","mount","expectScreenshot","innerStyle","wrap","_context","prev","next","wrapperStyle","undefined","style","stop","_x","apply","arguments","s","n","done","err","e","f"],"sources":["Text.visual.test.tsx"],"sourcesContent":["import {type ReactElement} from 'react';\n\nimport {test} from '../../../../playwright-components/core';\n\nimport {\n Bold,\n Escaped,\n NoWrap,\n Secondary,\n SecondaryBold,\n Warning,\n WarningLight,\n YTText,\n} from '../Text';\nimport {type TextVisualCase, textStoryFrameStyle, textVisualStoryCases} from '../textStorySetup';\n\nconst renderTextCase = (c: TextVisualCase): ReactElement => {\n switch (c.kind) {\n case 'yt-text':\n return <YTText {...c.props} />;\n case 'Secondary':\n return <Secondary disabled={c.disabled}>{c.children}</Secondary>;\n case 'Bold':\n return <Bold>{c.children}</Bold>;\n case 'SecondaryBold':\n return <SecondaryBold>{c.children}</SecondaryBold>;\n case 'Warning':\n return <Warning>{c.children}</Warning>;\n case 'WarningLight':\n return <WarningLight>{c.children}</WarningLight>;\n case 'NoWrap':\n return <NoWrap>{c.children}</NoWrap>;\n case 'Escaped':\n return <Escaped text={c.text} />;\n default: {\n const _exhaustive: never = c;\n return _exhaustive;\n }\n }\n};\n\nfor (const storyCase of textVisualStoryCases) {\n test(`Text: ${storyCase.id}`, async ({mount, expectScreenshot}) => {\n const innerStyle = storyCase.kind === 'yt-text' ? storyCase.wrapperStyle : undefined;\n await mount(\n <div style={{...textStoryFrameStyle, ...innerStyle}}>{renderTextCase(storyCase)}</div>,\n );\n await expectScreenshot();\n });\n}\n"],"mappings":";;;;AAEA,SAAQA,IAAI,QAAO,wCAAwC;AAE3D,SACIC,IAAI,EACJC,OAAO,EACPC,MAAM,EACNC,SAAS,EACTC,aAAa,EACbC,OAAO,EACPC,YAAY,EACZC,MAAM,QACH,SAAS;AAChB,SAA6BC,mBAAmB,EAAEC,oBAAoB,QAAO,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEjG,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,CAAiB,EAAmB;EACxD,QAAQA,CAAC,CAACC,IAAI;IACV,KAAK,SAAS;MACV,oBAAOH,IAAA,CAACJ,MAAM,EAAAQ,aAAA,KAAKF,CAAC,CAACG,KAAK,CAAG,CAAC;IAClC,KAAK,WAAW;MACZ,oBAAOL,IAAA,CAACR,SAAS;QAACc,QAAQ,EAAEJ,CAAC,CAACI,QAAS;QAAAC,QAAA,EAAEL,CAAC,CAACK;MAAQ,CAAY,CAAC;IACpE,KAAK,MAAM;MACP,oBAAOP,IAAA,CAACX,IAAI;QAAAkB,QAAA,EAAEL,CAAC,CAACK;MAAQ,CAAO,CAAC;IACpC,KAAK,eAAe;MAChB,oBAAOP,IAAA,CAACP,aAAa;QAAAc,QAAA,EAAEL,CAAC,CAACK;MAAQ,CAAgB,CAAC;IACtD,KAAK,SAAS;MACV,oBAAOP,IAAA,CAACN,OAAO;QAAAa,QAAA,EAAEL,CAAC,CAACK;MAAQ,CAAU,CAAC;IAC1C,KAAK,cAAc;MACf,oBAAOP,IAAA,CAACL,YAAY;QAAAY,QAAA,EAAEL,CAAC,CAACK;MAAQ,CAAe,CAAC;IACpD,KAAK,QAAQ;MACT,oBAAOP,IAAA,CAACT,MAAM;QAAAgB,QAAA,EAAEL,CAAC,CAACK;MAAQ,CAAS,CAAC;IACxC,KAAK,SAAS;MACV,oBAAO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C;EACN,CAAC;EARD,KAAA3B,SAAA,CAAA4B,CAAA,MAAA1B,KAAA,GAAAF,SAAA,CAAA6B,CAAA,IAAAC,IAAA;IAAA3B,KAAA;EAAA;AAQC,SAAA4B,GAAA;EAAA/B,SAAA,CAAAgC,CAAA,CAAAD,GAAA;AAAA;EAAA/B,SAAA,CAAAiC,CAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,43 @@
1
+ import type { CSSProperties } from 'react';
2
+ import type { TextProps } from './Text';
3
+ /** Default Storybook args; shared with Playwright visual tests. */
4
+ export declare const textStoryDefaultArgs: Pick<TextProps, 'children' | 'color' | 'bold' | 'noWrap' | 'ellipsis' | 'disabled' | 'capitalize'>;
5
+ export declare const textStoryFrameStyle: CSSProperties;
6
+ export type TextVisualCase = {
7
+ kind: 'yt-text';
8
+ id: string;
9
+ props: TextProps;
10
+ wrapperStyle?: CSSProperties;
11
+ } | {
12
+ kind: 'Secondary';
13
+ id: string;
14
+ children: string;
15
+ disabled?: boolean;
16
+ } | {
17
+ kind: 'Bold';
18
+ id: string;
19
+ children: string;
20
+ } | {
21
+ kind: 'SecondaryBold';
22
+ id: string;
23
+ children: string;
24
+ } | {
25
+ kind: 'Warning';
26
+ id: string;
27
+ children: string;
28
+ } | {
29
+ kind: 'WarningLight';
30
+ id: string;
31
+ children: string;
32
+ } | {
33
+ kind: 'NoWrap';
34
+ id: string;
35
+ children: string;
36
+ } | {
37
+ kind: 'Escaped';
38
+ id: string;
39
+ text: string;
40
+ };
41
+ /** Stable order for visual regression (light + dark each). */
42
+ export declare const textVisualStoryCases: TextVisualCase[];
43
+ //# sourceMappingURL=textStorySetup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textStorySetup.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/textStorySetup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,QAAQ,C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149 @@
1
+ /** Default Storybook args; shared with Playwright visual tests. */
2
+ export var textStoryDefaultArgs = {
3
+ children: 'YTsaurus UI text',
4
+ color: undefined,
5
+ bold: false,
6
+ noWrap: false,
7
+ ellipsis: false,
8
+ disabled: false,
9
+ capitalize: false
10
+ };
11
+ export var textStoryFrameStyle = {
12
+ minWidth: 280,
13
+ padding: 12,
14
+ border: '1px dashed var(--g-color-line-generic, #ddd)',
15
+ borderRadius: 8
16
+ };
17
+ /** Stable order for visual regression (light + dark each). */
18
+ export var textVisualStoryCases = [{
19
+ kind: 'yt-text',
20
+ id: 'default',
21
+ props: {
22
+ children: 'YTsaurus UI text'
23
+ }
24
+ }, {
25
+ kind: 'yt-text',
26
+ id: 'color-secondary',
27
+ props: {
28
+ children: 'Secondary tone',
29
+ color: 'secondary'
30
+ }
31
+ }, {
32
+ kind: 'yt-text',
33
+ id: 'color-success',
34
+ props: {
35
+ children: 'Success',
36
+ color: 'success'
37
+ }
38
+ }, {
39
+ kind: 'yt-text',
40
+ id: 'color-info',
41
+ props: {
42
+ children: 'Info',
43
+ color: 'info'
44
+ }
45
+ }, {
46
+ kind: 'yt-text',
47
+ id: 'color-warning',
48
+ props: {
49
+ children: 'Warning',
50
+ color: 'warning'
51
+ }
52
+ }, {
53
+ kind: 'yt-text',
54
+ id: 'color-warning-light',
55
+ props: {
56
+ children: 'Warning light',
57
+ color: 'warning-light'
58
+ }
59
+ }, {
60
+ kind: 'yt-text',
61
+ id: 'color-danger',
62
+ props: {
63
+ children: 'Danger',
64
+ color: 'danger'
65
+ }
66
+ }, {
67
+ kind: 'yt-text',
68
+ id: 'bold',
69
+ props: {
70
+ children: 'Bold text',
71
+ bold: true
72
+ }
73
+ }, {
74
+ kind: 'yt-text',
75
+ id: 'disabled',
76
+ props: {
77
+ children: 'Disabled',
78
+ disabled: true
79
+ }
80
+ }, {
81
+ kind: 'yt-text',
82
+ id: 'secondary-disabled',
83
+ props: {
84
+ children: 'Secondary disabled',
85
+ color: 'secondary',
86
+ disabled: true
87
+ }
88
+ }, {
89
+ kind: 'yt-text',
90
+ id: 'capitalize',
91
+ props: {
92
+ children: 'capitalized words',
93
+ capitalize: true
94
+ }
95
+ }, {
96
+ kind: 'yt-text',
97
+ id: 'ellipsis',
98
+ props: {
99
+ children: 'Very long text that should be truncated with ellipsis in a narrow box',
100
+ ellipsis: true
101
+ },
102
+ wrapperStyle: {
103
+ maxWidth: 140
104
+ }
105
+ }, {
106
+ kind: 'yt-text',
107
+ id: 'no-wrap',
108
+ props: {
109
+ children: 'Single line: noWrap keeps this on one line',
110
+ noWrap: true
111
+ },
112
+ wrapperStyle: {
113
+ maxWidth: 200
114
+ }
115
+ }, {
116
+ kind: 'Secondary',
117
+ id: 'Secondary',
118
+ children: 'Secondary component'
119
+ }, {
120
+ kind: 'Secondary',
121
+ id: 'Secondary-disabled',
122
+ children: 'Secondary disabled',
123
+ disabled: true
124
+ }, {
125
+ kind: 'Bold',
126
+ id: 'Bold',
127
+ children: 'Bold component'
128
+ }, {
129
+ kind: 'SecondaryBold',
130
+ id: 'SecondaryBold',
131
+ children: 'Secondary bold'
132
+ }, {
133
+ kind: 'Warning',
134
+ id: 'Warning',
135
+ children: 'Warning component'
136
+ }, {
137
+ kind: 'WarningLight',
138
+ id: 'WarningLight',
139
+ children: 'Warning light component'
140
+ }, {
141
+ kind: 'NoWrap',
142
+ id: 'NoWrap',
143
+ children: 'NoWrap component: long line should not wrap'
144
+ }, {
145
+ kind: 'Escaped',
146
+ id: 'Escaped',
147
+ text: '{"message":"hello\\nworld","quotes":"\\"nested\\""}'
148
+ }];
149
+ // #sourceMappingURL=textStorySetup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["textStoryDefaultArgs","children","color","undefined","bold","noWrap","ellipsis","disabled","capitalize","textStoryFrameStyle","minWidth","padding","border","borderRadius","textVisualStoryCases","kind","id","props","wrapperStyle","maxWidth","text"],"sources":["textStorySetup.ts"],"sourcesContent":["import type {CSSProperties} from 'react';\n\nimport type {TextProps} from './Text';\n\n/** Default Storybook args; shared with Playwright visual tests. */\nexport const textStoryDefaultArgs: Pick<\n TextProps,\n 'children' | 'color' | 'bold' | 'noWrap' | 'ellipsis' | 'disabled' | 'capitalize'\n> = {\n children: 'YTsaurus UI text',\n color: undefined,\n bold: false,\n noWrap: false,\n ellipsis: false,\n disabled: false,\n capitalize: false,\n};\n\nexport const textStoryFrameStyle: CSSProperties = {\n minWidth: 280,\n padding: 12,\n border: '1px dashed var(--g-color-line-generic, #ddd)',\n borderRadius: 8,\n};\n\nexport type TextVisualCase =\n | {kind: 'yt-text'; id: string; props: TextProps; wrapperStyle?: CSSProperties}\n | {kind: 'Secondary'; id: string; children: string; disabled?: boolean}\n | {kind: 'Bold'; id: string; children: string}\n | {kind: 'SecondaryBold'; id: string; children: string}\n | {kind: 'Warning'; id: string; children: string}\n | {kind: 'WarningLight'; id: string; children: string}\n | {kind: 'NoWrap'; id: string; children: string}\n | {kind: 'Escaped'; id: string; text: string};\n\n/** Stable order for visual regression (light + dark each). */\nexport const textVisualStoryCases: TextVisualCase[] = [\n {kind: 'yt-text', id: 'default', props: {children: 'YTsaurus UI text'}},\n {\n kind: 'yt-text',\n id: 'color-secondary',\n props: {children: 'Secondary tone', color: 'secondary'},\n },\n {kind: 'yt-text', id: 'color-success', props: {children: 'Success', color: 'success'}},\n {kind: 'yt-text', id: 'color-info', props: {children: 'Info', color: 'info'}},\n {kind: 'yt-text', id: 'color-warning', props: {children: 'Warning', color: 'warning'}},\n {\n kind: 'yt-text',\n id: 'color-warning-light',\n props: {children: 'Warning light', color: 'warning-light'},\n },\n {kind: 'yt-text', id: 'color-danger', props: {children: 'Danger', color: 'danger'}},\n {kind: 'yt-text', id: 'bold', props: {children: 'Bold text', bold: true}},\n {kind: 'yt-text', id: 'disabled', props: {children: 'Disabled', disabled: true}},\n {\n kind: 'yt-text',\n id: 'secondary-disabled',\n props: {children: 'Secondary disabled', color: 'secondary', disabled: true},\n },\n {kind: 'yt-text', id: 'capitalize', props: {children: 'capitalized words', capitalize: true}},\n {\n kind: 'yt-text',\n id: 'ellipsis',\n props: {\n children: 'Very long text that should be truncated with ellipsis in a narrow box',\n ellipsis: true,\n },\n wrapperStyle: {maxWidth: 140},\n },\n {\n kind: 'yt-text',\n id: 'no-wrap',\n props: {children: 'Single line: noWrap keeps this on one line', noWrap: true},\n wrapperStyle: {maxWidth: 200},\n },\n {kind: 'Secondary', id: 'Secondary', children: 'Secondary component'},\n {kind: 'Secondary', id: 'Secondary-disabled', children: 'Secondary disabled', disabled: true},\n {kind: 'Bold', id: 'Bold', children: 'Bold component'},\n {kind: 'SecondaryBold', id: 'SecondaryBold', children: 'Secondary bold'},\n {kind: 'Warning', id: 'Warning', children: 'Warning component'},\n {kind: 'WarningLight', id: 'WarningLight', children: 'Warning light component'},\n {kind: 'NoWrap', id: 'NoWrap', children: 'NoWrap component: long line should not wrap'},\n {\n kind: 'Escaped',\n id: 'Escaped',\n text: '{\"message\":\"hello\\\\nworld\",\"quotes\":\"\\\\\"nested\\\\\"\"}',\n },\n];\n"],"mappings":"AAIA;AACA,OAAO,IAAMA,oBAGZ,GAAG;EACAC,QAAQ,EAAE,kBAAkB;EAC5BC,KAAK,EAAEC,SAAS;EAChBC,IAAI,EAAE,KAAK;EACXC,MAAM,EAAE,KAAK;EACbC,QAAQ,EAAE,KAAK;EACfC,QAAQ,EAAE,KAAK;EACfC,UAAU,EAAE;AAChB,CAAC;AAED,OAAO,IAAMC,mBAAkC,GAAG;EAC9CC,QAAQ,EAAE,GAAG;EACbC,OAAO,EAAE,EAAE;EACXC,MAAM,EAAE,8CAA8C;EACtDC,YAAY,EAAE;AAClB,CAAC;AAYD;AACA,OAAO,IAAMC,oBAAsC,GAAG,CAClD;EAACC,IAAI,EAAE,SAAS;EAAEC,EAAE,EAAE,SAAS;EAAEC,KAAK,EAAE;IAAChB,QAAQ,EAAE;EAAkB;AAAC,CAAC,EACvE;EACIc,IAAI,EAAE,SAAS;EACfC,EAAE,EAAE,i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AE,SAAS;EACbI,IAAI,EAAE;AACV,CAAC,CACJ","ignoreList":[]}
@@ -0,0 +1,48 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { Tooltip } from './Tooltip';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Tooltip;
6
+ tags: string[];
7
+ args: {
8
+ content: string;
9
+ children: string;
10
+ placement: "right";
11
+ openDelay: number;
12
+ closeDelay: number;
13
+ disabled: false;
14
+ useFlex: false;
15
+ ellipsis: false;
16
+ };
17
+ argTypes: {
18
+ content: {
19
+ control: "text";
20
+ };
21
+ children: {
22
+ control: "text";
23
+ };
24
+ placement: {
25
+ control: "inline-radio";
26
+ options: string[];
27
+ };
28
+ openDelay: {
29
+ control: "number";
30
+ };
31
+ closeDelay: {
32
+ control: "number";
33
+ };
34
+ disabled: {
35
+ control: "boolean";
36
+ };
37
+ useFlex: {
38
+ control: "boolean";
39
+ };
40
+ ellipsis: {
41
+ control: "boolean";
42
+ };
43
+ };
44
+ };
45
+ export default meta;
46
+ type Story = StoryObj<typeof meta>;
47
+ export declare const Default: Story;
48
+ //# sourceMappingURL=Tooltip.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAO,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BsB,CAAC;AAEjC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { Tooltip } from './Tooltip';
2
+ var meta = {
3
+ title: 'Components/Tooltip',
4
+ component: Tooltip,
5
+ tags: ['autodocs'],
6
+ args: {
7
+ content: 'Simple text',
8
+ children: 'Hover me',
9
+ placement: 'right',
10
+ openDelay: 400,
11
+ closeDelay: 400,
12
+ disabled: false,
13
+ useFlex: false,
14
+ ellipsis: false
15
+ },
16
+ argTypes: {
17
+ content: {
18
+ control: 'text'
19
+ },
20
+ children: {
21
+ control: 'text'
22
+ },
23
+ placement: {
24
+ control: 'inline-radio',
25
+ options: ['top', 'bottom', 'left', 'right']
26
+ },
27
+ openDelay: {
28
+ control: 'number'
29
+ },
30
+ closeDelay: {
31
+ control: 'number'
32
+ },
33
+ disabled: {
34
+ control: 'boolean'
35
+ },
36
+ useFlex: {
37
+ control: 'boolean'
38
+ },
39
+ ellipsis: {
40
+ control: 'boolean'
41
+ }
42
+ }
43
+ };
44
+ export default meta;
45
+ export var Default = {};
46
+ // #sourceMappingURL=Tooltip.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Tooltip","meta","title","component","tags","args","content","children","placement","openDelay","closeDelay","disabled","useFlex","ellipsis","argTypes","control","options","Default"],"sources":["Tooltip.stories.tsx"],"sourcesContent":["import type {Meta, StoryObj} from '@storybook/react';\n\nimport {Tooltip} from './Tooltip';\n\nconst meta = {\n title: 'Components/Tooltip',\n component: Tooltip,\n tags: ['autodocs'],\n args: {\n content: 'Simple text',\n children: 'Hover me',\n placement: 'right',\n openDelay: 400,\n closeDelay: 400,\n disabled: false,\n useFlex: false,\n ellipsis: false,\n },\n argTypes: {\n content: {control: 'text'},\n children: {control: 'text'},\n placement: {\n control: 'inline-radio',\n options: ['top', 'bottom', 'left', 'right'],\n },\n openDelay: {control: 'number'},\n closeDelay: {control: 'number'},\n disabled: {control: 'boolean'},\n useFlex: {control: 'boolean'},\n ellipsis: {control: 'boolean'},\n },\n} satisfies Meta<typeof Tooltip>;\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const Default: Story = {};\n"],"mappings":"AAEA,SAAQA,OAAO,QAAO,WAAW;AAEjC,IAAMC,IAAI,GAAG;EACTC,KAAK,EAAE,oBAAoB;EAC3BC,SAAS,EAAEH,OAAO;EAClBI,IAAI,EAAE,CAAC,UAAU,CAAC;EAClBC,IAAI,EAAE;IACFC,OAAO,EAAE,aAAa;IACtBC,QAAQ,EAAE,UAAU;IACpBC,SAAS,EAAE,OAAO;IAClBC,SAAS,EAAE,GAAG;IACdC,UAAU,EAAE,GAAG;IACfC,QAAQ,EAAE,KAAK;IACfC,OAAO,EAAE,KAAK;IACdC,QAAQ,EAAE;EACd,CAAC;EACDC,QAAQ,EAAE;IACNR,OAAO,EAAE;MAACS,OAAO,EAAE;IAAM,CAAC;IAC1BR,QAAQ,EAAE;MAACQ,OAAO,EAAE;IAAM,CAAC;IAC3BP,SAAS,EAAE;MACPO,OAAO,EAAE,cAAc;MACvBC,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO;IAC9C,CAAC;IACDP,SAAS,EAAE;MAACM,OAAO,EAAE;IAAQ,CAAC;IAC9BL,UAAU,EAAE;MAACK,OAAO,EAAE;IAAQ,CAAC;IAC/BJ,QAAQ,EAAE;MAACI,OAAO,EAAE;IAAS,CAAC;IAC9BH,OAAO,EAAE;MAACG,OAAO,EAAE;IAAS,CAAC;IAC7BF,QAAQ,EAAE;MAACE,OAAO,EAAE;IAAS;EACjC;AACJ,CAAgC;AAEhC,eAAed,IAAI;AAInB,OAAO,IAAMgB,OAAc,GAAG,CAAC,CAAC","ignoreList":[]}