@astral/ui 4.14.0 → 4.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/components/ActionGroup/MainActions/hooks/useMainActions/useMainActions.d.ts +1 -1
- package/components/ActionGroup/hooks/useActionsState/useActionsState.d.ts +1 -1
- package/components/ActionGroup/index.d.ts +2 -2
- package/components/ActionGroup/index.js +1 -2
- package/components/AddressAutocomplete/index.d.ts +1 -1
- package/components/AddressAutocomplete/index.js +1 -1
- package/components/Alert/index.d.ts +2 -2
- package/components/Alert/index.js +1 -2
- package/components/AsyncAutocomplete/index.d.ts +1 -1
- package/components/AsyncAutocomplete/index.js +1 -1
- package/components/AutoSaveIndicator/index.d.ts +1 -1
- package/components/AutoSaveIndicator/index.js +1 -1
- package/components/Autocomplete/styles.d.ts +1 -1
- package/components/Avatar/index.d.ts +1 -1
- package/components/Avatar/index.js +1 -1
- package/components/AvatarGroup/index.d.ts +1 -1
- package/components/AvatarGroup/index.js +1 -1
- package/components/Breadcrumbs/index.d.ts +1 -1
- package/components/Breadcrumbs/index.js +1 -1
- package/components/BulletList/index.d.ts +1 -1
- package/components/BulletList/index.js +1 -1
- package/components/BulletListInlineItem/index.d.ts +1 -1
- package/components/BulletListInlineItem/index.js +1 -1
- package/components/BulletListItem/index.d.ts +1 -1
- package/components/BulletListItem/index.js +1 -1
- package/components/CodeField/index.d.ts +1 -1
- package/components/CodeField/index.js +1 -1
- package/components/ComplianceStatus/index.d.ts +1 -1
- package/components/ComplianceStatus/index.js +1 -1
- package/components/ConfigProvider/ConfigProvider.d.ts +2 -2
- package/components/ConfirmAction/index.d.ts +1 -1
- package/components/ConfirmAction/index.js +1 -1
- package/components/CopyTypography/index.d.ts +1 -1
- package/components/CopyTypography/index.js +1 -1
- package/components/Counter/index.d.ts +1 -2
- package/components/Counter/index.js +1 -2
- package/components/DashboardAlert/index.d.ts +2 -2
- package/components/DashboardAlert/index.js +1 -2
- package/components/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/components/DashboardLayout/Header/Header.js +2 -2
- package/components/DashboardLayout/Main/useLogic/useLogic.js +2 -1
- package/components/DashboardLayout/Sidebar/MenuSidebarButton/MenuSidebarButton.js +2 -2
- package/components/DashboardLayout/Sidebar/MenuSidebarButton/useLogic/useLogic.js +2 -2
- package/components/DashboardLayout/Sidebar/Sidebar.d.ts +2 -2
- package/components/DashboardLayout/Sidebar/SidebarButton/SidebarButton.js +2 -2
- package/components/DashboardLayout/Sidebar/SidebarCounter/SidebarCounter.js +2 -2
- package/components/DashboardLayout/Sidebar/SidebarCounter/styles.d.ts +2 -2
- package/components/DashboardLayout/Sidebar/SidebarPopover/FadePopup/useLogic/useLogic.js +2 -2
- package/components/DashboardLayout/Sidebar/SidebarPopover/SidebarPopoverItem/useLogic/useLogic.js +2 -2
- package/components/DashboardLayout/Sidebar/SidebarPopover/useLogic/useLogic.js +2 -2
- package/components/DashboardLayout/Sidebar/types.d.ts +1 -1
- package/components/DashboardLayout/Sidebar/useLogic/useLogic.d.ts +2 -2
- package/components/DashboardLayout/Sidebar/useLogic/useLogic.js +2 -2
- package/components/DashboardLayout/index.d.ts +3 -4
- package/components/DashboardLayout/index.js +2 -3
- package/components/DashboardSidebarProvider/DashboardSidebarProvider.d.ts +2 -2
- package/components/DashboardSidebarProvider/DashboardSidebarProvider.js +2 -2
- package/components/DataGrid/index.d.ts +3 -7
- package/components/DataGrid/index.js +2 -7
- package/components/DataGridActionCell/hooks/useBlockingActions/useBlockingActions.js +1 -1
- package/components/DataGridActionCell/index.d.ts +1 -2
- package/components/DataGridActionCell/index.js +1 -2
- package/components/DataGridColumnHintIcon/index.d.ts +1 -1
- package/components/DataGridColumnHintIcon/index.js +1 -1
- package/components/DataGridInfinite/DataGridInfinite.d.ts +1 -1
- package/components/DataGridInfinite/DataGridInfinite.js +5 -1
- package/components/DataGridInfinite/index.d.ts +1 -1
- package/components/DataGridInfinite/index.js +1 -1
- package/components/DataGridInfinite/types.d.ts +2 -1
- package/components/DataGridInfinite/useLogic/useLogic.d.ts +2 -1
- package/components/DataGridInfinite/useLogic/useLogic.js +1 -1
- package/components/DataGridMinimalisticPagination/index.d.ts +2 -2
- package/components/DataGridMinimalisticPagination/index.js +1 -2
- package/components/DatePicker/index.d.ts +8 -7
- package/components/DatePicker/index.js +8 -7
- package/components/DateRangePicker/index.d.ts +1 -1
- package/components/DateRangePicker/index.js +1 -1
- package/components/DescriptionCell/index.d.ts +1 -1
- package/components/DescriptionCell/index.js +1 -1
- package/components/DescriptionList/index.d.ts +2 -2
- package/components/DescriptionList/index.js +1 -2
- package/components/EmailField/index.d.ts +1 -1
- package/components/EmailField/index.js +1 -1
- package/components/EmailOrPhoneField/index.d.ts +2 -2
- package/components/EmailOrPhoneField/index.js +1 -2
- package/components/ExpansionPanel/index.d.ts +1 -1
- package/components/ExpansionPanel/index.js +1 -1
- package/components/Fieldset/index.d.ts +1 -1
- package/components/Fieldset/index.js +1 -1
- package/components/Filename/index.d.ts +1 -1
- package/components/Filename/index.js +1 -1
- package/components/GuidTypography/index.d.ts +1 -1
- package/components/GuidTypography/index.js +1 -1
- package/components/HintIcon/index.d.ts +1 -1
- package/components/HintIcon/index.js +1 -1
- package/components/Iframe/index.d.ts +1 -1
- package/components/Iframe/index.js +1 -1
- package/components/InfiniteDataList/index.d.ts +1 -1
- package/components/InfiniteDataList/index.js +1 -1
- package/components/InputGroup/index.d.ts +1 -1
- package/components/InputGroup/index.js +1 -1
- package/components/JsonViewer/NodeValue/styles.d.ts +2 -2
- package/components/Link/index.d.ts +1 -1
- package/components/Link/index.js +1 -1
- package/components/Loader/index.d.ts +1 -1
- package/components/Loader/index.js +1 -1
- package/components/MenuOrganization/OrganizationItem/styles.d.ts +1 -1
- package/components/MenuOrganization/index.d.ts +1 -1
- package/components/MenuOrganization/index.js +1 -1
- package/components/MinimalisticPagination/index.d.ts +2 -2
- package/components/MinimalisticPagination/index.js +1 -2
- package/components/NavMenu/Item/ItemButton/styles.d.ts +1 -1
- package/components/NotFoundPage/index.d.ts +1 -1
- package/components/NotFoundPage/index.js +1 -1
- package/components/NumberField/index.d.ts +2 -2
- package/components/NumberField/index.js +1 -2
- package/components/NumberedList/index.d.ts +1 -1
- package/components/NumberedList/index.js +1 -1
- package/components/NumberedListItem/index.d.ts +1 -1
- package/components/NumberedListItem/index.js +1 -1
- package/components/PageLayout/PageAlert/styles.d.ts +1 -1
- package/components/PageLayout/PagePinnableAside/PagePinnableAside.js +1 -1
- package/components/PageLayout/index.d.ts +11 -11
- package/components/PageLayout/index.js +11 -11
- package/components/Pagination/index.d.ts +1 -1
- package/components/Pagination/index.js +1 -1
- package/components/ProductSwitcher/Content/styles.d.ts +1 -1
- package/components/Profile/MenuList/styles.d.ts +1 -1
- package/components/Radio/index.d.ts +1 -1
- package/components/Radio/index.js +1 -1
- package/components/RadioCard/index.d.ts +1 -1
- package/components/RadioCard/index.js +1 -1
- package/components/RadioField/index.d.ts +1 -1
- package/components/RadioField/index.js +1 -1
- package/components/RadioGroup/index.d.ts +1 -1
- package/components/RadioGroup/index.js +1 -1
- package/components/ResizingDataGrid/types.d.ts +2 -1
- package/components/ScrollToTopButton/index.d.ts +1 -1
- package/components/ScrollToTopButton/index.js +1 -1
- package/components/SearchField/index.d.ts +2 -2
- package/components/SearchField/index.js +1 -2
- package/components/Select/styles.d.ts +1 -1
- package/components/Skeleton/index.d.ts +1 -1
- package/components/Skeleton/index.js +1 -1
- package/components/StepSlider/index.d.ts +1 -1
- package/components/StepSlider/index.js +1 -1
- package/components/StepperWizard/index.d.ts +2 -2
- package/components/StepperWizard/index.js +1 -2
- package/components/SvgIcon/index.d.ts +1 -1
- package/components/SvgIcon/index.js +0 -1
- package/components/Tree/TreeItem/styles.d.ts +1 -1
- package/components/Tree/index.d.ts +4 -4
- package/components/Tree/index.js +3 -4
- package/components/TreeAutocomplete/index.d.ts +2 -2
- package/components/TreeAutocomplete/index.js +1 -2
- package/components/TreeLikeAutocomplete/index.d.ts +2 -2
- package/components/TreeLikeAutocomplete/index.js +1 -2
- package/components/TreeLikeList/index.d.ts +1 -1
- package/components/TreeLikeList/index.js +1 -1
- package/components/WelcomeScreen/index.d.ts +1 -1
- package/components/WelcomeScreen/index.js +1 -1
- package/components/fileUploading/FileInfo/styles.d.ts +1 -1
- package/components/fileUploading/fileUploaderIndex.d.ts +5 -0
- package/components/fileUploading/fileUploaderIndex.js +4 -0
- package/components/fileUploading/hooks/useFileUploader/useFileUploader.js +2 -1
- package/components/fileUploading/hooks/usePreviewFileUploader/usePreviewFileUploader.js +2 -1
- package/components/fileUploading/index.d.ts +7 -7
- package/components/fileUploading/index.js +7 -7
- package/components/fileUploading/previewFileUploaderIndex.d.ts +5 -0
- package/components/fileUploading/previewFileUploaderIndex.js +5 -0
- package/components/hooks/external/index.d.ts +4 -0
- package/components/hooks/external/index.js +4 -0
- package/components/hooks/external/useFirstMountState.d.ts +1 -0
- package/components/hooks/external/useFirstMountState.js +1 -0
- package/components/hooks/external/useInterval.d.ts +1 -0
- package/components/hooks/external/useInterval.js +1 -0
- package/components/hooks/external/useSet.d.ts +1 -0
- package/components/hooks/external/useSet.js +1 -0
- package/components/hooks/external/useUpdateEffect.d.ts +1 -0
- package/components/hooks/external/useUpdateEffect.js +1 -0
- package/components/hooks/useSecondsCountDown/useSecondsCountdown.js +2 -2
- package/components/index.d.ts +4 -4
- package/components/index.js +2 -3
- package/components/personalDataSecurity/index.d.ts +2 -2
- package/components/personalDataSecurity/index.js +2 -2
- package/components/placeholders/Placeholder/Image/Image.d.ts +1 -1
- package/components/placeholders/Placeholder/Placeholder.d.ts +2 -2
- package/components/placeholders/Placeholder/Placeholder.js +1 -1
- package/components/placeholders/index.d.ts +4 -4
- package/components/placeholders/index.js +4 -4
- package/components/services/SecondsCountdown/SecondsCountdown.d.ts +1 -1
- package/components/services/SecondsCountdown/SecondsCountdown.js +2 -1
- package/components/services/index.d.ts +1 -1
- package/components/services/index.js +1 -1
- package/components/transitions/index.d.ts +4 -4
- package/components/transitions/index.js +4 -4
- package/components/utils/external/classnames.d.ts +1 -0
- package/components/utils/external/classnames.js +1 -0
- package/components/utils/external/index.d.ts +2 -0
- package/components/utils/external/index.js +2 -0
- package/{node/components/utils/external.d.ts → components/utils/external/remeda.d.ts} +0 -1
- package/components/utils/{external.d.ts → external/remeda.js} +0 -1
- package/hook-form/FormAddressAutocomplete/FormAddressAutocomplete.d.ts +1 -1
- package/hook-form/external.d.ts +1 -0
- package/hook-form/external.js +1 -0
- package/hook-form/hooks/useForm/useForm.js +3 -2
- package/hook-form/index.d.ts +2 -2
- package/hook-form/index.js +2 -2
- package/hook-form/react-hook-form-resolver/index.d.ts +1 -1
- package/hook-form/react-hook-form-resolver/index.js +1 -1
- package/node/components/ActionGroup/MainActions/hooks/useMainActions/useMainActions.d.ts +1 -1
- package/node/components/ActionGroup/hooks/useActionsState/useActionsState.d.ts +1 -1
- package/node/components/ActionGroup/index.d.ts +2 -2
- package/node/components/ActionGroup/index.js +3 -3
- package/node/components/AddressAutocomplete/index.d.ts +1 -1
- package/node/components/AddressAutocomplete/index.js +3 -15
- package/node/components/Alert/index.d.ts +2 -2
- package/node/components/Alert/index.js +3 -17
- package/node/components/AsyncAutocomplete/index.d.ts +1 -1
- package/node/components/AsyncAutocomplete/index.js +3 -15
- package/node/components/AutoSaveIndicator/index.d.ts +1 -1
- package/node/components/AutoSaveIndicator/index.js +3 -15
- package/node/components/Autocomplete/styles.d.ts +1 -1
- package/node/components/Avatar/index.d.ts +1 -1
- package/node/components/Avatar/index.js +3 -15
- package/node/components/AvatarGroup/index.d.ts +1 -1
- package/node/components/AvatarGroup/index.js +3 -15
- package/node/components/Breadcrumbs/index.d.ts +1 -1
- package/node/components/Breadcrumbs/index.js +3 -15
- package/node/components/BulletList/index.d.ts +1 -1
- package/node/components/BulletList/index.js +3 -15
- package/node/components/BulletListInlineItem/index.d.ts +1 -1
- package/node/components/BulletListInlineItem/index.js +3 -15
- package/node/components/BulletListItem/index.d.ts +1 -1
- package/node/components/BulletListItem/index.js +3 -15
- package/node/components/CodeField/index.d.ts +1 -1
- package/node/components/CodeField/index.js +3 -15
- package/node/components/ComplianceStatus/index.d.ts +1 -1
- package/node/components/ComplianceStatus/index.js +3 -15
- package/node/components/ConfigProvider/ConfigProvider.d.ts +2 -2
- package/node/components/ConfirmAction/index.d.ts +1 -1
- package/node/components/ConfirmAction/index.js +3 -15
- package/node/components/CopyTypography/index.d.ts +1 -1
- package/node/components/CopyTypography/index.js +3 -15
- package/node/components/Counter/index.d.ts +1 -2
- package/node/components/Counter/index.js +3 -16
- package/node/components/DashboardAlert/index.d.ts +2 -2
- package/node/components/DashboardAlert/index.js +3 -16
- package/node/components/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/node/components/DashboardLayout/Header/Header.js +1 -1
- package/node/components/DashboardLayout/Main/useLogic/useLogic.js +2 -1
- package/node/components/DashboardLayout/Sidebar/MenuSidebarButton/MenuSidebarButton.js +1 -1
- package/node/components/DashboardLayout/Sidebar/MenuSidebarButton/useLogic/useLogic.js +1 -1
- package/node/components/DashboardLayout/Sidebar/Sidebar.d.ts +2 -2
- package/node/components/DashboardLayout/Sidebar/SidebarButton/SidebarButton.js +1 -1
- package/node/components/DashboardLayout/Sidebar/SidebarCounter/SidebarCounter.js +1 -1
- package/node/components/DashboardLayout/Sidebar/SidebarCounter/styles.d.ts +2 -2
- package/node/components/DashboardLayout/Sidebar/SidebarPopover/FadePopup/useLogic/useLogic.js +1 -1
- package/node/components/DashboardLayout/Sidebar/SidebarPopover/SidebarPopoverItem/useLogic/useLogic.js +1 -1
- package/node/components/DashboardLayout/Sidebar/SidebarPopover/useLogic/useLogic.js +1 -1
- package/node/components/DashboardLayout/Sidebar/types.d.ts +1 -1
- package/node/components/DashboardLayout/Sidebar/useLogic/useLogic.d.ts +2 -2
- package/node/components/DashboardLayout/Sidebar/useLogic/useLogic.js +1 -1
- package/node/components/DashboardLayout/index.d.ts +3 -4
- package/node/components/DashboardLayout/index.js +5 -18
- package/node/components/DashboardSidebarProvider/DashboardSidebarProvider.d.ts +2 -2
- package/node/components/DashboardSidebarProvider/DashboardSidebarProvider.js +3 -3
- package/node/components/DataGrid/index.d.ts +3 -7
- package/node/components/DataGrid/index.js +5 -23
- package/node/components/DataGridActionCell/hooks/useBlockingActions/useBlockingActions.js +2 -2
- package/node/components/DataGridActionCell/index.d.ts +1 -2
- package/node/components/DataGridActionCell/index.js +3 -19
- package/node/components/DataGridColumnHintIcon/index.d.ts +1 -1
- package/node/components/DataGridColumnHintIcon/index.js +3 -15
- package/node/components/DataGridInfinite/DataGridInfinite.d.ts +1 -1
- package/node/components/DataGridInfinite/DataGridInfinite.js +15 -11
- package/node/components/DataGridInfinite/index.d.ts +1 -1
- package/node/components/DataGridInfinite/index.js +3 -15
- package/node/components/DataGridInfinite/types.d.ts +2 -1
- package/node/components/DataGridInfinite/useLogic/useLogic.d.ts +2 -1
- package/node/components/DataGridInfinite/useLogic/useLogic.js +2 -2
- package/node/components/DataGridMinimalisticPagination/index.d.ts +2 -2
- package/node/components/DataGridMinimalisticPagination/index.js +3 -16
- package/node/components/DatePicker/index.d.ts +8 -7
- package/node/components/DatePicker/index.js +21 -21
- package/node/components/DateRangePicker/index.d.ts +1 -1
- package/node/components/DateRangePicker/index.js +3 -15
- package/node/components/DescriptionCell/index.d.ts +1 -1
- package/node/components/DescriptionCell/index.js +3 -15
- package/node/components/DescriptionList/index.d.ts +2 -2
- package/node/components/DescriptionList/index.js +3 -16
- package/node/components/EmailField/index.d.ts +1 -1
- package/node/components/EmailField/index.js +3 -15
- package/node/components/EmailOrPhoneField/index.d.ts +2 -2
- package/node/components/EmailOrPhoneField/index.js +3 -16
- package/node/components/ExpansionPanel/index.d.ts +1 -1
- package/node/components/ExpansionPanel/index.js +3 -16
- package/node/components/Fieldset/index.d.ts +1 -1
- package/node/components/Fieldset/index.js +3 -15
- package/node/components/Filename/index.d.ts +1 -1
- package/node/components/Filename/index.js +3 -15
- package/node/components/GuidTypography/index.d.ts +1 -1
- package/node/components/GuidTypography/index.js +3 -15
- package/node/components/HintIcon/index.d.ts +1 -1
- package/node/components/HintIcon/index.js +3 -16
- package/node/components/Iframe/index.d.ts +1 -1
- package/node/components/Iframe/index.js +3 -15
- package/node/components/InfiniteDataList/index.d.ts +1 -1
- package/node/components/InfiniteDataList/index.js +3 -15
- package/node/components/InputGroup/index.d.ts +1 -1
- package/node/components/InputGroup/index.js +3 -15
- package/node/components/JsonViewer/NodeValue/styles.d.ts +2 -2
- package/node/components/Link/index.d.ts +1 -1
- package/node/components/Link/index.js +3 -15
- package/node/components/Loader/index.d.ts +1 -1
- package/node/components/Loader/index.js +3 -16
- package/node/components/MenuOrganization/OrganizationItem/styles.d.ts +1 -1
- package/node/components/MenuOrganization/index.d.ts +1 -1
- package/node/components/MenuOrganization/index.js +3 -16
- package/node/components/MinimalisticPagination/index.d.ts +2 -2
- package/node/components/MinimalisticPagination/index.js +3 -16
- package/node/components/NavMenu/Item/ItemButton/styles.d.ts +1 -1
- package/node/components/NotFoundPage/index.d.ts +1 -1
- package/node/components/NotFoundPage/index.js +3 -16
- package/node/components/NumberField/index.d.ts +2 -2
- package/node/components/NumberField/index.js +3 -16
- package/node/components/NumberedList/index.d.ts +1 -1
- package/node/components/NumberedList/index.js +3 -15
- package/node/components/NumberedListItem/index.d.ts +1 -1
- package/node/components/NumberedListItem/index.js +3 -15
- package/node/components/PageLayout/PageAlert/styles.d.ts +1 -1
- package/node/components/PageLayout/PagePinnableAside/PagePinnableAside.js +2 -2
- package/node/components/PageLayout/index.d.ts +11 -11
- package/node/components/PageLayout/index.js +30 -25
- package/node/components/Pagination/index.d.ts +1 -1
- package/node/components/Pagination/index.js +3 -15
- package/node/components/ProductSwitcher/Content/styles.d.ts +1 -1
- package/node/components/Profile/MenuList/styles.d.ts +1 -1
- package/node/components/Radio/index.d.ts +1 -1
- package/node/components/Radio/index.js +3 -16
- package/node/components/RadioCard/index.d.ts +1 -1
- package/node/components/RadioCard/index.js +3 -16
- package/node/components/RadioField/index.d.ts +1 -1
- package/node/components/RadioField/index.js +3 -15
- package/node/components/RadioGroup/index.d.ts +1 -1
- package/node/components/RadioGroup/index.js +3 -16
- package/node/components/ResizingDataGrid/types.d.ts +2 -1
- package/node/components/ScrollToTopButton/index.d.ts +1 -1
- package/node/components/ScrollToTopButton/index.js +3 -15
- package/node/components/SearchField/index.d.ts +2 -2
- package/node/components/SearchField/index.js +3 -16
- package/node/components/Select/styles.d.ts +1 -1
- package/node/components/Skeleton/index.d.ts +1 -1
- package/node/components/Skeleton/index.js +3 -15
- package/node/components/StepSlider/index.d.ts +1 -1
- package/node/components/StepSlider/index.js +3 -15
- package/node/components/StepperWizard/index.d.ts +2 -2
- package/node/components/StepperWizard/index.js +3 -16
- package/node/components/SvgIcon/index.d.ts +1 -1
- package/node/components/SvgIcon/index.js +0 -15
- package/node/components/Tree/TreeItem/styles.d.ts +1 -1
- package/node/components/Tree/index.d.ts +4 -4
- package/node/components/Tree/index.js +9 -18
- package/node/components/TreeAutocomplete/index.d.ts +2 -2
- package/node/components/TreeAutocomplete/index.js +3 -16
- package/node/components/TreeLikeAutocomplete/index.d.ts +2 -2
- package/node/components/TreeLikeAutocomplete/index.js +3 -16
- package/node/components/TreeLikeList/index.d.ts +1 -1
- package/node/components/TreeLikeList/index.js +3 -15
- package/node/components/WelcomeScreen/index.d.ts +1 -1
- package/node/components/WelcomeScreen/index.js +3 -15
- package/node/components/fileUploading/FileInfo/styles.d.ts +1 -1
- package/node/components/fileUploading/fileUploaderIndex.d.ts +5 -0
- package/node/components/fileUploading/fileUploaderIndex.js +11 -0
- package/node/components/fileUploading/hooks/useFileUploader/useFileUploader.js +4 -3
- package/node/components/fileUploading/hooks/usePreviewFileUploader/usePreviewFileUploader.js +4 -3
- package/node/components/fileUploading/index.d.ts +7 -7
- package/node/components/fileUploading/index.js +16 -22
- package/node/components/fileUploading/previewFileUploaderIndex.d.ts +5 -0
- package/node/components/fileUploading/previewFileUploaderIndex.js +13 -0
- package/node/components/hooks/external/index.d.ts +4 -0
- package/node/components/hooks/external/index.js +20 -0
- package/node/components/hooks/external/useFirstMountState.d.ts +1 -0
- package/node/components/hooks/external/useFirstMountState.js +5 -0
- package/node/components/hooks/external/useInterval.d.ts +1 -0
- package/node/components/hooks/external/useInterval.js +5 -0
- package/node/components/hooks/external/useSet.d.ts +1 -0
- package/node/components/hooks/external/useSet.js +5 -0
- package/node/components/hooks/external/useUpdateEffect.d.ts +1 -0
- package/node/components/hooks/external/useUpdateEffect.js +5 -0
- package/node/components/hooks/useSecondsCountDown/useSecondsCountdown.js +1 -1
- package/node/components/index.d.ts +4 -4
- package/node/components/index.js +2 -3
- package/node/components/personalDataSecurity/index.d.ts +2 -2
- package/node/components/personalDataSecurity/index.js +5 -16
- package/node/components/placeholders/Placeholder/Image/Image.d.ts +1 -1
- package/node/components/placeholders/Placeholder/Placeholder.d.ts +2 -2
- package/node/components/placeholders/index.d.ts +4 -4
- package/node/components/placeholders/index.js +10 -18
- package/node/components/services/SecondsCountdown/SecondsCountdown.d.ts +1 -1
- package/node/components/services/SecondsCountdown/SecondsCountdown.js +4 -3
- package/node/components/services/index.d.ts +1 -1
- package/node/components/services/index.js +3 -15
- package/node/components/transitions/index.d.ts +4 -4
- package/node/components/transitions/index.js +9 -18
- package/node/components/utils/external/classnames.d.ts +1 -0
- package/node/components/utils/external/classnames.js +8 -0
- package/node/components/utils/external/index.d.ts +2 -0
- package/node/components/utils/external/index.js +18 -0
- package/{components/utils/external.js → node/components/utils/external/remeda.d.ts} +0 -1
- package/node/components/utils/{external.js → external/remeda.js} +1 -6
- package/node/hook-form/FormAddressAutocomplete/FormAddressAutocomplete.d.ts +1 -1
- package/node/hook-form/external.d.ts +1 -0
- package/node/hook-form/external.js +8 -0
- package/node/hook-form/hooks/useForm/useForm.js +2 -1
- package/node/hook-form/index.d.ts +2 -2
- package/node/hook-form/index.js +6 -6
- package/node/hook-form/react-hook-form-resolver/index.d.ts +1 -1
- package/node/hook-form/react-hook-form-resolver/index.js +2 -2
- package/package.json +3499 -20
- package/components/hooks/external.d.ts +0 -1
- package/components/hooks/external.js +0 -1
- package/node/components/hooks/external.d.ts +0 -1
- package/node/components/hooks/external.js +0 -8
|
@@ -298,7 +298,7 @@ export declare const useMainActions: <TMainActionComponent extends ElementType>(
|
|
|
298
298
|
disableGutters?: boolean | undefined;
|
|
299
299
|
disabledReason?: string | undefined;
|
|
300
300
|
note?: string | undefined;
|
|
301
|
-
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "
|
|
301
|
+
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" | undefined;
|
|
302
302
|
component?: ElementType | undefined;
|
|
303
303
|
href?: string | undefined;
|
|
304
304
|
css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ElementType } from 'react';
|
|
2
|
-
import type { MainAction, SecondaryAction } from '../../
|
|
2
|
+
import type { MainAction, SecondaryAction } from '../../types';
|
|
3
3
|
type UseActionsStateParams<TMainActionComponent extends ElementType, TSecondaryActionComponent extends ElementType> = {
|
|
4
4
|
/**
|
|
5
5
|
* Основные действия
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { ActionGroup } from './ActionGroup';
|
|
2
2
|
export * from './hooks';
|
|
3
3
|
export { MainActions, useMainActions } from './MainActions';
|
|
4
4
|
export { SecondaryActions } from './SecondaryActions';
|
|
5
5
|
export { SecondaryVisibleActions } from './SecondaryVisibleActions';
|
|
6
|
-
export
|
|
6
|
+
export type { ActionGroupProps, MainAction, MainActionsProps, SecondaryActionProps, SecondaryVisibleActionProps, } from './types';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { ActionGroup } from './ActionGroup';
|
|
2
2
|
export * from './hooks';
|
|
3
3
|
export { MainActions, useMainActions } from './MainActions';
|
|
4
4
|
export { SecondaryActions } from './SecondaryActions';
|
|
5
5
|
export { SecondaryVisibleActions } from './SecondaryVisibleActions';
|
|
6
|
-
export * from './types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { AddressAutocomplete, type AddressAutocompleteProps, type AddressAutocompleteValue, } from './AddressAutocomplete';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { AddressAutocomplete, } from './AddressAutocomplete';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { Alert } from './Alert';
|
|
2
|
+
export type { AlertProps, AlertSeverity } from './types';
|
|
3
3
|
export { alertClassnames } from './constants';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { AsyncAutocomplete, type AsyncAutocompleteProps, } from './AsyncAutocomplete';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { AsyncAutocomplete, } from './AsyncAutocomplete';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { AutoSaveIndicator, type AutoSaveIndicatorProps, } from './AutoSaveIndicator';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { AutoSaveIndicator, } from './AutoSaveIndicator';
|
|
@@ -3,7 +3,7 @@ import { Autocomplete as MuiAutocomplete } from '@mui/material';
|
|
|
3
3
|
export declare const StyledMenuItem: import("@emotion/styled").StyledComponent<import("..").WithoutEmotionSpecific<import("@mui/material").MenuItemProps> & {
|
|
4
4
|
disabledReason?: string | undefined;
|
|
5
5
|
note?: string | undefined;
|
|
6
|
-
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "
|
|
6
|
+
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" | undefined;
|
|
7
7
|
component?: import("react").ElementType | undefined;
|
|
8
8
|
href?: string | undefined;
|
|
9
9
|
} & Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Avatar } from './Avatar';
|
|
2
2
|
export type { AvatarProps, AvatarSize } from './types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Avatar } from './Avatar';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { AvatarGroup, type AvatarGroupProps } from './AvatarGroup';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { AvatarGroup } from './AvatarGroup';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Breadcrumbs, type BreadcrumbsProps } from './Breadcrumbs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Breadcrumbs } from './Breadcrumbs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { BulletList, type BulletListProps } from './BulletList';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { BulletList } from './BulletList';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { BulletListInlineItem, type BulletListInlineItemProps, } from './BulletListInlineItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { BulletListInlineItem, } from './BulletListInlineItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { BulletListItem, type BulletListItemProps } from './BulletListItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { BulletListItem } from './BulletListItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { CodeField, type CodeFieldProps } from './CodeField';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { CodeField } from './CodeField';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { ComplianceStatus, type ComplianceStatusItem, type ComplianceStatusProps, } from './ComplianceStatus';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { ComplianceStatus, } from './ComplianceStatus';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactElement, type ReactNode } from 'react';
|
|
2
2
|
import { type LanguageMap } from '../DatePicker/types';
|
|
3
|
-
import { type
|
|
3
|
+
import { type PlaceholderImageProps } from '../placeholders';
|
|
4
4
|
import { type NextFeatureFlagsContextProps } from './NextFeatureFlagsContext';
|
|
5
5
|
type Language = 'ru';
|
|
6
6
|
type ImagesMap = {
|
|
@@ -88,7 +88,7 @@ export type ConfigContextProps = {
|
|
|
88
88
|
* Кастомный компонент, ответственный за рендер основного изображения,
|
|
89
89
|
* По умолчанию рендерится обычный img тег
|
|
90
90
|
*/
|
|
91
|
-
renderImage?: (props:
|
|
91
|
+
renderImage?: (props: PlaceholderImageProps) => ReactElement;
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
94
|
layout?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { ConfirmAction, type ConfirmActionProps, type ActionComponentParams, } from './ConfirmAction';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { ConfirmAction, } from './ConfirmAction';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { CopyTypography, type CopyTypographyProps } from './CopyTypography';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { CopyTypography } from './CopyTypography';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from './types';
|
|
1
|
+
export { Counter, type CounterProps } from './Counter';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from './types';
|
|
1
|
+
export { Counter } from './Counter';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { DashboardAlert } from './DashboardAlert';
|
|
2
|
+
export type { DashboardAlertProps } from './types';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from './types';
|
|
1
|
+
export { DashboardAlert } from './DashboardAlert';
|
|
@@ -17,6 +17,6 @@ export type DashboardLayoutProps = {
|
|
|
17
17
|
export declare const DashboardLayout: {
|
|
18
18
|
({ children, isFocusedMode, isLoading, }: DashboardLayoutProps): JSX.Element;
|
|
19
19
|
Header: import("react").ForwardRefExoticComponent<import("./Header").HeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
-
Sidebar: import("react").ForwardRefExoticComponent<import("./Sidebar").
|
|
20
|
+
Sidebar: import("react").ForwardRefExoticComponent<import("./Sidebar").DashboardSidebarProps & import("react").RefAttributes<HTMLBaseElement>>;
|
|
21
21
|
Main: import("react").ForwardRefExoticComponent<import("./Main").MainProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
22
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useContext } from 'react';
|
|
3
3
|
import { CrossOutlineMd, MenuOnOutlineMd, QuitOutlineMd } from '../../../icons';
|
|
4
4
|
import { Button } from '../../Button';
|
|
5
|
-
import {
|
|
5
|
+
import { SidebarContext } from '../../DashboardSidebarProvider';
|
|
6
6
|
import { useViewportType } from '../../hooks';
|
|
7
7
|
import { Product } from '../../Product';
|
|
8
8
|
import { Profile } from '../../Profile';
|
|
@@ -17,7 +17,7 @@ export const Header = forwardRef((props, ref) => {
|
|
|
17
17
|
const { productSwitcher: ProductSwitcher, product, profile, menuOrganization, children, } = props;
|
|
18
18
|
const { isShowExitButton, isShowProfile } = useLogic(props);
|
|
19
19
|
const { isFocusedMode, isLoading } = useContext(DashboardContext);
|
|
20
|
-
const { collapsedIn, onToggleSidebar } = useContext(
|
|
20
|
+
const { collapsedIn, onToggleSidebar } = useContext(SidebarContext);
|
|
21
21
|
const { isMobile } = useViewportType();
|
|
22
22
|
return (_jsx(HeaderRoot, { ref: ref, "$isFocusedMode": isFocusedMode, inert: !isMobile && isFocusedMode ? '' : undefined, className: dashboardLayoutHeaderClassnames.root, children: _jsxs(HeaderContent, { children: [_jsx(MobileSidebarTogglerWrapper, { className: dashboardLayoutHeaderClassnames.mobileSidebarButton, children: _jsx(Button, { startIcon: collapsedIn ? _jsx(CrossOutlineMd, {}) : _jsx(MenuOnOutlineMd, {}), variant: "text", onClick: () => onToggleSidebar() }) }), _jsxs(HeaderSection, { children: [ProductSwitcher && (_jsx(ProductSwitcherWrapper, { children: _jsx(ProductSwitcher, {}) })), _jsx(Product, { ...product })] }), _jsxs(HeaderContentSection, { children: [children, menuOrganization?.(), profile && (_jsx(ProfileWrapper, { "$isShow": isShowProfile, children: _jsx(Profile, { isLoading: isLoading, ...profile }) })), _jsx(ExitButton, { "$isShow": isShowExitButton, onClick: profile?.exitButton?.onClick, title: "\u0412\u044B\u0445\u043E\u0434", variant: "text", children: _jsx(QuitOutlineMd, {}) })] })] }) }));
|
|
23
23
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useContext, useEffect, useRef } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { pageContentClassnames } from '../../../PageLayout';
|
|
3
|
+
import { PAGE_CONTENT_ANIMATION } from '../../../PageLayout/PageContent/constants';
|
|
3
4
|
import { DashboardContext } from '../../DashboardContext';
|
|
4
5
|
export const useLogic = () => {
|
|
5
6
|
const { isFocusedMode, setAlertElement } = useContext(DashboardContext);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useContext } from 'react';
|
|
3
3
|
import { Collapse } from '../../../Collapse';
|
|
4
|
-
import {
|
|
4
|
+
import { SidebarContext } from '../../../DashboardSidebarProvider';
|
|
5
5
|
import { SidebarButton } from '../SidebarButton';
|
|
6
6
|
import { useLogic } from './useLogic';
|
|
7
7
|
export const MenuSidebarButton = forwardRef((props, ref) => {
|
|
8
|
-
const { collapsedIn, isPopupOpen, setIsPopupOpen } = useContext(
|
|
8
|
+
const { collapsedIn, isPopupOpen, setIsPopupOpen } = useContext(SidebarContext);
|
|
9
9
|
const { handleTogglePopover, popoverAnchorRef } = useLogic({
|
|
10
10
|
isPopupOpen,
|
|
11
11
|
setIsPopupOpen,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContext, useImperativeHandle } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SidebarContext } from '../../../../DashboardSidebarProvider';
|
|
3
3
|
export const useLogic = ({ setIsPopupOpen, isPopupOpen, ref, }) => {
|
|
4
|
-
const { popoverAnchorRef } = useContext(
|
|
4
|
+
const { popoverAnchorRef } = useContext(SidebarContext);
|
|
5
5
|
useImperativeHandle(ref, () => popoverAnchorRef.current);
|
|
6
6
|
const handleTogglePopover = () => {
|
|
7
7
|
setIsPopupOpen(!isPopupOpen);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
2
|
+
import { type DashboardSidebarProps } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Основной sidebar приложения
|
|
5
5
|
*/
|
|
6
|
-
export declare const Sidebar: import("react").ForwardRefExoticComponent<
|
|
6
|
+
export declare const Sidebar: import("react").ForwardRefExoticComponent<DashboardSidebarProps & import("react").RefAttributes<HTMLBaseElement>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useContext } from 'react';
|
|
3
3
|
import { Collapse } from '../../../Collapse';
|
|
4
|
-
import {
|
|
4
|
+
import { SidebarContext } from '../../../DashboardSidebarProvider';
|
|
5
5
|
import { SidebarButton as Button } from './styles';
|
|
6
6
|
export const SidebarButton = forwardRef((props, ref) => {
|
|
7
7
|
const { children } = props;
|
|
8
|
-
const { collapsedIn } = useContext(
|
|
8
|
+
const { collapsedIn } = useContext(SidebarContext);
|
|
9
9
|
return (_jsx(Button, { ref: ref, "$isOpen": collapsedIn, ...props, children: _jsx(Collapse, { orientation: "horizontal", in: collapsedIn, children: children }) }));
|
|
10
10
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useContext } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { SidebarContext } from '../../../DashboardSidebarProvider';
|
|
4
4
|
import { Badge } from './Badge';
|
|
5
5
|
import { StyledCounter } from './styles';
|
|
6
6
|
/**
|
|
7
7
|
* Компонент для отображения счетчика в элементах меню Sidebar
|
|
8
8
|
*/
|
|
9
9
|
export const SidebarCounter = ({ count, max }) => {
|
|
10
|
-
const { collapsedIn } = useContext(
|
|
10
|
+
const { collapsedIn } = useContext(SidebarContext);
|
|
11
11
|
if (!count) {
|
|
12
12
|
return null;
|
|
13
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const StyledCounter: import("@emotion/styled").StyledComponent<Omit<import("../../..").WithoutEmotionSpecific<import("@mui/material").BadgeProps>, "color" | "content" | "children" | "variant" | "invisible" | "anchorOrigin" | "overlap" | "badgeContent" | "withBorder"> & {
|
|
2
|
-
color: import("../../../Counter").CounterColor;
|
|
3
|
-
variant?: import("../../../Counter").CounterVariants | undefined;
|
|
2
|
+
color: import("../../../Counter/types").CounterColor;
|
|
3
|
+
variant?: import("../../../Counter/types").CounterVariants | undefined;
|
|
4
4
|
content?: number | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useContext } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SidebarContext } from '../../../../../DashboardSidebarProvider';
|
|
3
3
|
import { usePopoverAnimation } from '../../../../../hooks';
|
|
4
4
|
export const useLogic = ({ isOpen }) => {
|
|
5
|
-
const { popoverAnchorRef } = useContext(
|
|
5
|
+
const { popoverAnchorRef } = useContext(SidebarContext);
|
|
6
6
|
const topPosition = popoverAnchorRef.current?.offsetTop;
|
|
7
7
|
const { shouldRender, handleAnimationEnd } = usePopoverAnimation(isOpen);
|
|
8
8
|
return { handleAnimationEnd, shouldRender, topPosition };
|
package/components/DashboardLayout/Sidebar/SidebarPopover/SidebarPopoverItem/useLogic/useLogic.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContext } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SidebarContext } from '../../../../../DashboardSidebarProvider';
|
|
3
3
|
export const useLogic = ({ onClick }) => {
|
|
4
|
-
const { setIsPopupOpen, isPinned, onToggleSidebar } = useContext(
|
|
4
|
+
const { setIsPopupOpen, isPinned, onToggleSidebar } = useContext(SidebarContext);
|
|
5
5
|
const handleItemClick = () => {
|
|
6
6
|
onClick?.();
|
|
7
7
|
setIsPopupOpen(false);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContext } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SidebarContext } from '../../../../DashboardSidebarProvider';
|
|
3
3
|
export const useLogic = () => {
|
|
4
|
-
const { setIsPopupOpen, isPopupOpen } = useContext(
|
|
4
|
+
const { setIsPopupOpen, isPopupOpen } = useContext(SidebarContext);
|
|
5
5
|
const handleClosePopover = () => {
|
|
6
6
|
setIsPopupOpen(false);
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
3
|
-
export declare const useLogic: (props:
|
|
2
|
+
import { type DashboardSidebarProps } from '../types';
|
|
3
|
+
export declare const useLogic: (props: DashboardSidebarProps) => {
|
|
4
4
|
isPinned: boolean;
|
|
5
5
|
isMobile: boolean;
|
|
6
6
|
collapsedIn: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext, useEffect, useRef } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SidebarContext } from '../../../DashboardSidebarProvider';
|
|
3
3
|
import { useViewportType } from '../../../hooks';
|
|
4
4
|
import { useTheme } from '../../../theme';
|
|
5
5
|
import { DashboardContext } from '../../DashboardContext';
|
|
@@ -7,7 +7,7 @@ import { dashboardLayoutHeaderClassnames } from '../../Header/constants';
|
|
|
7
7
|
import { dashboardLayoutMainClassnames } from '../../Main/constants';
|
|
8
8
|
export const useLogic = (props) => {
|
|
9
9
|
const { className, menu, header, isLoading } = props;
|
|
10
|
-
const { onToggleSidebar, isPinned, onTogglePin, collapsedIn, setIsPopupOpen, } = useContext(
|
|
10
|
+
const { onToggleSidebar, isPinned, onTogglePin, collapsedIn, setIsPopupOpen, } = useContext(SidebarContext);
|
|
11
11
|
const { alertHeight, isLoading: isDashboardLoading } = useContext(DashboardContext);
|
|
12
12
|
const { isMobile } = useViewportType();
|
|
13
13
|
const hoverTimerRef = useRef(null);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { MenuSidebarButton, type MenuSidebarButtonProps, SidebarButton, SidebarCounter, type SidebarCounterProps, SidebarPopover, type SidebarPopoverItemProps, type SidebarPopoverProps, type
|
|
3
|
-
export
|
|
4
|
-
export * from './PinButton';
|
|
1
|
+
export { type DashboardLayoutProps, DashboardLayout } from './DashboardLayout';
|
|
2
|
+
export { MenuSidebarButton, type MenuSidebarButtonProps, SidebarButton, SidebarCounter, type SidebarCounterProps, SidebarPopover, type SidebarPopoverItemProps, type SidebarPopoverProps, type DashboardSidebarProps, SidebarSkeleton, } from './Sidebar';
|
|
3
|
+
export { DashboardContext, type DashboardContextProps, } from './DashboardContext';
|
|
5
4
|
export { DashboardLayoutSkeleton, type DashboardLayoutSkeletonProps, } from './DashboardLayoutSkeleton';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { DashboardLayout } from './DashboardLayout';
|
|
2
2
|
export { MenuSidebarButton, SidebarButton, SidebarCounter, SidebarPopover, SidebarSkeleton, } from './Sidebar';
|
|
3
|
-
export
|
|
4
|
-
export * from './PinButton';
|
|
3
|
+
export { DashboardContext, } from './DashboardContext';
|
|
5
4
|
export { DashboardLayoutSkeleton, } from './DashboardLayoutSkeleton';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode, type RefObject } from 'react';
|
|
2
|
-
export type
|
|
2
|
+
export type SidebarContextProps = {
|
|
3
3
|
collapsedIn: boolean;
|
|
4
4
|
onToggleSidebar: (newValue?: boolean) => void;
|
|
5
5
|
isPinned: boolean;
|
|
@@ -22,7 +22,7 @@ export type DashboardSidebarProviderProps = {
|
|
|
22
22
|
localStorageKey?: string;
|
|
23
23
|
isFocusedMode?: boolean;
|
|
24
24
|
};
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const SidebarContext: import("react").Context<SidebarContextProps>;
|
|
26
26
|
/**
|
|
27
27
|
* Провайдер предназначен для проброса состояния боковой панел, а так же управления этим состоянием.
|
|
28
28
|
* В данный провайдер обернут компонент DashboardLayout.
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { createContext, createRef, useRef, useState, } from 'react';
|
|
3
3
|
import { LOCAL_STORAGE_KEY } from './constants';
|
|
4
4
|
import { useSidebar } from './hooks';
|
|
5
|
-
export const
|
|
5
|
+
export const SidebarContext = createContext({
|
|
6
6
|
collapsedIn: false,
|
|
7
7
|
onToggleSidebar: () => undefined,
|
|
8
8
|
isPinned: true,
|
|
@@ -25,5 +25,5 @@ export const DashboardSidebarProvider = ({ children, localStorageKey = LOCAL_STO
|
|
|
25
25
|
setIsPopupOpen,
|
|
26
26
|
popoverAnchorRef,
|
|
27
27
|
};
|
|
28
|
-
return (_jsx(
|
|
28
|
+
return (_jsx(SidebarContext.Provider, { value: value, children: children }));
|
|
29
29
|
};
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export * from './DataGrid';
|
|
5
|
-
export * from './Row';
|
|
6
|
-
export { Container } from './styles';
|
|
7
|
-
export * from './types';
|
|
1
|
+
export { DataGrid } from './DataGrid';
|
|
2
|
+
export type { DataGridProps, DataGridColumns, DataGridRow, DataGridRowOptions, DataGridSort, DataGridRowWithOptions, DataGridRowOptionColumns, } from './types';
|
|
3
|
+
export { dataGridClassnames } from './constants';
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export * from './Head';
|
|
4
|
-
export * from './DataGrid';
|
|
5
|
-
export * from './Row';
|
|
6
|
-
export { Container } from './styles';
|
|
7
|
-
export * from './types';
|
|
1
|
+
export { DataGrid } from './DataGrid';
|
|
2
|
+
export { dataGridClassnames } from './constants';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext, useEffect } from 'react';
|
|
2
|
-
import { RowContext } from '../../../DataGrid';
|
|
2
|
+
import { RowContext } from '../../../DataGrid/Row';
|
|
3
3
|
import { ActionCellContext, } from '../../ActionCellContext';
|
|
4
4
|
/**
|
|
5
5
|
* хук позволяющий подписаться на событие блокировки действий
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { DataGridActionCell, type DataGridActionCellProps, type DataGridActions, } from './DataGridActionCell';
|
|
2
2
|
export { DataGridMainActions, type DataGridMainActionsProps, } from './DataGridMainActions';
|
|
3
3
|
export { DataGridSecondaryActions, type DataGridSecondaryActionsProps, DataGridSecondaryActionsSkeleton, } from './DataGridSecondaryActions';
|
|
4
|
-
export { SecondaryActionsMenuProvider, useSecondaryActionsMenu, } from './SecondaryActionsMenuContext';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { DataGridActionCell, } from './DataGridActionCell';
|
|
2
2
|
export { DataGridMainActions, } from './DataGridMainActions';
|
|
3
3
|
export { DataGridSecondaryActions, DataGridSecondaryActionsSkeleton, } from './DataGridSecondaryActions';
|
|
4
|
-
export { SecondaryActionsMenuProvider, useSecondaryActionsMenu, } from './SecondaryActionsMenuContext';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { DataGridColumnHintIcon, type DataGridColumnHintIconProps, } from './DataGridColumnHintIcon';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { DataGridColumnHintIcon, } from './DataGridColumnHintIcon';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type DataGridRow } from '../DataGrid';
|
|
2
|
+
import { type DataGridRow } from '../DataGrid/types';
|
|
3
3
|
import { type DataGridInfiniteProps } from './types';
|
|
4
4
|
export declare const DataGridInfinite: <TData extends Record<string, unknown> = DataGridRow, TSortField extends keyof TData = keyof TData>(props: DataGridInfiniteProps<TData, TSortField>) => JSX.Element;
|
|
@@ -3,8 +3,12 @@ import { useContext } from 'react';
|
|
|
3
3
|
import { Virtuoso } from 'react-virtuoso';
|
|
4
4
|
import { ConfigContext } from '../ConfigProvider';
|
|
5
5
|
import { ContentState } from '../ContentState';
|
|
6
|
-
import {
|
|
6
|
+
import { dataGridClassnames, EXPANDED_LEVEL_BY_DEFAULT, INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT, } from '../DataGrid/constants';
|
|
7
7
|
import { DataGridContextProvider } from '../DataGrid/DataGridContext';
|
|
8
|
+
import { Variant } from '../DataGrid/enums';
|
|
9
|
+
import { Head } from '../DataGrid/Head';
|
|
10
|
+
import { Row, RowContextProvider } from '../DataGrid/Row';
|
|
11
|
+
import { Container } from '../DataGrid/styles';
|
|
8
12
|
import { Loader } from '../Loader';
|
|
9
13
|
import { ScrollToTopButton } from '../ScrollToTopButton';
|
|
10
14
|
import { classNames } from '../utils';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { DataGridInfinite } from './DataGridInfinite';
|
|
2
2
|
export type { DataGridInfiniteProps } from './types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { DataGridInfinite } from './DataGridInfinite';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DataGridProps, DataGridRow } from '../DataGrid';
|
|
2
|
+
import { type CellValue } from '../DataGrid/types';
|
|
2
3
|
export type DataGridInfiniteProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends keyof TData = keyof TData> = Omit<DataGridProps<TData, TSortField>, 'footer' | 'minDisplayRows'> & {
|
|
3
4
|
/**
|
|
4
5
|
* Флаг достижения конца списка
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ChangeEvent } from 'react';
|
|
2
2
|
import type { ListRange, VirtuosoHandle } from 'react-virtuoso';
|
|
3
|
-
import { type
|
|
3
|
+
import { type DataGridRow } from '../../DataGrid';
|
|
4
|
+
import { type CellValue } from '../../DataGrid/types';
|
|
4
5
|
import { type DataGridInfiniteProps } from '../types';
|
|
5
6
|
type UseLogicParams<TData extends Record<string, CellValue> = DataGridRow, TSortField extends keyof TData = keyof TData> = DataGridInfiniteProps<TData, TSortField>;
|
|
6
7
|
export declare const useLogic: <TData extends Record<string, unknown> = DataGridRow, TSortField extends keyof TData = keyof TData>({ keyId, columns, rows, variant, tree, subrows, selectedRows, isLoading, isDisabled, isEndReached, onEndReached, onSelectRow, isHideSelectAll, isHideHeaderIfNoData, }: UseLogicParams<TData, TSortField>) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useMemo, useRef, useState, } from 'react';
|
|
2
|
-
import { Variant } from '../../DataGrid';
|
|
2
|
+
import { Variant } from '../../DataGrid/enums';
|
|
3
3
|
import { getGridTemplateColumns } from '../../DataGrid/useLogic/utils';
|
|
4
4
|
import { useToggle } from '../../hooks';
|
|
5
5
|
import { prop, uniqueBy } from '../../utils';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { DataGridMinimalisticPagination } from './DataGridMinimalisticPagination';
|
|
2
|
+
export type { DataGridMinimalisticPaginationProps } from './types';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from './types';
|
|
1
|
+
export { DataGridMinimalisticPagination } from './DataGridMinimalisticPagination';
|