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