@max-ts/kit 0.13.2 → 0.15.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/README.md +84 -0
- package/lib/index.mjs +3297 -1
- package/lib/src/components/Accordion/Accordion.d.ts +9 -0
- package/lib/src/components/Accordion/Accordion.d.ts.map +1 -0
- package/lib/src/components/Accordion/index.d.ts +3 -0
- package/lib/src/components/Accordion/index.d.ts.map +1 -0
- package/lib/src/components/Accordion/styles.css.d.ts +10 -0
- package/lib/src/components/Accordion/styles.css.d.ts.map +1 -0
- package/lib/src/components/Accordion/types.d.ts +18 -0
- package/lib/src/components/Accordion/types.d.ts.map +1 -0
- package/lib/src/components/AlertDialog/AlertDialog.d.ts +15 -0
- package/lib/src/components/AlertDialog/AlertDialog.d.ts.map +1 -0
- package/lib/src/components/AlertDialog/index.d.ts +3 -0
- package/lib/src/components/AlertDialog/index.d.ts.map +1 -0
- package/lib/src/components/AlertDialog/styles.css.d.ts +8 -0
- package/lib/src/components/AlertDialog/styles.css.d.ts.map +1 -0
- package/lib/src/components/AlertDialog/types.d.ts +36 -0
- package/lib/src/components/AlertDialog/types.d.ts.map +1 -0
- package/lib/src/components/Badge/Badge.d.ts +8 -0
- package/lib/src/components/Badge/Badge.d.ts.map +1 -0
- package/lib/src/components/Badge/index.d.ts +2 -0
- package/lib/src/components/Badge/index.d.ts.map +1 -0
- package/lib/src/components/Badge/styles.css.d.ts +4 -0
- package/lib/src/components/Badge/styles.css.d.ts.map +1 -0
- package/lib/src/components/Badge/types.d.ts +2 -0
- package/lib/src/components/Badge/types.d.ts.map +1 -0
- package/lib/src/components/Button/Button.d.ts +14 -0
- package/lib/src/components/Button/Button.d.ts.map +1 -0
- package/lib/src/components/Button/Content/Content.d.ts +3 -0
- package/lib/src/components/Button/Content/Content.d.ts.map +1 -0
- package/lib/src/components/Button/Content/index.d.ts +2 -0
- package/lib/src/components/Button/Content/index.d.ts.map +1 -0
- package/lib/src/components/Button/Content/styles.css.d.ts +6 -0
- package/lib/src/components/Button/Content/styles.css.d.ts.map +1 -0
- package/lib/src/components/Button/button.css.d.ts +10 -0
- package/lib/src/components/Button/button.css.d.ts.map +1 -0
- package/lib/src/components/Button/index.d.ts +2 -0
- package/lib/src/components/Button/index.d.ts.map +1 -0
- package/lib/src/components/Button/types.d.ts +3 -0
- package/lib/src/components/Button/types.d.ts.map +1 -0
- package/lib/src/components/ButtonGroup/ButtonGroup.d.ts +21 -0
- package/lib/src/components/ButtonGroup/ButtonGroup.d.ts.map +1 -0
- package/lib/src/components/ButtonGroup/buttonGroup.css.d.ts +5 -0
- package/lib/src/components/ButtonGroup/buttonGroup.css.d.ts.map +1 -0
- package/lib/src/components/ButtonGroup/index.d.ts +2 -0
- package/lib/src/components/ButtonGroup/index.d.ts.map +1 -0
- package/lib/src/components/Calendar/Calendar.d.ts +8 -0
- package/lib/src/components/Calendar/Calendar.d.ts.map +1 -0
- package/lib/src/components/Calendar/DayButton/DayButton.d.ts +7 -0
- package/lib/src/components/Calendar/DayButton/DayButton.d.ts.map +1 -0
- package/lib/src/components/Calendar/DayButton/index.d.ts +2 -0
- package/lib/src/components/Calendar/DayButton/index.d.ts.map +1 -0
- package/lib/src/components/Calendar/DayButton/styles.css.d.ts +4 -0
- package/lib/src/components/Calendar/DayButton/styles.css.d.ts.map +1 -0
- package/lib/src/components/Calendar/Dropdown/Dropdown.d.ts +6 -0
- package/lib/src/components/Calendar/Dropdown/Dropdown.d.ts.map +1 -0
- package/lib/src/components/Calendar/Dropdown/index.d.ts +2 -0
- package/lib/src/components/Calendar/Dropdown/index.d.ts.map +1 -0
- package/lib/src/components/Calendar/Dropdown/styles.css.d.ts +2 -0
- package/lib/src/components/Calendar/Dropdown/styles.css.d.ts.map +1 -0
- package/lib/src/components/Calendar/index.d.ts +2 -0
- package/lib/src/components/Calendar/index.d.ts.map +1 -0
- package/lib/src/components/Calendar/styles.css.d.ts +8 -0
- package/lib/src/components/Calendar/styles.css.d.ts.map +1 -0
- package/lib/src/components/Card/Card.d.ts +12 -0
- package/lib/src/components/Card/Card.d.ts.map +1 -0
- package/lib/src/components/Card/card.css.d.ts +7 -0
- package/lib/src/components/Card/card.css.d.ts.map +1 -0
- package/lib/src/components/Card/index.d.ts +2 -0
- package/lib/src/components/Card/index.d.ts.map +1 -0
- package/lib/src/components/Carousel/Buttons/Buttons.d.ts +3 -0
- package/lib/src/components/Carousel/Buttons/Buttons.d.ts.map +1 -0
- package/lib/src/components/Carousel/Buttons/index.d.ts +2 -0
- package/lib/src/components/Carousel/Buttons/index.d.ts.map +1 -0
- package/lib/src/components/Carousel/Buttons/styles.css.d.ts +4 -0
- package/lib/src/components/Carousel/Buttons/styles.css.d.ts.map +1 -0
- package/lib/src/components/Carousel/Carousel.d.ts +18 -0
- package/lib/src/components/Carousel/Carousel.d.ts.map +1 -0
- package/lib/src/components/Carousel/CarouselContext.d.ts +17 -0
- package/lib/src/components/Carousel/CarouselContext.d.ts.map +1 -0
- package/lib/src/components/Carousel/Content/Content.d.ts +2 -0
- package/lib/src/components/Carousel/Content/Content.d.ts.map +1 -0
- package/lib/src/components/Carousel/Content/index.d.ts +2 -0
- package/lib/src/components/Carousel/Content/index.d.ts.map +1 -0
- package/lib/src/components/Carousel/Content/styles.css.d.ts +3 -0
- package/lib/src/components/Carousel/Content/styles.css.d.ts.map +1 -0
- package/lib/src/components/Carousel/Dots/Dots.d.ts +6 -0
- package/lib/src/components/Carousel/Dots/Dots.d.ts.map +1 -0
- package/lib/src/components/Carousel/Dots/index.d.ts +2 -0
- package/lib/src/components/Carousel/Dots/index.d.ts.map +1 -0
- package/lib/src/components/Carousel/Dots/styles.css.d.ts +4 -0
- package/lib/src/components/Carousel/Dots/styles.css.d.ts.map +1 -0
- package/lib/src/components/Carousel/Dots/useLogic/index.d.ts +2 -0
- package/lib/src/components/Carousel/Dots/useLogic/index.d.ts.map +1 -0
- package/lib/src/components/Carousel/Dots/useLogic/useLogic.d.ts +7 -0
- package/lib/src/components/Carousel/Dots/useLogic/useLogic.d.ts.map +1 -0
- package/lib/src/components/Carousel/Item/Item.d.ts +2 -0
- package/lib/src/components/Carousel/Item/Item.d.ts.map +1 -0
- package/lib/src/components/Carousel/Item/index.d.ts +2 -0
- package/lib/src/components/Carousel/Item/index.d.ts.map +1 -0
- package/lib/src/components/Carousel/Item/styles.css.d.ts +2 -0
- package/lib/src/components/Carousel/Item/styles.css.d.ts.map +1 -0
- package/lib/src/components/Carousel/index.d.ts +2 -0
- package/lib/src/components/Carousel/index.d.ts.map +1 -0
- package/lib/src/components/Carousel/styles.css.d.ts +2 -0
- package/lib/src/components/Carousel/styles.css.d.ts.map +1 -0
- package/lib/src/components/Carousel/types.d.ts +7 -0
- package/lib/src/components/Carousel/types.d.ts.map +1 -0
- package/lib/src/components/Carousel/useLogic/index.d.ts +2 -0
- package/lib/src/components/Carousel/useLogic/index.d.ts.map +1 -0
- package/lib/src/components/Carousel/useLogic/useLogic.d.ts +20 -0
- package/lib/src/components/Carousel/useLogic/useLogic.d.ts.map +1 -0
- package/lib/src/components/Checkbox/Checkbox.d.ts +4 -0
- package/lib/src/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/src/components/Checkbox/checkbox.css.d.ts +4 -0
- package/lib/src/components/Checkbox/checkbox.css.d.ts.map +1 -0
- package/lib/src/components/Checkbox/index.d.ts +2 -0
- package/lib/src/components/Checkbox/index.d.ts.map +1 -0
- package/lib/src/components/CircularProgress/CircularProgress.d.ts +11 -0
- package/lib/src/components/CircularProgress/CircularProgress.d.ts.map +1 -0
- package/lib/src/components/CircularProgress/index.d.ts +2 -0
- package/lib/src/components/CircularProgress/index.d.ts.map +1 -0
- package/lib/src/components/CircularProgress/styles.css.d.ts +6 -0
- package/lib/src/components/CircularProgress/styles.css.d.ts.map +1 -0
- package/lib/src/components/ConfirmAction/ConfirmAction.d.ts +40 -0
- package/lib/src/components/ConfirmAction/ConfirmAction.d.ts.map +1 -0
- package/lib/src/components/ConfirmAction/index.d.ts +2 -0
- package/lib/src/components/ConfirmAction/index.d.ts.map +1 -0
- package/lib/src/components/ConfirmAction/styles.css.d.ts +5 -0
- package/lib/src/components/ConfirmAction/styles.css.d.ts.map +1 -0
- package/lib/src/components/ConfirmAction/useLogic.d.ts +10 -0
- package/lib/src/components/ConfirmAction/useLogic.d.ts.map +1 -0
- package/lib/src/components/ContentState/ContentState.d.ts +35 -0
- package/lib/src/components/ContentState/ContentState.d.ts.map +1 -0
- package/lib/src/components/ContentState/index.d.ts +3 -0
- package/lib/src/components/ContentState/index.d.ts.map +1 -0
- package/lib/src/components/ContentState/styles.css.d.ts +2 -0
- package/lib/src/components/ContentState/styles.css.d.ts.map +1 -0
- package/lib/src/components/ContentState/types.d.ts +25 -0
- package/lib/src/components/ContentState/types.d.ts.map +1 -0
- package/lib/src/components/CopyTypography/CopyTypography.d.ts +18 -0
- package/lib/src/components/CopyTypography/CopyTypography.d.ts.map +1 -0
- package/lib/src/components/CopyTypography/enums.d.ts +6 -0
- package/lib/src/components/CopyTypography/enums.d.ts.map +1 -0
- package/lib/src/components/CopyTypography/index.d.ts +2 -0
- package/lib/src/components/CopyTypography/index.d.ts.map +1 -0
- package/lib/src/components/CopyTypography/styles.css.d.ts +3 -0
- package/lib/src/components/CopyTypography/styles.css.d.ts.map +1 -0
- package/lib/src/components/CopyTypography/useLogic/index.d.ts +2 -0
- package/lib/src/components/CopyTypography/useLogic/index.d.ts.map +1 -0
- package/lib/src/components/CopyTypography/useLogic/useLogic.d.ts +13 -0
- package/lib/src/components/CopyTypography/useLogic/useLogic.d.ts.map +1 -0
- package/lib/src/components/DashboardLayout/DashboardContext.d.ts +6 -0
- package/lib/src/components/DashboardLayout/DashboardContext.d.ts.map +1 -0
- package/lib/src/components/DashboardLayout/DashboardLayout.d.ts +10 -0
- package/lib/src/components/DashboardLayout/DashboardLayout.d.ts.map +1 -0
- package/lib/src/components/DashboardLayout/Main/Main.d.ts +7 -0
- package/lib/src/components/DashboardLayout/Main/Main.d.ts.map +1 -0
- package/lib/src/components/DashboardLayout/Main/index.d.ts +2 -0
- package/lib/src/components/DashboardLayout/Main/index.d.ts.map +1 -0
- package/lib/src/components/DashboardLayout/Main/styles.css.d.ts +2 -0
- package/lib/src/components/DashboardLayout/Main/styles.css.d.ts.map +1 -0
- package/lib/src/components/DashboardLayout/Sidebar/Sidebar.d.ts +11 -0
- package/lib/src/components/DashboardLayout/Sidebar/Sidebar.d.ts.map +1 -0
- package/lib/src/components/DashboardLayout/Sidebar/constants.d.ts +2 -0
- package/lib/src/components/DashboardLayout/Sidebar/constants.d.ts.map +1 -0
- package/lib/src/components/DashboardLayout/Sidebar/index.d.ts +2 -0
- package/lib/src/components/DashboardLayout/Sidebar/index.d.ts.map +1 -0
- package/lib/src/components/DashboardLayout/Sidebar/styles.css.d.ts +8 -0
- package/lib/src/components/DashboardLayout/Sidebar/styles.css.d.ts.map +1 -0
- package/lib/src/components/DashboardLayout/constants.d.ts +2 -0
- package/lib/src/components/DashboardLayout/constants.d.ts.map +1 -0
- package/lib/src/components/DashboardLayout/hooks/index.d.ts +3 -0
- package/lib/src/components/DashboardLayout/hooks/index.d.ts.map +1 -0
- package/lib/src/components/DashboardLayout/hooks/useDashboard.d.ts +6 -0
- package/lib/src/components/DashboardLayout/hooks/useDashboard.d.ts.map +1 -0
- package/lib/src/components/DashboardLayout/hooks/useLogic.d.ts +5 -0
- package/lib/src/components/DashboardLayout/hooks/useLogic.d.ts.map +1 -0
- package/lib/src/components/DashboardLayout/index.d.ts +3 -0
- package/lib/src/components/DashboardLayout/index.d.ts.map +1 -0
- package/lib/src/components/DashboardLayout/styles.css.d.ts +2 -0
- package/lib/src/components/DashboardLayout/styles.css.d.ts.map +1 -0
- package/lib/src/components/DataGrid/Body/Body.d.ts +6 -0
- package/lib/src/components/DataGrid/Body/Body.d.ts.map +1 -0
- package/lib/src/components/DataGrid/Body/index.d.ts +2 -0
- package/lib/src/components/DataGrid/Body/index.d.ts.map +1 -0
- package/lib/src/components/DataGrid/Body/styles.css.d.ts +2 -0
- package/lib/src/components/DataGrid/Body/styles.css.d.ts.map +1 -0
- package/lib/src/components/DataGrid/Cell/Cell.d.ts +9 -0
- package/lib/src/components/DataGrid/Cell/Cell.d.ts.map +1 -0
- package/lib/src/components/DataGrid/Cell/index.d.ts +2 -0
- package/lib/src/components/DataGrid/Cell/index.d.ts.map +1 -0
- package/lib/src/components/DataGrid/Cell/styles.css.d.ts +3 -0
- package/lib/src/components/DataGrid/Cell/styles.css.d.ts.map +1 -0
- package/lib/src/components/DataGrid/DataGrid.d.ts +24 -0
- package/lib/src/components/DataGrid/DataGrid.d.ts.map +1 -0
- package/lib/src/components/DataGrid/Footer/Footer.d.ts +5 -0
- package/lib/src/components/DataGrid/Footer/Footer.d.ts.map +1 -0
- package/lib/src/components/DataGrid/Footer/index.d.ts +2 -0
- package/lib/src/components/DataGrid/Footer/index.d.ts.map +1 -0
- package/lib/src/components/DataGrid/Footer/styles.css.d.ts +2 -0
- package/lib/src/components/DataGrid/Footer/styles.css.d.ts.map +1 -0
- package/lib/src/components/DataGrid/Header/Header.d.ts +10 -0
- package/lib/src/components/DataGrid/Header/Header.d.ts.map +1 -0
- package/lib/src/components/DataGrid/Header/index.d.ts +2 -0
- package/lib/src/components/DataGrid/Header/index.d.ts.map +1 -0
- package/lib/src/components/DataGrid/Header/styles.css.d.ts +2 -0
- package/lib/src/components/DataGrid/Header/styles.css.d.ts.map +1 -0
- package/lib/src/components/DataGrid/HeaderCell/HeaderCell.d.ts +9 -0
- package/lib/src/components/DataGrid/HeaderCell/HeaderCell.d.ts.map +1 -0
- package/lib/src/components/DataGrid/HeaderCell/index.d.ts +2 -0
- package/lib/src/components/DataGrid/HeaderCell/index.d.ts.map +1 -0
- package/lib/src/components/DataGrid/HeaderCell/styles.css.d.ts +2 -0
- package/lib/src/components/DataGrid/HeaderCell/styles.css.d.ts.map +1 -0
- package/lib/src/components/DataGrid/Row/Row.d.ts +12 -0
- package/lib/src/components/DataGrid/Row/Row.d.ts.map +1 -0
- package/lib/src/components/DataGrid/Row/index.d.ts +2 -0
- package/lib/src/components/DataGrid/Row/index.d.ts.map +1 -0
- package/lib/src/components/DataGrid/Row/styles.css.d.ts +3 -0
- package/lib/src/components/DataGrid/Row/styles.css.d.ts.map +1 -0
- package/lib/src/components/DataGrid/State/State.d.ts +11 -0
- package/lib/src/components/DataGrid/State/State.d.ts.map +1 -0
- package/lib/src/components/DataGrid/State/index.d.ts +2 -0
- package/lib/src/components/DataGrid/State/index.d.ts.map +1 -0
- package/lib/src/components/DataGrid/State/styles.css.d.ts +3 -0
- package/lib/src/components/DataGrid/State/styles.css.d.ts.map +1 -0
- package/lib/src/components/DataGrid/constants.d.ts +2 -0
- package/lib/src/components/DataGrid/constants.d.ts.map +1 -0
- package/lib/src/components/DataGrid/index.d.ts +3 -0
- package/lib/src/components/DataGrid/index.d.ts.map +1 -0
- package/lib/src/components/DataGrid/styles.css.d.ts +7 -0
- package/lib/src/components/DataGrid/styles.css.d.ts.map +1 -0
- package/lib/src/components/DataGrid/types.d.ts +25 -0
- package/lib/src/components/DataGrid/types.d.ts.map +1 -0
- package/lib/src/components/DataGridActionCell/DataGridActionCell.d.ts +23 -0
- package/lib/src/components/DataGridActionCell/DataGridActionCell.d.ts.map +1 -0
- package/lib/src/components/DataGridActionCell/MainAction/MainAction.d.ts +23 -0
- package/lib/src/components/DataGridActionCell/MainAction/MainAction.d.ts.map +1 -0
- package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.d.ts +22 -0
- package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.d.ts.map +1 -0
- package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/index.d.ts +2 -0
- package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/index.d.ts.map +1 -0
- package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/useLogic/index.d.ts +2 -0
- package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/useLogic/index.d.ts.map +1 -0
- package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.d.ts +11 -0
- package/lib/src/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.d.ts.map +1 -0
- package/lib/src/components/DataGridActionCell/MainAction/index.d.ts +2 -0
- package/lib/src/components/DataGridActionCell/MainAction/index.d.ts.map +1 -0
- package/lib/src/components/DataGridActionCell/SecondaryAction/SecondaryAction.d.ts +23 -0
- package/lib/src/components/DataGridActionCell/SecondaryAction/SecondaryAction.d.ts.map +1 -0
- package/lib/src/components/DataGridActionCell/SecondaryAction/index.d.ts +2 -0
- package/lib/src/components/DataGridActionCell/SecondaryAction/index.d.ts.map +1 -0
- package/lib/src/components/DataGridActionCell/index.d.ts +2 -0
- package/lib/src/components/DataGridActionCell/index.d.ts.map +1 -0
- package/lib/src/components/DataGridActionCell/styles.css.d.ts +2 -0
- package/lib/src/components/DataGridActionCell/styles.css.d.ts.map +1 -0
- package/lib/src/components/DataGridActionCell/types.d.ts +101 -0
- package/lib/src/components/DataGridActionCell/types.d.ts.map +1 -0
- package/lib/src/components/DataGridActionCell/useLogic/index.d.ts +2 -0
- package/lib/src/components/DataGridActionCell/useLogic/index.d.ts.map +1 -0
- package/lib/src/components/DataGridActionCell/useLogic/useLogic.d.ts +11 -0
- package/lib/src/components/DataGridActionCell/useLogic/useLogic.d.ts.map +1 -0
- package/lib/src/components/DataGridSortHeader/DataGridSortHeader.d.ts +10 -0
- package/lib/src/components/DataGridSortHeader/DataGridSortHeader.d.ts.map +1 -0
- package/lib/src/components/DataGridSortHeader/index.d.ts +3 -0
- package/lib/src/components/DataGridSortHeader/index.d.ts.map +1 -0
- package/lib/src/components/DataGridSortHeader/styles.css.d.ts +3 -0
- package/lib/src/components/DataGridSortHeader/styles.css.d.ts.map +1 -0
- package/lib/src/components/DataGridSortHeader/types.d.ts +5 -0
- package/lib/src/components/DataGridSortHeader/types.d.ts.map +1 -0
- package/lib/src/components/DataList/DataList.d.ts +57 -0
- package/lib/src/components/DataList/DataList.d.ts.map +1 -0
- package/lib/src/components/DataList/EndData/EndData.d.ts +6 -0
- package/lib/src/components/DataList/EndData/EndData.d.ts.map +1 -0
- package/lib/src/components/DataList/EndData/constants.d.ts +2 -0
- package/lib/src/components/DataList/EndData/constants.d.ts.map +1 -0
- package/lib/src/components/DataList/EndData/index.d.ts +2 -0
- package/lib/src/components/DataList/EndData/index.d.ts.map +1 -0
- package/lib/src/components/DataList/EndData/styles.css.d.ts +2 -0
- package/lib/src/components/DataList/EndData/styles.css.d.ts.map +1 -0
- package/lib/src/components/DataList/ErrorState/ErrorState.d.ts +6 -0
- package/lib/src/components/DataList/ErrorState/ErrorState.d.ts.map +1 -0
- package/lib/src/components/DataList/ErrorState/constants.d.ts +2 -0
- package/lib/src/components/DataList/ErrorState/constants.d.ts.map +1 -0
- package/lib/src/components/DataList/ErrorState/index.d.ts +2 -0
- package/lib/src/components/DataList/ErrorState/index.d.ts.map +1 -0
- package/lib/src/components/DataList/ErrorState/styles.css.d.ts +2 -0
- package/lib/src/components/DataList/ErrorState/styles.css.d.ts.map +1 -0
- package/lib/src/components/DataList/Loader/Loader.d.ts +2 -0
- package/lib/src/components/DataList/Loader/Loader.d.ts.map +1 -0
- package/lib/src/components/DataList/Loader/index.d.ts +2 -0
- package/lib/src/components/DataList/Loader/index.d.ts.map +1 -0
- package/lib/src/components/DataList/Loader/styles.css.d.ts +2 -0
- package/lib/src/components/DataList/Loader/styles.css.d.ts.map +1 -0
- package/lib/src/components/DataList/NoData/NoData.d.ts +6 -0
- package/lib/src/components/DataList/NoData/NoData.d.ts.map +1 -0
- package/lib/src/components/DataList/NoData/constants.d.ts +2 -0
- package/lib/src/components/DataList/NoData/constants.d.ts.map +1 -0
- package/lib/src/components/DataList/NoData/index.d.ts +2 -0
- package/lib/src/components/DataList/NoData/index.d.ts.map +1 -0
- package/lib/src/components/DataList/ScrollToTopButton/ScrollToTopButton.d.ts +6 -0
- package/lib/src/components/DataList/ScrollToTopButton/ScrollToTopButton.d.ts.map +1 -0
- package/lib/src/components/DataList/ScrollToTopButton/index.d.ts +2 -0
- package/lib/src/components/DataList/ScrollToTopButton/index.d.ts.map +1 -0
- package/lib/src/components/DataList/ScrollToTopButton/styles.css.d.ts +3 -0
- package/lib/src/components/DataList/ScrollToTopButton/styles.css.d.ts.map +1 -0
- package/lib/src/components/DataList/constants.d.ts +3 -0
- package/lib/src/components/DataList/constants.d.ts.map +1 -0
- package/lib/src/components/DataList/index.d.ts +2 -0
- package/lib/src/components/DataList/index.d.ts.map +1 -0
- package/lib/src/components/DataList/styles.css.d.ts +3 -0
- package/lib/src/components/DataList/styles.css.d.ts.map +1 -0
- package/lib/src/components/DatePicker/DatePicker.d.ts +12 -0
- package/lib/src/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/lib/src/components/DatePicker/index.d.ts +2 -0
- package/lib/src/components/DatePicker/index.d.ts.map +1 -0
- package/lib/src/components/Description/Description.d.ts +36 -0
- package/lib/src/components/Description/Description.d.ts.map +1 -0
- package/lib/src/components/Description/DescriptionContext/DescriptionContext.d.ts +7 -0
- package/lib/src/components/Description/DescriptionContext/DescriptionContext.d.ts.map +1 -0
- package/lib/src/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.d.ts +8 -0
- package/lib/src/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.d.ts.map +1 -0
- package/lib/src/components/Description/DescriptionContext/DescriptionContextProvider/index.d.ts +2 -0
- package/lib/src/components/Description/DescriptionContext/DescriptionContextProvider/index.d.ts.map +1 -0
- package/lib/src/components/Description/DescriptionContext/index.d.ts +3 -0
- package/lib/src/components/Description/DescriptionContext/index.d.ts.map +1 -0
- package/lib/src/components/Description/Name/Name.d.ts +4 -0
- package/lib/src/components/Description/Name/Name.d.ts.map +1 -0
- package/lib/src/components/Description/Name/index.d.ts +2 -0
- package/lib/src/components/Description/Name/index.d.ts.map +1 -0
- package/lib/src/components/Description/Name/styles.css.d.ts +4 -0
- package/lib/src/components/Description/Name/styles.css.d.ts.map +1 -0
- package/lib/src/components/Description/Value/Value.d.ts +23 -0
- package/lib/src/components/Description/Value/Value.d.ts.map +1 -0
- package/lib/src/components/Description/Value/index.d.ts +2 -0
- package/lib/src/components/Description/Value/index.d.ts.map +1 -0
- package/lib/src/components/Description/Value/styles.css.d.ts +4 -0
- package/lib/src/components/Description/Value/styles.css.d.ts.map +1 -0
- package/lib/src/components/Description/Value/useLogic/index.d.ts +2 -0
- package/lib/src/components/Description/Value/useLogic/index.d.ts.map +1 -0
- package/lib/src/components/Description/Value/useLogic/useLogic.d.ts +10 -0
- package/lib/src/components/Description/Value/useLogic/useLogic.d.ts.map +1 -0
- package/lib/src/components/Description/constants.d.ts +4 -0
- package/lib/src/components/Description/constants.d.ts.map +1 -0
- package/lib/src/components/Description/index.d.ts +3 -0
- package/lib/src/components/Description/index.d.ts.map +1 -0
- package/lib/src/components/Description/styles.css.d.ts +4 -0
- package/lib/src/components/Description/styles.css.d.ts.map +1 -0
- package/lib/src/components/Description/useLogic/index.d.ts +2 -0
- package/lib/src/components/Description/useLogic/index.d.ts.map +1 -0
- package/lib/src/components/Description/useLogic/useLogic.d.ts +10 -0
- package/lib/src/components/Description/useLogic/useLogic.d.ts.map +1 -0
- package/lib/src/components/Dialog/Dialog.d.ts +11 -0
- package/lib/src/components/Dialog/Dialog.d.ts.map +1 -0
- package/lib/src/components/Dialog/index.d.ts +2 -0
- package/lib/src/components/Dialog/index.d.ts.map +1 -0
- package/lib/src/components/Dialog/styles.css.d.ts +10 -0
- package/lib/src/components/Dialog/styles.css.d.ts.map +1 -0
- package/lib/src/components/Drawer/Drawer.d.ts +12 -0
- package/lib/src/components/Drawer/Drawer.d.ts.map +1 -0
- package/lib/src/components/Drawer/index.d.ts +2 -0
- package/lib/src/components/Drawer/index.d.ts.map +1 -0
- package/lib/src/components/Drawer/styles.css.d.ts +8 -0
- package/lib/src/components/Drawer/styles.css.d.ts.map +1 -0
- package/lib/src/components/DropdownMenu/DropdownMenu.d.ts +25 -0
- package/lib/src/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/lib/src/components/DropdownMenu/index.d.ts +2 -0
- package/lib/src/components/DropdownMenu/index.d.ts.map +1 -0
- package/lib/src/components/DropdownMenu/styles.css.d.ts +13 -0
- package/lib/src/components/DropdownMenu/styles.css.d.ts.map +1 -0
- package/lib/src/components/ImageCarousel/ImageCarousel.d.ts +11 -0
- package/lib/src/components/ImageCarousel/ImageCarousel.d.ts.map +1 -0
- package/lib/src/components/ImageCarousel/index.d.ts +2 -0
- package/lib/src/components/ImageCarousel/index.d.ts.map +1 -0
- package/lib/src/components/ImageCarousel/styles.css.d.ts +10 -0
- package/lib/src/components/ImageCarousel/styles.css.d.ts.map +1 -0
- package/lib/src/components/Input/Input.d.ts +12 -0
- package/lib/src/components/Input/Input.d.ts.map +1 -0
- package/lib/src/components/Input/index.d.ts +2 -0
- package/lib/src/components/Input/index.d.ts.map +1 -0
- package/lib/src/components/Input/styles.css.d.ts +13 -0
- package/lib/src/components/Input/styles.css.d.ts.map +1 -0
- package/lib/src/components/InputOTP/InputOTP.d.ts +7 -0
- package/lib/src/components/InputOTP/InputOTP.d.ts.map +1 -0
- package/lib/src/components/InputOTP/Separator/Separator.d.ts +5 -0
- package/lib/src/components/InputOTP/Separator/Separator.d.ts.map +1 -0
- package/lib/src/components/InputOTP/Separator/index.d.ts +2 -0
- package/lib/src/components/InputOTP/Separator/index.d.ts.map +1 -0
- package/lib/src/components/InputOTP/Separator/styles.css.d.ts +2 -0
- package/lib/src/components/InputOTP/Separator/styles.css.d.ts.map +1 -0
- package/lib/src/components/InputOTP/Slot/Slot.d.ts +3 -0
- package/lib/src/components/InputOTP/Slot/Slot.d.ts.map +1 -0
- package/lib/src/components/InputOTP/Slot/index.d.ts +2 -0
- package/lib/src/components/InputOTP/Slot/index.d.ts.map +1 -0
- package/lib/src/components/InputOTP/Slot/styles.css.d.ts +6 -0
- package/lib/src/components/InputOTP/Slot/styles.css.d.ts.map +1 -0
- package/lib/src/components/InputOTP/index.d.ts +2 -0
- package/lib/src/components/InputOTP/index.d.ts.map +1 -0
- package/lib/src/components/InputOTP/styles.css.d.ts +5 -0
- package/lib/src/components/InputOTP/styles.css.d.ts.map +1 -0
- package/lib/src/components/Label/Label.d.ts +8 -0
- package/lib/src/components/Label/Label.d.ts.map +1 -0
- package/lib/src/components/Label/index.d.ts +2 -0
- package/lib/src/components/Label/index.d.ts.map +1 -0
- package/lib/src/components/Label/label.css.d.ts +5 -0
- package/lib/src/components/Label/label.css.d.ts.map +1 -0
- package/lib/src/components/MaskField/MaskField.d.ts +7 -0
- package/lib/src/components/MaskField/MaskField.d.ts.map +1 -0
- package/lib/src/components/MaskField/index.d.ts +2 -0
- package/lib/src/components/MaskField/index.d.ts.map +1 -0
- package/lib/src/components/Notification/Notification.d.ts +20 -0
- package/lib/src/components/Notification/Notification.d.ts.map +1 -0
- package/lib/src/components/Notification/NotificationContainer/NotificationContainer.d.ts +9 -0
- package/lib/src/components/Notification/NotificationContainer/NotificationContainer.d.ts.map +1 -0
- package/lib/src/components/Notification/NotificationContainer/index.d.ts +2 -0
- package/lib/src/components/Notification/NotificationContainer/index.d.ts.map +1 -0
- package/lib/src/components/Notification/constants.d.ts +16 -0
- package/lib/src/components/Notification/constants.d.ts.map +1 -0
- package/lib/src/components/Notification/index.d.ts +4 -0
- package/lib/src/components/Notification/index.d.ts.map +1 -0
- package/lib/src/components/PageLayout/Aside/Aside.d.ts +7 -0
- package/lib/src/components/PageLayout/Aside/Aside.d.ts.map +1 -0
- package/lib/src/components/PageLayout/Aside/index.d.ts +2 -0
- package/lib/src/components/PageLayout/Aside/index.d.ts.map +1 -0
- package/lib/src/components/PageLayout/Aside/styles.css.d.ts +2 -0
- package/lib/src/components/PageLayout/Aside/styles.css.d.ts.map +1 -0
- package/lib/src/components/PageLayout/Content/Content.d.ts +14 -0
- package/lib/src/components/PageLayout/Content/Content.d.ts.map +1 -0
- package/lib/src/components/PageLayout/Content/index.d.ts +2 -0
- package/lib/src/components/PageLayout/Content/index.d.ts.map +1 -0
- package/lib/src/components/PageLayout/Content/styles.css.d.ts +3 -0
- package/lib/src/components/PageLayout/Content/styles.css.d.ts.map +1 -0
- package/lib/src/components/PageLayout/Footer/Footer.d.ts +7 -0
- package/lib/src/components/PageLayout/Footer/Footer.d.ts.map +1 -0
- package/lib/src/components/PageLayout/Footer/index.d.ts +2 -0
- package/lib/src/components/PageLayout/Footer/index.d.ts.map +1 -0
- package/lib/src/components/PageLayout/Footer/styles.css.d.ts +2 -0
- package/lib/src/components/PageLayout/Footer/styles.css.d.ts.map +1 -0
- package/lib/src/components/PageLayout/Header/Header.d.ts +46 -0
- package/lib/src/components/PageLayout/Header/Header.d.ts.map +1 -0
- package/lib/src/components/PageLayout/Header/index.d.ts +2 -0
- package/lib/src/components/PageLayout/Header/index.d.ts.map +1 -0
- package/lib/src/components/PageLayout/Header/styles.css.d.ts +9 -0
- package/lib/src/components/PageLayout/Header/styles.css.d.ts.map +1 -0
- package/lib/src/components/PageLayout/PageLayout.d.ts +13 -0
- package/lib/src/components/PageLayout/PageLayout.d.ts.map +1 -0
- package/lib/src/components/PageLayout/constants.d.ts +6 -0
- package/lib/src/components/PageLayout/constants.d.ts.map +1 -0
- package/lib/src/components/PageLayout/index.d.ts +2 -0
- package/lib/src/components/PageLayout/index.d.ts.map +1 -0
- package/lib/src/components/PageLayout/styles.css.d.ts +2 -0
- package/lib/src/components/PageLayout/styles.css.d.ts.map +1 -0
- package/lib/src/components/Pagination/Pagination.d.ts +13 -0
- package/lib/src/components/Pagination/Pagination.d.ts.map +1 -0
- package/lib/src/components/Pagination/index.d.ts +2 -0
- package/lib/src/components/Pagination/index.d.ts.map +1 -0
- package/lib/src/components/Pagination/styles.css.d.ts +3 -0
- package/lib/src/components/Pagination/styles.css.d.ts.map +1 -0
- package/lib/src/components/Pagination/useLogic.d.ts +10 -0
- package/lib/src/components/Pagination/useLogic.d.ts.map +1 -0
- package/lib/src/components/PeriodPicker/PeriodPicker.d.ts +11 -0
- package/lib/src/components/PeriodPicker/PeriodPicker.d.ts.map +1 -0
- package/lib/src/components/PeriodPicker/YearsDropdown/YearsDropdown.d.ts +9 -0
- package/lib/src/components/PeriodPicker/YearsDropdown/YearsDropdown.d.ts.map +1 -0
- package/lib/src/components/PeriodPicker/YearsDropdown/index.d.ts +2 -0
- package/lib/src/components/PeriodPicker/YearsDropdown/index.d.ts.map +1 -0
- package/lib/src/components/PeriodPicker/constants.d.ts +3 -0
- package/lib/src/components/PeriodPicker/constants.d.ts.map +1 -0
- package/lib/src/components/PeriodPicker/index.d.ts +2 -0
- package/lib/src/components/PeriodPicker/index.d.ts.map +1 -0
- package/lib/src/components/PeriodPicker/styles.css.d.ts +4 -0
- package/lib/src/components/PeriodPicker/styles.css.d.ts.map +1 -0
- package/lib/src/components/PeriodPicker/utils.d.ts +4 -0
- package/lib/src/components/PeriodPicker/utils.d.ts.map +1 -0
- package/lib/src/components/Placeholder/Image/Image.d.ts +7 -0
- package/lib/src/components/Placeholder/Image/Image.d.ts.map +1 -0
- package/lib/src/components/Placeholder/Image/index.d.ts +2 -0
- package/lib/src/components/Placeholder/Image/index.d.ts.map +1 -0
- package/lib/src/components/Placeholder/Image/styles.css.d.ts +4 -0
- package/lib/src/components/Placeholder/Image/styles.css.d.ts.map +1 -0
- package/lib/src/components/Placeholder/Placeholder.d.ts +41 -0
- package/lib/src/components/Placeholder/Placeholder.d.ts.map +1 -0
- package/lib/src/components/Placeholder/constants.d.ts +23 -0
- package/lib/src/components/Placeholder/constants.d.ts.map +1 -0
- package/lib/src/components/Placeholder/index.d.ts +4 -0
- package/lib/src/components/Placeholder/index.d.ts.map +1 -0
- package/lib/src/components/Placeholder/styles.css.d.ts +7 -0
- package/lib/src/components/Placeholder/styles.css.d.ts.map +1 -0
- package/lib/src/components/Placeholder/types.d.ts +2 -0
- package/lib/src/components/Placeholder/types.d.ts.map +1 -0
- package/lib/src/components/Popover/Popover.d.ts +3 -0
- package/lib/src/components/Popover/Popover.d.ts.map +1 -0
- package/lib/src/components/Popover/PopoverContent.d.ts +4 -0
- package/lib/src/components/Popover/PopoverContent.d.ts.map +1 -0
- package/lib/src/components/Popover/index.d.ts +3 -0
- package/lib/src/components/Popover/index.d.ts.map +1 -0
- package/lib/src/components/Popover/styles.css.d.ts +2 -0
- package/lib/src/components/Popover/styles.css.d.ts.map +1 -0
- package/lib/src/components/RadioGroup/RadioGroup.d.ts +4 -0
- package/lib/src/components/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/lib/src/components/RadioGroup/RadioGroupItem.d.ts +6 -0
- package/lib/src/components/RadioGroup/RadioGroupItem.d.ts.map +1 -0
- package/lib/src/components/RadioGroup/index.d.ts +3 -0
- package/lib/src/components/RadioGroup/index.d.ts.map +1 -0
- package/lib/src/components/RadioGroup/styles.css.d.ts +6 -0
- package/lib/src/components/RadioGroup/styles.css.d.ts.map +1 -0
- package/lib/src/components/RangeInput/RangeInput.d.ts +17 -0
- package/lib/src/components/RangeInput/RangeInput.d.ts.map +1 -0
- package/lib/src/components/RangeInput/index.d.ts +2 -0
- package/lib/src/components/RangeInput/index.d.ts.map +1 -0
- package/lib/src/components/RangeInput/styles.css.d.ts +7 -0
- package/lib/src/components/RangeInput/styles.css.d.ts.map +1 -0
- package/lib/src/components/RangeInput/useLogic/index.d.ts +2 -0
- package/lib/src/components/RangeInput/useLogic/index.d.ts.map +1 -0
- package/lib/src/components/RangeInput/useLogic/useLogic.d.ts +14 -0
- package/lib/src/components/RangeInput/useLogic/useLogic.d.ts.map +1 -0
- package/lib/src/components/ScrollTopButton/ScrollTopButton.d.ts +5 -0
- package/lib/src/components/ScrollTopButton/ScrollTopButton.d.ts.map +1 -0
- package/lib/src/components/ScrollTopButton/index.d.ts +2 -0
- package/lib/src/components/ScrollTopButton/index.d.ts.map +1 -0
- package/lib/src/components/ScrollTopButton/styles.css.d.ts +3 -0
- package/lib/src/components/ScrollTopButton/styles.css.d.ts.map +1 -0
- package/lib/src/components/Select/Select.d.ts +22 -0
- package/lib/src/components/Select/Select.d.ts.map +1 -0
- package/lib/src/components/Select/index.d.ts +2 -0
- package/lib/src/components/Select/index.d.ts.map +1 -0
- package/lib/src/components/Select/styles.css.d.ts +12 -0
- package/lib/src/components/Select/styles.css.d.ts.map +1 -0
- package/lib/src/components/Slider/Slider.d.ts +4 -0
- package/lib/src/components/Slider/Slider.d.ts.map +1 -0
- package/lib/src/components/Slider/index.d.ts +2 -0
- package/lib/src/components/Slider/index.d.ts.map +1 -0
- package/lib/src/components/Slider/styles.css.d.ts +5 -0
- package/lib/src/components/Slider/styles.css.d.ts.map +1 -0
- package/lib/src/components/Tabs/Tabs.d.ts +9 -0
- package/lib/src/components/Tabs/Tabs.d.ts.map +1 -0
- package/lib/src/components/Tabs/TabsContent.d.ts +4 -0
- package/lib/src/components/Tabs/TabsContent.d.ts.map +1 -0
- package/lib/src/components/Tabs/TabsList.d.ts +4 -0
- package/lib/src/components/Tabs/TabsList.d.ts.map +1 -0
- package/lib/src/components/Tabs/TabsTrigger.d.ts +6 -0
- package/lib/src/components/Tabs/TabsTrigger.d.ts.map +1 -0
- package/lib/src/components/Tabs/index.d.ts +2 -0
- package/lib/src/components/Tabs/index.d.ts.map +1 -0
- package/lib/src/components/Tabs/styles.css.d.ts +5 -0
- package/lib/src/components/Tabs/styles.css.d.ts.map +1 -0
- package/lib/src/components/TextField/TextField.d.ts +8 -0
- package/lib/src/components/TextField/TextField.d.ts.map +1 -0
- package/lib/src/components/TextField/index.d.ts +2 -0
- package/lib/src/components/TextField/index.d.ts.map +1 -0
- package/lib/src/components/TextField/styles.css.d.ts +7 -0
- package/lib/src/components/TextField/styles.css.d.ts.map +1 -0
- package/lib/src/components/Tooltip/Tooltip.d.ts +14 -0
- package/lib/src/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/lib/src/components/Tooltip/index.d.ts +2 -0
- package/lib/src/components/Tooltip/index.d.ts.map +1 -0
- package/lib/src/components/Tooltip/styles.css.d.ts +4 -0
- package/lib/src/components/Tooltip/styles.css.d.ts.map +1 -0
- package/lib/src/components/Typography/Typography.d.ts +16 -0
- package/lib/src/components/Typography/Typography.d.ts.map +1 -0
- package/lib/src/components/Typography/index.d.ts +2 -0
- package/lib/src/components/Typography/index.d.ts.map +1 -0
- package/lib/src/components/Typography/styles.css.d.ts +10 -0
- package/lib/src/components/Typography/styles.css.d.ts.map +1 -0
- package/lib/src/components/Typography/types.d.ts +4 -0
- package/lib/src/components/Typography/types.d.ts.map +1 -0
- package/lib/src/components/index.d.ts +44 -0
- package/lib/src/components/index.d.ts.map +1 -0
- package/lib/src/form/Form/Form.d.ts +46 -0
- package/lib/src/form/Form/Form.d.ts.map +1 -0
- package/lib/src/form/Form/index.d.ts +2 -0
- package/lib/src/form/Form/index.d.ts.map +1 -0
- package/lib/src/form/FormMaskField/FormMaskField.d.ts +5 -0
- package/lib/src/form/FormMaskField/FormMaskField.d.ts.map +1 -0
- package/lib/src/form/FormMaskField/index.d.ts +3 -0
- package/lib/src/form/FormMaskField/index.d.ts.map +1 -0
- package/lib/src/form/FormMaskField/types.d.ts +5 -0
- package/lib/src/form/FormMaskField/types.d.ts.map +1 -0
- package/lib/src/form/FormSubmitButton/FormSubmitButton.d.ts +7 -0
- package/lib/src/form/FormSubmitButton/FormSubmitButton.d.ts.map +1 -0
- package/lib/src/form/FormSubmitButton/index.d.ts +2 -0
- package/lib/src/form/FormSubmitButton/index.d.ts.map +1 -0
- package/lib/src/form/FormTextField/FormTextField.d.ts +8 -0
- package/lib/src/form/FormTextField/FormTextField.d.ts.map +1 -0
- package/lib/src/form/FormTextField/index.d.ts +3 -0
- package/lib/src/form/FormTextField/index.d.ts.map +1 -0
- package/lib/src/form/FormTextField/types.d.ts +5 -0
- package/lib/src/form/FormTextField/types.d.ts.map +1 -0
- package/lib/src/form/external.d.ts +2 -0
- package/lib/src/form/external.d.ts.map +1 -0
- package/lib/src/form/hooks/index.d.ts +3 -0
- package/lib/src/form/hooks/index.d.ts.map +1 -0
- package/lib/src/form/hooks/useForm/index.d.ts +2 -0
- package/lib/src/form/hooks/useForm/index.d.ts.map +1 -0
- package/lib/src/form/hooks/useForm/useForm.d.ts +5 -0
- package/lib/src/form/hooks/useForm/useForm.d.ts.map +1 -0
- package/lib/src/form/hooks/useFormContext/index.d.ts +2 -0
- package/lib/src/form/hooks/useFormContext/index.d.ts.map +1 -0
- package/lib/src/form/index.d.ts +8 -0
- package/lib/src/form/index.d.ts.map +1 -0
- package/lib/src/form/types.d.ts +8 -0
- package/lib/src/form/types.d.ts.map +1 -0
- package/lib/src/index.d.ts +4 -0
- package/lib/src/index.d.ts.map +1 -0
- package/lib/src/theme/index.d.ts +3 -0
- package/lib/src/theme/index.d.ts.map +1 -0
- package/lib/src/theme/reset.css.d.ts +2 -0
- package/lib/src/theme/reset.css.d.ts.map +1 -0
- package/lib/src/theme/theme.css.d.ts +80 -0
- package/lib/src/theme/theme.css.d.ts.map +1 -0
- package/lib/src/utils.d.ts +11 -0
- package/lib/src/utils.d.ts.map +1 -0
- package/lib/stories/Accordion.stories.d.ts +12 -0
- package/lib/stories/Accordion.stories.d.ts.map +1 -0
- package/lib/stories/AlertDialog.stories.d.ts +15 -0
- package/lib/stories/AlertDialog.stories.d.ts.map +1 -0
- package/lib/stories/Badge.stories.d.ts +12 -0
- package/lib/stories/Badge.stories.d.ts.map +1 -0
- package/lib/stories/Button.stories.d.ts +20 -0
- package/lib/stories/Button.stories.d.ts.map +1 -0
- package/lib/stories/ButtonGroup.stories.d.ts +29 -0
- package/lib/stories/ButtonGroup.stories.d.ts.map +1 -0
- package/lib/stories/Calendar.stories.d.ts +15 -0
- package/lib/stories/Calendar.stories.d.ts.map +1 -0
- package/lib/stories/Card.stories.d.ts +13 -0
- package/lib/stories/Card.stories.d.ts.map +1 -0
- package/lib/stories/Carousel.stories.d.ts +13 -0
- package/lib/stories/Carousel.stories.d.ts.map +1 -0
- package/lib/stories/Checkbox.stories.d.ts +11 -0
- package/lib/stories/Checkbox.stories.d.ts.map +1 -0
- package/lib/stories/CircularProgress.stories.d.ts +19 -0
- package/lib/stories/CircularProgress.stories.d.ts.map +1 -0
- package/lib/stories/ConfirmAction.stories.d.ts +20 -0
- package/lib/stories/ConfirmAction.stories.d.ts.map +1 -0
- package/lib/stories/CopyTypography.stories.d.ts +25 -0
- package/lib/stories/CopyTypography.stories.d.ts.map +1 -0
- package/lib/stories/DashboardLayout.stories.d.ts +15 -0
- package/lib/stories/DashboardLayout.stories.d.ts.map +1 -0
- package/lib/stories/DataGrid.stories.d.ts +18 -0
- package/lib/stories/DataGrid.stories.d.ts.map +1 -0
- package/lib/stories/DataGridActionCell.stories.d.ts +14 -0
- package/lib/stories/DataGridActionCell.stories.d.ts.map +1 -0
- package/lib/stories/DataList.stories.d.ts +20 -0
- package/lib/stories/DataList.stories.d.ts.map +1 -0
- package/lib/stories/DatePicker.stories.d.ts +6 -0
- package/lib/stories/DatePicker.stories.d.ts.map +1 -0
- package/lib/stories/Description.stories.d.ts +51 -0
- package/lib/stories/Description.stories.d.ts.map +1 -0
- package/lib/stories/Dialog.stories.d.ts +6 -0
- package/lib/stories/Dialog.stories.d.ts.map +1 -0
- package/lib/stories/Drawer.stories.d.ts +6 -0
- package/lib/stories/Drawer.stories.d.ts.map +1 -0
- package/lib/stories/DropdownMenu.stories.d.ts +6 -0
- package/lib/stories/DropdownMenu.stories.d.ts.map +1 -0
- package/lib/stories/Input.stories.d.ts +11 -0
- package/lib/stories/Input.stories.d.ts.map +1 -0
- package/lib/stories/InputOTP.stories.d.ts +6 -0
- package/lib/stories/InputOTP.stories.d.ts.map +1 -0
- package/lib/stories/MaskField.stories.d.ts +7 -0
- package/lib/stories/MaskField.stories.d.ts.map +1 -0
- package/lib/stories/Pagination.stories.d.ts +6 -0
- package/lib/stories/Pagination.stories.d.ts.map +1 -0
- package/lib/stories/PeriodPicker.stories.d.ts +7 -0
- package/lib/stories/PeriodPicker.stories.d.ts.map +1 -0
- package/lib/stories/Popover.stories.d.ts +6 -0
- package/lib/stories/Popover.stories.d.ts.map +1 -0
- package/lib/stories/RadioGroup.stories.d.ts +6 -0
- package/lib/stories/RadioGroup.stories.d.ts.map +1 -0
- package/lib/stories/RangeInput.stories.d.ts +6 -0
- package/lib/stories/RangeInput.stories.d.ts.map +1 -0
- package/lib/stories/Select.stories.d.ts +8 -0
- package/lib/stories/Select.stories.d.ts.map +1 -0
- package/lib/stories/Slider.stories.d.ts +6 -0
- package/lib/stories/Slider.stories.d.ts.map +1 -0
- package/lib/stories/Tabs.stories.d.ts +8 -0
- package/lib/stories/Tabs.stories.d.ts.map +1 -0
- package/lib/stories/TextField.stories.d.ts +9 -0
- package/lib/stories/TextField.stories.d.ts.map +1 -0
- package/lib/stories/Tooltip.stories.d.ts +7 -0
- package/lib/stories/Tooltip.stories.d.ts.map +1 -0
- package/lib/stories/Typography.stories.d.ts +17 -0
- package/lib/stories/Typography.stories.d.ts.map +1 -0
- package/lib/styles.css +3414 -1
- package/package.json +37 -24
- package/lib/components/Accordion/Accordion.d.ts +0 -11
- package/lib/components/Accordion/accordion.css.d.ts +0 -5
- package/lib/components/Accordion/index.d.ts +0 -1
- package/lib/components/Badge/Badge.d.ts +0 -7
- package/lib/components/Badge/index.d.ts +0 -1
- package/lib/components/Badge/styles.css.d.ts +0 -3
- package/lib/components/Badge/types.d.ts +0 -1
- package/lib/components/Button/Button.d.ts +0 -13
- package/lib/components/Button/Content/Content.d.ts +0 -2
- package/lib/components/Button/Content/index.d.ts +0 -1
- package/lib/components/Button/Content/styles.css.d.ts +0 -5
- package/lib/components/Button/button.css.d.ts +0 -9
- package/lib/components/Button/index.d.ts +0 -1
- package/lib/components/Button/types.d.ts +0 -2
- package/lib/components/ButtonGroup/ButtonGroup.d.ts +0 -20
- package/lib/components/ButtonGroup/buttonGroup.css.d.ts +0 -4
- package/lib/components/ButtonGroup/index.d.ts +0 -1
- package/lib/components/Calendar/Calendar.d.ts +0 -7
- package/lib/components/Calendar/DayButton/DayButton.d.ts +0 -6
- package/lib/components/Calendar/DayButton/index.d.ts +0 -1
- package/lib/components/Calendar/DayButton/styles.css.d.ts +0 -3
- package/lib/components/Calendar/Dropdown/Dropdown.d.ts +0 -5
- package/lib/components/Calendar/Dropdown/index.d.ts +0 -1
- package/lib/components/Calendar/Dropdown/styles.css.d.ts +0 -1
- package/lib/components/Calendar/index.d.ts +0 -1
- package/lib/components/Calendar/styles.css.d.ts +0 -7
- package/lib/components/Card/Card.d.ts +0 -11
- package/lib/components/Card/card.css.d.ts +0 -6
- package/lib/components/Card/index.d.ts +0 -1
- package/lib/components/Carousel/Buttons/Buttons.d.ts +0 -2
- package/lib/components/Carousel/Buttons/index.d.ts +0 -1
- package/lib/components/Carousel/Buttons/styles.css.d.ts +0 -3
- package/lib/components/Carousel/Carousel.d.ts +0 -17
- package/lib/components/Carousel/CarouselContext.d.ts +0 -16
- package/lib/components/Carousel/Content/Content.d.ts +0 -1
- package/lib/components/Carousel/Content/index.d.ts +0 -1
- package/lib/components/Carousel/Content/styles.css.d.ts +0 -2
- package/lib/components/Carousel/Dots/Dots.d.ts +0 -5
- package/lib/components/Carousel/Dots/index.d.ts +0 -1
- package/lib/components/Carousel/Dots/styles.css.d.ts +0 -3
- package/lib/components/Carousel/Dots/useLogic/index.d.ts +0 -1
- package/lib/components/Carousel/Dots/useLogic/useLogic.d.ts +0 -6
- package/lib/components/Carousel/Item/Item.d.ts +0 -1
- package/lib/components/Carousel/Item/index.d.ts +0 -1
- package/lib/components/Carousel/Item/styles.css.d.ts +0 -1
- package/lib/components/Carousel/index.d.ts +0 -1
- package/lib/components/Carousel/styles.css.d.ts +0 -1
- package/lib/components/Carousel/types.d.ts +0 -6
- package/lib/components/Carousel/useLogic/index.d.ts +0 -1
- package/lib/components/Carousel/useLogic/useLogic.d.ts +0 -19
- package/lib/components/Checkbox/Checkbox.d.ts +0 -3
- package/lib/components/Checkbox/checkbox.css.d.ts +0 -3
- package/lib/components/Checkbox/index.d.ts +0 -1
- package/lib/components/CircularProgress/CircularProgress.d.ts +0 -10
- package/lib/components/CircularProgress/index.d.ts +0 -1
- package/lib/components/CircularProgress/styles.css.d.ts +0 -5
- package/lib/components/ConfirmAction/ConfirmAction.d.ts +0 -39
- package/lib/components/ConfirmAction/index.d.ts +0 -1
- package/lib/components/ConfirmAction/styles.css.d.ts +0 -4
- package/lib/components/ConfirmAction/useLogic.d.ts +0 -9
- package/lib/components/ContentState/ContentState.d.ts +0 -34
- package/lib/components/ContentState/index.d.ts +0 -2
- package/lib/components/ContentState/styles.css.d.ts +0 -1
- package/lib/components/ContentState/types.d.ts +0 -24
- package/lib/components/CopyTypography/CopyTypography.d.ts +0 -17
- package/lib/components/CopyTypography/enums.d.ts +0 -5
- package/lib/components/CopyTypography/index.d.ts +0 -1
- package/lib/components/CopyTypography/styles.css.d.ts +0 -2
- package/lib/components/CopyTypography/useLogic/index.d.ts +0 -1
- package/lib/components/CopyTypography/useLogic/useLogic.d.ts +0 -12
- package/lib/components/DashboardLayout/DashboardContext.d.ts +0 -5
- package/lib/components/DashboardLayout/DashboardLayout.d.ts +0 -9
- package/lib/components/DashboardLayout/Main/Main.d.ts +0 -6
- package/lib/components/DashboardLayout/Main/index.d.ts +0 -1
- package/lib/components/DashboardLayout/Main/styles.css.d.ts +0 -1
- package/lib/components/DashboardLayout/Sidebar/Sidebar.d.ts +0 -10
- package/lib/components/DashboardLayout/Sidebar/constants.d.ts +0 -1
- package/lib/components/DashboardLayout/Sidebar/index.d.ts +0 -1
- package/lib/components/DashboardLayout/Sidebar/styles.css.d.ts +0 -7
- package/lib/components/DashboardLayout/constants.d.ts +0 -1
- package/lib/components/DashboardLayout/hooks/index.d.ts +0 -2
- package/lib/components/DashboardLayout/hooks/useDashboard.d.ts +0 -5
- package/lib/components/DashboardLayout/hooks/useLogic.d.ts +0 -4
- package/lib/components/DashboardLayout/index.d.ts +0 -2
- package/lib/components/DashboardLayout/styles.css.d.ts +0 -1
- package/lib/components/DataGrid/Body/Body.d.ts +0 -5
- package/lib/components/DataGrid/Body/index.d.ts +0 -1
- package/lib/components/DataGrid/Body/styles.css.d.ts +0 -1
- package/lib/components/DataGrid/Cell/Cell.d.ts +0 -8
- package/lib/components/DataGrid/Cell/index.d.ts +0 -1
- package/lib/components/DataGrid/Cell/styles.css.d.ts +0 -2
- package/lib/components/DataGrid/DataGrid.d.ts +0 -23
- package/lib/components/DataGrid/Footer/Footer.d.ts +0 -4
- package/lib/components/DataGrid/Footer/index.d.ts +0 -1
- package/lib/components/DataGrid/Footer/styles.css.d.ts +0 -1
- package/lib/components/DataGrid/Header/Header.d.ts +0 -9
- package/lib/components/DataGrid/Header/index.d.ts +0 -1
- package/lib/components/DataGrid/Header/styles.css.d.ts +0 -1
- package/lib/components/DataGrid/HeaderCell/HeaderCell.d.ts +0 -8
- package/lib/components/DataGrid/HeaderCell/index.d.ts +0 -1
- package/lib/components/DataGrid/HeaderCell/styles.css.d.ts +0 -1
- package/lib/components/DataGrid/Row/Row.d.ts +0 -11
- package/lib/components/DataGrid/Row/index.d.ts +0 -1
- package/lib/components/DataGrid/Row/styles.css.d.ts +0 -2
- package/lib/components/DataGrid/State/State.d.ts +0 -10
- package/lib/components/DataGrid/State/index.d.ts +0 -1
- package/lib/components/DataGrid/State/styles.css.d.ts +0 -2
- package/lib/components/DataGrid/constants.d.ts +0 -1
- package/lib/components/DataGrid/index.d.ts +0 -2
- package/lib/components/DataGrid/styles.css.d.ts +0 -6
- package/lib/components/DataGrid/types.d.ts +0 -24
- package/lib/components/DataGridActionCell/DataGridActionCell.d.ts +0 -22
- package/lib/components/DataGridActionCell/MainAction/MainAction.d.ts +0 -22
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.d.ts +0 -21
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/index.d.ts +0 -1
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/useLogic/index.d.ts +0 -1
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.d.ts +0 -10
- package/lib/components/DataGridActionCell/MainAction/index.d.ts +0 -1
- package/lib/components/DataGridActionCell/SecondaryAction/SecondaryAction.d.ts +0 -22
- package/lib/components/DataGridActionCell/SecondaryAction/index.d.ts +0 -1
- package/lib/components/DataGridActionCell/index.d.ts +0 -1
- package/lib/components/DataGridActionCell/styles.css.d.ts +0 -1
- package/lib/components/DataGridActionCell/types.d.ts +0 -100
- package/lib/components/DataGridActionCell/useLogic/index.d.ts +0 -1
- package/lib/components/DataGridActionCell/useLogic/useLogic.d.ts +0 -10
- package/lib/components/DataGridSortHeader/DataGridSortHeader.d.ts +0 -9
- package/lib/components/DataGridSortHeader/index.d.ts +0 -2
- package/lib/components/DataGridSortHeader/styles.css.d.ts +0 -2
- package/lib/components/DataGridSortHeader/types.d.ts +0 -4
- package/lib/components/DataList/DataList.d.ts +0 -56
- package/lib/components/DataList/EndData/EndData.d.ts +0 -5
- package/lib/components/DataList/EndData/constants.d.ts +0 -1
- package/lib/components/DataList/EndData/index.d.ts +0 -1
- package/lib/components/DataList/EndData/styles.css.d.ts +0 -1
- package/lib/components/DataList/ErrorState/ErrorState.d.ts +0 -5
- package/lib/components/DataList/ErrorState/constants.d.ts +0 -1
- package/lib/components/DataList/ErrorState/index.d.ts +0 -1
- package/lib/components/DataList/ErrorState/styles.css.d.ts +0 -1
- package/lib/components/DataList/Loader/Loader.d.ts +0 -1
- package/lib/components/DataList/Loader/index.d.ts +0 -1
- package/lib/components/DataList/Loader/styles.css.d.ts +0 -1
- package/lib/components/DataList/NoData/NoData.d.ts +0 -5
- package/lib/components/DataList/NoData/constants.d.ts +0 -1
- package/lib/components/DataList/NoData/index.d.ts +0 -1
- package/lib/components/DataList/ScrollToTopButton/ScrollToTopButton.d.ts +0 -5
- package/lib/components/DataList/ScrollToTopButton/index.d.ts +0 -1
- package/lib/components/DataList/ScrollToTopButton/styles.css.d.ts +0 -2
- package/lib/components/DataList/constants.d.ts +0 -2
- package/lib/components/DataList/index.d.ts +0 -1
- package/lib/components/DataList/styles.css.d.ts +0 -2
- package/lib/components/DatePicker/DatePicker.d.ts +0 -11
- package/lib/components/DatePicker/index.d.ts +0 -1
- package/lib/components/Description/Description.d.ts +0 -35
- package/lib/components/Description/DescriptionContext/DescriptionContext.d.ts +0 -6
- package/lib/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.d.ts +0 -7
- package/lib/components/Description/DescriptionContext/DescriptionContextProvider/index.d.ts +0 -1
- package/lib/components/Description/DescriptionContext/index.d.ts +0 -2
- package/lib/components/Description/Name/Name.d.ts +0 -3
- package/lib/components/Description/Name/index.d.ts +0 -1
- package/lib/components/Description/Name/styles.css.d.ts +0 -3
- package/lib/components/Description/Value/Value.d.ts +0 -22
- package/lib/components/Description/Value/index.d.ts +0 -1
- package/lib/components/Description/Value/styles.css.d.ts +0 -3
- package/lib/components/Description/Value/useLogic/index.d.ts +0 -1
- package/lib/components/Description/Value/useLogic/useLogic.d.ts +0 -9
- package/lib/components/Description/constants.d.ts +0 -3
- package/lib/components/Description/index.d.ts +0 -2
- package/lib/components/Description/styles.css.d.ts +0 -3
- package/lib/components/Description/useLogic/index.d.ts +0 -1
- package/lib/components/Description/useLogic/useLogic.d.ts +0 -9
- package/lib/components/Dialog/Dialog.d.ts +0 -10
- package/lib/components/Dialog/index.d.ts +0 -1
- package/lib/components/Dialog/styles.css.d.ts +0 -9
- package/lib/components/Drawer/Drawer.d.ts +0 -11
- package/lib/components/Drawer/index.d.ts +0 -1
- package/lib/components/Drawer/styles.css.d.ts +0 -7
- package/lib/components/DropdownMenu/DropdownMenu.d.ts +0 -24
- package/lib/components/DropdownMenu/index.d.ts +0 -1
- package/lib/components/DropdownMenu/styles.css.d.ts +0 -12
- package/lib/components/ImageCarousel/ImageCarousel.d.ts +0 -10
- package/lib/components/ImageCarousel/index.d.ts +0 -1
- package/lib/components/ImageCarousel/styles.css.d.ts +0 -9
- package/lib/components/Input/Input.d.ts +0 -11
- package/lib/components/Input/index.d.ts +0 -1
- package/lib/components/Input/styles.css.d.ts +0 -12
- package/lib/components/InputOTP/InputOTP.d.ts +0 -6
- package/lib/components/InputOTP/Separator/Separator.d.ts +0 -4
- package/lib/components/InputOTP/Separator/index.d.ts +0 -1
- package/lib/components/InputOTP/Separator/styles.css.d.ts +0 -1
- package/lib/components/InputOTP/Slot/Slot.d.ts +0 -2
- package/lib/components/InputOTP/Slot/index.d.ts +0 -1
- package/lib/components/InputOTP/Slot/styles.css.d.ts +0 -5
- package/lib/components/InputOTP/index.d.ts +0 -1
- package/lib/components/InputOTP/styles.css.d.ts +0 -4
- package/lib/components/Label/Label.d.ts +0 -7
- package/lib/components/Label/index.d.ts +0 -1
- package/lib/components/Label/label.css.d.ts +0 -4
- package/lib/components/MaskField/MaskField.d.ts +0 -6
- package/lib/components/MaskField/index.d.ts +0 -1
- package/lib/components/PageLayout/Aside/Aside.d.ts +0 -6
- package/lib/components/PageLayout/Aside/index.d.ts +0 -1
- package/lib/components/PageLayout/Aside/styles.css.d.ts +0 -1
- package/lib/components/PageLayout/Content/Content.d.ts +0 -13
- package/lib/components/PageLayout/Content/index.d.ts +0 -1
- package/lib/components/PageLayout/Content/styles.css.d.ts +0 -2
- package/lib/components/PageLayout/Footer/Footer.d.ts +0 -6
- package/lib/components/PageLayout/Footer/index.d.ts +0 -1
- package/lib/components/PageLayout/Footer/styles.css.d.ts +0 -1
- package/lib/components/PageLayout/Header/Header.d.ts +0 -45
- package/lib/components/PageLayout/Header/index.d.ts +0 -1
- package/lib/components/PageLayout/Header/styles.css.d.ts +0 -8
- package/lib/components/PageLayout/PageLayout.d.ts +0 -12
- package/lib/components/PageLayout/constants.d.ts +0 -5
- package/lib/components/PageLayout/index.d.ts +0 -1
- package/lib/components/PageLayout/styles.css.d.ts +0 -1
- package/lib/components/Pagination/Pagination.d.ts +0 -12
- package/lib/components/Pagination/index.d.ts +0 -1
- package/lib/components/Pagination/styles.css.d.ts +0 -2
- package/lib/components/Pagination/useLogic.d.ts +0 -9
- package/lib/components/PeriodPicker/PeriodPicker.d.ts +0 -10
- package/lib/components/PeriodPicker/YearsDropdown/YearsDropdown.d.ts +0 -8
- package/lib/components/PeriodPicker/YearsDropdown/index.d.ts +0 -1
- package/lib/components/PeriodPicker/constants.d.ts +0 -2
- package/lib/components/PeriodPicker/index.d.ts +0 -1
- package/lib/components/PeriodPicker/styles.css.d.ts +0 -3
- package/lib/components/PeriodPicker/utils.d.ts +0 -3
- package/lib/components/Placeholder/Image/Image.d.ts +0 -6
- package/lib/components/Placeholder/Image/index.d.ts +0 -1
- package/lib/components/Placeholder/Image/styles.css.d.ts +0 -3
- package/lib/components/Placeholder/Placeholder.d.ts +0 -40
- package/lib/components/Placeholder/constants.d.ts +0 -22
- package/lib/components/Placeholder/index.d.ts +0 -3
- package/lib/components/Placeholder/styles.css.d.ts +0 -6
- package/lib/components/Placeholder/types.d.ts +0 -1
- package/lib/components/Popover/Popover.d.ts +0 -2
- package/lib/components/Popover/PopoverContent.d.ts +0 -3
- package/lib/components/Popover/index.d.ts +0 -2
- package/lib/components/Popover/styles.css.d.ts +0 -1
- package/lib/components/RadioGroup/RadioGroup.d.ts +0 -3
- package/lib/components/RadioGroup/RadioGroupItem.d.ts +0 -5
- package/lib/components/RadioGroup/index.d.ts +0 -2
- package/lib/components/RadioGroup/styles.css.d.ts +0 -5
- package/lib/components/RangeInput/RangeInput.d.ts +0 -16
- package/lib/components/RangeInput/index.d.ts +0 -1
- package/lib/components/RangeInput/styles.css.d.ts +0 -6
- package/lib/components/RangeInput/useLogic/index.d.ts +0 -1
- package/lib/components/RangeInput/useLogic/useLogic.d.ts +0 -13
- package/lib/components/ScrollTopButton/ScrollTopButton.d.ts +0 -4
- package/lib/components/ScrollTopButton/index.d.ts +0 -1
- package/lib/components/ScrollTopButton/styles.css.d.ts +0 -2
- package/lib/components/Select/Select.d.ts +0 -21
- package/lib/components/Select/index.d.ts +0 -1
- package/lib/components/Select/styles.css.d.ts +0 -11
- package/lib/components/Slider/Slider.d.ts +0 -3
- package/lib/components/Slider/index.d.ts +0 -1
- package/lib/components/Slider/styles.css.d.ts +0 -4
- package/lib/components/Tabs/Tabs.d.ts +0 -8
- package/lib/components/Tabs/TabsContent.d.ts +0 -3
- package/lib/components/Tabs/TabsList.d.ts +0 -3
- package/lib/components/Tabs/TabsTrigger.d.ts +0 -5
- package/lib/components/Tabs/index.d.ts +0 -1
- package/lib/components/Tabs/styles.css.d.ts +0 -4
- package/lib/components/TextField/TextField.d.ts +0 -7
- package/lib/components/TextField/index.d.ts +0 -1
- package/lib/components/TextField/styles.css.d.ts +0 -6
- package/lib/components/Tooltip/Tooltip.d.ts +0 -13
- package/lib/components/Tooltip/index.d.ts +0 -1
- package/lib/components/Tooltip/styles.css.d.ts +0 -3
- package/lib/components/Typography/Typography.d.ts +0 -15
- package/lib/components/Typography/index.d.ts +0 -1
- package/lib/components/Typography/styles.css.d.ts +0 -9
- package/lib/components/Typography/types.d.ts +0 -3
- package/lib/components/index.d.ts +0 -39
- package/lib/form/Form/Form.d.ts +0 -45
- package/lib/form/Form/index.d.ts +0 -1
- package/lib/form/FormMaskField/FormMaskField.d.ts +0 -4
- package/lib/form/FormMaskField/index.d.ts +0 -2
- package/lib/form/FormMaskField/types.d.ts +0 -4
- package/lib/form/FormSubmitButton/FormSubmitButton.d.ts +0 -6
- package/lib/form/FormSubmitButton/index.d.ts +0 -1
- package/lib/form/FormTextField/FormTextField.d.ts +0 -7
- package/lib/form/FormTextField/index.d.ts +0 -2
- package/lib/form/FormTextField/types.d.ts +0 -4
- package/lib/form/external.d.ts +0 -1
- package/lib/form/hooks/index.d.ts +0 -2
- package/lib/form/hooks/useForm/index.d.ts +0 -1
- package/lib/form/hooks/useForm/useForm.d.ts +0 -4
- package/lib/form/hooks/useFormContext/index.d.ts +0 -1
- package/lib/form/index.d.ts +0 -7
- package/lib/form/types.d.ts +0 -7
- package/lib/hooks/index.d.ts +0 -1
- package/lib/hooks/useLocalStorage.d.ts +0 -10
- package/lib/index.d.ts +0 -3
- package/lib/styles/index.d.ts +0 -3
- package/lib/styles/reset.css.d.ts +0 -1
- package/lib/styles/theme.css.d.ts +0 -78
- package/lib/styles/utils.d.ts +0 -2
- package/src/index.ts +0 -3
package/lib/index.mjs
CHANGED
|
@@ -1 +1,3297 @@
|
|
|
1
|
-
import{Fragment as e,jsx as l,jsxs as t}from"react/jsx-runtime";import r,{clsx as a}from"clsx";import{ArrowDownNarrowWide as s,ArrowDownUp as n,ArrowDownWideNarrow as i,Calendar1 as o,Check as c,ChevronDown as d,ChevronLeft as _,ChevronRight as m,ChevronUp as h,Circle as u,CircleIcon as y,Copy as p,Ellipsis as g,EllipsisVertical as v,PanelLeftClose as b,PanelLeftOpen as f,X as N}from"lucide-react";import w,{createContext as k,createElement as x,useCallback as C,useContext as z,useEffect as S,useId as D,useLayoutEffect as T,useMemo as I,useRef as P,useState as F}from"react";import{Slot as A}from"@radix-ui/react-slot";import{Root as L}from"@radix-ui/react-label";import{Arrow as M,Content as R,Portal as q,Provider as $,Root as O,Trigger as B}from"@radix-ui/react-tooltip";import{createTheme as E,globalKeyframes as H,globalStyle as V,keyframes as j,style as W,styleVariants as G}from"@vanilla-extract/css";import Y from"embla-carousel-react";import{Indicator as K,Root as U}from"@radix-ui/react-checkbox";import{Content as J,Popover as X,PopoverTrigger as Q,Portal as Z}from"@radix-ui/react-popover";import{CheckboxItem as ee,Content as el,Group as et,Item as er,ItemIndicator as ea,Label as es,Portal as en,RadioGroup as ei,RadioItem as eo,Root as ec,Separator as ed,Sub as e_,SubContent as em,SubTrigger as eh,Trigger as eu}from"@radix-ui/react-dropdown-menu";import{Virtuoso as ey}from"react-virtuoso";import{Close as ep,Content as eg,Description as ev,Overlay as eb,Portal as ef,Root as eN,Title as ew,Trigger as ek}from"@radix-ui/react-dialog";import{Drawer as ex,Root as eC}from"vaul";import{OTPInput as ez}from"input-otp";import{useMask as eS}from"@react-input/mask";import{Indicator as eD,Item as eT,Root as eI}from"@radix-ui/react-radio-group";import{Range as eP,Root as eF,Thumb as eA,Track as eL}from"@radix-ui/react-slider";import{Content as eM,Group as eR,Icon as eq,Item as e$,ItemIndicator as eO,ItemText as eB,Label as eE,Portal as eH,Root as eV,ScrollDownButton as ej,ScrollUpButton as eW,Separator as eG,Trigger as eY,Value as eK,Viewport as eU}from"@radix-ui/react-select";import{Content as eJ,List as eX,Tabs as eQ,Trigger as eZ}from"@radix-ui/react-tabs";import{Controller as e1,FormProvider as e0,useController as e2,useFieldArray as e6,useForm as e5,useFormContext as e8,useWatch as e3}from"react-hook-form";function e4({summary:e,children:r,isOpen:s,onToggle:n,className:i,duration:o=250,easing:c="ease"}){let _=P(null),m=P(null),[h,u]=F(s);return S(()=>{let e=_.current;if(e)if(m.current?.cancel(),s)u(!0),requestAnimationFrame(()=>{let l=e.scrollHeight;e.style.height="0px",e.style.overflow="hidden",m.current=e.animate([{height:0,opacity:0},{height:`${l}px`,opacity:1}],{duration:o,easing:c,fill:"forwards"}),m.current.onfinish=()=>{e.style.height="auto",e.style.overflow="visible"}});else{let l=e.scrollHeight;e.style.height=`${l}px`,e.style.overflow="hidden",e.offsetHeight,m.current=e.animate([{height:`${l}px`,opacity:1},{height:"0px",opacity:0}],{duration:o,easing:c,fill:"forwards"}),m.current.onfinish=()=>{e.style.height="auto",e.style.overflow="visible",u(!1)}}},[s,o,c]),t("details",{open:h,className:a("style__lb1nvu0",i),children:[t("summary",{className:"style__lb1nvu1",onClick:e=>{e.preventDefault(),n()},children:[e,l(d,{size:20,className:a("style__lb1nvu3",{style__lb1nvu4:s})})]}),l("div",{ref:_,className:"style__lb1nvu2",children:r})]})}var e9={default:"default__1af895x1",secondary:"secondary__1af895x2",destructive:"destructive__1af895x3",outline:"outline__1af895x4"};function e7({className:e,variant:t="default",asChild:r=!1,...s}){return l(r?A:"span",{"data-slot":"badge",className:a("style__1af895x0",e9[t],e),...s})}let le={buttonBase:"style__1ersxw10",buttonSizes:{sm:"sm__1ersxw19",md:"md__1ersxw1a",lg:"lg__1ersxw1b",icon:"icon__1ersxw1c",iconSm:"iconSm__1ersxw1d"},buttonVariants:{default:"default__1ersxw14",destructive:"destructive__1ersxw15",outline:"outline__1ersxw16",ghost:"ghost__1ersxw17",link:"link__1ersxw18"},fullWidthStyle:"style__1ersxw13",loading:"style__1ersxw12"},ll=({children:e,startAdornment:r,endAdornment:a,...s})=>t("button",{...s,children:[r&&l("span",{className:"style__1gsf04s0",children:r}),e,a&&l("span",{className:"style__1gsf04s1",children:a})]}),lt=({className:e,variant:t="default",size:r="md",asChild:s=!1,isLoading:n=!1,fullWidth:i,...o})=>l(s?A:ll,{className:a(le.buttonBase,le.buttonVariants[t],le.buttonSizes[r],{[le.fullWidthStyle]:i,[le.loading]:n},e),...o}),{buttonVariants:lr,buttonSizes:la}=le,ls=({className:e,disabled:t,...r})=>l(L,{className:a("Label__c31e140",{style__c31e141:t,style__c31e142:r.error,style__c31e143:r.required},e),...r}),ln=({sideOffset:e=4,alignOffset:t,ref:r,...a})=>l(R,{ref:r,sideOffset:e,...a}),li=({text:e,content:a,children:s,side:n="top",sideOffset:i,alignOffset:o,delayDuration:c=0,className:d,ref:_,...m})=>l($,{delayDuration:c,children:t(O,{...m,children:[l(B,{ref:_,asChild:!0,children:s}),a||e?l(q,{children:t(ln,{className:r("style__izacrl2",d),alignOffset:o,sideOffset:i,hideWhenDetached:!0,side:n,children:[a??l("p",{className:"style__izacrl3",children:e}),m.arrow&&l(M,{className:"style__izacrl4"})]})}):null]})}),lo=({value:e,onChange:r,options:s,size:n,className:i,label:o,multiple:c})=>{let d=!0===c;return t("div",{className:a("style__1iqvz720",i),children:[o&&l(ls,{className:"style__1iqvz723",children:o}),l("div",{className:"style__1iqvz721",children:s.map(t=>{var a;return l(li,{arrow:!0,text:t.title,children:l(lt,{size:n,className:"style__1iqvz722",disabled:t.disabled,onClick:()=>{var l;return l=t.value,void(d?e.includes(l)?r(e.filter(e=>e!==l)):r([...e,l]):r(l))},startAdornment:t.startAdornment,endAdornment:t.endAdornment,variant:(a=t.value,d?e.includes(a):e===a)?"default":"outline",children:t.label},t.value)},t.value)})})]})};var lc={colors:{primary:"var(--colors-primary)",secondary:"var(--colors-secondary)",warning:"var(--colors-warning)",error:"var(--colors-error)",success:"var(--colors-success)",border:"var(--colors-border)",info:"var(--colors-info)",background:{tooltip:"var(--colors-background-tooltip)",paper:"var(--colors-background-paper)",element:"var(--colors-background-element)",elementHover:"var(--colors-background-elementHover)",sidebar:"var(--colors-background-sidebar)"},foreground:{primary:"var(--colors-foreground-primary)",secondary:"var(--colors-foreground-secondary)"},text:{primary:"var(--colors-text-primary)",secondary:"var(--colors-text-secondary)",disabled:"var(--colors-text-disabled)",hint:"var(--colors-text-hint)"}},spacing:{1:"var(--spacing-1)",2:"var(--spacing-2)",3:"var(--spacing-3)",4:"var(--spacing-4)",5:"var(--spacing-5)",6:"var(--spacing-6)",8:"var(--spacing-8)",10:"var(--spacing-10)",12:"var(--spacing-12)",16:"var(--spacing-16)",20:"var(--spacing-20)"},elevation:{1:"var(--elevation-1)",2:"var(--elevation-2)",3:"var(--elevation-3)",4:"var(--elevation-4)",6:"var(--elevation-5)"},fontSize:{xs:"var(--fontSize-xs)",sm:"var(--fontSize-sm)",base:"var(--fontSize-base)",lg:"var(--fontSize-lg)",xl:"var(--fontSize-xl)","2xl":"var(--fontSize-2xl)","3xl":"var(--fontSize-3xl)","4xl":"var(--fontSize-4xl)"},fontWeight:{normal:"var(--fontWeight-normal)",medium:"var(--fontWeight-medium)",semibold:"var(--fontWeight-semibold)",bold:"var(--fontWeight-bold)"},lineHeight:{none:"var(--lineHeight-none)",tight:"var(--lineHeight-tight)",snug:"var(--lineHeight-snug)",normal:"var(--lineHeight-normal)",relaxed:"var(--lineHeight-relaxed)",loose:"var(--lineHeight-loose)"},borderRadius:{sm:"var(--borderRadius-sm)",md:"var(--borderRadius-md)",lg:"var(--borderRadius-lg)"}};let ld=({className:e,elevation:t=2,...r})=>l("div",{style:{boxShadow:lc.elevation[t]},className:a("style__oyalw00",e),...r}),l_=({className:e,...t})=>l("div",{className:a("style__oyalw01",e),...t}),lm=({className:e,...t})=>l("h3",{className:a("style__oyalw02",e),...t}),lh=({className:e,...t})=>l("p",{className:a("style__oyalw03",e),...t}),lu=({className:e,...t})=>l("div",{className:a("style__oyalw04",e),...t}),ly=({className:e,...t})=>l("div",{className:a("style__oyalw05",e),...t}),lp=w.createContext(null);function lg(){let e=w.useContext(lp);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}var lv={horizontal:"horizontal__2d6ocq3",vertical:"vertical__2d6ocq4"};function lb({className:r,...s}){let{orientation:n="horizontal",canScrollNext:i,scrollNext:o,canScrollPrev:c,scrollPrev:u}=lg();return t(e,{children:[l("button",{className:a("style__2d6ocq1 style__2d6ocq0",lv[n]),type:"button","data-slot":"carousel-next",disabled:!i,onClick:o,...s,children:"horizontal"===n?l(m,{}):l(d,{})}),l("button",{type:"button",className:a("style__2d6ocq2 style__2d6ocq0",lv[n]),"data-slot":"carousel-previous",disabled:!c,onClick:u,...s,children:"horizontal"===n?l(_,{}):l(h,{})})]})}var lf={horizontal:"horizontal__i1lems1",vertical:"vertical__i1lems2"};function lN(e){let{carouselRef:t,orientation:r="horizontal"}=lg();return l("div",{className:"style__i1lems0",ref:t,"data-slot":"carousel-content",children:l("div",{className:lf[r],...e})})}var lw={horizontal:"horizontal__e2zpp61 style__e2zpp60",vertical:"vertical__e2zpp62 style__e2zpp60"},lk={horizontal:"horizontal__e2zpp64 style__e2zpp63",vertical:"vertical__e2zpp65 style__e2zpp63"};let lx=({api:e,orientation:t})=>{let{selectedIndex:r,scrollSnaps:s,onDotButtonClick:n}=(e=>{let[l,t]=F(0),[r,a]=F([]),s=C(l=>{e&&e.scrollTo(l)},[e]),n=C(e=>{e&&a(e.scrollSnapList())},[]),i=C(e=>{e&&t(e.selectedScrollSnap())},[]);return S(()=>{e&&(n(e),i(e),e.on("reInit",n).on("reInit",i).on("select",i))},[e,n,i]),{selectedIndex:l,scrollSnaps:r,onDotButtonClick:s}})(e);return l("div",{className:lw[t],children:s.map((e,s)=>l("button",{type:"button",className:a(lk[t],{style__e2zpp66:s===r}),onClick:()=>n(s)},e))})};function lC(e){return l("div",{className:"style__1gif6yr0",role:"group","aria-roledescription":"slide","data-slot":"carousel-item",...e})}function lz({width:e="100%",height:r="100%",...s}){let{canScrollNext:n,canScrollPrev:i,scrollNext:o,scrollPrev:c,api:d,opts:_,orientation:m,carouselRef:h,handleKeyDown:u,data:y,isShowButtons:p,isShowDots:g}=(({orientation:e="horizontal",opts:l,setApi:t,plugins:r,data:a,showDots:s,showArrows:n})=>{let[i,o]=Y({...l,axis:"horizontal"===e?"x":"y"},r),[c,d]=F(!1),[_,m]=F(!1),h=!!(n&&a.length>1),u=!!(s&&a.length>1),y=C(e=>{e&&(d(e.canScrollPrev()),m(e.canScrollNext()))},[]),p=C(e=>{o&&o.scrollTo(e)},[o]),g=C(()=>{o?.scrollPrev()},[o]),v=C(()=>{o?.scrollNext()},[o]),b=C(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),v())},[g,v]);return S(()=>{o&&t&&t(o)},[o,t]),S(()=>{if(o)return y(o),o.on("reInit",y),o.on("select",y),()=>{o?.off("select",y)}},[o,y]),{carouselRef:i,api:o,scrollPrev:g,scrollNext:v,canScrollPrev:c,canScrollNext:_,handleKeyDown:b,opts:l,orientation:e,onDotButtonClick:p,isShowButtons:h,isShowDots:u,data:a}})(s);return l(lp.Provider,{value:{carouselRef:h,api:d,opts:_,orientation:m||(_?.axis==="y"?"vertical":"horizontal"),scrollPrev:c,scrollNext:o,canScrollPrev:i,canScrollNext:n},children:t("div",{onKeyDownCapture:u,className:a("Carousel__1jbydv50",s.className),"data-slot":"carousel",style:{width:e,height:r},children:[l(lN,{style:{width:e,height:r},children:y.map(e=>l(lC,{children:s.renderItem(e)},`${e[s.keyId]}`))}),p&&l(lb,{}),g&&l(lx,{api:d,orientation:m})]})})}let lS=({className:e,...t})=>l(U,{className:a("style__b7yo4k0",e),...t,children:l(K,{className:"style__b7yo4k1",children:l(c,{className:"style__b7yo4k2"})})});var lD={determinate:"determinate__m6b9n25",indeterminate:"indeterminate__m6b9n26"},lT={primary:"primary__m6b9n27",secondary:"secondary__m6b9n28",inherit:"inherit__m6b9n29"};let lI=({size:e=30,thickness:a=2.6,color:s="primary",value:n=0,variant:i="indeterminate",className:o})=>{let c=(e-a)/2,d=2*Math.PI*c;return l("div",{className:r("style__m6b9n22",lD[i],lT[s],o),style:{width:e,height:e},children:t("svg",{className:"style__m6b9n23",viewBox:`0 0 ${e} ${e}`,children:[l("title",{children:"Progress bar"}),l("circle",{className:r("style__m6b9n24","determinate"===i&&lD.determinate),cx:e/2,cy:e/2,r:c,fill:"none",strokeWidth:a,strokeDasharray:d,strokeDashoffset:"determinate"===i?d*(1-n/100):.25*d})]})})},lP=({className:e,align:t="center",sideOffset:r=4,...s})=>l(Z,{children:l(J,{align:t,sideOffset:r,className:a("style__1xy4jvu2",e),...s})});var lF={left:"left__1sba6zok",center:"center__1sba6zol",right:"right__1sba6zom",justify:"justify__1sba6zon"},lA={primary:"primary__1sba6zoc",secondary:"secondary__1sba6zod",disabled:"disabled__1sba6zoe",success:"success__1sba6zof",error:"error__1sba6zog",warning:"warning__1sba6zoh",info:"info__1sba6zoi",muted:"muted__1sba6zoj"},lL={h1:"h1__1sba6zo0",h2:"h2__1sba6zo1",h3:"h3__1sba6zo2",h4:"h4__1sba6zo3",h5:"h5__1sba6zo4",h6:"h6__1sba6zo5",subtitle1:"subtitle1__1sba6zo6",subtitle2:"subtitle2__1sba6zo7",body1:"body1__1sba6zo8",body2:"body2__1sba6zo9",caption:"caption__1sba6zoa",overline:"overline__1sba6zob"},lM={lowercase:"lowercase__1sba6zou",uppercase:"uppercase__1sba6zov",capitalize:"capitalize__1sba6zow"},lR={block:"block__1sba6zoo",inline:"inline__1sba6zop"},lq={none:"none__1sba6zox",underline:"underline__1sba6zoy",lineThrough:"lineThrough__1sba6zoz"},l$={normal:"normal__1sba6zoq",medium:"medium__1sba6zor",semibold:"semibold__1sba6zos",bold:"bold__1sba6zot"};let lO={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",caption:"span",overline:"span"},lB=({className:e,variant:t="body1",component:r,color:s="primary",align:n="left",display:i="inline",weight:o="normal",transform:c,decoration:d="none",gutterBottom:_,children:m,...h})=>l(r||lO[t||"body1"],{className:a(lq[d],lL[t],lA[s],l$[o],c&&lM[c],lR[i],lF[n],{style__1sba6zo10:_},e),...h,children:m}),lE=e=>{let{open:r,onActionComponentClick:s,onCancel:n,confirmButtonProps:i,onOpenChange:o}=(({skipConfirm:e,onConfirm:l,confirmButtonProps:t})=>{let[r,a]=F(!1);return{open:r,onActionComponentClick:()=>{e?l():a(!0)},confirmButtonProps:{variant:t?.isAccented?"destructive":"default",size:"sm",onClick:()=>{a(!1),l()}},onCancel:()=>{a(!1)},onOpenChange:e=>{a(e)}}})(e),{text:c,confirmButtonProps:d,popoverProps:_,actionComponent:m}=e,{text:h="Подтвердить"}=d||{},{side:u="bottom",align:y="center"}=_||{};return t(X,{open:r,onOpenChange:o,children:[l(Q,{asChild:!0,children:m({onClick:s})}),l(lP,{side:u,align:y,className:a("style__1q1uhgp2",{style__1q1uhgp3:!!c}),children:t("div",{className:"style__1q1uhgp1",children:[c&&l(lB,{children:c}),t("div",{className:"style__1q1uhgp0",children:[l(lt,{size:"sm",variant:"ghost",onClick:n,children:"Отмена"}),l(lt,{...i,children:h})]})]})})]})};var lH={sm:"sm__1o97kvm1",md:"md__1o97kvm2",lg:"lg__1o97kvm3"};let lV=e=>l("img",{alt:e.alt,src:e.src,className:r("style__1o97kvm0",lH[e.size||"md"],e.className),width:e.width,height:e.height}),lj={sm:"239px",md:"323px",lg:"458px"},lW={sm:"119px",md:"161px",lg:"229px"},lG={sm:"384px",md:"400px",lg:"460px"},lY={sm:"subtitle1",md:"h6",lg:"h5"};var lK={sm:"sm__1nenzg01",md:"md__1nenzg02",lg:"lg__1nenzg03"};let lU=({className:e,title:a,imgSrc:s,imgAlt:n,description:i,actions:o,size:c="sm",renderImage:d})=>{let _=I(()=>d||lV,[d]);return t("div",{className:r("style__1nenzg00",lK[c],e),children:[t("div",{className:"style__1nenzg04",style:{maxWidth:lG[c]},children:[s&&l(_,{src:s,alt:n,width:lj[c],height:lW[c],size:c}),l(lB,{align:"center",color:"secondary",variant:lY[c],children:a}),i&&l(lB,{className:"style__1nenzg05",component:"div",variant:"body1",children:i})]}),o&&l("footer",{className:"style__1nenzg06",children:o})]})},lJ=({isLoading:e,isError:t,isCustom:r,errorState:a,customState:s,children:n,loadingContent:i=l(lI,{color:"primary"})})=>{if(e)return l("div",{className:"style__nan0ao0",children:i});if(r&&s)return l(lU,{...s});if(t&&a){let{title:e="Произошла ошибка",imgAlt:t,imgSrc:r,errorList:s,onRetry:n,actions:i=l(lt,{onClick:n,children:"Попробовать снова"})}=a,o=s.map(e=>l(lB,{component:"p",children:e},e));return l(lU,{title:e,description:o,imgAlt:t,imgSrc:r,actions:i})}return n},lX=e=>{let{children:r,copyPosition:s="right",copyText:n,isShowCopyText:i,color:o,className:c,...d}=e,_=()=>l(p,{className:"style__1wpx85c1"}),{tooltipOpen:m,handleMouseEnter:h,handleMouseLeave:u,handleClick:y,tooltipTitle:g,isIconOnLeft:v}=(({children:e,copyText:l,isShowCopyText:t,copyPosition:r})=>{let[a,s]=F("Скопировать"),[n,i]=F(!1);return{handleMouseLeave:()=>{"Скопировать"!==a&&setTimeout(()=>{s("Скопировать")},100),i(!1)},handleClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(l||("string"==typeof e?e:"")).then(()=>s("Скопировано")).catch(()=>s("Ошибка копирования"))},tooltipTitle:t?`${a}: ${l}`:a,isIconOnLeft:"left"===r,tooltipOpen:n,handleMouseEnter:()=>{i(!0)}}})(e);return l(li,{open:m,arrow:!0,text:g,side:"bottom",children:t(lB,{onMouseLeave:u,onMouseEnter:h,onClick:y,component:"div",color:o,className:a("style__1wpx85c0",c),...d,children:[v&&_(),r,!v&&_()]})})},lQ=k({pinned:!0,hovered:!1,togglePinned:()=>{}}),lZ=()=>z(lQ),l1=({children:e,className:t})=>{let{pinned:r,togglePinned:s}=(()=>{let[e,l]=((e,l,t)=>{if(void 0===window)return[l,()=>{},()=>{}];if(!e)throw Error("useLocalStorage key may not be falsy");let r=JSON.parse,a=P(e=>{try{let t=JSON.stringify,a=localStorage.getItem(e);if(null!==a)return r(a);return l&&localStorage.setItem(e,t(l)),l}catch{return l}}),[s,n]=F(()=>a.current(e));T(()=>n(a.current(e)),[e]);let i=C(l=>{try{let t,a="function"==typeof l?l(s):l;if(void 0===a)return;t=JSON.stringify(a),localStorage.setItem(e,t),n(r(t))}catch{}},[e,n]);return[s,i,C(()=>{try{localStorage.removeItem(e),n(void 0)}catch{}},[e,n])]})("dashboard::pinned",!1);return{pinned:e,togglePinned:()=>l(!e)}})();return l(lQ.Provider,{value:{pinned:r,togglePinned:s},children:l("div",{className:a("DashboardLayout__113u7x50",t),children:e})})};function l0({row:e,column:t,rowIndex:r,height:s}){let{align:n,cellColor:i,isDisabled:o}=t;return l("td",{align:n??"left",style:{backgroundColor:i?.(e),height:s,width:t.width},className:a("style__1047swj0",{style__1047swj1:o},t.cellClassName?.(e)),children:l(()=>t.renderCell?t.renderCell(e,r):t.format?t.format(e)||"—":t.field?`${e[t.field]||"—"}`:"—",{})})}function l2({row:e,rowHeight:t,onRowClick:r,columns:s,rowIndex:n,rowId:i}){let o=C(()=>{r?.(e)},[r,e]);return l("tr",{onClick:o,onKeyDown:o,className:a("style__gsm9mv0",{style__gsm9mv1:!!r}),children:s.map((r,a)=>l(l0,{row:e,rowIndex:n,column:r,height:t},`${i}-${a}`))})}function l6({isLoading:e,isEmpty:t,columnsLength:r,emptyState:a={text:"Нет данных"},errorState:s={text:"Произошла ошибка"},isError:n,onRetry:i}){let o=({children:e})=>l("tr",{className:"style__15m2ib80",children:l("td",{colSpan:r,align:"center",children:e})});if(e)return l(o,{children:l("span",{className:"style__15m2ib81",children:l(lI,{})})});if(t){let{imgSrc:e,imgAlt:t,text:r}=a;return l(o,{children:l(lU,{title:r,imgSrc:e,imgAlt:t})})}if(n){let{imgSrc:e,imgAlt:t,text:r}=s;return l(o,{children:l(lU,{title:r,imgSrc:e,imgAlt:t,actions:i?l(lt,{variant:"outline",onClick:i,children:"Попробовать снова"}):void 0})})}return null}l1.Sidebar=({width:e="16rem",header:r,footer:s,content:n,className:i})=>{let{pinned:o}=lZ();return t("div",{style:{width:o?e:0},className:"style__1low90p0",children:[l("span",{className:"SidebarTrigger__1low90p1"}),t("aside",{style:{width:e},className:a("SidebarContainer__1low90p2",{style__1low90p3:!o},i),children:[r&&l("header",{className:"SidebarHeader__1low90p4",children:r}),l("div",{className:"SidebarContent__1low90p6",children:n}),s&&l("footer",{className:"SidebarFooter__1low90p5",children:s})]})]})},l1.Main=({children:e,className:t})=>l("main",{className:a("style__whkxou0",t),children:e});var l5="style__82af400";function l8({isError:e,isLoading:t,emptyState:r,errorState:a,columns:s,rows:n,rowHeight:i,keyId:o,onRowClick:c}){let d=0===n.length;return e||t||d?l("tbody",{className:l5,children:l(l6,{emptyState:r,errorState:a,isEmpty:d,isError:e,isLoading:t,columnsLength:s.length})}):l("tbody",{className:l5,children:n.map((e,t)=>{let r=String(e[o]);return l(l2,{row:e,rowId:r,rowHeight:i,columns:s,onRowClick:c,rowIndex:t},e[o])})})}function l3({children:e,className:t}){return l("footer",{className:a("style__2s55b60",t),children:e})}function l4({column:e,height:t,width:r}){return l("th",{style:{color:e.color,height:t,width:r},align:e.align??"left",title:e.title,className:"style__uma6hu0",children:e.renderHeaderCell?.(e)||e.title})}function l9({columns:e,height:t,sticky:r}){return l("thead",{children:l("tr",{className:a({style__fkgoub0:r}),children:e.map(e=>l(l4,{column:e,height:t,width:e.width},e.title))})})}function l7({rows:e,columns:r,height:s="100%",className:n,rowHeight:i=40,headerHeight:o=40,keyId:c,onRowClick:d,isLoading:_,isDisabled:m,isError:h,emptyState:u,errorState:y,footer:p,title:g,stickyHeader:v,onRetry:b}){let f=_||h||0===e.length;return t("div",{"data-slot":"data-grid",style:{height:s},className:a("style__1gqvluf0",n),children:[t("table",{className:a("style__1gqvluf1",{style__1gqvluf3:m,style__1gqvluf4:_,style__1gqvluf2:f},n),children:[g&&l("caption",{className:"style__1gqvluf5",children:g}),l(l9,{columns:r,height:o,sticky:v}),l(l8,{rows:e,columns:r,rowHeight:i,keyId:c,onRowClick:d,isLoading:_,emptyState:u,errorState:y,isError:h,onRetry:b})]}),p&&l(l3,{children:p})]})}var te="style__1ib8wkt3";let tl=ec,tt=eu,tr=et,ta=en,ts=e_,tn=ei,ti=({className:e,inset:a,children:s,...n})=>t(eh,{className:r("style__1ib8wkt2",{inset:a},e),...n,children:[s,l(m,{className:te})]}),to=({className:e,...t})=>l(em,{className:r("style__1ib8wkt4",e),...t}),tc=({className:e,sideOffset:t=4,...a})=>l(en,{children:l(el,{sideOffset:t,className:r("style__1ib8wkt5",e),...a})}),td=({className:e,inset:t,...a})=>l(er,{className:r("style__1ib8wkt6",{inset:t},e),...a}),t_=({className:e,children:a,checked:s,...n})=>t(ee,{className:r("style__1ib8wkt7",e),checked:s,...n,children:[l("span",{className:"style__1ib8wkt9",children:l(ea,{children:l(c,{className:te})})}),a]}),tm=({className:e,children:a,...s})=>t(eo,{className:r("style__1ib8wkt8",e),...s,children:[l("span",{className:"style__1ib8wkta",children:l(ea,{children:l(u,{className:te})})}),a]}),th=({className:e,inset:t,...a})=>l(es,{className:r("style__1ib8wktb",{inset:t},e),...a}),tu=({className:e,...t})=>l(ed,{className:r("style__1ib8wktc",e),...t}),ty=({className:e,...t})=>l("span",{className:r("style__1ib8wktd",e),...t}),tp=t=>{let{tooltipProps:r}=(({action:e})=>{let{isLoading:l,disabledReason:t,name:r}=e,[a,s]=F(!1);return S(()=>{l&&s(!1)},[l]),{tooltipProps:{text:t||r,open:a,onOpenChange:e=>s(e)}}})(t),{action:a,onActionClick:s,isDisabled:n,tooltipPlacement:i}=t,{name:o,icon:c,needConfirm:d,confirmText:_,confirmButtonProps:m,disabled:h,isLoading:u,onClick:y}=a,p=e=>l(li,{arrow:!0,side:i,...r,children:l(lt,{disabled:n||h,isLoading:u,variant:"ghost",size:"icon",...e,children:c})},o);return l(e,{children:d?l(lE,{text:_,confirmButtonProps:m,actionComponent:e=>p(e),onConfirm:s(y)}):p({onClick:s(y)})})},tg=({action:e,onActionClick:r,isDisabled:a,tooltipPlacement:s})=>{if("actions"in e){let{disabled:n,icon:i,name:o,disabledReason:c,actions:d,isLoading:_}=e;return t(tl,{children:[l(tt,{asChild:!0,children:l(li,{text:c||o,side:s,arrow:!0,children:l(lt,{variant:"ghost",size:"icon",isLoading:_,disabled:a||n,children:i})},o)}),l(tc,{children:d.map(({name:e,onClick:t,...a})=>x(td,{...a,key:e,asChild:!0},l(lt,{size:"sm",onClick:r(t),children:e})))})]})}return l(tp,{action:e,onActionClick:r,isDisabled:a,tooltipPlacement:s})},tv=({actions:e,onActionClick:r,tooltipPlacement:a,isDisabled:s})=>t(tl,{children:[l(tt,{asChild:!0,children:l(lt,{disabled:s,variant:"ghost",size:"icon",children:l(v,{})})}),l(tc,{children:e.map(e=>{let{onClick:t,name:s,disabledReason:n,isLoading:i}=e;return l(td,{asChild:!0,children:l(li,{arrow:!0,side:a,text:n,children:l(lt,{onClick:r(t),isLoading:i,variant:"ghost",size:"sm",fullWidth:!0,children:s})})},s)})})]}),tb=e=>{let{isDisabledAction:r,handleWrapperClick:a,handleActionClick:s}=(({row:e,actions:l})=>{let{main:t,secondary:r}=l,a=[...t,...r||[]].find(e=>e.isBlockingOperation&&e.isLoading);return{isDisabledAction:!!a,handleActionClick:C(l=>()=>{l?.(e)},[e]),handleWrapperClick:e=>{e.stopPropagation()}}})(e),{actions:n}=e,{main:i,secondary:o}=n;return t("div",{onClick:a,onKeyDown:a,className:"style__y44ln70",children:[i.map(e=>l(tg,{action:e,onActionClick:s,isDisabled:r,tooltipPlacement:"top"},e.name)),o&&l(tv,{actions:o,onActionClick:s,tooltipPlacement:"left",isDisabled:r})]})};var tf={left:"left__o752f01",center:"center__o752f02",right:"right__o752f03",justify:"justify__o752f04"};function tN({sorting:e,setSorting:r,column:{title:o,field:c,align:d="left"},className:_}){return c?t("button",{type:"button",className:a("style__o752f00",tf[d],_),onClick:()=>{e.key===c?r({key:c,order:"asc"===e.order?"desc":"asc"}):r({key:c,order:"asc"})},children:[o,e.key===c?"asc"===e.order?l(s,{size:16}):l(i,{size:16}):l(n,{size:16})]}):null}let tw="Вы достигли конца списка",tk=({endOfScrollMsg:e=tw})=>l("li",{className:"style__1syvw5e0",children:l(lB,{children:e})}),tx=({onRetry:e})=>t("li",{className:"style__qlujai0",children:[l(lB,{align:"center",children:"Ошибка загрузки"}),l(lt,{size:"sm",onClick:e,children:"Попробовать снова"})]}),tC=()=>l("li",{className:"style__111czea0",children:l(lI,{color:"primary"})}),tz=({noDataImgSrc:e})=>l(lU,{title:"Нет данных",imgSrc:e}),tS=({onClick:e,isVisible:t})=>l(lt,{onClick:e,size:"icon",variant:"outline",className:a("style__1jg5nd90",{style__1jg5nd91:t}),children:l(h,{})}),tD=({data:r,keyId:s,className:n,itemContent:i,noDataPlaceholder:o,endOfScrollMsg:c,errorState:d,isLoading:_,isError:m,isEndReached:h,onRetry:u,onEndReached:y,ref:p})=>{let g=P(null),v=p||g,[b,f]=F(!1),N=C(e=>{e.startIndex>2?f(!0):f(!1)},[]),w=C(()=>v.current?.scrollToIndex({index:0,align:"start",behavior:"smooth"}),[v]),k=C(()=>{!h&&y&&y()},[h,y]),x=!!r?.length;return x||_||m?t(lJ,{isLoading:_&&!x,isError:m&&!x,errorState:d,children:[l(ey,{className:a("style__1ezen7g0",n),style:{height:"100%"},data:r,ref:v,overscan:30,endReached:k,rangeChanged:N,itemContent:(e,t)=>l("li",{children:i?.(t,{index:e,className:a("style__1ezen7g1","datalist_item")})},t[s]),components:{Footer:()=>t(e,{children:[_&&l(tC,{}),m&&l(tx,{onRetry:u}),h&&l(tk,{endOfScrollMsg:c})]})}}),l(tS,{isVisible:b,onClick:w})]}):o?l(e,{children:o}):l(tz,{})},tT="descriptionRoot",tI=k({leader:!1,separator:":",direction:"default"}),tP=({children:e,leader:t,separator:r,direction:a})=>l(tI.Provider,{value:{leader:t,separator:r,direction:a},children:e});var tF={row:"row__1lociyw1",column:"column__1lociyw2"},tA={spaceBetween:"spaceBetween__1lociyw3",start:"start__1lociyw4"},tL="style__sdcsnp2";let tM=e=>{let{descriptionContextProviderProps:t,direction:r}=(({direction:e="row",separator:l=":"})=>({descriptionContextProviderProps:{separator:"column"===e?"":l},direction:e}))(e),{justifyContent:s="start",component:n="dl",children:i,leader:o=!1,className:c}=e;return l(tP,{leader:o,direction:r,...t,children:l(n,{className:a("style__1lociyw0",tF[r],tA[s],tT,c),children:i})})};tM.Name=({children:r,color:s="secondary",...n})=>{let{leader:i,separator:o}=z(tI);return t(e,{children:[l("dt",{className:a("style__1tsgk1i0",{style__1tsgk1i1:i}),children:t(lB,{...n,color:s,children:[r,!i&&o]})}),i&&l("div",{className:"style__1tsgk1i2"})]})},tM.Value=e=>{let{valueToRender:t,isDefaultValueRender:a,leader:s}=(({canCopy:e,children:l,stub:t="—"})=>{let{leader:r,direction:a}=z(tI);return{valueToRender:l||t,isDefaultValueRender:!e||!l,leader:r,direction:a}})(e),{copyPosition:n="right",copyText:i,canCopy:o,children:c,stub:d,..._}=e;return a?l(lB,{className:r("style__sdcsnp1",{[tL]:s}),component:"dd",..._,children:t}):l("dd",{className:"style__sdcsnp0",children:l(lX,{className:r({[tL]:s}),copyPosition:n,copyText:i,..._,children:t})})};let tR=({title:e,description:a="",trigger:s,className:n,footer:i,children:o,...c})=>t(eN,{...c,children:[s&&l(ek,{asChild:!0,children:s}),t(ef,{children:[l(eb,{className:r("style__8bkmbe2")}),t(eg,{className:r("style__8bkmbe5",n),children:[t("div",{className:r("style__8bkmbe8",{style__8bkmbe9:!!a}),children:[l(ew,{className:"style__8bkmbeb",children:e}),l(ev,{className:"style__8bkmbec",children:a}),c.onOpenChange&&t(ep,{className:"style__8bkmbe6",children:[l(N,{size:24}),l("span",{className:"style__8bkmbe7",children:"Close"})]})]}),o,i&&l("div",{className:"style__8bkmbea",children:i})]})]})]}),tq=({children:e,trigger:r,className:s,title:n,description:i="",footer:o,closeButton:c,...d})=>t(eC,{...d,children:[r&&l(ex.Trigger,{"data-slot":"drawer-trigger",asChild:!0,children:r}),t(ex.Portal,{"data-slot":"drawer-portal",children:[l(ex.Overlay,{"data-slot":"drawer-overlay",className:"style__ccss502"}),t(ex.Content,{"data-slot":"drawer-content",className:a("group/drawer-content","style__ccss503",s),children:[l("div",{className:"style__ccss504"}),t("div",{"data-slot":"drawer-header",className:"style__ccss505",children:[l(ex.Title,{"data-slot":"drawer-title",className:"style__ccss507",children:n}),l(ex.Description,{"data-slot":"drawer-description",className:"style__ccss508",children:i})]}),e,t("div",{"data-slot":"drawer-footer",className:"style__ccss506",children:[o,c&&l(ex.Close,{"data-slot":"drawer-close",asChild:!0,children:c})]})]})]})]});var t$="style__a5l83v0",tO="style__a5l83v4";let tB=({images:r=[],autoPlay:s=!1,interval:n=5e3})=>{let[i,o]=F(0);return(S(()=>{if(!s)return;let e=setInterval(()=>{o(e=>e===r.length-1?0:e+1)},n);return()=>clearInterval(e)},[s,r.length,n]),0===r.length)?l("div",{className:t$,children:"Нет изображений для отображения"}):t("div",{className:t$,children:[l("div",{className:"style__a5l83v1",style:{transform:`translateX(-${100*i}%)`},children:r.map((e,t)=>l("div",{className:"style__a5l83v2",children:l("img",{src:e.src,alt:e.alt||`Slide ${t+1}`,className:"style__a5l83v3"})},e.src))}),r.length>1&&t(e,{children:[l("button",{type:"button",className:a(tO,"style__a5l83v5"),onClick:()=>{o(e=>0===e?r.length-1:e-1)},children:l(_,{size:24})}),l("button",{type:"button",className:a(tO,"style__a5l83v6"),onClick:()=>{o(e=>e===r.length-1?0:e+1)},children:l(m,{size:24})}),l("div",{className:"style__a5l83v7",children:r.map(({src:e},t)=>l("button",{type:"button",className:`style__a5l83v8 ${i===t?"active":""}`,onClick:()=>{o(t)}},e))})]})]})};var tE={sm:"sm__1blk89u9",md:"md__1blk89ua",lg:"lg__1blk89ub"},tH="style__1blk89uc",tV={outlined:"outlined__1blk89u1",standard:"standard__1blk89u2"},tj="style__1blk89u6";let tW=({error:e,variant:r="outlined",size:s="md",startAdornment:n,endAdornment:i,className:o,disabled:c,fullWidth:d,value:_,ref:m,...h})=>t("div",{className:a("Input__1blk89u0",tV[r],{style__1blk89u7:e},{[tj]:c},{style__1blk89u3:d},o),children:[n&&l("span",{className:tH,children:n}),l("input",{className:a("style__1blk89u8",tE[s],{[tj]:c,style__1blk89ud:!!n,style__1blk89ue:!!i}),ref:m,disabled:c,value:_||"",...h}),i&&l("span",{className:tH,children:i})]}),tG=({separator:e="•",...t})=>l("div",{...t,children:l("span",{className:"style__te1pgr0",children:e})}),tY=({char:e,hasFakeCaret:r,isActive:s,...n})=>t("div",{className:a("style__rtks2g0",{style__rtks2g1:s}),...n,children:[e,r&&l("div",{className:"style__rtks2g2",children:l("div",{className:"style__rtks2g4"})})]});var tK="style__1iixe0l2";let tU=({className:r,containerClassName:s,disabled:n,...i})=>l(ez,{containerClassName:a("style__1iixe0l0",{style__1iixe0l3:n},s),className:a("style__1iixe0l1",r),render:({slots:r})=>r.length%2!=0?l("div",{className:tK,children:r.map((e,t)=>l(tY,{...e},`${t}-${e.char}`))}):t(e,{children:[l("div",{className:tK,children:r.slice(0,r.length/2).map((e,t)=>l(tY,{...e},`${t}-${e.char}`))}),l(tG,{}),l("div",{className:tK,children:r.slice(r.length/2).map((e,t)=>l(tY,{...e},`${t}-${e.char}`))})]}),...i}),tJ=({label:e,helperText:r,className:s,disabled:n,fullWidth:i,ref:o,labelClassName:c,...d})=>t("div",{className:a("style__kqu4y20",{style__kqu4y25:i},s),children:[e&&l(ls,{htmlFor:d.id||e,disabled:n,required:d.required,error:d.error,className:a("style__kqu4y21",c),children:e}),l(tW,{ref:o,disabled:n,fullWidth:i,id:d.id||e,...d}),r&&l(lB,{variant:"caption",className:a("style__kqu4y22",{style__kqu4y24:d.error,style__kqu4y23:n}),children:r})]}),tX=({maskProps:e,ref:t,...r})=>{let a=eS(e);return l(tJ,{ref:C(e=>{a.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[a,t]),...r})},tQ=({children:e,className:t})=>l("div",{className:a("style__adrl250",t),children:e});tQ.Header=e=>{let{title:r,subtitle:s,breadcrumbs:n,actions:i,backButton:o,className:c}=e,{pinned:d,togglePinned:m}=lZ();return S(()=>{"string"==typeof r&&(document.title=r)},[r]),t("header",{className:a("page_header","style__nvcxbd1",c),children:[t("div",{className:"style__nvcxbd2",children:[l(li,{text:d?"Развернуть":"Свернуть",children:l(lt,{variant:"ghost",size:"icon",onClick:m,children:d?l(f,{}):l(b,{})})}),o&&l(li,{text:"Назад",children:l(lt,{...o,variant:"ghost",children:l(_,{})})})]}),n&&l("div",{className:"Breadcrumbs__nvcxbd0",children:n}),l("div",{className:"style__nvcxbd3",children:i}),"string"==typeof r?l(lB,{className:"style__nvcxbd4",component:"h1",variant:"h3","aria-level":1,children:r}):l("div",{className:"style__nvcxbd5",children:r}),s&&"string"==typeof s&&l(lB,{className:"style__nvcxbd6","aria-level":2,children:s}),s&&"string"!=typeof s&&l("div",{className:"style__nvcxbd7",children:s})]})},tQ.Content=e=>{let{className:t,children:r,isFullHeight:s=!0}=e;return l("article",{className:a("page-content","style__1hr0uh00",{style__1hr0uh01:s},t),children:r})},tQ.Footer=e=>{let{children:t,className:r}=e;return l("footer",{className:a("style__1bd8jnw0",r),children:t})},tQ.Aside=({children:e,className:t})=>l("aside",{className:a("PageLayoutAside__1un4hm80",t,"page_aside"),children:e});let tZ=(e,l)=>Array.from({length:l-e+1},(l,t)=>t+e);function t1(e){let{onPageChange:r,totalCount:a,siblingCount:s=1,currentPage:n,pageSize:i,size:o="icon"}=e,c=(({totalCount:e,pageSize:l,siblingCount:t=1,currentPage:r})=>I(()=>{if(l<=0||e<=0)return[];let a=Math.ceil(e/l);if(t+5>=a)return tZ(1,a);let s=Math.max(r-t,1),n=Math.min(r+t,a),i=s>2,o=n<a-2;return!i&&o?[...tZ(1,3+2*t),null,a]:i&&!o?[1,null,...tZ(a-(3+2*t)+1,a)]:i&&o?[1,null,...tZ(s,n),null,a]:[]},[e,l,t,r]))({currentPage:n,totalCount:a,siblingCount:s,pageSize:i});if(0===n||c&&c.length<2)return null;let d=c.at(-1);return t("nav",{className:"style__p708oq0",children:[l(lt,{variant:"ghost",size:o,onClick:()=>{r(n-1)},disabled:1===n,children:l(_,{})}),c?.map((e,t)=>e?l(lt,{size:o,variant:e===n?"default":"outline",onClick:()=>r(+e),children:e},`${e}${t.toString()}`):l("span",{className:"style__p708oq1",children:l(g,{})})),l(lt,{variant:"ghost",size:o,onClick:()=>{r(n+1)},disabled:n===d,children:l(m,{})})]})}let t0=["Янв.","Фев.","Мар.","Апр.","Май","Июн.","Июл.","Авг.","Сен.","Окт.","Ноя.","Дек."],t2=["I квартал","II квартал","III квартал","IV квартал"],t6=e=>Math.ceil(e/3);function t5({year:e,onSelect:r,minDate:a,maxDate:s}){let n=Array.from({length:s.getFullYear()-a.getFullYear()+1},(e,l)=>a.getFullYear()+l);return t(ro,{onValueChange:e=>{r?.(Number(e))},value:e.toString(),children:[l(r_,{children:l(rd,{placeholder:e.toString()})}),l(ru,{children:n.map(e=>l(rp,{value:e.toString(),children:l(lB,{align:"center",variant:"subtitle1",transform:"capitalize",children:e})},e))})]})}let t8=e=>{let{label:r,disabled:a=!1,value:s,onSelect:n,type:i="month",placeholder:c="month"===i?"Выберите месяц":"Выберите квартал",error:d,helperText:_,max:m=new Date(2050,0,1),min:h=new Date(2e3,0,1),className:u,size:y,fullWidth:p,name:g}=e,v=new Date,[b,f]=F(!1),[N,w]=F(v.getFullYear()),k=e=>{n?.(e),f(!1)},x="month"===i?s?.toLocaleDateString("ru-RU",{month:"long",year:"numeric"}):s?`${t2[t6(s.getMonth())]} ${s.getFullYear()}`:"";return S(()=>{s&&w(s.getFullYear())},[s]),t(X,{open:b,onOpenChange:f,children:[l(tJ,{label:r,value:x,disabled:a,size:y,fullWidth:p,name:g,endAdornment:l(Q,{asChild:!0,children:l(lt,{disabled:a,variant:"ghost",size:"icon",children:l(o,{})})}),placeholder:c,error:d,helperText:_,className:u}),l(lP,{align:"end",alignOffset:-10,side:"bottom",children:t("div",{className:"style__1izfmw30",children:[l(t5,{year:N,onSelect:w,minDate:h,maxDate:m}),"month"===i?l("div",{className:"style__1izfmw31",children:t0.map((e,t)=>{let r=new Date(N,t,s?.getDate()||1);return l(lt,{variant:s?.getMonth()===t&&s.getFullYear()===r.getFullYear()?"default":"ghost",disabled:r<h||r>m,onClick:()=>k(r),children:e},e)})}):l("div",{className:"style__1izfmw32",children:t2.map((e,t)=>{let r=new Date(N,3*t,1);return l(lt,{variant:s&&[t6(s.getMonth())===t,s.getFullYear()===r.getFullYear()].every(Boolean)?"default":"ghost",disabled:r<h||r>m,onClick:()=>k(r),children:e},e)})})]})})]})},t3=({className:e,...t})=>l(eI,{"data-slot":"radio-group",className:r("RadioGroup__ia95d10",e),...t}),t4=({className:e,label:r,...s})=>t("div",{className:"style__ia95d11",children:[l(eT,{"data-slot":"radio-group-item",id:s.id||s.value,className:a("style__ia95d12",e),...s,children:l(eD,{"data-slot":"radio-group-indicator",className:"style__ia95d13",children:l(y,{className:"style__ia95d14"})})}),l(ls,{htmlFor:s.id||s.value,"data-slot":"radio-group-label",children:r})]});var t9="style__h9oy583";let t7=({className:e,...r})=>t(eF,{className:a("style__h9oy580",e),...r,children:[l(eL,{className:"style__h9oy581",children:l(eP,{className:"style__h9oy582"})}),l(eA,{className:t9}),r.value?.length===2&&l(eA,{className:t9})]});var re={sm:"sm__1pnwkko2",md:"md__1pnwkko3",lg:"lg__1pnwkko4"},rl="style__1pnwkko6",rt="style__1pnwkko5";function rr({min:e,max:r,onChange:s,minValue:n,maxValue:i,width:o=150,label:c="",unit:d="",size:_="md",className:m,isActive:h,minInputRef:u,maxInputRef:y}){let{onMinValueChange:p,onMaxValueChange:g,minVal:v,maxVal:b,onKeyDown:f,onValueChange:N,onConfirm:w,minId:k,maxId:x}=(({min:e,max:l,maxValue:t,minValue:r,onChange:a})=>{let s=D(),n=D(),[i,o]=F(e),[c,d]=F(l);return S(()=>{o(r||e),d(t||l)},[r,t,e,l]),{maxId:n,minId:s,minVal:i,maxVal:c,onValueChange:e=>{e[0]===e[1]?a(e[0],e[1]):(o(e[0]),d(e[1]))},onMinValueChange:e=>{let{value:l}=e.target;Number.isNaN(+l)||o(+l)},onMaxValueChange:e=>{let{value:l}=e.target;Number.isNaN(l)||d(+l)},onKeyDown:t=>{"Enter"===t.key&&a(i>=e&&i<=l?i:e,c>=e&&c<=l?c:l)},onConfirm:e=>{a(e[0],e[1])}}})({min:e,max:r,maxValue:i,minValue:n,onChange:s});return t("div",{className:a("style__1pnwkko0",re[_],{style__1pnwkko1:h},m),style:{width:o},children:[l(lB,{className:rt,color:"disabled",variant:"body2",children:c}),l(lB,{className:rt,color:"disabled",variant:"body2",children:"от"}),l("input",{className:rl,type:"text",id:k,value:v,onChange:p,onKeyDown:f,ref:u}),l(lB,{className:rt,color:"disabled",variant:"body2",children:"до"}),l("input",{className:rl,type:"text",id:x,value:b,onChange:g,onKeyDown:f,ref:y}),l(lB,{className:rt,color:"disabled",variant:"body2",children:d}),l("div",{className:"style__1pnwkko7",children:l(t7,{min:e,max:r,value:[Number(v),Number(b)],onValueChange:N,onValueCommit:w})})]})}function ra({onClick:e,variant:t="outline",...r}){let[s,n]=F(!1),i=()=>{window.scrollY>400?n(!0):n(!1)};return S(()=>(window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}),[]),l(lt,{type:"button",variant:t,className:a("style__1ou2vjc0",{style__1ou2vjc1:s}),onClick:e||(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),...r,children:l(h,{})})}var rs={sm:"sm__5ilg7o3",md:"md__5ilg7o4",lg:"lg__5ilg7o5"},rn="style__5ilg7od",ri="style__5ilg7o6";let ro=eV,rc=eR,rd=eK,r_=({className:e,children:r,size:s="md",...n})=>t(eY,{className:a("style__5ilg7o2",rs[s],e),...n,children:[r,l(eq,{asChild:!0,children:l(d,{className:"style__5ilg7oe"})})]}),rm=({className:e,...t})=>l(eW,{className:a(ri,e),...t,children:l(h,{className:rn})}),rh=({className:e,...t})=>l(ej,{className:a(ri,e),...t,children:l(d,{className:rn})}),ru=({className:e,children:r,position:s="popper",...n})=>l(eH,{children:t(eM,{className:a("style__5ilg7o7",e),position:s,...n,children:[l(rm,{}),l(eU,{className:"style__5ilg7o8",children:r}),l(rh,{})]})}),ry=({className:e,...t})=>l(eE,{className:`style__5ilg7o9 ${e||""}`,...t}),rp=({className:e,children:r,...a})=>t(e$,{className:`style__5ilg7oa ${e||""}`,...a,children:[l("span",{className:"style__5ilg7ob",children:l(eO,{children:l(c,{className:rn})})}),l(eB,{children:r})]}),rg=({className:e,...t})=>l(eG,{className:`style__5ilg7oc ${e||""}`,...t});var rv={sm:"sm__hworoa2",md:"md__hworoa3",lg:"lg__hworoa4"};let rb=e=>l(eQ,{...e});rb.Content=({className:e,...t})=>l(eJ,{className:a("style__hworoa5",e),...t}),rb.List=({className:e,...t})=>l(eX,{className:a("style__hworoa0",e),...t}),rb.Trigger=({className:e,size:t="md",...r})=>l(eZ,{className:a("style__hworoa1",rv[t],e),...r});let rf=({form:e,children:t,...r})=>l(e0,{...e,children:l("form",{noValidate:!0,...r,children:t})});function rN({name:e,control:t,...r}){return l(e1,{control:t,name:e,render:({field:e,fieldState:t})=>l(tX,{...r,...e,error:!!t.error,helperText:t.error?.message})})}let rw=({mode:e="onBlur",...l}={})=>e5({...l,mode:e}),rk=({children:e,isLoading:t,...r})=>{let{formState:a}=e8();return l(lt,{type:"submit",isLoading:t||a.isSubmitting,...r,children:e})};function rx({name:e,control:t,gridArea:r,...a}){return l(e1,{control:t,name:e,render:({field:e,fieldState:t})=>l(tJ,{...a,...e,style:{gridArea:r},value:e.value||"",error:!!t.error,helperText:t.error?.message})})}var rC=":",rz="—";export{e4 as Accordion,e7 as Badge,lt as Button,lo as ButtonGroup,ld as Card,lu as CardContent,lh as CardDescription,ly as CardFooter,l_ as CardHeader,lm as CardTitle,lz as Carousel,lS as Checkbox,lI as CircularProgress,lE as ConfirmAction,lJ as ContentState,lX as CopyTypography,tT as DESCRIPTION_ROOT_CLASSNAME,l1 as DashboardLayout,l7 as DataGrid,tb as DataGridActionCell,tN as DataGridSortHeader,tD as DataList,tM as Description,tR as Dialog,tq as Drawer,tl as DropdownMenu,t_ as DropdownMenuCheckboxItem,tc as DropdownMenuContent,tr as DropdownMenuGroup,td as DropdownMenuItem,th as DropdownMenuLabel,ta as DropdownMenuPortal,tn as DropdownMenuRadioGroup,tm as DropdownMenuRadioItem,tu as DropdownMenuSeparator,ty as DropdownMenuShortcut,ts as DropdownMenuSub,to as DropdownMenuSubContent,ti as DropdownMenuSubTrigger,tt as DropdownMenuTrigger,rf as Form,e1 as FormController,rN as FormMaskField,e0 as FormProvider,rk as FormSubmitButton,rx as FormTextField,lV as Image,tB as ImageCarousel,tW as Input,tU as InputOTP,ls as Label,tX as MaskField,tQ as PageLayout,t1 as Pagination,t8 as PeriodPicker,lU as Placeholder,X as Popover,lP as PopoverContent,Q as PopoverTrigger,t3 as RadioGroup,t4 as RadioGroupItem,rr as RangeInput,ra as ScrollTopButton,ro as Select,ru as SelectContent,rc as SelectGroup,rp as SelectItem,ry as SelectLabel,rh as SelectScrollDownButton,rm as SelectScrollUpButton,rg as SelectSeparator,r_ as SelectTrigger,rd as SelectValue,t7 as Slider,rb as Tabs,tJ as TextField,li as Tooltip,lB as Typography,lF as alignments,e9 as badgeVariants,la as buttonSizes,lr as buttonVariants,lA as colors,E as createTheme,lR as displays,H as globalKeyframes,V as globalStyle,j as keyframes,W as style,G as styleVariants,lM as transforms,lZ as useDashboard,rw as useForm,e8 as useFormContext,e2 as useFormController,e6 as useFormFieldArray,e3 as useFormWatch,lL as variants,lc as vars,l$ as weights,rC as DEFAULT_SEPARATOR,rz as DEFAULT_SYMBOL};
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Accordion, Checkbox } from "@base-ui/react";
|
|
3
|
+
import clsx_0, { clsx } from "clsx";
|
|
4
|
+
import { ArrowDownNarrowWide, ArrowDownUp, ArrowDownWideNarrow, Calendar1, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Circle, CircleCheck, CircleIcon, Copy, Ellipsis, EllipsisVertical, Info, OctagonAlert, PanelLeftClose, PanelLeftOpen, TriangleAlert, X } from "lucide-react";
|
|
5
|
+
import { AlertDialog } from "@base-ui/react/alert-dialog";
|
|
6
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
7
|
+
import { Root } from "@radix-ui/react-label";
|
|
8
|
+
import { Arrow, Content as react_tooltip_Content, Portal as react_tooltip_Portal, Provider, Root as react_tooltip_Root, Trigger as react_tooltip_Trigger } from "@radix-ui/react-tooltip";
|
|
9
|
+
import { DayPicker } from "react-day-picker";
|
|
10
|
+
import { ru } from "react-day-picker/locale";
|
|
11
|
+
import react, { createContext, createElement, useCallback, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
12
|
+
import embla_carousel_react from "embla-carousel-react";
|
|
13
|
+
import { Content as react_popover_Content, Popover, PopoverTrigger, Portal as react_popover_Portal } from "@radix-ui/react-popover";
|
|
14
|
+
import { Virtuoso } from "react-virtuoso";
|
|
15
|
+
import { useMask } from "@react-input/mask";
|
|
16
|
+
import { Close, Content as react_dialog_Content, Description as react_dialog_Description, Overlay as react_dialog_Overlay, Portal as react_dialog_Portal, Root as react_dialog_Root, Title as react_dialog_Title, Trigger as react_dialog_Trigger } from "@radix-ui/react-dialog";
|
|
17
|
+
import { Drawer, Root as external_vaul_Root } from "vaul";
|
|
18
|
+
import { OTPInput } from "input-otp";
|
|
19
|
+
import { Toaster, toast } from "sonner";
|
|
20
|
+
import { Indicator, Item as react_radio_group_Item, Root as react_radio_group_Root } from "@radix-ui/react-radio-group";
|
|
21
|
+
import { Range, Root as react_slider_Root, Thumb, Track } from "@radix-ui/react-slider";
|
|
22
|
+
import { Content as react_select_Content, Group, Icon, Item as react_select_Item, ItemIndicator, ItemText, Label as react_select_Label, Portal as react_select_Portal, Root as react_select_Root, ScrollDownButton, ScrollUpButton, Separator as react_select_Separator, Trigger as react_select_Trigger, Value as react_select_Value, Viewport } from "@radix-ui/react-select";
|
|
23
|
+
import { Content as react_tabs_Content, List, Tabs, Trigger as react_tabs_Trigger } from "@radix-ui/react-tabs";
|
|
24
|
+
import { Controller, FormProvider, useController, useFieldArray, useForm, useFormContext, useWatch } from "react-hook-form";
|
|
25
|
+
import * as __rspack_external__radix_ui_react_dropdown_menu_dbc6754d from "@radix-ui/react-dropdown-menu";
|
|
26
|
+
var styles_css_header = 'style__1b0hb6s4';
|
|
27
|
+
var styles_css_item = 'style__1b0hb6s3';
|
|
28
|
+
var panel = 'style__1b0hb6s9';
|
|
29
|
+
var panelContent = 'style__1b0hb6sa';
|
|
30
|
+
var root = 'style__1b0hb6s2';
|
|
31
|
+
var styles_css_trigger = 'style__1b0hb6s5';
|
|
32
|
+
var triggerIconDown = 'style__1b0hb6s7 style__1b0hb6s6';
|
|
33
|
+
var triggerIconUp = 'style__1b0hb6s8 style__1b0hb6s6';
|
|
34
|
+
function Accordion_Accordion({ className, ...props }) {
|
|
35
|
+
return /*#__PURE__*/ jsx(Accordion.Root, {
|
|
36
|
+
"data-slot": "accordion",
|
|
37
|
+
className: clsx(root, className),
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function Item({ className, ...props }) {
|
|
42
|
+
return /*#__PURE__*/ jsx(Accordion.Item, {
|
|
43
|
+
"data-slot": "accordion-item",
|
|
44
|
+
className: clsx(styles_css_item, className),
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function Trigger({ className, children, ...props }) {
|
|
49
|
+
return /*#__PURE__*/ jsx(Accordion.Header, {
|
|
50
|
+
className: styles_css_header,
|
|
51
|
+
children: /*#__PURE__*/ jsxs(Accordion.Trigger, {
|
|
52
|
+
"data-slot": "accordion-trigger",
|
|
53
|
+
className: clsx(styles_css_trigger, className),
|
|
54
|
+
...props,
|
|
55
|
+
children: [
|
|
56
|
+
children,
|
|
57
|
+
/*#__PURE__*/ jsx(ChevronDown, {
|
|
58
|
+
"data-slot": "accordion-trigger-icon",
|
|
59
|
+
size: 16,
|
|
60
|
+
className: triggerIconDown
|
|
61
|
+
}),
|
|
62
|
+
/*#__PURE__*/ jsx(ChevronUp, {
|
|
63
|
+
"data-slot": "accordion-trigger-icon",
|
|
64
|
+
size: 16,
|
|
65
|
+
className: triggerIconUp
|
|
66
|
+
})
|
|
67
|
+
]
|
|
68
|
+
})
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function Accordion_Content({ className, children, ...props }) {
|
|
72
|
+
return /*#__PURE__*/ jsx(Accordion.Panel, {
|
|
73
|
+
"data-slot": "accordion-content",
|
|
74
|
+
className: clsx(panel, className),
|
|
75
|
+
...props,
|
|
76
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
77
|
+
className: clsx(panelContent, className),
|
|
78
|
+
children: children
|
|
79
|
+
})
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
Accordion_Accordion.Item = Item;
|
|
83
|
+
Accordion_Accordion.Trigger = Trigger;
|
|
84
|
+
Accordion_Accordion.Content = Accordion_Content;
|
|
85
|
+
var __default__ = {
|
|
86
|
+
buttonBase: 'style__1ersxw10',
|
|
87
|
+
buttonSizes: {
|
|
88
|
+
sm: 'sm__1ersxw19',
|
|
89
|
+
md: 'md__1ersxw1a',
|
|
90
|
+
lg: 'lg__1ersxw1b',
|
|
91
|
+
icon: 'icon__1ersxw1c',
|
|
92
|
+
iconSm: 'iconSm__1ersxw1d'
|
|
93
|
+
},
|
|
94
|
+
buttonVariants: {
|
|
95
|
+
default: 'default__1ersxw14',
|
|
96
|
+
destructive: 'destructive__1ersxw15',
|
|
97
|
+
outline: 'outline__1ersxw16',
|
|
98
|
+
ghost: 'ghost__1ersxw17',
|
|
99
|
+
link: 'link__1ersxw18'
|
|
100
|
+
},
|
|
101
|
+
fullWidthStyle: 'style__1ersxw13',
|
|
102
|
+
loading: 'style__1ersxw12'
|
|
103
|
+
};
|
|
104
|
+
const button_css = __default__;
|
|
105
|
+
var styles_css_default_ = {
|
|
106
|
+
startAdornment: 'style__1gsf04s0',
|
|
107
|
+
endAdornment: 'style__1gsf04s1'
|
|
108
|
+
};
|
|
109
|
+
const styles_css = styles_css_default_;
|
|
110
|
+
const Content_Content = ({ children, startAdornment, endAdornment, ...props })=>/*#__PURE__*/ jsxs("button", {
|
|
111
|
+
...props,
|
|
112
|
+
children: [
|
|
113
|
+
startAdornment && /*#__PURE__*/ jsx("span", {
|
|
114
|
+
className: styles_css.startAdornment,
|
|
115
|
+
children: startAdornment
|
|
116
|
+
}),
|
|
117
|
+
children,
|
|
118
|
+
endAdornment && /*#__PURE__*/ jsx("span", {
|
|
119
|
+
className: styles_css.endAdornment,
|
|
120
|
+
children: endAdornment
|
|
121
|
+
})
|
|
122
|
+
]
|
|
123
|
+
});
|
|
124
|
+
const Button = ({ className, variant = 'default', size = 'md', asChild = false, isLoading = false, fullWidth, ...props })=>{
|
|
125
|
+
const Component = asChild ? Slot : Content_Content;
|
|
126
|
+
return /*#__PURE__*/ jsx(Component, {
|
|
127
|
+
className: clsx(button_css.buttonBase, button_css.buttonVariants[variant], button_css.buttonSizes[size], {
|
|
128
|
+
[button_css.fullWidthStyle]: fullWidth,
|
|
129
|
+
[button_css.loading]: isLoading
|
|
130
|
+
}, className),
|
|
131
|
+
...props
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
const { buttonVariants: buttonVariants, buttonSizes: buttonSizes } = button_css;
|
|
135
|
+
var styles_css_content = 'style__qmtpwy5';
|
|
136
|
+
var styles_css_description = 'style__qmtpwya';
|
|
137
|
+
var styles_css_footer = 'style__qmtpwy7';
|
|
138
|
+
var AlertDialog_styles_css_header = 'style__qmtpwy6';
|
|
139
|
+
var media = 'style__qmtpwy8';
|
|
140
|
+
var overlay = 'style__qmtpwy4';
|
|
141
|
+
var styles_css_title = 'style__qmtpwy9';
|
|
142
|
+
function AlertDialog_Trigger({ ...props }) {
|
|
143
|
+
return /*#__PURE__*/ jsx(AlertDialog.Trigger, {
|
|
144
|
+
"data-slot": "alert-dialog-trigger",
|
|
145
|
+
...props
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function Portal({ ...props }) {
|
|
149
|
+
return /*#__PURE__*/ jsx(AlertDialog.Portal, {
|
|
150
|
+
"data-slot": "alert-dialog-portal",
|
|
151
|
+
...props
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
function Overlay({ className, ...props }) {
|
|
155
|
+
return /*#__PURE__*/ jsx(AlertDialog.Backdrop, {
|
|
156
|
+
"data-slot": "alert-dialog-overlay",
|
|
157
|
+
className: clsx(overlay, className),
|
|
158
|
+
...props
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
function AlertDialog_Content({ className, size = 'default', ...props }) {
|
|
162
|
+
return /*#__PURE__*/ jsxs(Portal, {
|
|
163
|
+
children: [
|
|
164
|
+
/*#__PURE__*/ jsx(Overlay, {}),
|
|
165
|
+
/*#__PURE__*/ jsx(AlertDialog.Popup, {
|
|
166
|
+
"data-slot": "alert-dialog-content",
|
|
167
|
+
"data-size": size,
|
|
168
|
+
className: clsx(styles_css_content, className),
|
|
169
|
+
...props
|
|
170
|
+
})
|
|
171
|
+
]
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
function Header({ className, ...props }) {
|
|
175
|
+
return /*#__PURE__*/ jsx("div", {
|
|
176
|
+
"data-slot": "alert-dialog-header",
|
|
177
|
+
className: clsx(AlertDialog_styles_css_header, className),
|
|
178
|
+
...props
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
function Footer({ className, ...props }) {
|
|
182
|
+
return /*#__PURE__*/ jsx("div", {
|
|
183
|
+
"data-slot": "alert-dialog-footer",
|
|
184
|
+
className: clsx(styles_css_footer, className),
|
|
185
|
+
...props
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
function Media({ className, ...props }) {
|
|
189
|
+
return /*#__PURE__*/ jsx("div", {
|
|
190
|
+
"data-slot": "alert-dialog-media",
|
|
191
|
+
className: clsx(media, className),
|
|
192
|
+
...props
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
function Title({ className, ...props }) {
|
|
196
|
+
return /*#__PURE__*/ jsx(AlertDialog.Title, {
|
|
197
|
+
"data-slot": "alert-dialog-title",
|
|
198
|
+
className: clsx(styles_css_title, className),
|
|
199
|
+
...props
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
function Description({ className, ...props }) {
|
|
203
|
+
return /*#__PURE__*/ jsx(AlertDialog.Description, {
|
|
204
|
+
"data-slot": "alert-dialog-description",
|
|
205
|
+
className: clsx(styles_css_description, className),
|
|
206
|
+
...props
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
function Action({ className, ...props }) {
|
|
210
|
+
return /*#__PURE__*/ jsx(Button, {
|
|
211
|
+
"data-slot": "alert-dialog-action",
|
|
212
|
+
className: className,
|
|
213
|
+
...props
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
function Cancel({ className, variant = 'outline', size = 'md', ...props }) {
|
|
217
|
+
return /*#__PURE__*/ jsx(AlertDialog.Close, {
|
|
218
|
+
"data-slot": "alert-dialog-cancel",
|
|
219
|
+
className: className,
|
|
220
|
+
render: /*#__PURE__*/ jsx(Button, {
|
|
221
|
+
variant: variant,
|
|
222
|
+
size: size
|
|
223
|
+
}),
|
|
224
|
+
...props
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
function AlertDialog_AlertDialog({ ...props }) {
|
|
228
|
+
return /*#__PURE__*/ jsx(AlertDialog.Root, {
|
|
229
|
+
"data-slot": "alert-dialog",
|
|
230
|
+
...props
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
AlertDialog_AlertDialog.Trigger = AlertDialog_Trigger;
|
|
234
|
+
AlertDialog_AlertDialog.Overlay = Overlay;
|
|
235
|
+
AlertDialog_AlertDialog.Content = AlertDialog_Content;
|
|
236
|
+
AlertDialog_AlertDialog.Header = Header;
|
|
237
|
+
AlertDialog_AlertDialog.Footer = Footer;
|
|
238
|
+
AlertDialog_AlertDialog.Media = Media;
|
|
239
|
+
AlertDialog_AlertDialog.Title = Title;
|
|
240
|
+
AlertDialog_AlertDialog.Description = Description;
|
|
241
|
+
AlertDialog_AlertDialog.Action = Action;
|
|
242
|
+
AlertDialog_AlertDialog.Cancel = Cancel;
|
|
243
|
+
var badgeVariants = {
|
|
244
|
+
default: 'default__1af895x1',
|
|
245
|
+
secondary: 'secondary__1af895x2',
|
|
246
|
+
destructive: 'destructive__1af895x3',
|
|
247
|
+
outline: 'outline__1af895x4'
|
|
248
|
+
};
|
|
249
|
+
var rootClass = 'style__1af895x0';
|
|
250
|
+
function Badge({ className, variant = 'default', asChild = false, ...props }) {
|
|
251
|
+
const Comp = asChild ? Slot : 'span';
|
|
252
|
+
return /*#__PURE__*/ jsx(Comp, {
|
|
253
|
+
"data-slot": "badge",
|
|
254
|
+
className: clsx(rootClass, badgeVariants[variant], className),
|
|
255
|
+
...props
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
var label_css_disabled = 'style__c31e141';
|
|
259
|
+
var label_css_error = 'style__c31e142';
|
|
260
|
+
var required = 'style__c31e143';
|
|
261
|
+
var label_css_root = 'Label__c31e140';
|
|
262
|
+
const Label = ({ className, disabled, ...props })=>/*#__PURE__*/ jsx(Root, {
|
|
263
|
+
className: clsx(label_css_root, {
|
|
264
|
+
[label_css_disabled]: disabled,
|
|
265
|
+
[label_css_error]: props.error,
|
|
266
|
+
[required]: props.required
|
|
267
|
+
}, className),
|
|
268
|
+
...props
|
|
269
|
+
});
|
|
270
|
+
var arrowClass = 'style__izacrl4';
|
|
271
|
+
var contentClass = 'style__izacrl2';
|
|
272
|
+
var textClass = 'style__izacrl3';
|
|
273
|
+
const TooltipProvider = Provider;
|
|
274
|
+
const TooltipRoot = react_tooltip_Root;
|
|
275
|
+
const TooltipTrigger = react_tooltip_Trigger;
|
|
276
|
+
const TooltipContent = ({ sideOffset = 4, alignOffset, ref, ...props })=>/*#__PURE__*/ jsx(react_tooltip_Content, {
|
|
277
|
+
ref: ref,
|
|
278
|
+
sideOffset: sideOffset,
|
|
279
|
+
...props
|
|
280
|
+
});
|
|
281
|
+
const Tooltip = ({ text, content, children, side = 'top', sideOffset, alignOffset, delayDuration = 0, className, ref, ...props })=>/*#__PURE__*/ jsx(TooltipProvider, {
|
|
282
|
+
delayDuration: delayDuration,
|
|
283
|
+
children: /*#__PURE__*/ jsxs(TooltipRoot, {
|
|
284
|
+
...props,
|
|
285
|
+
children: [
|
|
286
|
+
/*#__PURE__*/ jsx(TooltipTrigger, {
|
|
287
|
+
ref: ref,
|
|
288
|
+
asChild: true,
|
|
289
|
+
children: children
|
|
290
|
+
}),
|
|
291
|
+
content || text ? /*#__PURE__*/ jsx(react_tooltip_Portal, {
|
|
292
|
+
children: /*#__PURE__*/ jsxs(TooltipContent, {
|
|
293
|
+
className: clsx_0(contentClass, className),
|
|
294
|
+
alignOffset: alignOffset,
|
|
295
|
+
sideOffset: sideOffset,
|
|
296
|
+
hideWhenDetached: true,
|
|
297
|
+
side: side,
|
|
298
|
+
children: [
|
|
299
|
+
content ?? /*#__PURE__*/ jsx("p", {
|
|
300
|
+
className: textClass,
|
|
301
|
+
children: text
|
|
302
|
+
}),
|
|
303
|
+
props.arrow && /*#__PURE__*/ jsx(Arrow, {
|
|
304
|
+
className: arrowClass
|
|
305
|
+
})
|
|
306
|
+
]
|
|
307
|
+
})
|
|
308
|
+
}) : null
|
|
309
|
+
]
|
|
310
|
+
})
|
|
311
|
+
});
|
|
312
|
+
var buttonClass = 'style__1iqvz722';
|
|
313
|
+
var buttonsClass = 'style__1iqvz721';
|
|
314
|
+
var containerClass = 'style__1iqvz720';
|
|
315
|
+
var labelClass = 'style__1iqvz723';
|
|
316
|
+
const ButtonGroup = ({ value, onChange, options, size, className, label, multiple })=>{
|
|
317
|
+
const isMultiple = true === multiple;
|
|
318
|
+
const isActive = (optionValue)=>{
|
|
319
|
+
if (isMultiple) return value.includes(optionValue);
|
|
320
|
+
return value === optionValue;
|
|
321
|
+
};
|
|
322
|
+
const handleChange = (optionValue)=>{
|
|
323
|
+
if (isMultiple) {
|
|
324
|
+
const currentValue = value;
|
|
325
|
+
currentValue.includes(optionValue) ? onChange(currentValue.filter((v)=>v !== optionValue)) : onChange([
|
|
326
|
+
...currentValue,
|
|
327
|
+
optionValue
|
|
328
|
+
]);
|
|
329
|
+
} else onChange(optionValue);
|
|
330
|
+
};
|
|
331
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
332
|
+
className: clsx(containerClass, className),
|
|
333
|
+
children: [
|
|
334
|
+
label && /*#__PURE__*/ jsx(Label, {
|
|
335
|
+
className: labelClass,
|
|
336
|
+
children: label
|
|
337
|
+
}),
|
|
338
|
+
/*#__PURE__*/ jsx("div", {
|
|
339
|
+
className: buttonsClass,
|
|
340
|
+
children: options.map((option)=>/*#__PURE__*/ jsx(Tooltip, {
|
|
341
|
+
arrow: true,
|
|
342
|
+
text: option.title,
|
|
343
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
344
|
+
size: size,
|
|
345
|
+
className: buttonClass,
|
|
346
|
+
disabled: option.disabled,
|
|
347
|
+
onClick: ()=>handleChange(option.value),
|
|
348
|
+
startAdornment: option.startAdornment,
|
|
349
|
+
endAdornment: option.endAdornment,
|
|
350
|
+
variant: isActive(option.value) ? 'default' : 'outline',
|
|
351
|
+
children: option.label
|
|
352
|
+
}, option.value)
|
|
353
|
+
}, option.value))
|
|
354
|
+
})
|
|
355
|
+
]
|
|
356
|
+
});
|
|
357
|
+
};
|
|
358
|
+
var alignments = {
|
|
359
|
+
left: 'left__1sba6zok',
|
|
360
|
+
center: 'center__1sba6zol',
|
|
361
|
+
right: 'right__1sba6zom',
|
|
362
|
+
justify: 'justify__1sba6zon'
|
|
363
|
+
};
|
|
364
|
+
var colors = {
|
|
365
|
+
primary: 'primary__1sba6zoc',
|
|
366
|
+
secondary: 'secondary__1sba6zod',
|
|
367
|
+
disabled: 'disabled__1sba6zoe',
|
|
368
|
+
success: 'success__1sba6zof',
|
|
369
|
+
error: 'error__1sba6zog',
|
|
370
|
+
warning: 'warning__1sba6zoh',
|
|
371
|
+
info: 'info__1sba6zoi',
|
|
372
|
+
muted: 'muted__1sba6zoj'
|
|
373
|
+
};
|
|
374
|
+
var decorations = {
|
|
375
|
+
none: 'none__1sba6zox',
|
|
376
|
+
underline: 'underline__1sba6zoy',
|
|
377
|
+
lineThrough: 'lineThrough__1sba6zoz'
|
|
378
|
+
};
|
|
379
|
+
var displays = {
|
|
380
|
+
block: 'block__1sba6zoo',
|
|
381
|
+
inline: 'inline__1sba6zop'
|
|
382
|
+
};
|
|
383
|
+
var gutterBottomClass = 'style__1sba6zo10';
|
|
384
|
+
var transforms = {
|
|
385
|
+
lowercase: 'lowercase__1sba6zou',
|
|
386
|
+
uppercase: 'uppercase__1sba6zov',
|
|
387
|
+
capitalize: 'capitalize__1sba6zow'
|
|
388
|
+
};
|
|
389
|
+
var variants = {
|
|
390
|
+
h1: 'h1__1sba6zo0',
|
|
391
|
+
h2: 'h2__1sba6zo1',
|
|
392
|
+
h3: 'h3__1sba6zo2',
|
|
393
|
+
h4: 'h4__1sba6zo3',
|
|
394
|
+
h5: 'h5__1sba6zo4',
|
|
395
|
+
h6: 'h6__1sba6zo5',
|
|
396
|
+
subtitle1: 'subtitle1__1sba6zo6',
|
|
397
|
+
subtitle2: 'subtitle2__1sba6zo7',
|
|
398
|
+
body1: 'body1__1sba6zo8',
|
|
399
|
+
body2: 'body2__1sba6zo9',
|
|
400
|
+
caption: 'caption__1sba6zoa',
|
|
401
|
+
overline: 'overline__1sba6zob'
|
|
402
|
+
};
|
|
403
|
+
var weights = {
|
|
404
|
+
normal: 'normal__1sba6zoq',
|
|
405
|
+
medium: 'medium__1sba6zor',
|
|
406
|
+
semibold: 'semibold__1sba6zos',
|
|
407
|
+
bold: 'bold__1sba6zot'
|
|
408
|
+
};
|
|
409
|
+
const VARIANT_COMPONENT_MAP = {
|
|
410
|
+
h1: 'h1',
|
|
411
|
+
h2: 'h2',
|
|
412
|
+
h3: 'h3',
|
|
413
|
+
h4: 'h4',
|
|
414
|
+
h5: 'h5',
|
|
415
|
+
h6: 'h6',
|
|
416
|
+
subtitle1: 'h6',
|
|
417
|
+
subtitle2: 'h6',
|
|
418
|
+
body1: 'p',
|
|
419
|
+
body2: 'p',
|
|
420
|
+
caption: 'span',
|
|
421
|
+
overline: 'span'
|
|
422
|
+
};
|
|
423
|
+
const Typography = ({ className, variant = 'body1', component, color = 'primary', align = 'left', display = 'inline', weight = 'normal', transform, decoration = 'none', gutterBottom, children, ...props })=>{
|
|
424
|
+
const Component = component || VARIANT_COMPONENT_MAP[variant || 'body1'];
|
|
425
|
+
return /*#__PURE__*/ jsx(Component, {
|
|
426
|
+
className: clsx(decorations[decoration], variants[variant], colors[color], weights[weight], transform && transforms[transform], displays[display], alignments[align], {
|
|
427
|
+
[gutterBottomClass]: gutterBottom
|
|
428
|
+
}, className),
|
|
429
|
+
...props,
|
|
430
|
+
children: children
|
|
431
|
+
});
|
|
432
|
+
};
|
|
433
|
+
var styles_css_button = 'dayButton__hxs6pw0';
|
|
434
|
+
var outside = 'outside__hxs6pw2';
|
|
435
|
+
var today = 'today__hxs6pw1';
|
|
436
|
+
const DayButton = (props)=>{
|
|
437
|
+
const { modifiers, className, ...buttonProps } = props;
|
|
438
|
+
const ref = useRef(null);
|
|
439
|
+
useEffect(()=>{
|
|
440
|
+
if (modifiers.focused) ref.current?.focus();
|
|
441
|
+
}, [
|
|
442
|
+
modifiers.focused
|
|
443
|
+
]);
|
|
444
|
+
return /*#__PURE__*/ jsx(Button, {
|
|
445
|
+
ref: ref,
|
|
446
|
+
className: clsx(styles_css_button, {
|
|
447
|
+
[outside]: modifiers.outside,
|
|
448
|
+
[today]: modifiers.today
|
|
449
|
+
}, className),
|
|
450
|
+
variant: modifiers.selected ? 'default' : 'ghost',
|
|
451
|
+
...buttonProps
|
|
452
|
+
});
|
|
453
|
+
};
|
|
454
|
+
var Dropdown_styles_css_trigger = 'style__1e2msjb0';
|
|
455
|
+
function Dropdown(props) {
|
|
456
|
+
const { options, onChange, ...restProps } = props;
|
|
457
|
+
const selectedOption = options?.find(({ value })=>value === restProps.value);
|
|
458
|
+
const handleChange = (value)=>{
|
|
459
|
+
if (onChange) onChange({
|
|
460
|
+
target: {
|
|
461
|
+
value
|
|
462
|
+
}
|
|
463
|
+
});
|
|
464
|
+
};
|
|
465
|
+
return /*#__PURE__*/ jsxs(Select, {
|
|
466
|
+
value: selectedOption?.value.toString(),
|
|
467
|
+
onValueChange: handleChange,
|
|
468
|
+
children: [
|
|
469
|
+
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
470
|
+
className: Dropdown_styles_css_trigger,
|
|
471
|
+
children: /*#__PURE__*/ jsx(SelectValue, {
|
|
472
|
+
placeholder: selectedOption?.label
|
|
473
|
+
})
|
|
474
|
+
}),
|
|
475
|
+
/*#__PURE__*/ jsx(SelectContent, {
|
|
476
|
+
children: options?.map(({ value, label, disabled })=>/*#__PURE__*/ jsx(SelectItem, {
|
|
477
|
+
value: value.toString(),
|
|
478
|
+
disabled: disabled,
|
|
479
|
+
children: /*#__PURE__*/ jsx(Typography, {
|
|
480
|
+
align: "center",
|
|
481
|
+
transform: "capitalize",
|
|
482
|
+
children: label
|
|
483
|
+
})
|
|
484
|
+
}, value))
|
|
485
|
+
})
|
|
486
|
+
]
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
var dropdownNav = 'dropdownNav__14q7je26';
|
|
490
|
+
var dropdowns = 'dropdowns__14q7je25';
|
|
491
|
+
var styles_css_month = 'month__14q7je23';
|
|
492
|
+
var monthButton = 'monthButton__14q7je21';
|
|
493
|
+
var monthCaption = 'monthCaption__14q7je24';
|
|
494
|
+
var months = 'months__14q7je22';
|
|
495
|
+
var nav = 'nav__14q7je20';
|
|
496
|
+
const Calendar = ({ className, classNames, showOutsideDays = true, ...props })=>/*#__PURE__*/ jsx(DayPicker, {
|
|
497
|
+
locale: ru,
|
|
498
|
+
showOutsideDays: showOutsideDays,
|
|
499
|
+
classNames: {
|
|
500
|
+
month: styles_css_month,
|
|
501
|
+
months: months,
|
|
502
|
+
nav: nav,
|
|
503
|
+
month_caption: monthCaption,
|
|
504
|
+
dropdown: dropdownNav,
|
|
505
|
+
dropdowns: dropdowns
|
|
506
|
+
},
|
|
507
|
+
components: {
|
|
508
|
+
DayButton: DayButton,
|
|
509
|
+
Dropdown: Dropdown,
|
|
510
|
+
PreviousMonthButton: ({ className, color, ...props })=>/*#__PURE__*/ jsx(Button, {
|
|
511
|
+
className: clsx_0(monthButton, className),
|
|
512
|
+
variant: "ghost",
|
|
513
|
+
...props
|
|
514
|
+
}),
|
|
515
|
+
NextMonthButton: ({ className, color, ...props })=>/*#__PURE__*/ jsx(Button, {
|
|
516
|
+
className: clsx_0(monthButton, className),
|
|
517
|
+
variant: "ghost",
|
|
518
|
+
...props
|
|
519
|
+
}),
|
|
520
|
+
CaptionLabel: ({ className, color, ...props })=>/*#__PURE__*/ jsx(Typography, {
|
|
521
|
+
transform: "capitalize",
|
|
522
|
+
className: className,
|
|
523
|
+
...props
|
|
524
|
+
})
|
|
525
|
+
},
|
|
526
|
+
...props
|
|
527
|
+
});
|
|
528
|
+
var theme = {
|
|
529
|
+
colors: {
|
|
530
|
+
primary: 'var(--colors-primary)',
|
|
531
|
+
secondary: 'var(--colors-secondary)',
|
|
532
|
+
warning: 'var(--colors-warning)',
|
|
533
|
+
error: 'var(--colors-error)',
|
|
534
|
+
success: 'var(--colors-success)',
|
|
535
|
+
border: 'var(--colors-border)',
|
|
536
|
+
info: 'var(--colors-info)',
|
|
537
|
+
background: {
|
|
538
|
+
tooltip: 'var(--colors-background-tooltip)',
|
|
539
|
+
paper: 'var(--colors-background-paper)',
|
|
540
|
+
element: 'var(--colors-background-element)',
|
|
541
|
+
elementHover: 'var(--colors-background-elementHover)',
|
|
542
|
+
sidebar: 'var(--colors-background-sidebar)'
|
|
543
|
+
},
|
|
544
|
+
foreground: {
|
|
545
|
+
primary: 'var(--colors-foreground-primary)',
|
|
546
|
+
secondary: 'var(--colors-foreground-secondary)'
|
|
547
|
+
},
|
|
548
|
+
text: {
|
|
549
|
+
primary: 'var(--colors-text-primary)',
|
|
550
|
+
secondary: 'var(--colors-text-secondary)',
|
|
551
|
+
disabled: 'var(--colors-text-disabled)',
|
|
552
|
+
hint: 'var(--colors-text-hint)'
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
spacing: {
|
|
556
|
+
1: 'var(--spacing-1)',
|
|
557
|
+
2: 'var(--spacing-2)',
|
|
558
|
+
3: 'var(--spacing-3)',
|
|
559
|
+
4: 'var(--spacing-4)',
|
|
560
|
+
5: 'var(--spacing-5)',
|
|
561
|
+
6: 'var(--spacing-6)',
|
|
562
|
+
8: 'var(--spacing-8)',
|
|
563
|
+
10: 'var(--spacing-10)',
|
|
564
|
+
12: 'var(--spacing-12)',
|
|
565
|
+
16: 'var(--spacing-16)',
|
|
566
|
+
20: 'var(--spacing-20)'
|
|
567
|
+
},
|
|
568
|
+
elevation: {
|
|
569
|
+
1: 'var(--elevation-1)',
|
|
570
|
+
2: 'var(--elevation-2)',
|
|
571
|
+
3: 'var(--elevation-3)',
|
|
572
|
+
4: 'var(--elevation-4)',
|
|
573
|
+
6: 'var(--elevation-5)'
|
|
574
|
+
},
|
|
575
|
+
fontSize: {
|
|
576
|
+
xs: 'var(--fontSize-xs)',
|
|
577
|
+
sm: 'var(--fontSize-sm)',
|
|
578
|
+
base: 'var(--fontSize-base)',
|
|
579
|
+
lg: 'var(--fontSize-lg)',
|
|
580
|
+
xl: 'var(--fontSize-xl)',
|
|
581
|
+
'2xl': 'var(--fontSize-2xl)',
|
|
582
|
+
'3xl': 'var(--fontSize-3xl)',
|
|
583
|
+
'4xl': 'var(--fontSize-4xl)'
|
|
584
|
+
},
|
|
585
|
+
fontWeight: {
|
|
586
|
+
normal: 'var(--fontWeight-normal)',
|
|
587
|
+
medium: 'var(--fontWeight-medium)',
|
|
588
|
+
semibold: 'var(--fontWeight-semibold)',
|
|
589
|
+
bold: 'var(--fontWeight-bold)'
|
|
590
|
+
},
|
|
591
|
+
lineHeight: {
|
|
592
|
+
none: 'var(--lineHeight-none)',
|
|
593
|
+
tight: 'var(--lineHeight-tight)',
|
|
594
|
+
snug: 'var(--lineHeight-snug)',
|
|
595
|
+
normal: 'var(--lineHeight-normal)',
|
|
596
|
+
relaxed: 'var(--lineHeight-relaxed)',
|
|
597
|
+
loose: 'var(--lineHeight-loose)'
|
|
598
|
+
},
|
|
599
|
+
borderRadius: {
|
|
600
|
+
sm: 'var(--borderRadius-sm)',
|
|
601
|
+
md: 'var(--borderRadius-md)',
|
|
602
|
+
lg: 'var(--borderRadius-lg)'
|
|
603
|
+
}
|
|
604
|
+
};
|
|
605
|
+
var card = 'style__oyalw00';
|
|
606
|
+
var cardContent = 'style__oyalw04';
|
|
607
|
+
var cardDescription = 'style__oyalw03';
|
|
608
|
+
var cardFooter = 'style__oyalw05';
|
|
609
|
+
var cardHeader = 'style__oyalw01';
|
|
610
|
+
var cardTitle = 'style__oyalw02';
|
|
611
|
+
const Card = ({ className, elevation = 2, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
612
|
+
style: {
|
|
613
|
+
boxShadow: theme.elevation[elevation]
|
|
614
|
+
},
|
|
615
|
+
className: clsx(card, className),
|
|
616
|
+
...props
|
|
617
|
+
});
|
|
618
|
+
const CardHeader = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
619
|
+
className: clsx(cardHeader, className),
|
|
620
|
+
...props
|
|
621
|
+
});
|
|
622
|
+
const CardTitle = ({ className, ...props })=>/*#__PURE__*/ jsx("h3", {
|
|
623
|
+
className: clsx(cardTitle, className),
|
|
624
|
+
...props
|
|
625
|
+
});
|
|
626
|
+
const CardDescription = ({ className, ...props })=>/*#__PURE__*/ jsx("p", {
|
|
627
|
+
className: clsx(cardDescription, className),
|
|
628
|
+
...props
|
|
629
|
+
});
|
|
630
|
+
const CardContent = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
631
|
+
className: clsx(cardContent, className),
|
|
632
|
+
...props
|
|
633
|
+
});
|
|
634
|
+
const CardFooter = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
635
|
+
className: clsx(cardFooter, className),
|
|
636
|
+
...props
|
|
637
|
+
});
|
|
638
|
+
const CarouselContext = react.createContext(null);
|
|
639
|
+
function useCarousel() {
|
|
640
|
+
const context = react.useContext(CarouselContext);
|
|
641
|
+
if (!context) throw new Error('useCarousel must be used within a <Carousel />');
|
|
642
|
+
return context;
|
|
643
|
+
}
|
|
644
|
+
var next = 'style__2d6ocq1 style__2d6ocq0';
|
|
645
|
+
var orientations = {
|
|
646
|
+
horizontal: 'horizontal__2d6ocq3',
|
|
647
|
+
vertical: 'vertical__2d6ocq4'
|
|
648
|
+
};
|
|
649
|
+
var prev = 'style__2d6ocq2 style__2d6ocq0';
|
|
650
|
+
function Buttons({ className, ...props }) {
|
|
651
|
+
const { orientation = 'horizontal', canScrollNext, scrollNext, canScrollPrev, scrollPrev } = useCarousel();
|
|
652
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
653
|
+
children: [
|
|
654
|
+
/*#__PURE__*/ jsx("button", {
|
|
655
|
+
className: clsx(next, orientations[orientation]),
|
|
656
|
+
type: "button",
|
|
657
|
+
"data-slot": "carousel-next",
|
|
658
|
+
disabled: !canScrollNext,
|
|
659
|
+
onClick: scrollNext,
|
|
660
|
+
...props,
|
|
661
|
+
children: 'horizontal' === orientation ? /*#__PURE__*/ jsx(ChevronRight, {}) : /*#__PURE__*/ jsx(ChevronDown, {})
|
|
662
|
+
}),
|
|
663
|
+
/*#__PURE__*/ jsx("button", {
|
|
664
|
+
type: "button",
|
|
665
|
+
className: clsx(prev, orientations[orientation]),
|
|
666
|
+
"data-slot": "carousel-previous",
|
|
667
|
+
disabled: !canScrollPrev,
|
|
668
|
+
onClick: scrollPrev,
|
|
669
|
+
...props,
|
|
670
|
+
children: 'horizontal' === orientation ? /*#__PURE__*/ jsx(ChevronLeft, {}) : /*#__PURE__*/ jsx(ChevronUp, {})
|
|
671
|
+
})
|
|
672
|
+
]
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
var styles_css_orientations = {
|
|
676
|
+
horizontal: 'horizontal__i1lems1',
|
|
677
|
+
vertical: 'vertical__i1lems2'
|
|
678
|
+
};
|
|
679
|
+
var wrapper = 'style__i1lems0';
|
|
680
|
+
function Content_Content_Content(props) {
|
|
681
|
+
const { carouselRef, orientation = 'horizontal' } = useCarousel();
|
|
682
|
+
return /*#__PURE__*/ jsx("div", {
|
|
683
|
+
className: wrapper,
|
|
684
|
+
ref: carouselRef,
|
|
685
|
+
"data-slot": "carousel-content",
|
|
686
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
687
|
+
className: styles_css_orientations[orientation],
|
|
688
|
+
...props
|
|
689
|
+
})
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
var dotButton = {
|
|
693
|
+
horizontal: 'horizontal__e2zpp64 style__e2zpp63',
|
|
694
|
+
vertical: 'vertical__e2zpp65 style__e2zpp63'
|
|
695
|
+
};
|
|
696
|
+
var styles_css_selected = 'style__e2zpp66';
|
|
697
|
+
var styles_css_wrapper = {
|
|
698
|
+
horizontal: 'horizontal__e2zpp61 style__e2zpp60',
|
|
699
|
+
vertical: 'vertical__e2zpp62 style__e2zpp60'
|
|
700
|
+
};
|
|
701
|
+
const useLogic = (api)=>{
|
|
702
|
+
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
703
|
+
const [scrollSnaps, setScrollSnaps] = useState([]);
|
|
704
|
+
const onDotButtonClick = useCallback((index)=>{
|
|
705
|
+
if (!api) return;
|
|
706
|
+
api.scrollTo(index);
|
|
707
|
+
}, [
|
|
708
|
+
api
|
|
709
|
+
]);
|
|
710
|
+
const onInit = useCallback((api)=>{
|
|
711
|
+
if (!api) return;
|
|
712
|
+
setScrollSnaps(api.scrollSnapList());
|
|
713
|
+
}, []);
|
|
714
|
+
const onSelect = useCallback((api)=>{
|
|
715
|
+
if (!api) return;
|
|
716
|
+
setSelectedIndex(api.selectedScrollSnap());
|
|
717
|
+
}, []);
|
|
718
|
+
useEffect(()=>{
|
|
719
|
+
if (!api) return;
|
|
720
|
+
onInit(api);
|
|
721
|
+
onSelect(api);
|
|
722
|
+
api.on('reInit', onInit).on('reInit', onSelect).on('select', onSelect);
|
|
723
|
+
}, [
|
|
724
|
+
api,
|
|
725
|
+
onInit,
|
|
726
|
+
onSelect
|
|
727
|
+
]);
|
|
728
|
+
return {
|
|
729
|
+
selectedIndex,
|
|
730
|
+
scrollSnaps,
|
|
731
|
+
onDotButtonClick
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
const Dots = ({ api, orientation })=>{
|
|
735
|
+
const { selectedIndex, scrollSnaps, onDotButtonClick } = useLogic(api);
|
|
736
|
+
return /*#__PURE__*/ jsx("div", {
|
|
737
|
+
className: styles_css_wrapper[orientation],
|
|
738
|
+
children: scrollSnaps.map((number, index)=>/*#__PURE__*/ jsx("button", {
|
|
739
|
+
type: "button",
|
|
740
|
+
className: clsx(dotButton[orientation], {
|
|
741
|
+
[styles_css_selected]: index === selectedIndex
|
|
742
|
+
}),
|
|
743
|
+
onClick: ()=>onDotButtonClick(index)
|
|
744
|
+
}, number))
|
|
745
|
+
});
|
|
746
|
+
};
|
|
747
|
+
var Item_styles_css_item = 'style__1gif6yr0';
|
|
748
|
+
function Item_Item(props) {
|
|
749
|
+
return /*#__PURE__*/ jsx("div", {
|
|
750
|
+
className: Item_styles_css_item,
|
|
751
|
+
role: "presentation",
|
|
752
|
+
"aria-roledescription": "slide",
|
|
753
|
+
"data-slot": "carousel-item",
|
|
754
|
+
...props
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
var styles_css_rootClass = 'Carousel__1jbydv50';
|
|
758
|
+
const useLogic_useLogic = ({ orientation = 'horizontal', opts, setApi, plugins, data, showDots, showArrows })=>{
|
|
759
|
+
const [carouselRef, api] = embla_carousel_react({
|
|
760
|
+
...opts,
|
|
761
|
+
axis: 'horizontal' === orientation ? 'x' : 'y'
|
|
762
|
+
}, plugins);
|
|
763
|
+
const [canScrollPrev, setCanScrollPrev] = useState(false);
|
|
764
|
+
const [canScrollNext, setCanScrollNext] = useState(false);
|
|
765
|
+
const isShowButtons = Boolean(showArrows && data.length > 1);
|
|
766
|
+
const isShowDots = Boolean(showDots && data.length > 1);
|
|
767
|
+
const onSelect = useCallback((api)=>{
|
|
768
|
+
if (!api) return;
|
|
769
|
+
setCanScrollPrev(api.canScrollPrev());
|
|
770
|
+
setCanScrollNext(api.canScrollNext());
|
|
771
|
+
}, []);
|
|
772
|
+
const onDotButtonClick = useCallback((index)=>{
|
|
773
|
+
if (!api) return;
|
|
774
|
+
api.scrollTo(index);
|
|
775
|
+
}, [
|
|
776
|
+
api
|
|
777
|
+
]);
|
|
778
|
+
const scrollPrev = useCallback(()=>{
|
|
779
|
+
api?.scrollPrev();
|
|
780
|
+
}, [
|
|
781
|
+
api
|
|
782
|
+
]);
|
|
783
|
+
const scrollNext = useCallback(()=>{
|
|
784
|
+
api?.scrollNext();
|
|
785
|
+
}, [
|
|
786
|
+
api
|
|
787
|
+
]);
|
|
788
|
+
const handleKeyDown = useCallback((event)=>{
|
|
789
|
+
if ('ArrowLeft' === event.key) {
|
|
790
|
+
event.preventDefault();
|
|
791
|
+
scrollPrev();
|
|
792
|
+
} else if ('ArrowRight' === event.key) {
|
|
793
|
+
event.preventDefault();
|
|
794
|
+
scrollNext();
|
|
795
|
+
}
|
|
796
|
+
}, [
|
|
797
|
+
scrollPrev,
|
|
798
|
+
scrollNext
|
|
799
|
+
]);
|
|
800
|
+
useEffect(()=>{
|
|
801
|
+
if (!api || !setApi) return;
|
|
802
|
+
setApi(api);
|
|
803
|
+
}, [
|
|
804
|
+
api,
|
|
805
|
+
setApi
|
|
806
|
+
]);
|
|
807
|
+
useEffect(()=>{
|
|
808
|
+
if (!api) return;
|
|
809
|
+
onSelect(api);
|
|
810
|
+
api.on('reInit', onSelect);
|
|
811
|
+
api.on('select', onSelect);
|
|
812
|
+
return ()=>{
|
|
813
|
+
api?.off('select', onSelect);
|
|
814
|
+
};
|
|
815
|
+
}, [
|
|
816
|
+
api,
|
|
817
|
+
onSelect
|
|
818
|
+
]);
|
|
819
|
+
return {
|
|
820
|
+
carouselRef,
|
|
821
|
+
api,
|
|
822
|
+
scrollPrev,
|
|
823
|
+
scrollNext,
|
|
824
|
+
canScrollPrev,
|
|
825
|
+
canScrollNext,
|
|
826
|
+
handleKeyDown,
|
|
827
|
+
opts,
|
|
828
|
+
orientation,
|
|
829
|
+
onDotButtonClick,
|
|
830
|
+
isShowButtons,
|
|
831
|
+
isShowDots,
|
|
832
|
+
data
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
function Carousel({ width = '100%', height = '100%', ...props }) {
|
|
836
|
+
const { canScrollNext, canScrollPrev, scrollNext, scrollPrev, api, opts, orientation, carouselRef, handleKeyDown, data, isShowButtons, isShowDots } = useLogic_useLogic(props);
|
|
837
|
+
return /*#__PURE__*/ jsx(CarouselContext.Provider, {
|
|
838
|
+
value: {
|
|
839
|
+
carouselRef,
|
|
840
|
+
api,
|
|
841
|
+
opts,
|
|
842
|
+
orientation: orientation || (opts?.axis === 'y' ? 'vertical' : 'horizontal'),
|
|
843
|
+
scrollPrev,
|
|
844
|
+
scrollNext,
|
|
845
|
+
canScrollPrev,
|
|
846
|
+
canScrollNext
|
|
847
|
+
},
|
|
848
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
849
|
+
onKeyDownCapture: handleKeyDown,
|
|
850
|
+
className: clsx(styles_css_rootClass, props.className),
|
|
851
|
+
"data-slot": "carousel",
|
|
852
|
+
style: {
|
|
853
|
+
width,
|
|
854
|
+
height
|
|
855
|
+
},
|
|
856
|
+
children: [
|
|
857
|
+
/*#__PURE__*/ jsx(Content_Content_Content, {
|
|
858
|
+
style: {
|
|
859
|
+
width,
|
|
860
|
+
height
|
|
861
|
+
},
|
|
862
|
+
children: data.map((item)=>/*#__PURE__*/ jsx(Item_Item, {
|
|
863
|
+
children: props.renderItem(item)
|
|
864
|
+
}, `${item[props.keyId]}`))
|
|
865
|
+
}),
|
|
866
|
+
isShowButtons && /*#__PURE__*/ jsx(Buttons, {}),
|
|
867
|
+
isShowDots && /*#__PURE__*/ jsx(Dots, {
|
|
868
|
+
api: api,
|
|
869
|
+
orientation: orientation
|
|
870
|
+
})
|
|
871
|
+
]
|
|
872
|
+
})
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
var checkbox_css_icon = 'style__b7yo4k2';
|
|
876
|
+
var indicator = 'style__b7yo4k1';
|
|
877
|
+
var checkbox_css_root = 'style__b7yo4k0';
|
|
878
|
+
const Checkbox_Checkbox = ({ className, ...props })=>/*#__PURE__*/ jsx(Checkbox.Root, {
|
|
879
|
+
"data-slot": "checkbox",
|
|
880
|
+
className: clsx(checkbox_css_root, className),
|
|
881
|
+
...props,
|
|
882
|
+
children: /*#__PURE__*/ jsx(Checkbox.Indicator, {
|
|
883
|
+
className: indicator,
|
|
884
|
+
children: /*#__PURE__*/ jsx(Check, {
|
|
885
|
+
className: checkbox_css_icon
|
|
886
|
+
})
|
|
887
|
+
})
|
|
888
|
+
});
|
|
889
|
+
var circle = 'style__m6b9n24';
|
|
890
|
+
var styles_css_colors = {
|
|
891
|
+
primary: 'primary__m6b9n27',
|
|
892
|
+
secondary: 'secondary__m6b9n28',
|
|
893
|
+
inherit: 'inherit__m6b9n29'
|
|
894
|
+
};
|
|
895
|
+
var styles_css_root = 'style__m6b9n22';
|
|
896
|
+
var svg = 'style__m6b9n23';
|
|
897
|
+
var styles_css_variants = {
|
|
898
|
+
determinate: 'determinate__m6b9n25',
|
|
899
|
+
indeterminate: 'indeterminate__m6b9n26'
|
|
900
|
+
};
|
|
901
|
+
const CircularProgress = ({ size = 30, thickness = 2.6, color = 'primary', value = 0, variant = 'indeterminate', className })=>{
|
|
902
|
+
const radius = (size - thickness) / 2;
|
|
903
|
+
const circumference = 2 * Math.PI * radius;
|
|
904
|
+
const dashOffset = 'determinate' === variant ? circumference * (1 - value / 100) : 0.25 * circumference;
|
|
905
|
+
return /*#__PURE__*/ jsx("div", {
|
|
906
|
+
className: clsx_0(styles_css_root, styles_css_variants[variant], styles_css_colors[color], className),
|
|
907
|
+
style: {
|
|
908
|
+
width: size,
|
|
909
|
+
height: size
|
|
910
|
+
},
|
|
911
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
912
|
+
className: svg,
|
|
913
|
+
viewBox: `0 0 ${size} ${size}`,
|
|
914
|
+
children: [
|
|
915
|
+
/*#__PURE__*/ jsx("title", {
|
|
916
|
+
children: "Progress bar"
|
|
917
|
+
}),
|
|
918
|
+
/*#__PURE__*/ jsx("circle", {
|
|
919
|
+
className: clsx_0(circle, 'determinate' === variant && styles_css_variants.determinate),
|
|
920
|
+
cx: size / 2,
|
|
921
|
+
cy: size / 2,
|
|
922
|
+
r: radius,
|
|
923
|
+
fill: "none",
|
|
924
|
+
strokeWidth: thickness,
|
|
925
|
+
strokeDasharray: circumference,
|
|
926
|
+
strokeDashoffset: dashOffset
|
|
927
|
+
})
|
|
928
|
+
]
|
|
929
|
+
})
|
|
930
|
+
});
|
|
931
|
+
};
|
|
932
|
+
var Popover_styles_css_content = 'style__1xy4jvu2';
|
|
933
|
+
const PopoverContent = ({ className, align = 'center', sideOffset = 4, ...props })=>/*#__PURE__*/ jsx(react_popover_Portal, {
|
|
934
|
+
children: /*#__PURE__*/ jsx(react_popover_Content, {
|
|
935
|
+
align: align,
|
|
936
|
+
sideOffset: sideOffset,
|
|
937
|
+
className: clsx(Popover_styles_css_content, className),
|
|
938
|
+
...props
|
|
939
|
+
})
|
|
940
|
+
});
|
|
941
|
+
var actionsClass = 'style__1q1uhgp0';
|
|
942
|
+
var hasTextClass = 'style__1q1uhgp3';
|
|
943
|
+
var popoverClass = 'style__1q1uhgp2';
|
|
944
|
+
var wrapperClass = 'style__1q1uhgp1';
|
|
945
|
+
const ConfirmAction_useLogic_useLogic = ({ skipConfirm, onConfirm, confirmButtonProps: externalConfirmButtonProps })=>{
|
|
946
|
+
const [open, setOpen] = useState(false);
|
|
947
|
+
const handleConfirm = ()=>{
|
|
948
|
+
setOpen(false);
|
|
949
|
+
onConfirm();
|
|
950
|
+
};
|
|
951
|
+
const confirmButtonProps = {
|
|
952
|
+
variant: externalConfirmButtonProps?.isAccented ? 'destructive' : 'default',
|
|
953
|
+
size: 'sm',
|
|
954
|
+
onClick: handleConfirm
|
|
955
|
+
};
|
|
956
|
+
const onActionComponentClick = ()=>{
|
|
957
|
+
if (skipConfirm) onConfirm();
|
|
958
|
+
else setOpen(true);
|
|
959
|
+
};
|
|
960
|
+
const onOpenChange = (open)=>{
|
|
961
|
+
setOpen(open);
|
|
962
|
+
};
|
|
963
|
+
const onCancel = ()=>{
|
|
964
|
+
setOpen(false);
|
|
965
|
+
};
|
|
966
|
+
return {
|
|
967
|
+
open,
|
|
968
|
+
onActionComponentClick,
|
|
969
|
+
confirmButtonProps,
|
|
970
|
+
onCancel,
|
|
971
|
+
onOpenChange
|
|
972
|
+
};
|
|
973
|
+
};
|
|
974
|
+
const ConfirmAction = (props)=>{
|
|
975
|
+
const { open, onActionComponentClick, onCancel, confirmButtonProps, onOpenChange } = ConfirmAction_useLogic_useLogic(props);
|
|
976
|
+
const { text, confirmButtonProps: externalConfirmButtonProps, popoverProps: externalPopoverProps, actionComponent } = props;
|
|
977
|
+
const { text: confirmButtonText = 'Подтвердить' } = externalConfirmButtonProps || {};
|
|
978
|
+
const { side = 'bottom', align = 'center' } = externalPopoverProps || {};
|
|
979
|
+
return /*#__PURE__*/ jsxs(Popover, {
|
|
980
|
+
open: open,
|
|
981
|
+
onOpenChange: onOpenChange,
|
|
982
|
+
children: [
|
|
983
|
+
/*#__PURE__*/ jsx(PopoverTrigger, {
|
|
984
|
+
asChild: true,
|
|
985
|
+
children: actionComponent({
|
|
986
|
+
onClick: onActionComponentClick
|
|
987
|
+
})
|
|
988
|
+
}),
|
|
989
|
+
/*#__PURE__*/ jsx(PopoverContent, {
|
|
990
|
+
side: side,
|
|
991
|
+
align: align,
|
|
992
|
+
className: clsx(popoverClass, {
|
|
993
|
+
[hasTextClass]: Boolean(text)
|
|
994
|
+
}),
|
|
995
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
996
|
+
className: wrapperClass,
|
|
997
|
+
children: [
|
|
998
|
+
text && /*#__PURE__*/ jsx(Typography, {
|
|
999
|
+
children: text
|
|
1000
|
+
}),
|
|
1001
|
+
/*#__PURE__*/ jsxs("div", {
|
|
1002
|
+
className: actionsClass,
|
|
1003
|
+
children: [
|
|
1004
|
+
/*#__PURE__*/ jsx(Button, {
|
|
1005
|
+
size: "sm",
|
|
1006
|
+
variant: "ghost",
|
|
1007
|
+
onClick: onCancel,
|
|
1008
|
+
children: "Отмена"
|
|
1009
|
+
}),
|
|
1010
|
+
/*#__PURE__*/ jsx(Button, {
|
|
1011
|
+
...confirmButtonProps,
|
|
1012
|
+
children: confirmButtonText
|
|
1013
|
+
})
|
|
1014
|
+
]
|
|
1015
|
+
})
|
|
1016
|
+
]
|
|
1017
|
+
})
|
|
1018
|
+
})
|
|
1019
|
+
]
|
|
1020
|
+
});
|
|
1021
|
+
};
|
|
1022
|
+
var sizes = {
|
|
1023
|
+
sm: 'sm__1o97kvm1',
|
|
1024
|
+
md: 'md__1o97kvm2',
|
|
1025
|
+
lg: 'lg__1o97kvm3'
|
|
1026
|
+
};
|
|
1027
|
+
var Image_styles_css_wrapper = 'style__1o97kvm0';
|
|
1028
|
+
const Image = (props)=>/*#__PURE__*/ jsx("img", {
|
|
1029
|
+
alt: props.alt,
|
|
1030
|
+
src: props.src,
|
|
1031
|
+
className: clsx_0(Image_styles_css_wrapper, sizes[props.size || 'md'], props.className),
|
|
1032
|
+
width: props.width,
|
|
1033
|
+
height: props.height
|
|
1034
|
+
});
|
|
1035
|
+
const SIZE = {
|
|
1036
|
+
sm: 'sm',
|
|
1037
|
+
md: 'md',
|
|
1038
|
+
lg: 'lg'
|
|
1039
|
+
};
|
|
1040
|
+
const IMAGE_WIDTH = {
|
|
1041
|
+
[SIZE.sm]: '239px',
|
|
1042
|
+
[SIZE.md]: '323px',
|
|
1043
|
+
[SIZE.lg]: '458px'
|
|
1044
|
+
};
|
|
1045
|
+
const IMAGE_HEIGHT = {
|
|
1046
|
+
[SIZE.sm]: '119px',
|
|
1047
|
+
[SIZE.md]: '161px',
|
|
1048
|
+
[SIZE.lg]: '229px'
|
|
1049
|
+
};
|
|
1050
|
+
const MAX_INNER_WIDTH = {
|
|
1051
|
+
[SIZE.sm]: '384px',
|
|
1052
|
+
[SIZE.md]: '400px',
|
|
1053
|
+
[SIZE.lg]: '460px'
|
|
1054
|
+
};
|
|
1055
|
+
const TITLE_HEADER_LEVEL = {
|
|
1056
|
+
[SIZE.sm]: 'subtitle1',
|
|
1057
|
+
[SIZE.md]: 'h6',
|
|
1058
|
+
[SIZE.lg]: 'h5'
|
|
1059
|
+
};
|
|
1060
|
+
var descriptionClass = 'style__1nenzg05';
|
|
1061
|
+
var footerClass = 'style__1nenzg06';
|
|
1062
|
+
var innerContainer = 'style__1nenzg04';
|
|
1063
|
+
var styles_css_sizes = {
|
|
1064
|
+
sm: 'sm__1nenzg01',
|
|
1065
|
+
md: 'md__1nenzg02',
|
|
1066
|
+
lg: 'lg__1nenzg03'
|
|
1067
|
+
};
|
|
1068
|
+
var Placeholder_styles_css_wrapper = 'style__1nenzg00';
|
|
1069
|
+
const Placeholder = ({ className, title, imgSrc, imgAlt, description, actions, size = 'sm', renderImage })=>{
|
|
1070
|
+
const RenderImage = useMemo(()=>renderImage || Image, [
|
|
1071
|
+
renderImage
|
|
1072
|
+
]);
|
|
1073
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
1074
|
+
className: clsx_0(Placeholder_styles_css_wrapper, styles_css_sizes[size], className),
|
|
1075
|
+
children: [
|
|
1076
|
+
/*#__PURE__*/ jsxs("div", {
|
|
1077
|
+
className: innerContainer,
|
|
1078
|
+
style: {
|
|
1079
|
+
maxWidth: MAX_INNER_WIDTH[size]
|
|
1080
|
+
},
|
|
1081
|
+
children: [
|
|
1082
|
+
imgSrc && /*#__PURE__*/ jsx(RenderImage, {
|
|
1083
|
+
src: imgSrc,
|
|
1084
|
+
alt: imgAlt,
|
|
1085
|
+
width: IMAGE_WIDTH[size],
|
|
1086
|
+
height: IMAGE_HEIGHT[size],
|
|
1087
|
+
size: size
|
|
1088
|
+
}),
|
|
1089
|
+
/*#__PURE__*/ jsx(Typography, {
|
|
1090
|
+
align: "center",
|
|
1091
|
+
color: "secondary",
|
|
1092
|
+
variant: TITLE_HEADER_LEVEL[size],
|
|
1093
|
+
children: title
|
|
1094
|
+
}),
|
|
1095
|
+
description && /*#__PURE__*/ jsx(Typography, {
|
|
1096
|
+
className: descriptionClass,
|
|
1097
|
+
component: "div",
|
|
1098
|
+
variant: "body1",
|
|
1099
|
+
children: description
|
|
1100
|
+
})
|
|
1101
|
+
]
|
|
1102
|
+
}),
|
|
1103
|
+
actions && /*#__PURE__*/ jsx("footer", {
|
|
1104
|
+
className: footerClass,
|
|
1105
|
+
children: actions
|
|
1106
|
+
})
|
|
1107
|
+
]
|
|
1108
|
+
});
|
|
1109
|
+
};
|
|
1110
|
+
var loadingContainer = 'style__nan0ao0';
|
|
1111
|
+
const ContentState = ({ isLoading, isError, isCustom, errorState, customState, children, loadingContent: LoadingContent = /*#__PURE__*/ jsx(CircularProgress, {
|
|
1112
|
+
color: "primary"
|
|
1113
|
+
}) })=>{
|
|
1114
|
+
if (isLoading) return /*#__PURE__*/ jsx("div", {
|
|
1115
|
+
className: loadingContainer,
|
|
1116
|
+
children: LoadingContent
|
|
1117
|
+
});
|
|
1118
|
+
if (isCustom && customState) return /*#__PURE__*/ jsx(Placeholder, {
|
|
1119
|
+
...customState
|
|
1120
|
+
});
|
|
1121
|
+
if (isError && errorState) {
|
|
1122
|
+
const { title = 'Произошла ошибка', imgAlt, imgSrc, errorList, onRetry, actions = /*#__PURE__*/ jsx(Button, {
|
|
1123
|
+
onClick: onRetry,
|
|
1124
|
+
children: "Попробовать снова"
|
|
1125
|
+
}) } = errorState;
|
|
1126
|
+
const description = errorList.map((errorMessage)=>/*#__PURE__*/ jsx(Typography, {
|
|
1127
|
+
component: "p",
|
|
1128
|
+
children: errorMessage
|
|
1129
|
+
}, errorMessage));
|
|
1130
|
+
return /*#__PURE__*/ jsx(Placeholder, {
|
|
1131
|
+
title: title,
|
|
1132
|
+
description: description,
|
|
1133
|
+
imgAlt: imgAlt,
|
|
1134
|
+
imgSrc: imgSrc,
|
|
1135
|
+
actions: actions
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
return children;
|
|
1139
|
+
};
|
|
1140
|
+
var copyIconClass = 'style__1wpx85c1';
|
|
1141
|
+
var CopyTypography_styles_css_wrapper = 'style__1wpx85c0';
|
|
1142
|
+
const useLogic_useLogic_useLogic = ({ children, copyText, isShowCopyText, copyPosition })=>{
|
|
1143
|
+
const [status, setStatus] = useState("Скопировать");
|
|
1144
|
+
const [tooltipOpen, setTooltipOpen] = useState(false);
|
|
1145
|
+
const handleMouseEnter = ()=>{
|
|
1146
|
+
setTooltipOpen(true);
|
|
1147
|
+
};
|
|
1148
|
+
const handleMouseLeave = ()=>{
|
|
1149
|
+
if ("Скопировать" !== status) setTimeout(()=>{
|
|
1150
|
+
setStatus("Скопировать");
|
|
1151
|
+
}, 100);
|
|
1152
|
+
setTooltipOpen(false);
|
|
1153
|
+
};
|
|
1154
|
+
const handleClick = (event)=>{
|
|
1155
|
+
event.stopPropagation();
|
|
1156
|
+
navigator.clipboard.writeText(copyText || ('string' == typeof children ? children : '')).then(()=>setStatus("Скопировано")).catch(()=>setStatus("Ошибка копирования"));
|
|
1157
|
+
};
|
|
1158
|
+
const tooltipTitle = isShowCopyText ? `${status}: ${copyText}` : status;
|
|
1159
|
+
const isIconOnLeft = 'left' === copyPosition;
|
|
1160
|
+
return {
|
|
1161
|
+
handleMouseLeave,
|
|
1162
|
+
handleClick,
|
|
1163
|
+
tooltipTitle,
|
|
1164
|
+
isIconOnLeft,
|
|
1165
|
+
tooltipOpen,
|
|
1166
|
+
handleMouseEnter
|
|
1167
|
+
};
|
|
1168
|
+
};
|
|
1169
|
+
const CopyTypography = (props)=>{
|
|
1170
|
+
const { children, copyPosition = 'right', copyText, isShowCopyText, color, className, ...restProps } = props;
|
|
1171
|
+
const renderIcon = ()=>/*#__PURE__*/ jsx(Copy, {
|
|
1172
|
+
className: copyIconClass
|
|
1173
|
+
});
|
|
1174
|
+
const { tooltipOpen, handleMouseEnter, handleMouseLeave, handleClick, tooltipTitle, isIconOnLeft } = useLogic_useLogic_useLogic(props);
|
|
1175
|
+
return /*#__PURE__*/ jsx(Tooltip, {
|
|
1176
|
+
open: tooltipOpen,
|
|
1177
|
+
arrow: true,
|
|
1178
|
+
text: tooltipTitle,
|
|
1179
|
+
side: "bottom",
|
|
1180
|
+
children: /*#__PURE__*/ jsxs(Typography, {
|
|
1181
|
+
onMouseLeave: handleMouseLeave,
|
|
1182
|
+
onMouseEnter: handleMouseEnter,
|
|
1183
|
+
onClick: handleClick,
|
|
1184
|
+
component: "div",
|
|
1185
|
+
color: color,
|
|
1186
|
+
className: clsx(CopyTypography_styles_css_wrapper, className),
|
|
1187
|
+
...restProps,
|
|
1188
|
+
children: [
|
|
1189
|
+
isIconOnLeft && renderIcon(),
|
|
1190
|
+
children,
|
|
1191
|
+
!isIconOnLeft && renderIcon()
|
|
1192
|
+
]
|
|
1193
|
+
})
|
|
1194
|
+
});
|
|
1195
|
+
};
|
|
1196
|
+
const DashboardContext = createContext({
|
|
1197
|
+
pinned: true,
|
|
1198
|
+
hovered: false,
|
|
1199
|
+
togglePinned: ()=>{}
|
|
1200
|
+
});
|
|
1201
|
+
const useDashboard = ()=>useContext(DashboardContext);
|
|
1202
|
+
const LOCAL_STORAGE_KEY = 'dashboard::pinned';
|
|
1203
|
+
const hooks_useLogic_useLogic = ()=>{
|
|
1204
|
+
const [pinned, setPinned] = useState('true' === window.localStorage.getItem(LOCAL_STORAGE_KEY));
|
|
1205
|
+
const togglePinned = ()=>{
|
|
1206
|
+
setPinned(!pinned);
|
|
1207
|
+
window.localStorage.setItem(LOCAL_STORAGE_KEY, String(!pinned));
|
|
1208
|
+
};
|
|
1209
|
+
return {
|
|
1210
|
+
pinned,
|
|
1211
|
+
togglePinned
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
var Main_styles_css_rootClass = 'style__whkxou0';
|
|
1215
|
+
const Main = ({ children, className })=>/*#__PURE__*/ jsx("main", {
|
|
1216
|
+
className: clsx(Main_styles_css_rootClass, className),
|
|
1217
|
+
children: children
|
|
1218
|
+
});
|
|
1219
|
+
var styles_css_contentClass = 'SidebarContent__1low90p6';
|
|
1220
|
+
var styles_css_footerClass = 'SidebarFooter__1low90p5';
|
|
1221
|
+
var headerClass = 'SidebarHeader__1low90p4';
|
|
1222
|
+
var Sidebar_styles_css_rootClass = 'SidebarContainer__1low90p2';
|
|
1223
|
+
var triggerClass = 'SidebarTrigger__1low90p1';
|
|
1224
|
+
var unpinnedClass = 'style__1low90p3';
|
|
1225
|
+
var styles_css_wrapperClass = 'style__1low90p0';
|
|
1226
|
+
const Sidebar = ({ width = "16rem", header, footer, content, className })=>{
|
|
1227
|
+
const { pinned } = useDashboard();
|
|
1228
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
1229
|
+
style: {
|
|
1230
|
+
width: pinned ? width : 0
|
|
1231
|
+
},
|
|
1232
|
+
className: styles_css_wrapperClass,
|
|
1233
|
+
children: [
|
|
1234
|
+
/*#__PURE__*/ jsx("span", {
|
|
1235
|
+
className: triggerClass
|
|
1236
|
+
}),
|
|
1237
|
+
/*#__PURE__*/ jsxs("aside", {
|
|
1238
|
+
style: {
|
|
1239
|
+
width
|
|
1240
|
+
},
|
|
1241
|
+
className: clsx(Sidebar_styles_css_rootClass, {
|
|
1242
|
+
[unpinnedClass]: !pinned
|
|
1243
|
+
}, className),
|
|
1244
|
+
children: [
|
|
1245
|
+
header && /*#__PURE__*/ jsx("header", {
|
|
1246
|
+
className: headerClass,
|
|
1247
|
+
children: header
|
|
1248
|
+
}),
|
|
1249
|
+
/*#__PURE__*/ jsx("div", {
|
|
1250
|
+
className: styles_css_contentClass,
|
|
1251
|
+
children: content
|
|
1252
|
+
}),
|
|
1253
|
+
footer && /*#__PURE__*/ jsx("footer", {
|
|
1254
|
+
className: styles_css_footerClass,
|
|
1255
|
+
children: footer
|
|
1256
|
+
})
|
|
1257
|
+
]
|
|
1258
|
+
})
|
|
1259
|
+
]
|
|
1260
|
+
});
|
|
1261
|
+
};
|
|
1262
|
+
var styles_css_containerClass = 'DashboardLayout__113u7x50';
|
|
1263
|
+
const DashboardLayout = ({ children, className })=>{
|
|
1264
|
+
const { pinned, togglePinned } = hooks_useLogic_useLogic();
|
|
1265
|
+
return /*#__PURE__*/ jsx(DashboardContext.Provider, {
|
|
1266
|
+
value: {
|
|
1267
|
+
pinned,
|
|
1268
|
+
togglePinned
|
|
1269
|
+
},
|
|
1270
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
1271
|
+
className: clsx(styles_css_containerClass, className),
|
|
1272
|
+
children: children
|
|
1273
|
+
})
|
|
1274
|
+
});
|
|
1275
|
+
};
|
|
1276
|
+
DashboardLayout.Sidebar = Sidebar;
|
|
1277
|
+
DashboardLayout.Main = Main;
|
|
1278
|
+
var cellClass = 'style__1047swj0';
|
|
1279
|
+
var disabledClass = 'style__1047swj1';
|
|
1280
|
+
function Cell({ row, column, rowIndex, height }) {
|
|
1281
|
+
const { align, cellColor, isDisabled } = column;
|
|
1282
|
+
const Content = ()=>{
|
|
1283
|
+
if (column.renderCell) return column.renderCell(row, rowIndex);
|
|
1284
|
+
if (column.format) return column.format(row) || '—';
|
|
1285
|
+
if (column.field) return `${row[column.field] || '—'}`;
|
|
1286
|
+
return '—';
|
|
1287
|
+
};
|
|
1288
|
+
return /*#__PURE__*/ jsx("td", {
|
|
1289
|
+
align: align ?? 'left',
|
|
1290
|
+
style: {
|
|
1291
|
+
backgroundColor: cellColor?.(row),
|
|
1292
|
+
height,
|
|
1293
|
+
width: column.width
|
|
1294
|
+
},
|
|
1295
|
+
className: clsx(cellClass, {
|
|
1296
|
+
[disabledClass]: isDisabled
|
|
1297
|
+
}, column.cellClassName?.(row)),
|
|
1298
|
+
children: /*#__PURE__*/ jsx(Content, {})
|
|
1299
|
+
});
|
|
1300
|
+
}
|
|
1301
|
+
var rowClass = 'style__gsm9mv0';
|
|
1302
|
+
var selectableClass = 'style__gsm9mv1';
|
|
1303
|
+
function Row({ row, rowHeight, onRowClick, columns, rowIndex, rowId }) {
|
|
1304
|
+
const handleSelect = useCallback(()=>{
|
|
1305
|
+
onRowClick?.(row);
|
|
1306
|
+
}, [
|
|
1307
|
+
onRowClick,
|
|
1308
|
+
row
|
|
1309
|
+
]);
|
|
1310
|
+
return /*#__PURE__*/ jsx("tr", {
|
|
1311
|
+
onClick: handleSelect,
|
|
1312
|
+
onKeyDown: handleSelect,
|
|
1313
|
+
className: clsx(rowClass, {
|
|
1314
|
+
[selectableClass]: Boolean(onRowClick)
|
|
1315
|
+
}),
|
|
1316
|
+
children: columns.map((column, index)=>{
|
|
1317
|
+
const cellId = `${rowId}-${index}`;
|
|
1318
|
+
return /*#__PURE__*/ jsx(Cell, {
|
|
1319
|
+
row: row,
|
|
1320
|
+
rowIndex: rowIndex,
|
|
1321
|
+
column: column,
|
|
1322
|
+
height: rowHeight
|
|
1323
|
+
}, cellId);
|
|
1324
|
+
})
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
var container = 'style__15m2ib80';
|
|
1328
|
+
var loader = 'style__15m2ib81';
|
|
1329
|
+
function State({ isLoading, isEmpty, columnsLength, emptyState = {
|
|
1330
|
+
text: 'Нет данных'
|
|
1331
|
+
}, errorState = {
|
|
1332
|
+
text: 'Произошла ошибка'
|
|
1333
|
+
}, isError, onRetry }) {
|
|
1334
|
+
const Container = ({ children })=>/*#__PURE__*/ jsx("tr", {
|
|
1335
|
+
className: container,
|
|
1336
|
+
children: /*#__PURE__*/ jsx("td", {
|
|
1337
|
+
colSpan: columnsLength,
|
|
1338
|
+
align: "center",
|
|
1339
|
+
children: children
|
|
1340
|
+
})
|
|
1341
|
+
});
|
|
1342
|
+
if (isLoading) return /*#__PURE__*/ jsx(Container, {
|
|
1343
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
1344
|
+
className: loader,
|
|
1345
|
+
children: /*#__PURE__*/ jsx(CircularProgress, {})
|
|
1346
|
+
})
|
|
1347
|
+
});
|
|
1348
|
+
if (isEmpty) {
|
|
1349
|
+
const { imgSrc, imgAlt, text } = emptyState;
|
|
1350
|
+
return /*#__PURE__*/ jsx(Container, {
|
|
1351
|
+
children: /*#__PURE__*/ jsx(Placeholder, {
|
|
1352
|
+
title: text,
|
|
1353
|
+
imgSrc: imgSrc,
|
|
1354
|
+
imgAlt: imgAlt
|
|
1355
|
+
})
|
|
1356
|
+
});
|
|
1357
|
+
}
|
|
1358
|
+
if (isError) {
|
|
1359
|
+
const { imgSrc, imgAlt, text } = errorState;
|
|
1360
|
+
return /*#__PURE__*/ jsx(Container, {
|
|
1361
|
+
children: /*#__PURE__*/ jsx(Placeholder, {
|
|
1362
|
+
title: text,
|
|
1363
|
+
imgSrc: imgSrc,
|
|
1364
|
+
imgAlt: imgAlt,
|
|
1365
|
+
actions: onRetry ? /*#__PURE__*/ jsx(Button, {
|
|
1366
|
+
variant: "outline",
|
|
1367
|
+
onClick: onRetry,
|
|
1368
|
+
children: "Попробовать снова"
|
|
1369
|
+
}) : void 0
|
|
1370
|
+
})
|
|
1371
|
+
});
|
|
1372
|
+
}
|
|
1373
|
+
return null;
|
|
1374
|
+
}
|
|
1375
|
+
var styles_css_container = 'style__82af400';
|
|
1376
|
+
function Body({ isError, isLoading, emptyState, errorState, columns, rows, rowHeight, keyId, onRowClick }) {
|
|
1377
|
+
const isEmpty = 0 === rows.length;
|
|
1378
|
+
const isStateVisible = isError || isLoading || isEmpty;
|
|
1379
|
+
return isStateVisible ? /*#__PURE__*/ jsx("tbody", {
|
|
1380
|
+
className: styles_css_container,
|
|
1381
|
+
children: /*#__PURE__*/ jsx(State, {
|
|
1382
|
+
emptyState: emptyState,
|
|
1383
|
+
errorState: errorState,
|
|
1384
|
+
isEmpty: isEmpty,
|
|
1385
|
+
isError: isError,
|
|
1386
|
+
isLoading: isLoading,
|
|
1387
|
+
columnsLength: columns.length
|
|
1388
|
+
})
|
|
1389
|
+
}) : /*#__PURE__*/ jsx("tbody", {
|
|
1390
|
+
className: styles_css_container,
|
|
1391
|
+
children: rows.map((row, index)=>{
|
|
1392
|
+
const rowId = String(row[keyId]);
|
|
1393
|
+
return /*#__PURE__*/ jsx(Row, {
|
|
1394
|
+
row: row,
|
|
1395
|
+
rowId: rowId,
|
|
1396
|
+
rowHeight: rowHeight,
|
|
1397
|
+
columns: columns,
|
|
1398
|
+
onRowClick: onRowClick,
|
|
1399
|
+
rowIndex: index
|
|
1400
|
+
}, row[keyId]);
|
|
1401
|
+
})
|
|
1402
|
+
});
|
|
1403
|
+
}
|
|
1404
|
+
var Footer_styles_css_footerClass = 'style__2s55b60';
|
|
1405
|
+
function Footer_Footer({ children, className }) {
|
|
1406
|
+
return /*#__PURE__*/ jsx("footer", {
|
|
1407
|
+
className: clsx(Footer_styles_css_footerClass, className),
|
|
1408
|
+
children: children
|
|
1409
|
+
});
|
|
1410
|
+
}
|
|
1411
|
+
var headerCellClass = 'style__uma6hu0';
|
|
1412
|
+
function HeaderCell({ column, height, width }) {
|
|
1413
|
+
return /*#__PURE__*/ jsx("th", {
|
|
1414
|
+
style: {
|
|
1415
|
+
color: column.color,
|
|
1416
|
+
height,
|
|
1417
|
+
width
|
|
1418
|
+
},
|
|
1419
|
+
align: column.align ?? 'left',
|
|
1420
|
+
title: column.title,
|
|
1421
|
+
className: headerCellClass,
|
|
1422
|
+
children: column.renderHeaderCell?.(column) || column.title
|
|
1423
|
+
});
|
|
1424
|
+
}
|
|
1425
|
+
var stickyClass = 'style__fkgoub0';
|
|
1426
|
+
function Header_Header({ columns, height, sticky }) {
|
|
1427
|
+
return /*#__PURE__*/ jsx("thead", {
|
|
1428
|
+
children: /*#__PURE__*/ jsx("tr", {
|
|
1429
|
+
className: clsx({
|
|
1430
|
+
[stickyClass]: sticky
|
|
1431
|
+
}),
|
|
1432
|
+
children: columns.map((col)=>/*#__PURE__*/ jsx(HeaderCell, {
|
|
1433
|
+
column: col,
|
|
1434
|
+
height: height,
|
|
1435
|
+
width: col.width
|
|
1436
|
+
}, col.title))
|
|
1437
|
+
})
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
var DataGrid_styles_css_container = 'style__1gqvluf0';
|
|
1441
|
+
var styles_css_disabled = 'style__1gqvluf3';
|
|
1442
|
+
var fullHeight = 'style__1gqvluf2';
|
|
1443
|
+
var loading = 'style__1gqvluf4';
|
|
1444
|
+
var table = 'style__1gqvluf1';
|
|
1445
|
+
var titleClass = 'style__1gqvluf5';
|
|
1446
|
+
function DataGrid({ rows, columns, height = '100%', className, rowHeight = 40, headerHeight = 40, keyId, onRowClick, isLoading, isDisabled, isError, emptyState, errorState, footer, title, stickyHeader, onRetry }) {
|
|
1447
|
+
const isFullHeight = isLoading || isError || 0 === rows.length;
|
|
1448
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
1449
|
+
"data-slot": "data-grid",
|
|
1450
|
+
style: {
|
|
1451
|
+
height
|
|
1452
|
+
},
|
|
1453
|
+
className: clsx(DataGrid_styles_css_container, className),
|
|
1454
|
+
children: [
|
|
1455
|
+
/*#__PURE__*/ jsxs("table", {
|
|
1456
|
+
className: clsx(table, {
|
|
1457
|
+
[styles_css_disabled]: isDisabled,
|
|
1458
|
+
[loading]: isLoading,
|
|
1459
|
+
[fullHeight]: isFullHeight
|
|
1460
|
+
}, className),
|
|
1461
|
+
children: [
|
|
1462
|
+
title && /*#__PURE__*/ jsx("caption", {
|
|
1463
|
+
className: titleClass,
|
|
1464
|
+
children: title
|
|
1465
|
+
}),
|
|
1466
|
+
/*#__PURE__*/ jsx(Header_Header, {
|
|
1467
|
+
columns: columns,
|
|
1468
|
+
height: headerHeight,
|
|
1469
|
+
sticky: stickyHeader
|
|
1470
|
+
}),
|
|
1471
|
+
/*#__PURE__*/ jsx(Body, {
|
|
1472
|
+
rows: rows,
|
|
1473
|
+
columns: columns,
|
|
1474
|
+
rowHeight: rowHeight,
|
|
1475
|
+
keyId: keyId,
|
|
1476
|
+
onRowClick: onRowClick,
|
|
1477
|
+
isLoading: isLoading,
|
|
1478
|
+
emptyState: emptyState,
|
|
1479
|
+
errorState: errorState,
|
|
1480
|
+
isError: isError,
|
|
1481
|
+
onRetry: onRetry
|
|
1482
|
+
})
|
|
1483
|
+
]
|
|
1484
|
+
}),
|
|
1485
|
+
footer && /*#__PURE__*/ jsx(Footer_Footer, {
|
|
1486
|
+
children: footer
|
|
1487
|
+
})
|
|
1488
|
+
]
|
|
1489
|
+
});
|
|
1490
|
+
}
|
|
1491
|
+
var checkboxItem = 'style__1ib8wkt7';
|
|
1492
|
+
var checkboxItemIndicator = 'style__1ib8wkt9';
|
|
1493
|
+
var DropdownMenu_styles_css_content = 'style__1ib8wkt5';
|
|
1494
|
+
var styles_css_icon = 'style__1ib8wkt3';
|
|
1495
|
+
var DropdownMenu_styles_css_item = 'style__1ib8wkt6';
|
|
1496
|
+
var styles_css_label = 'style__1ib8wktb';
|
|
1497
|
+
var radioItem = 'style__1ib8wkt8';
|
|
1498
|
+
var radioItemIndicator = 'style__1ib8wkta';
|
|
1499
|
+
var styles_css_separator = 'style__1ib8wktc';
|
|
1500
|
+
var shortcut = 'style__1ib8wktd';
|
|
1501
|
+
var subContent = 'style__1ib8wkt4';
|
|
1502
|
+
var subTrigger = 'style__1ib8wkt2';
|
|
1503
|
+
const DropdownMenu = __rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Root;
|
|
1504
|
+
const DropdownMenuTrigger = __rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Trigger;
|
|
1505
|
+
const DropdownMenuGroup = __rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Group;
|
|
1506
|
+
const DropdownMenuPortal = __rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Portal;
|
|
1507
|
+
const DropdownMenuSub = __rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Sub;
|
|
1508
|
+
const DropdownMenuRadioGroup = __rspack_external__radix_ui_react_dropdown_menu_dbc6754d.RadioGroup;
|
|
1509
|
+
const DropdownMenuSubTrigger = ({ className, inset, children, ...props })=>/*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.SubTrigger, {
|
|
1510
|
+
className: clsx_0(subTrigger, {
|
|
1511
|
+
inset
|
|
1512
|
+
}, className),
|
|
1513
|
+
...props,
|
|
1514
|
+
children: [
|
|
1515
|
+
children,
|
|
1516
|
+
/*#__PURE__*/ jsx(ChevronRight, {
|
|
1517
|
+
className: styles_css_icon
|
|
1518
|
+
})
|
|
1519
|
+
]
|
|
1520
|
+
});
|
|
1521
|
+
const DropdownMenuSubContent = ({ className, ...props })=>/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.SubContent, {
|
|
1522
|
+
className: clsx_0(subContent, className),
|
|
1523
|
+
...props
|
|
1524
|
+
});
|
|
1525
|
+
const DropdownMenuContent = ({ className, sideOffset = 4, ...props })=>/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Portal, {
|
|
1526
|
+
children: /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Content, {
|
|
1527
|
+
sideOffset: sideOffset,
|
|
1528
|
+
className: clsx_0(DropdownMenu_styles_css_content, className),
|
|
1529
|
+
...props
|
|
1530
|
+
})
|
|
1531
|
+
});
|
|
1532
|
+
const DropdownMenuItem = ({ className, inset, ...props })=>/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Item, {
|
|
1533
|
+
className: clsx_0(DropdownMenu_styles_css_item, {
|
|
1534
|
+
inset
|
|
1535
|
+
}, className),
|
|
1536
|
+
...props
|
|
1537
|
+
});
|
|
1538
|
+
const DropdownMenuCheckboxItem = ({ className, children, checked, ...props })=>/*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.CheckboxItem, {
|
|
1539
|
+
className: clsx_0(checkboxItem, className),
|
|
1540
|
+
checked: checked,
|
|
1541
|
+
...props,
|
|
1542
|
+
children: [
|
|
1543
|
+
/*#__PURE__*/ jsx("span", {
|
|
1544
|
+
className: checkboxItemIndicator,
|
|
1545
|
+
children: /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.ItemIndicator, {
|
|
1546
|
+
children: /*#__PURE__*/ jsx(Check, {
|
|
1547
|
+
className: styles_css_icon
|
|
1548
|
+
})
|
|
1549
|
+
})
|
|
1550
|
+
}),
|
|
1551
|
+
children
|
|
1552
|
+
]
|
|
1553
|
+
});
|
|
1554
|
+
const DropdownMenuRadioItem = ({ className, children, ...props })=>/*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.RadioItem, {
|
|
1555
|
+
className: clsx_0(radioItem, className),
|
|
1556
|
+
...props,
|
|
1557
|
+
children: [
|
|
1558
|
+
/*#__PURE__*/ jsx("span", {
|
|
1559
|
+
className: radioItemIndicator,
|
|
1560
|
+
children: /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.ItemIndicator, {
|
|
1561
|
+
children: /*#__PURE__*/ jsx(Circle, {
|
|
1562
|
+
className: styles_css_icon
|
|
1563
|
+
})
|
|
1564
|
+
})
|
|
1565
|
+
}),
|
|
1566
|
+
children
|
|
1567
|
+
]
|
|
1568
|
+
});
|
|
1569
|
+
const DropdownMenuLabel = ({ className, inset, ...props })=>/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Label, {
|
|
1570
|
+
className: clsx_0(styles_css_label, {
|
|
1571
|
+
inset
|
|
1572
|
+
}, className),
|
|
1573
|
+
...props
|
|
1574
|
+
});
|
|
1575
|
+
const DropdownMenuSeparator = ({ className, ...props })=>/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Separator, {
|
|
1576
|
+
className: clsx_0(styles_css_separator, className),
|
|
1577
|
+
...props
|
|
1578
|
+
});
|
|
1579
|
+
const DropdownMenuShortcut = ({ className, ...props })=>/*#__PURE__*/ jsx("span", {
|
|
1580
|
+
className: clsx_0(shortcut, className),
|
|
1581
|
+
...props
|
|
1582
|
+
});
|
|
1583
|
+
const MainIconButton_useLogic_useLogic_useLogic = ({ action })=>{
|
|
1584
|
+
const { isLoading, disabledReason, name } = action;
|
|
1585
|
+
const [isVisibleTooltip, setVisibleTooltip] = useState(false);
|
|
1586
|
+
const handleOpenChange = (open)=>setVisibleTooltip(open);
|
|
1587
|
+
useEffect(()=>{
|
|
1588
|
+
if (isLoading) setVisibleTooltip(false);
|
|
1589
|
+
}, [
|
|
1590
|
+
isLoading
|
|
1591
|
+
]);
|
|
1592
|
+
const text = disabledReason || name;
|
|
1593
|
+
return {
|
|
1594
|
+
tooltipProps: {
|
|
1595
|
+
text,
|
|
1596
|
+
open: isVisibleTooltip,
|
|
1597
|
+
onOpenChange: handleOpenChange
|
|
1598
|
+
}
|
|
1599
|
+
};
|
|
1600
|
+
};
|
|
1601
|
+
const MainIconButton = (props)=>{
|
|
1602
|
+
const { tooltipProps } = MainIconButton_useLogic_useLogic_useLogic(props);
|
|
1603
|
+
const { action, onActionClick, isDisabled, tooltipPlacement } = props;
|
|
1604
|
+
const { name, icon, needConfirm, confirmText, confirmButtonProps, disabled, isLoading, onClick } = action;
|
|
1605
|
+
const renderButton = (renderProps)=>/*#__PURE__*/ jsx(Tooltip, {
|
|
1606
|
+
arrow: true,
|
|
1607
|
+
side: tooltipPlacement,
|
|
1608
|
+
...tooltipProps,
|
|
1609
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
1610
|
+
disabled: isDisabled || disabled,
|
|
1611
|
+
isLoading: isLoading,
|
|
1612
|
+
variant: "ghost",
|
|
1613
|
+
size: "icon",
|
|
1614
|
+
...renderProps,
|
|
1615
|
+
children: icon
|
|
1616
|
+
})
|
|
1617
|
+
}, name);
|
|
1618
|
+
return /*#__PURE__*/ jsx(Fragment, {
|
|
1619
|
+
children: needConfirm ? /*#__PURE__*/ jsx(ConfirmAction, {
|
|
1620
|
+
text: confirmText,
|
|
1621
|
+
confirmButtonProps: confirmButtonProps,
|
|
1622
|
+
actionComponent: (renderProps)=>renderButton(renderProps),
|
|
1623
|
+
onConfirm: onActionClick(onClick)
|
|
1624
|
+
}) : renderButton({
|
|
1625
|
+
onClick: onActionClick(onClick)
|
|
1626
|
+
})
|
|
1627
|
+
});
|
|
1628
|
+
};
|
|
1629
|
+
const MainAction = ({ action, onActionClick, isDisabled, tooltipPlacement })=>{
|
|
1630
|
+
if ('actions' in action) {
|
|
1631
|
+
const { disabled, icon, name, disabledReason, actions, isLoading } = action;
|
|
1632
|
+
return /*#__PURE__*/ jsxs(DropdownMenu, {
|
|
1633
|
+
children: [
|
|
1634
|
+
/*#__PURE__*/ jsx(DropdownMenuTrigger, {
|
|
1635
|
+
asChild: true,
|
|
1636
|
+
children: /*#__PURE__*/ jsx(Tooltip, {
|
|
1637
|
+
text: disabledReason || name,
|
|
1638
|
+
side: tooltipPlacement,
|
|
1639
|
+
arrow: true,
|
|
1640
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
1641
|
+
variant: "ghost",
|
|
1642
|
+
size: "icon",
|
|
1643
|
+
isLoading: isLoading,
|
|
1644
|
+
disabled: isDisabled || disabled,
|
|
1645
|
+
children: icon
|
|
1646
|
+
})
|
|
1647
|
+
}, name)
|
|
1648
|
+
}),
|
|
1649
|
+
/*#__PURE__*/ jsx(DropdownMenuContent, {
|
|
1650
|
+
children: actions.map(({ name: nestedActionName, onClick: onClickNested, ...props })=>/*#__PURE__*/ createElement(DropdownMenuItem, {
|
|
1651
|
+
...props,
|
|
1652
|
+
key: nestedActionName,
|
|
1653
|
+
asChild: true
|
|
1654
|
+
}, /*#__PURE__*/ jsx(Button, {
|
|
1655
|
+
size: "sm",
|
|
1656
|
+
onClick: onActionClick(onClickNested),
|
|
1657
|
+
children: nestedActionName
|
|
1658
|
+
})))
|
|
1659
|
+
})
|
|
1660
|
+
]
|
|
1661
|
+
});
|
|
1662
|
+
}
|
|
1663
|
+
return /*#__PURE__*/ jsx(MainIconButton, {
|
|
1664
|
+
action: action,
|
|
1665
|
+
onActionClick: onActionClick,
|
|
1666
|
+
isDisabled: isDisabled,
|
|
1667
|
+
tooltipPlacement: tooltipPlacement
|
|
1668
|
+
});
|
|
1669
|
+
};
|
|
1670
|
+
const SecondaryActions = ({ actions, onActionClick, tooltipPlacement, isDisabled })=>/*#__PURE__*/ jsxs(DropdownMenu, {
|
|
1671
|
+
children: [
|
|
1672
|
+
/*#__PURE__*/ jsx(DropdownMenuTrigger, {
|
|
1673
|
+
asChild: true,
|
|
1674
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
1675
|
+
disabled: isDisabled,
|
|
1676
|
+
variant: "ghost",
|
|
1677
|
+
size: "icon",
|
|
1678
|
+
children: /*#__PURE__*/ jsx(EllipsisVertical, {})
|
|
1679
|
+
})
|
|
1680
|
+
}),
|
|
1681
|
+
/*#__PURE__*/ jsx(DropdownMenuContent, {
|
|
1682
|
+
children: actions.map((action)=>{
|
|
1683
|
+
const { onClick, name, disabledReason, isLoading } = action;
|
|
1684
|
+
return /*#__PURE__*/ jsx(DropdownMenuItem, {
|
|
1685
|
+
asChild: true,
|
|
1686
|
+
children: /*#__PURE__*/ jsx(Tooltip, {
|
|
1687
|
+
arrow: true,
|
|
1688
|
+
side: tooltipPlacement,
|
|
1689
|
+
text: disabledReason,
|
|
1690
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
1691
|
+
onClick: onActionClick(onClick),
|
|
1692
|
+
isLoading: isLoading,
|
|
1693
|
+
variant: "ghost",
|
|
1694
|
+
size: "sm",
|
|
1695
|
+
fullWidth: true,
|
|
1696
|
+
children: name
|
|
1697
|
+
})
|
|
1698
|
+
})
|
|
1699
|
+
}, name);
|
|
1700
|
+
})
|
|
1701
|
+
})
|
|
1702
|
+
]
|
|
1703
|
+
});
|
|
1704
|
+
var DataGridActionCell_styles_css_wrapper = 'style__y44ln70';
|
|
1705
|
+
const DataGridActionCell_useLogic_useLogic_useLogic = ({ row, actions })=>{
|
|
1706
|
+
const { main, secondary } = actions;
|
|
1707
|
+
const blockingAction = [
|
|
1708
|
+
...main,
|
|
1709
|
+
...secondary || []
|
|
1710
|
+
].find((action)=>action.isBlockingOperation && action.isLoading);
|
|
1711
|
+
const isDisabledAction = Boolean(blockingAction);
|
|
1712
|
+
const handleActionClick = useCallback((onClick)=>()=>{
|
|
1713
|
+
onClick?.(row);
|
|
1714
|
+
}, [
|
|
1715
|
+
row
|
|
1716
|
+
]);
|
|
1717
|
+
const handleWrapperClick = (event)=>{
|
|
1718
|
+
event.stopPropagation();
|
|
1719
|
+
};
|
|
1720
|
+
return {
|
|
1721
|
+
isDisabledAction,
|
|
1722
|
+
handleActionClick,
|
|
1723
|
+
handleWrapperClick
|
|
1724
|
+
};
|
|
1725
|
+
};
|
|
1726
|
+
const TOOLTIP_PLACEMENT = {
|
|
1727
|
+
mainAction: 'top',
|
|
1728
|
+
secondaryAction: 'left'
|
|
1729
|
+
};
|
|
1730
|
+
const DataGridActionCell = (props)=>{
|
|
1731
|
+
const { isDisabledAction, handleWrapperClick, handleActionClick } = DataGridActionCell_useLogic_useLogic_useLogic(props);
|
|
1732
|
+
const { actions } = props;
|
|
1733
|
+
const { main, secondary } = actions;
|
|
1734
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
1735
|
+
onClick: handleWrapperClick,
|
|
1736
|
+
onKeyDown: handleWrapperClick,
|
|
1737
|
+
className: DataGridActionCell_styles_css_wrapper,
|
|
1738
|
+
children: [
|
|
1739
|
+
main.map((action)=>/*#__PURE__*/ jsx(MainAction, {
|
|
1740
|
+
action: action,
|
|
1741
|
+
onActionClick: handleActionClick,
|
|
1742
|
+
isDisabled: isDisabledAction,
|
|
1743
|
+
tooltipPlacement: TOOLTIP_PLACEMENT.mainAction
|
|
1744
|
+
}, action.name)),
|
|
1745
|
+
secondary && /*#__PURE__*/ jsx(SecondaryActions, {
|
|
1746
|
+
actions: secondary,
|
|
1747
|
+
onActionClick: handleActionClick,
|
|
1748
|
+
tooltipPlacement: TOOLTIP_PLACEMENT.secondaryAction,
|
|
1749
|
+
isDisabled: isDisabledAction
|
|
1750
|
+
})
|
|
1751
|
+
]
|
|
1752
|
+
});
|
|
1753
|
+
};
|
|
1754
|
+
var styles_css_alignments = {
|
|
1755
|
+
left: 'left__o752f01',
|
|
1756
|
+
center: 'center__o752f02',
|
|
1757
|
+
right: 'right__o752f03',
|
|
1758
|
+
justify: 'justify__o752f04'
|
|
1759
|
+
};
|
|
1760
|
+
var DataGridSortHeader_styles_css_wrapper = 'style__o752f00';
|
|
1761
|
+
function DataGridSortHeader({ sorting, setSorting, column: { title, field, align = 'left' }, className }) {
|
|
1762
|
+
if (!field) return null;
|
|
1763
|
+
const handleClick = ()=>{
|
|
1764
|
+
sorting.key === field ? setSorting({
|
|
1765
|
+
key: field,
|
|
1766
|
+
order: 'asc' === sorting.order ? 'desc' : 'asc'
|
|
1767
|
+
}) : setSorting({
|
|
1768
|
+
key: field,
|
|
1769
|
+
order: 'asc'
|
|
1770
|
+
});
|
|
1771
|
+
};
|
|
1772
|
+
return /*#__PURE__*/ jsxs("button", {
|
|
1773
|
+
type: "button",
|
|
1774
|
+
className: clsx(DataGridSortHeader_styles_css_wrapper, styles_css_alignments[align], className),
|
|
1775
|
+
onClick: handleClick,
|
|
1776
|
+
children: [
|
|
1777
|
+
title,
|
|
1778
|
+
sorting.key === field ? 'asc' === sorting.order ? /*#__PURE__*/ jsx(ArrowDownNarrowWide, {
|
|
1779
|
+
size: 16
|
|
1780
|
+
}) : /*#__PURE__*/ jsx(ArrowDownWideNarrow, {
|
|
1781
|
+
size: 16
|
|
1782
|
+
}) : /*#__PURE__*/ jsx(ArrowDownUp, {
|
|
1783
|
+
size: 16
|
|
1784
|
+
})
|
|
1785
|
+
]
|
|
1786
|
+
});
|
|
1787
|
+
}
|
|
1788
|
+
const ITEM_CLASSNAME = 'datalist_item';
|
|
1789
|
+
const END_OF_SCROLL_MESSAGE = 'Вы достигли конца списка';
|
|
1790
|
+
var EndData_styles_css_item = 'style__1syvw5e0';
|
|
1791
|
+
const EndData = ({ endOfScrollMsg = END_OF_SCROLL_MESSAGE })=>/*#__PURE__*/ jsx("li", {
|
|
1792
|
+
className: EndData_styles_css_item,
|
|
1793
|
+
children: /*#__PURE__*/ jsx(Typography, {
|
|
1794
|
+
children: endOfScrollMsg
|
|
1795
|
+
})
|
|
1796
|
+
});
|
|
1797
|
+
const ERROR_MESSAGE = 'Ошибка загрузки';
|
|
1798
|
+
var ErrorState_styles_css_item = 'style__qlujai0';
|
|
1799
|
+
const ErrorState = ({ onRetry })=>/*#__PURE__*/ jsxs("li", {
|
|
1800
|
+
className: ErrorState_styles_css_item,
|
|
1801
|
+
children: [
|
|
1802
|
+
/*#__PURE__*/ jsx(Typography, {
|
|
1803
|
+
align: "center",
|
|
1804
|
+
children: ERROR_MESSAGE
|
|
1805
|
+
}),
|
|
1806
|
+
/*#__PURE__*/ jsx(Button, {
|
|
1807
|
+
size: "sm",
|
|
1808
|
+
onClick: onRetry,
|
|
1809
|
+
children: "Попробовать снова"
|
|
1810
|
+
})
|
|
1811
|
+
]
|
|
1812
|
+
});
|
|
1813
|
+
var Loader_styles_css_item = 'style__111czea0';
|
|
1814
|
+
const Loader = ()=>/*#__PURE__*/ jsx("li", {
|
|
1815
|
+
className: Loader_styles_css_item,
|
|
1816
|
+
children: /*#__PURE__*/ jsx(CircularProgress, {
|
|
1817
|
+
color: "primary"
|
|
1818
|
+
})
|
|
1819
|
+
});
|
|
1820
|
+
const NO_DATA_TEXT = 'Нет данных';
|
|
1821
|
+
const NoData = ({ noDataImgSrc })=>/*#__PURE__*/ jsx(Placeholder, {
|
|
1822
|
+
title: NO_DATA_TEXT,
|
|
1823
|
+
imgSrc: noDataImgSrc
|
|
1824
|
+
});
|
|
1825
|
+
var styles_css_buttonClass = 'style__1jg5nd90';
|
|
1826
|
+
var visible = 'style__1jg5nd91';
|
|
1827
|
+
const ScrollToTopButton = ({ onClick, isVisible })=>/*#__PURE__*/ jsx(Button, {
|
|
1828
|
+
onClick: onClick,
|
|
1829
|
+
size: "icon",
|
|
1830
|
+
variant: "outline",
|
|
1831
|
+
className: clsx(styles_css_buttonClass, {
|
|
1832
|
+
[visible]: isVisible
|
|
1833
|
+
}),
|
|
1834
|
+
children: /*#__PURE__*/ jsx(ChevronUp, {})
|
|
1835
|
+
});
|
|
1836
|
+
var itemClass = 'style__1ezen7g1';
|
|
1837
|
+
var list = 'style__1ezen7g0';
|
|
1838
|
+
const DataList = ({ data, keyId, className, itemContent, noDataPlaceholder, endOfScrollMsg, errorState, isLoading, isError, isEndReached, onRetry, onEndReached, ref })=>{
|
|
1839
|
+
const innerRef = useRef(null);
|
|
1840
|
+
const virtuoso = ref || innerRef;
|
|
1841
|
+
const [isStickyButtonActive, setIsStickyButtonActive] = useState(false);
|
|
1842
|
+
const handleRangeChanged = useCallback((range)=>{
|
|
1843
|
+
range.startIndex > 2 ? setIsStickyButtonActive(true) : setIsStickyButtonActive(false);
|
|
1844
|
+
}, []);
|
|
1845
|
+
const handleScrollToTop = useCallback(()=>virtuoso.current?.scrollToIndex({
|
|
1846
|
+
index: 0,
|
|
1847
|
+
align: 'start',
|
|
1848
|
+
behavior: 'smooth'
|
|
1849
|
+
}), [
|
|
1850
|
+
virtuoso
|
|
1851
|
+
]);
|
|
1852
|
+
const handleEndReach = useCallback(()=>{
|
|
1853
|
+
if (!isEndReached && onEndReached) onEndReached();
|
|
1854
|
+
}, [
|
|
1855
|
+
isEndReached,
|
|
1856
|
+
onEndReached
|
|
1857
|
+
]);
|
|
1858
|
+
const isDataExist = Boolean(data?.length);
|
|
1859
|
+
if (!isDataExist && !isLoading && !isError) return noDataPlaceholder ? /*#__PURE__*/ jsx(Fragment, {
|
|
1860
|
+
children: noDataPlaceholder
|
|
1861
|
+
}) : /*#__PURE__*/ jsx(NoData, {});
|
|
1862
|
+
return /*#__PURE__*/ jsxs(ContentState, {
|
|
1863
|
+
isLoading: isLoading && !isDataExist,
|
|
1864
|
+
isError: isError && !isDataExist,
|
|
1865
|
+
errorState: errorState,
|
|
1866
|
+
children: [
|
|
1867
|
+
/*#__PURE__*/ jsx(Virtuoso, {
|
|
1868
|
+
className: clsx(list, className),
|
|
1869
|
+
style: {
|
|
1870
|
+
height: '100%'
|
|
1871
|
+
},
|
|
1872
|
+
data: data,
|
|
1873
|
+
ref: virtuoso,
|
|
1874
|
+
overscan: 30,
|
|
1875
|
+
endReached: handleEndReach,
|
|
1876
|
+
rangeChanged: handleRangeChanged,
|
|
1877
|
+
itemContent: (index, item)=>/*#__PURE__*/ jsx("li", {
|
|
1878
|
+
children: itemContent?.(item, {
|
|
1879
|
+
index,
|
|
1880
|
+
className: clsx(itemClass, ITEM_CLASSNAME)
|
|
1881
|
+
})
|
|
1882
|
+
}, item[keyId]),
|
|
1883
|
+
components: {
|
|
1884
|
+
Footer: ()=>/*#__PURE__*/ jsxs(Fragment, {
|
|
1885
|
+
children: [
|
|
1886
|
+
isLoading && /*#__PURE__*/ jsx(Loader, {}),
|
|
1887
|
+
isError && /*#__PURE__*/ jsx(ErrorState, {
|
|
1888
|
+
onRetry: onRetry
|
|
1889
|
+
}),
|
|
1890
|
+
isEndReached && /*#__PURE__*/ jsx(EndData, {
|
|
1891
|
+
endOfScrollMsg: endOfScrollMsg
|
|
1892
|
+
})
|
|
1893
|
+
]
|
|
1894
|
+
})
|
|
1895
|
+
}
|
|
1896
|
+
}),
|
|
1897
|
+
/*#__PURE__*/ jsx(ScrollToTopButton, {
|
|
1898
|
+
isVisible: isStickyButtonActive,
|
|
1899
|
+
onClick: handleScrollToTop
|
|
1900
|
+
})
|
|
1901
|
+
]
|
|
1902
|
+
});
|
|
1903
|
+
};
|
|
1904
|
+
var adornment = 'style__1blk89uc';
|
|
1905
|
+
var Input_styles_css_container = 'Input__1blk89u0';
|
|
1906
|
+
var styles_css_disabledClass = 'style__1blk89u6';
|
|
1907
|
+
var errorClass = 'style__1blk89u7';
|
|
1908
|
+
var fullWidthClass = 'style__1blk89u3';
|
|
1909
|
+
var input = 'style__1blk89u8';
|
|
1910
|
+
var Input_styles_css_sizes = {
|
|
1911
|
+
sm: 'sm__1blk89u9',
|
|
1912
|
+
md: 'md__1blk89ua',
|
|
1913
|
+
lg: 'lg__1blk89ub'
|
|
1914
|
+
};
|
|
1915
|
+
var Input_styles_css_variants = {
|
|
1916
|
+
outlined: 'outlined__1blk89u1',
|
|
1917
|
+
standard: 'standard__1blk89u2'
|
|
1918
|
+
};
|
|
1919
|
+
var withEndAdornment = 'style__1blk89ue';
|
|
1920
|
+
var withStartAdornment = 'style__1blk89ud';
|
|
1921
|
+
const Input = ({ error, variant = 'outlined', size = 'md', startAdornment, endAdornment, className, disabled, fullWidth, value, ref, ...props })=>/*#__PURE__*/ jsxs("div", {
|
|
1922
|
+
className: clsx(Input_styles_css_container, Input_styles_css_variants[variant], {
|
|
1923
|
+
[errorClass]: error
|
|
1924
|
+
}, {
|
|
1925
|
+
[styles_css_disabledClass]: disabled
|
|
1926
|
+
}, {
|
|
1927
|
+
[fullWidthClass]: fullWidth
|
|
1928
|
+
}, className),
|
|
1929
|
+
children: [
|
|
1930
|
+
startAdornment && /*#__PURE__*/ jsx("span", {
|
|
1931
|
+
className: adornment,
|
|
1932
|
+
children: startAdornment
|
|
1933
|
+
}),
|
|
1934
|
+
/*#__PURE__*/ jsx("input", {
|
|
1935
|
+
className: clsx(input, Input_styles_css_sizes[size], {
|
|
1936
|
+
[styles_css_disabledClass]: disabled,
|
|
1937
|
+
[withStartAdornment]: Boolean(startAdornment),
|
|
1938
|
+
[withEndAdornment]: Boolean(endAdornment)
|
|
1939
|
+
}),
|
|
1940
|
+
ref: ref,
|
|
1941
|
+
disabled: disabled,
|
|
1942
|
+
value: value || '',
|
|
1943
|
+
...props
|
|
1944
|
+
}),
|
|
1945
|
+
endAdornment && /*#__PURE__*/ jsx("span", {
|
|
1946
|
+
className: adornment,
|
|
1947
|
+
children: endAdornment
|
|
1948
|
+
})
|
|
1949
|
+
]
|
|
1950
|
+
});
|
|
1951
|
+
var TextField_styles_css_container = 'style__kqu4y20';
|
|
1952
|
+
var TextField_styles_css_disabledClass = 'style__kqu4y23';
|
|
1953
|
+
var styles_css_errorClass = 'style__kqu4y24';
|
|
1954
|
+
var styles_css_fullWidthClass = 'style__kqu4y25';
|
|
1955
|
+
var helperTextClass = 'style__kqu4y22';
|
|
1956
|
+
var styles_css_labelClass = 'style__kqu4y21';
|
|
1957
|
+
const TextField = ({ label, helperText, className, disabled, fullWidth, ref, labelClassName, ...props })=>/*#__PURE__*/ jsxs("div", {
|
|
1958
|
+
className: clsx(TextField_styles_css_container, {
|
|
1959
|
+
[styles_css_fullWidthClass]: fullWidth
|
|
1960
|
+
}, className),
|
|
1961
|
+
children: [
|
|
1962
|
+
label && /*#__PURE__*/ jsx(Label, {
|
|
1963
|
+
htmlFor: props.id || label,
|
|
1964
|
+
disabled: disabled,
|
|
1965
|
+
required: props.required,
|
|
1966
|
+
error: props.error,
|
|
1967
|
+
className: clsx(styles_css_labelClass, labelClassName),
|
|
1968
|
+
children: label
|
|
1969
|
+
}),
|
|
1970
|
+
/*#__PURE__*/ jsx(Input, {
|
|
1971
|
+
ref: ref,
|
|
1972
|
+
disabled: disabled,
|
|
1973
|
+
fullWidth: fullWidth,
|
|
1974
|
+
id: props.id || label,
|
|
1975
|
+
...props
|
|
1976
|
+
}),
|
|
1977
|
+
helperText && /*#__PURE__*/ jsx(Typography, {
|
|
1978
|
+
variant: "caption",
|
|
1979
|
+
className: clsx(helperTextClass, {
|
|
1980
|
+
[styles_css_errorClass]: props.error,
|
|
1981
|
+
[TextField_styles_css_disabledClass]: disabled
|
|
1982
|
+
}),
|
|
1983
|
+
children: helperText
|
|
1984
|
+
})
|
|
1985
|
+
]
|
|
1986
|
+
});
|
|
1987
|
+
const MaskField = ({ maskProps, ref, ...textFieldProps })=>{
|
|
1988
|
+
const maskInputRef = useMask(maskProps);
|
|
1989
|
+
const mergedRef = useCallback((element)=>{
|
|
1990
|
+
maskInputRef.current = element;
|
|
1991
|
+
if ('function' == typeof ref) ref(element);
|
|
1992
|
+
else if (ref) ref.current = element;
|
|
1993
|
+
}, [
|
|
1994
|
+
maskInputRef,
|
|
1995
|
+
ref
|
|
1996
|
+
]);
|
|
1997
|
+
return /*#__PURE__*/ jsx(TextField, {
|
|
1998
|
+
ref: mergedRef,
|
|
1999
|
+
...textFieldProps
|
|
2000
|
+
});
|
|
2001
|
+
};
|
|
2002
|
+
const DatePicker = (props)=>{
|
|
2003
|
+
const { label, disabled = false, selected, onSelect, selectMonth, selectYear, error, helperText, className, fullWidth, size, name, ...rest } = props;
|
|
2004
|
+
const [innerError, setInnerError] = useState(null);
|
|
2005
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
2006
|
+
const [month, setMonth] = useState(new Date());
|
|
2007
|
+
const [inputValue, setInputValue] = useState('');
|
|
2008
|
+
const getLayout = ()=>{
|
|
2009
|
+
if (selectMonth && selectYear) return 'dropdown';
|
|
2010
|
+
if (selectMonth) return 'dropdown-months';
|
|
2011
|
+
if (selectYear) return 'dropdown-years';
|
|
2012
|
+
return 'label';
|
|
2013
|
+
};
|
|
2014
|
+
const handleClick = ()=>{
|
|
2015
|
+
setIsOpen(true);
|
|
2016
|
+
};
|
|
2017
|
+
const handleClose = ()=>{
|
|
2018
|
+
setIsOpen(false);
|
|
2019
|
+
};
|
|
2020
|
+
const handleDayPickerSelect = (date)=>{
|
|
2021
|
+
if (date) {
|
|
2022
|
+
onSelect?.(date);
|
|
2023
|
+
setMonth(date);
|
|
2024
|
+
setInputValue(date.toLocaleString('ru-RU', {
|
|
2025
|
+
day: '2-digit',
|
|
2026
|
+
month: '2-digit',
|
|
2027
|
+
year: 'numeric'
|
|
2028
|
+
}));
|
|
2029
|
+
} else {
|
|
2030
|
+
setInputValue('');
|
|
2031
|
+
onSelect?.(void 0);
|
|
2032
|
+
}
|
|
2033
|
+
handleClose();
|
|
2034
|
+
};
|
|
2035
|
+
const handleInputChange = (e)=>{
|
|
2036
|
+
setInnerError(null);
|
|
2037
|
+
setInputValue(e.target.value);
|
|
2038
|
+
const [day, month, year] = e.target.value.split('.').map(Number);
|
|
2039
|
+
if (Number.isNaN(day) || Number.isNaN(month) || Number.isNaN(year) || day < 1 || day > 31 || month < 1 || month > 12 || year < 1000) return void setInnerError('Некорректная дата');
|
|
2040
|
+
const parsedDate = new Date(year, month - 1, day);
|
|
2041
|
+
onSelect?.(parsedDate);
|
|
2042
|
+
setMonth(parsedDate);
|
|
2043
|
+
};
|
|
2044
|
+
useEffect(()=>{
|
|
2045
|
+
if (selected) {
|
|
2046
|
+
setInputValue(selected.toLocaleString('ru-RU', {
|
|
2047
|
+
day: '2-digit',
|
|
2048
|
+
month: '2-digit',
|
|
2049
|
+
year: 'numeric'
|
|
2050
|
+
}));
|
|
2051
|
+
setMonth(selected);
|
|
2052
|
+
} else setInputValue('');
|
|
2053
|
+
}, [
|
|
2054
|
+
selected
|
|
2055
|
+
]);
|
|
2056
|
+
return /*#__PURE__*/ jsxs(Popover, {
|
|
2057
|
+
open: isOpen,
|
|
2058
|
+
onOpenChange: setIsOpen,
|
|
2059
|
+
children: [
|
|
2060
|
+
/*#__PURE__*/ jsx(MaskField, {
|
|
2061
|
+
value: inputValue,
|
|
2062
|
+
onChange: handleInputChange,
|
|
2063
|
+
label: label,
|
|
2064
|
+
disabled: disabled,
|
|
2065
|
+
className: className,
|
|
2066
|
+
fullWidth: fullWidth,
|
|
2067
|
+
size: size,
|
|
2068
|
+
name: name,
|
|
2069
|
+
endAdornment: /*#__PURE__*/ jsx(PopoverTrigger, {
|
|
2070
|
+
asChild: true,
|
|
2071
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
2072
|
+
variant: "ghost",
|
|
2073
|
+
size: "icon",
|
|
2074
|
+
onClick: handleClick,
|
|
2075
|
+
children: /*#__PURE__*/ jsx(Calendar1, {})
|
|
2076
|
+
})
|
|
2077
|
+
}),
|
|
2078
|
+
maskProps: {
|
|
2079
|
+
mask: '__.__.____',
|
|
2080
|
+
replacement: {
|
|
2081
|
+
_: /\d/
|
|
2082
|
+
},
|
|
2083
|
+
showMask: true
|
|
2084
|
+
},
|
|
2085
|
+
placeholder: "дд.мм.гггг",
|
|
2086
|
+
error: !!innerError || error,
|
|
2087
|
+
helperText: innerError || helperText
|
|
2088
|
+
}),
|
|
2089
|
+
/*#__PURE__*/ jsx(PopoverContent, {
|
|
2090
|
+
align: "end",
|
|
2091
|
+
alignOffset: -10,
|
|
2092
|
+
side: "bottom",
|
|
2093
|
+
children: /*#__PURE__*/ jsx(Calendar, {
|
|
2094
|
+
month: month,
|
|
2095
|
+
onMonthChange: setMonth,
|
|
2096
|
+
selected: selected,
|
|
2097
|
+
onSelect: handleDayPickerSelect,
|
|
2098
|
+
...rest,
|
|
2099
|
+
mode: "single",
|
|
2100
|
+
captionLayout: getLayout()
|
|
2101
|
+
})
|
|
2102
|
+
})
|
|
2103
|
+
]
|
|
2104
|
+
});
|
|
2105
|
+
};
|
|
2106
|
+
const DESCRIPTION_ROOT_CLASSNAME = "descriptionRoot";
|
|
2107
|
+
const DescriptionContext = /*#__PURE__*/ createContext({
|
|
2108
|
+
leader: false,
|
|
2109
|
+
separator: ":",
|
|
2110
|
+
direction: 'default'
|
|
2111
|
+
});
|
|
2112
|
+
const DescriptionContextProvider = ({ children, leader, separator, direction })=>/*#__PURE__*/ jsx(DescriptionContext.Provider, {
|
|
2113
|
+
value: {
|
|
2114
|
+
leader,
|
|
2115
|
+
separator,
|
|
2116
|
+
direction
|
|
2117
|
+
},
|
|
2118
|
+
children: children
|
|
2119
|
+
});
|
|
2120
|
+
var dashedSeparator = 'style__1tsgk1i2';
|
|
2121
|
+
var styles_css_leader = 'style__1tsgk1i1';
|
|
2122
|
+
var Name_styles_css_wrapper = 'style__1tsgk1i0';
|
|
2123
|
+
const Name = ({ children, color = 'secondary', ...props })=>{
|
|
2124
|
+
const { leader, separator } = useContext(DescriptionContext);
|
|
2125
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
2126
|
+
children: [
|
|
2127
|
+
/*#__PURE__*/ jsx("dt", {
|
|
2128
|
+
className: clsx(Name_styles_css_wrapper, {
|
|
2129
|
+
[styles_css_leader]: leader
|
|
2130
|
+
}),
|
|
2131
|
+
children: /*#__PURE__*/ jsxs(Typography, {
|
|
2132
|
+
...props,
|
|
2133
|
+
color: color,
|
|
2134
|
+
children: [
|
|
2135
|
+
children,
|
|
2136
|
+
!leader && separator
|
|
2137
|
+
]
|
|
2138
|
+
})
|
|
2139
|
+
}),
|
|
2140
|
+
leader && /*#__PURE__*/ jsx("div", {
|
|
2141
|
+
className: dashedSeparator
|
|
2142
|
+
})
|
|
2143
|
+
]
|
|
2144
|
+
});
|
|
2145
|
+
};
|
|
2146
|
+
var directions = {
|
|
2147
|
+
row: 'row__1lociyw1',
|
|
2148
|
+
column: 'column__1lociyw2'
|
|
2149
|
+
};
|
|
2150
|
+
var justify = {
|
|
2151
|
+
spaceBetween: 'spaceBetween__1lociyw3',
|
|
2152
|
+
start: 'start__1lociyw4'
|
|
2153
|
+
};
|
|
2154
|
+
var Description_styles_css_wrapper = 'style__1lociyw0';
|
|
2155
|
+
const Description_useLogic_useLogic_useLogic = ({ direction = 'row', separator = ":" })=>{
|
|
2156
|
+
const hasSeparator = 'column' === direction;
|
|
2157
|
+
const descriptionContextProviderProps = {
|
|
2158
|
+
separator: hasSeparator ? '' : separator
|
|
2159
|
+
};
|
|
2160
|
+
return {
|
|
2161
|
+
descriptionContextProviderProps,
|
|
2162
|
+
direction
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
var Value_styles_css_leader = 'style__sdcsnp2';
|
|
2166
|
+
var styles_css_text = 'style__sdcsnp1';
|
|
2167
|
+
var Value_styles_css_wrapper = 'style__sdcsnp0';
|
|
2168
|
+
const Value_useLogic_useLogic_useLogic = ({ canCopy, children, stub = '—' })=>{
|
|
2169
|
+
const { leader, direction } = useContext(DescriptionContext);
|
|
2170
|
+
const valueToRender = children || stub;
|
|
2171
|
+
const isDefaultValueRender = !canCopy || !children;
|
|
2172
|
+
return {
|
|
2173
|
+
valueToRender,
|
|
2174
|
+
isDefaultValueRender,
|
|
2175
|
+
leader,
|
|
2176
|
+
direction
|
|
2177
|
+
};
|
|
2178
|
+
};
|
|
2179
|
+
const Value = (props)=>{
|
|
2180
|
+
const { valueToRender, isDefaultValueRender, leader } = Value_useLogic_useLogic_useLogic(props);
|
|
2181
|
+
const { copyPosition = 'right', copyText, canCopy, children, stub, ...restProps } = props;
|
|
2182
|
+
if (isDefaultValueRender) return /*#__PURE__*/ jsx(Typography, {
|
|
2183
|
+
className: clsx_0(styles_css_text, {
|
|
2184
|
+
[Value_styles_css_leader]: leader
|
|
2185
|
+
}),
|
|
2186
|
+
component: "dd",
|
|
2187
|
+
...restProps,
|
|
2188
|
+
children: valueToRender
|
|
2189
|
+
});
|
|
2190
|
+
return /*#__PURE__*/ jsx("dd", {
|
|
2191
|
+
className: Value_styles_css_wrapper,
|
|
2192
|
+
children: /*#__PURE__*/ jsx(CopyTypography, {
|
|
2193
|
+
className: clsx_0({
|
|
2194
|
+
[Value_styles_css_leader]: leader
|
|
2195
|
+
}),
|
|
2196
|
+
copyPosition: copyPosition,
|
|
2197
|
+
copyText: copyText,
|
|
2198
|
+
...restProps,
|
|
2199
|
+
children: valueToRender
|
|
2200
|
+
})
|
|
2201
|
+
});
|
|
2202
|
+
};
|
|
2203
|
+
const Description_Description = (props)=>{
|
|
2204
|
+
const { descriptionContextProviderProps, direction } = Description_useLogic_useLogic_useLogic(props);
|
|
2205
|
+
const { justifyContent = 'start', component: Component = 'dl', children, leader = false, className } = props;
|
|
2206
|
+
return /*#__PURE__*/ jsx(DescriptionContextProvider, {
|
|
2207
|
+
leader: leader,
|
|
2208
|
+
direction: direction,
|
|
2209
|
+
...descriptionContextProviderProps,
|
|
2210
|
+
children: /*#__PURE__*/ jsx(Component, {
|
|
2211
|
+
className: clsx(Description_styles_css_wrapper, directions[direction], justify[justifyContent], DESCRIPTION_ROOT_CLASSNAME, className),
|
|
2212
|
+
children: children
|
|
2213
|
+
})
|
|
2214
|
+
});
|
|
2215
|
+
};
|
|
2216
|
+
Description_Description.Name = Name;
|
|
2217
|
+
Description_Description.Value = Value;
|
|
2218
|
+
var styles_css_closeButton = 'style__8bkmbe6';
|
|
2219
|
+
var closeSpan = 'style__8bkmbe7';
|
|
2220
|
+
var Dialog_styles_css_content = 'style__8bkmbe5';
|
|
2221
|
+
var Dialog_styles_css_description = 'style__8bkmbec';
|
|
2222
|
+
var Dialog_styles_css_footer = 'style__8bkmbea';
|
|
2223
|
+
var hasDescription = 'style__8bkmbe9';
|
|
2224
|
+
var Dialog_styles_css_header = 'style__8bkmbe8';
|
|
2225
|
+
var styles_css_overlay = 'style__8bkmbe2';
|
|
2226
|
+
var Dialog_styles_css_title = 'style__8bkmbeb';
|
|
2227
|
+
const Dialog = ({ title, description = '', trigger, className, footer, children, ...props })=>/*#__PURE__*/ jsxs(react_dialog_Root, {
|
|
2228
|
+
...props,
|
|
2229
|
+
children: [
|
|
2230
|
+
trigger && /*#__PURE__*/ jsx(react_dialog_Trigger, {
|
|
2231
|
+
asChild: true,
|
|
2232
|
+
children: trigger
|
|
2233
|
+
}),
|
|
2234
|
+
/*#__PURE__*/ jsxs(react_dialog_Portal, {
|
|
2235
|
+
children: [
|
|
2236
|
+
/*#__PURE__*/ jsx(react_dialog_Overlay, {
|
|
2237
|
+
className: clsx_0(styles_css_overlay)
|
|
2238
|
+
}),
|
|
2239
|
+
/*#__PURE__*/ jsxs(react_dialog_Content, {
|
|
2240
|
+
className: clsx_0(Dialog_styles_css_content, className),
|
|
2241
|
+
children: [
|
|
2242
|
+
/*#__PURE__*/ jsxs("div", {
|
|
2243
|
+
className: clsx_0(Dialog_styles_css_header, {
|
|
2244
|
+
[hasDescription]: Boolean(description)
|
|
2245
|
+
}),
|
|
2246
|
+
children: [
|
|
2247
|
+
/*#__PURE__*/ jsx(react_dialog_Title, {
|
|
2248
|
+
className: Dialog_styles_css_title,
|
|
2249
|
+
children: title
|
|
2250
|
+
}),
|
|
2251
|
+
/*#__PURE__*/ jsx(react_dialog_Description, {
|
|
2252
|
+
className: Dialog_styles_css_description,
|
|
2253
|
+
children: description
|
|
2254
|
+
}),
|
|
2255
|
+
props.onOpenChange && /*#__PURE__*/ jsxs(Close, {
|
|
2256
|
+
className: styles_css_closeButton,
|
|
2257
|
+
children: [
|
|
2258
|
+
/*#__PURE__*/ jsx(X, {
|
|
2259
|
+
size: 24
|
|
2260
|
+
}),
|
|
2261
|
+
/*#__PURE__*/ jsx("span", {
|
|
2262
|
+
className: closeSpan,
|
|
2263
|
+
children: "Close"
|
|
2264
|
+
})
|
|
2265
|
+
]
|
|
2266
|
+
})
|
|
2267
|
+
]
|
|
2268
|
+
}),
|
|
2269
|
+
children,
|
|
2270
|
+
footer && /*#__PURE__*/ jsx("div", {
|
|
2271
|
+
className: Dialog_styles_css_footer,
|
|
2272
|
+
children: footer
|
|
2273
|
+
})
|
|
2274
|
+
]
|
|
2275
|
+
})
|
|
2276
|
+
]
|
|
2277
|
+
})
|
|
2278
|
+
]
|
|
2279
|
+
});
|
|
2280
|
+
var Drawer_styles_css_content = 'style__ccss503';
|
|
2281
|
+
var Drawer_styles_css_description = 'style__ccss508';
|
|
2282
|
+
var dragHandle = 'style__ccss504';
|
|
2283
|
+
var Drawer_styles_css_footer = 'style__ccss506';
|
|
2284
|
+
var Drawer_styles_css_header = 'style__ccss505';
|
|
2285
|
+
var Drawer_styles_css_overlay = 'style__ccss502';
|
|
2286
|
+
var Drawer_styles_css_title = 'style__ccss507';
|
|
2287
|
+
const Drawer_Drawer = ({ children, trigger, className, title, description = '', footer, closeButton, ...props })=>/*#__PURE__*/ jsxs(external_vaul_Root, {
|
|
2288
|
+
...props,
|
|
2289
|
+
children: [
|
|
2290
|
+
trigger && /*#__PURE__*/ jsx(Drawer.Trigger, {
|
|
2291
|
+
"data-slot": "drawer-trigger",
|
|
2292
|
+
asChild: true,
|
|
2293
|
+
children: trigger
|
|
2294
|
+
}),
|
|
2295
|
+
/*#__PURE__*/ jsxs(Drawer.Portal, {
|
|
2296
|
+
"data-slot": "drawer-portal",
|
|
2297
|
+
children: [
|
|
2298
|
+
/*#__PURE__*/ jsx(Drawer.Overlay, {
|
|
2299
|
+
"data-slot": "drawer-overlay",
|
|
2300
|
+
className: Drawer_styles_css_overlay
|
|
2301
|
+
}),
|
|
2302
|
+
/*#__PURE__*/ jsxs(Drawer.Content, {
|
|
2303
|
+
"data-slot": "drawer-content",
|
|
2304
|
+
className: clsx('group/drawer-content', Drawer_styles_css_content, className),
|
|
2305
|
+
children: [
|
|
2306
|
+
/*#__PURE__*/ jsx("div", {
|
|
2307
|
+
className: dragHandle
|
|
2308
|
+
}),
|
|
2309
|
+
/*#__PURE__*/ jsxs("div", {
|
|
2310
|
+
"data-slot": "drawer-header",
|
|
2311
|
+
className: Drawer_styles_css_header,
|
|
2312
|
+
children: [
|
|
2313
|
+
/*#__PURE__*/ jsx(Drawer.Title, {
|
|
2314
|
+
"data-slot": "drawer-title",
|
|
2315
|
+
className: Drawer_styles_css_title,
|
|
2316
|
+
children: title
|
|
2317
|
+
}),
|
|
2318
|
+
/*#__PURE__*/ jsx(Drawer.Description, {
|
|
2319
|
+
"data-slot": "drawer-description",
|
|
2320
|
+
className: Drawer_styles_css_description,
|
|
2321
|
+
children: description
|
|
2322
|
+
})
|
|
2323
|
+
]
|
|
2324
|
+
}),
|
|
2325
|
+
children,
|
|
2326
|
+
/*#__PURE__*/ jsxs("div", {
|
|
2327
|
+
"data-slot": "drawer-footer",
|
|
2328
|
+
className: Drawer_styles_css_footer,
|
|
2329
|
+
children: [
|
|
2330
|
+
footer,
|
|
2331
|
+
closeButton && /*#__PURE__*/ jsx(Drawer.Close, {
|
|
2332
|
+
"data-slot": "drawer-close",
|
|
2333
|
+
asChild: true,
|
|
2334
|
+
children: closeButton
|
|
2335
|
+
})
|
|
2336
|
+
]
|
|
2337
|
+
})
|
|
2338
|
+
]
|
|
2339
|
+
})
|
|
2340
|
+
]
|
|
2341
|
+
})
|
|
2342
|
+
]
|
|
2343
|
+
});
|
|
2344
|
+
var arrow = 'style__a5l83v4';
|
|
2345
|
+
var arrowLeft = 'style__a5l83v5';
|
|
2346
|
+
var arrowRight = 'style__a5l83v6';
|
|
2347
|
+
var carousel = 'style__a5l83v0';
|
|
2348
|
+
var carouselInner = 'style__a5l83v1';
|
|
2349
|
+
var styles_css_image = 'style__a5l83v3';
|
|
2350
|
+
var styles_css_indicator = 'style__a5l83v8';
|
|
2351
|
+
var indicators = 'style__a5l83v7';
|
|
2352
|
+
var slide = 'style__a5l83v2';
|
|
2353
|
+
const ImageCarousel = ({ images = [], autoPlay = false, interval = 5000 })=>{
|
|
2354
|
+
const [currentIndex, setCurrentIndex] = useState(0);
|
|
2355
|
+
const goToPrevious = ()=>{
|
|
2356
|
+
setCurrentIndex((prevIndex)=>0 === prevIndex ? images.length - 1 : prevIndex - 1);
|
|
2357
|
+
};
|
|
2358
|
+
const goToNext = ()=>{
|
|
2359
|
+
setCurrentIndex((prevIndex)=>prevIndex === images.length - 1 ? 0 : prevIndex + 1);
|
|
2360
|
+
};
|
|
2361
|
+
const goToSlide = (index)=>{
|
|
2362
|
+
setCurrentIndex(index);
|
|
2363
|
+
};
|
|
2364
|
+
useEffect(()=>{
|
|
2365
|
+
if (!autoPlay) return;
|
|
2366
|
+
const timer = setInterval(()=>{
|
|
2367
|
+
setCurrentIndex((prevIndex)=>prevIndex === images.length - 1 ? 0 : prevIndex + 1);
|
|
2368
|
+
}, interval);
|
|
2369
|
+
return ()=>clearInterval(timer);
|
|
2370
|
+
}, [
|
|
2371
|
+
autoPlay,
|
|
2372
|
+
images.length,
|
|
2373
|
+
interval
|
|
2374
|
+
]);
|
|
2375
|
+
if (0 === images.length) return /*#__PURE__*/ jsx("div", {
|
|
2376
|
+
className: carousel,
|
|
2377
|
+
children: "Нет изображений для отображения"
|
|
2378
|
+
});
|
|
2379
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
2380
|
+
className: carousel,
|
|
2381
|
+
children: [
|
|
2382
|
+
/*#__PURE__*/ jsx("div", {
|
|
2383
|
+
className: carouselInner,
|
|
2384
|
+
style: {
|
|
2385
|
+
transform: `translateX(-${100 * currentIndex}%)`
|
|
2386
|
+
},
|
|
2387
|
+
children: images.map((image, index)=>/*#__PURE__*/ jsx("div", {
|
|
2388
|
+
className: slide,
|
|
2389
|
+
children: /*#__PURE__*/ jsx("img", {
|
|
2390
|
+
src: image.src,
|
|
2391
|
+
alt: image.alt || `Slide ${index + 1}`,
|
|
2392
|
+
className: styles_css_image
|
|
2393
|
+
})
|
|
2394
|
+
}, image.src))
|
|
2395
|
+
}),
|
|
2396
|
+
images.length > 1 && /*#__PURE__*/ jsxs(Fragment, {
|
|
2397
|
+
children: [
|
|
2398
|
+
/*#__PURE__*/ jsx("button", {
|
|
2399
|
+
type: "button",
|
|
2400
|
+
className: clsx(arrow, arrowLeft),
|
|
2401
|
+
onClick: goToPrevious,
|
|
2402
|
+
children: /*#__PURE__*/ jsx(ChevronLeft, {
|
|
2403
|
+
size: 24
|
|
2404
|
+
})
|
|
2405
|
+
}),
|
|
2406
|
+
/*#__PURE__*/ jsx("button", {
|
|
2407
|
+
type: "button",
|
|
2408
|
+
className: clsx(arrow, arrowRight),
|
|
2409
|
+
onClick: goToNext,
|
|
2410
|
+
children: /*#__PURE__*/ jsx(ChevronRight, {
|
|
2411
|
+
size: 24
|
|
2412
|
+
})
|
|
2413
|
+
}),
|
|
2414
|
+
/*#__PURE__*/ jsx("div", {
|
|
2415
|
+
className: indicators,
|
|
2416
|
+
children: images.map(({ src }, index)=>/*#__PURE__*/ jsx("button", {
|
|
2417
|
+
type: "button",
|
|
2418
|
+
className: `${styles_css_indicator} ${currentIndex === index ? 'active' : ''}`,
|
|
2419
|
+
onClick: ()=>goToSlide(index)
|
|
2420
|
+
}, src))
|
|
2421
|
+
})
|
|
2422
|
+
]
|
|
2423
|
+
})
|
|
2424
|
+
]
|
|
2425
|
+
});
|
|
2426
|
+
};
|
|
2427
|
+
var separatorClass = 'style__te1pgr0';
|
|
2428
|
+
const Separator = ({ separator = '•', ...props })=>/*#__PURE__*/ jsx("div", {
|
|
2429
|
+
...props,
|
|
2430
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
2431
|
+
className: separatorClass,
|
|
2432
|
+
children: separator
|
|
2433
|
+
})
|
|
2434
|
+
});
|
|
2435
|
+
var active = 'style__rtks2g1';
|
|
2436
|
+
var caret = 'style__rtks2g4';
|
|
2437
|
+
var caretContainer = 'style__rtks2g2';
|
|
2438
|
+
var styles_css_slot = 'style__rtks2g0';
|
|
2439
|
+
const Slot_Slot = ({ char, hasFakeCaret, isActive, ...props })=>/*#__PURE__*/ jsxs("div", {
|
|
2440
|
+
className: clsx(styles_css_slot, {
|
|
2441
|
+
[active]: isActive
|
|
2442
|
+
}),
|
|
2443
|
+
...props,
|
|
2444
|
+
children: [
|
|
2445
|
+
char,
|
|
2446
|
+
hasFakeCaret && /*#__PURE__*/ jsx("div", {
|
|
2447
|
+
className: caretContainer,
|
|
2448
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
2449
|
+
className: caret
|
|
2450
|
+
})
|
|
2451
|
+
})
|
|
2452
|
+
]
|
|
2453
|
+
});
|
|
2454
|
+
var InputOTP_styles_css_container = 'style__1iixe0l0';
|
|
2455
|
+
var InputOTP_styles_css_disabled = 'style__1iixe0l3';
|
|
2456
|
+
var group = 'style__1iixe0l2';
|
|
2457
|
+
var styles_css_input = 'style__1iixe0l1';
|
|
2458
|
+
const InputOTP = ({ className, containerClassName, disabled, ...props })=>/*#__PURE__*/ jsx(OTPInput, {
|
|
2459
|
+
containerClassName: clsx(InputOTP_styles_css_container, {
|
|
2460
|
+
[InputOTP_styles_css_disabled]: disabled
|
|
2461
|
+
}, containerClassName),
|
|
2462
|
+
className: clsx(styles_css_input, className),
|
|
2463
|
+
render: ({ slots })=>{
|
|
2464
|
+
if (slots.length % 2 !== 0) return /*#__PURE__*/ jsx("div", {
|
|
2465
|
+
className: group,
|
|
2466
|
+
children: slots.map((slot, index)=>/*#__PURE__*/ jsx(Slot_Slot, {
|
|
2467
|
+
...slot
|
|
2468
|
+
}, `${index.toString()}-${slot.char}`))
|
|
2469
|
+
});
|
|
2470
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
2471
|
+
children: [
|
|
2472
|
+
/*#__PURE__*/ jsx("div", {
|
|
2473
|
+
className: group,
|
|
2474
|
+
children: slots.slice(0, slots.length / 2).map((slot, idx)=>/*#__PURE__*/ jsx(Slot_Slot, {
|
|
2475
|
+
...slot
|
|
2476
|
+
}, `${idx.toString()}-${slot.char}`))
|
|
2477
|
+
}),
|
|
2478
|
+
/*#__PURE__*/ jsx(Separator, {}),
|
|
2479
|
+
/*#__PURE__*/ jsx("div", {
|
|
2480
|
+
className: group,
|
|
2481
|
+
children: slots.slice(slots.length / 2).map((slot, idx)=>/*#__PURE__*/ jsx(Slot_Slot, {
|
|
2482
|
+
...slot
|
|
2483
|
+
}, `${idx.toString()}-${slot.char}`))
|
|
2484
|
+
})
|
|
2485
|
+
]
|
|
2486
|
+
});
|
|
2487
|
+
},
|
|
2488
|
+
...props
|
|
2489
|
+
});
|
|
2490
|
+
var constants_NotificationVariantTypes = /*#__PURE__*/ function(NotificationVariantTypes) {
|
|
2491
|
+
NotificationVariantTypes["info"] = "info";
|
|
2492
|
+
NotificationVariantTypes["success"] = "success";
|
|
2493
|
+
NotificationVariantTypes["warning"] = "warning";
|
|
2494
|
+
NotificationVariantTypes["error"] = "error";
|
|
2495
|
+
return NotificationVariantTypes;
|
|
2496
|
+
}({});
|
|
2497
|
+
const NOTIFICATION_POSITIONS = {
|
|
2498
|
+
topRight: 'top-right',
|
|
2499
|
+
topLeft: 'top-left',
|
|
2500
|
+
bottomRight: 'bottom-right',
|
|
2501
|
+
bottomLeft: 'bottom-left',
|
|
2502
|
+
topCenter: 'top-center',
|
|
2503
|
+
bottomCenter: 'bottom-center'
|
|
2504
|
+
};
|
|
2505
|
+
class Notification {
|
|
2506
|
+
service;
|
|
2507
|
+
constructor(sonner){
|
|
2508
|
+
this.service = sonner;
|
|
2509
|
+
}
|
|
2510
|
+
message(title, message) {
|
|
2511
|
+
return this.service.message(title, {
|
|
2512
|
+
description: message
|
|
2513
|
+
});
|
|
2514
|
+
}
|
|
2515
|
+
success = (title)=>this.service.success(title);
|
|
2516
|
+
error = (title)=>this.service.error(title);
|
|
2517
|
+
info = (title)=>this.service.info(title);
|
|
2518
|
+
warning = (title)=>this.service.warning(title);
|
|
2519
|
+
loading = (title)=>this.service.loading(title);
|
|
2520
|
+
dismiss = (id)=>this.service.dismiss(id);
|
|
2521
|
+
custom = (node)=>this.service(node);
|
|
2522
|
+
action = ({ title, buttonLabel, onClick })=>this.service(title, {
|
|
2523
|
+
action: {
|
|
2524
|
+
label: buttonLabel,
|
|
2525
|
+
onClick
|
|
2526
|
+
}
|
|
2527
|
+
});
|
|
2528
|
+
}
|
|
2529
|
+
const notification = new Notification(toast);
|
|
2530
|
+
const NotificationContainer = ({ position = 'bottomRight', ...props })=>/*#__PURE__*/ jsx(Toaster, {
|
|
2531
|
+
duration: 3000,
|
|
2532
|
+
icons: {
|
|
2533
|
+
error: /*#__PURE__*/ jsx(OctagonAlert, {
|
|
2534
|
+
size: 20,
|
|
2535
|
+
color: theme.colors.error
|
|
2536
|
+
}),
|
|
2537
|
+
success: /*#__PURE__*/ jsx(CircleCheck, {
|
|
2538
|
+
size: 20,
|
|
2539
|
+
color: theme.colors.success
|
|
2540
|
+
}),
|
|
2541
|
+
warning: /*#__PURE__*/ jsx(TriangleAlert, {
|
|
2542
|
+
size: 20,
|
|
2543
|
+
color: theme.colors.warning
|
|
2544
|
+
}),
|
|
2545
|
+
info: /*#__PURE__*/ jsx(Info, {
|
|
2546
|
+
size: 20,
|
|
2547
|
+
color: theme.colors.info
|
|
2548
|
+
})
|
|
2549
|
+
},
|
|
2550
|
+
position: NOTIFICATION_POSITIONS[position],
|
|
2551
|
+
...props
|
|
2552
|
+
});
|
|
2553
|
+
const PAGE_CONTENT_CLASSNAME = 'page-content';
|
|
2554
|
+
const PAGE_HEADER_CLASSNAME = 'page_header';
|
|
2555
|
+
const PAGE_ASIDE_CLASSNAME = 'page_aside';
|
|
2556
|
+
var Aside_styles_css_rootClass = 'PageLayoutAside__1un4hm80';
|
|
2557
|
+
const Aside = ({ children, className })=>/*#__PURE__*/ jsx("aside", {
|
|
2558
|
+
className: clsx(Aside_styles_css_rootClass, className, PAGE_ASIDE_CLASSNAME),
|
|
2559
|
+
children: children
|
|
2560
|
+
});
|
|
2561
|
+
var fullHeightClass = 'style__1hr0uh01';
|
|
2562
|
+
var Content_styles_css_rootClass = 'style__1hr0uh00';
|
|
2563
|
+
const PageLayout_Content_Content_Content = (props)=>{
|
|
2564
|
+
const { className, children, isFullHeight = true } = props;
|
|
2565
|
+
return /*#__PURE__*/ jsx("article", {
|
|
2566
|
+
className: clsx(PAGE_CONTENT_CLASSNAME, Content_styles_css_rootClass, {
|
|
2567
|
+
[fullHeightClass]: isFullHeight
|
|
2568
|
+
}, className),
|
|
2569
|
+
children: children
|
|
2570
|
+
});
|
|
2571
|
+
};
|
|
2572
|
+
var Footer_styles_css_rootClass = 'style__1bd8jnw0';
|
|
2573
|
+
const Footer_Footer_Footer = (props)=>{
|
|
2574
|
+
const { children, className } = props;
|
|
2575
|
+
return /*#__PURE__*/ jsx("footer", {
|
|
2576
|
+
className: clsx(Footer_styles_css_rootClass, className),
|
|
2577
|
+
children: children
|
|
2578
|
+
});
|
|
2579
|
+
};
|
|
2580
|
+
var styles_css_actionsClass = 'style__nvcxbd3';
|
|
2581
|
+
var breadcrumbsClass = 'Breadcrumbs__nvcxbd0';
|
|
2582
|
+
var styles_css_buttonsClass = 'style__nvcxbd2';
|
|
2583
|
+
var Header_styles_css_rootClass = 'style__nvcxbd1';
|
|
2584
|
+
var subtitleClass = 'style__nvcxbd6';
|
|
2585
|
+
var subtitleContainerClass = 'style__nvcxbd7';
|
|
2586
|
+
var styles_css_titleClass = 'style__nvcxbd4';
|
|
2587
|
+
var titleContainerClass = 'style__nvcxbd5';
|
|
2588
|
+
const Header_Header_Header = (props)=>{
|
|
2589
|
+
const { title, subtitle, breadcrumbs, actions, backButton, className } = props;
|
|
2590
|
+
const { pinned, togglePinned } = useDashboard();
|
|
2591
|
+
useEffect(()=>{
|
|
2592
|
+
if ('string' == typeof title) document.title = title;
|
|
2593
|
+
}, [
|
|
2594
|
+
title
|
|
2595
|
+
]);
|
|
2596
|
+
return /*#__PURE__*/ jsxs("header", {
|
|
2597
|
+
className: clsx(PAGE_HEADER_CLASSNAME, Header_styles_css_rootClass, className),
|
|
2598
|
+
children: [
|
|
2599
|
+
/*#__PURE__*/ jsxs("div", {
|
|
2600
|
+
className: styles_css_buttonsClass,
|
|
2601
|
+
children: [
|
|
2602
|
+
/*#__PURE__*/ jsx(Tooltip, {
|
|
2603
|
+
text: pinned ? 'Развернуть' : 'Свернуть',
|
|
2604
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
2605
|
+
variant: "ghost",
|
|
2606
|
+
size: "icon",
|
|
2607
|
+
onClick: togglePinned,
|
|
2608
|
+
children: pinned ? /*#__PURE__*/ jsx(PanelLeftOpen, {}) : /*#__PURE__*/ jsx(PanelLeftClose, {})
|
|
2609
|
+
})
|
|
2610
|
+
}),
|
|
2611
|
+
backButton && /*#__PURE__*/ jsx(Tooltip, {
|
|
2612
|
+
text: "Назад",
|
|
2613
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
2614
|
+
...backButton,
|
|
2615
|
+
variant: "ghost",
|
|
2616
|
+
children: /*#__PURE__*/ jsx(ChevronLeft, {})
|
|
2617
|
+
})
|
|
2618
|
+
})
|
|
2619
|
+
]
|
|
2620
|
+
}),
|
|
2621
|
+
breadcrumbs && /*#__PURE__*/ jsx("div", {
|
|
2622
|
+
className: breadcrumbsClass,
|
|
2623
|
+
children: breadcrumbs
|
|
2624
|
+
}),
|
|
2625
|
+
/*#__PURE__*/ jsx("div", {
|
|
2626
|
+
className: styles_css_actionsClass,
|
|
2627
|
+
children: actions
|
|
2628
|
+
}),
|
|
2629
|
+
'string' == typeof title ? /*#__PURE__*/ jsx(Typography, {
|
|
2630
|
+
className: styles_css_titleClass,
|
|
2631
|
+
component: "h1",
|
|
2632
|
+
variant: "h3",
|
|
2633
|
+
"aria-level": 1,
|
|
2634
|
+
children: title
|
|
2635
|
+
}) : /*#__PURE__*/ jsx("div", {
|
|
2636
|
+
className: titleContainerClass,
|
|
2637
|
+
children: title
|
|
2638
|
+
}),
|
|
2639
|
+
subtitle && 'string' == typeof subtitle && /*#__PURE__*/ jsx(Typography, {
|
|
2640
|
+
className: subtitleClass,
|
|
2641
|
+
"aria-level": 2,
|
|
2642
|
+
children: subtitle
|
|
2643
|
+
}),
|
|
2644
|
+
subtitle && 'string' != typeof subtitle && /*#__PURE__*/ jsx("div", {
|
|
2645
|
+
className: subtitleContainerClass,
|
|
2646
|
+
children: subtitle
|
|
2647
|
+
})
|
|
2648
|
+
]
|
|
2649
|
+
});
|
|
2650
|
+
};
|
|
2651
|
+
var PageLayout_styles_css_rootClass = 'style__adrl250';
|
|
2652
|
+
const PageLayout = ({ children, className })=>/*#__PURE__*/ jsx("div", {
|
|
2653
|
+
className: clsx(PageLayout_styles_css_rootClass, className),
|
|
2654
|
+
children: children
|
|
2655
|
+
});
|
|
2656
|
+
PageLayout.Header = Header_Header_Header;
|
|
2657
|
+
PageLayout.Content = PageLayout_Content_Content_Content;
|
|
2658
|
+
PageLayout.Footer = Footer_Footer_Footer;
|
|
2659
|
+
PageLayout.Aside = Aside;
|
|
2660
|
+
var ellipsisSpan = 'style__p708oq1';
|
|
2661
|
+
var paginationContainer = 'style__p708oq0';
|
|
2662
|
+
const useLogic_range = (start, end)=>{
|
|
2663
|
+
const length = end - start + 1;
|
|
2664
|
+
return Array.from({
|
|
2665
|
+
length
|
|
2666
|
+
}, (_, idx)=>idx + start);
|
|
2667
|
+
};
|
|
2668
|
+
const Pagination_useLogic_useLogic = ({ totalCount, pageSize, siblingCount = 1, currentPage })=>{
|
|
2669
|
+
const paginationRange = useMemo(()=>{
|
|
2670
|
+
if (pageSize <= 0 || totalCount <= 0) return [];
|
|
2671
|
+
const totalPageCount = Math.ceil(totalCount / pageSize);
|
|
2672
|
+
const totalPageNumbersToShow = siblingCount + 5;
|
|
2673
|
+
if (totalPageNumbersToShow >= totalPageCount) return useLogic_range(1, totalPageCount);
|
|
2674
|
+
const leftSibling = Math.max(currentPage - siblingCount, 1);
|
|
2675
|
+
const rightSibling = Math.min(currentPage + siblingCount, totalPageCount);
|
|
2676
|
+
const showLeftDots = leftSibling > 2;
|
|
2677
|
+
const showRightDots = rightSibling < totalPageCount - 2;
|
|
2678
|
+
const firstPage = 1;
|
|
2679
|
+
const lastPage = totalPageCount;
|
|
2680
|
+
if (!showLeftDots && showRightDots) {
|
|
2681
|
+
const visiblePageCountBeforeDots = 3 + 2 * siblingCount;
|
|
2682
|
+
const leftRange = useLogic_range(1, visiblePageCountBeforeDots);
|
|
2683
|
+
return [
|
|
2684
|
+
...leftRange,
|
|
2685
|
+
null,
|
|
2686
|
+
totalPageCount
|
|
2687
|
+
];
|
|
2688
|
+
}
|
|
2689
|
+
if (showLeftDots && !showRightDots) {
|
|
2690
|
+
const visiblePageCountAfterDots = 3 + 2 * siblingCount;
|
|
2691
|
+
const rightRange = useLogic_range(totalPageCount - visiblePageCountAfterDots + 1, totalPageCount);
|
|
2692
|
+
return [
|
|
2693
|
+
firstPage,
|
|
2694
|
+
null,
|
|
2695
|
+
...rightRange
|
|
2696
|
+
];
|
|
2697
|
+
}
|
|
2698
|
+
if (showLeftDots && showRightDots) {
|
|
2699
|
+
const middleRange = useLogic_range(leftSibling, rightSibling);
|
|
2700
|
+
return [
|
|
2701
|
+
firstPage,
|
|
2702
|
+
null,
|
|
2703
|
+
...middleRange,
|
|
2704
|
+
null,
|
|
2705
|
+
lastPage
|
|
2706
|
+
];
|
|
2707
|
+
}
|
|
2708
|
+
return [];
|
|
2709
|
+
}, [
|
|
2710
|
+
totalCount,
|
|
2711
|
+
pageSize,
|
|
2712
|
+
siblingCount,
|
|
2713
|
+
currentPage
|
|
2714
|
+
]);
|
|
2715
|
+
return paginationRange;
|
|
2716
|
+
};
|
|
2717
|
+
function Pagination(props) {
|
|
2718
|
+
const { onPageChange, totalCount, siblingCount = 1, currentPage, pageSize, size = 'icon' } = props;
|
|
2719
|
+
const paginationRange = Pagination_useLogic_useLogic({
|
|
2720
|
+
currentPage,
|
|
2721
|
+
totalCount,
|
|
2722
|
+
siblingCount,
|
|
2723
|
+
pageSize
|
|
2724
|
+
});
|
|
2725
|
+
if (0 === currentPage || paginationRange && paginationRange.length < 2) return null;
|
|
2726
|
+
const onNext = ()=>{
|
|
2727
|
+
onPageChange(currentPage + 1);
|
|
2728
|
+
};
|
|
2729
|
+
const onPrevious = ()=>{
|
|
2730
|
+
onPageChange(currentPage - 1);
|
|
2731
|
+
};
|
|
2732
|
+
const lastPage = paginationRange.at(-1);
|
|
2733
|
+
return /*#__PURE__*/ jsxs("nav", {
|
|
2734
|
+
className: paginationContainer,
|
|
2735
|
+
children: [
|
|
2736
|
+
/*#__PURE__*/ jsx(Button, {
|
|
2737
|
+
variant: "ghost",
|
|
2738
|
+
size: size,
|
|
2739
|
+
onClick: onPrevious,
|
|
2740
|
+
disabled: 1 === currentPage,
|
|
2741
|
+
children: /*#__PURE__*/ jsx(ChevronLeft, {})
|
|
2742
|
+
}),
|
|
2743
|
+
paginationRange?.map((pageNumber, index)=>{
|
|
2744
|
+
if (!pageNumber) return /*#__PURE__*/ jsx("span", {
|
|
2745
|
+
className: ellipsisSpan,
|
|
2746
|
+
children: /*#__PURE__*/ jsx(Ellipsis, {})
|
|
2747
|
+
});
|
|
2748
|
+
return /*#__PURE__*/ jsx(Button, {
|
|
2749
|
+
size: size,
|
|
2750
|
+
variant: pageNumber === currentPage ? 'default' : 'outline',
|
|
2751
|
+
onClick: ()=>onPageChange(+pageNumber),
|
|
2752
|
+
children: pageNumber
|
|
2753
|
+
}, `${pageNumber}${index.toString()}`);
|
|
2754
|
+
}),
|
|
2755
|
+
/*#__PURE__*/ jsx(Button, {
|
|
2756
|
+
variant: "ghost",
|
|
2757
|
+
size: size,
|
|
2758
|
+
onClick: onNext,
|
|
2759
|
+
disabled: currentPage === lastPage,
|
|
2760
|
+
children: /*#__PURE__*/ jsx(ChevronRight, {})
|
|
2761
|
+
})
|
|
2762
|
+
]
|
|
2763
|
+
});
|
|
2764
|
+
}
|
|
2765
|
+
const MONTHS = [
|
|
2766
|
+
'Янв.',
|
|
2767
|
+
'Фев.',
|
|
2768
|
+
'Мар.',
|
|
2769
|
+
'Апр.',
|
|
2770
|
+
'Май',
|
|
2771
|
+
'Июн.',
|
|
2772
|
+
'Июл.',
|
|
2773
|
+
'Авг.',
|
|
2774
|
+
'Сен.',
|
|
2775
|
+
'Окт.',
|
|
2776
|
+
'Ноя.',
|
|
2777
|
+
'Дек.'
|
|
2778
|
+
];
|
|
2779
|
+
const QUARTERS = [
|
|
2780
|
+
'I квартал',
|
|
2781
|
+
'II квартал',
|
|
2782
|
+
'III квартал',
|
|
2783
|
+
'IV квартал'
|
|
2784
|
+
];
|
|
2785
|
+
var styles_css_months = 'style__1izfmw31';
|
|
2786
|
+
var quarters = 'style__1izfmw32';
|
|
2787
|
+
var PeriodPicker_styles_css_wrapper = 'style__1izfmw30';
|
|
2788
|
+
const getQuarter = (month)=>Math.ceil(month / 3);
|
|
2789
|
+
const getQuarterLabel = (date)=>{
|
|
2790
|
+
if (!date) return '';
|
|
2791
|
+
return `${QUARTERS[getQuarter(date.getMonth())]} ${date.getFullYear()}`;
|
|
2792
|
+
};
|
|
2793
|
+
function YearsDropdown({ year, onSelect, minDate, maxDate }) {
|
|
2794
|
+
const years = Array.from({
|
|
2795
|
+
length: maxDate.getFullYear() - minDate.getFullYear() + 1
|
|
2796
|
+
}, (_, index)=>minDate.getFullYear() + index);
|
|
2797
|
+
const onChange = (year)=>{
|
|
2798
|
+
onSelect?.(Number(year));
|
|
2799
|
+
};
|
|
2800
|
+
return /*#__PURE__*/ jsxs(Select, {
|
|
2801
|
+
onValueChange: onChange,
|
|
2802
|
+
value: year.toString(),
|
|
2803
|
+
children: [
|
|
2804
|
+
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
2805
|
+
children: /*#__PURE__*/ jsx(SelectValue, {
|
|
2806
|
+
placeholder: year.toString()
|
|
2807
|
+
})
|
|
2808
|
+
}),
|
|
2809
|
+
/*#__PURE__*/ jsx(SelectContent, {
|
|
2810
|
+
children: years.map((value)=>/*#__PURE__*/ jsx(SelectItem, {
|
|
2811
|
+
value: value.toString(),
|
|
2812
|
+
children: /*#__PURE__*/ jsx(Typography, {
|
|
2813
|
+
align: "center",
|
|
2814
|
+
variant: "subtitle1",
|
|
2815
|
+
transform: "capitalize",
|
|
2816
|
+
children: value
|
|
2817
|
+
})
|
|
2818
|
+
}, value))
|
|
2819
|
+
})
|
|
2820
|
+
]
|
|
2821
|
+
});
|
|
2822
|
+
}
|
|
2823
|
+
const PeriodPicker = (props)=>{
|
|
2824
|
+
const { label, disabled = false, value, onSelect, type = 'month', placeholder = 'month' === type ? 'Выберите месяц' : 'Выберите квартал', error, helperText, max = new Date(2050, 0, 1), min = new Date(2000, 0, 1), className, size, fullWidth, name } = props;
|
|
2825
|
+
const now = new Date();
|
|
2826
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
2827
|
+
const [year, setYear] = useState(now.getFullYear());
|
|
2828
|
+
const handleClose = ()=>{
|
|
2829
|
+
setIsOpen(false);
|
|
2830
|
+
};
|
|
2831
|
+
const handleSelect = (date)=>{
|
|
2832
|
+
onSelect?.(date);
|
|
2833
|
+
handleClose();
|
|
2834
|
+
};
|
|
2835
|
+
const textValue = 'month' === type ? value?.toLocaleDateString('ru-RU', {
|
|
2836
|
+
month: 'long',
|
|
2837
|
+
year: 'numeric'
|
|
2838
|
+
}) : getQuarterLabel(value);
|
|
2839
|
+
useEffect(()=>{
|
|
2840
|
+
if (value) setYear(value.getFullYear());
|
|
2841
|
+
}, [
|
|
2842
|
+
value
|
|
2843
|
+
]);
|
|
2844
|
+
return /*#__PURE__*/ jsxs(Popover, {
|
|
2845
|
+
open: isOpen,
|
|
2846
|
+
onOpenChange: setIsOpen,
|
|
2847
|
+
children: [
|
|
2848
|
+
/*#__PURE__*/ jsx(TextField, {
|
|
2849
|
+
label: label,
|
|
2850
|
+
value: textValue,
|
|
2851
|
+
disabled: disabled,
|
|
2852
|
+
size: size,
|
|
2853
|
+
fullWidth: fullWidth,
|
|
2854
|
+
name: name,
|
|
2855
|
+
endAdornment: /*#__PURE__*/ jsx(PopoverTrigger, {
|
|
2856
|
+
asChild: true,
|
|
2857
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
2858
|
+
disabled: disabled,
|
|
2859
|
+
variant: "ghost",
|
|
2860
|
+
size: "icon",
|
|
2861
|
+
children: /*#__PURE__*/ jsx(Calendar1, {})
|
|
2862
|
+
})
|
|
2863
|
+
}),
|
|
2864
|
+
placeholder: placeholder,
|
|
2865
|
+
error: error,
|
|
2866
|
+
helperText: helperText,
|
|
2867
|
+
className: className
|
|
2868
|
+
}),
|
|
2869
|
+
/*#__PURE__*/ jsx(PopoverContent, {
|
|
2870
|
+
align: "end",
|
|
2871
|
+
alignOffset: -10,
|
|
2872
|
+
side: "bottom",
|
|
2873
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
2874
|
+
className: PeriodPicker_styles_css_wrapper,
|
|
2875
|
+
children: [
|
|
2876
|
+
/*#__PURE__*/ jsx(YearsDropdown, {
|
|
2877
|
+
year: year,
|
|
2878
|
+
onSelect: setYear,
|
|
2879
|
+
minDate: min,
|
|
2880
|
+
maxDate: max
|
|
2881
|
+
}),
|
|
2882
|
+
'month' === type ? /*#__PURE__*/ jsx("div", {
|
|
2883
|
+
className: styles_css_months,
|
|
2884
|
+
children: MONTHS.map((label, index)=>{
|
|
2885
|
+
const date = new Date(year, index, value?.getDate() || 1);
|
|
2886
|
+
return /*#__PURE__*/ jsx(Button, {
|
|
2887
|
+
variant: value?.getMonth() === index && value.getFullYear() === date.getFullYear() ? 'default' : 'ghost',
|
|
2888
|
+
disabled: date < min || date > max,
|
|
2889
|
+
onClick: ()=>handleSelect(date),
|
|
2890
|
+
children: label
|
|
2891
|
+
}, label);
|
|
2892
|
+
})
|
|
2893
|
+
}) : /*#__PURE__*/ jsx("div", {
|
|
2894
|
+
className: quarters,
|
|
2895
|
+
children: QUARTERS.map((label, index)=>{
|
|
2896
|
+
const monthIndex = 3 * index;
|
|
2897
|
+
const date = new Date(year, monthIndex, 1);
|
|
2898
|
+
return /*#__PURE__*/ jsx(Button, {
|
|
2899
|
+
variant: value && [
|
|
2900
|
+
getQuarter(value.getMonth()) === index,
|
|
2901
|
+
value.getFullYear() === date.getFullYear()
|
|
2902
|
+
].every(Boolean) ? 'default' : 'ghost',
|
|
2903
|
+
disabled: date < min || date > max,
|
|
2904
|
+
onClick: ()=>handleSelect(date),
|
|
2905
|
+
children: label
|
|
2906
|
+
}, label);
|
|
2907
|
+
})
|
|
2908
|
+
})
|
|
2909
|
+
]
|
|
2910
|
+
})
|
|
2911
|
+
})
|
|
2912
|
+
]
|
|
2913
|
+
});
|
|
2914
|
+
};
|
|
2915
|
+
var iconClass = 'style__ia95d14';
|
|
2916
|
+
var indicatorClass = 'style__ia95d13';
|
|
2917
|
+
var styles_css_itemClass = 'style__ia95d12';
|
|
2918
|
+
var itemWrapperClass = 'style__ia95d11';
|
|
2919
|
+
var radioGroupClass = 'RadioGroup__ia95d10';
|
|
2920
|
+
const RadioGroup = ({ className, ...props })=>/*#__PURE__*/ jsx(react_radio_group_Root, {
|
|
2921
|
+
"data-slot": "radio-group",
|
|
2922
|
+
className: clsx_0(radioGroupClass, className),
|
|
2923
|
+
...props
|
|
2924
|
+
});
|
|
2925
|
+
const RadioGroupItem = ({ className, label, ...props })=>/*#__PURE__*/ jsxs("div", {
|
|
2926
|
+
className: itemWrapperClass,
|
|
2927
|
+
children: [
|
|
2928
|
+
/*#__PURE__*/ jsx(react_radio_group_Item, {
|
|
2929
|
+
"data-slot": "radio-group-item",
|
|
2930
|
+
id: props.id || props.value,
|
|
2931
|
+
className: clsx(styles_css_itemClass, className),
|
|
2932
|
+
...props,
|
|
2933
|
+
children: /*#__PURE__*/ jsx(Indicator, {
|
|
2934
|
+
"data-slot": "radio-group-indicator",
|
|
2935
|
+
className: indicatorClass,
|
|
2936
|
+
children: /*#__PURE__*/ jsx(CircleIcon, {
|
|
2937
|
+
className: iconClass
|
|
2938
|
+
})
|
|
2939
|
+
})
|
|
2940
|
+
}),
|
|
2941
|
+
/*#__PURE__*/ jsx(Label, {
|
|
2942
|
+
htmlFor: props.id || props.value,
|
|
2943
|
+
"data-slot": "radio-group-label",
|
|
2944
|
+
children: label
|
|
2945
|
+
})
|
|
2946
|
+
]
|
|
2947
|
+
});
|
|
2948
|
+
var styles_css_range = 'style__h9oy582';
|
|
2949
|
+
var Slider_styles_css_root = 'style__h9oy580';
|
|
2950
|
+
var thumb = 'style__h9oy583';
|
|
2951
|
+
var track = 'style__h9oy581';
|
|
2952
|
+
const Slider = ({ className, ...props })=>/*#__PURE__*/ jsxs(react_slider_Root, {
|
|
2953
|
+
className: clsx(Slider_styles_css_root, className),
|
|
2954
|
+
...props,
|
|
2955
|
+
children: [
|
|
2956
|
+
/*#__PURE__*/ jsx(Track, {
|
|
2957
|
+
className: track,
|
|
2958
|
+
children: /*#__PURE__*/ jsx(Range, {
|
|
2959
|
+
className: styles_css_range
|
|
2960
|
+
})
|
|
2961
|
+
}),
|
|
2962
|
+
/*#__PURE__*/ jsx(Thumb, {
|
|
2963
|
+
className: thumb
|
|
2964
|
+
}),
|
|
2965
|
+
props.value?.length === 2 && /*#__PURE__*/ jsx(Thumb, {
|
|
2966
|
+
className: thumb
|
|
2967
|
+
})
|
|
2968
|
+
]
|
|
2969
|
+
});
|
|
2970
|
+
var activeClass = 'style__1pnwkko1';
|
|
2971
|
+
var RangeInput_styles_css_container = 'style__1pnwkko0';
|
|
2972
|
+
var inputClass = 'style__1pnwkko6';
|
|
2973
|
+
var RangeInput_styles_css_sizes = {
|
|
2974
|
+
sm: 'sm__1pnwkko2',
|
|
2975
|
+
md: 'md__1pnwkko3',
|
|
2976
|
+
lg: 'lg__1pnwkko4'
|
|
2977
|
+
};
|
|
2978
|
+
var sliderClass = 'style__1pnwkko7';
|
|
2979
|
+
var styles_css_textClass = 'style__1pnwkko5';
|
|
2980
|
+
const RangeInput_useLogic_useLogic_useLogic = ({ min, max, maxValue, minValue, onChange })=>{
|
|
2981
|
+
const minId = useId();
|
|
2982
|
+
const maxId = useId();
|
|
2983
|
+
const [minVal, setMinVal] = useState(min);
|
|
2984
|
+
const [maxVal, setMaxVal] = useState(max);
|
|
2985
|
+
const onValueChange = (newValue)=>{
|
|
2986
|
+
if (newValue[0] === newValue[1]) return void onChange(newValue[0], newValue[1]);
|
|
2987
|
+
setMinVal(newValue[0]);
|
|
2988
|
+
setMaxVal(newValue[1]);
|
|
2989
|
+
};
|
|
2990
|
+
const onMinValueChange = (event)=>{
|
|
2991
|
+
const { value } = event.target;
|
|
2992
|
+
if (!Number.isNaN(+value)) setMinVal(+value);
|
|
2993
|
+
};
|
|
2994
|
+
const onMaxValueChange = (event)=>{
|
|
2995
|
+
const { value } = event.target;
|
|
2996
|
+
if (!Number.isNaN(value)) setMaxVal(+value);
|
|
2997
|
+
};
|
|
2998
|
+
const onKeyDown = (event)=>{
|
|
2999
|
+
if ('Enter' === event.key) {
|
|
3000
|
+
const minValue = minVal >= min && minVal <= max ? minVal : min;
|
|
3001
|
+
const maxValue = maxVal >= min && maxVal <= max ? maxVal : max;
|
|
3002
|
+
onChange(minValue, maxValue);
|
|
3003
|
+
}
|
|
3004
|
+
};
|
|
3005
|
+
const onConfirm = (value)=>{
|
|
3006
|
+
onChange(value[0], value[1]);
|
|
3007
|
+
};
|
|
3008
|
+
useEffect(()=>{
|
|
3009
|
+
setMinVal(minValue ? minValue : min);
|
|
3010
|
+
setMaxVal(maxValue ? maxValue : max);
|
|
3011
|
+
}, [
|
|
3012
|
+
minValue,
|
|
3013
|
+
maxValue,
|
|
3014
|
+
min,
|
|
3015
|
+
max
|
|
3016
|
+
]);
|
|
3017
|
+
return {
|
|
3018
|
+
maxId,
|
|
3019
|
+
minId,
|
|
3020
|
+
minVal,
|
|
3021
|
+
maxVal,
|
|
3022
|
+
onValueChange,
|
|
3023
|
+
onMinValueChange,
|
|
3024
|
+
onMaxValueChange,
|
|
3025
|
+
onKeyDown,
|
|
3026
|
+
onConfirm
|
|
3027
|
+
};
|
|
3028
|
+
};
|
|
3029
|
+
function RangeInput({ min, max, onChange, minValue, maxValue, width = 150, label = '', unit = '', size = 'md', className, isActive, minInputRef, maxInputRef }) {
|
|
3030
|
+
const { onMinValueChange, onMaxValueChange, minVal, maxVal, onKeyDown, onValueChange, onConfirm, minId, maxId } = RangeInput_useLogic_useLogic_useLogic({
|
|
3031
|
+
min,
|
|
3032
|
+
max,
|
|
3033
|
+
maxValue,
|
|
3034
|
+
minValue,
|
|
3035
|
+
onChange
|
|
3036
|
+
});
|
|
3037
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
3038
|
+
className: clsx(RangeInput_styles_css_container, RangeInput_styles_css_sizes[size], {
|
|
3039
|
+
[activeClass]: isActive
|
|
3040
|
+
}, className),
|
|
3041
|
+
style: {
|
|
3042
|
+
width
|
|
3043
|
+
},
|
|
3044
|
+
children: [
|
|
3045
|
+
/*#__PURE__*/ jsx(Typography, {
|
|
3046
|
+
className: styles_css_textClass,
|
|
3047
|
+
color: "disabled",
|
|
3048
|
+
variant: "body2",
|
|
3049
|
+
children: label
|
|
3050
|
+
}),
|
|
3051
|
+
/*#__PURE__*/ jsx(Typography, {
|
|
3052
|
+
className: styles_css_textClass,
|
|
3053
|
+
color: "disabled",
|
|
3054
|
+
variant: "body2",
|
|
3055
|
+
children: "от"
|
|
3056
|
+
}),
|
|
3057
|
+
/*#__PURE__*/ jsx("input", {
|
|
3058
|
+
className: inputClass,
|
|
3059
|
+
type: "text",
|
|
3060
|
+
id: minId,
|
|
3061
|
+
value: minVal,
|
|
3062
|
+
onChange: onMinValueChange,
|
|
3063
|
+
onKeyDown: onKeyDown,
|
|
3064
|
+
ref: minInputRef
|
|
3065
|
+
}),
|
|
3066
|
+
/*#__PURE__*/ jsx(Typography, {
|
|
3067
|
+
className: styles_css_textClass,
|
|
3068
|
+
color: "disabled",
|
|
3069
|
+
variant: "body2",
|
|
3070
|
+
children: "до"
|
|
3071
|
+
}),
|
|
3072
|
+
/*#__PURE__*/ jsx("input", {
|
|
3073
|
+
className: inputClass,
|
|
3074
|
+
type: "text",
|
|
3075
|
+
id: maxId,
|
|
3076
|
+
value: maxVal,
|
|
3077
|
+
onChange: onMaxValueChange,
|
|
3078
|
+
onKeyDown: onKeyDown,
|
|
3079
|
+
ref: maxInputRef
|
|
3080
|
+
}),
|
|
3081
|
+
/*#__PURE__*/ jsx(Typography, {
|
|
3082
|
+
className: styles_css_textClass,
|
|
3083
|
+
color: "disabled",
|
|
3084
|
+
variant: "body2",
|
|
3085
|
+
children: unit
|
|
3086
|
+
}),
|
|
3087
|
+
/*#__PURE__*/ jsx("div", {
|
|
3088
|
+
className: sliderClass,
|
|
3089
|
+
children: /*#__PURE__*/ jsx(Slider, {
|
|
3090
|
+
min: min,
|
|
3091
|
+
max: max,
|
|
3092
|
+
value: [
|
|
3093
|
+
Number(minVal),
|
|
3094
|
+
Number(maxVal)
|
|
3095
|
+
],
|
|
3096
|
+
onValueChange: onValueChange,
|
|
3097
|
+
onValueCommit: onConfirm
|
|
3098
|
+
})
|
|
3099
|
+
})
|
|
3100
|
+
]
|
|
3101
|
+
});
|
|
3102
|
+
}
|
|
3103
|
+
var ScrollTopButton_styles_css_button = 'style__1ou2vjc0';
|
|
3104
|
+
var styles_css_visible = 'style__1ou2vjc1';
|
|
3105
|
+
function ScrollTopButton({ onClick, variant = 'outline', ...props }) {
|
|
3106
|
+
const [isVisible, setIsVisible] = useState(false);
|
|
3107
|
+
const scrollToTop = ()=>{
|
|
3108
|
+
window.scrollTo({
|
|
3109
|
+
top: 0,
|
|
3110
|
+
left: 0,
|
|
3111
|
+
behavior: 'smooth'
|
|
3112
|
+
});
|
|
3113
|
+
};
|
|
3114
|
+
useEffect(()=>{
|
|
3115
|
+
const toggleVisibility = ()=>{
|
|
3116
|
+
window.scrollY > 400 ? setIsVisible(true) : setIsVisible(false);
|
|
3117
|
+
};
|
|
3118
|
+
window.addEventListener('scroll', toggleVisibility);
|
|
3119
|
+
return ()=>{
|
|
3120
|
+
window.removeEventListener('scroll', toggleVisibility);
|
|
3121
|
+
};
|
|
3122
|
+
}, []);
|
|
3123
|
+
return /*#__PURE__*/ jsx(Button, {
|
|
3124
|
+
type: "button",
|
|
3125
|
+
variant: variant,
|
|
3126
|
+
className: clsx(ScrollTopButton_styles_css_button, {
|
|
3127
|
+
[styles_css_visible]: isVisible
|
|
3128
|
+
}),
|
|
3129
|
+
onClick: onClick || scrollToTop,
|
|
3130
|
+
...props,
|
|
3131
|
+
children: /*#__PURE__*/ jsx(ChevronUp, {})
|
|
3132
|
+
});
|
|
3133
|
+
}
|
|
3134
|
+
var chevron = 'style__5ilg7oe';
|
|
3135
|
+
var Select_styles_css_content = 'style__5ilg7o7';
|
|
3136
|
+
var Select_styles_css_icon = 'style__5ilg7od';
|
|
3137
|
+
var Select_styles_css_item = 'style__5ilg7oa';
|
|
3138
|
+
var itemIndicatorWrapper = 'style__5ilg7ob';
|
|
3139
|
+
var Select_styles_css_label = 'style__5ilg7o9';
|
|
3140
|
+
var scrollButton = 'style__5ilg7o6';
|
|
3141
|
+
var Select_styles_css_separator = 'style__5ilg7oc';
|
|
3142
|
+
var Select_styles_css_sizes = {
|
|
3143
|
+
sm: 'sm__5ilg7o3',
|
|
3144
|
+
md: 'md__5ilg7o4',
|
|
3145
|
+
lg: 'lg__5ilg7o5'
|
|
3146
|
+
};
|
|
3147
|
+
var Select_styles_css_trigger = 'style__5ilg7o2';
|
|
3148
|
+
var viewport = 'style__5ilg7o8';
|
|
3149
|
+
const Select = react_select_Root;
|
|
3150
|
+
const SelectGroup = Group;
|
|
3151
|
+
const SelectValue = react_select_Value;
|
|
3152
|
+
const SelectTrigger = ({ className, children, size = 'md', ...props })=>/*#__PURE__*/ jsxs(react_select_Trigger, {
|
|
3153
|
+
className: clsx(Select_styles_css_trigger, Select_styles_css_sizes[size], className),
|
|
3154
|
+
...props,
|
|
3155
|
+
children: [
|
|
3156
|
+
children,
|
|
3157
|
+
/*#__PURE__*/ jsx(Icon, {
|
|
3158
|
+
asChild: true,
|
|
3159
|
+
children: /*#__PURE__*/ jsx(ChevronDown, {
|
|
3160
|
+
className: chevron
|
|
3161
|
+
})
|
|
3162
|
+
})
|
|
3163
|
+
]
|
|
3164
|
+
});
|
|
3165
|
+
const SelectScrollUpButton = ({ className, ...props })=>/*#__PURE__*/ jsx(ScrollUpButton, {
|
|
3166
|
+
className: clsx(scrollButton, className),
|
|
3167
|
+
...props,
|
|
3168
|
+
children: /*#__PURE__*/ jsx(ChevronUp, {
|
|
3169
|
+
className: Select_styles_css_icon
|
|
3170
|
+
})
|
|
3171
|
+
});
|
|
3172
|
+
const SelectScrollDownButton = ({ className, ...props })=>/*#__PURE__*/ jsx(ScrollDownButton, {
|
|
3173
|
+
className: clsx(scrollButton, className),
|
|
3174
|
+
...props,
|
|
3175
|
+
children: /*#__PURE__*/ jsx(ChevronDown, {
|
|
3176
|
+
className: Select_styles_css_icon
|
|
3177
|
+
})
|
|
3178
|
+
});
|
|
3179
|
+
const SelectContent = ({ className, children, position = 'popper', ...props })=>/*#__PURE__*/ jsx(react_select_Portal, {
|
|
3180
|
+
children: /*#__PURE__*/ jsxs(react_select_Content, {
|
|
3181
|
+
className: clsx(Select_styles_css_content, className),
|
|
3182
|
+
position: position,
|
|
3183
|
+
...props,
|
|
3184
|
+
children: [
|
|
3185
|
+
/*#__PURE__*/ jsx(SelectScrollUpButton, {}),
|
|
3186
|
+
/*#__PURE__*/ jsx(Viewport, {
|
|
3187
|
+
className: viewport,
|
|
3188
|
+
children: children
|
|
3189
|
+
}),
|
|
3190
|
+
/*#__PURE__*/ jsx(SelectScrollDownButton, {})
|
|
3191
|
+
]
|
|
3192
|
+
})
|
|
3193
|
+
});
|
|
3194
|
+
const SelectLabel = ({ className, ...props })=>/*#__PURE__*/ jsx(react_select_Label, {
|
|
3195
|
+
className: `${Select_styles_css_label} ${className || ''}`,
|
|
3196
|
+
...props
|
|
3197
|
+
});
|
|
3198
|
+
const SelectItem = ({ className, children, ...props })=>/*#__PURE__*/ jsxs(react_select_Item, {
|
|
3199
|
+
className: `${Select_styles_css_item} ${className || ''}`,
|
|
3200
|
+
...props,
|
|
3201
|
+
children: [
|
|
3202
|
+
/*#__PURE__*/ jsx("span", {
|
|
3203
|
+
className: itemIndicatorWrapper,
|
|
3204
|
+
children: /*#__PURE__*/ jsx(ItemIndicator, {
|
|
3205
|
+
children: /*#__PURE__*/ jsx(Check, {
|
|
3206
|
+
className: Select_styles_css_icon
|
|
3207
|
+
})
|
|
3208
|
+
})
|
|
3209
|
+
}),
|
|
3210
|
+
/*#__PURE__*/ jsx(ItemText, {
|
|
3211
|
+
children: children
|
|
3212
|
+
})
|
|
3213
|
+
]
|
|
3214
|
+
});
|
|
3215
|
+
const SelectSeparator = ({ className, ...props })=>/*#__PURE__*/ jsx(react_select_Separator, {
|
|
3216
|
+
className: `${Select_styles_css_separator} ${className || ''}`,
|
|
3217
|
+
...props
|
|
3218
|
+
});
|
|
3219
|
+
var Tabs_styles_css_contentClass = 'style__hworoa5';
|
|
3220
|
+
var listClass = 'style__hworoa0';
|
|
3221
|
+
var Tabs_styles_css_sizes = {
|
|
3222
|
+
sm: 'sm__hworoa2',
|
|
3223
|
+
md: 'md__hworoa3',
|
|
3224
|
+
lg: 'lg__hworoa4'
|
|
3225
|
+
};
|
|
3226
|
+
var styles_css_triggerClass = 'style__hworoa1';
|
|
3227
|
+
const TabsContent = ({ className, ...props })=>/*#__PURE__*/ jsx(react_tabs_Content, {
|
|
3228
|
+
className: clsx(Tabs_styles_css_contentClass, className),
|
|
3229
|
+
...props
|
|
3230
|
+
});
|
|
3231
|
+
const TabsList = ({ className, ...props })=>/*#__PURE__*/ jsx(List, {
|
|
3232
|
+
className: clsx(listClass, className),
|
|
3233
|
+
...props
|
|
3234
|
+
});
|
|
3235
|
+
const TabsTrigger = ({ className, size = 'md', ...props })=>/*#__PURE__*/ jsx(react_tabs_Trigger, {
|
|
3236
|
+
className: clsx(styles_css_triggerClass, Tabs_styles_css_sizes[size], className),
|
|
3237
|
+
...props
|
|
3238
|
+
});
|
|
3239
|
+
const Tabs_Tabs = (props)=>/*#__PURE__*/ jsx(Tabs, {
|
|
3240
|
+
...props
|
|
3241
|
+
});
|
|
3242
|
+
Tabs_Tabs.Content = TabsContent;
|
|
3243
|
+
Tabs_Tabs.List = TabsList;
|
|
3244
|
+
Tabs_Tabs.Trigger = TabsTrigger;
|
|
3245
|
+
const Form = ({ form, children, ...props })=>/*#__PURE__*/ jsx(FormProvider, {
|
|
3246
|
+
...form,
|
|
3247
|
+
children: /*#__PURE__*/ jsx("form", {
|
|
3248
|
+
noValidate: true,
|
|
3249
|
+
...props,
|
|
3250
|
+
children: children
|
|
3251
|
+
})
|
|
3252
|
+
});
|
|
3253
|
+
function FormMaskField({ name, control, ...props }) {
|
|
3254
|
+
return /*#__PURE__*/ jsx(Controller, {
|
|
3255
|
+
control: control,
|
|
3256
|
+
name: name,
|
|
3257
|
+
render: ({ field, fieldState })=>/*#__PURE__*/ jsx(MaskField, {
|
|
3258
|
+
...props,
|
|
3259
|
+
...field,
|
|
3260
|
+
error: !!fieldState.error,
|
|
3261
|
+
helperText: fieldState.error?.message
|
|
3262
|
+
})
|
|
3263
|
+
});
|
|
3264
|
+
}
|
|
3265
|
+
const useForm_useForm = ({ mode = 'onBlur', ...params } = {})=>useForm({
|
|
3266
|
+
...params,
|
|
3267
|
+
mode
|
|
3268
|
+
});
|
|
3269
|
+
const FormSubmitButton = ({ children, isLoading, ...props })=>{
|
|
3270
|
+
const { formState } = useFormContext();
|
|
3271
|
+
return /*#__PURE__*/ jsx(Button, {
|
|
3272
|
+
type: "submit",
|
|
3273
|
+
isLoading: isLoading || formState.isSubmitting,
|
|
3274
|
+
...props,
|
|
3275
|
+
children: children
|
|
3276
|
+
});
|
|
3277
|
+
};
|
|
3278
|
+
function FormTextField({ name, control, gridArea, ...props }) {
|
|
3279
|
+
return /*#__PURE__*/ jsx(Controller, {
|
|
3280
|
+
control: control,
|
|
3281
|
+
name: name,
|
|
3282
|
+
render: ({ field, fieldState })=>/*#__PURE__*/ jsx(TextField, {
|
|
3283
|
+
...props,
|
|
3284
|
+
...field,
|
|
3285
|
+
style: {
|
|
3286
|
+
gridArea
|
|
3287
|
+
},
|
|
3288
|
+
value: field.value || '',
|
|
3289
|
+
error: !!fieldState.error,
|
|
3290
|
+
helperText: fieldState.error?.message
|
|
3291
|
+
})
|
|
3292
|
+
});
|
|
3293
|
+
}
|
|
3294
|
+
var src_DEFAULT_SEPARATOR = ":";
|
|
3295
|
+
var src_DEFAULT_SYMBOL = "—";
|
|
3296
|
+
var src_NOTIFY_CLASSNAME = "notify";
|
|
3297
|
+
export { Accordion_Accordion as Accordion, AlertDialog_AlertDialog as AlertDialog, Badge, Button, ButtonGroup, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, Checkbox_Checkbox as Checkbox, CircularProgress, ConfirmAction, ContentState, Controller as FormController, CopyTypography, DESCRIPTION_ROOT_CLASSNAME, DashboardLayout, DataGrid, DataGridActionCell, DataGridSortHeader, DataList, DatePicker, Description_Description as Description, Dialog, Drawer_Drawer as Drawer, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormMaskField, FormProvider, FormSubmitButton, FormTextField, Image, ImageCarousel, Input, InputOTP, Label, MaskField, NOTIFICATION_POSITIONS, Notification, NotificationContainer, PageLayout, Pagination, PeriodPicker, Placeholder, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, RangeInput, ScrollTopButton, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Slider, Tabs_Tabs as Tabs, TextField, Tooltip, Typography, alignments, badgeVariants, buttonSizes, buttonVariants, colors, constants_NotificationVariantTypes as NotificationVariantTypes, displays, notification, src_DEFAULT_SEPARATOR as DEFAULT_SEPARATOR, src_DEFAULT_SYMBOL as DEFAULT_SYMBOL, src_NOTIFY_CLASSNAME as NOTIFY_CLASSNAME, theme, transforms, useController as useFormController, useDashboard, useFieldArray as useFormFieldArray, useFormContext, useForm_useForm as useForm, useWatch as useFormWatch, variants, weights };
|