@daisforge/ui 1.12.2 → 1.14.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 (395) hide show
  1. package/chunks/AnalyticalWidget-B6czTLSw.cjs +43 -0
  2. package/chunks/{AnalyticalWidget-CBi-2MtJ.mjs → AnalyticalWidget-BWggL9xa.mjs} +144 -144
  3. package/chunks/{ApprovalCenter-oACSjXxE.cjs → ApprovalCenter-DG3YvEkY.cjs} +1 -1
  4. package/chunks/{ApprovalCenter-ClCoA3cr.mjs → ApprovalCenter-XCXGHaEP.mjs} +2 -2
  5. package/chunks/{BlockTitle-CylSY2DM.cjs → BlockTitle-3YmyxJHJ.cjs} +1 -1
  6. package/chunks/{BlockTitle-DTaIqiFF.mjs → BlockTitle-DDWF1ZeV.mjs} +2 -2
  7. package/chunks/{Container-CV4sT-bB.mjs → Container-BlAaXm8V.mjs} +1 -1
  8. package/chunks/{Container-D8Bcg69e.cjs → Container-CJX4h6tb.cjs} +1 -1
  9. package/chunks/{EmptyState-Bct6Wrxv.mjs → EmptyState-BB3duGQw.mjs} +1 -1
  10. package/chunks/{EmptyState-BD6Ic-OX.cjs → EmptyState-Du-RIjie.cjs} +1 -1
  11. package/chunks/{FiltersActions-C3yWFtQT.mjs → FiltersActions-C38x0y5T.mjs} +4 -4
  12. package/chunks/{FiltersActions-D1aQXh5d.cjs → FiltersActions-CvAwGV9F.cjs} +1 -1
  13. package/chunks/{FormSegmentGroup-C8kROjlQ.mjs → FormSegmentGroup-9b3w4_KU.mjs} +1 -1
  14. package/chunks/{FormSegmentGroup-DIaBZRWv.cjs → FormSegmentGroup-DcOPPn3M.cjs} +1 -1
  15. package/chunks/{GridDND-rVSi0xX1.mjs → GridDND-BnK1dEhJ.mjs} +2 -2
  16. package/chunks/{GridDND-BP_H26We.cjs → GridDND-CVAlpElj.cjs} +1 -1
  17. package/chunks/{LeftPanel-CgexykUg.cjs → LeftPanel-Ciehaz28.cjs} +1 -1
  18. package/chunks/{LeftPanel-bKmeEOHx.mjs → LeftPanel-DuIinlBm.mjs} +1 -1
  19. package/chunks/ListOfFilters-Cji5UH2J.mjs +260 -0
  20. package/chunks/ListOfFilters-DNzfSG-p.cjs +1 -0
  21. package/chunks/{MassActions-D4nb1_gx.mjs → MassActions-BOG04zip.mjs} +3 -3
  22. package/chunks/{MassActions-BCgI08G9.cjs → MassActions-DCk9APKP.cjs} +1 -1
  23. package/chunks/{PageTitle-BC0PnHgQ.cjs → PageTitle-BIllremL.cjs} +1 -1
  24. package/chunks/{PageTitle-B0tuR3fU.mjs → PageTitle-CQ_6jZ0x.mjs} +2 -2
  25. package/chunks/{SplitView-OUGciQ51.cjs → SplitView-DdLshcIk.cjs} +1 -1
  26. package/chunks/{SplitView-C8de8YKV.mjs → SplitView-Dm62AAZj.mjs} +1 -1
  27. package/chunks/Stories-dFpUqS5T.mjs +673 -0
  28. package/chunks/Stories-e_CX_1CS.cjs +1 -0
  29. package/chunks/Table-CrJFfavU.cjs +31 -0
  30. package/chunks/{Table-Bj2se1hR.mjs → Table-f0CmcIhI.mjs} +1161 -1161
  31. package/chunks/{TableCanvas-Y53zQ7M0.mjs → TableCanvas-1bi1WWeP.mjs} +2561 -2548
  32. package/chunks/TableCanvas-DqF5YxEY.cjs +30 -0
  33. package/chunks/TableGlide-CGAh5x3Q.cjs +1 -0
  34. package/chunks/{TableGlide-CuBMIM6Q.mjs → TableGlide-DGKw3w0G.mjs} +2184 -2126
  35. package/chunks/{styles-Dd4uEa27.mjs → styles-BMXAIiBk.mjs} +1 -1
  36. package/chunks/{styles-kPI9R7DO.cjs → styles-DwCVRGsC.cjs} +1 -1
  37. package/chunks/{utils-C5SQhoON.mjs → utils-D4eJY8pa.mjs} +81 -74
  38. package/chunks/utils-DvDFSlCG.cjs +25 -0
  39. package/components/AiAgentPopover/index.cjs +1 -1
  40. package/components/AiAgentPopover/index.mjs +1 -1
  41. package/components/AnalyticalWidget/components/AnalyticalWidgetChips/AnalyticalWidgetChipsGroup.styled.d.ts +7 -0
  42. package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
  43. package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +1 -1
  44. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.cjs +1 -1
  45. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.mjs +1 -1
  46. package/components/AnalyticalWidget/index.cjs +1 -1
  47. package/components/AnalyticalWidget/index.mjs +1 -1
  48. package/components/ApprovalCenter/components/index.cjs +1 -1
  49. package/components/ApprovalCenter/components/index.mjs +1 -1
  50. package/components/ApprovalCenter/index.cjs +1 -1
  51. package/components/ApprovalCenter/index.mjs +1 -1
  52. package/components/AutocompleteSearch/index.cjs +1 -1
  53. package/components/AutocompleteSearch/index.mjs +2 -2
  54. package/components/BlockGradientScroll/index.cjs +1 -1
  55. package/components/BlockGradientScroll/index.mjs +1 -1
  56. package/components/BlockTitle/index.cjs +1 -1
  57. package/components/BlockTitle/index.mjs +1 -1
  58. package/components/BlockTitle/utils/index.cjs +1 -1
  59. package/components/BlockTitle/utils/index.mjs +1 -1
  60. package/components/Collapse/index.cjs +1 -1
  61. package/components/Collapse/index.mjs +1 -1
  62. package/components/Combobox/index.cjs +1 -1
  63. package/components/Combobox/index.mjs +1 -1
  64. package/components/EmptyState/components/index.cjs +1 -1
  65. package/components/EmptyState/components/index.mjs +1 -1
  66. package/components/EmptyState/index.cjs +1 -1
  67. package/components/EmptyState/index.mjs +1 -1
  68. package/components/GridDND/index.cjs +1 -1
  69. package/components/GridDND/index.mjs +1 -1
  70. package/components/GridDND/utils/index.cjs +1 -1
  71. package/components/GridDND/utils/index.mjs +1 -1
  72. package/components/IconButton/index.cjs +1 -1
  73. package/components/IconButton/index.mjs +1 -1
  74. package/components/LeftPanel/components/index.cjs +1 -1
  75. package/components/LeftPanel/components/index.mjs +1 -1
  76. package/components/LeftPanel/hooks/index.cjs +1 -1
  77. package/components/LeftPanel/hooks/index.mjs +1 -1
  78. package/components/LeftPanel/index.cjs +1 -1
  79. package/components/LeftPanel/index.mjs +1 -1
  80. package/components/LeftPanel/utils/index.cjs +1 -1
  81. package/components/LeftPanel/utils/index.mjs +1 -1
  82. package/components/ListOfFilters/index.cjs +1 -1
  83. package/components/ListOfFilters/index.mjs +1 -1
  84. package/components/ListOfFilters/useSyncTabsScrollArrows.d.ts +3 -0
  85. package/components/MassActions/hooks/index.cjs +1 -1
  86. package/components/MassActions/hooks/index.mjs +1 -1
  87. package/components/MassActions/index.cjs +1 -1
  88. package/components/MassActions/index.mjs +1 -1
  89. package/components/ModalDF/index.cjs +1 -1
  90. package/components/ModalDF/index.mjs +1 -1
  91. package/components/Notification/index.cjs +1 -1
  92. package/components/Notification/index.mjs +2 -2
  93. package/components/PageTitle/index.cjs +1 -1
  94. package/components/PageTitle/index.mjs +1 -1
  95. package/components/PageTitle/utils/index.cjs +1 -1
  96. package/components/PageTitle/utils/index.mjs +1 -1
  97. package/components/PopoverDF/index.cjs +1 -1
  98. package/components/PopoverDF/index.mjs +1 -1
  99. package/components/PopupDF/index.cjs +1 -1
  100. package/components/PopupDF/index.mjs +1 -1
  101. package/components/SplitView/index.cjs +1 -1
  102. package/components/SplitView/index.mjs +1 -1
  103. package/components/SplitView/utils/index.cjs +1 -1
  104. package/components/SplitView/utils/index.mjs +1 -1
  105. package/components/Stories/Stories.types.d.ts +1 -0
  106. package/components/Stories/components/StoriesBanner/index.cjs +1 -1
  107. package/components/Stories/components/StoriesBanner/index.mjs +1 -1
  108. package/components/Stories/components/StoriesContent/index.cjs +1 -1
  109. package/components/Stories/components/StoriesContent/index.mjs +1 -1
  110. package/components/Stories/components/StoriesPreview/index.cjs +1 -1
  111. package/components/Stories/components/StoriesPreview/index.mjs +1 -1
  112. package/components/Stories/components/StoriesProgress/index.cjs +1 -1
  113. package/components/Stories/components/StoriesProgress/index.mjs +1 -1
  114. package/components/Stories/components/StoriesViewer/index.cjs +1 -1
  115. package/components/Stories/components/StoriesViewer/index.mjs +1 -1
  116. package/components/Stories/index.cjs +1 -1
  117. package/components/Stories/index.mjs +1 -1
  118. package/components/Stories/store/StoriesContext.d.ts +1 -0
  119. package/components/Table/components/TableDropdown/index.cjs +1 -1
  120. package/components/Table/components/TableDropdown/index.mjs +1 -1
  121. package/components/Table/feature-collapse-table/index.cjs +1 -1
  122. package/components/Table/feature-collapse-table/index.mjs +1 -1
  123. package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
  124. package/components/Table/feature-column-control/ColumnsList/index.mjs +1 -1
  125. package/components/Table/feature-column-control/index.cjs +1 -1
  126. package/components/Table/feature-column-control/index.mjs +1 -1
  127. package/components/Table/feature-columns-grouping/index.cjs +1 -1
  128. package/components/Table/feature-columns-grouping/index.mjs +1 -1
  129. package/components/Table/feature-context-menu/index.cjs +1 -1
  130. package/components/Table/feature-context-menu/index.mjs +1 -1
  131. package/components/Table/feature-edit/index.cjs +1 -1
  132. package/components/Table/feature-edit/index.mjs +1 -1
  133. package/components/Table/feature-filtering/combobox/index.cjs +1 -1
  134. package/components/Table/feature-filtering/combobox/index.mjs +1 -1
  135. package/components/Table/feature-filtering/filter-list-block/index.cjs +1 -1
  136. package/components/Table/feature-filtering/filter-list-block/index.mjs +1 -1
  137. package/components/Table/feature-filtering/header-filter-button/index.cjs +1 -1
  138. package/components/Table/feature-filtering/header-filter-button/index.mjs +1 -1
  139. package/components/Table/feature-filtering/index.cjs +1 -1
  140. package/components/Table/feature-filtering/index.mjs +1 -1
  141. package/components/Table/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  142. package/components/Table/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  143. package/components/Table/feature-infinity-scroll/index.cjs +1 -1
  144. package/components/Table/feature-infinity-scroll/index.mjs +1 -1
  145. package/components/Table/feature-key-text/index.cjs +1 -1
  146. package/components/Table/feature-key-text/index.mjs +1 -1
  147. package/components/Table/feature-pagination/index.cjs +1 -1
  148. package/components/Table/feature-pagination/index.mjs +1 -1
  149. package/components/Table/feature-right-sidebar/index.cjs +1 -1
  150. package/components/Table/feature-right-sidebar/index.mjs +1 -1
  151. package/components/Table/feature-row-detail/index.cjs +1 -1
  152. package/components/Table/feature-row-detail/index.mjs +1 -1
  153. package/components/Table/feature-row-instruments/index.cjs +1 -1
  154. package/components/Table/feature-row-instruments/index.mjs +1 -1
  155. package/components/Table/feature-row-size/index.cjs +1 -1
  156. package/components/Table/feature-row-size/index.mjs +1 -1
  157. package/components/Table/feature-rows-grouping/index.cjs +1 -1
  158. package/components/Table/feature-rows-grouping/index.mjs +1 -1
  159. package/components/Table/feature-searching/index.cjs +1 -1
  160. package/components/Table/feature-searching/index.mjs +1 -1
  161. package/components/Table/feature-select-row/index.cjs +1 -1
  162. package/components/Table/feature-select-row/index.mjs +1 -1
  163. package/components/Table/feature-sorting/index.cjs +1 -1
  164. package/components/Table/feature-sorting/index.mjs +1 -1
  165. package/components/Table/feature-table-settings/index.cjs +1 -1
  166. package/components/Table/feature-table-settings/index.mjs +1 -1
  167. package/components/Table/feature-tree/index.cjs +1 -1
  168. package/components/Table/feature-tree/index.mjs +1 -1
  169. package/components/Table/index.cjs +1 -1
  170. package/components/Table/index.mjs +1 -1
  171. package/components/Table/renders/formatCell/index.cjs +1 -1
  172. package/components/Table/renders/formatCell/index.mjs +1 -1
  173. package/components/Table/styles/index.cjs +1 -1
  174. package/components/Table/styles/index.mjs +1 -1
  175. package/components/Table/table-hooks/index.cjs +1 -1
  176. package/components/Table/table-hooks/index.mjs +1 -1
  177. package/components/Table/types/index.cjs +1 -1
  178. package/components/Table/types/index.mjs +1 -1
  179. package/components/Table/utils/index.cjs +1 -1
  180. package/components/Table/utils/index.mjs +1 -1
  181. package/components/Table/widgets/control-block/index.cjs +1 -1
  182. package/components/Table/widgets/control-block/index.mjs +1 -1
  183. package/components/Table/widgets/control-block/right-side/index.cjs +1 -1
  184. package/components/Table/widgets/control-block/right-side/index.mjs +1 -1
  185. package/components/Table/widgets/index.cjs +1 -1
  186. package/components/Table/widgets/index.mjs +1 -1
  187. package/components/Table/widgets/mass-actions/index.cjs +1 -1
  188. package/components/Table/widgets/mass-actions/index.mjs +1 -1
  189. package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
  190. package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
  191. package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
  192. package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
  193. package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
  194. package/components/TableCanvas/TableGlideInstance/index.mjs +2 -2
  195. package/components/TableCanvas/TableGlideInstance/type.d.ts +2 -0
  196. package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
  197. package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
  198. package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
  199. package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
  200. package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
  201. package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
  202. package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
  203. package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
  204. package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
  205. package/components/TableCanvas/feature-cell-transfer/index.mjs +1 -1
  206. package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
  207. package/components/TableCanvas/feature-collapse-table/index.mjs +1 -1
  208. package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
  209. package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +1 -1
  210. package/components/TableCanvas/feature-column-control/index.cjs +1 -1
  211. package/components/TableCanvas/feature-column-control/index.mjs +1 -1
  212. package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
  213. package/components/TableCanvas/feature-columns-grouping/index.mjs +1 -1
  214. package/components/TableCanvas/feature-columns-grouping/useLastLvlColumnConfig.d.ts +1 -0
  215. package/components/TableCanvas/feature-content-state/index.cjs +1 -1
  216. package/components/TableCanvas/feature-content-state/index.mjs +1 -1
  217. package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
  218. package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
  219. package/components/TableCanvas/feature-edit/index.cjs +1 -1
  220. package/components/TableCanvas/feature-edit/index.mjs +1 -1
  221. package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
  222. package/components/TableCanvas/feature-filtering/combobox/index.mjs +1 -1
  223. package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
  224. package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
  225. package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
  226. package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
  227. package/components/TableCanvas/feature-filtering/index.cjs +1 -1
  228. package/components/TableCanvas/feature-filtering/index.mjs +1 -1
  229. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  230. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  231. package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
  232. package/components/TableCanvas/feature-infinity-scroll/index.mjs +1 -1
  233. package/components/TableCanvas/feature-key-text/index.cjs +1 -1
  234. package/components/TableCanvas/feature-key-text/index.mjs +1 -1
  235. package/components/TableCanvas/feature-notifications/index.cjs +1 -1
  236. package/components/TableCanvas/feature-notifications/index.mjs +1 -1
  237. package/components/TableCanvas/feature-pagination/index.cjs +1 -1
  238. package/components/TableCanvas/feature-pagination/index.mjs +1 -1
  239. package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
  240. package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
  241. package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
  242. package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
  243. package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
  244. package/components/TableCanvas/feature-popover-table/index.mjs +1 -1
  245. package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
  246. package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
  247. package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
  248. package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
  249. package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
  250. package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
  251. package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
  252. package/components/TableCanvas/feature-row-instruments/index.mjs +1 -1
  253. package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
  254. package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
  255. package/components/TableCanvas/feature-row-size/index.cjs +1 -1
  256. package/components/TableCanvas/feature-row-size/index.mjs +1 -1
  257. package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
  258. package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
  259. package/components/TableCanvas/feature-searching/index.cjs +1 -1
  260. package/components/TableCanvas/feature-searching/index.mjs +1 -1
  261. package/components/TableCanvas/feature-select-row/index.cjs +1 -1
  262. package/components/TableCanvas/feature-select-row/index.mjs +1 -1
  263. package/components/TableCanvas/feature-sorting/index.cjs +1 -1
  264. package/components/TableCanvas/feature-sorting/index.mjs +1 -1
  265. package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
  266. package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
  267. package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
  268. package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
  269. package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
  270. package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
  271. package/components/TableCanvas/feature-tree/index.cjs +1 -1
  272. package/components/TableCanvas/feature-tree/index.mjs +1 -1
  273. package/components/TableCanvas/index.cjs +1 -1
  274. package/components/TableCanvas/index.mjs +2 -2
  275. package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
  276. package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
  277. package/components/TableCanvas/styles/index.cjs +1 -1
  278. package/components/TableCanvas/styles/index.mjs +1 -1
  279. package/components/TableCanvas/table-hooks/index.cjs +1 -1
  280. package/components/TableCanvas/table-hooks/index.mjs +1 -1
  281. package/components/TableCanvas/types/column-config.type.d.ts +3 -0
  282. package/components/TableCanvas/types/columns-grouping.type.d.ts +8 -0
  283. package/components/TableCanvas/types/index.cjs +1 -1
  284. package/components/TableCanvas/types/index.mjs +1 -1
  285. package/components/TableCanvas/types/table-config.type.d.ts +3 -0
  286. package/components/TableCanvas/utils/index.cjs +1 -1
  287. package/components/TableCanvas/utils/index.mjs +2 -2
  288. package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
  289. package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
  290. package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
  291. package/components/TableCanvas/widgets/control-block/index.mjs +1 -1
  292. package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
  293. package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
  294. package/components/TableCanvas/widgets/index.cjs +1 -1
  295. package/components/TableCanvas/widgets/index.mjs +1 -1
  296. package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
  297. package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
  298. package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
  299. package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
  300. package/components/TableContract/index.cjs +1 -1
  301. package/components/TableContract/index.mjs +2 -2
  302. package/components/TableGlide/TableGlide.d.ts +1 -1
  303. package/components/TableGlide/hooks/selection/index.cjs +1 -1
  304. package/components/TableGlide/hooks/selection/index.mjs +1 -1
  305. package/components/TableGlide/index.cjs +1 -1
  306. package/components/TableGlide/index.mjs +1 -1
  307. package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
  308. package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +1 -1
  309. package/components/TableGlide/lib/canvas/cells/iconSprites/index.cjs +1 -1
  310. package/components/TableGlide/lib/canvas/cells/iconSprites/index.mjs +1 -1
  311. package/components/TableGlide/lib/canvas/cells/index.cjs +1 -1
  312. package/components/TableGlide/lib/canvas/cells/index.mjs +1 -1
  313. package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
  314. package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +1 -1
  315. package/components/TableGlide/lib/canvas/core/helpers/index.cjs +1 -1
  316. package/components/TableGlide/lib/canvas/core/helpers/index.mjs +1 -1
  317. package/components/TableGlide/lib/canvas/core/index.cjs +1 -1
  318. package/components/TableGlide/lib/canvas/core/index.mjs +1 -1
  319. package/components/TableGlide/lib/canvas/hooks/index.cjs +1 -1
  320. package/components/TableGlide/lib/canvas/hooks/index.mjs +1 -1
  321. package/components/TableGlide/lib/canvas/index.cjs +1 -1
  322. package/components/TableGlide/lib/canvas/index.mjs +1 -1
  323. package/components/TableGlide/lib/canvas/miniflex/index.cjs +1 -1
  324. package/components/TableGlide/lib/canvas/miniflex/index.mjs +1 -1
  325. package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
  326. package/components/TableGlide/lib/canvas/primitives/index.mjs +1 -1
  327. package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
  328. package/components/TableGlide/lib/canvas/utils/index.mjs +1 -1
  329. package/components/TableGlide/theming/index.cjs +1 -1
  330. package/components/TableGlide/theming/index.mjs +1 -1
  331. package/components/TableGlide/types.d.ts +3 -2
  332. package/components/TableTabs/index.cjs +1 -1
  333. package/components/TableTabs/index.mjs +1 -1
  334. package/components/Tooltip/index.cjs +1 -1
  335. package/components/Tooltip/index.mjs +1 -1
  336. package/components/TourWidget/index.cjs +1 -1
  337. package/components/TourWidget/index.mjs +2 -2
  338. package/components/Typography/index.cjs +1 -1
  339. package/components/Typography/index.mjs +1 -1
  340. package/components/Widget/index.cjs +1 -1
  341. package/components/Widget/index.mjs +2 -2
  342. package/formComponents/FormCombobox/index.cjs +1 -1
  343. package/formComponents/FormCombobox/index.mjs +1 -1
  344. package/formComponents/FormRadioGroupBox/index.cjs +1 -1
  345. package/formComponents/FormRadioGroupBox/index.mjs +1 -1
  346. package/formComponents/FormSegments/index.cjs +1 -1
  347. package/formComponents/FormSegments/index.mjs +1 -1
  348. package/formComponents/FormSwitch/index.cjs +1 -1
  349. package/formComponents/FormSwitch/index.mjs +1 -1
  350. package/index.cjs +1 -1
  351. package/index.mjs +137 -136
  352. package/layouts/Container/index.cjs +1 -1
  353. package/layouts/Container/index.mjs +1 -1
  354. package/layouts/Container/lib/utils/index.cjs +1 -1
  355. package/layouts/Container/lib/utils/index.mjs +1 -1
  356. package/layouts/ErrorPage/index.cjs +1 -1
  357. package/layouts/ErrorPage/index.mjs +1 -1
  358. package/layouts/FiltersActions/hooks/index.cjs +1 -1
  359. package/layouts/FiltersActions/hooks/index.mjs +1 -1
  360. package/layouts/FiltersActions/index.cjs +1 -1
  361. package/layouts/FiltersActions/index.mjs +1 -1
  362. package/layouts/Layout/index.cjs +1 -1
  363. package/layouts/Layout/index.mjs +1 -1
  364. package/layouts/PageLayout/index.cjs +1 -1
  365. package/layouts/PageLayout/index.mjs +1 -1
  366. package/mcp-data/component-index.json +45769 -0
  367. package/mixins/index.cjs +1 -1
  368. package/mixins/index.mjs +1 -1
  369. package/package.json +6 -6
  370. package/styles/index.cjs +1 -1
  371. package/styles/index.mjs +1 -1
  372. package/utils/breakpoint/index.cjs +1 -1
  373. package/utils/breakpoint/index.mjs +1 -1
  374. package/utils/clickStream/index.cjs +1 -1
  375. package/utils/clickStream/index.d.ts +2 -2
  376. package/utils/clickStream/index.mjs +6 -5
  377. package/utils/clickStream/types.d.ts +14 -1
  378. package/utils/clickStream/utils.d.ts +2 -1
  379. package/utils/eventBus/index.cjs +1 -1
  380. package/utils/eventBus/index.mjs +1 -1
  381. package/utils/hooks/index.cjs +1 -1
  382. package/utils/hooks/index.mjs +1 -1
  383. package/utils/index.cjs +1 -1
  384. package/utils/index.mjs +26 -25
  385. package/utils/styles/index.cjs +1 -1
  386. package/utils/styles/index.mjs +1 -1
  387. package/chunks/AnalyticalWidget-fBDe37Ur.cjs +0 -43
  388. package/chunks/ListOfFilters-DgInAZFi.cjs +0 -1
  389. package/chunks/ListOfFilters-IEPKSKxx.mjs +0 -243
  390. package/chunks/Stories--_pE4YtR.mjs +0 -668
  391. package/chunks/Stories-Dvh6rMeV.cjs +0 -1
  392. package/chunks/Table-CnWVNNoW.cjs +0 -31
  393. package/chunks/TableCanvas-eYhmqTbp.cjs +0 -30
  394. package/chunks/TableGlide-CvMz7x7a.cjs +0 -1
  395. package/chunks/utils-DKi1rqLX.cjs +0 -25
