@daisforge/ui 1.12.0 → 1.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunks/AnalyticalWidget-CBi-2MtJ.mjs +528 -0
- package/chunks/AnalyticalWidget-fBDe37Ur.cjs +43 -0
- package/chunks/ApprovalCenter-ClCoA3cr.mjs +176 -0
- package/chunks/ApprovalCenter-oACSjXxE.cjs +1 -0
- package/chunks/BlockTitle-CylSY2DM.cjs +1 -0
- package/chunks/BlockTitle-DTaIqiFF.mjs +85 -0
- package/chunks/Container-CV4sT-bB.mjs +117 -0
- package/chunks/Container-D8Bcg69e.cjs +17 -0
- package/chunks/EmptyState-BD6Ic-OX.cjs +1 -0
- package/chunks/EmptyState-Bct6Wrxv.mjs +459 -0
- package/chunks/FiltersActions-C3yWFtQT.mjs +429 -0
- package/chunks/FiltersActions-D1aQXh5d.cjs +1 -0
- package/chunks/FormDatePickers-BefllAQ_.cjs +1 -0
- package/chunks/FormDatePickers-_soI8Uaa.mjs +503 -0
- package/chunks/FormSegmentGroup-C8kROjlQ.mjs +168 -0
- package/chunks/FormSegmentGroup-DIaBZRWv.cjs +1 -0
- package/chunks/FormTextArea-BBYV56iU.mjs +107 -0
- package/chunks/FormTextArea-C7KG9PXC.cjs +1 -0
- package/chunks/GridDND-BP_H26We.cjs +1 -0
- package/chunks/GridDND-rVSi0xX1.mjs +852 -0
- package/chunks/LeftPanel-CgexykUg.cjs +1 -0
- package/chunks/LeftPanel-bKmeEOHx.mjs +162 -0
- package/chunks/ListOfFilters-DgInAZFi.cjs +1 -0
- package/chunks/ListOfFilters-IEPKSKxx.mjs +243 -0
- package/chunks/MassActions-BCgI08G9.cjs +1 -0
- package/chunks/MassActions-D4nb1_gx.mjs +966 -0
- package/chunks/PageTitle-B0tuR3fU.mjs +123 -0
- package/chunks/PageTitle-BC0PnHgQ.cjs +1 -0
- package/chunks/SplitView-C8de8YKV.mjs +236 -0
- package/chunks/SplitView-OUGciQ51.cjs +12 -0
- package/chunks/Stories--_pE4YtR.mjs +668 -0
- package/chunks/Stories-Dvh6rMeV.cjs +1 -0
- package/chunks/Table-Bj2se1hR.mjs +7757 -0
- package/chunks/Table-CnWVNNoW.cjs +31 -0
- package/chunks/TableCanvas-Y53zQ7M0.mjs +11857 -0
- package/chunks/TableCanvas-eYhmqTbp.cjs +30 -0
- package/chunks/{TableGlide-B61Yi-Hs.mjs → TableGlide-CuBMIM6Q.mjs} +1417 -1554
- package/chunks/TableGlide-CvMz7x7a.cjs +1 -0
- package/chunks/styles-Dd4uEa27.mjs +128 -0
- package/chunks/styles-kPI9R7DO.cjs +2 -0
- package/chunks/{utils-BNelzuI-.mjs → utils-C5SQhoON.mjs} +126 -151
- package/chunks/utils-DKi1rqLX.cjs +25 -0
- package/chunks/{vendor-D8Dozc4m.cjs → vendor-BauZZ2hr.mjs} +7 -33
- package/chunks/{vendor-BG4P-329.mjs → vendor-C47eH0xy.cjs} +2 -634
- package/components/AiAgentPopover/index.cjs +2 -2
- package/components/AiAgentPopover/index.mjs +248 -373
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +1 -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/Autocomplete/index.cjs +1 -1
- package/components/Autocomplete/index.mjs +22 -35
- package/components/AutocompleteSearch/index.cjs +1 -1
- package/components/AutocompleteSearch/index.mjs +33 -83
- package/components/BlockGradientScroll/index.cjs +1 -1
- package/components/BlockGradientScroll/index.mjs +41 -53
- 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/Box/index.mjs +17 -7
- package/components/Collapse/index.cjs +1 -1
- package/components/Collapse/index.mjs +41 -62
- package/components/Combobox/index.cjs +1 -1
- package/components/Combobox/index.mjs +1 -1
- package/components/DatePicker/index.cjs +1 -1
- package/components/DatePicker/index.mjs +21 -59
- package/components/DrawerDF/index.cjs +1 -1
- package/components/DrawerDF/index.mjs +144 -391
- 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 +49 -112
- package/components/IconSvgSprite/index.cjs +1 -1
- package/components/IconSvgSprite/index.mjs +13 -49
- 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/MassActionsStatic/index.cjs +2 -2
- package/components/MassActionsStatic/index.mjs +13 -34
- package/components/ModalDF/index.cjs +1 -1
- package/components/ModalDF/index.mjs +169 -381
- package/components/ModalDFConfirmation/index.cjs +1 -1
- package/components/ModalDFConfirmation/index.mjs +66 -114
- package/components/Notification/index.cjs +1 -1
- package/components/Notification/index.mjs +16 -22
- package/components/NumberFormat/index.cjs +1 -1
- package/components/NumberFormat/index.mjs +24 -37
- package/components/NumberFormatAmount/index.cjs +1 -1
- package/components/NumberFormatAmount/index.mjs +12 -27
- 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 +125 -261
- package/components/PopupDF/index.cjs +1 -1
- package/components/PopupDF/index.mjs +141 -308
- 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/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/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/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 +3 -3
- 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-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/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-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/TableSettingsWithTabs.d.ts +25 -2
- package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.d.ts +1 -1
- package/components/TableCanvas/feature-table-settings/index.mjs +3 -2
- 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/types/table-config.type.d.ts +4 -0
- 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 +2 -2
- package/components/TableContract/index.mjs +540 -798
- 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/index.cjs +1 -1
- package/components/TableGlide/theming/index.mjs +1 -1
- package/components/TableTabs/index.cjs +1 -1
- package/components/TableTabs/index.mjs +136 -305
- package/components/TextArea/index.cjs +1 -1
- package/components/TextArea/index.mjs +26 -40
- package/components/TextField/index.cjs +1 -1
- package/components/TextField/index.mjs +38 -82
- package/components/Tooltip/index.cjs +1 -1
- package/components/Tooltip/index.mjs +1 -1
- package/components/TourWidget/index.cjs +15 -15
- package/components/TourWidget/index.mjs +176 -371
- 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 +151 -363
- package/formComponents/FormAutocomplete/index.cjs +1 -1
- package/formComponents/FormAutocomplete/index.mjs +63 -68
- package/formComponents/FormCheckbox/index.cjs +1 -1
- package/formComponents/FormCheckbox/index.mjs +27 -55
- package/formComponents/FormCombobox/index.cjs +1 -1
- package/formComponents/FormCombobox/index.mjs +61 -75
- package/formComponents/FormDatePickers/FormDatePicker/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePicker/index.mjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/index.mjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.mjs +1 -1
- package/formComponents/FormDatePickers/index.cjs +1 -1
- package/formComponents/FormDatePickers/index.mjs +1 -1
- package/formComponents/FormMask/index.cjs +1 -1
- package/formComponents/FormMask/index.mjs +61 -66
- package/formComponents/FormNumberFormat/index.cjs +1 -1
- package/formComponents/FormNumberFormat/index.mjs +56 -68
- package/formComponents/FormRadioGroupBox/index.cjs +1 -1
- package/formComponents/FormRadioGroupBox/index.mjs +71 -144
- package/formComponents/FormSegments/index.cjs +1 -1
- package/formComponents/FormSegments/index.mjs +1 -1
- package/formComponents/FormSelect/index.cjs +1 -1
- package/formComponents/FormSelect/index.mjs +62 -76
- package/formComponents/FormSwitch/index.cjs +1 -1
- package/formComponents/FormSwitch/index.mjs +25 -53
- package/formComponents/FormTextArea/index.cjs +1 -1
- package/formComponents/FormTextArea/index.mjs +1 -1
- package/formComponents/FormTextArea/ui/index.cjs +1 -1
- package/formComponents/FormTextArea/ui/index.mjs +1 -1
- package/formComponents/FormTextField/index.cjs +1 -1
- package/formComponents/FormTextField/index.mjs +70 -101
- package/index.cjs +1 -1
- package/index.mjs +21 -21
- 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 +81 -146
- 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 +5 -5
- package/layouts/Layout/index.mjs +78 -115
- package/layouts/PageLayout/index.cjs +2 -2
- package/layouts/PageLayout/index.mjs +15 -32
- package/mixins/index.cjs +1 -1
- package/mixins/index.mjs +1 -1
- package/package.json +1 -1
- package/shared/ui/Search/index.cjs +1 -1
- package/shared/ui/Search/index.mjs +30 -52
- package/shared/utils/inputs/index.cjs +1 -1
- package/shared/utils/inputs/index.mjs +33 -48
- package/styles/index.cjs +1 -1
- package/styles/index.mjs +1 -1
- package/themes/index.cjs +1 -1
- package/themes/index.mjs +1 -1
- 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/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/AnalyticalWidget-Ca_EuSTO.mjs +0 -868
- package/chunks/AnalyticalWidget-xgvWcsXx.cjs +0 -43
- package/chunks/ApprovalCenter-4aJlJfei.mjs +0 -531
- package/chunks/ApprovalCenter-Ij5NMkY-.cjs +0 -1
- package/chunks/BlockTitle-CgXVHok6.mjs +0 -180
- package/chunks/BlockTitle-SaP9H2PI.cjs +0 -1
- package/chunks/Container-ChuCs63G.cjs +0 -17
- package/chunks/Container-D8RdjkGo.mjs +0 -180
- package/chunks/EmptyState-BxUh2dhY.cjs +0 -1
- package/chunks/EmptyState-C0aHgxrn.mjs +0 -615
- package/chunks/FiltersActions-BekNxF-h.cjs +0 -1
- package/chunks/FiltersActions-CSucE-Ql.mjs +0 -637
- package/chunks/FormDatePickers-BCyW24Pr.cjs +0 -1
- package/chunks/FormDatePickers-DfdGdbwP.mjs +0 -538
- package/chunks/FormSegmentGroup-BKuHtPEn.cjs +0 -1
- package/chunks/FormSegmentGroup-DqFMVBr0.mjs +0 -268
- package/chunks/FormTextArea-CCrYx4pL.mjs +0 -159
- package/chunks/FormTextArea-sly1mY7h.cjs +0 -1
- package/chunks/GridDND-Bycwiynh.mjs +0 -1086
- package/chunks/GridDND-MsZt1fXJ.cjs +0 -1
- package/chunks/LeftPanel-C72uosX_.mjs +0 -303
- package/chunks/LeftPanel-Di-IqpZ_.cjs +0 -1
- package/chunks/ListOfFilters-B3bM1n4w.cjs +0 -1
- package/chunks/ListOfFilters-CPJGgMMc.mjs +0 -462
- package/chunks/MassActions-BbAXi3z9.cjs +0 -1
- package/chunks/MassActions-CZm8vqj8.mjs +0 -1352
- package/chunks/PageTitle-DEsijnDg.cjs +0 -1
- package/chunks/PageTitle-TusD1S2c.mjs +0 -282
- package/chunks/SplitView-BHdftJ9A.cjs +0 -12
- package/chunks/SplitView-Cd-xkxCe.mjs +0 -339
- package/chunks/Stories-CR_EUNO7.mjs +0 -1018
- package/chunks/Stories-CxsYx2OE.cjs +0 -1
- package/chunks/Table--05ONCr1.cjs +0 -31
- package/chunks/Table-l-P3NNUN.mjs +0 -11944
- package/chunks/TableCanvas-D-sndY82.cjs +0 -30
- package/chunks/TableCanvas-D4Bck7wv.mjs +0 -16900
- package/chunks/TableGlide-CbvaAM_H.cjs +0 -1
- package/chunks/styles-D8FDGdVz.mjs +0 -240
- package/chunks/styles-OR0WE1xm.cjs +0 -2
- package/chunks/utils-C93a2mD7.cjs +0 -25
|
@@ -1,1018 +0,0 @@
|
|
|
1
|
-
import { j as n } from "./vendor-BG4P-329.mjs";
|
|
2
|
-
import { Spinner as ye, IconButton as Q } from "@salutejs/sdds-finai";
|
|
3
|
-
import { IconDisclosureLeftOutline as ve, IconDisclosureRightOutline as he, IconClose as be } from "@salutejs/plasma-icons";
|
|
4
|
-
import { useRef as V, useEffect as T, useContext as Ne, createContext as ke, useSyncExternalStore as Ce, useState as ce, useCallback as ue, lazy as Ie, forwardRef as Ve, Children as _e, useImperativeHandle as Ee, cloneElement as Pe, isValidElement as De, Suspense as je } from "react";
|
|
5
|
-
import { createPortal as Te, flushSync as Oe } from "react-dom";
|
|
6
|
-
import { E as Re } from "./EmptyState-C0aHgxrn.mjs";
|
|
7
|
-
import { n as Be, x as Ae, y as ee } from "./utils-BNelzuI-.mjs";
|
|
8
|
-
import { surfaceSolidCard as ze, onLightSurfaceTransparentDeep as $e, onDarkSurfaceTransparentDeep as Ge, onLightSurfaceTransparentTertiary as Le, onDarkSurfaceTransparentTertiary as Fe, textAccent as He, shadowDownSoftL as Me, textPrimary as Xe } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
9
|
-
import x, { keyframes as z, css as me, createGlobalStyle as We } from "styled-components";
|
|
10
|
-
import { a as Ye } from "./AnalyticalWidget-Ca_EuSTO.mjs";
|
|
11
|
-
const Ze = ({
|
|
12
|
-
controller: e,
|
|
13
|
-
pauseHoldDelay: i,
|
|
14
|
-
tapPrevZone: t,
|
|
15
|
-
isOpen: o
|
|
16
|
-
}) => {
|
|
17
|
-
const r = V(), f = V(!1), d = V("next"), l = () => {
|
|
18
|
-
r.current && (clearTimeout(r.current), r.current = void 0);
|
|
19
|
-
}, y = (g) => {
|
|
20
|
-
const a = g.currentTarget.getBoundingClientRect(), v = a.width > 0 ? (g.clientX - a.left) / a.width : 1;
|
|
21
|
-
d.current = v < t ? "prev" : "next", f.current = !1, l(), r.current = setTimeout(() => {
|
|
22
|
-
f.current = !0, e.pause();
|
|
23
|
-
}, i);
|
|
24
|
-
}, m = () => {
|
|
25
|
-
if (l(), f.current) {
|
|
26
|
-
f.current = !1, e.resume();
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
d.current === "prev" ? e.prev() : e.next();
|
|
30
|
-
}, p = () => {
|
|
31
|
-
l(), f.current && (f.current = !1, e.resume());
|
|
32
|
-
};
|
|
33
|
-
return T(() => {
|
|
34
|
-
if (!o)
|
|
35
|
-
return;
|
|
36
|
-
const g = (a) => {
|
|
37
|
-
a.key === "ArrowLeft" ? (a.preventDefault(), e.prev()) : a.key === "ArrowRight" ? (a.preventDefault(), e.next()) : a.key === "Escape" && (a.preventDefault(), e.close());
|
|
38
|
-
};
|
|
39
|
-
return window.addEventListener("keydown", g), () => window.removeEventListener("keydown", g);
|
|
40
|
-
}, [o, e]), {
|
|
41
|
-
onPointerDown: y,
|
|
42
|
-
onPointerUp: m,
|
|
43
|
-
onPointerLeave: p,
|
|
44
|
-
onPointerCancel: p
|
|
45
|
-
};
|
|
46
|
-
}, pe = ke(null), Ke = pe.Provider, X = () => {
|
|
47
|
-
const e = Ne(pe);
|
|
48
|
-
if (!e)
|
|
49
|
-
throw new Error(
|
|
50
|
-
"Компоненты Stories должны использоваться внутри <Stories>."
|
|
51
|
-
);
|
|
52
|
-
return e;
|
|
53
|
-
}, W = (e) => Ce(e.subscribe, e.getSnapshot, e.getSnapshot), k = {
|
|
54
|
-
root: "df-stories",
|
|
55
|
-
preview: "df-stories-preview",
|
|
56
|
-
previewRing: "df-stories-preview__ring",
|
|
57
|
-
previewGap: "df-stories-preview__gap",
|
|
58
|
-
previewBody: "df-stories-preview__body",
|
|
59
|
-
previewTitle: "df-stories-preview__title",
|
|
60
|
-
viewer: "df-stories-viewer",
|
|
61
|
-
overlay: "df-stories-viewer__overlay",
|
|
62
|
-
stage: "df-stories-viewer__stage",
|
|
63
|
-
banner: "df-stories-banner",
|
|
64
|
-
progress: "df-stories-progress",
|
|
65
|
-
progressItem: "df-stories-progress__item",
|
|
66
|
-
content: "df-stories-content",
|
|
67
|
-
action: "df-stories-banner__action",
|
|
68
|
-
arrowPrev: "df-stories-viewer__arrow-prev",
|
|
69
|
-
arrowNext: "df-stories-viewer__arrow-next",
|
|
70
|
-
close: "df-stories-viewer__close"
|
|
71
|
-
}, qe = "linear-gradient(135deg, #08c6c9 0%, #99b0fe 100%)", Ue = "#ecf6fc", $ = "df-stories-banner", M = {
|
|
72
|
-
/** Длительность показа сегмента по умолчанию, мс. */
|
|
73
|
-
duration: 5e3,
|
|
74
|
-
/** Порог удержания указателя, после которого включается пауза (мс). До него — тап-навигация. */
|
|
75
|
-
pauseHoldDelay: 200,
|
|
76
|
-
/** Доля ширины баннера слева, отвечающая за переход к предыдущему сегменту (⅓). */
|
|
77
|
-
tapPrevZone: 1 / 3,
|
|
78
|
-
/** Цвет оверлея (тот же, что у ModalDF). */
|
|
79
|
-
overlayColor: "#060a0c47",
|
|
80
|
-
/** z-index оверлея; баннер получает zIndex + 1. */
|
|
81
|
-
zIndex: 9e3
|
|
82
|
-
}, N = {
|
|
83
|
-
/** Диаметр круглого триггера, px. */
|
|
84
|
-
circle: 98,
|
|
85
|
-
/** Толщина каждого кольца (градиент / белый зазор), px. */
|
|
86
|
-
ring: 2,
|
|
87
|
-
/** Отступ от триггера до подписи, px. */
|
|
88
|
-
titleGap: 6,
|
|
89
|
-
/** Радиусы прямоугольного триггера: внешнее кольцо / белый зазор / тело. */
|
|
90
|
-
rectRadiusOuter: 12,
|
|
91
|
-
rectRadiusBody: 8,
|
|
92
|
-
/** Баннер. */
|
|
93
|
-
bannerMaxWidth: 430,
|
|
94
|
-
bannerMaxHeight: 900,
|
|
95
|
-
bannerRadius: 16,
|
|
96
|
-
bannerPadding: 28,
|
|
97
|
-
/** Внешний контейнер вьюера (баннер + просветы под стрелки). */
|
|
98
|
-
stageWidth: 558,
|
|
99
|
-
/** Прогресс-индикаторы. */
|
|
100
|
-
progressHeight: 4,
|
|
101
|
-
progressRadius: 2,
|
|
102
|
-
progressFillRadius: 6,
|
|
103
|
-
progressGap: 4
|
|
104
|
-
}, Je = "StoriesPreview", ae = x.div.withConfig({
|
|
105
|
-
displayName: "StoriesContentstyled__StyledContent"
|
|
106
|
-
})(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:", ";"], ze), Qe = x.img.withConfig({
|
|
107
|
-
displayName: "StoriesContentstyled__StyledImage"
|
|
108
|
-
})(["width:100%;height:100%;object-fit:", ";opacity:", ";transition:opacity 0.2s ease;user-select:none;"], ({
|
|
109
|
-
$objectFit: e
|
|
110
|
-
}) => e, ({
|
|
111
|
-
$loaded: e
|
|
112
|
-
}) => e ? 1 : 0), en = x.div.withConfig({
|
|
113
|
-
displayName: "StoriesContentstyled__StyledSpinner"
|
|
114
|
-
})(["position:absolute;display:flex;align-items:center;justify-content:center;"]), nn = x.div.withConfig({
|
|
115
|
-
displayName: "StoriesContentstyled__StyledErrorSlot"
|
|
116
|
-
})(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:", "px;"], N.bannerPadding), tn = ({
|
|
117
|
-
slide: e,
|
|
118
|
-
status: i,
|
|
119
|
-
errorNode: t
|
|
120
|
-
}) => {
|
|
121
|
-
const o = e.objectFit ?? "cover", r = i === "loaded";
|
|
122
|
-
return i === "error" ? /* @__PURE__ */ n.jsxDEV(ae, { className: k.content, children: /* @__PURE__ */ n.jsxDEV(nn, { children: t }, void 0, !1, {
|
|
123
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesContent/StoriesContent.tsx",
|
|
124
|
-
lineNumber: 37,
|
|
125
|
-
columnNumber: 9
|
|
126
|
-
}, void 0) }, void 0, !1, {
|
|
127
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesContent/StoriesContent.tsx",
|
|
128
|
-
lineNumber: 36,
|
|
129
|
-
columnNumber: 7
|
|
130
|
-
}, void 0) : /* @__PURE__ */ n.jsxDEV(ae, { className: k.content, children: [
|
|
131
|
-
/* @__PURE__ */ n.jsxDEV(
|
|
132
|
-
Qe,
|
|
133
|
-
{
|
|
134
|
-
src: e.src,
|
|
135
|
-
alt: "",
|
|
136
|
-
draggable: !1,
|
|
137
|
-
$objectFit: o,
|
|
138
|
-
$loaded: r
|
|
139
|
-
},
|
|
140
|
-
void 0,
|
|
141
|
-
!1,
|
|
142
|
-
{
|
|
143
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesContent/StoriesContent.tsx",
|
|
144
|
-
lineNumber: 44,
|
|
145
|
-
columnNumber: 7
|
|
146
|
-
},
|
|
147
|
-
void 0
|
|
148
|
-
),
|
|
149
|
-
i === "loading" ? /* @__PURE__ */ n.jsxDEV(en, { children: /* @__PURE__ */ n.jsxDEV(ye, { view: "default", size: "l" }, void 0, !1, {
|
|
150
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesContent/StoriesContent.tsx",
|
|
151
|
-
lineNumber: 53,
|
|
152
|
-
columnNumber: 11
|
|
153
|
-
}, void 0) }, void 0, !1, {
|
|
154
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesContent/StoriesContent.tsx",
|
|
155
|
-
lineNumber: 52,
|
|
156
|
-
columnNumber: 7
|
|
157
|
-
}, void 0) : null
|
|
158
|
-
] }, void 0, !0, {
|
|
159
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesContent/StoriesContent.tsx",
|
|
160
|
-
lineNumber: 43,
|
|
161
|
-
columnNumber: 5
|
|
162
|
-
}, void 0);
|
|
163
|
-
}, de = (e, i) => {
|
|
164
|
-
e && (e.style.transform = `scaleX(${i})`);
|
|
165
|
-
}, on = ({
|
|
166
|
-
fillRef: e,
|
|
167
|
-
active: i,
|
|
168
|
-
duration: t,
|
|
169
|
-
isPlaying: o,
|
|
170
|
-
isReady: r,
|
|
171
|
-
resetKey: f,
|
|
172
|
-
onComplete: d
|
|
173
|
-
}) => {
|
|
174
|
-
const l = V(0), y = V(d);
|
|
175
|
-
y.current = d, T(() => {
|
|
176
|
-
l.current = 0, de(e.current, 0);
|
|
177
|
-
}, [f, e]), T(() => {
|
|
178
|
-
if (!i || !o || !r || t <= 0)
|
|
179
|
-
return;
|
|
180
|
-
let m = 0, p = performance.now();
|
|
181
|
-
const g = (a) => {
|
|
182
|
-
l.current += a - p, p = a;
|
|
183
|
-
const v = Math.min(1, l.current / t);
|
|
184
|
-
if (de(e.current, v), v >= 1) {
|
|
185
|
-
y.current();
|
|
186
|
-
return;
|
|
187
|
-
}
|
|
188
|
-
m = requestAnimationFrame(g);
|
|
189
|
-
};
|
|
190
|
-
return m = requestAnimationFrame(g), () => cancelAnimationFrame(m);
|
|
191
|
-
}, [i, o, r, t, f, e]);
|
|
192
|
-
}, rn = x.div.withConfig({
|
|
193
|
-
displayName: "StoriesProgressstyled__StyledProgress"
|
|
194
|
-
})(["display:flex;gap:", "px;width:100%;"], N.progressGap), sn = x.div.withConfig({
|
|
195
|
-
displayName: "StoriesProgressstyled__StyledItem"
|
|
196
|
-
})(["position:relative;flex:1 1 0;height:", "px;border-radius:", "px;overflow:hidden;background:", ";"], N.progressHeight, N.progressRadius, ({
|
|
197
|
-
$bg: e
|
|
198
|
-
}) => e), an = x.span.withConfig({
|
|
199
|
-
displayName: "StoriesProgressstyled__StyledFill"
|
|
200
|
-
})(["position:absolute;inset:0;border-radius:", "px;background:", ";transform:scaleX(0);transform-origin:left center;will-change:transform;"], N.progressFillRadius, ({
|
|
201
|
-
$color: e
|
|
202
|
-
}) => e), dn = ({
|
|
203
|
-
isReady: e
|
|
204
|
-
}) => {
|
|
205
|
-
var j;
|
|
206
|
-
const { store: i, controller: t, groups: o, defaultDuration: r, mode: f } = X(), { groupIndex: d, slideIndex: l, isPlaying: y, isOpen: m } = W(i), p = Be(), a = (f ?? p) === "dark", v = a ? Le : Fe, u = a ? $e : Ge, h = o[d], _ = (h == null ? void 0 : h.slides) ?? [], O = V(null), E = ((j = _[l]) == null ? void 0 : j.duration) ?? (h == null ? void 0 : h.defaultDuration) ?? r;
|
|
207
|
-
return on({
|
|
208
|
-
fillRef: O,
|
|
209
|
-
active: m,
|
|
210
|
-
duration: E,
|
|
211
|
-
isPlaying: y,
|
|
212
|
-
isReady: e,
|
|
213
|
-
resetKey: `${d}-${l}`,
|
|
214
|
-
onComplete: t.next
|
|
215
|
-
}), /* @__PURE__ */ n.jsxDEV(rn, { className: k.progress, children: _.map((R, I) => {
|
|
216
|
-
const B = R.id ?? `${d}-${I}`, P = I < l, G = I === l;
|
|
217
|
-
return /* @__PURE__ */ n.jsxDEV(
|
|
218
|
-
sn,
|
|
219
|
-
{
|
|
220
|
-
className: k.progressItem,
|
|
221
|
-
$bg: P ? u : v,
|
|
222
|
-
children: G ? /* @__PURE__ */ n.jsxDEV(an, { ref: O, $color: u }, void 0, !1, {
|
|
223
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesProgress/StoriesProgress.tsx",
|
|
224
|
-
lineNumber: 74,
|
|
225
|
-
columnNumber: 26
|
|
226
|
-
}, void 0) : null
|
|
227
|
-
},
|
|
228
|
-
B,
|
|
229
|
-
!1,
|
|
230
|
-
{
|
|
231
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesProgress/StoriesProgress.tsx",
|
|
232
|
-
lineNumber: 69,
|
|
233
|
-
columnNumber: 11
|
|
234
|
-
},
|
|
235
|
-
void 0
|
|
236
|
-
);
|
|
237
|
-
}) }, void 0, !1, {
|
|
238
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesProgress/StoriesProgress.tsx",
|
|
239
|
-
lineNumber: 62,
|
|
240
|
-
columnNumber: 5
|
|
241
|
-
}, void 0);
|
|
242
|
-
}, ln = z(["from{opacity:0;transform:scale(0.92) translateY(8px);}to{opacity:1;transform:scale(1) translateY(0);}"]), cn = z(["from{opacity:1;transform:scale(1) translateY(0);}to{opacity:0;transform:scale(0.96) translateY(6px);}"]), un = x.div.withConfig({
|
|
243
|
-
displayName: "StoriesBannerstyled__StyledBanner"
|
|
244
|
-
})(["position:relative;width:min(", "px,calc(100vw - 100px));height:100%;max-height:", "px;border-radius:", "px;overflow:hidden;view-transition-name:", ";animation:", " ", " ease forwards;"], N.bannerMaxWidth, N.bannerMaxHeight, N.bannerRadius, $, ({
|
|
245
|
-
$closing: e
|
|
246
|
-
}) => e ? cn : ln, ({
|
|
247
|
-
$closing: e
|
|
248
|
-
}) => e ? "0.2s" : "0.24s"), mn = x.div.withConfig({
|
|
249
|
-
displayName: "StoriesBannerstyled__StyledTapLayer"
|
|
250
|
-
})(["position:absolute;inset:0;z-index:1;touch-action:none;"]), pn = x.div.withConfig({
|
|
251
|
-
displayName: "StoriesBannerstyled__StyledTop"
|
|
252
|
-
})(["position:absolute;top:0;left:0;right:0;z-index:2;padding:", "px;pointer-events:none;"], N.bannerPadding), fn = x.div.withConfig({
|
|
253
|
-
displayName: "StoriesBannerstyled__StyledBottom"
|
|
254
|
-
})(["position:absolute;bottom:0;left:0;right:0;z-index:2;padding:", "px;pointer-events:none;"], N.bannerPadding), gn = x.div.withConfig({
|
|
255
|
-
displayName: "StoriesBannerstyled__StyledActionSlot"
|
|
256
|
-
})(["pointer-events:auto;"]), Sn = ({
|
|
257
|
-
closing: e,
|
|
258
|
-
onAnimationEnd: i
|
|
259
|
-
}) => {
|
|
260
|
-
const {
|
|
261
|
-
store: t,
|
|
262
|
-
controller: o,
|
|
263
|
-
groups: r,
|
|
264
|
-
pauseHoldDelay: f,
|
|
265
|
-
tapPrevZone: d,
|
|
266
|
-
loadingDelay: l,
|
|
267
|
-
onError: y,
|
|
268
|
-
renderError: m
|
|
269
|
-
} = X(), { groupIndex: p, slideIndex: g, isOpen: a } = W(t), v = r[p], u = v == null ? void 0 : v.slides[g], { status: h, reload: _ } = Ae(u == null ? void 0 : u.src, l), O = Ze({
|
|
270
|
-
controller: o,
|
|
271
|
-
pauseHoldDelay: f,
|
|
272
|
-
tapPrevZone: d,
|
|
273
|
-
isOpen: a
|
|
274
|
-
}), E = V();
|
|
275
|
-
T(() => {
|
|
276
|
-
if (h !== "error" || !u)
|
|
277
|
-
return;
|
|
278
|
-
const P = `${p}-${g}`;
|
|
279
|
-
E.current !== P && (E.current = P, y == null || y({ groupIndex: p, slideIndex: g, slide: u, retry: _ }));
|
|
280
|
-
}, [h, p, g, u, y, _]);
|
|
281
|
-
const j = (P) => P.stopPropagation(), R = (P) => {
|
|
282
|
-
P.target === P.currentTarget && i();
|
|
283
|
-
};
|
|
284
|
-
if (!u)
|
|
285
|
-
return null;
|
|
286
|
-
const { footer: I } = u, B = m ? m({ groupIndex: p, slideIndex: g, slide: u, retry: _ }) : /* @__PURE__ */ n.jsxDEV(
|
|
287
|
-
Re,
|
|
288
|
-
{
|
|
289
|
-
size: "s",
|
|
290
|
-
variant: "not-found",
|
|
291
|
-
title: "Не удалось загрузить",
|
|
292
|
-
subtitle: "Проверьте соединение и попробуйте снова",
|
|
293
|
-
centered: !0,
|
|
294
|
-
buttons: [
|
|
295
|
-
{
|
|
296
|
-
type: "button",
|
|
297
|
-
props: {
|
|
298
|
-
text: "Попробовать снова",
|
|
299
|
-
view: "secondary",
|
|
300
|
-
onClick: _
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
]
|
|
304
|
-
},
|
|
305
|
-
void 0,
|
|
306
|
-
!1,
|
|
307
|
-
{
|
|
308
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesBanner/StoriesBanner.tsx",
|
|
309
|
-
lineNumber: 85,
|
|
310
|
-
columnNumber: 3
|
|
311
|
-
},
|
|
312
|
-
void 0
|
|
313
|
-
);
|
|
314
|
-
return /* @__PURE__ */ n.jsxDEV(
|
|
315
|
-
un,
|
|
316
|
-
{
|
|
317
|
-
className: k.banner,
|
|
318
|
-
$closing: e,
|
|
319
|
-
onClick: j,
|
|
320
|
-
onAnimationEnd: R,
|
|
321
|
-
children: [
|
|
322
|
-
/* @__PURE__ */ n.jsxDEV(tn, { slide: u, status: h, errorNode: B }, void 0, !1, {
|
|
323
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesBanner/StoriesBanner.tsx",
|
|
324
|
-
lineNumber: 111,
|
|
325
|
-
columnNumber: 7
|
|
326
|
-
}, void 0),
|
|
327
|
-
h === "error" ? null : /* @__PURE__ */ n.jsxDEV(mn, { ...O }, void 0, !1, {
|
|
328
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesBanner/StoriesBanner.tsx",
|
|
329
|
-
lineNumber: 113,
|
|
330
|
-
columnNumber: 36
|
|
331
|
-
}, void 0),
|
|
332
|
-
/* @__PURE__ */ n.jsxDEV(pn, { children: /* @__PURE__ */ n.jsxDEV(dn, { isReady: h === "loaded" }, void 0, !1, {
|
|
333
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesBanner/StoriesBanner.tsx",
|
|
334
|
-
lineNumber: 116,
|
|
335
|
-
columnNumber: 9
|
|
336
|
-
}, void 0) }, void 0, !1, {
|
|
337
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesBanner/StoriesBanner.tsx",
|
|
338
|
-
lineNumber: 115,
|
|
339
|
-
columnNumber: 7
|
|
340
|
-
}, void 0),
|
|
341
|
-
I ? /* @__PURE__ */ n.jsxDEV(fn, { children: /* @__PURE__ */ n.jsxDEV(gn, { className: k.action, children: I }, void 0, !1, {
|
|
342
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesBanner/StoriesBanner.tsx",
|
|
343
|
-
lineNumber: 121,
|
|
344
|
-
columnNumber: 11
|
|
345
|
-
}, void 0) }, void 0, !1, {
|
|
346
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesBanner/StoriesBanner.tsx",
|
|
347
|
-
lineNumber: 120,
|
|
348
|
-
columnNumber: 7
|
|
349
|
-
}, void 0) : null
|
|
350
|
-
]
|
|
351
|
-
},
|
|
352
|
-
void 0,
|
|
353
|
-
!0,
|
|
354
|
-
{
|
|
355
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesBanner/StoriesBanner.tsx",
|
|
356
|
-
lineNumber: 105,
|
|
357
|
-
columnNumber: 5
|
|
358
|
-
},
|
|
359
|
-
void 0
|
|
360
|
-
);
|
|
361
|
-
}, ne = {
|
|
362
|
-
ring: () => qe,
|
|
363
|
-
fallback: () => Ue,
|
|
364
|
-
boxShadow: () => Me
|
|
365
|
-
}, ie = (e, i) => e === "circle" ? "50%" : `${{
|
|
366
|
-
outer: N.rectRadiusOuter,
|
|
367
|
-
body: N.rectRadiusBody
|
|
368
|
-
}[i]}px`, xn = x.div.withConfig({
|
|
369
|
-
displayName: "StoriesPreviewstyled__StyledPreview"
|
|
370
|
-
})(["display:flex;flex-direction:column;align-items:center;width:", "px;"], ({
|
|
371
|
-
$width: e
|
|
372
|
-
}) => e), wn = x.button.withConfig({
|
|
373
|
-
displayName: "StoriesPreviewstyled__StyledTrigger"
|
|
374
|
-
})(["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;}"], ({
|
|
375
|
-
$width: e
|
|
376
|
-
}) => e, ({
|
|
377
|
-
$height: e
|
|
378
|
-
}) => e, ({
|
|
379
|
-
$shape: e
|
|
380
|
-
}) => ie(e, "outer"), He), yn = x.div.withConfig({
|
|
381
|
-
displayName: "StoriesPreviewstyled__StyledRing"
|
|
382
|
-
})(["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;"], N.ring, ne.ring, ({
|
|
383
|
-
$shape: e
|
|
384
|
-
}) => ie(e, "outer")), vn = x.div.withConfig({
|
|
385
|
-
displayName: "StoriesPreviewstyled__StyledBody"
|
|
386
|
-
})(["position:absolute;inset:", "px;box-sizing:border-box;box-shadow:", ";background-color:", ";background-position:center;background-size:cover;background-repeat:no-repeat;", " border-radius:", ";"], ({
|
|
387
|
-
$viewed: e
|
|
388
|
-
}) => e ? 0 : N.ring * 2, ne.boxShadow, ne.fallback, ({
|
|
389
|
-
$image: e
|
|
390
|
-
}) => e && me(["background-image:url(", ");"], e), ({
|
|
391
|
-
$shape: e,
|
|
392
|
-
$viewed: i
|
|
393
|
-
}) => ie(e, i ? "outer" : "body")), hn = x.div.withConfig({
|
|
394
|
-
displayName: "StoriesPreviewstyled__StyledTitle"
|
|
395
|
-
})(["margin-top:", "px;width:100%;text-align:", ";& > *{width:100%;}"], N.titleGap, ({
|
|
396
|
-
$align: e
|
|
397
|
-
}) => e), fe = (e) => {
|
|
398
|
-
var Y;
|
|
399
|
-
const {
|
|
400
|
-
slides: i,
|
|
401
|
-
shape: t = "circle",
|
|
402
|
-
title: o,
|
|
403
|
-
titleProps: r,
|
|
404
|
-
image: f,
|
|
405
|
-
viewed: d = !1,
|
|
406
|
-
size: l = N.circle,
|
|
407
|
-
width: y,
|
|
408
|
-
height: m,
|
|
409
|
-
renderTrigger: p,
|
|
410
|
-
className: g,
|
|
411
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
412
|
-
__index: a = 0
|
|
413
|
-
} = e, { store: v, controller: u, preloadOnHover: h } = X(), _ = W(v), O = _.isOpen && _.groupIndex === a, E = t === "rect" ? y ?? l : l, j = t === "rect" ? m ?? l : l, R = () => u.open(a), I = () => {
|
|
414
|
-
h && i[0] && ee(i[0].src);
|
|
415
|
-
}, B = () => p ? p({ index: a, viewed: d, isActive: O }) : /* @__PURE__ */ n.jsxDEV(n.Fragment, { children: [
|
|
416
|
-
d ? null : /* @__PURE__ */ n.jsxDEV(
|
|
417
|
-
yn,
|
|
418
|
-
{
|
|
419
|
-
className: k.previewRing,
|
|
420
|
-
$shape: t
|
|
421
|
-
},
|
|
422
|
-
void 0,
|
|
423
|
-
!1,
|
|
424
|
-
{
|
|
425
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesPreview/StoriesPreview.tsx",
|
|
426
|
-
lineNumber: 66,
|
|
427
|
-
columnNumber: 9
|
|
428
|
-
},
|
|
429
|
-
void 0
|
|
430
|
-
),
|
|
431
|
-
/* @__PURE__ */ n.jsxDEV(
|
|
432
|
-
vn,
|
|
433
|
-
{
|
|
434
|
-
className: k.previewBody,
|
|
435
|
-
$shape: t,
|
|
436
|
-
$viewed: d,
|
|
437
|
-
$image: f
|
|
438
|
-
},
|
|
439
|
-
void 0,
|
|
440
|
-
!1,
|
|
441
|
-
{
|
|
442
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesPreview/StoriesPreview.tsx",
|
|
443
|
-
lineNumber: 71,
|
|
444
|
-
columnNumber: 9
|
|
445
|
-
},
|
|
446
|
-
void 0
|
|
447
|
-
)
|
|
448
|
-
] }, void 0, !0, {
|
|
449
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesPreview/StoriesPreview.tsx",
|
|
450
|
-
lineNumber: 64,
|
|
451
|
-
columnNumber: 7
|
|
452
|
-
}, void 0), P = {
|
|
453
|
-
variant: "BodyXXS",
|
|
454
|
-
bold: !0,
|
|
455
|
-
lines: 2,
|
|
456
|
-
tooltipText: o,
|
|
457
|
-
color: Xe,
|
|
458
|
-
...r,
|
|
459
|
-
children: o
|
|
460
|
-
}, G = ((Y = r == null ? void 0 : r.style) == null ? void 0 : Y.textAlign) ?? "center";
|
|
461
|
-
return /* @__PURE__ */ n.jsxDEV(
|
|
462
|
-
xn,
|
|
463
|
-
{
|
|
464
|
-
className: [k.preview, g].filter(Boolean).join(" "),
|
|
465
|
-
"data-component": Je,
|
|
466
|
-
$width: E,
|
|
467
|
-
children: [
|
|
468
|
-
/* @__PURE__ */ n.jsxDEV(
|
|
469
|
-
wn,
|
|
470
|
-
{
|
|
471
|
-
type: "button",
|
|
472
|
-
"aria-label": o,
|
|
473
|
-
$width: E,
|
|
474
|
-
$height: j,
|
|
475
|
-
$shape: t,
|
|
476
|
-
onClick: R,
|
|
477
|
-
onMouseEnter: I,
|
|
478
|
-
children: B()
|
|
479
|
-
},
|
|
480
|
-
void 0,
|
|
481
|
-
!1,
|
|
482
|
-
{
|
|
483
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesPreview/StoriesPreview.tsx",
|
|
484
|
-
lineNumber: 101,
|
|
485
|
-
columnNumber: 7
|
|
486
|
-
},
|
|
487
|
-
void 0
|
|
488
|
-
),
|
|
489
|
-
o ? /* @__PURE__ */ n.jsxDEV(
|
|
490
|
-
hn,
|
|
491
|
-
{
|
|
492
|
-
className: k.previewTitle,
|
|
493
|
-
style: { maxWidth: E },
|
|
494
|
-
$align: G,
|
|
495
|
-
children: /* @__PURE__ */ n.jsxDEV(Ye, { ...P }, void 0, !1, {
|
|
496
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesPreview/StoriesPreview.tsx",
|
|
497
|
-
lineNumber: 119,
|
|
498
|
-
columnNumber: 11
|
|
499
|
-
}, void 0)
|
|
500
|
-
},
|
|
501
|
-
void 0,
|
|
502
|
-
!1,
|
|
503
|
-
{
|
|
504
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesPreview/StoriesPreview.tsx",
|
|
505
|
-
lineNumber: 114,
|
|
506
|
-
columnNumber: 7
|
|
507
|
-
},
|
|
508
|
-
void 0
|
|
509
|
-
) : null
|
|
510
|
-
]
|
|
511
|
-
},
|
|
512
|
-
void 0,
|
|
513
|
-
!0,
|
|
514
|
-
{
|
|
515
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesPreview/StoriesPreview.tsx",
|
|
516
|
-
lineNumber: 94,
|
|
517
|
-
columnNumber: 5
|
|
518
|
-
},
|
|
519
|
-
void 0
|
|
520
|
-
);
|
|
521
|
-
}, bn = z(["from{opacity:0;}to{opacity:1;}"]), Nn = z(["from{opacity:1;}to{opacity:0;}"]), ge = (e) => me(["animation:", " ", " ease forwards;"], e ? Nn : bn, e ? "0.2s" : "0.24s"), kn = x.div.withConfig({
|
|
522
|
-
displayName: "StoriesViewerstyled__StyledRoot"
|
|
523
|
-
})(["position:fixed;inset:0;z-index:", ";display:flex;align-items:center;justify-content:center;"], ({
|
|
524
|
-
$zIndex: e
|
|
525
|
-
}) => e), Cn = x.div.withConfig({
|
|
526
|
-
displayName: "StoriesViewerstyled__StyledOverlay"
|
|
527
|
-
})(["position:absolute;inset:0;background:", ";opacity:", ";transition:opacity 0.24s ease;"], ({
|
|
528
|
-
$color: e
|
|
529
|
-
}) => e, ({
|
|
530
|
-
$closing: e
|
|
531
|
-
}) => e ? 0 : 1), In = x.div.withConfig({
|
|
532
|
-
displayName: "StoriesViewerstyled__StyledStage"
|
|
533
|
-
})(["position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:min(", "px,100vw);height:min(", "px,calc(100vh - 32px));outline:none;"], N.stageWidth, N.bannerMaxHeight), le = x.div.withConfig({
|
|
534
|
-
displayName: "StoriesViewerstyled__StyledArrow"
|
|
535
|
-
})(["position:absolute;top:50%;", " z-index:3;transform:translateY(-50%);", ""], ({
|
|
536
|
-
$side: e
|
|
537
|
-
}) => e === "prev" ? "left: 0;" : "right: 0;", ({
|
|
538
|
-
$closing: e
|
|
539
|
-
}) => ge(e)), Vn = x.div.withConfig({
|
|
540
|
-
displayName: "StoriesViewerstyled__StyledClose"
|
|
541
|
-
})(["position:absolute;top:0;right:0;z-index:3;", ""], ({
|
|
542
|
-
$closing: e
|
|
543
|
-
}) => ge(e)), _n = z(["from{transform:translateX(24px);opacity:0;}to{transform:translateX(0);opacity:1;}"]), En = z(["from{transform:translateX(0);opacity:1;}to{transform:translateX(-24px);opacity:0;}"]), Pn = z(["from{transform:translateX(-24px);opacity:0;}to{transform:translateX(0);opacity:1;}"]), Dn = z(["from{transform:translateX(0);opacity:1;}to{transform:translateX(24px);opacity:0;}"]), jn = We(["::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:", ";}"], $, $, $, _n, $, En, $, Pn, $, Dn), Tn = () => {
|
|
544
|
-
const {
|
|
545
|
-
store: e,
|
|
546
|
-
controller: i,
|
|
547
|
-
groups: t,
|
|
548
|
-
overlay: o,
|
|
549
|
-
overlayColor: r,
|
|
550
|
-
zIndex: f,
|
|
551
|
-
groupTransition: d,
|
|
552
|
-
arrows: l,
|
|
553
|
-
preloadGroup: y
|
|
554
|
-
} = X(), { isOpen: m, groupIndex: p } = W(e), [g, a] = ce(m), v = V(null);
|
|
555
|
-
T(() => {
|
|
556
|
-
m && a(!0);
|
|
557
|
-
}, [m]), T(() => {
|
|
558
|
-
var I;
|
|
559
|
-
m && ((I = v.current) == null || I.focus());
|
|
560
|
-
}, [m]), T(() => {
|
|
561
|
-
m && y(p);
|
|
562
|
-
}, [m, p, y]);
|
|
563
|
-
const u = g && !m, h = ue(() => {
|
|
564
|
-
u && a(!1);
|
|
565
|
-
}, [u]);
|
|
566
|
-
if (!g || typeof document > "u")
|
|
567
|
-
return null;
|
|
568
|
-
const _ = p > 0, O = p < t.length - 1, E = l === "always" || l === "auto" && t.length > 1, j = (I) => I.stopPropagation(), R = /* @__PURE__ */ n.jsxDEV(
|
|
569
|
-
kn,
|
|
570
|
-
{
|
|
571
|
-
className: k.viewer,
|
|
572
|
-
$zIndex: f,
|
|
573
|
-
onClick: () => i.close(),
|
|
574
|
-
children: [
|
|
575
|
-
o ? /* @__PURE__ */ n.jsxDEV(
|
|
576
|
-
Cn,
|
|
577
|
-
{
|
|
578
|
-
className: k.overlay,
|
|
579
|
-
$color: r,
|
|
580
|
-
$closing: u
|
|
581
|
-
},
|
|
582
|
-
void 0,
|
|
583
|
-
!1,
|
|
584
|
-
{
|
|
585
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesViewer/StoriesViewer.tsx",
|
|
586
|
-
lineNumber: 84,
|
|
587
|
-
columnNumber: 5
|
|
588
|
-
},
|
|
589
|
-
void 0
|
|
590
|
-
) : null,
|
|
591
|
-
d === "slide" ? /* @__PURE__ */ n.jsxDEV(jn, {}, void 0, !1, {
|
|
592
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesViewer/StoriesViewer.tsx",
|
|
593
|
-
lineNumber: 91,
|
|
594
|
-
columnNumber: 38
|
|
595
|
-
}, void 0) : null,
|
|
596
|
-
/* @__PURE__ */ n.jsxDEV(
|
|
597
|
-
In,
|
|
598
|
-
{
|
|
599
|
-
ref: v,
|
|
600
|
-
tabIndex: -1,
|
|
601
|
-
className: k.stage,
|
|
602
|
-
children: [
|
|
603
|
-
E ? /* @__PURE__ */ n.jsxDEV(
|
|
604
|
-
le,
|
|
605
|
-
{
|
|
606
|
-
className: k.arrowPrev,
|
|
607
|
-
$side: "prev",
|
|
608
|
-
$closing: u,
|
|
609
|
-
onClick: j,
|
|
610
|
-
children: /* @__PURE__ */ n.jsxDEV(
|
|
611
|
-
Q,
|
|
612
|
-
{
|
|
613
|
-
size: "s",
|
|
614
|
-
view: "white",
|
|
615
|
-
pin: "circle-circle",
|
|
616
|
-
"aria-label": "Предыдущая группа",
|
|
617
|
-
disabled: !_,
|
|
618
|
-
onClick: () => i.prevGroup(),
|
|
619
|
-
children: /* @__PURE__ */ n.jsxDEV(ve, { size: "s" }, void 0, !1, {
|
|
620
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesViewer/StoriesViewer.tsx",
|
|
621
|
-
lineNumber: 113,
|
|
622
|
-
columnNumber: 15
|
|
623
|
-
}, void 0)
|
|
624
|
-
},
|
|
625
|
-
void 0,
|
|
626
|
-
!1,
|
|
627
|
-
{
|
|
628
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesViewer/StoriesViewer.tsx",
|
|
629
|
-
lineNumber: 105,
|
|
630
|
-
columnNumber: 13
|
|
631
|
-
},
|
|
632
|
-
void 0
|
|
633
|
-
)
|
|
634
|
-
},
|
|
635
|
-
void 0,
|
|
636
|
-
!1,
|
|
637
|
-
{
|
|
638
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesViewer/StoriesViewer.tsx",
|
|
639
|
-
lineNumber: 99,
|
|
640
|
-
columnNumber: 7
|
|
641
|
-
},
|
|
642
|
-
void 0
|
|
643
|
-
) : null,
|
|
644
|
-
/* @__PURE__ */ n.jsxDEV(Sn, { closing: u, onAnimationEnd: h }, void 0, !1, {
|
|
645
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesViewer/StoriesViewer.tsx",
|
|
646
|
-
lineNumber: 118,
|
|
647
|
-
columnNumber: 9
|
|
648
|
-
}, void 0),
|
|
649
|
-
E ? /* @__PURE__ */ n.jsxDEV(
|
|
650
|
-
le,
|
|
651
|
-
{
|
|
652
|
-
className: k.arrowNext,
|
|
653
|
-
$side: "next",
|
|
654
|
-
$closing: u,
|
|
655
|
-
onClick: j,
|
|
656
|
-
children: /* @__PURE__ */ n.jsxDEV(
|
|
657
|
-
Q,
|
|
658
|
-
{
|
|
659
|
-
size: "s",
|
|
660
|
-
view: "white",
|
|
661
|
-
pin: "circle-circle",
|
|
662
|
-
"aria-label": "Следующая группа",
|
|
663
|
-
disabled: !O,
|
|
664
|
-
onClick: () => i.nextGroup(),
|
|
665
|
-
children: /* @__PURE__ */ n.jsxDEV(he, { size: "s" }, void 0, !1, {
|
|
666
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesViewer/StoriesViewer.tsx",
|
|
667
|
-
lineNumber: 135,
|
|
668
|
-
columnNumber: 15
|
|
669
|
-
}, void 0)
|
|
670
|
-
},
|
|
671
|
-
void 0,
|
|
672
|
-
!1,
|
|
673
|
-
{
|
|
674
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesViewer/StoriesViewer.tsx",
|
|
675
|
-
lineNumber: 127,
|
|
676
|
-
columnNumber: 13
|
|
677
|
-
},
|
|
678
|
-
void 0
|
|
679
|
-
)
|
|
680
|
-
},
|
|
681
|
-
void 0,
|
|
682
|
-
!1,
|
|
683
|
-
{
|
|
684
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesViewer/StoriesViewer.tsx",
|
|
685
|
-
lineNumber: 121,
|
|
686
|
-
columnNumber: 7
|
|
687
|
-
},
|
|
688
|
-
void 0
|
|
689
|
-
) : null,
|
|
690
|
-
/* @__PURE__ */ n.jsxDEV(
|
|
691
|
-
Vn,
|
|
692
|
-
{
|
|
693
|
-
className: k.close,
|
|
694
|
-
$closing: u,
|
|
695
|
-
onClick: j,
|
|
696
|
-
children: /* @__PURE__ */ n.jsxDEV(
|
|
697
|
-
Q,
|
|
698
|
-
{
|
|
699
|
-
size: "s",
|
|
700
|
-
view: "white",
|
|
701
|
-
pin: "circle-circle",
|
|
702
|
-
"aria-label": "Закрыть",
|
|
703
|
-
onClick: () => i.close(),
|
|
704
|
-
children: /* @__PURE__ */ n.jsxDEV(be, { size: "s" }, void 0, !1, {
|
|
705
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesViewer/StoriesViewer.tsx",
|
|
706
|
-
lineNumber: 152,
|
|
707
|
-
columnNumber: 13
|
|
708
|
-
}, void 0)
|
|
709
|
-
},
|
|
710
|
-
void 0,
|
|
711
|
-
!1,
|
|
712
|
-
{
|
|
713
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesViewer/StoriesViewer.tsx",
|
|
714
|
-
lineNumber: 145,
|
|
715
|
-
columnNumber: 11
|
|
716
|
-
},
|
|
717
|
-
void 0
|
|
718
|
-
)
|
|
719
|
-
},
|
|
720
|
-
void 0,
|
|
721
|
-
!1,
|
|
722
|
-
{
|
|
723
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesViewer/StoriesViewer.tsx",
|
|
724
|
-
lineNumber: 140,
|
|
725
|
-
columnNumber: 9
|
|
726
|
-
},
|
|
727
|
-
void 0
|
|
728
|
-
)
|
|
729
|
-
]
|
|
730
|
-
},
|
|
731
|
-
void 0,
|
|
732
|
-
!0,
|
|
733
|
-
{
|
|
734
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesViewer/StoriesViewer.tsx",
|
|
735
|
-
lineNumber: 93,
|
|
736
|
-
columnNumber: 7
|
|
737
|
-
},
|
|
738
|
-
void 0
|
|
739
|
-
)
|
|
740
|
-
]
|
|
741
|
-
},
|
|
742
|
-
void 0,
|
|
743
|
-
!0,
|
|
744
|
-
{
|
|
745
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/components/StoriesViewer/StoriesViewer.tsx",
|
|
746
|
-
lineNumber: 78,
|
|
747
|
-
columnNumber: 3
|
|
748
|
-
},
|
|
749
|
-
void 0
|
|
750
|
-
);
|
|
751
|
-
return Te(R, document.body);
|
|
752
|
-
}, On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
753
|
-
__proto__: null,
|
|
754
|
-
StoriesViewer: Tn
|
|
755
|
-
}, Symbol.toStringTag, { value: "Module" })), Rn = Ie(
|
|
756
|
-
() => Promise.resolve().then(() => On).then((e) => ({
|
|
757
|
-
default: e.StoriesViewer
|
|
758
|
-
}))
|
|
759
|
-
), Bn = (e) => {
|
|
760
|
-
const i = V(e);
|
|
761
|
-
return i.current = e, ue((t) => {
|
|
762
|
-
const o = i.current[t];
|
|
763
|
-
if (!o)
|
|
764
|
-
return;
|
|
765
|
-
o.slides.forEach((f) => ee(f.src));
|
|
766
|
-
const r = i.current[t + 1];
|
|
767
|
-
r != null && r.slides[0] && ee(r.slides[0].src);
|
|
768
|
-
}, []);
|
|
769
|
-
}, An = {
|
|
770
|
-
isOpen: !1,
|
|
771
|
-
groupIndex: 0,
|
|
772
|
-
slideIndex: 0,
|
|
773
|
-
isPlaying: !0,
|
|
774
|
-
direction: "next"
|
|
775
|
-
}, zn = (e) => {
|
|
776
|
-
let i = {
|
|
777
|
-
...An,
|
|
778
|
-
...e
|
|
779
|
-
};
|
|
780
|
-
const t = /* @__PURE__ */ new Set();
|
|
781
|
-
return {
|
|
782
|
-
getSnapshot: () => i,
|
|
783
|
-
subscribe: (o) => (t.add(o), () => {
|
|
784
|
-
t.delete(o);
|
|
785
|
-
}),
|
|
786
|
-
setState: (o) => {
|
|
787
|
-
Object.keys(o).some((d) => i[d] !== o[d]) && (i = {
|
|
788
|
-
...i,
|
|
789
|
-
...o
|
|
790
|
-
}, t.forEach((d) => d()));
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
|
-
}, $n = () => typeof document < "u" && typeof document.startViewTransition == "function", Gn = (e, i) => {
|
|
794
|
-
const {
|
|
795
|
-
direction: t = "next",
|
|
796
|
-
enabled: o = !0
|
|
797
|
-
} = i ?? {};
|
|
798
|
-
if (!o || !$n()) {
|
|
799
|
-
e();
|
|
800
|
-
return;
|
|
801
|
-
}
|
|
802
|
-
const r = document;
|
|
803
|
-
r.documentElement.dataset.dfStoriesDir = t, r.startViewTransition(() => Oe(e)).finished.finally(() => {
|
|
804
|
-
delete r.documentElement.dataset.dfStoriesDir;
|
|
805
|
-
});
|
|
806
|
-
}, Ln = x.div.withConfig({
|
|
807
|
-
displayName: "Storiesstyled__StyledStories"
|
|
808
|
-
})(["display:flex;align-items:flex-start;gap:16px;"]), Fn = (e) => De(e) && e.type === fe, Hn = () => {
|
|
809
|
-
const { store: e } = X(), { isOpen: i } = W(e), [t, o] = ce(i);
|
|
810
|
-
return T(() => {
|
|
811
|
-
i && o(!0);
|
|
812
|
-
}, [i]), t ? /* @__PURE__ */ n.jsxDEV(je, { fallback: null, children: /* @__PURE__ */ n.jsxDEV(Rn, {}, void 0, !1, {
|
|
813
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/Stories.tsx",
|
|
814
|
-
lineNumber: 65,
|
|
815
|
-
columnNumber: 7
|
|
816
|
-
}, void 0) }, void 0, !1, {
|
|
817
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/Stories.tsx",
|
|
818
|
-
lineNumber: 64,
|
|
819
|
-
columnNumber: 5
|
|
820
|
-
}, void 0) : null;
|
|
821
|
-
}, Mn = (e, i) => {
|
|
822
|
-
const {
|
|
823
|
-
children: t,
|
|
824
|
-
defaultDuration: o = M.duration,
|
|
825
|
-
open: r,
|
|
826
|
-
defaultOpen: f,
|
|
827
|
-
activeGroupIndex: d,
|
|
828
|
-
activeSlideIndex: l,
|
|
829
|
-
onOpenChange: y,
|
|
830
|
-
onGroupChange: m,
|
|
831
|
-
onSlideChange: p,
|
|
832
|
-
onComplete: g,
|
|
833
|
-
onGroupComplete: a,
|
|
834
|
-
onClose: v,
|
|
835
|
-
onError: u,
|
|
836
|
-
renderError: h,
|
|
837
|
-
overlay: _ = !0,
|
|
838
|
-
overlayColor: O = M.overlayColor,
|
|
839
|
-
zIndex: E = M.zIndex,
|
|
840
|
-
preloadOnHover: j = !0,
|
|
841
|
-
loadingDelay: R = 0,
|
|
842
|
-
pauseHoldDelay: I = M.pauseHoldDelay,
|
|
843
|
-
groupTransition: B = "slide",
|
|
844
|
-
arrows: P = "auto",
|
|
845
|
-
mode: G,
|
|
846
|
-
className: Y
|
|
847
|
-
} = e, te = _e.toArray(t).filter(Fn), Z = te.map((b) => ({
|
|
848
|
-
slides: b.props.slides ?? [],
|
|
849
|
-
defaultDuration: b.props.defaultDuration
|
|
850
|
-
})), q = V();
|
|
851
|
-
q.current || (q.current = zn({ isOpen: f ?? !1 }));
|
|
852
|
-
const c = q.current, K = V(Z);
|
|
853
|
-
K.current = Z;
|
|
854
|
-
const oe = V({ groupTransition: B });
|
|
855
|
-
oe.current = { groupTransition: B };
|
|
856
|
-
const L = V({
|
|
857
|
-
onOpenChange: y,
|
|
858
|
-
onGroupChange: m,
|
|
859
|
-
onSlideChange: p,
|
|
860
|
-
onComplete: g,
|
|
861
|
-
onGroupComplete: a,
|
|
862
|
-
onClose: v
|
|
863
|
-
});
|
|
864
|
-
L.current = {
|
|
865
|
-
onOpenChange: y,
|
|
866
|
-
onGroupChange: m,
|
|
867
|
-
onSlideChange: p,
|
|
868
|
-
onComplete: g,
|
|
869
|
-
onGroupComplete: a,
|
|
870
|
-
onClose: v
|
|
871
|
-
};
|
|
872
|
-
const U = V();
|
|
873
|
-
if (!U.current) {
|
|
874
|
-
const b = (s, C) => c.setState({ slideIndex: s, direction: C, isPlaying: !0 }), S = (s, C, D) => Gn(
|
|
875
|
-
() => c.setState({
|
|
876
|
-
groupIndex: s,
|
|
877
|
-
slideIndex: C,
|
|
878
|
-
direction: D,
|
|
879
|
-
isPlaying: !0
|
|
880
|
-
}),
|
|
881
|
-
{ direction: D, enabled: oe.current.groupTransition !== "none" }
|
|
882
|
-
), w = () => {
|
|
883
|
-
var s, C;
|
|
884
|
-
(C = (s = L.current).onComplete) == null || C.call(s), c.setState({ isOpen: !1, isPlaying: !1 });
|
|
885
|
-
};
|
|
886
|
-
U.current = {
|
|
887
|
-
open: (s, C) => {
|
|
888
|
-
const D = c.getSnapshot();
|
|
889
|
-
c.setState({
|
|
890
|
-
isOpen: !0,
|
|
891
|
-
groupIndex: s ?? D.groupIndex,
|
|
892
|
-
slideIndex: C ?? 0,
|
|
893
|
-
isPlaying: !0,
|
|
894
|
-
direction: "next"
|
|
895
|
-
});
|
|
896
|
-
},
|
|
897
|
-
close: () => c.setState({ isOpen: !1, isPlaying: !1 }),
|
|
898
|
-
next: () => {
|
|
899
|
-
var D, A, F, H, se;
|
|
900
|
-
const s = c.getSnapshot(), C = ((D = K.current[s.groupIndex]) == null ? void 0 : D.slides.length) ?? 0;
|
|
901
|
-
s.slideIndex + 1 < C ? b(s.slideIndex + 1, "next") : s.groupIndex + 1 < K.current.length ? ((F = (A = L.current).onGroupComplete) == null || F.call(A, s.groupIndex), S(s.groupIndex + 1, 0, "next")) : ((se = (H = L.current).onGroupComplete) == null || se.call(H, s.groupIndex), w());
|
|
902
|
-
},
|
|
903
|
-
prev: () => {
|
|
904
|
-
const s = c.getSnapshot();
|
|
905
|
-
s.slideIndex > 0 ? b(s.slideIndex - 1, "prev") : s.groupIndex > 0 && S(s.groupIndex - 1, 0, "prev");
|
|
906
|
-
},
|
|
907
|
-
nextGroup: () => {
|
|
908
|
-
const s = c.getSnapshot();
|
|
909
|
-
s.groupIndex + 1 < K.current.length && S(s.groupIndex + 1, 0, "next");
|
|
910
|
-
},
|
|
911
|
-
prevGroup: () => {
|
|
912
|
-
const s = c.getSnapshot();
|
|
913
|
-
s.groupIndex > 0 && S(s.groupIndex - 1, 0, "prev");
|
|
914
|
-
},
|
|
915
|
-
goTo: (s, C) => {
|
|
916
|
-
const D = c.getSnapshot(), A = s < D.groupIndex ? "prev" : "next";
|
|
917
|
-
s === D.groupIndex ? b(C ?? 0, A) : S(s, C ?? 0, A);
|
|
918
|
-
},
|
|
919
|
-
pause: () => c.setState({ isPlaying: !1 }),
|
|
920
|
-
resume: () => c.setState({ isPlaying: !0 })
|
|
921
|
-
};
|
|
922
|
-
}
|
|
923
|
-
const J = U.current, xe = Bn(Z), re = V(c.getSnapshot());
|
|
924
|
-
T(
|
|
925
|
-
() => c.subscribe(() => {
|
|
926
|
-
var s, C, D, A, F, H;
|
|
927
|
-
const b = re.current, S = c.getSnapshot();
|
|
928
|
-
re.current = S;
|
|
929
|
-
const w = L.current;
|
|
930
|
-
if (b.isOpen !== S.isOpen) {
|
|
931
|
-
(s = w.onOpenChange) == null || s.call(w, S.isOpen, { groupIndex: S.groupIndex }), S.isOpen ? ((C = w.onGroupChange) == null || C.call(w, S.groupIndex), (D = w.onSlideChange) == null || D.call(w, S.groupIndex, S.slideIndex)) : (A = w.onClose) == null || A.call(w);
|
|
932
|
-
return;
|
|
933
|
-
}
|
|
934
|
-
S.isOpen && (b.groupIndex !== S.groupIndex && ((F = w.onGroupChange) == null || F.call(w, S.groupIndex)), (b.groupIndex !== S.groupIndex || b.slideIndex !== S.slideIndex) && ((H = w.onSlideChange) == null || H.call(w, S.groupIndex, S.slideIndex)));
|
|
935
|
-
}),
|
|
936
|
-
[c]
|
|
937
|
-
), T(() => {
|
|
938
|
-
r !== void 0 && c.setState({ isOpen: r });
|
|
939
|
-
}, [r, c]), T(() => {
|
|
940
|
-
d !== void 0 && c.setState({ groupIndex: d });
|
|
941
|
-
}, [d, c]), T(() => {
|
|
942
|
-
l !== void 0 && c.setState({ slideIndex: l });
|
|
943
|
-
}, [l, c]), Ee(
|
|
944
|
-
i,
|
|
945
|
-
() => ({
|
|
946
|
-
...J,
|
|
947
|
-
getState: () => {
|
|
948
|
-
const b = c.getSnapshot();
|
|
949
|
-
return {
|
|
950
|
-
isOpen: b.isOpen,
|
|
951
|
-
groupIndex: b.groupIndex,
|
|
952
|
-
slideIndex: b.slideIndex,
|
|
953
|
-
isPlaying: b.isPlaying
|
|
954
|
-
};
|
|
955
|
-
}
|
|
956
|
-
}),
|
|
957
|
-
[J, c]
|
|
958
|
-
);
|
|
959
|
-
const we = {
|
|
960
|
-
store: c,
|
|
961
|
-
controller: J,
|
|
962
|
-
groups: Z,
|
|
963
|
-
defaultDuration: o,
|
|
964
|
-
pauseHoldDelay: I,
|
|
965
|
-
tapPrevZone: M.tapPrevZone,
|
|
966
|
-
preloadGroup: xe,
|
|
967
|
-
preloadOnHover: j,
|
|
968
|
-
loadingDelay: R,
|
|
969
|
-
overlay: _,
|
|
970
|
-
overlayColor: O,
|
|
971
|
-
zIndex: E,
|
|
972
|
-
groupTransition: B,
|
|
973
|
-
arrows: P,
|
|
974
|
-
mode: G,
|
|
975
|
-
onError: u,
|
|
976
|
-
renderError: h
|
|
977
|
-
};
|
|
978
|
-
return /* @__PURE__ */ n.jsxDEV(Ke, { value: we, children: [
|
|
979
|
-
/* @__PURE__ */ n.jsxDEV(
|
|
980
|
-
Ln,
|
|
981
|
-
{
|
|
982
|
-
className: [k.root, Y].filter(Boolean).join(" "),
|
|
983
|
-
children: te.map(
|
|
984
|
-
(b, S) => Pe(b, { __index: S })
|
|
985
|
-
)
|
|
986
|
-
},
|
|
987
|
-
void 0,
|
|
988
|
-
!1,
|
|
989
|
-
{
|
|
990
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/Stories.tsx",
|
|
991
|
-
lineNumber: 312,
|
|
992
|
-
columnNumber: 7
|
|
993
|
-
},
|
|
994
|
-
void 0
|
|
995
|
-
),
|
|
996
|
-
/* @__PURE__ */ n.jsxDEV(Hn, {}, void 0, !1, {
|
|
997
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/Stories.tsx",
|
|
998
|
-
lineNumber: 321,
|
|
999
|
-
columnNumber: 7
|
|
1000
|
-
}, void 0)
|
|
1001
|
-
] }, void 0, !0, {
|
|
1002
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Stories/Stories.tsx",
|
|
1003
|
-
lineNumber: 311,
|
|
1004
|
-
columnNumber: 5
|
|
1005
|
-
}, void 0);
|
|
1006
|
-
}, Se = Ve(Mn);
|
|
1007
|
-
Se.Preview = fe;
|
|
1008
|
-
Se.displayName = "Stories";
|
|
1009
|
-
export {
|
|
1010
|
-
Se as S,
|
|
1011
|
-
fe as a,
|
|
1012
|
-
tn as b,
|
|
1013
|
-
dn as c,
|
|
1014
|
-
Sn as d,
|
|
1015
|
-
Tn as e,
|
|
1016
|
-
Rn as f,
|
|
1017
|
-
k as s
|
|
1018
|
-
};
|