@astral/ui 4.69.0 → 4.71.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/components/Accordion/styles.d.ts +1 -0
- package/components/ActionGroup/MainActions/hooks/useMainActions/useMainActions.d.ts +3 -2
- package/components/ActionGroup/MainActions/styles.d.ts +2 -1
- package/components/ActionGroup/SecondaryVisibleActions/styles.d.ts +2 -1
- package/components/Alert/styles.d.ts +4 -1
- package/components/AutoSaveIndicator/ErrorState/styles.d.ts +2 -1
- package/components/AutoSaveIndicator/styles.d.ts +4 -1
- package/components/BottomDrawer/styles.d.ts +1 -0
- package/components/Button/Button.d.ts +2 -1
- package/components/Button/types.d.ts +4 -3
- package/components/CardGridInfinite/Card/SecondaryActionButton/styles.d.ts +2 -1
- package/components/CheckableTag/CheckableTag.d.ts +0 -1
- package/components/CheckableTag/CheckableTag.js +0 -1
- package/components/Chip/styles.d.ts +1 -0
- package/components/CodeField/styles.d.ts +1 -0
- package/components/CollapsibleTypography/CollapsibleTypography.d.ts +1 -0
- package/components/CollapsibleTypography/styles.d.ts +3 -1
- package/components/ConfirmAction/styles.d.ts +1 -0
- package/components/ConfirmDialog/styles.d.ts +2 -1
- package/components/CopyTypography/styles.d.ts +1 -0
- package/components/CopyTypography/useLogic/useLogic.d.ts +1 -0
- package/components/DashboardAlert/styles.d.ts +2 -1
- package/components/DashboardLayout/Container/styles.js +1 -1
- package/components/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/components/DashboardLayout/DashboardLayout.js +1 -1
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/DashboardSidebar.js +5 -5
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/constants.js +1 -1
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/constants.js +1 -1
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/styles.d.ts +6 -6
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/styles.js +8 -8
- package/{node/components → components/DashboardLayout}/DashboardSidebar/types.d.ts +1 -1
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/useCloseSidebarOnMobile.js +3 -3
- package/{node/components → components/DashboardLayout}/DashboardSidebar/useLogic/useLogic.d.ts +2 -2
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/useLogic.js +7 -7
- package/components/DashboardLayout/Header/styles.d.ts +2 -1
- package/components/DashboardLayout/Header/styles.js +1 -1
- package/components/DashboardLayout/index.d.ts +1 -0
- package/components/DashboardLayout/public.d.ts +1 -1
- package/components/DashboardSidebarButton/styles.d.ts +2 -1
- package/components/DashboardSidebarPopover/styles.d.ts +1 -0
- package/components/DashboardSidebarSkeleton/DashboardSidebarSkeleton.js +1 -1
- package/components/DataGrid/Cell/Cell.js +5 -2
- package/components/DataGrid/Cell/constants.d.ts +1 -0
- package/components/DataGrid/Cell/constants.js +1 -0
- package/components/DataGrid/Cell/styles.d.ts +1 -0
- package/components/DataGrid/Cell/styles.js +4 -0
- package/components/DataGrid/Cell/useLogic/useLogic.d.ts +1 -0
- package/components/DataGrid/Cell/useLogic/useLogic.js +6 -2
- package/components/DataGrid/DataGrid.js +2 -2
- package/components/DataGrid/DataGridContext/DataGridContext.d.ts +1 -0
- package/components/DataGrid/DataGridContext/DataGridContext.js +1 -0
- package/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.d.ts +2 -1
- package/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.js +3 -1
- package/components/DataGrid/Row/NestedChildren/styles.d.ts +2 -1
- package/components/DataGrid/Row/styles.d.ts +3 -1
- package/components/DataGrid/types.d.ts +8 -0
- package/components/DataGridActionCell/DataGridMainActions/Action/MainIconButton/styles.d.ts +2 -1
- package/components/DataGridActionCell/DataGridMainActions/Action/MobileMainButton/styles.d.ts +2 -1
- package/components/DataGridActionCell/SecondaryActionsButton/styles.d.ts +2 -1
- package/components/DataGridPagination/styles.d.ts +1 -0
- package/components/DataGridPaginationContainer/styles.d.ts +1 -0
- package/components/DatePicker/DateCalendar/DateCalendarHead/styles.d.ts +1 -0
- package/components/DatePicker/styles.d.ts +2 -1
- package/components/Description/Description.d.ts +4 -0
- package/components/Description/Description.js +5 -2
- package/components/Description/Value/Value.d.ts +1 -1
- package/components/Description/Value/styles.d.ts +2 -0
- package/components/Description/constants.d.ts +1 -0
- package/components/Description/constants.js +1 -0
- package/components/Description/styles.js +4 -0
- package/components/DescriptionList/DescriptionList.d.ts +1 -1
- package/components/DescriptionList/DescriptionList.js +4 -3
- package/components/DescriptionList/styles.d.ts +2 -1
- package/components/DescriptionList/types.d.ts +2 -2
- package/components/Fieldset/styles.d.ts +2 -0
- package/components/Filename/styles.d.ts +1 -0
- package/components/FlowButton/styles.d.ts +3 -1
- package/components/IconButton/IconButton.d.ts +2 -1
- package/components/IconButton/styles.d.ts +2 -1
- package/components/JsonViewer/NodeValue/styles.d.ts +3 -0
- package/components/LegacyNotification/NotificationTemplate/styles.d.ts +4 -1
- package/components/MenuGroup/styles.d.ts +1 -0
- package/components/MenuOrganization/OrganizationButton/styles.d.ts +3 -1
- package/components/MenuOrganization/OrganizationGroup/styles.d.ts +1 -0
- package/components/MenuOrganization/OrganizationItem/styles.d.ts +2 -1
- package/components/MenuOrganization/styles.d.ts +1 -0
- package/components/MinimalisticPagination/styles.d.ts +1 -0
- package/components/NavMenu/Item/ItemButton/styles.d.ts +1 -0
- package/components/NewStepper/Step/Description/styles.d.ts +1 -0
- package/components/NewStepper/Step/Label/styles.d.ts +2 -0
- package/components/NewStepper/Step/styles.d.ts +2 -1
- package/components/NotFoundPage/styles.d.ts +2 -0
- package/components/Notification/NotificationStackContainer/NotificationStackContainer.js +1 -1
- package/components/Notification/NotificationStackContainer/styles.d.ts +2 -1
- package/components/Notification/NotificationTemplate/styles.d.ts +4 -1
- package/components/NotificationList/ListItem/ListItem.js +1 -1
- package/components/NotificationList/ListItem/styles.d.ts +1 -0
- package/components/OverflowTypography/OverflowTypography.d.ts +1 -0
- package/components/OverflowTypography/styles.d.ts +2 -0
- package/components/PageContent/PageContentHeader/Title/styles.d.ts +1 -0
- package/components/PageHeader/HeaderContent/Description/styles.d.ts +1 -0
- package/components/PageHeader/MobilePageActions/styles.d.ts +1 -1
- package/components/PageHeader/PageActions/PageActions.d.ts +1 -1
- package/components/PageHeader/PageActions/SecondaryActions/styles.d.ts +2 -1
- package/components/PageHeader/PageActions/SecondaryVisibleActions/styles.d.ts +2 -1
- package/components/PageHeader/PageActions/styles.d.ts +2 -1
- package/components/PageHeader/Title/styles.d.ts +3 -1
- package/components/Pagination/PaginationItem/PaginationItem.js +1 -1
- package/components/Pagination/PaginationItem/styles.d.ts +3 -1
- package/components/PinButton/styles.d.ts +3 -1
- package/components/Product/styles.d.ts +2 -1
- package/components/ProductSwitcher/Content/styles.d.ts +1 -0
- package/components/Profile/styles.d.ts +2 -1
- package/components/SearchField/styles.d.ts +2 -1
- package/components/StaticCalendar/StaticCalendarButton/styles.d.ts +2 -1
- package/components/Tag/styles.d.ts +2 -1
- package/components/Tree/TreeItem/styles.d.ts +4 -1
- package/components/Typography/Typography.d.ts +1 -0
- package/components/Typography/Typography.js +13 -4
- package/components/Typography/constants.d.ts +1 -0
- package/components/Typography/constants.js +2 -1
- package/components/Typography/styles.js +4 -0
- package/components/Typography/types.d.ts +4 -0
- package/components/WelcomeScreen/styles.d.ts +2 -0
- package/components/fileUploading/FileInfo/styles.d.ts +1 -0
- package/components/index.d.ts +1 -1
- package/components/placeholders/Placeholder/styles.d.ts +2 -0
- package/hook-form/EditableText/EditingForm/styles.d.ts +3 -1
- package/hook-form/EditableText/styles.d.ts +1 -0
- package/hook-form/FormFilters/FormFiltersDialog/ResetButton/styles.d.ts +2 -1
- package/hook-form/FormPageLayout/FormPageFooter/SecondaryActions/styles.d.ts +4 -2
- package/hook-form/FormPageLayout/FormPageFooter/styles.d.ts +2 -1
- package/hook-form/FormPageLayoutBase/FormMobileActions/styles.d.ts +2 -1
- package/hook-form/FormWizard/Footer/styles.d.ts +2 -1
- package/hook-form/FormWizardPageLayout/FormWizardFooter/styles.d.ts +2 -1
- package/node/components/Accordion/styles.d.ts +1 -0
- package/node/components/ActionGroup/MainActions/hooks/useMainActions/useMainActions.d.ts +3 -2
- package/node/components/ActionGroup/MainActions/styles.d.ts +2 -1
- package/node/components/ActionGroup/SecondaryVisibleActions/styles.d.ts +2 -1
- package/node/components/Alert/styles.d.ts +4 -1
- package/node/components/AutoSaveIndicator/ErrorState/styles.d.ts +2 -1
- package/node/components/AutoSaveIndicator/styles.d.ts +4 -1
- package/node/components/BottomDrawer/styles.d.ts +1 -0
- package/node/components/Button/Button.d.ts +2 -1
- package/node/components/Button/types.d.ts +4 -3
- package/node/components/CardGridInfinite/Card/SecondaryActionButton/styles.d.ts +2 -1
- package/node/components/CheckableTag/CheckableTag.d.ts +0 -1
- package/node/components/CheckableTag/CheckableTag.js +0 -1
- package/node/components/Chip/styles.d.ts +1 -0
- package/node/components/CodeField/styles.d.ts +1 -0
- package/node/components/CollapsibleTypography/CollapsibleTypography.d.ts +1 -0
- package/node/components/CollapsibleTypography/styles.d.ts +3 -1
- package/node/components/ConfirmAction/styles.d.ts +1 -0
- package/node/components/ConfirmDialog/styles.d.ts +2 -1
- package/node/components/CopyTypography/styles.d.ts +1 -0
- package/node/components/CopyTypography/useLogic/useLogic.d.ts +1 -0
- package/node/components/DashboardAlert/styles.d.ts +2 -1
- package/node/components/DashboardLayout/Container/styles.js +6 -6
- package/node/components/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/node/components/DashboardLayout/DashboardLayout.js +1 -1
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/DashboardSidebar.js +5 -5
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/constants.js +1 -1
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/constants.js +1 -1
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/styles.d.ts +1 -1
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/styles.js +12 -12
- package/{components → node/components/DashboardLayout}/DashboardSidebar/types.d.ts +1 -1
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/useCloseSidebarOnMobile.js +3 -3
- package/{components → node/components/DashboardLayout}/DashboardSidebar/useLogic/useLogic.d.ts +2 -2
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/useLogic.js +7 -7
- package/node/components/DashboardLayout/Header/styles.d.ts +2 -1
- package/node/components/DashboardLayout/Header/styles.js +20 -20
- package/node/components/DashboardLayout/index.d.ts +1 -0
- package/node/components/DashboardLayout/public.d.ts +1 -1
- package/node/components/DashboardSidebarButton/styles.d.ts +2 -1
- package/node/components/DashboardSidebarPopover/styles.d.ts +1 -0
- package/node/components/DashboardSidebarSkeleton/DashboardSidebarSkeleton.js +1 -1
- package/node/components/DataGrid/Cell/Cell.js +5 -2
- package/node/components/DataGrid/Cell/constants.d.ts +1 -0
- package/node/components/DataGrid/Cell/constants.js +1 -0
- package/node/components/DataGrid/Cell/styles.d.ts +1 -0
- package/node/components/DataGrid/Cell/styles.js +4 -0
- package/node/components/DataGrid/Cell/useLogic/useLogic.d.ts +1 -0
- package/node/components/DataGrid/Cell/useLogic/useLogic.js +5 -1
- package/node/components/DataGrid/DataGrid.js +2 -2
- package/node/components/DataGrid/DataGridContext/DataGridContext.d.ts +1 -0
- package/node/components/DataGrid/DataGridContext/DataGridContext.js +1 -0
- package/node/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.d.ts +2 -1
- package/node/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.js +3 -1
- package/node/components/DataGrid/Row/NestedChildren/styles.d.ts +2 -1
- package/node/components/DataGrid/Row/styles.d.ts +3 -1
- package/node/components/DataGrid/types.d.ts +8 -0
- package/node/components/DataGridActionCell/DataGridMainActions/Action/MainIconButton/styles.d.ts +2 -1
- package/node/components/DataGridActionCell/DataGridMainActions/Action/MobileMainButton/styles.d.ts +2 -1
- package/node/components/DataGridActionCell/SecondaryActionsButton/styles.d.ts +2 -1
- package/node/components/DataGridPagination/styles.d.ts +1 -0
- package/node/components/DataGridPaginationContainer/styles.d.ts +1 -0
- package/node/components/DatePicker/DateCalendar/DateCalendarHead/styles.d.ts +1 -0
- package/node/components/DatePicker/styles.d.ts +2 -1
- package/node/components/Description/Description.d.ts +4 -0
- package/node/components/Description/Description.js +5 -2
- package/node/components/Description/Value/Value.d.ts +1 -1
- package/node/components/Description/Value/styles.d.ts +2 -0
- package/node/components/Description/constants.d.ts +1 -0
- package/node/components/Description/constants.js +1 -0
- package/node/components/Description/styles.js +4 -0
- package/node/components/DescriptionList/DescriptionList.d.ts +1 -1
- package/node/components/DescriptionList/DescriptionList.js +4 -3
- package/node/components/DescriptionList/styles.d.ts +2 -1
- package/node/components/DescriptionList/types.d.ts +2 -2
- package/node/components/Fieldset/styles.d.ts +2 -0
- package/node/components/Filename/styles.d.ts +1 -0
- package/node/components/FlowButton/styles.d.ts +3 -1
- package/node/components/IconButton/IconButton.d.ts +2 -1
- package/node/components/IconButton/styles.d.ts +2 -1
- package/node/components/JsonViewer/NodeValue/styles.d.ts +3 -0
- package/node/components/LegacyNotification/NotificationTemplate/styles.d.ts +4 -1
- package/node/components/MenuGroup/styles.d.ts +1 -0
- package/node/components/MenuOrganization/OrganizationButton/styles.d.ts +3 -1
- package/node/components/MenuOrganization/OrganizationGroup/styles.d.ts +1 -0
- package/node/components/MenuOrganization/OrganizationItem/styles.d.ts +2 -1
- package/node/components/MenuOrganization/styles.d.ts +1 -0
- package/node/components/MinimalisticPagination/styles.d.ts +1 -0
- package/node/components/NavMenu/Item/ItemButton/styles.d.ts +1 -0
- package/node/components/NewStepper/Step/Description/styles.d.ts +1 -0
- package/node/components/NewStepper/Step/Label/styles.d.ts +2 -0
- package/node/components/NewStepper/Step/styles.d.ts +2 -1
- package/node/components/NotFoundPage/styles.d.ts +2 -0
- package/node/components/Notification/NotificationStackContainer/NotificationStackContainer.js +1 -1
- package/node/components/Notification/NotificationStackContainer/styles.d.ts +2 -1
- package/node/components/Notification/NotificationTemplate/styles.d.ts +4 -1
- package/node/components/NotificationList/ListItem/ListItem.js +1 -1
- package/node/components/NotificationList/ListItem/styles.d.ts +1 -0
- package/node/components/OverflowTypography/OverflowTypography.d.ts +1 -0
- package/node/components/OverflowTypography/styles.d.ts +2 -0
- package/node/components/PageContent/PageContentHeader/Title/styles.d.ts +1 -0
- package/node/components/PageHeader/HeaderContent/Description/styles.d.ts +1 -0
- package/node/components/PageHeader/MobilePageActions/styles.d.ts +1 -1
- package/node/components/PageHeader/PageActions/PageActions.d.ts +1 -1
- package/node/components/PageHeader/PageActions/SecondaryActions/styles.d.ts +2 -1
- package/node/components/PageHeader/PageActions/SecondaryVisibleActions/styles.d.ts +2 -1
- package/node/components/PageHeader/PageActions/styles.d.ts +2 -1
- package/node/components/PageHeader/Title/styles.d.ts +3 -1
- package/node/components/Pagination/PaginationItem/PaginationItem.js +1 -1
- package/node/components/Pagination/PaginationItem/styles.d.ts +3 -1
- package/node/components/PinButton/styles.d.ts +3 -1
- package/node/components/Product/styles.d.ts +2 -1
- package/node/components/ProductSwitcher/Content/styles.d.ts +1 -0
- package/node/components/Profile/styles.d.ts +2 -1
- package/node/components/SearchField/styles.d.ts +2 -1
- package/node/components/StaticCalendar/StaticCalendarButton/styles.d.ts +2 -1
- package/node/components/Tag/styles.d.ts +2 -1
- package/node/components/Tree/TreeItem/styles.d.ts +4 -1
- package/node/components/Typography/Typography.d.ts +1 -0
- package/node/components/Typography/Typography.js +13 -4
- package/node/components/Typography/constants.d.ts +1 -0
- package/node/components/Typography/constants.js +2 -1
- package/node/components/Typography/styles.js +4 -0
- package/node/components/Typography/types.d.ts +4 -0
- package/node/components/WelcomeScreen/styles.d.ts +2 -0
- package/node/components/fileUploading/FileInfo/styles.d.ts +1 -0
- package/node/components/index.d.ts +1 -1
- package/node/components/placeholders/Placeholder/styles.d.ts +2 -0
- package/node/hook-form/EditableText/EditingForm/styles.d.ts +3 -1
- package/node/hook-form/EditableText/styles.d.ts +1 -0
- package/node/hook-form/FormFilters/FormFiltersDialog/ResetButton/styles.d.ts +2 -1
- package/node/hook-form/FormPageLayout/FormPageFooter/SecondaryActions/styles.d.ts +4 -2
- package/node/hook-form/FormPageLayout/FormPageFooter/styles.d.ts +2 -1
- package/node/hook-form/FormPageLayoutBase/FormMobileActions/styles.d.ts +2 -1
- package/node/hook-form/FormWizard/Footer/styles.d.ts +2 -1
- package/node/hook-form/FormWizardPageLayout/FormWizardFooter/styles.d.ts +2 -1
- package/package.json +1 -1
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/DashboardSidebar.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/SidebarNav.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/SidebarNav.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/constants.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/index.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/index.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/constants.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/index.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/index.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/types.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/index.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/index.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/index.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/index.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/useCloseSidebarOnMobile.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/index.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/index.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/DashboardSidebar.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/SidebarNav.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/SidebarNav.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/constants.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/index.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/index.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/constants.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/index.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/index.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/types.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/index.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/index.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/index.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/index.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/useCloseSidebarOnMobile.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/index.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/index.js +0 -0
|
@@ -16,6 +16,7 @@ export declare const useLogic: ({ children, copyPosition, copyText, isShowCopyTe
|
|
|
16
16
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
17
17
|
isUpperCase?: boolean | undefined;
|
|
18
18
|
withoutCalt?: boolean | undefined;
|
|
19
|
+
isTabularNums?: boolean | undefined;
|
|
19
20
|
defaultChecked?: boolean | undefined;
|
|
20
21
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
21
22
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
export declare const StyledAlert: import("@emotion/styled/dist/declarations/src/types").StyledComponent<import("../Alert").AlertProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
}, {}, {}>;
|
|
5
|
-
export declare const StyledButton: <TComponent extends import("react").ElementType>(props: Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
5
|
+
export declare const StyledButton: <TComponent extends import("react").ElementType>(props: Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
6
6
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
7
7
|
loading?: boolean | undefined;
|
|
8
8
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
9
9
|
component?: TComponent | undefined;
|
|
10
10
|
selected?: boolean | undefined;
|
|
11
|
+
size?: "large" | "medium" | undefined;
|
|
11
12
|
} & Omit<import("react").ComponentPropsWithRef<import("react").ElementType extends TComponent ? "button" : TComponent>, ""> & import("react").RefAttributes<HTMLButtonElement>) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Root = void 0;
|
|
4
|
-
const constants_1 = require("../../DashboardSidebar/constants");
|
|
5
4
|
const styled_1 = require("../../styled");
|
|
6
|
-
const
|
|
5
|
+
const DashboardSidebar_1 = require("../DashboardSidebar");
|
|
6
|
+
const constants_1 = require("./constants");
|
|
7
7
|
exports.Root = styled_1.styled.div `
|
|
8
8
|
display: grid;
|
|
9
9
|
grid-template-columns: auto 1fr;
|
|
@@ -21,7 +21,7 @@ exports.Root = styled_1.styled.div `
|
|
|
21
21
|
|
|
22
22
|
/* Причина игнора: Не критично для отображения */
|
|
23
23
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
24
|
-
&:has(.${
|
|
24
|
+
&:has(.${DashboardSidebar_1.dashboardSidebarClassnames.root}) {
|
|
25
25
|
column-gap: ${({ theme }) => theme.spacing(4)};
|
|
26
26
|
|
|
27
27
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
@@ -44,15 +44,15 @@ exports.Root = styled_1.styled.div `
|
|
|
44
44
|
padding: 0;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
&.${
|
|
47
|
+
&.${constants_1.containerClassnames.compact} {
|
|
48
48
|
max-width: 1572px;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
&.${
|
|
51
|
+
&.${constants_1.containerClassnames.wide} {
|
|
52
52
|
max-width: 1920px;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
&.${
|
|
55
|
+
&.${constants_1.containerClassnames.focusedMode} {
|
|
56
56
|
max-width: 100%;
|
|
57
57
|
}
|
|
58
58
|
`;
|
|
@@ -6,6 +6,6 @@ import { type DashboardLayoutProps } from './types';
|
|
|
6
6
|
export declare const DashboardLayout: {
|
|
7
7
|
({ children, isFocusedMode, isLoading, mobileHeaderPriorityFeature, desktopViewMode, }: DashboardLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
Header: import("react").ForwardRefExoticComponent<import("./Header").HeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
Sidebar: import("react").ForwardRefExoticComponent<import("
|
|
9
|
+
Sidebar: import("react").ForwardRefExoticComponent<import("./DashboardSidebar").DashboardSidebarProps & import("react").RefAttributes<HTMLBaseElement>>;
|
|
10
10
|
Main: import("react").ForwardRefExoticComponent<import("./Main").MainProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
11
|
};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DashboardLayout = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const DashboardContext_1 = require("../DashboardContext");
|
|
6
|
-
const DashboardSidebar_1 = require("
|
|
6
|
+
const DashboardSidebar_1 = require("./DashboardSidebar");
|
|
7
7
|
const DashboardWrapper_1 = require("./DashboardWrapper");
|
|
8
8
|
const Header_1 = require("./Header");
|
|
9
9
|
const Main_1 = require("./Main");
|
package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/DashboardSidebar.js
RENAMED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DashboardSidebar = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const DashboardSidebarSkeleton_1 = require("
|
|
7
|
-
const NavMenu_1 = require("
|
|
8
|
-
const PinButton_1 = require("
|
|
9
|
-
const cva_1 = require("
|
|
10
|
-
const getInertProps_1 = require("
|
|
6
|
+
const DashboardSidebarSkeleton_1 = require("../../DashboardSidebarSkeleton");
|
|
7
|
+
const NavMenu_1 = require("../../NavMenu");
|
|
8
|
+
const PinButton_1 = require("../../PinButton");
|
|
9
|
+
const cva_1 = require("../../utils/cva");
|
|
10
|
+
const getInertProps_1 = require("../../utils/getInertProps");
|
|
11
11
|
const constants_1 = require("./constants");
|
|
12
12
|
const SidebarNav_1 = require("./SidebarNav");
|
|
13
13
|
const styles_1 = require("./styles");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sidebarNavClassnames = void 0;
|
|
4
|
-
const createUIKitClassname_1 = require("
|
|
4
|
+
const createUIKitClassname_1 = require("../../../utils/createUIKitClassname");
|
|
5
5
|
exports.sidebarNavClassnames = {
|
|
6
6
|
root: (0, createUIKitClassname_1.createUIKitClassname)('dashboard-layout-sidebar__navigation'),
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LABEL_WIDTH = exports.dashboardSidebarClassnames = void 0;
|
|
4
|
-
const createUIKitClassname_1 = require("
|
|
4
|
+
const createUIKitClassname_1 = require("../../utils/createUIKitClassname");
|
|
5
5
|
exports.dashboardSidebarClassnames = {
|
|
6
6
|
root: (0, createUIKitClassname_1.createUIKitClassname)('dashboard-layout-sidebar'),
|
|
7
7
|
hasProfile: (0, createUIKitClassname_1.createUIKitClassname)('dashboard-layout-sidebar_has-profile'),
|
|
@@ -6,7 +6,7 @@ export declare const Wrapper: import("@emotion/styled/dist/declarations/src/type
|
|
|
6
6
|
$isPinned: boolean;
|
|
7
7
|
$alertHeight: number;
|
|
8
8
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
-
export declare const StyledPaper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("
|
|
9
|
+
export declare const StyledPaper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../../Paper").PaperProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
|
|
10
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
11
|
}, {}, {}>;
|
|
12
12
|
export declare const SidebarRoot: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Footer = exports.SidebarContent = exports.SidebarHeader = exports.SidebarRoot = exports.StyledPaper = exports.Wrapper = void 0;
|
|
4
|
-
const constants_1 = require("
|
|
5
|
-
const constants_2 = require("
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
5
|
+
const constants_2 = require("../../MenuOrganization/constants");
|
|
6
|
+
const OrganizationButton_1 = require("../../MenuOrganization/OrganizationButton");
|
|
7
|
+
const Item_1 = require("../../NavMenu/Item");
|
|
8
|
+
const Paper_1 = require("../../Paper");
|
|
9
|
+
const PinButton_1 = require("../../PinButton");
|
|
10
|
+
const styled_1 = require("../../styled");
|
|
11
|
+
const constants_3 = require("../constants");
|
|
12
12
|
const constants_4 = require("./constants");
|
|
13
13
|
exports.Wrapper = (0, styled_1.styled)('div', {
|
|
14
14
|
shouldForwardProp: (prop) => !['$isPinned', '$alertHeight'].includes(prop),
|
|
@@ -23,7 +23,7 @@ exports.Wrapper = (0, styled_1.styled)('div', {
|
|
|
23
23
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
24
24
|
position: absolute;
|
|
25
25
|
z-index: ${({ theme }) => theme.zIndex.appBar - 1};
|
|
26
|
-
top: ${({ $alertHeight }) => `calc(${$alertHeight}px + ${
|
|
26
|
+
top: ${({ $alertHeight }) => `calc(${$alertHeight}px + ${constants_3.HEADER_HEIGHT_MOBILE}) `};
|
|
27
27
|
bottom: 0;
|
|
28
28
|
transform: ${({ $isPinned }) => $isPinned ? 'translateX(0px)' : 'translateX(-100vw)'};
|
|
29
29
|
|
|
@@ -39,7 +39,7 @@ exports.Wrapper = (0, styled_1.styled)('div', {
|
|
|
39
39
|
}};
|
|
40
40
|
|
|
41
41
|
&.${constants_4.dashboardSidebarClassnames.hasMenuOrganization}, &.${constants_4.dashboardSidebarClassnames.hasProfile} {
|
|
42
|
-
top: ${({ $alertHeight }) => `calc(${$alertHeight}px + ${
|
|
42
|
+
top: ${({ $alertHeight }) => `calc(${$alertHeight}px + ${constants_3.HEADER_HEIGHT_MOBILE} + ${OrganizationButton_1.MOBILE_BUTTON_HEIGHT}) `};
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
`;
|
|
@@ -92,11 +92,11 @@ exports.SidebarHeader = styled_1.styled.header `
|
|
|
92
92
|
|
|
93
93
|
/* Причина игнора: Не критично для отображения */
|
|
94
94
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
95
|
-
&:has(.${
|
|
95
|
+
&:has(.${constants_2.menuOrganizationClassnames.button}) {
|
|
96
96
|
padding: 0;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
& .${
|
|
99
|
+
& .${constants_2.menuOrganizationClassnames.button} {
|
|
100
100
|
height: ${OrganizationButton_1.MOBILE_BUTTON_HEIGHT};
|
|
101
101
|
padding: ${({ theme }) => theme.spacing(3, 4)};
|
|
102
102
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useCloseSidebarOnMobile = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
-
const DashboardSidebarProvider_1 = require("
|
|
6
|
-
const NavMenu_1 = require("
|
|
7
|
-
const useViewportType_1 = require("
|
|
5
|
+
const DashboardSidebarProvider_1 = require("../../../../../DashboardSidebarProvider");
|
|
6
|
+
const NavMenu_1 = require("../../../../../NavMenu");
|
|
7
|
+
const useViewportType_1 = require("../../../../../useViewportType");
|
|
8
8
|
const SidebarNav_1 = require("../../../SidebarNav");
|
|
9
9
|
const useCloseSidebarOnMobile = () => {
|
|
10
10
|
const { isMobile } = (0, useViewportType_1.useViewportType)();
|
package/{components → node/components/DashboardLayout}/DashboardSidebar/useLogic/useLogic.d.ts
RENAMED
|
@@ -12,13 +12,13 @@ export declare const useLogic: (props: DashboardSidebarProps) => {
|
|
|
12
12
|
items: [key: string, value: {
|
|
13
13
|
icon: import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
14
14
|
text: import("react").ReactNode;
|
|
15
|
-
counter?: import("
|
|
15
|
+
counter?: import("../../../NavMenu/Item").CounterProps | undefined;
|
|
16
16
|
active?: boolean | undefined;
|
|
17
17
|
items?: [key: string, value: {
|
|
18
18
|
text: import("react").ReactNode;
|
|
19
19
|
active: boolean;
|
|
20
20
|
component: import("react").ElementType;
|
|
21
|
-
counter?: import("
|
|
21
|
+
counter?: import("../../../NavMenu/Item").CounterProps | undefined;
|
|
22
22
|
}][] | undefined;
|
|
23
23
|
component?: import("react").ElementType | undefined;
|
|
24
24
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & {
|
package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/useLogic.js
RENAMED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useLogic = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
-
const DashboardContext_1 = require("
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
5
|
+
const DashboardContext_1 = require("../../../DashboardContext");
|
|
6
|
+
const DashboardSidebarProvider_1 = require("../../../DashboardSidebarProvider");
|
|
7
|
+
const useTheme_1 = require("../../../theme/hooks/useTheme");
|
|
8
|
+
const useViewportType_1 = require("../../../useViewportType");
|
|
9
|
+
const classNames_1 = require("../../../utils/classNames");
|
|
10
|
+
const Header_1 = require("../../Header");
|
|
11
|
+
const Main_1 = require("../../Main");
|
|
12
12
|
const constants_1 = require("../constants");
|
|
13
13
|
const hooks_1 = require("./hooks");
|
|
14
14
|
const useLogic = (props) => {
|
|
@@ -29,12 +29,13 @@ export declare const ProfileWrapper: import("@emotion/styled/dist/declarations/s
|
|
|
29
29
|
} & {
|
|
30
30
|
$isShow: boolean;
|
|
31
31
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
32
|
-
export declare const ExitButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material/Button").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
32
|
+
export declare const ExitButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material/Button").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
33
33
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
34
34
|
loading?: boolean | undefined;
|
|
35
35
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
36
36
|
component?: import("react").ElementType | undefined;
|
|
37
37
|
selected?: boolean | undefined;
|
|
38
|
+
size?: "large" | "medium" | undefined;
|
|
38
39
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
39
40
|
theme?: import("@emotion/react").Theme | undefined;
|
|
40
41
|
} & {
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MobileNotificationListWrapper = exports.PriorityFeatureWrapper = exports.HeaderContent = exports.ExitButton = exports.ProfileWrapper = exports.ProductSwitcherWrapper = exports.HeaderContentSection = exports.HeaderSection = exports.MobileSidebarTogglerWrapper = exports.HeaderRoot = void 0;
|
|
4
4
|
const Button_1 = require("@mui/material/Button");
|
|
5
5
|
const DashboardLayoutNotificationList_1 = require("../../DashboardLayoutNotificationList");
|
|
6
|
-
const constants_1 = require("../../DashboardSidebar/constants");
|
|
7
6
|
const IconButton_1 = require("../../IconButton");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
7
|
+
const constants_1 = require("../../MenuOrganization/constants");
|
|
8
|
+
const constants_2 = require("../../MenuOrganization/OrganizationButton/constants");
|
|
9
|
+
const constants_3 = require("../../Profile/constants");
|
|
11
10
|
const styled_1 = require("../../styled");
|
|
12
|
-
const
|
|
11
|
+
const constants_4 = require("../constants");
|
|
12
|
+
const constants_5 = require("../DashboardSidebar/constants");
|
|
13
13
|
const constants_6 = require("./constants");
|
|
14
14
|
exports.HeaderRoot = (0, styled_1.styled)('header', {
|
|
15
15
|
shouldForwardProp: (prop) => !['$isFocusedMode'].includes(prop),
|
|
@@ -23,8 +23,8 @@ exports.HeaderRoot = (0, styled_1.styled)('header', {
|
|
|
23
23
|
justify-content: space-between;
|
|
24
24
|
|
|
25
25
|
width: 100%;
|
|
26
|
-
height: ${
|
|
27
|
-
margin-top: ${({ $isFocusedMode }) => $isFocusedMode ? `-${
|
|
26
|
+
height: ${constants_4.HEADER_HEIGHT_DESKTOP};
|
|
27
|
+
margin-top: ${({ $isFocusedMode }) => $isFocusedMode ? `-${constants_4.HEADER_HEIGHT_DESKTOP}` : 0};
|
|
28
28
|
margin-bottom: ${({ theme }) => theme.spacing(4)};
|
|
29
29
|
|
|
30
30
|
transition: ${({ theme }) => {
|
|
@@ -34,14 +34,14 @@ exports.HeaderRoot = (0, styled_1.styled)('header', {
|
|
|
34
34
|
}};
|
|
35
35
|
|
|
36
36
|
${({ theme }) => theme.breakpoints.down('laptop')} {
|
|
37
|
-
height: ${
|
|
37
|
+
height: ${constants_4.HEADER_HEIGHT_LAPTOP};
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
41
41
|
grid-row: 2;
|
|
42
42
|
justify-content: flex-start;
|
|
43
43
|
|
|
44
|
-
height: ${
|
|
44
|
+
height: ${constants_4.HEADER_HEIGHT_MOBILE};
|
|
45
45
|
margin-bottom: 0;
|
|
46
46
|
padding: ${({ theme }) => theme.spacing(0, 2, 0, 1)};
|
|
47
47
|
|
|
@@ -62,7 +62,7 @@ exports.MobileSidebarTogglerWrapper = styled_1.styled.div `
|
|
|
62
62
|
|
|
63
63
|
/* Причина игнора: Не критично для отображения */
|
|
64
64
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
65
|
-
.${
|
|
65
|
+
.${constants_4.dashboardLayoutClassnames.root}:not(:has(.${constants_5.dashboardSidebarClassnames.root}))
|
|
66
66
|
& {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
@@ -84,10 +84,10 @@ exports.HeaderContentSection = (0, styled_1.styled)(exports.HeaderSection) `
|
|
|
84
84
|
gap: ${({ theme }) => theme.spacing(2)};
|
|
85
85
|
|
|
86
86
|
&.${constants_6.dashboardLayoutHeaderClassnames.priorityFeatureMenuOrg} {
|
|
87
|
-
& .${
|
|
87
|
+
& .${constants_1.menuOrganizationClassnames.organizationData} {
|
|
88
88
|
display: none;
|
|
89
89
|
}
|
|
90
|
-
& .${
|
|
90
|
+
& .${constants_1.menuOrganizationClassnames.button} {
|
|
91
91
|
border-radius: ${({ theme }) => theme.shape.medium};
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -133,7 +133,7 @@ exports.PriorityFeatureWrapper = styled_1.styled.div `
|
|
|
133
133
|
&.${constants_6.dashboardLayoutHeaderClassnames.featureInSidebar} {
|
|
134
134
|
position: absolute;
|
|
135
135
|
z-index: ${({ theme }) => theme.zIndex.appBar - 1};
|
|
136
|
-
top: calc(var(--alert-height, 0px) + ${
|
|
136
|
+
top: calc(var(--alert-height, 0px) + ${constants_4.HEADER_HEIGHT_MOBILE});
|
|
137
137
|
left: 0;
|
|
138
138
|
|
|
139
139
|
/* Необходимо для анимации компонента вместе с sidebar */
|
|
@@ -157,8 +157,8 @@ exports.PriorityFeatureWrapper = styled_1.styled.div `
|
|
|
157
157
|
transform: translateX(0);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
& .${
|
|
161
|
-
height: ${
|
|
160
|
+
& .${constants_1.menuOrganizationClassnames.button}, & .${constants_3.profileClassnames.button} {
|
|
161
|
+
height: ${constants_2.MOBILE_BUTTON_HEIGHT};
|
|
162
162
|
padding: ${({ theme }) => theme.spacing(3, 4)};
|
|
163
163
|
|
|
164
164
|
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
@@ -175,12 +175,12 @@ exports.PriorityFeatureWrapper = styled_1.styled.div `
|
|
|
175
175
|
&.${constants_6.dashboardLayoutHeaderClassnames.hasNotificationList} {
|
|
176
176
|
gap: ${({ theme }) => theme.spacing(4)};
|
|
177
177
|
|
|
178
|
-
height: ${
|
|
178
|
+
height: ${constants_2.MOBILE_BUTTON_HEIGHT};
|
|
179
179
|
padding: ${({ theme }) => theme.spacing(2, 3)};
|
|
180
180
|
|
|
181
181
|
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
182
182
|
|
|
183
|
-
& .${
|
|
183
|
+
& .${constants_1.menuOrganizationClassnames.button}, & .${constants_3.profileClassnames.button} {
|
|
184
184
|
flex-grow: 1;
|
|
185
185
|
|
|
186
186
|
height: unset;
|
|
@@ -197,18 +197,18 @@ exports.PriorityFeatureWrapper = styled_1.styled.div `
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
|
|
200
|
-
& .${
|
|
200
|
+
& .${constants_3.profileClassnames.button} {
|
|
201
201
|
width: 100%;
|
|
202
202
|
max-width: unset;
|
|
203
203
|
|
|
204
204
|
border-radius: 0;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
& .${
|
|
207
|
+
& .${constants_3.profileClassnames.avatar} {
|
|
208
208
|
display: none;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
& .${
|
|
211
|
+
& .${constants_3.profileClassnames.user} {
|
|
212
212
|
display: flex;
|
|
213
213
|
align-items: center;
|
|
214
214
|
justify-content: space-between;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { DashboardLayout } from './DashboardLayout';
|
|
2
2
|
export type { DashboardLayoutProps } from './types';
|
|
3
|
+
export type { DashboardSidebarProps } from './DashboardSidebar';
|
|
3
4
|
export { dashboardLayoutHeaderClassnames } from './Header';
|
|
4
5
|
export { dashboardLayoutMainClassnames } from './Main';
|
|
5
6
|
export { dashboardLayoutClassnames } from './constants';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const SidebarButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
2
|
+
export declare const SidebarButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
3
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
6
|
component?: import("react").ElementType | undefined;
|
|
7
7
|
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
8
9
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
} & {
|
|
@@ -10,6 +10,7 @@ export declare const Title: import("@emotion/styled/dist/declarations/src/types"
|
|
|
10
10
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
11
11
|
isUpperCase?: boolean | undefined;
|
|
12
12
|
withoutCalt?: boolean | undefined;
|
|
13
|
+
isTabularNums?: boolean | undefined;
|
|
13
14
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
14
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
16
|
}, {}, {}>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DashboardSidebarSkeleton = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const constants_1 = require("../DashboardSidebar/constants");
|
|
5
|
+
const constants_1 = require("../DashboardLayout/DashboardSidebar/constants");
|
|
6
6
|
const Skeleton_1 = require("../Skeleton");
|
|
7
7
|
const classNames_1 = require("../utils/classNames");
|
|
8
8
|
const styles_1 = require("./styles");
|
|
@@ -33,6 +33,9 @@ const cellContentCva = (0, cva_1.cva)(constants_1.dataGridCellClassnames.cellCon
|
|
|
33
33
|
isActionColumn: {
|
|
34
34
|
true: constants_1.dataGridCellClassnames.actionColumn,
|
|
35
35
|
},
|
|
36
|
+
isTabularNums: {
|
|
37
|
+
true: constants_1.dataGridCellClassnames.tabularNums,
|
|
38
|
+
},
|
|
36
39
|
},
|
|
37
40
|
});
|
|
38
41
|
const columnLabelCva = (0, cva_1.cva)(constants_1.dataGridCellClassnames.columnLabel, {
|
|
@@ -43,7 +46,7 @@ const columnLabelCva = (0, cva_1.cva)(constants_1.dataGridCellClassnames.columnL
|
|
|
43
46
|
},
|
|
44
47
|
});
|
|
45
48
|
const Cell = (props) => {
|
|
46
|
-
const { formattedValue, hasStartAdornment, isActionColumn, label, hideTitleOnMobile, } = (0, useLogic_1.useLogic)(props);
|
|
49
|
+
const { formattedValue, hasStartAdornment, isActionColumn, label, hideTitleOnMobile, isTabularNums, } = (0, useLogic_1.useLogic)(props);
|
|
47
50
|
const { className, startAdornment, row, cell, isDisabled, isHidePersonalData, isHideOnMobile, } = props;
|
|
48
51
|
const { renderCell, align = 'left' } = cell;
|
|
49
52
|
const hidePersonalDataClassname = (0, personalDataSecurity_1.useHidePersonalData)({
|
|
@@ -54,7 +57,7 @@ const Cell = (props) => {
|
|
|
54
57
|
isDisabled,
|
|
55
58
|
withStartAdornment: hasStartAdornment,
|
|
56
59
|
align,
|
|
57
|
-
})), ...(0, getInertProps_1.getInertProps)(isDisabled), children: [startAdornment && startAdornment, (0, jsx_runtime_1.jsxs)(styles_1.CellContent, { className: cellContentCva({ isActionColumn }), children: [(0, jsx_runtime_1.jsx)(styles_1.ColumnLabel, { variant: "caption", color: "textSecondary", className: columnLabelCva({
|
|
60
|
+
})), ...(0, getInertProps_1.getInertProps)(isDisabled), children: [startAdornment && startAdornment, (0, jsx_runtime_1.jsxs)(styles_1.CellContent, { className: cellContentCva({ isActionColumn, isTabularNums }), children: [(0, jsx_runtime_1.jsx)(styles_1.ColumnLabel, { variant: "caption", color: "textSecondary", className: columnLabelCva({
|
|
58
61
|
hidden: hideTitleOnMobile || isActionColumn,
|
|
59
62
|
}), children: label }), renderCell?.(row), !renderCell && ((0, jsx_runtime_1.jsx)(OverflowTypography_1.OverflowTypography, { rowsCount: 2, tooltipProps: { className: hidePersonalDataClassname }, children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: formattedValue }) }))] })] }));
|
|
60
63
|
};
|
|
@@ -15,4 +15,5 @@ exports.dataGridCellClassnames = {
|
|
|
15
15
|
alignCenter: (0, createUIKitClassname_1.createUIKitClassname)('data-grid__cell_align-center'),
|
|
16
16
|
alignRight: (0, createUIKitClassname_1.createUIKitClassname)('data-grid__cell_align-right'),
|
|
17
17
|
grouped: (0, createUIKitClassname_1.createUIKitClassname)('data-grid__cell_grouped'),
|
|
18
|
+
tabularNums: (0, createUIKitClassname_1.createUIKitClassname)('data-grid__cell_tabular-nums'),
|
|
18
19
|
};
|
|
@@ -10,6 +10,7 @@ export declare const ColumnLabel: import("@emotion/styled/dist/declarations/src/
|
|
|
10
10
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
11
11
|
isUpperCase?: boolean | undefined;
|
|
12
12
|
withoutCalt?: boolean | undefined;
|
|
13
|
+
isTabularNums?: boolean | undefined;
|
|
13
14
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
14
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
16
|
}, {}, {}>;
|
|
@@ -86,6 +86,10 @@ exports.ColumnLabel = (0, styled_1.styled)(Typography_1.Typography) `
|
|
|
86
86
|
exports.CellContent = styled_1.styled.div `
|
|
87
87
|
min-width: 0;
|
|
88
88
|
|
|
89
|
+
&.${constants_3.dataGridCellClassnames.tabularNums} {
|
|
90
|
+
font-feature-settings: "tnum" 1;
|
|
91
|
+
}
|
|
92
|
+
|
|
89
93
|
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
90
94
|
display: flex;
|
|
91
95
|
flex-direction: column;
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useLogic = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
+
const DataGridContext_1 = require("../../DataGridContext");
|
|
5
6
|
const useLogic = ({ row, cell, emptyCellValue, startAdornment, }) => {
|
|
6
|
-
const {
|
|
7
|
+
const { isTabularNums: contextIsTabularNums } = (0, react_1.useContext)(DataGridContext_1.DataGridContext);
|
|
8
|
+
const { format, field, label, hideTitleOnMobile, isTabularNums: cellIsTabularNums, } = cell;
|
|
9
|
+
const isTabularNums = cellIsTabularNums ?? contextIsTabularNums;
|
|
7
10
|
const isValidValue = (value) => {
|
|
8
11
|
return Boolean(value) || value === 0;
|
|
9
12
|
};
|
|
@@ -24,6 +27,7 @@ const useLogic = ({ row, cell, emptyCellValue, startAdornment, }) => {
|
|
|
24
27
|
isActionColumn,
|
|
25
28
|
label,
|
|
26
29
|
hideTitleOnMobile,
|
|
30
|
+
isTabularNums,
|
|
27
31
|
};
|
|
28
32
|
};
|
|
29
33
|
exports.useLogic = useLogic;
|
|
@@ -53,7 +53,7 @@ const bodyCva = (0, cva_1.cva)(constants_1.dataGridClassnames.body, {
|
|
|
53
53
|
const DataGrid = (props) => {
|
|
54
54
|
const { dataGridClassName, isDataGridDisabled, treeRenderConfig, headColumns, headProps, bodyProps, gridColumns, loaderProps, renderRows, isAllowHorizontalScroll, isHideHead, hasPinnedColumns, contentStateProps, rowHoverProps, containerRef, sections, isNoData, isMobile, mobileSkeletonProps, isLoading, containerCssVars, hasGroupedColumns, gridViewMode, } = (0, useLogic_1.useLogic)(props);
|
|
55
55
|
const { emptySymbol } = (0, react_1.useContext)(ConfigProvider_1.ConfigContext);
|
|
56
|
-
const { columns, selectedRows = [], minDisplayRows = constants_1.MIN_DISPLAY_ROWS_BY_DEFAULT, variant = enums_1.Variant.Tree, footer, noDataPlaceholder, subrows, keyId, activeRowId, emptyCellValue = emptySymbol, onRowClick, noDataOptions, headPreAddon, } = props;
|
|
56
|
+
const { columns, selectedRows = [], minDisplayRows = constants_1.MIN_DISPLAY_ROWS_BY_DEFAULT, variant = enums_1.Variant.Tree, footer, noDataPlaceholder, subrows, keyId, activeRowId, emptyCellValue = emptySymbol, onRowClick, noDataOptions, headPreAddon, isTabularNums, } = props;
|
|
57
57
|
const { moreButtonColumnPosition = 1, isVisibleCollapseButton = true } = subrows || {};
|
|
58
58
|
const { isInitialExpanded = false, expandedLevel = constants_1.EXPANDED_LEVEL_BY_DEFAULT, initialVisibleChildrenCount = constants_1.INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT, } = treeRenderConfig || {};
|
|
59
59
|
const Wrapper = isDataGridDisabled
|
|
@@ -92,7 +92,7 @@ const DataGrid = (props) => {
|
|
|
92
92
|
isDisabled: isDataGridDisabled,
|
|
93
93
|
}), isDisabled: isDataGridDisabled, headProps: headProps, gridColumns: gridColumns, bodyProps: commonBodyProps, isNoData: isNoData }) }));
|
|
94
94
|
};
|
|
95
|
-
return ((0, jsx_runtime_1.jsx)(DataGridContext_1.DataGridContextProvider, { isLoading: isLoading, children: (0, jsx_runtime_1.jsxs)(styles_1.Container, { ref: containerRef, style: containerCssVars, className: (0, classNames_1.classNames)(dataGridClassName, dataGridCva({
|
|
95
|
+
return ((0, jsx_runtime_1.jsx)(DataGridContext_1.DataGridContextProvider, { isLoading: isLoading, isTabularNums: isTabularNums, children: (0, jsx_runtime_1.jsxs)(styles_1.Container, { ref: containerRef, style: containerCssVars, className: (0, classNames_1.classNames)(dataGridClassName, dataGridCva({
|
|
96
96
|
isAllowHorizontalScroll,
|
|
97
97
|
hasPinnedColumns,
|
|
98
98
|
gridViewMode,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
type DataGridContextProviderProps = {
|
|
3
3
|
isLoading?: boolean;
|
|
4
|
+
isTabularNums?: boolean;
|
|
4
5
|
children: ReactNode;
|
|
5
6
|
};
|
|
6
|
-
export declare const DataGridContextProvider: ({ isLoading, children, }: DataGridContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const DataGridContextProvider: ({ isLoading, isTabularNums, children, }: DataGridContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -8,7 +8,7 @@ const ROW_FLAGS_BY_DEFAULT = {
|
|
|
8
8
|
isOpenedItems: true,
|
|
9
9
|
iOpenedMoreItems: false,
|
|
10
10
|
};
|
|
11
|
-
const DataGridContextProvider = ({ isLoading, children, }) => {
|
|
11
|
+
const DataGridContextProvider = ({ isLoading, isTabularNums, children, }) => {
|
|
12
12
|
const [openedItems, setOpenedItems] = (0, react_1.useState)({});
|
|
13
13
|
const checkIsOpened = (0, react_1.useCallback)((key) => {
|
|
14
14
|
if (openedItems[key]) {
|
|
@@ -47,6 +47,7 @@ const DataGridContextProvider = ({ isLoading, children, }) => {
|
|
|
47
47
|
toggleOpenItems,
|
|
48
48
|
toggleOpenMoreItems,
|
|
49
49
|
isLoading,
|
|
50
|
+
isTabularNums,
|
|
50
51
|
}), [
|
|
51
52
|
checkIsOpened,
|
|
52
53
|
checkIsMoreOpened,
|
|
@@ -54,6 +55,7 @@ const DataGridContextProvider = ({ isLoading, children, }) => {
|
|
|
54
55
|
toggleOpenMoreItems,
|
|
55
56
|
isLoading,
|
|
56
57
|
openedItems,
|
|
58
|
+
isTabularNums,
|
|
57
59
|
]);
|
|
58
60
|
return ((0, jsx_runtime_1.jsx)(DataGridContext_1.DataGridContext.Provider, { value: contextValue, children: children }));
|
|
59
61
|
};
|