@@ -0,0 +1,673 @@
1
+ import { jsx as n, jsxs as H, Fragment as ve } from "react/jsx-runtime";
2
+ import { Spinner as be, IconButton as ne } from "@salutejs/sdds-finai";
3
+ import { IconDisclosureLeftOutline as Ie, IconDisclosureRightOutline as _e, IconClose as Ce } from "@salutejs/plasma-icons";
4
+ import { useRef as k, useEffect as A, useContext as Ne, createContext as Pe, useSyncExternalStore as ke, useState as ue, useCallback as ge, lazy as Te, forwardRef as Oe, Children as Re, useImperativeHandle as Ee, cloneElement as Ae, isValidElement as ze, Suspense as De } from "react";
5
+ import { createPortal as $e, flushSync as Be } from "react-dom";
6
+ import { E as Ge } from "./EmptyState-BB3duGQw.mjs";
7
+ import { n as Ve, x as Le, y as oe } from "./utils-D4eJY8pa.mjs";
8
+ import { surfaceSolidCard as je, onLightSurfaceTransparentDeep as Fe, onDarkSurfaceTransparentDeep as He, onLightSurfaceTransparentTertiary as Me, onDarkSurfaceTransparentTertiary as We, textAccent as Xe, shadowDownSoftL as Ye, textPrimary as Ze } from "@salutejs/sdds-themes/tokens/sdds_finai";
9
+ import y, { keyframes as L, css as fe, createGlobalStyle as Ke } from "styled-components";
10
+ import { a as qe } from "./AnalyticalWidget-BWggL9xa.mjs";
11
+ const Ue = ({
12
+ controller: e,
13
+ pauseHoldDelay: t,
14
+ tapPrevZone: o,
15
+ isOpen: r
16
+ }) => {
17
+ const i = k(), g = k(!1), d = k("next"), c = () => {
18
+ i.current && (clearTimeout(i.current), i.current = void 0);
19
+ }, w = (p) => {
20
+ const l = p.currentTarget.getBoundingClientRect(), I = l.width > 0 ? (p.clientX - l.left) / l.width : 1;
21
+ d.current = I < o ? "prev" : "next", g.current = !1, c(), i.current = setTimeout(() => {
22
+ g.current = !0, e.pause();
23
+ }, t);
24
+ }, b = () => {
25
+ if (c(), g.current) {
26
+ g.current = !1, e.resume();
27
+ return;
28
+ }
29
+ d.current === "prev" ? e.prev() : e.next();
30
+ }, a = () => {
31
+ c(), g.current && (g.current = !1, e.resume());
32
+ };
33
+ return A(() => {
34
+ if (!r)
35
+ return;
36
+ const p = (l) => {
37
+ l.key === "ArrowLeft" ? (l.preventDefault(), e.prev()) : l.key === "ArrowRight" ? (l.preventDefault(), e.next()) : l.key === "Escape" && (l.preventDefault(), e.close());
38
+ };
39
+ return window.addEventListener("keydown", p), () => window.removeEventListener("keydown", p);
40
+ }, [r, e]), {
41
+ onPointerDown: w,
42
+ onPointerUp: b,
43
+ onPointerLeave: a,
44
+ onPointerCancel: a
45
+ };
46
+ }, ye = Pe(null), Je = ye.Provider, q = () => {
47
+ const e = Ne(ye);
48
+ if (!e)
49
+ throw new Error("Компоненты Stories должны использоваться внутри <Stories>.");
50
+ return e;
51
+ }, U = (e) => ke(e.subscribe, e.getSnapshot, e.getSnapshot), C = {
52
+ root: "df-stories",
53
+ preview: "df-stories-preview",
54
+ previewRing: "df-stories-preview__ring",
55
+ previewGap: "df-stories-preview__gap",
56
+ previewBody: "df-stories-preview__body",
57
+ previewTitle: "df-stories-preview__title",
58
+ viewer: "df-stories-viewer",
59
+ overlay: "df-stories-viewer__overlay",
60
+ stage: "df-stories-viewer__stage",
61
+ banner: "df-stories-banner",
62
+ progress: "df-stories-progress",
63
+ progressItem: "df-stories-progress__item",
64
+ content: "df-stories-content",
65
+ action: "df-stories-banner__action",
66
+ arrowPrev: "df-stories-viewer__arrow-prev",
67
+ arrowNext: "df-stories-viewer__arrow-next",
68
+ close: "df-stories-viewer__close"
69
+ }, Qe = "linear-gradient(135deg, #08c6c9 0%, #99b0fe 100%)", et = "#ecf6fc", F = "df-stories-banner", K = {
70
+ /** Длительность показа сегмента по умолчанию, мс. */
71
+ duration: 5e3,
72
+ /** Порог удержания указателя, после которого включается пауза (мс). До него — тап-навигация. */
73
+ pauseHoldDelay: 200,
74
+ /** Доля ширины баннера слева, отвечающая за переход к предыдущему сегменту (⅓). */
75
+ tapPrevZone: 1 / 3,
76
+ /** Цвет оверлея (тот же, что у ModalDF). */
77
+ overlayColor: "#060a0c47",
78
+ /** z-index оверлея; баннер получает zIndex + 1. */
79
+ zIndex: 9e3
80
+ }, m = {
81
+ /** Диаметр круглого триггера, px. */
82
+ circle: 98,
83
+ /** Толщина каждого кольца (градиент / белый зазор), px. */
84
+ ring: 2,
85
+ /** Отступ от триггера до подписи, px. */
86
+ titleGap: 6,
87
+ /** Радиусы прямоугольного триггера: внешнее кольцо / белый зазор / тело. */
88
+ rectRadiusOuter: 12,
89
+ rectRadiusBody: 8,
90
+ /** Баннер. */
91
+ bannerMaxWidth: 430,
92
+ bannerMaxHeight: 900,
93
+ bannerRadius: 16,
94
+ bannerPadding: 28,
95
+ /** Внешний контейнер вьюера (баннер + просветы под стрелки). */
96
+ stageWidth: 558,
97
+ /** Прогресс-индикаторы. */
98
+ progressHeight: 4,
99
+ progressRadius: 2,
100
+ progressFillRadius: 6,
101
+ progressGap: 4
102
+ }, tt = "StoriesPreview", de = y.div.withConfig({
103
+ displayName: "StoriesContentstyled__StyledContent"
104
+ })(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:", ";"], je), nt = y.img.withConfig({
105
+ displayName: "StoriesContentstyled__StyledImage"
106
+ })(["width:100%;height:100%;object-fit:", ";opacity:", ";transition:opacity 0.2s ease;user-select:none;"], ({
107
+ $objectFit: e
108
+ }) => e, ({
109
+ $loaded: e
110
+ }) => e ? 1 : 0), ot = y.div.withConfig({
111
+ displayName: "StoriesContentstyled__StyledSpinner"
112
+ })(["position:absolute;display:flex;align-items:center;justify-content:center;"]), rt = y.div.withConfig({
113
+ displayName: "StoriesContentstyled__StyledErrorSlot"
114
+ })(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:", "px;"], m.bannerPadding), it = ({
115
+ slide: e,
116
+ status: t,
117
+ errorNode: o
118
+ }) => {
119
+ const r = e.objectFit ?? "cover", i = t === "loaded";
120
+ return t === "error" ? /* @__PURE__ */ n(de, { className: C.content, children: /* @__PURE__ */ n(rt, { children: o }) }) : /* @__PURE__ */ H(de, { className: C.content, children: [
121
+ /* @__PURE__ */ n(nt, { src: e.src, alt: "", draggable: !1, $objectFit: r, $loaded: i }),
122
+ t === "loading" ? /* @__PURE__ */ n(ot, { children: /* @__PURE__ */ n(be, { view: "default", size: "l" }) }) : null
123
+ ] });
124
+ }, ce = (e, t) => {
125
+ e && (e.style.transform = `scaleX(${t})`);
126
+ }, st = ({
127
+ fillRef: e,
128
+ active: t,
129
+ duration: o,
130
+ isPlaying: r,
131
+ isReady: i,
132
+ resetKey: g,
133
+ onComplete: d
134
+ }) => {
135
+ const c = k(0), w = k(d);
136
+ w.current = d, A(() => {
137
+ c.current = 0, ce(e.current, 0);
138
+ }, [g, e]), A(() => {
139
+ if (!t || !r || !i || o <= 0)
140
+ return;
141
+ let b = 0, a = performance.now();
142
+ const p = (l) => {
143
+ c.current += l - a, a = l;
144
+ const I = Math.min(1, c.current / o);
145
+ if (ce(e.current, I), I >= 1) {
146
+ w.current();
147
+ return;
148
+ }
149
+ b = requestAnimationFrame(p);
150
+ };
151
+ return b = requestAnimationFrame(p), () => cancelAnimationFrame(b);
152
+ }, [t, r, i, o, g, e]);
153
+ }, at = y.div.withConfig({
154
+ displayName: "StoriesProgressstyled__StyledProgress"
155
+ })(["display:flex;gap:", "px;width:100%;"], m.progressGap), lt = y.div.withConfig({
156
+ displayName: "StoriesProgressstyled__StyledItem"
157
+ })(["position:relative;flex:1 1 0;height:", "px;border-radius:", "px;overflow:hidden;background:", ";"], m.progressHeight, m.progressRadius, ({
158
+ $bg: e
159
+ }) => e), dt = y.span.withConfig({
160
+ displayName: "StoriesProgressstyled__StyledFill"
161
+ })(["position:absolute;inset:0;border-radius:", "px;background:", ";transform:scaleX(0);transform-origin:left center;will-change:transform;"], m.progressFillRadius, ({
162
+ $color: e
163
+ }) => e), ct = ({
164
+ isReady: e
165
+ }) => {
166
+ var z;
167
+ const {
168
+ store: t,
169
+ controller: o,
170
+ groups: r,
171
+ defaultDuration: i,
172
+ mode: g
173
+ } = q(), {
174
+ groupIndex: d,
175
+ slideIndex: c,
176
+ isPlaying: w,
177
+ isOpen: b
178
+ } = U(t), a = Ve(), l = (g ?? a) === "dark", I = l ? Me : We, S = l ? Fe : He, v = r[d], x = (v == null ? void 0 : v.slides) ?? [], $ = k(null), O = ((z = x[c]) == null ? void 0 : z.duration) ?? (v == null ? void 0 : v.defaultDuration) ?? i;
179
+ return st({
180
+ fillRef: $,
181
+ active: b,
182
+ duration: O,
183
+ isPlaying: w,
184
+ isReady: e,
185
+ resetKey: `${d}-${c}`,
186
+ onComplete: o.next
187
+ }), /* @__PURE__ */ n(at, { className: C.progress, children: x.map((B, R) => {
188
+ const E = B.id ?? `${d}-${R}`, P = R < c, j = R === c;
189
+ return /* @__PURE__ */ n(lt, { className: C.progressItem, $bg: P ? S : I, children: j ? /* @__PURE__ */ n(dt, { ref: $, $color: S }) : null }, E);
190
+ }) });
191
+ }, pt = L(["from{opacity:0;transform:scale(0.92) translateY(8px);}to{opacity:1;transform:scale(1) translateY(0);}"]), ut = L(["from{opacity:1;transform:scale(1) translateY(0);}to{opacity:0;transform:scale(0.96) translateY(6px);}"]), gt = y.div.withConfig({
192
+ displayName: "StoriesBannerstyled__StyledBanner"
193
+ })(["position:relative;height:100%;width:auto;aspect-ratio:", " / ", ";max-width:calc( 100vw - ", "px );border-radius:", "px;overflow:hidden;view-transition-name:", ";animation:", " ", " ease forwards;"], m.bannerMaxWidth, m.bannerMaxHeight, m.stageWidth - m.bannerMaxWidth, m.bannerRadius, F, ({
194
+ $closing: e
195
+ }) => e ? ut : pt, ({
196
+ $closing: e
197
+ }) => e ? "0.2s" : "0.24s"), ft = y.div.withConfig({
198
+ displayName: "StoriesBannerstyled__StyledTapLayer"
199
+ })(["position:absolute;inset:0;z-index:1;touch-action:none;"]), yt = y.div.withConfig({
200
+ displayName: "StoriesBannerstyled__StyledTop"
201
+ })(["position:absolute;top:0;left:0;right:0;z-index:2;padding:", "px;pointer-events:none;"], m.bannerPadding), mt = y.div.withConfig({
202
+ displayName: "StoriesBannerstyled__StyledBottom"
203
+ })(["position:absolute;bottom:0;left:0;right:0;z-index:2;padding:", "px;pointer-events:none;"], m.bannerPadding), St = y.div.withConfig({
204
+ displayName: "StoriesBannerstyled__StyledActionSlot"
205
+ })(["pointer-events:auto;"]), xt = ({
206
+ closing: e,
207
+ onAnimationEnd: t
208
+ }) => {
209
+ const {
210
+ store: o,
211
+ controller: r,
212
+ groups: i,
213
+ pauseHoldDelay: g,
214
+ tapPrevZone: d,
215
+ loadingDelay: c,
216
+ onError: w,
217
+ renderError: b
218
+ } = q(), {
219
+ groupIndex: a,
220
+ slideIndex: p,
221
+ isOpen: l
222
+ } = U(o), I = i[a], S = I == null ? void 0 : I.slides[p], {
223
+ status: v,
224
+ reload: x
225
+ } = Le(S == null ? void 0 : S.src, c), $ = Ue({
226
+ controller: r,
227
+ pauseHoldDelay: g,
228
+ tapPrevZone: d,
229
+ isOpen: l
230
+ }), O = k();
231
+ A(() => {
232
+ if (v !== "error" || !S)
233
+ return;
234
+ const P = `${a}-${p}`;
235
+ O.current !== P && (O.current = P, w == null || w({
236
+ groupIndex: a,
237
+ slideIndex: p,
238
+ slide: S,
239
+ retry: x
240
+ }));
241
+ }, [v, a, p, S, w, x]);
242
+ const z = (P) => P.stopPropagation(), B = (P) => {
243
+ P.target === P.currentTarget && t();
244
+ };
245
+ if (!S)
246
+ return null;
247
+ const {
248
+ footer: R
249
+ } = S, E = b ? b({
250
+ groupIndex: a,
251
+ slideIndex: p,
252
+ slide: S,
253
+ retry: x
254
+ }) : /* @__PURE__ */ n(Ge, { size: "s", variant: "loading", title: "Не удалось загрузить", centered: !0, buttons: [{
255
+ type: "link",
256
+ props: {
257
+ text: "Обновить",
258
+ view: "accent",
259
+ onClick: x
260
+ }
261
+ }] });
262
+ return /* @__PURE__ */ H(gt, { className: C.banner, $closing: e, onClick: z, onAnimationEnd: B, children: [
263
+ /* @__PURE__ */ n(it, { slide: S, status: v, errorNode: E }),
264
+ v === "error" ? null : /* @__PURE__ */ n(ft, { ...$ }),
265
+ /* @__PURE__ */ n(yt, { children: /* @__PURE__ */ n(ct, { isReady: v === "loaded" }) }),
266
+ R ? /* @__PURE__ */ n(mt, { children: /* @__PURE__ */ n(St, { className: C.action, children: R }) }) : null
267
+ ] });
268
+ }, re = {
269
+ ring: () => Qe,
270
+ fallback: () => et,
271
+ boxShadow: () => Ye
272
+ }, ie = (e, t) => e === "circle" ? "50%" : `${{
273
+ outer: m.rectRadiusOuter,
274
+ body: m.rectRadiusBody
275
+ }[t]}px`, ht = y.div.withConfig({
276
+ displayName: "StoriesPreviewstyled__StyledPreview"
277
+ })(["display:flex;flex-direction:column;align-items:center;width:", "px;"], ({
278
+ $width: e
279
+ }) => e), wt = y.button.withConfig({
280
+ displayName: "StoriesPreviewstyled__StyledTrigger"
281
+ })(["position:relative;display:block;box-sizing:border-box;width:", "px;height:", "px;padding:0;margin:0;border:0;background:transparent;cursor:pointer;border-radius:", ";outline:none;&:focus-visible{outline:2px solid ", ";outline-offset:2px;}"], ({
282
+ $width: e
283
+ }) => e, ({
284
+ $height: e
285
+ }) => e, ({
286
+ $shape: e
287
+ }) => ie(e, "outer"), Xe), vt = y.div.withConfig({
288
+ displayName: "StoriesPreviewstyled__StyledRing"
289
+ })(["position:absolute;inset:0;box-sizing:border-box;padding:", "px;background:", ";border-radius:", ";-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;"], m.ring, re.ring, ({
290
+ $shape: e
291
+ }) => ie(e, "outer")), bt = y.div.withConfig({
292
+ displayName: "StoriesPreviewstyled__StyledBody"
293
+ })(["position:absolute;inset:", "px;box-sizing:border-box;box-shadow:", ";background-color:", ";background-position:center;background-size:cover;background-repeat:no-repeat;", " border-radius:", ";"], ({
294
+ $viewed: e
295
+ }) => e ? 0 : m.ring * 2, re.boxShadow, re.fallback, ({
296
+ $image: e
297
+ }) => e && fe(["background-image:url('", "');"], e), ({
298
+ $shape: e,
299
+ $viewed: t
300
+ }) => ie(e, t ? "outer" : "body")), It = y.div.withConfig({
301
+ displayName: "StoriesPreviewstyled__StyledTitle"
302
+ })(["margin-top:", "px;width:100%;text-align:", ";& > *{width:100%;}"], m.titleGap, ({
303
+ $align: e
304
+ }) => e), me = (e) => {
305
+ var G;
306
+ const {
307
+ slides: t,
308
+ shape: o = "circle",
309
+ title: r,
310
+ titleProps: i,
311
+ image: g,
312
+ viewed: d = !1,
313
+ size: c = m.circle,
314
+ width: w,
315
+ height: b,
316
+ renderTrigger: a,
317
+ className: p,
318
+ // eslint-disable-next-line @typescript-eslint/naming-convention
319
+ __index: l = 0
320
+ } = e, {
321
+ store: I,
322
+ controller: S,
323
+ preloadOnHover: v
324
+ } = q(), x = U(I), $ = x.isOpen && x.groupIndex === l, O = o === "rect" ? w ?? c : c, z = o === "rect" ? b ?? c : c, B = () => S.open(l), R = () => {
325
+ v && t[0] && oe(t[0].src);
326
+ }, E = () => a ? a({
327
+ index: l,
328
+ viewed: d,
329
+ isActive: $
330
+ }) : /* @__PURE__ */ H(ve, { children: [
331
+ d ? null : /* @__PURE__ */ n(vt, { className: C.previewRing, $shape: o }),
332
+ /* @__PURE__ */ n(bt, { className: C.previewBody, $shape: o, $viewed: d, $image: g })
333
+ ] }), P = {
334
+ variant: "BodyXXS",
335
+ bold: !0,
336
+ lines: 2,
337
+ tooltipText: r,
338
+ color: Ze,
339
+ ...i,
340
+ children: r
341
+ }, j = ((G = i == null ? void 0 : i.style) == null ? void 0 : G.textAlign) ?? "center";
342
+ return /* @__PURE__ */ H(ht, { className: [C.preview, p].filter(Boolean).join(" "), "data-component": tt, $width: O, children: [
343
+ /* @__PURE__ */ n(wt, { type: "button", "aria-label": r, $width: O, $height: z, $shape: o, onClick: B, onMouseEnter: R, children: E() }),
344
+ r ? /* @__PURE__ */ n(It, { className: C.previewTitle, style: {
345
+ maxWidth: O
346
+ }, $align: j, children: /* @__PURE__ */ n(qe, { ...P }) }) : null
347
+ ] });
348
+ }, _t = L(["from{opacity:0;}to{opacity:1;}"]), Ct = L(["from{opacity:1;}to{opacity:0;}"]), Se = (e) => fe(["animation:", " ", " ease forwards;"], e ? Ct : _t, e ? "0.2s" : "0.24s"), Nt = y.div.withConfig({
349
+ displayName: "StoriesViewerstyled__StyledRoot"
350
+ })(["position:fixed;inset:0;z-index:", ";display:flex;align-items:center;justify-content:center;"], ({
351
+ $zIndex: e
352
+ }) => e), Pt = y.div.withConfig({
353
+ displayName: "StoriesViewerstyled__StyledOverlay"
354
+ })(["position:absolute;inset:0;background:", ";opacity:", ";transition:opacity 0.24s ease;"], ({
355
+ $color: e
356
+ }) => e, ({
357
+ $closing: e
358
+ }) => e ? 0 : 1), kt = y.div.withConfig({
359
+ displayName: "StoriesViewerstyled__StyledStage"
360
+ })(["position:relative;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:fit-content;max-width:min(", "px,100vw);height:min(", "px,calc(100vh - 32px));padding:0 ", "px;outline:none;"], m.stageWidth, m.bannerMaxHeight, (m.stageWidth - m.bannerMaxWidth) / 2), pe = y.div.withConfig({
361
+ displayName: "StoriesViewerstyled__StyledArrow"
362
+ })(["position:absolute;top:50%;", " z-index:3;transform:translateY(-50%);", ""], ({
363
+ $side: e
364
+ }) => e === "prev" ? "left: 0;" : "right: 0;", ({
365
+ $closing: e
366
+ }) => Se(e)), Tt = y.div.withConfig({
367
+ displayName: "StoriesViewerstyled__StyledClose"
368
+ })(["position:absolute;top:0;right:0;z-index:3;", ""], ({
369
+ $closing: e
370
+ }) => Se(e)), Ot = L(["from{transform:translateX(24px);opacity:0;}to{transform:translateX(0);opacity:1;}"]), Rt = L(["from{transform:translateX(0);opacity:1;}to{transform:translateX(-24px);opacity:0;}"]), Et = L(["from{transform:translateX(-24px);opacity:0;}to{transform:translateX(0);opacity:1;}"]), At = L(["from{transform:translateX(0);opacity:1;}to{transform:translateX(24px);opacity:0;}"]), zt = Ke(["::view-transition-old(", "),::view-transition-new(", "){animation-duration:0.3s;animation-timing-function:ease;}html[data-df-stories-dir='next']::view-transition-new(", "){animation-name:", ";}html[data-df-stories-dir='next']::view-transition-old(", "){animation-name:", ";}html[data-df-stories-dir='prev']::view-transition-new(", "){animation-name:", ";}html[data-df-stories-dir='prev']::view-transition-old(", "){animation-name:", ";}"], F, F, F, Ot, F, Rt, F, Et, F, At), Dt = () => {
371
+ var M;
372
+ const {
373
+ store: e,
374
+ controller: t,
375
+ groups: o,
376
+ overlay: r,
377
+ overlayColor: i,
378
+ zIndex: g,
379
+ groupTransition: d,
380
+ arrows: c,
381
+ hideDisabledArrows: w,
382
+ preloadGroup: b
383
+ } = q(), {
384
+ isOpen: a,
385
+ groupIndex: p,
386
+ slideIndex: l
387
+ } = U(e), [I, S] = ue(a), v = k(null);
388
+ A(() => {
389
+ a && S(!0);
390
+ }, [a]), A(() => {
391
+ var D;
392
+ a && ((D = v.current) == null || D.focus());
393
+ }, [a]), A(() => {
394
+ a && b(p);
395
+ }, [a, p, b]);
396
+ const x = I && !a, $ = ge(() => {
397
+ x && S(!1);
398
+ }, [x]);
399
+ if (!I || typeof document > "u")
400
+ return null;
401
+ const O = ((M = o[p]) == null ? void 0 : M.slides.length) ?? 0, z = p > 0 || l > 0, B = l + 1 < O || p + 1 < o.length, R = o.reduce((D, W) => D + W.slides.length, 0), E = c === "always" || c === "auto" && R > 1, P = E && (z || !w), j = E && (B || !w), G = (D) => D.stopPropagation(), Q = /* @__PURE__ */ H(Nt, { className: C.viewer, $zIndex: g, onClick: () => t.close(), children: [
402
+ r ? /* @__PURE__ */ n(Pt, { className: C.overlay, $color: i, $closing: x }) : null,
403
+ d === "slide" ? /* @__PURE__ */ n(zt, {}) : null,
404
+ /* @__PURE__ */ H(kt, { ref: v, tabIndex: -1, className: C.stage, children: [
405
+ P ? /* @__PURE__ */ n(pe, { className: C.arrowPrev, $side: "prev", $closing: x, onClick: G, children: /* @__PURE__ */ n(ne, { size: "s", view: "white", pin: "circle-circle", "aria-label": "Назад", disabled: !z, onClick: () => t.prev(), children: /* @__PURE__ */ n(Ie, { size: "s" }) }) }) : null,
406
+ /* @__PURE__ */ n(xt, { closing: x, onAnimationEnd: $ }),
407
+ j ? /* @__PURE__ */ n(pe, { className: C.arrowNext, $side: "next", $closing: x, onClick: G, children: /* @__PURE__ */ n(ne, { size: "s", view: "white", pin: "circle-circle", "aria-label": "Вперёд", disabled: !B, onClick: () => t.next(), children: /* @__PURE__ */ n(_e, { size: "s" }) }) }) : null,
408
+ /* @__PURE__ */ n(Tt, { className: C.close, $closing: x, onClick: G, children: /* @__PURE__ */ n(ne, { size: "s", view: "white", pin: "circle-circle", "aria-label": "Закрыть", onClick: () => t.close(), children: /* @__PURE__ */ n(Ce, { size: "s" }) }) })
409
+ ] })
410
+ ] });
411
+ return $e(Q, document.body);
412
+ }, $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
413
+ __proto__: null,
414
+ StoriesViewer: Dt
415
+ }, Symbol.toStringTag, { value: "Module" })), Bt = Te(() => Promise.resolve().then(() => $t).then((e) => ({
416
+ default: e.StoriesViewer
417
+ }))), Gt = (e) => {
418
+ const t = k(e);
419
+ return t.current = e, ge((o) => {
420
+ const r = t.current[o];
421
+ if (!r)
422
+ return;
423
+ r.slides.forEach((g) => oe(g.src));
424
+ const i = t.current[o + 1];
425
+ i != null && i.slides[0] && oe(i.slides[0].src);
426
+ }, []);
427
+ }, Vt = {
428
+ isOpen: !1,
429
+ groupIndex: 0,
430
+ slideIndex: 0,
431
+ isPlaying: !0,
432
+ direction: "next"
433
+ }, Lt = (e) => {
434
+ let t = {
435
+ ...Vt,
436
+ ...e
437
+ };
438
+ const o = /* @__PURE__ */ new Set();
439
+ return {
440
+ getSnapshot: () => t,
441
+ subscribe: (r) => (o.add(r), () => {
442
+ o.delete(r);
443
+ }),
444
+ setState: (r) => {
445
+ Object.keys(r).some((d) => t[d] !== r[d]) && (t = {
446
+ ...t,
447
+ ...r
448
+ }, o.forEach((d) => d()));
449
+ }
450
+ };
451
+ }, jt = () => typeof document < "u" && typeof document.startViewTransition == "function", Ft = (e, t) => {
452
+ const {
453
+ direction: o = "next",
454
+ enabled: r = !0
455
+ } = t ?? {};
456
+ if (!r || !jt()) {
457
+ e();
458
+ return;
459
+ }
460
+ const i = document;
461
+ i.documentElement.dataset.dfStoriesDir = o, i.startViewTransition(() => Be(e)).finished.finally(() => {
462
+ delete i.documentElement.dataset.dfStoriesDir;
463
+ });
464
+ }, Ht = y.div.withConfig({
465
+ displayName: "Storiesstyled__StyledStories"
466
+ })(["display:flex;align-items:flex-start;gap:16px;"]), Mt = (e) => ze(e) && e.type === me, Wt = () => {
467
+ const {
468
+ store: e
469
+ } = q(), {
470
+ isOpen: t
471
+ } = U(e), [o, r] = ue(t);
472
+ return A(() => {
473
+ t && r(!0);
474
+ }, [t]), o ? /* @__PURE__ */ n(De, { fallback: null, children: /* @__PURE__ */ n(Bt, {}) }) : null;
475
+ }, Xt = (e, t) => {
476
+ const {
477
+ children: o,
478
+ defaultDuration: r = K.duration,
479
+ open: i,
480
+ defaultOpen: g,
481
+ activeGroupIndex: d,
482
+ activeSlideIndex: c,
483
+ onOpenChange: w,
484
+ onGroupChange: b,
485
+ onSlideChange: a,
486
+ onComplete: p,
487
+ onGroupComplete: l,
488
+ onClose: I,
489
+ onError: S,
490
+ renderError: v,
491
+ overlay: x = !0,
492
+ overlayColor: $ = K.overlayColor,
493
+ zIndex: O = K.zIndex,
494
+ preloadOnHover: z = !0,
495
+ loadingDelay: B = 0,
496
+ pauseHoldDelay: R = K.pauseHoldDelay,
497
+ groupTransition: E = "slide",
498
+ arrows: P = "auto",
499
+ hideDisabledArrows: j = !0,
500
+ mode: G,
501
+ className: Q
502
+ } = e, M = Re.toArray(o).filter(Mt), D = M.map((_) => ({
503
+ slides: _.props.slides ?? [],
504
+ defaultDuration: _.props.defaultDuration
505
+ })), W = k();
506
+ W.current || (W.current = Lt({
507
+ isOpen: g ?? !1
508
+ }));
509
+ const u = W.current, J = k(D);
510
+ J.current = D;
511
+ const se = k({
512
+ groupTransition: E
513
+ });
514
+ se.current = {
515
+ groupTransition: E
516
+ };
517
+ const X = k({
518
+ onOpenChange: w,
519
+ onGroupChange: b,
520
+ onSlideChange: a,
521
+ onComplete: p,
522
+ onGroupComplete: l,
523
+ onClose: I
524
+ });
525
+ X.current = {
526
+ onOpenChange: w,
527
+ onGroupChange: b,
528
+ onSlideChange: a,
529
+ onComplete: p,
530
+ onGroupComplete: l,
531
+ onClose: I
532
+ };
533
+ const ee = k();
534
+ if (!ee.current) {
535
+ const _ = (s, N) => u.setState({
536
+ slideIndex: s,
537
+ direction: N,
538
+ isPlaying: !0
539
+ }), f = (s, N, T) => Ft(() => u.setState({
540
+ groupIndex: s,
541
+ slideIndex: N,
542
+ direction: T,
543
+ isPlaying: !0
544
+ }), {
545
+ direction: T,
546
+ enabled: se.current.groupTransition !== "none"
547
+ }), h = () => {
548
+ var s, N;
549
+ (N = (s = X.current).onComplete) == null || N.call(s), u.setState({
550
+ isOpen: !1,
551
+ isPlaying: !1
552
+ });
553
+ };
554
+ ee.current = {
555
+ open: (s, N) => {
556
+ const T = u.getSnapshot();
557
+ u.setState({
558
+ isOpen: !0,
559
+ groupIndex: s ?? T.groupIndex,
560
+ slideIndex: N ?? 0,
561
+ isPlaying: !0,
562
+ direction: "next"
563
+ });
564
+ },
565
+ close: () => u.setState({
566
+ isOpen: !1,
567
+ isPlaying: !1
568
+ }),
569
+ next: () => {
570
+ var T, V, Y, Z, le;
571
+ const s = u.getSnapshot(), N = ((T = J.current[s.groupIndex]) == null ? void 0 : T.slides.length) ?? 0;
572
+ s.slideIndex + 1 < N ? _(s.slideIndex + 1, "next") : s.groupIndex + 1 < J.current.length ? ((Y = (V = X.current).onGroupComplete) == null || Y.call(V, s.groupIndex), f(s.groupIndex + 1, 0, "next")) : ((le = (Z = X.current).onGroupComplete) == null || le.call(Z, s.groupIndex), h());
573
+ },
574
+ prev: () => {
575
+ const s = u.getSnapshot();
576
+ s.slideIndex > 0 ? _(s.slideIndex - 1, "prev") : s.groupIndex > 0 && f(s.groupIndex - 1, 0, "prev");
577
+ },
578
+ nextGroup: () => {
579
+ const s = u.getSnapshot();
580
+ s.groupIndex + 1 < J.current.length && f(s.groupIndex + 1, 0, "next");
581
+ },
582
+ prevGroup: () => {
583
+ const s = u.getSnapshot();
584
+ s.groupIndex > 0 && f(s.groupIndex - 1, 0, "prev");
585
+ },
586
+ goTo: (s, N) => {
587
+ const T = u.getSnapshot(), V = s < T.groupIndex ? "prev" : "next";
588
+ s === T.groupIndex ? _(N ?? 0, V) : f(s, N ?? 0, V);
589
+ },
590
+ pause: () => u.setState({
591
+ isPlaying: !1
592
+ }),
593
+ resume: () => u.setState({
594
+ isPlaying: !0
595
+ })
596
+ };
597
+ }
598
+ const te = ee.current, he = Gt(D), ae = k(u.getSnapshot());
599
+ A(() => u.subscribe(() => {
600
+ var s, N, T, V, Y, Z;
601
+ const _ = ae.current, f = u.getSnapshot();
602
+ ae.current = f;
603
+ const h = X.current;
604
+ if (_.isOpen !== f.isOpen) {
605
+ (s = h.onOpenChange) == null || s.call(h, f.isOpen, {
606
+ groupIndex: f.groupIndex
607
+ }), f.isOpen ? ((N = h.onGroupChange) == null || N.call(h, f.groupIndex), (T = h.onSlideChange) == null || T.call(h, f.groupIndex, f.slideIndex)) : (V = h.onClose) == null || V.call(h);
608
+ return;
609
+ }
610
+ f.isOpen && (_.groupIndex !== f.groupIndex && ((Y = h.onGroupChange) == null || Y.call(h, f.groupIndex)), (_.groupIndex !== f.groupIndex || _.slideIndex !== f.slideIndex) && ((Z = h.onSlideChange) == null || Z.call(h, f.groupIndex, f.slideIndex)));
611
+ }), [u]), A(() => {
612
+ i !== void 0 && u.setState({
613
+ isOpen: i
614
+ });
615
+ }, [i, u]), A(() => {
616
+ d !== void 0 && u.setState({
617
+ groupIndex: d
618
+ });
619
+ }, [d, u]), A(() => {
620
+ c !== void 0 && u.setState({
621
+ slideIndex: c
622
+ });
623
+ }, [c, u]), Ee(t, () => ({
624
+ ...te,
625
+ getState: () => {
626
+ const _ = u.getSnapshot();
627
+ return {
628
+ isOpen: _.isOpen,
629
+ groupIndex: _.groupIndex,
630
+ slideIndex: _.slideIndex,
631
+ isPlaying: _.isPlaying
632
+ };
633
+ }
634
+ }), [te, u]);
635
+ const we = {
636
+ store: u,
637
+ controller: te,
638
+ groups: D,
639
+ defaultDuration: r,
640
+ pauseHoldDelay: R,
641
+ tapPrevZone: K.tapPrevZone,
642
+ preloadGroup: he,
643
+ preloadOnHover: z,
644
+ loadingDelay: B,
645
+ overlay: x,
646
+ overlayColor: $,
647
+ zIndex: O,
648
+ groupTransition: E,
649
+ arrows: P,
650
+ hideDisabledArrows: j,
651
+ mode: G,
652
+ onError: S,
653
+ renderError: v
654
+ };
655
+ return /* @__PURE__ */ H(Je, { value: we, children: [
656
+ /* @__PURE__ */ n(Ht, { className: [C.root, Q].filter(Boolean).join(" "), children: M.map((_, f) => Ae(_, {
657
+ __index: f
658
+ })) }),
659
+ /* @__PURE__ */ n(Wt, {})
660
+ ] });
661
+ }, xe = Oe(Xt);
662
+ xe.Preview = me;
663
+ xe.displayName = "Stories";
664
+ export {
665
+ xe as S,
666
+ me as a,
667
+ it as b,
668
+ ct as c,
669
+ xt as d,
670
+ Dt as e,
671
+ Bt as f,
672
+ C as s
673
+ };