@astral/ui 4.18.5 → 4.19.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/AsyncAutocomplete/useLogic/useLogic.js +1 -1
- package/components/AutoSaveIndicator/useLogic/useLogic.js +1 -1
- package/components/Banner/BannerActionButton/BannerActionButton.js +1 -1
- package/components/Banner/BannerContainer/BannerContainer.js +1 -1
- package/components/Banner/BannerTemplate/BannerTemplate.js +1 -1
- package/components/CardGridInfinite/Card/SecondaryActionButton/SecondaryActionButton.js +1 -1
- package/components/CardGridInfinite/useLogic/useLogic.js +3 -3
- package/components/Checkbox/useLogic/useLogic.js +1 -1
- package/components/ClickAwayListener/ClickAwayListener.d.ts +1 -1
- package/components/ClickAwayListener/ClickAwayListener.js +1 -1
- package/components/CodeField/Resend/320/241odeButton/Resend/320/241odeButton.js +1 -1
- package/components/ComplianceStatus/ComplianceStatus.js +1 -1
- package/components/ConfirmAction/useLogic/useLogic.d.ts +1 -1
- package/components/ConfirmAction/useLogic/useLogic.js +1 -1
- package/components/ConfirmDialog/useLogic/useLogic.js +1 -1
- package/components/ContentState/useLogic/useLogic.js +1 -1
- package/components/DashboardLayout/Header/Header.js +1 -1
- package/components/DashboardLayout/Header/useLogic/useLogic.js +1 -1
- package/components/DashboardSidebar/useLogic/useLogic.js +1 -1
- package/components/DashboardSidebarPopover/FadePopup/useLogic/useLogic.js +1 -1
- package/components/DashboardSidebarProvider/hooks/useSidebar/useSidebar.js +3 -3
- package/components/DashboardSidebarSkeleton/useLogic/useLogic.js +1 -1
- package/components/DataGrid/useLogic/useLogic.js +1 -1
- package/components/DataGridActionCell/SecondaryActionsButton/SecondaryActionsButton.js +1 -1
- package/components/DataGridInfinite/useLogic/useLogic.js +1 -1
- package/components/DatePicker/DatePickerPopover/DatePickerPopover.js +2 -2
- package/components/DatePicker/DayPicker/DayPicker.js +1 -1
- package/components/DatePicker/MonthPicker/MonthPicker.js +1 -1
- package/components/DatePicker/useLogic/useLogic.js +3 -3
- package/components/DateRangePicker/useLogic/useLogic.js +2 -2
- package/components/Description/useLogic/useLogic.js +1 -1
- package/components/Dialog/Dialog.js +1 -1
- package/components/DropdownButton/DropdownButton.js +1 -1
- package/components/HintIcon/useLogic/useLogic.js +1 -1
- package/components/IconDropdownButton/IconDropdownButton.js +1 -1
- package/components/InfiniteDataList/InfiniteDataList.js +1 -1
- package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.js +1 -1
- package/components/InfiniteTreeList/useLogic/useLogic.js +3 -3
- package/components/Menu/Menu.js +1 -1
- package/components/MenuOrganization/useLogic/useLogic.d.ts +1 -1
- package/components/MenuOrganization/useLogic/useLogic.js +1 -1
- package/components/NavMenu/Item/ItemButton/ItemButton.js +1 -1
- package/components/Notification/NotificationContainer/NotificationContainer.js +1 -1
- package/components/OverflowTypography/hooks/useOverflowed/useOverflowed.js +1 -1
- package/components/PagePinnableAside/useLogic/useLogic.js +1 -1
- package/components/Popover/Popover.js +1 -1
- package/components/ProductSwitcher/useLogic/useLogic.js +1 -1
- package/components/Profile/MenuList/MenuList.js +1 -1
- package/components/Profile/Profile.js +1 -1
- package/components/Radio/Radio.js +1 -1
- package/components/Radio/useLogic/useLogic.js +1 -1
- package/components/RadioGroup/useLogic/useLogic.js +1 -1
- package/components/RedesignBanner/useLogic/useLogic.js +1 -1
- package/components/ResizingDataGrid/Sliders/useLogic/useLogic.js +1 -1
- package/components/SearchField/useLogic/useLogic.js +2 -2
- package/components/StaticCalendar/StaticDaysCalendar/StaticDaysCalendar.js +1 -1
- package/components/StepSlider/StepSlider.js +1 -1
- package/components/Tree/TreeList/useLogic/useLogic.js +1 -1
- package/components/TreeAsyncAutocomplete/Input/useLogic/useLogic.js +1 -1
- package/components/TreeAsyncAutocomplete/useLogic/useLogic.js +1 -1
- package/components/TreeAutocomplete/Input/useLogic/useLogic.js +1 -1
- package/components/TreeLikeAsyncAutocomplete/Input/useLogic/useLogic.js +1 -1
- package/components/TreeLikeAsyncAutocomplete/useLogic/useLogic.js +1 -1
- package/components/TreeLikeAutocomplete/Input/useLogic/useLogic.js +1 -1
- package/components/TreeLikeList/TreeItem/useLogic/useLogic.js +1 -1
- package/components/TreeLikeList/useLogic/useLogic.js +1 -1
- package/components/fileUploading/FileUploader/FIleList/FileList.d.ts +6 -2
- package/components/fileUploading/FileUploader/FIleList/FileList.js +1 -1
- package/components/fileUploading/FileUploaderFile/Actions/Actions.js +3 -3
- package/components/fileUploading/FileUploaderFile/Actions/useLogic/useLogic.d.ts +6 -1
- package/components/fileUploading/FileUploaderFile/Actions/useLogic/useLogic.js +2 -1
- package/components/fileUploading/FileUploaderFile/FileUploaderFile.d.ts +4 -0
- package/components/fileUploading/FileUploaderFile/Progress/useLogic/useLogic.js +1 -1
- package/components/fileUploading/PreviewFileUploader/FileList/FileList.d.ts +6 -2
- package/components/fileUploading/PreviewFileUploader/FileList/FileList.js +1 -1
- package/components/fileUploading/PreviewFileUploaderFile/FileLoading/Progress/useLogic/useLogic.js +1 -1
- package/components/fileUploading/PreviewFileUploaderFile/FilePreview/FilePreview.d.ts +4 -0
- package/components/fileUploading/PreviewFileUploaderFile/FilePreview/FilePreview.js +3 -3
- package/components/fileUploading/PreviewFileUploaderFile/PreviewFileUploaderFile.d.ts +4 -0
- package/components/fileUploading/PreviewFileUploaderFile/PreviewFileUploaderFile.js +2 -2
- package/components/fileUploading/hooks/useFileUploader/useFileUploader.d.ts +2 -1
- package/components/fileUploading/hooks/useFileUploader/useFileUploader.js +19 -7
- package/components/fileUploading/hooks/usePreviewFileUploader/usePreviewFileUploader.d.ts +10 -2
- package/components/fileUploading/hooks/usePreviewFileUploader/usePreviewFileUploader.js +16 -6
- package/components/fileUploading/types.d.ts +7 -0
- package/components/index.d.ts +24 -24
- package/components/index.js +24 -24
- package/components/{hooks/useAsyncOptions → useAsyncOptions}/useAsyncOptions.js +1 -1
- package/components/{hooks/useClickAwayEffect → useClickAwayEffect}/useClickAwayEffect.d.ts +1 -1
- package/{node/components/hooks → components}/useEscapeClickEffect/useEscapeClickEffect.d.ts +1 -1
- package/components/{hooks/useFeatureFlags → useFeatureFlags}/useFeatureFlags.d.ts +1 -1
- package/components/{hooks/useFocusAwayEffect → useFocusAwayEffect}/useFocusAwayEffect.d.ts +1 -1
- package/{node/components/hooks → components}/useInputPopover/useInputPopover.d.ts +1 -1
- package/components/{hooks/useLocaleDateTimeFormat → useLocaleDateTimeFormat}/useLocaleDateTimeFormat.js +1 -1
- package/components/{hooks/useScrollManagement → useScrollManagement}/useScrollManagement.js +1 -1
- package/components/{hooks/useSecondsCountDown → useSecondsCountDown}/useSecondsCountdown.d.ts +1 -1
- package/components/{hooks/useSecondsCountDown → useSecondsCountDown}/useSecondsCountdown.js +1 -1
- package/hook-form/EditableText/EditableText.d.ts +1 -1
- package/hook-form/EditableText/EditingForm/EditingForm.d.ts +1 -1
- package/hook-form/EditableText/EditingForm/useLogic/useLogic.js +1 -1
- package/hook-form/EditableText/useLogic/useLogic.d.ts +1 -1
- package/hook-form/EditableText/useLogic/useLogic.js +1 -1
- package/hook-form/Form/Form.d.ts +1 -1
- package/hook-form/FormAddressAutocomplete/FormAddressAutocomplete.js +1 -1
- package/hook-form/FormAsyncAutocomplete/FormAsyncAutocomplete.js +1 -1
- package/hook-form/FormAutocomplete/FormAutocomplete.js +1 -1
- package/hook-form/FormCheckboxField/FormCheckboxField.js +1 -1
- package/hook-form/FormCodeField/FormCodeField.js +1 -1
- package/hook-form/FormDatePicker/FormDatePicker.js +2 -2
- package/hook-form/FormDateRangePicker/FormDateRangePicker.js +2 -2
- package/hook-form/FormEmailField/FormEmailField.js +1 -1
- package/hook-form/FormEmailOrPhoneField/FormEmailOrPhoneField.js +1 -1
- package/hook-form/FormFileUploader/FormFileUploader.js +1 -1
- package/hook-form/FormMaskField/FormMaskField.js +1 -1
- package/hook-form/FormMobilePhoneField/FormMobilePhoneField.js +1 -1
- package/hook-form/FormNumberField/FormNumberField.js +1 -1
- package/hook-form/FormPageLayoutBase/FormPageLayoutBase.d.ts +1 -1
- package/hook-form/FormPasswordField/FormPasswordField.js +1 -1
- package/hook-form/FormPreviewFileUploader/FormPreviewFileUploader.js +1 -1
- package/hook-form/FormRadioGroup/FormRadioGroup.js +1 -1
- package/hook-form/FormSelect/FormSelect.js +1 -1
- package/hook-form/FormSubmitButton/FormSubmitButton.js +1 -1
- package/hook-form/FormTextArea/FormTextArea.js +1 -1
- package/hook-form/FormTextField/FormTextField.js +1 -1
- package/hook-form/FormToggleButtonGroup/FormToggleButtonGroup.js +1 -1
- package/hook-form/FormTreeAsyncAutocomplete/FormTreeAsyncAutocomplete.js +1 -1
- package/hook-form/FormTreeAutocomplete/FormTreeAutocomplete.js +1 -1
- package/hook-form/FormTreeLikeAsyncAutocomplete/FormTreeLikeAsyncAutocomplete.js +1 -1
- package/hook-form/FormTreeLikeAutocomplete/FormTreeLikeAutocomplete.js +1 -1
- package/hook-form/FormWizard/FormWizard.d.ts +1 -1
- package/hook-form/index.d.ts +10 -1
- package/hook-form/index.js +10 -1
- package/hook-form/types/public.d.ts +1 -1
- package/hook-form/types/public.js +1 -1
- package/{node/hook-form/hooks → hook-form}/useForm/types.d.ts +1 -1
- package/{node/hook-form/hooks → hook-form}/useForm/useForm.d.ts +1 -1
- package/hook-form/{hooks/useForm → useForm}/useForm.js +1 -1
- package/hook-form/{hooks/useFormFieldErrorProps → useFormFieldErrorProps}/useFormFieldErrorProps.d.ts +1 -1
- package/hook-form/{hooks/useFormFieldProps → useFormFieldProps}/useFormFieldProps.d.ts +1 -1
- package/hook-form/{hooks/useFormFieldProps → useFormFieldProps}/useFormFieldProps.js +1 -1
- package/hook-form/{hooks/useFormInputProps → useFormInputProps}/useFormInputProps.d.ts +1 -1
- package/hook-form/{hooks/useFormWizard → useFormWizard}/useFormWizard.js +1 -1
- package/node/components/AsyncAutocomplete/useLogic/useLogic.js +1 -1
- package/node/components/AutoSaveIndicator/useLogic/useLogic.js +1 -1
- package/node/components/Banner/BannerActionButton/BannerActionButton.js +1 -1
- package/node/components/Banner/BannerContainer/BannerContainer.js +1 -1
- package/node/components/Banner/BannerTemplate/BannerTemplate.js +1 -1
- package/node/components/CardGridInfinite/Card/SecondaryActionButton/SecondaryActionButton.js +1 -1
- package/node/components/CardGridInfinite/useLogic/useLogic.js +3 -3
- package/node/components/Checkbox/useLogic/useLogic.js +1 -1
- package/node/components/ClickAwayListener/ClickAwayListener.d.ts +1 -1
- package/node/components/ClickAwayListener/ClickAwayListener.js +1 -1
- package/node/components/CodeField/Resend/320/241odeButton/Resend/320/241odeButton.js +1 -1
- package/node/components/ComplianceStatus/ComplianceStatus.js +1 -1
- package/node/components/ConfirmAction/useLogic/useLogic.d.ts +1 -1
- package/node/components/ConfirmAction/useLogic/useLogic.js +1 -1
- package/node/components/ConfirmDialog/useLogic/useLogic.js +1 -1
- package/node/components/ContentState/useLogic/useLogic.js +1 -1
- package/node/components/DashboardLayout/Header/Header.js +1 -1
- package/node/components/DashboardLayout/Header/useLogic/useLogic.js +1 -1
- package/node/components/DashboardSidebar/useLogic/useLogic.js +1 -1
- package/node/components/DashboardSidebarPopover/FadePopup/useLogic/useLogic.js +1 -1
- package/node/components/DashboardSidebarProvider/hooks/useSidebar/useSidebar.js +3 -3
- package/node/components/DashboardSidebarSkeleton/useLogic/useLogic.js +1 -1
- package/node/components/DataGrid/useLogic/useLogic.js +1 -1
- package/node/components/DataGridActionCell/SecondaryActionsButton/SecondaryActionsButton.js +1 -1
- package/node/components/DataGridInfinite/useLogic/useLogic.js +1 -1
- package/node/components/DatePicker/DatePickerPopover/DatePickerPopover.js +2 -2
- package/node/components/DatePicker/DayPicker/DayPicker.js +1 -1
- package/node/components/DatePicker/MonthPicker/MonthPicker.js +1 -1
- package/node/components/DatePicker/useLogic/useLogic.js +3 -3
- package/node/components/DateRangePicker/useLogic/useLogic.js +2 -2
- package/node/components/Description/useLogic/useLogic.js +1 -1
- package/node/components/Dialog/Dialog.js +1 -1
- package/node/components/DropdownButton/DropdownButton.js +1 -1
- package/node/components/HintIcon/useLogic/useLogic.js +1 -1
- package/node/components/IconDropdownButton/IconDropdownButton.js +1 -1
- package/node/components/InfiniteDataList/InfiniteDataList.js +1 -1
- package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.js +1 -1
- package/node/components/InfiniteTreeList/useLogic/useLogic.js +3 -3
- package/node/components/Menu/Menu.js +1 -1
- package/node/components/MenuOrganization/useLogic/useLogic.d.ts +1 -1
- package/node/components/MenuOrganization/useLogic/useLogic.js +1 -1
- package/node/components/NavMenu/Item/ItemButton/ItemButton.js +1 -1
- package/node/components/Notification/NotificationContainer/NotificationContainer.js +1 -1
- package/node/components/OverflowTypography/hooks/useOverflowed/useOverflowed.js +1 -1
- package/node/components/PagePinnableAside/useLogic/useLogic.js +1 -1
- package/node/components/Popover/Popover.js +1 -1
- package/node/components/ProductSwitcher/useLogic/useLogic.js +1 -1
- package/node/components/Profile/MenuList/MenuList.js +1 -1
- package/node/components/Profile/Profile.js +1 -1
- package/node/components/Radio/Radio.js +1 -1
- package/node/components/Radio/useLogic/useLogic.js +1 -1
- package/node/components/RadioGroup/useLogic/useLogic.js +1 -1
- package/node/components/RedesignBanner/useLogic/useLogic.js +1 -1
- package/node/components/ResizingDataGrid/Sliders/useLogic/useLogic.js +1 -1
- package/node/components/SearchField/useLogic/useLogic.js +2 -2
- package/node/components/StaticCalendar/StaticDaysCalendar/StaticDaysCalendar.js +1 -1
- package/node/components/StepSlider/StepSlider.js +1 -1
- package/node/components/Tree/TreeList/useLogic/useLogic.js +1 -1
- package/node/components/TreeAsyncAutocomplete/Input/useLogic/useLogic.js +1 -1
- package/node/components/TreeAsyncAutocomplete/useLogic/useLogic.js +1 -1
- package/node/components/TreeAutocomplete/Input/useLogic/useLogic.js +1 -1
- package/node/components/TreeLikeAsyncAutocomplete/Input/useLogic/useLogic.js +1 -1
- package/node/components/TreeLikeAsyncAutocomplete/useLogic/useLogic.js +1 -1
- package/node/components/TreeLikeAutocomplete/Input/useLogic/useLogic.js +1 -1
- package/node/components/TreeLikeList/TreeItem/useLogic/useLogic.js +1 -1
- package/node/components/TreeLikeList/useLogic/useLogic.js +1 -1
- package/node/components/fileUploading/FileUploader/FIleList/FileList.d.ts +6 -2
- package/node/components/fileUploading/FileUploader/FIleList/FileList.js +1 -1
- package/node/components/fileUploading/FileUploaderFile/Actions/Actions.js +3 -3
- package/node/components/fileUploading/FileUploaderFile/Actions/useLogic/useLogic.d.ts +6 -1
- package/node/components/fileUploading/FileUploaderFile/Actions/useLogic/useLogic.js +2 -1
- package/node/components/fileUploading/FileUploaderFile/FileUploaderFile.d.ts +4 -0
- package/node/components/fileUploading/FileUploaderFile/Progress/useLogic/useLogic.js +1 -1
- package/node/components/fileUploading/PreviewFileUploader/FileList/FileList.d.ts +6 -2
- package/node/components/fileUploading/PreviewFileUploader/FileList/FileList.js +1 -1
- package/node/components/fileUploading/PreviewFileUploaderFile/FileLoading/Progress/useLogic/useLogic.js +1 -1
- package/node/components/fileUploading/PreviewFileUploaderFile/FilePreview/FilePreview.d.ts +4 -0
- package/node/components/fileUploading/PreviewFileUploaderFile/FilePreview/FilePreview.js +3 -3
- package/node/components/fileUploading/PreviewFileUploaderFile/PreviewFileUploaderFile.d.ts +4 -0
- package/node/components/fileUploading/PreviewFileUploaderFile/PreviewFileUploaderFile.js +2 -2
- package/node/components/fileUploading/hooks/useFileUploader/useFileUploader.d.ts +2 -1
- package/node/components/fileUploading/hooks/useFileUploader/useFileUploader.js +18 -6
- package/node/components/fileUploading/hooks/usePreviewFileUploader/usePreviewFileUploader.d.ts +10 -2
- package/node/components/fileUploading/hooks/usePreviewFileUploader/usePreviewFileUploader.js +15 -5
- package/node/components/fileUploading/types.d.ts +7 -0
- package/node/components/index.d.ts +24 -24
- package/node/components/index.js +24 -24
- package/node/components/{hooks/useAsyncOptions → useAsyncOptions}/useAsyncOptions.js +1 -1
- package/node/components/{hooks/useClickAwayEffect → useClickAwayEffect}/useClickAwayEffect.d.ts +1 -1
- package/{components/hooks → node/components}/useEscapeClickEffect/useEscapeClickEffect.d.ts +1 -1
- package/node/components/{hooks/useFeatureFlags → useFeatureFlags}/useFeatureFlags.d.ts +1 -1
- package/node/components/{hooks/useFocusAwayEffect → useFocusAwayEffect}/useFocusAwayEffect.d.ts +1 -1
- package/{components/hooks → node/components}/useInputPopover/useInputPopover.d.ts +1 -1
- package/node/components/{hooks/useLocaleDateTimeFormat → useLocaleDateTimeFormat}/useLocaleDateTimeFormat.js +1 -1
- package/node/components/{hooks/useScrollManagement → useScrollManagement}/useScrollManagement.js +1 -1
- package/node/components/{hooks/useSecondsCountDown → useSecondsCountDown}/useSecondsCountdown.d.ts +1 -1
- package/node/components/{hooks/useSecondsCountDown → useSecondsCountDown}/useSecondsCountdown.js +1 -1
- package/node/hook-form/EditableText/EditableText.d.ts +1 -1
- package/node/hook-form/EditableText/EditingForm/EditingForm.d.ts +1 -1
- package/node/hook-form/EditableText/EditingForm/useLogic/useLogic.js +1 -1
- package/node/hook-form/EditableText/useLogic/useLogic.d.ts +1 -1
- package/node/hook-form/EditableText/useLogic/useLogic.js +1 -1
- package/node/hook-form/Form/Form.d.ts +1 -1
- package/node/hook-form/FormAddressAutocomplete/FormAddressAutocomplete.js +1 -1
- package/node/hook-form/FormAsyncAutocomplete/FormAsyncAutocomplete.js +1 -1
- package/node/hook-form/FormAutocomplete/FormAutocomplete.js +1 -1
- package/node/hook-form/FormCheckboxField/FormCheckboxField.js +1 -1
- package/node/hook-form/FormCodeField/FormCodeField.js +1 -1
- package/node/hook-form/FormDatePicker/FormDatePicker.js +2 -2
- package/node/hook-form/FormDateRangePicker/FormDateRangePicker.js +2 -2
- package/node/hook-form/FormEmailField/FormEmailField.js +1 -1
- package/node/hook-form/FormEmailOrPhoneField/FormEmailOrPhoneField.js +1 -1
- package/node/hook-form/FormFileUploader/FormFileUploader.js +1 -1
- package/node/hook-form/FormMaskField/FormMaskField.js +1 -1
- package/node/hook-form/FormMobilePhoneField/FormMobilePhoneField.js +1 -1
- package/node/hook-form/FormNumberField/FormNumberField.js +1 -1
- package/node/hook-form/FormPageLayoutBase/FormPageLayoutBase.d.ts +1 -1
- package/node/hook-form/FormPasswordField/FormPasswordField.js +1 -1
- package/node/hook-form/FormPreviewFileUploader/FormPreviewFileUploader.js +1 -1
- package/node/hook-form/FormRadioGroup/FormRadioGroup.js +1 -1
- package/node/hook-form/FormSelect/FormSelect.js +1 -1
- package/node/hook-form/FormSubmitButton/FormSubmitButton.js +1 -1
- package/node/hook-form/FormTextArea/FormTextArea.js +1 -1
- package/node/hook-form/FormTextField/FormTextField.js +1 -1
- package/node/hook-form/FormToggleButtonGroup/FormToggleButtonGroup.js +1 -1
- package/node/hook-form/FormTreeAsyncAutocomplete/FormTreeAsyncAutocomplete.js +1 -1
- package/node/hook-form/FormTreeAutocomplete/FormTreeAutocomplete.js +1 -1
- package/node/hook-form/FormTreeLikeAsyncAutocomplete/FormTreeLikeAsyncAutocomplete.js +1 -1
- package/node/hook-form/FormTreeLikeAutocomplete/FormTreeLikeAutocomplete.js +1 -1
- package/node/hook-form/FormWizard/FormWizard.d.ts +1 -1
- package/node/hook-form/index.d.ts +10 -1
- package/node/hook-form/index.js +21 -12
- package/node/hook-form/types/public.d.ts +1 -1
- package/node/hook-form/types/public.js +15 -0
- package/{hook-form/hooks → node/hook-form}/useForm/types.d.ts +1 -1
- package/{hook-form/hooks → node/hook-form}/useForm/useForm.d.ts +1 -1
- package/node/hook-form/{hooks/useForm → useForm}/useForm.js +1 -1
- package/node/hook-form/{hooks/useFormFieldErrorProps → useFormFieldErrorProps}/useFormFieldErrorProps.d.ts +1 -1
- package/node/hook-form/{hooks/useFormFieldProps → useFormFieldProps}/useFormFieldProps.d.ts +1 -1
- package/node/hook-form/{hooks/useFormFieldProps → useFormFieldProps}/useFormFieldProps.js +1 -1
- package/node/hook-form/{hooks/useFormInputProps → useFormInputProps}/useFormInputProps.d.ts +1 -1
- package/node/hook-form/{hooks/useFormWizard → useFormWizard}/useFormWizard.js +1 -1
- package/package.json +1 -1
- package/hook-form/FormFileUploader/faker.d.ts +0 -2
- package/hook-form/FormFileUploader/faker.js +0 -37
- package/hook-form/FormPreviewFileUploader/faker.d.ts +0 -2
- package/hook-form/FormPreviewFileUploader/faker.js +0 -37
- package/hook-form/hooks/index.d.ts +0 -11
- package/hook-form/hooks/index.js +0 -11
- package/node/hook-form/FormFileUploader/faker.d.ts +0 -2
- package/node/hook-form/FormFileUploader/faker.js +0 -44
- package/node/hook-form/FormPreviewFileUploader/faker.d.ts +0 -2
- package/node/hook-form/FormPreviewFileUploader/faker.js +0 -44
- package/node/hook-form/hooks/index.d.ts +0 -11
- package/node/hook-form/hooks/index.js +0 -27
- /package/components/{hooks/useAsyncOptions → useAsyncOptions}/index.d.ts +0 -0
- /package/components/{hooks/useAsyncOptions → useAsyncOptions}/index.js +0 -0
- /package/components/{hooks/useAsyncOptions → useAsyncOptions}/public.d.ts +0 -0
- /package/components/{hooks/useAsyncOptions → useAsyncOptions}/public.js +0 -0
- /package/components/{hooks/useAsyncOptions → useAsyncOptions}/useAsyncOptions.d.ts +0 -0
- /package/components/{hooks/useCheckControlled → useCheckControlled}/index.d.ts +0 -0
- /package/components/{hooks/useCheckControlled → useCheckControlled}/index.js +0 -0
- /package/components/{hooks/useCheckControlled → useCheckControlled}/public.d.ts +0 -0
- /package/components/{hooks/useCheckControlled → useCheckControlled}/public.js +0 -0
- /package/components/{hooks/useCheckControlled → useCheckControlled}/useCheckControlled.d.ts +0 -0
- /package/components/{hooks/useCheckControlled → useCheckControlled}/useCheckControlled.js +0 -0
- /package/components/{hooks/useClickAwayEffect → useClickAwayEffect}/index.d.ts +0 -0
- /package/components/{hooks/useClickAwayEffect → useClickAwayEffect}/index.js +0 -0
- /package/components/{hooks/useClickAwayEffect → useClickAwayEffect}/public.d.ts +0 -0
- /package/components/{hooks/useClickAwayEffect → useClickAwayEffect}/public.js +0 -0
- /package/components/{hooks/useClickAwayEffect → useClickAwayEffect}/useClickAwayEffect.js +0 -0
- /package/components/{hooks/useEscapeClickEffect → useEscapeClickEffect}/index.d.ts +0 -0
- /package/components/{hooks/useEscapeClickEffect → useEscapeClickEffect}/index.js +0 -0
- /package/components/{hooks/useEscapeClickEffect → useEscapeClickEffect}/public.d.ts +0 -0
- /package/components/{hooks/useEscapeClickEffect → useEscapeClickEffect}/public.js +0 -0
- /package/components/{hooks/useEscapeClickEffect → useEscapeClickEffect}/useEscapeClickEffect.js +0 -0
- /package/components/{hooks/useFeatureFlags → useFeatureFlags}/index.d.ts +0 -0
- /package/components/{hooks/useFeatureFlags → useFeatureFlags}/index.js +0 -0
- /package/components/{hooks/useFeatureFlags → useFeatureFlags}/public.d.ts +0 -0
- /package/components/{hooks/useFeatureFlags → useFeatureFlags}/public.js +0 -0
- /package/components/{hooks/useFeatureFlags → useFeatureFlags}/useFeatureFlags.js +0 -0
- /package/components/{hooks/useFirstMountState → useFirstMountState}/index.d.ts +0 -0
- /package/components/{hooks/useFirstMountState → useFirstMountState}/index.js +0 -0
- /package/components/{hooks/useFirstMountState → useFirstMountState}/public.d.ts +0 -0
- /package/components/{hooks/useFirstMountState → useFirstMountState}/public.js +0 -0
- /package/components/{hooks/useFirstMountState → useFirstMountState}/useFirstMountState.d.ts +0 -0
- /package/components/{hooks/useFirstMountState → useFirstMountState}/useFirstMountState.js +0 -0
- /package/components/{hooks/useFocusAwayEffect → useFocusAwayEffect}/index.d.ts +0 -0
- /package/components/{hooks/useFocusAwayEffect → useFocusAwayEffect}/index.js +0 -0
- /package/components/{hooks/useFocusAwayEffect → useFocusAwayEffect}/public.d.ts +0 -0
- /package/components/{hooks/useFocusAwayEffect → useFocusAwayEffect}/public.js +0 -0
- /package/components/{hooks/useFocusAwayEffect → useFocusAwayEffect}/useFocusAwayEffect.js +0 -0
- /package/components/{hooks/useForwardedRef → useForwardedRef}/index.d.ts +0 -0
- /package/components/{hooks/useForwardedRef → useForwardedRef}/index.js +0 -0
- /package/components/{hooks/useForwardedRef → useForwardedRef}/public.d.ts +0 -0
- /package/components/{hooks/useForwardedRef → useForwardedRef}/public.js +0 -0
- /package/components/{hooks/useForwardedRef → useForwardedRef}/useForwardedRef.d.ts +0 -0
- /package/components/{hooks/useForwardedRef → useForwardedRef}/useForwardedRef.js +0 -0
- /package/components/{hooks/useGenerateLocalId → useGenerateLocalId}/index.d.ts +0 -0
- /package/components/{hooks/useGenerateLocalId → useGenerateLocalId}/index.js +0 -0
- /package/components/{hooks/useGenerateLocalId → useGenerateLocalId}/public.d.ts +0 -0
- /package/components/{hooks/useGenerateLocalId → useGenerateLocalId}/public.js +0 -0
- /package/components/{hooks/useGenerateLocalId → useGenerateLocalId}/useGenerateLocalId.d.ts +0 -0
- /package/components/{hooks/useGenerateLocalId → useGenerateLocalId}/useGenerateLocalId.js +0 -0
- /package/components/{hooks/useId → useId}/index.d.ts +0 -0
- /package/components/{hooks/useId → useId}/index.js +0 -0
- /package/components/{hooks/useId → useId}/public.d.ts +0 -0
- /package/components/{hooks/useId → useId}/public.js +0 -0
- /package/components/{hooks/useId → useId}/useId.d.ts +0 -0
- /package/components/{hooks/useId → useId}/useId.js +0 -0
- /package/components/{hooks/useInputPopover → useInputPopover}/index.d.ts +0 -0
- /package/components/{hooks/useInputPopover → useInputPopover}/index.js +0 -0
- /package/components/{hooks/useInputPopover → useInputPopover}/public.d.ts +0 -0
- /package/components/{hooks/useInputPopover → useInputPopover}/public.js +0 -0
- /package/components/{hooks/useInputPopover → useInputPopover}/useInputPopover.js +0 -0
- /package/components/{hooks/useInterval → useInterval}/index.d.ts +0 -0
- /package/components/{hooks/useInterval → useInterval}/index.js +0 -0
- /package/components/{hooks/useInterval → useInterval}/public.d.ts +0 -0
- /package/components/{hooks/useInterval → useInterval}/public.js +0 -0
- /package/components/{hooks/useInterval → useInterval}/useInterval.d.ts +0 -0
- /package/components/{hooks/useInterval → useInterval}/useInterval.js +0 -0
- /package/components/{hooks/useLoadingState → useLoadingState}/constants.d.ts +0 -0
- /package/components/{hooks/useLoadingState → useLoadingState}/constants.js +0 -0
- /package/components/{hooks/useLoadingState → useLoadingState}/index.d.ts +0 -0
- /package/components/{hooks/useLoadingState → useLoadingState}/index.js +0 -0
- /package/components/{hooks/useLoadingState → useLoadingState}/public.d.ts +0 -0
- /package/components/{hooks/useLoadingState → useLoadingState}/public.js +0 -0
- /package/components/{hooks/useLoadingState → useLoadingState}/useLoadingState.d.ts +0 -0
- /package/components/{hooks/useLoadingState → useLoadingState}/useLoadingState.js +0 -0
- /package/components/{hooks/useLocalStorage → useLocalStorage}/index.d.ts +0 -0
- /package/components/{hooks/useLocalStorage → useLocalStorage}/index.js +0 -0
- /package/components/{hooks/useLocalStorage → useLocalStorage}/public.d.ts +0 -0
- /package/components/{hooks/useLocalStorage → useLocalStorage}/public.js +0 -0
- /package/components/{hooks/useLocalStorage → useLocalStorage}/useLocalStorage.d.ts +0 -0
- /package/components/{hooks/useLocalStorage → useLocalStorage}/useLocalStorage.js +0 -0
- /package/components/{hooks/useLocaleDateTimeFormat → useLocaleDateTimeFormat}/index.d.ts +0 -0
- /package/components/{hooks/useLocaleDateTimeFormat → useLocaleDateTimeFormat}/index.js +0 -0
- /package/components/{hooks/useLocaleDateTimeFormat → useLocaleDateTimeFormat}/public.d.ts +0 -0
- /package/components/{hooks/useLocaleDateTimeFormat → useLocaleDateTimeFormat}/public.js +0 -0
- /package/components/{hooks/useLocaleDateTimeFormat → useLocaleDateTimeFormat}/useLocaleDateTimeFormat.d.ts +0 -0
- /package/components/{hooks/useMenu → useMenu}/index.d.ts +0 -0
- /package/components/{hooks/useMenu → useMenu}/index.js +0 -0
- /package/components/{hooks/useMenu → useMenu}/public.d.ts +0 -0
- /package/components/{hooks/useMenu → useMenu}/public.js +0 -0
- /package/components/{hooks/useMenu → useMenu}/useMenu.d.ts +0 -0
- /package/components/{hooks/useMenu → useMenu}/useMenu.js +0 -0
- /package/components/{hooks/usePopover → usePopover}/index.d.ts +0 -0
- /package/components/{hooks/usePopover → usePopover}/index.js +0 -0
- /package/components/{hooks/usePopover → usePopover}/public.d.ts +0 -0
- /package/components/{hooks/usePopover → usePopover}/public.js +0 -0
- /package/components/{hooks/usePopover → usePopover}/usePopover.d.ts +0 -0
- /package/components/{hooks/usePopover → usePopover}/usePopover.js +0 -0
- /package/components/{hooks/usePopoverAnimation → usePopoverAnimation}/index.d.ts +0 -0
- /package/components/{hooks/usePopoverAnimation → usePopoverAnimation}/index.js +0 -0
- /package/components/{hooks/usePopoverAnimation → usePopoverAnimation}/public.d.ts +0 -0
- /package/components/{hooks/usePopoverAnimation → usePopoverAnimation}/public.js +0 -0
- /package/components/{hooks/usePopoverAnimation → usePopoverAnimation}/usePopoverAnimation.d.ts +0 -0
- /package/components/{hooks/usePopoverAnimation → usePopoverAnimation}/usePopoverAnimation.js +0 -0
- /package/components/{hooks/useRadioGroup → useRadioGroup}/index.d.ts +0 -0
- /package/components/{hooks/useRadioGroup → useRadioGroup}/index.js +0 -0
- /package/components/{hooks/useRadioGroup → useRadioGroup}/public.d.ts +0 -0
- /package/components/{hooks/useRadioGroup → useRadioGroup}/public.js +0 -0
- /package/components/{hooks/useRadioGroup → useRadioGroup}/useRadioGroup.d.ts +0 -0
- /package/components/{hooks/useRadioGroup → useRadioGroup}/useRadioGroup.js +0 -0
- /package/components/{hooks/useScrollManagement → useScrollManagement}/index.d.ts +0 -0
- /package/components/{hooks/useScrollManagement → useScrollManagement}/index.js +0 -0
- /package/components/{hooks/useScrollManagement → useScrollManagement}/public.d.ts +0 -0
- /package/components/{hooks/useScrollManagement → useScrollManagement}/public.js +0 -0
- /package/components/{hooks/useScrollManagement → useScrollManagement}/useScrollManagement.d.ts +0 -0
- /package/components/{hooks/useSecondsCountDown → useSecondsCountDown}/index.d.ts +0 -0
- /package/components/{hooks/useSecondsCountDown → useSecondsCountDown}/index.js +0 -0
- /package/components/{hooks/useSecondsCountDown → useSecondsCountDown}/public.d.ts +0 -0
- /package/components/{hooks/useSecondsCountDown → useSecondsCountDown}/public.js +0 -0
- /package/components/{hooks/useSet → useSet}/index.d.ts +0 -0
- /package/components/{hooks/useSet → useSet}/index.js +0 -0
- /package/components/{hooks/useSet → useSet}/public.d.ts +0 -0
- /package/components/{hooks/useSet → useSet}/public.js +0 -0
- /package/components/{hooks/useSet → useSet}/useSet.d.ts +0 -0
- /package/components/{hooks/useSet → useSet}/useSet.js +0 -0
- /package/components/{hooks/useStickyButton → useStickyButton}/index.d.ts +0 -0
- /package/components/{hooks/useStickyButton → useStickyButton}/index.js +0 -0
- /package/components/{hooks/useStickyButton → useStickyButton}/public.d.ts +0 -0
- /package/components/{hooks/useStickyButton → useStickyButton}/public.js +0 -0
- /package/components/{hooks/useStickyButton → useStickyButton}/useStickyButton.d.ts +0 -0
- /package/components/{hooks/useStickyButton → useStickyButton}/useStickyButton.js +0 -0
- /package/components/{hooks/useToggle → useToggle}/index.d.ts +0 -0
- /package/components/{hooks/useToggle → useToggle}/index.js +0 -0
- /package/components/{hooks/useToggle → useToggle}/public.d.ts +0 -0
- /package/components/{hooks/useToggle → useToggle}/public.js +0 -0
- /package/components/{hooks/useToggle → useToggle}/useToggle.d.ts +0 -0
- /package/components/{hooks/useToggle → useToggle}/useToggle.js +0 -0
- /package/components/{hooks/useUpdateEffect → useUpdateEffect}/index.d.ts +0 -0
- /package/components/{hooks/useUpdateEffect → useUpdateEffect}/index.js +0 -0
- /package/components/{hooks/useUpdateEffect → useUpdateEffect}/public.d.ts +0 -0
- /package/components/{hooks/useUpdateEffect → useUpdateEffect}/public.js +0 -0
- /package/components/{hooks/useUpdateEffect → useUpdateEffect}/useUpdateEffect.d.ts +0 -0
- /package/components/{hooks/useUpdateEffect → useUpdateEffect}/useUpdateEffect.js +0 -0
- /package/components/{hooks/useViewportType → useViewportType}/index.d.ts +0 -0
- /package/components/{hooks/useViewportType → useViewportType}/index.js +0 -0
- /package/components/{hooks/useViewportType → useViewportType}/public.d.ts +0 -0
- /package/components/{hooks/useViewportType → useViewportType}/public.js +0 -0
- /package/components/{hooks/useViewportType → useViewportType}/useViewportType.d.ts +0 -0
- /package/components/{hooks/useViewportType → useViewportType}/useViewportType.js +0 -0
- /package/hook-form/{hooks/useForm → useForm}/index.d.ts +0 -0
- /package/hook-form/{hooks/useForm → useForm}/index.js +0 -0
- /package/hook-form/{hooks/useForm → useForm}/public.d.ts +0 -0
- /package/hook-form/{hooks/useForm → useForm}/public.js +0 -0
- /package/hook-form/{hooks/useForm → useForm}/types.js +0 -0
- /package/hook-form/{hooks/useFormContext → useFormContext}/index.d.ts +0 -0
- /package/hook-form/{hooks/useFormContext → useFormContext}/index.js +0 -0
- /package/hook-form/{hooks/useFormContext → useFormContext}/public.d.ts +0 -0
- /package/hook-form/{hooks/useFormContext → useFormContext}/public.js +0 -0
- /package/hook-form/{hooks/useFormController → useFormController}/index.d.ts +0 -0
- /package/hook-form/{hooks/useFormController → useFormController}/index.js +0 -0
- /package/hook-form/{hooks/useFormController → useFormController}/public.d.ts +0 -0
- /package/hook-form/{hooks/useFormController → useFormController}/public.js +0 -0
- /package/hook-form/{hooks/useFormFieldArray → useFormFieldArray}/index.d.ts +0 -0
- /package/hook-form/{hooks/useFormFieldArray → useFormFieldArray}/index.js +0 -0
- /package/hook-form/{hooks/useFormFieldArray → useFormFieldArray}/public.d.ts +0 -0
- /package/hook-form/{hooks/useFormFieldArray → useFormFieldArray}/public.js +0 -0
- /package/hook-form/{hooks/useFormFieldErrorProps → useFormFieldErrorProps}/index.d.ts +0 -0
- /package/hook-form/{hooks/useFormFieldErrorProps → useFormFieldErrorProps}/index.js +0 -0
- /package/hook-form/{hooks/useFormFieldErrorProps → useFormFieldErrorProps}/public.d.ts +0 -0
- /package/hook-form/{hooks/useFormFieldErrorProps → useFormFieldErrorProps}/public.js +0 -0
- /package/hook-form/{hooks/useFormFieldErrorProps → useFormFieldErrorProps}/useFormFieldErrorProps.js +0 -0
- /package/hook-form/{hooks/useFormFieldProps → useFormFieldProps}/index.d.ts +0 -0
- /package/hook-form/{hooks/useFormFieldProps → useFormFieldProps}/index.js +0 -0
- /package/hook-form/{hooks/useFormFieldProps → useFormFieldProps}/public.d.ts +0 -0
- /package/hook-form/{hooks/useFormFieldProps → useFormFieldProps}/public.js +0 -0
- /package/hook-form/{hooks/useFormInputProps → useFormInputProps}/index.d.ts +0 -0
- /package/hook-form/{hooks/useFormInputProps → useFormInputProps}/index.js +0 -0
- /package/hook-form/{hooks/useFormInputProps → useFormInputProps}/public.d.ts +0 -0
- /package/hook-form/{hooks/useFormInputProps → useFormInputProps}/public.js +0 -0
- /package/hook-form/{hooks/useFormInputProps → useFormInputProps}/useFormInputProps.js +0 -0
- /package/hook-form/{hooks/useFormState → useFormState}/index.d.ts +0 -0
- /package/hook-form/{hooks/useFormState → useFormState}/index.js +0 -0
- /package/hook-form/{hooks/useFormState → useFormState}/public.d.ts +0 -0
- /package/hook-form/{hooks/useFormState → useFormState}/public.js +0 -0
- /package/hook-form/{hooks/useFormWatch → useFormWatch}/index.d.ts +0 -0
- /package/hook-form/{hooks/useFormWatch → useFormWatch}/index.js +0 -0
- /package/hook-form/{hooks/useFormWatch → useFormWatch}/public.d.ts +0 -0
- /package/hook-form/{hooks/useFormWatch → useFormWatch}/public.js +0 -0
- /package/hook-form/{hooks/useFormWatchFields → useFormWatchFields}/index.d.ts +0 -0
- /package/hook-form/{hooks/useFormWatchFields → useFormWatchFields}/index.js +0 -0
- /package/hook-form/{hooks/useFormWatchFields → useFormWatchFields}/public.d.ts +0 -0
- /package/hook-form/{hooks/useFormWatchFields → useFormWatchFields}/public.js +0 -0
- /package/hook-form/{hooks/useFormWatchFields → useFormWatchFields}/useFormWatchFields.d.ts +0 -0
- /package/hook-form/{hooks/useFormWatchFields → useFormWatchFields}/useFormWatchFields.js +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/constants.d.ts +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/constants.js +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/index.d.ts +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/index.js +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/public.d.ts +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/public.js +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/types.d.ts +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/types.js +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/useFormWizard.d.ts +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/compareSteps/compareSteps.d.ts +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/compareSteps/compareSteps.js +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/compareSteps/index.d.ts +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/compareSteps/index.js +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/compareSteps/public.d.ts +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/compareSteps/public.js +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/getWatchFields/getWatchFields.d.ts +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/getWatchFields/getWatchFields.js +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/getWatchFields/index.d.ts +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/getWatchFields/index.js +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/getWatchFields/public.d.ts +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/getWatchFields/public.js +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/index.d.ts +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/index.js +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/public.d.ts +0 -0
- /package/hook-form/{hooks/useFormWizard → useFormWizard}/utils/public.js +0 -0
- /package/node/components/{hooks/useAsyncOptions → useAsyncOptions}/index.d.ts +0 -0
- /package/node/components/{hooks/useAsyncOptions → useAsyncOptions}/index.js +0 -0
- /package/node/components/{hooks/useAsyncOptions → useAsyncOptions}/public.d.ts +0 -0
- /package/node/components/{hooks/useAsyncOptions → useAsyncOptions}/public.js +0 -0
- /package/node/components/{hooks/useAsyncOptions → useAsyncOptions}/useAsyncOptions.d.ts +0 -0
- /package/node/components/{hooks/useCheckControlled → useCheckControlled}/index.d.ts +0 -0
- /package/node/components/{hooks/useCheckControlled → useCheckControlled}/index.js +0 -0
- /package/node/components/{hooks/useCheckControlled → useCheckControlled}/public.d.ts +0 -0
- /package/node/components/{hooks/useCheckControlled → useCheckControlled}/public.js +0 -0
- /package/node/components/{hooks/useCheckControlled → useCheckControlled}/useCheckControlled.d.ts +0 -0
- /package/node/components/{hooks/useCheckControlled → useCheckControlled}/useCheckControlled.js +0 -0
- /package/node/components/{hooks/useClickAwayEffect → useClickAwayEffect}/index.d.ts +0 -0
- /package/node/components/{hooks/useClickAwayEffect → useClickAwayEffect}/index.js +0 -0
- /package/node/components/{hooks/useClickAwayEffect → useClickAwayEffect}/public.d.ts +0 -0
- /package/node/components/{hooks/useClickAwayEffect → useClickAwayEffect}/public.js +0 -0
- /package/node/components/{hooks/useClickAwayEffect → useClickAwayEffect}/useClickAwayEffect.js +0 -0
- /package/node/components/{hooks/useEscapeClickEffect → useEscapeClickEffect}/index.d.ts +0 -0
- /package/node/components/{hooks/useEscapeClickEffect → useEscapeClickEffect}/index.js +0 -0
- /package/node/components/{hooks/useEscapeClickEffect → useEscapeClickEffect}/public.d.ts +0 -0
- /package/node/components/{hooks/useEscapeClickEffect → useEscapeClickEffect}/public.js +0 -0
- /package/node/components/{hooks/useEscapeClickEffect → useEscapeClickEffect}/useEscapeClickEffect.js +0 -0
- /package/node/components/{hooks/useFeatureFlags → useFeatureFlags}/index.d.ts +0 -0
- /package/node/components/{hooks/useFeatureFlags → useFeatureFlags}/index.js +0 -0
- /package/node/components/{hooks/useFeatureFlags → useFeatureFlags}/public.d.ts +0 -0
- /package/node/components/{hooks/useFeatureFlags → useFeatureFlags}/public.js +0 -0
- /package/node/components/{hooks/useFeatureFlags → useFeatureFlags}/useFeatureFlags.js +0 -0
- /package/node/components/{hooks/useFirstMountState → useFirstMountState}/index.d.ts +0 -0
- /package/node/components/{hooks/useFirstMountState → useFirstMountState}/index.js +0 -0
- /package/node/components/{hooks/useFirstMountState → useFirstMountState}/public.d.ts +0 -0
- /package/node/components/{hooks/useFirstMountState → useFirstMountState}/public.js +0 -0
- /package/node/components/{hooks/useFirstMountState → useFirstMountState}/useFirstMountState.d.ts +0 -0
- /package/node/components/{hooks/useFirstMountState → useFirstMountState}/useFirstMountState.js +0 -0
- /package/node/components/{hooks/useFocusAwayEffect → useFocusAwayEffect}/index.d.ts +0 -0
- /package/node/components/{hooks/useFocusAwayEffect → useFocusAwayEffect}/index.js +0 -0
- /package/node/components/{hooks/useFocusAwayEffect → useFocusAwayEffect}/public.d.ts +0 -0
- /package/node/components/{hooks/useFocusAwayEffect → useFocusAwayEffect}/public.js +0 -0
- /package/node/components/{hooks/useFocusAwayEffect → useFocusAwayEffect}/useFocusAwayEffect.js +0 -0
- /package/node/components/{hooks/useForwardedRef → useForwardedRef}/index.d.ts +0 -0
- /package/node/components/{hooks/useForwardedRef → useForwardedRef}/index.js +0 -0
- /package/node/components/{hooks/useForwardedRef → useForwardedRef}/public.d.ts +0 -0
- /package/node/components/{hooks/useForwardedRef → useForwardedRef}/public.js +0 -0
- /package/node/components/{hooks/useForwardedRef → useForwardedRef}/useForwardedRef.d.ts +0 -0
- /package/node/components/{hooks/useForwardedRef → useForwardedRef}/useForwardedRef.js +0 -0
- /package/node/components/{hooks/useGenerateLocalId → useGenerateLocalId}/index.d.ts +0 -0
- /package/node/components/{hooks/useGenerateLocalId → useGenerateLocalId}/index.js +0 -0
- /package/node/components/{hooks/useGenerateLocalId → useGenerateLocalId}/public.d.ts +0 -0
- /package/node/components/{hooks/useGenerateLocalId → useGenerateLocalId}/public.js +0 -0
- /package/node/components/{hooks/useGenerateLocalId → useGenerateLocalId}/useGenerateLocalId.d.ts +0 -0
- /package/node/components/{hooks/useGenerateLocalId → useGenerateLocalId}/useGenerateLocalId.js +0 -0
- /package/node/components/{hooks/useId → useId}/index.d.ts +0 -0
- /package/node/components/{hooks/useId → useId}/index.js +0 -0
- /package/node/components/{hooks/useId → useId}/public.d.ts +0 -0
- /package/node/components/{hooks/useId → useId}/public.js +0 -0
- /package/node/components/{hooks/useId → useId}/useId.d.ts +0 -0
- /package/node/components/{hooks/useId → useId}/useId.js +0 -0
- /package/node/components/{hooks/useInputPopover → useInputPopover}/index.d.ts +0 -0
- /package/node/components/{hooks/useInputPopover → useInputPopover}/index.js +0 -0
- /package/node/components/{hooks/useInputPopover → useInputPopover}/public.d.ts +0 -0
- /package/node/components/{hooks/useInputPopover → useInputPopover}/public.js +0 -0
- /package/node/components/{hooks/useInputPopover → useInputPopover}/useInputPopover.js +0 -0
- /package/node/components/{hooks/useInterval → useInterval}/index.d.ts +0 -0
- /package/node/components/{hooks/useInterval → useInterval}/index.js +0 -0
- /package/node/components/{hooks/useInterval → useInterval}/public.d.ts +0 -0
- /package/node/components/{hooks/useInterval → useInterval}/public.js +0 -0
- /package/node/components/{hooks/useInterval → useInterval}/useInterval.d.ts +0 -0
- /package/node/components/{hooks/useInterval → useInterval}/useInterval.js +0 -0
- /package/node/components/{hooks/useLoadingState → useLoadingState}/constants.d.ts +0 -0
- /package/node/components/{hooks/useLoadingState → useLoadingState}/constants.js +0 -0
- /package/node/components/{hooks/useLoadingState → useLoadingState}/index.d.ts +0 -0
- /package/node/components/{hooks/useLoadingState → useLoadingState}/index.js +0 -0
- /package/node/components/{hooks/useLoadingState → useLoadingState}/public.d.ts +0 -0
- /package/node/components/{hooks/useLoadingState → useLoadingState}/public.js +0 -0
- /package/node/components/{hooks/useLoadingState → useLoadingState}/useLoadingState.d.ts +0 -0
- /package/node/components/{hooks/useLoadingState → useLoadingState}/useLoadingState.js +0 -0
- /package/node/components/{hooks/useLocalStorage → useLocalStorage}/index.d.ts +0 -0
- /package/node/components/{hooks/useLocalStorage → useLocalStorage}/index.js +0 -0
- /package/node/components/{hooks/useLocalStorage → useLocalStorage}/public.d.ts +0 -0
- /package/node/components/{hooks/useLocalStorage → useLocalStorage}/public.js +0 -0
- /package/node/components/{hooks/useLocalStorage → useLocalStorage}/useLocalStorage.d.ts +0 -0
- /package/node/components/{hooks/useLocalStorage → useLocalStorage}/useLocalStorage.js +0 -0
- /package/node/components/{hooks/useLocaleDateTimeFormat → useLocaleDateTimeFormat}/index.d.ts +0 -0
- /package/node/components/{hooks/useLocaleDateTimeFormat → useLocaleDateTimeFormat}/index.js +0 -0
- /package/node/components/{hooks/useLocaleDateTimeFormat → useLocaleDateTimeFormat}/public.d.ts +0 -0
- /package/node/components/{hooks/useLocaleDateTimeFormat → useLocaleDateTimeFormat}/public.js +0 -0
- /package/node/components/{hooks/useLocaleDateTimeFormat → useLocaleDateTimeFormat}/useLocaleDateTimeFormat.d.ts +0 -0
- /package/node/components/{hooks/useMenu → useMenu}/index.d.ts +0 -0
- /package/node/components/{hooks/useMenu → useMenu}/index.js +0 -0
- /package/node/components/{hooks/useMenu → useMenu}/public.d.ts +0 -0
- /package/node/components/{hooks/useMenu → useMenu}/public.js +0 -0
- /package/node/components/{hooks/useMenu → useMenu}/useMenu.d.ts +0 -0
- /package/node/components/{hooks/useMenu → useMenu}/useMenu.js +0 -0
- /package/node/components/{hooks/usePopover → usePopover}/index.d.ts +0 -0
- /package/node/components/{hooks/usePopover → usePopover}/index.js +0 -0
- /package/node/components/{hooks/usePopover → usePopover}/public.d.ts +0 -0
- /package/node/components/{hooks/usePopover → usePopover}/public.js +0 -0
- /package/node/components/{hooks/usePopover → usePopover}/usePopover.d.ts +0 -0
- /package/node/components/{hooks/usePopover → usePopover}/usePopover.js +0 -0
- /package/node/components/{hooks/usePopoverAnimation → usePopoverAnimation}/index.d.ts +0 -0
- /package/node/components/{hooks/usePopoverAnimation → usePopoverAnimation}/index.js +0 -0
- /package/node/components/{hooks/usePopoverAnimation → usePopoverAnimation}/public.d.ts +0 -0
- /package/node/components/{hooks/usePopoverAnimation → usePopoverAnimation}/public.js +0 -0
- /package/node/components/{hooks/usePopoverAnimation → usePopoverAnimation}/usePopoverAnimation.d.ts +0 -0
- /package/node/components/{hooks/usePopoverAnimation → usePopoverAnimation}/usePopoverAnimation.js +0 -0
- /package/node/components/{hooks/useRadioGroup → useRadioGroup}/index.d.ts +0 -0
- /package/node/components/{hooks/useRadioGroup → useRadioGroup}/index.js +0 -0
- /package/node/components/{hooks/useRadioGroup → useRadioGroup}/public.d.ts +0 -0
- /package/node/components/{hooks/useRadioGroup → useRadioGroup}/public.js +0 -0
- /package/node/components/{hooks/useRadioGroup → useRadioGroup}/useRadioGroup.d.ts +0 -0
- /package/node/components/{hooks/useRadioGroup → useRadioGroup}/useRadioGroup.js +0 -0
- /package/node/components/{hooks/useScrollManagement → useScrollManagement}/index.d.ts +0 -0
- /package/node/components/{hooks/useScrollManagement → useScrollManagement}/index.js +0 -0
- /package/node/components/{hooks/useScrollManagement → useScrollManagement}/public.d.ts +0 -0
- /package/node/components/{hooks/useScrollManagement → useScrollManagement}/public.js +0 -0
- /package/node/components/{hooks/useScrollManagement → useScrollManagement}/useScrollManagement.d.ts +0 -0
- /package/node/components/{hooks/useSecondsCountDown → useSecondsCountDown}/index.d.ts +0 -0
- /package/node/components/{hooks/useSecondsCountDown → useSecondsCountDown}/index.js +0 -0
- /package/node/components/{hooks/useSecondsCountDown → useSecondsCountDown}/public.d.ts +0 -0
- /package/node/components/{hooks/useSecondsCountDown → useSecondsCountDown}/public.js +0 -0
- /package/node/components/{hooks/useSet → useSet}/index.d.ts +0 -0
- /package/node/components/{hooks/useSet → useSet}/index.js +0 -0
- /package/node/components/{hooks/useSet → useSet}/public.d.ts +0 -0
- /package/node/components/{hooks/useSet → useSet}/public.js +0 -0
- /package/node/components/{hooks/useSet → useSet}/useSet.d.ts +0 -0
- /package/node/components/{hooks/useSet → useSet}/useSet.js +0 -0
- /package/node/components/{hooks/useStickyButton → useStickyButton}/index.d.ts +0 -0
- /package/node/components/{hooks/useStickyButton → useStickyButton}/index.js +0 -0
- /package/node/components/{hooks/useStickyButton → useStickyButton}/public.d.ts +0 -0
- /package/node/components/{hooks/useStickyButton → useStickyButton}/public.js +0 -0
- /package/node/components/{hooks/useStickyButton → useStickyButton}/useStickyButton.d.ts +0 -0
- /package/node/components/{hooks/useStickyButton → useStickyButton}/useStickyButton.js +0 -0
- /package/node/components/{hooks/useToggle → useToggle}/index.d.ts +0 -0
- /package/node/components/{hooks/useToggle → useToggle}/index.js +0 -0
- /package/node/components/{hooks/useToggle → useToggle}/public.d.ts +0 -0
- /package/node/components/{hooks/useToggle → useToggle}/public.js +0 -0
- /package/node/components/{hooks/useToggle → useToggle}/useToggle.d.ts +0 -0
- /package/node/components/{hooks/useToggle → useToggle}/useToggle.js +0 -0
- /package/node/components/{hooks/useUpdateEffect → useUpdateEffect}/index.d.ts +0 -0
- /package/node/components/{hooks/useUpdateEffect → useUpdateEffect}/index.js +0 -0
- /package/node/components/{hooks/useUpdateEffect → useUpdateEffect}/public.d.ts +0 -0
- /package/node/components/{hooks/useUpdateEffect → useUpdateEffect}/public.js +0 -0
- /package/node/components/{hooks/useUpdateEffect → useUpdateEffect}/useUpdateEffect.d.ts +0 -0
- /package/node/components/{hooks/useUpdateEffect → useUpdateEffect}/useUpdateEffect.js +0 -0
- /package/node/components/{hooks/useViewportType → useViewportType}/index.d.ts +0 -0
- /package/node/components/{hooks/useViewportType → useViewportType}/index.js +0 -0
- /package/node/components/{hooks/useViewportType → useViewportType}/public.d.ts +0 -0
- /package/node/components/{hooks/useViewportType → useViewportType}/public.js +0 -0
- /package/node/components/{hooks/useViewportType → useViewportType}/useViewportType.d.ts +0 -0
- /package/node/components/{hooks/useViewportType → useViewportType}/useViewportType.js +0 -0
- /package/node/hook-form/{hooks/useForm → useForm}/index.d.ts +0 -0
- /package/node/hook-form/{hooks/useForm → useForm}/index.js +0 -0
- /package/node/hook-form/{hooks/useForm → useForm}/public.d.ts +0 -0
- /package/node/hook-form/{hooks/useForm → useForm}/public.js +0 -0
- /package/node/hook-form/{hooks/useForm → useForm}/types.js +0 -0
- /package/node/hook-form/{hooks/useFormContext → useFormContext}/index.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormContext → useFormContext}/index.js +0 -0
- /package/node/hook-form/{hooks/useFormContext → useFormContext}/public.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormContext → useFormContext}/public.js +0 -0
- /package/node/hook-form/{hooks/useFormController → useFormController}/index.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormController → useFormController}/index.js +0 -0
- /package/node/hook-form/{hooks/useFormController → useFormController}/public.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormController → useFormController}/public.js +0 -0
- /package/node/hook-form/{hooks/useFormFieldArray → useFormFieldArray}/index.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormFieldArray → useFormFieldArray}/index.js +0 -0
- /package/node/hook-form/{hooks/useFormFieldArray → useFormFieldArray}/public.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormFieldArray → useFormFieldArray}/public.js +0 -0
- /package/node/hook-form/{hooks/useFormFieldErrorProps → useFormFieldErrorProps}/index.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormFieldErrorProps → useFormFieldErrorProps}/index.js +0 -0
- /package/node/hook-form/{hooks/useFormFieldErrorProps → useFormFieldErrorProps}/public.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormFieldErrorProps → useFormFieldErrorProps}/public.js +0 -0
- /package/node/hook-form/{hooks/useFormFieldErrorProps → useFormFieldErrorProps}/useFormFieldErrorProps.js +0 -0
- /package/node/hook-form/{hooks/useFormFieldProps → useFormFieldProps}/index.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormFieldProps → useFormFieldProps}/index.js +0 -0
- /package/node/hook-form/{hooks/useFormFieldProps → useFormFieldProps}/public.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormFieldProps → useFormFieldProps}/public.js +0 -0
- /package/node/hook-form/{hooks/useFormInputProps → useFormInputProps}/index.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormInputProps → useFormInputProps}/index.js +0 -0
- /package/node/hook-form/{hooks/useFormInputProps → useFormInputProps}/public.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormInputProps → useFormInputProps}/public.js +0 -0
- /package/node/hook-form/{hooks/useFormInputProps → useFormInputProps}/useFormInputProps.js +0 -0
- /package/node/hook-form/{hooks/useFormState → useFormState}/index.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormState → useFormState}/index.js +0 -0
- /package/node/hook-form/{hooks/useFormState → useFormState}/public.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormState → useFormState}/public.js +0 -0
- /package/node/hook-form/{hooks/useFormWatch → useFormWatch}/index.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWatch → useFormWatch}/index.js +0 -0
- /package/node/hook-form/{hooks/useFormWatch → useFormWatch}/public.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWatch → useFormWatch}/public.js +0 -0
- /package/node/hook-form/{hooks/useFormWatchFields → useFormWatchFields}/index.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWatchFields → useFormWatchFields}/index.js +0 -0
- /package/node/hook-form/{hooks/useFormWatchFields → useFormWatchFields}/public.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWatchFields → useFormWatchFields}/public.js +0 -0
- /package/node/hook-form/{hooks/useFormWatchFields → useFormWatchFields}/useFormWatchFields.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWatchFields → useFormWatchFields}/useFormWatchFields.js +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/constants.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/constants.js +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/index.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/index.js +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/public.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/public.js +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/types.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/types.js +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/useFormWizard.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/compareSteps/compareSteps.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/compareSteps/compareSteps.js +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/compareSteps/index.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/compareSteps/index.js +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/compareSteps/public.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/compareSteps/public.js +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/getWatchFields/getWatchFields.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/getWatchFields/getWatchFields.js +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/getWatchFields/index.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/getWatchFields/index.js +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/getWatchFields/public.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/getWatchFields/public.js +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/index.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/index.js +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/public.d.ts +0 -0
- /package/node/hook-form/{hooks/useFormWizard → useFormWizard}/utils/public.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useForwardedRef } from '../../../
|
|
1
|
+
import { useForwardedRef } from '../../../useForwardedRef';
|
|
2
2
|
export const useLogic = ({ value, disabled, inputRef: externalInputRef, onChange, }) => {
|
|
3
3
|
const inputRef = useForwardedRef(externalInputRef);
|
|
4
4
|
const handleClearAll = (event) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useRef, } from 'react';
|
|
2
|
-
import { useForwardedRef } from '../../../
|
|
2
|
+
import { useForwardedRef } from '../../../useForwardedRef';
|
|
3
3
|
export const useLogic = ({ value, disabled, isLoading, inputRef: externalInputRef, onChange: propsOnChange, onClick: propsOnClick, }) => {
|
|
4
4
|
const inputRef = useForwardedRef(externalInputRef);
|
|
5
5
|
const prevValue = useRef(undefined);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState, } from 'react';
|
|
2
|
-
import { useAsyncOptions } from '../../
|
|
2
|
+
import { useAsyncOptions } from '../../useAsyncOptions';
|
|
3
3
|
import { DEFAULT_DELAY_MS, DEFAULT_MIN_SEARCH_CHARACTERS } from '../constants';
|
|
4
4
|
export const useLogic = ({ onBlur, isError, value, isDisabled, fetchDelayMs = DEFAULT_DELAY_MS, fetchOptions, minSymbolsToFetch = DEFAULT_MIN_SEARCH_CHARACTERS, onDataLoadError, onChange, loadingErrorMsg, treeProps, dialogProps, onShowUserHint, ...restInputProps }) => {
|
|
5
5
|
const [isOpen, setOpen] = useState(false);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useRef, } from 'react';
|
|
2
|
-
import { useForwardedRef } from '../../../
|
|
2
|
+
import { useForwardedRef } from '../../../useForwardedRef';
|
|
3
3
|
export const useLogic = ({ value, disabled, isLoading, inputRef: externalInputRef, onChange, }) => {
|
|
4
4
|
const inputRef = useForwardedRef(externalInputRef);
|
|
5
5
|
const prevValue = useRef(undefined);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import { useToggle } from '../../../
|
|
2
|
+
import { useToggle } from '../../../useToggle';
|
|
3
3
|
import { addItem, addItemsByIds, checkIsSelected, getAllChildrenId, getCurrentValueIds, removeItem, removeItemsByIds, } from './utils';
|
|
4
4
|
export const useLogic = ({ item, value = [], level, isConfirmChildrenSelection, isInitialExpanded, expandedLevel, chainsToSelectedItem = [], disabledItems, onChange, isObjectMode, }) => {
|
|
5
5
|
const { id, children } = item;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useMemo, useRef } from 'react';
|
|
2
|
-
import { useId } from '../../hooks/useId';
|
|
3
2
|
import { getFormatDisabledItems } from '../../Tree/utils';
|
|
3
|
+
import { useId } from '../../useId';
|
|
4
4
|
import { getChainsId } from './utils';
|
|
5
5
|
export const useLogic = ({ data, value, disabledItems, }) => {
|
|
6
6
|
const prefixId = useId();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FileUploaderFileProps } from '../../FileUploaderFile';
|
|
2
|
-
import { type UploadFile } from '../../types';
|
|
2
|
+
import { type FileId, type UploadFile } from '../../types';
|
|
3
3
|
export type FileListProps = {
|
|
4
4
|
isMultiple?: boolean;
|
|
5
5
|
/**
|
|
@@ -7,5 +7,9 @@ export type FileListProps = {
|
|
|
7
7
|
*/
|
|
8
8
|
files?: UploadFile[];
|
|
9
9
|
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Идентификатор файла, для которого выполняется удаление
|
|
12
|
+
*/
|
|
13
|
+
deletingFileId?: FileId | null;
|
|
10
14
|
} & Pick<FileUploaderFileProps, 'onDelete' | 'onRetry' | 'onView' | 'generateDownloadLink' | 'selfFiles' | 'setErrorStatusFile'>;
|
|
11
|
-
export declare const FileList: ({ isMultiple, files, className, ...restProps }: FileListProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const FileList: ({ isMultiple, files, className, deletingFileId, ...restProps }: FileListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { FileUploaderFile, } from '../../FileUploaderFile';
|
|
3
3
|
import { Wrapper } from './styles';
|
|
4
|
-
export const FileList = ({ isMultiple, files, className, ...restProps }) => (_jsx(Wrapper, { "$isMultiple": isMultiple, className: className, children: files?.map((file) => (_jsx("li", { children: _jsx(FileUploaderFile, { ...file, ...restProps }) }, file.id))) }));
|
|
4
|
+
export const FileList = ({ isMultiple, files, className, deletingFileId, ...restProps }) => (_jsx(Wrapper, { "$isMultiple": isMultiple, className: className, children: files?.map((file) => (_jsx("li", { children: _jsx(FileUploaderFile, { ...file, ...restProps, isDeletingFile: deletingFileId === file.id }) }, file.id))) }));
|
|
@@ -9,13 +9,13 @@ import { Tooltip } from '../../../Tooltip';
|
|
|
9
9
|
import { Wrapper } from './styles';
|
|
10
10
|
import { useLogic } from './useLogic';
|
|
11
11
|
export const Actions = (props) => {
|
|
12
|
-
const { downloadButtonProps, viewButtonProps, isVisibleAbortButton, isVisibleRetryButton, handleAbort, handleDelete, handleRetry, isLoading, isError, fileName, } = useLogic(props);
|
|
12
|
+
const { downloadButtonProps, viewButtonProps, isVisibleAbortButton, isVisibleRetryButton, handleAbort, handleDelete, handleRetry, isLoading, isError, isDeletingFile, fileName, } = useLogic(props);
|
|
13
13
|
if (isLoading) {
|
|
14
14
|
return (_jsx(Wrapper, { children: isVisibleAbortButton && (_jsx(Tooltip, { title: "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0443", children: _jsx(IconButton, { variant: "text", onClick: handleAbort, children: _jsx(CrossOutlineMd, {}) }) })) }));
|
|
15
15
|
}
|
|
16
16
|
if (isError) {
|
|
17
|
-
return (_jsxs(Wrapper, { children: [isVisibleRetryButton && (_jsx(Tooltip, { title: "\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0443", children: _jsx(IconButton, { variant: "text", onClick: handleRetry, children: _jsx(RetryOutlineMd, {}) }) })), _jsx(Tooltip, { title: "\u0423\u0434\u0430\u043B\u0438\u0442\u044C", children: _jsx(IconButton, { variant: "text", onClick: handleDelete, children: _jsx(CrossOutlineMd, {}) }) })] }));
|
|
17
|
+
return (_jsxs(Wrapper, { children: [isVisibleRetryButton && (_jsx(Tooltip, { title: "\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0443", children: _jsx(IconButton, { variant: "text", onClick: handleRetry, children: _jsx(RetryOutlineMd, {}) }) })), _jsx(Tooltip, { title: "\u0423\u0434\u0430\u043B\u0438\u0442\u044C", children: _jsx(IconButton, { variant: "text", onClick: handleDelete, loading: isDeletingFile, children: _jsx(CrossOutlineMd, {}) }) })] }));
|
|
18
18
|
}
|
|
19
19
|
const { isShowViewButton, ...restViewButtonProps } = viewButtonProps;
|
|
20
|
-
return (_jsxs(Wrapper, { children: [isShowViewButton && (_jsx(Tooltip, { title: "\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C", children: _jsx(IconButton, { variant: "text", ...restViewButtonProps, children: _jsx(EyeOutlineMd, {}) }) })), _jsx(Tooltip, { title: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", children: _jsx(IconButton, { component: "a", variant: "text", download: fileName, ...downloadButtonProps, children: _jsx(DownloadOutlineMd, {}) }) }), _jsx(Tooltip, { title: "\u0423\u0434\u0430\u043B\u0438\u0442\u044C", children: _jsx(IconButton, { variant: "text", onClick: handleDelete, children: _jsx(BinOutlineMd, {}) }) })] }));
|
|
20
|
+
return (_jsxs(Wrapper, { children: [isShowViewButton && (_jsx(Tooltip, { title: "\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C", children: _jsx(IconButton, { variant: "text", ...restViewButtonProps, children: _jsx(EyeOutlineMd, {}) }) })), _jsx(Tooltip, { title: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", children: _jsx(IconButton, { component: "a", variant: "text", download: fileName, ...downloadButtonProps, children: _jsx(DownloadOutlineMd, {}) }) }), _jsx(Tooltip, { title: "\u0423\u0434\u0430\u043B\u0438\u0442\u044C", children: _jsx(IconButton, { variant: "text", onClick: handleDelete, loading: isDeletingFile, children: _jsx(BinOutlineMd, {}) }) })] }));
|
|
21
21
|
};
|
|
@@ -45,9 +45,13 @@ export type UseLogicParams = {
|
|
|
45
45
|
* Функция, вызываемая при удалении файла
|
|
46
46
|
*/
|
|
47
47
|
onDelete: (fileId: FileId) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Флаг загрузки при удалении файла
|
|
50
|
+
*/
|
|
51
|
+
isDeletingFile?: boolean;
|
|
48
52
|
abortController?: AbortController;
|
|
49
53
|
} & Pick<SelfFileApi, 'selfFiles' | 'setErrorStatusFile'>;
|
|
50
|
-
export declare const useLogic: ({ fileId, file, fileUrl, isUploadError, generateDownloadLink, onDelete, onRetry, onView, setErrorStatusFile, selfFiles, isLoading, isError, fileName, }: UseLogicParams) => {
|
|
54
|
+
export declare const useLogic: ({ fileId, file, fileUrl, isUploadError, generateDownloadLink, onDelete, onRetry, onView, setErrorStatusFile, selfFiles, isLoading, isError, isDeletingFile, fileName, }: UseLogicParams) => {
|
|
51
55
|
downloadButtonProps: {
|
|
52
56
|
href: string;
|
|
53
57
|
};
|
|
@@ -69,5 +73,6 @@ export declare const useLogic: ({ fileId, file, fileUrl, isUploadError, generate
|
|
|
69
73
|
handleRetry: () => void | undefined;
|
|
70
74
|
isLoading: boolean | undefined;
|
|
71
75
|
isError: boolean | undefined;
|
|
76
|
+
isDeletingFile: boolean | undefined;
|
|
72
77
|
fileName: string;
|
|
73
78
|
};
|
|
@@ -4,7 +4,7 @@ import { ConfigContext } from '../../../../ConfigProvider';
|
|
|
4
4
|
import { ABORT_ERROR_MESSAGE, EXTENSIONS_IN_NEW_TAB, VIEW_NEW_TAB_ERROR_MESSAGE, } from '../../../constants';
|
|
5
5
|
import { useGenerateLocalFileURL } from '../../../hooks/useGenerateLocalFileURL';
|
|
6
6
|
import { generateAttrLinkNewTab } from '../../../utils/generateAttrLinkNewTab';
|
|
7
|
-
export const useLogic = ({ fileId, file, fileUrl, isUploadError, generateDownloadLink, onDelete, onRetry, onView, setErrorStatusFile, selfFiles, isLoading, isError, fileName, }) => {
|
|
7
|
+
export const useLogic = ({ fileId, file, fileUrl, isUploadError, generateDownloadLink, onDelete, onRetry, onView, setErrorStatusFile, selfFiles, isLoading, isError, isDeletingFile, fileName, }) => {
|
|
8
8
|
const { captureException } = useContext(ConfigContext);
|
|
9
9
|
const { generateUrl } = useGenerateLocalFileURL();
|
|
10
10
|
const { controller } = selfFiles[fileId] || {};
|
|
@@ -71,6 +71,7 @@ export const useLogic = ({ fileId, file, fileUrl, isUploadError, generateDownloa
|
|
|
71
71
|
handleRetry,
|
|
72
72
|
isLoading,
|
|
73
73
|
isError,
|
|
74
|
+
isDeletingFile,
|
|
74
75
|
fileName,
|
|
75
76
|
};
|
|
76
77
|
};
|
|
@@ -17,5 +17,9 @@ export type FileUploaderFileProps = UploadFile & {
|
|
|
17
17
|
* Функция, вызываемая при удалении файла
|
|
18
18
|
*/
|
|
19
19
|
onDelete: (fileId: FileId) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Флаг загрузки при удалении файла
|
|
22
|
+
*/
|
|
23
|
+
isDeletingFile?: boolean;
|
|
20
24
|
} & Pick<ActionsProps, 'selfFiles' | 'setErrorStatusFile'>;
|
|
21
25
|
export declare const FileUploaderFile: (props: FileUploaderFileProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
|
-
import { useInterval } from '../../../../
|
|
2
|
+
import { useInterval } from '../../../../useInterval';
|
|
3
3
|
// При достижении указанного значения прогресс-бар остановится
|
|
4
4
|
const STOP_VALUE = 80;
|
|
5
5
|
export const useLogic = ({ progress }) => {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { type PreviewFileUploaderFileProps } from '../../PreviewFileUploaderFile';
|
|
2
|
-
import {
|
|
2
|
+
import type { FileId, UploadFile } from '../../types';
|
|
3
3
|
export type FileListProps = {
|
|
4
4
|
files: UploadFile[];
|
|
5
|
+
/**
|
|
6
|
+
* Идентификатор файла, для которого выполняется удаление
|
|
7
|
+
*/
|
|
8
|
+
deletingFileId?: FileId | null;
|
|
5
9
|
} & Pick<PreviewFileUploaderFileProps, 'onDelete' | 'onRetry' | 'onView' | 'generateDownloadLink' | 'selfFiles' | 'setErrorStatusFile'>;
|
|
6
|
-
export declare const FileList: ({ files, ...restProps }: FileListProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const FileList: ({ files, deletingFileId, ...restProps }: FileListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { PreviewFileUploaderFile, } from '../../PreviewFileUploaderFile';
|
|
3
|
-
export const FileList = ({ files, ...restProps }) => (_jsx(_Fragment, { children: files?.map((file) => (_jsx(PreviewFileUploaderFile, { ...file, ...restProps }, file.id))) }));
|
|
3
|
+
export const FileList = ({ files, deletingFileId, ...restProps }) => (_jsx(_Fragment, { children: files?.map((file) => (_jsx(PreviewFileUploaderFile, { ...file, ...restProps, isDeletingFile: deletingFileId === file.id }, file.id))) }));
|
package/components/fileUploading/PreviewFileUploaderFile/FileLoading/Progress/useLogic/useLogic.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
|
-
import { useInterval } from '../../../../../
|
|
2
|
+
import { useInterval } from '../../../../../useInterval';
|
|
3
3
|
// При достижении указанного значения прогресс-бар остановится
|
|
4
4
|
const STOP_VALUE = 80;
|
|
5
5
|
export const useLogic = ({ progress }) => {
|
|
@@ -42,6 +42,10 @@ export type FilePreviewProps = {
|
|
|
42
42
|
* Скрытие персональных данных от инструментов мониторинга
|
|
43
43
|
*/
|
|
44
44
|
isHidePersonalData?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Флаг загрузки при удалении файла
|
|
47
|
+
*/
|
|
48
|
+
isDeletingFile?: boolean;
|
|
45
49
|
/**
|
|
46
50
|
* Компонент для отображения превью pdf-файлов
|
|
47
51
|
*/
|
|
@@ -3,17 +3,17 @@ import { BinOutlineMd } from '../../../../icons/BinOutlineMd';
|
|
|
3
3
|
import { DownloadOutlineMd } from '../../../../icons/DownloadOutlineMd';
|
|
4
4
|
import { EyeOutlineMd } from '../../../../icons/EyeOutlineMd';
|
|
5
5
|
import { Button } from '../../../Button';
|
|
6
|
-
import { useViewportType } from '../../../hooks/useViewportType';
|
|
7
6
|
import { IconButton } from '../../../IconButton';
|
|
8
7
|
import { Tooltip } from '../../../Tooltip';
|
|
9
8
|
import { Typography } from '../../../Typography';
|
|
9
|
+
import { useViewportType } from '../../../useViewportType';
|
|
10
10
|
import { previewFileUploaderClassnames } from '../../constants';
|
|
11
11
|
import { Preview } from './Preview';
|
|
12
12
|
import { Actions, Details, StyledFileInfo, Wrapper } from './styles';
|
|
13
13
|
import { useLogic } from './useLogic';
|
|
14
14
|
export const FilePreview = (props) => {
|
|
15
15
|
const { viewButtonProps, downloadButtonProps, deleteButtonProps, isImageFile, isPdfFile, isOtherFile, } = useLogic(props);
|
|
16
|
-
const { file, fileName, fileSize, fileUrl, generateDownloadLink, isHidePersonalData, PdfViewer, } = props;
|
|
16
|
+
const { file, fileName, fileSize, fileUrl, generateDownloadLink, isHidePersonalData, PdfViewer, isDeletingFile, } = props;
|
|
17
17
|
const { isMobile } = useViewportType();
|
|
18
|
-
return (_jsxs(Wrapper, { children: [_jsx(Preview, { isImageFile: isImageFile, isPdfFile: isPdfFile, file: file, fileUrl: fileUrl, generateDownloadLink: generateDownloadLink, isHidePersonalData: isHidePersonalData, PdfViewer: PdfViewer }), _jsxs(Details, { className: previewFileUploaderClassnames.details, "$isOtherFile": isOtherFile, children: [isOtherFile && _jsx(Typography, { variant: "h6", children: "\u0424\u0430\u0439\u043B \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D" }), _jsx(StyledFileInfo, { "$isOtherFile": isOtherFile, fileName: fileName, fileSize: fileSize }), _jsx(Actions, { children: isMobile && isOtherFile ? (_jsx(Button, { variant: "light", color: "grey", ...deleteButtonProps, children: "\u0423\u0434\u0430\u043B\u0438\u0442\u044C" })) : (_jsxs(_Fragment, { children: [!isOtherFile && (_jsx(Tooltip, { title: "\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C", disableInteractive: true, children: _jsx(IconButton, { variant: "light", color: "grey", ...viewButtonProps, children: _jsx(EyeOutlineMd, {}) }) })), _jsx(Tooltip, { title: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", disableInteractive: true, children: _jsx(IconButton, { component: "a", variant: "light", color: "grey", download: fileName, ...downloadButtonProps, children: _jsx(DownloadOutlineMd, {}) }) }), _jsx(Tooltip, { title: "\u0423\u0434\u0430\u043B\u0438\u0442\u044C", disableInteractive: true, children: _jsx(IconButton, { variant: "light", color: "grey", ...deleteButtonProps, children: _jsx(BinOutlineMd, {}) }) })] })) })] })] }));
|
|
18
|
+
return (_jsxs(Wrapper, { children: [_jsx(Preview, { isImageFile: isImageFile, isPdfFile: isPdfFile, file: file, fileUrl: fileUrl, generateDownloadLink: generateDownloadLink, isHidePersonalData: isHidePersonalData, PdfViewer: PdfViewer }), _jsxs(Details, { className: previewFileUploaderClassnames.details, "$isOtherFile": isOtherFile, children: [isOtherFile && _jsx(Typography, { variant: "h6", children: "\u0424\u0430\u0439\u043B \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D" }), _jsx(StyledFileInfo, { "$isOtherFile": isOtherFile, fileName: fileName, fileSize: fileSize }), _jsx(Actions, { children: isMobile && isOtherFile ? (_jsx(Button, { variant: "light", color: "grey", loading: isDeletingFile, ...deleteButtonProps, children: "\u0423\u0434\u0430\u043B\u0438\u0442\u044C" })) : (_jsxs(_Fragment, { children: [!isOtherFile && (_jsx(Tooltip, { title: "\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C", disableInteractive: true, children: _jsx(IconButton, { variant: "light", color: "grey", ...viewButtonProps, children: _jsx(EyeOutlineMd, {}) }) })), _jsx(Tooltip, { title: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", disableInteractive: true, children: _jsx(IconButton, { component: "a", variant: "light", color: "grey", download: fileName, ...downloadButtonProps, children: _jsx(DownloadOutlineMd, {}) }) }), _jsx(Tooltip, { title: "\u0423\u0434\u0430\u043B\u0438\u0442\u044C", disableInteractive: true, children: _jsx(IconButton, { variant: "light", color: "grey", loading: isDeletingFile, ...deleteButtonProps, children: _jsx(BinOutlineMd, {}) }) })] })) })] })] }));
|
|
19
19
|
};
|
|
@@ -23,6 +23,10 @@ export type PreviewFileUploaderFileProps = UploadFile & {
|
|
|
23
23
|
* Скрытие персональных данных от инструментов мониторинга
|
|
24
24
|
*/
|
|
25
25
|
isHidePersonalData?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Флаг загрузки при удалении файла
|
|
28
|
+
*/
|
|
29
|
+
isDeletingFile?: boolean;
|
|
26
30
|
/**
|
|
27
31
|
* Компонент для отображения превью pdf-файлов
|
|
28
32
|
*/
|
|
@@ -5,8 +5,8 @@ import { FileLoading } from './FileLoading';
|
|
|
5
5
|
import { FilePreview } from './FilePreview';
|
|
6
6
|
import { Wrapper } from './styles';
|
|
7
7
|
export const PreviewFileUploaderFile = (props) => {
|
|
8
|
-
const { id, name, type, file, url, size, status, generateDownloadLink, onRetry, onDelete, onView, selfFiles, setErrorStatusFile, isHidePersonalData, PdfViewer, } = props;
|
|
8
|
+
const { id, name, type, file, url, size, status, generateDownloadLink, onRetry, onDelete, onView, selfFiles, setErrorStatusFile, isHidePersonalData, PdfViewer, isDeletingFile, } = props;
|
|
9
9
|
const { isLoading, isUploadError, isRestrictionError, errorMsg, progress } = status || {};
|
|
10
10
|
const isError = isUploadError || isRestrictionError;
|
|
11
|
-
return (_jsx(Fade, { in: true, children: _jsxs(Wrapper, { "$isLoading": isLoading, "$isError": isError, children: [!isLoading && !isError && (_jsx(FilePreview, { fileId: id, fileName: name, fileType: type, file: file, fileUrl: url, fileSize: size, generateDownloadLink: generateDownloadLink, onView: onView, onDelete: onDelete, isHidePersonalData: isHidePersonalData, PdfViewer: PdfViewer })), isLoading && (_jsx(FileLoading, { selfFiles: selfFiles, setErrorStatusFile: setErrorStatusFile, fileId: id, fileName: name, fileSize: size, progress: progress })), isError && (_jsx(FileError, { fileId: id, fileName: name, file: file, fileSize: size, errorMsg: errorMsg, isUploadError: isUploadError, onRetry: onRetry, onDelete: onDelete }))] }) }));
|
|
11
|
+
return (_jsx(Fade, { in: true, children: _jsxs(Wrapper, { "$isLoading": isLoading, "$isError": isError, children: [!isLoading && !isError && (_jsx(FilePreview, { fileId: id, fileName: name, fileType: type, file: file, fileUrl: url, fileSize: size, generateDownloadLink: generateDownloadLink, onView: onView, onDelete: onDelete, isHidePersonalData: isHidePersonalData, PdfViewer: PdfViewer, isDeletingFile: isDeletingFile })), isLoading && (_jsx(FileLoading, { selfFiles: selfFiles, setErrorStatusFile: setErrorStatusFile, fileId: id, fileName: name, fileSize: size, progress: progress })), isError && (_jsx(FileError, { fileId: id, fileName: name, file: file, fileSize: size, errorMsg: errorMsg, isUploadError: isUploadError, onRetry: onRetry, onDelete: onDelete }))] }) }));
|
|
12
12
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ChangeEvent } from 'react';
|
|
2
2
|
import type { FileId, FileUploaderProps, UploadFile } from '../../types';
|
|
3
3
|
export type UseFileUploaderParams = FileUploaderProps;
|
|
4
|
-
export declare const useFileUploader: ({ value, isDisabled, isMultiple, accept, restrictions, maxFileSize, maxFileCount, inputRef, notify, onChange, onUploadFile, name, isError, onView, generateDownloadLink, placeholder, helperText, label, className, getErrorMessage, }: UseFileUploaderParams) => {
|
|
4
|
+
export declare const useFileUploader: ({ value, isDisabled, isMultiple, accept, restrictions, maxFileSize, maxFileCount, inputRef, notify, onChange, onUploadFile, onDeleteFile, name, isError, onView, generateDownloadLink, placeholder, helperText, label, className, getErrorMessage, }: UseFileUploaderParams) => {
|
|
5
5
|
dropZoneProps: {
|
|
6
6
|
isLimitMaxFileCount: boolean;
|
|
7
7
|
maxFileCount: number;
|
|
@@ -53,5 +53,6 @@ export declare const useFileUploader: ({ value, isDisabled, isMultiple, accept,
|
|
|
53
53
|
selfFiles: Record<string, UploadFile & import("../../types").SpecificSelfFileParams>;
|
|
54
54
|
setErrorStatusFile: (fileId: string, errorMsg: string) => void;
|
|
55
55
|
getErrorMessage: ((fileId: string, error: Error) => string) | undefined;
|
|
56
|
+
deletingFileId: string | null;
|
|
56
57
|
};
|
|
57
58
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { declensionOfWords } from '@astral/utils/declension/declensionOfWords';
|
|
2
2
|
import { formatFileSizeToView } from '@astral/utils/file/formatFileSizeToView';
|
|
3
|
-
import { useMemo } from 'react';
|
|
4
|
-
import { useGenerateLocalId } from '../../../
|
|
5
|
-
import { useId } from '../../../
|
|
3
|
+
import { useMemo, useState } from 'react';
|
|
4
|
+
import { useGenerateLocalId } from '../../../useGenerateLocalId';
|
|
5
|
+
import { useId } from '../../../useId';
|
|
6
6
|
import { DEFAULT_FILE_STATUS, fileUploaderClassnames } from '../../constants';
|
|
7
7
|
import { restrictFileMaxSize, restrictFileType } from '../../restrictions';
|
|
8
8
|
import { compareFile } from '../../utils/compareFile';
|
|
@@ -11,8 +11,9 @@ import { toArray } from '../../utils/toArray';
|
|
|
11
11
|
import { useDnD } from '../useDnD';
|
|
12
12
|
import { useUploadFiles } from '../useUploadFiles';
|
|
13
13
|
export const useFileUploader = ({ value, isDisabled, isMultiple, accept, restrictions = [], maxFileSize, maxFileCount = 1, // для случая, когда isMultiple=false
|
|
14
|
-
inputRef, notify, onChange, onUploadFile, name, isError, onView, generateDownloadLink, placeholder, helperText, label, className, getErrorMessage, }) => {
|
|
14
|
+
inputRef, notify, onChange, onUploadFile, onDeleteFile, name, isError, onView, generateDownloadLink, placeholder, helperText, label, className, getErrorMessage, }) => {
|
|
15
15
|
const inputId = useId();
|
|
16
|
+
const [deletingFileId, setDeletingFileId] = useState(null);
|
|
16
17
|
const { generateId } = useGenerateLocalId();
|
|
17
18
|
// Преобразуем value к массиву
|
|
18
19
|
const files = useMemo(() => toArray(value), [value]);
|
|
@@ -94,10 +95,20 @@ inputRef, notify, onChange, onUploadFile, name, isError, onView, generateDownloa
|
|
|
94
95
|
},
|
|
95
96
|
});
|
|
96
97
|
const handleDelete = (fileId) => {
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
const deleteFile = () => {
|
|
99
|
+
if (isMultiple) {
|
|
100
|
+
return onChange(files?.filter(({ id }) => id !== fileId));
|
|
101
|
+
}
|
|
102
|
+
return onChange(null);
|
|
103
|
+
};
|
|
104
|
+
if (!onDeleteFile) {
|
|
105
|
+
return deleteFile();
|
|
99
106
|
}
|
|
100
|
-
|
|
107
|
+
setDeletingFileId(fileId);
|
|
108
|
+
onDeleteFile(fileId)
|
|
109
|
+
.then(deleteFile)
|
|
110
|
+
.catch(() => notify.error('Ошибка удаления файла'))
|
|
111
|
+
.finally(() => setDeletingFileId(null));
|
|
101
112
|
};
|
|
102
113
|
const getHandlerOnRetry = () => {
|
|
103
114
|
if (onUploadFile) {
|
|
@@ -155,6 +166,7 @@ inputRef, notify, onChange, onUploadFile, name, isError, onView, generateDownloa
|
|
|
155
166
|
selfFiles,
|
|
156
167
|
setErrorStatusFile,
|
|
157
168
|
getErrorMessage,
|
|
169
|
+
deletingFileId,
|
|
158
170
|
},
|
|
159
171
|
};
|
|
160
172
|
};
|
|
@@ -117,6 +117,13 @@ export type UsePreviewFileUploaderParams = {
|
|
|
117
117
|
* - При обновлении информации о файле после успешной загрузки
|
|
118
118
|
*/
|
|
119
119
|
onChange: (value: UploadFile | null) => void;
|
|
120
|
+
/**
|
|
121
|
+
* Функция, вызываемая при удалении файла.
|
|
122
|
+
* Используется для сбора идентификаторов файлов, помеченных на удаление.
|
|
123
|
+
* Фактическое удаление файлов с сервера должно выполняться только при подтверждении формы,
|
|
124
|
+
* чтобы избежать потери данных при отмене действия или перезагрузке страницы.
|
|
125
|
+
*/
|
|
126
|
+
onDeleteFile?: (fileId: FileId) => Promise<void>;
|
|
120
127
|
/**
|
|
121
128
|
* Скрытие персональных данных от инструментов мониторинга
|
|
122
129
|
*/
|
|
@@ -126,7 +133,7 @@ export type UsePreviewFileUploaderParams = {
|
|
|
126
133
|
*/
|
|
127
134
|
PdfViewer?: ((props: PdfViewerProps) => ReactElement) | LazyExoticComponent<(props: PdfViewerProps) => ReactElement>;
|
|
128
135
|
};
|
|
129
|
-
export declare const usePreviewFileUploader: ({ value, isDisabled, accept, restrictions, maxFileSize, inputRef, notify, onChange, onUploadFile, label, isError, generateDownloadLink, onView, name, helperText, className, placeholder, placeholderImgSrc, isHidePersonalData, PdfViewer, }: UsePreviewFileUploaderParams) => {
|
|
136
|
+
export declare const usePreviewFileUploader: ({ value, isDisabled, accept, restrictions, maxFileSize, inputRef, notify, onChange, onUploadFile, onDeleteFile, label, isError, generateDownloadLink, onView, name, helperText, className, placeholder, placeholderImgSrc, isHidePersonalData, PdfViewer, }: UsePreviewFileUploaderParams) => {
|
|
130
137
|
dropZoneProps: {
|
|
131
138
|
isVisibleAddFile: boolean;
|
|
132
139
|
isVisibleFileList: boolean;
|
|
@@ -165,7 +172,7 @@ export declare const usePreviewFileUploader: ({ value, isDisabled, accept, restr
|
|
|
165
172
|
isError: boolean | undefined;
|
|
166
173
|
};
|
|
167
174
|
fileListProps: {
|
|
168
|
-
onDelete: () => void;
|
|
175
|
+
onDelete: (fileId: FileId) => void;
|
|
169
176
|
onRetry: ((fileId: FileId, file: File) => void) | undefined;
|
|
170
177
|
setErrorStatusFile: (fileId: string, errorMsg: string) => void;
|
|
171
178
|
selfFiles: Record<string, UploadFile & import("../../types").SpecificSelfFileParams>;
|
|
@@ -174,5 +181,6 @@ export declare const usePreviewFileUploader: ({ value, isDisabled, accept, restr
|
|
|
174
181
|
files: UploadFile[];
|
|
175
182
|
isHidePersonalData: boolean | undefined;
|
|
176
183
|
PdfViewer: LazyExoticComponent<(props: PdfViewerProps) => ReactElement> | ((props: PdfViewerProps) => ReactElement) | undefined;
|
|
184
|
+
deletingFileId: string | null;
|
|
177
185
|
};
|
|
178
186
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { declensionOfWords } from '@astral/utils/declension/declensionOfWords';
|
|
2
2
|
import { formatFileSizeToView } from '@astral/utils/file/formatFileSizeToView';
|
|
3
|
-
import { useMemo, } from 'react';
|
|
4
|
-
import { useGenerateLocalId } from '../../../
|
|
5
|
-
import { useId } from '../../../
|
|
3
|
+
import { useMemo, useState, } from 'react';
|
|
4
|
+
import { useGenerateLocalId } from '../../../useGenerateLocalId';
|
|
5
|
+
import { useId } from '../../../useId';
|
|
6
6
|
import { DEFAULT_FILE_STATUS, previewFileUploaderClassnames, } from '../../constants';
|
|
7
7
|
import { restrictFileMaxSize, restrictFileType } from '../../restrictions';
|
|
8
8
|
import { compareFile } from '../../utils/compareFile';
|
|
@@ -10,8 +10,9 @@ import { rulePipe } from '../../utils/rulePipe';
|
|
|
10
10
|
import { toArray } from '../../utils/toArray';
|
|
11
11
|
import { useDnD } from '../useDnD';
|
|
12
12
|
import { useUploadFiles } from '../useUploadFiles';
|
|
13
|
-
export const usePreviewFileUploader = ({ value, isDisabled, accept, restrictions = [], maxFileSize, inputRef, notify, onChange, onUploadFile, label, isError, generateDownloadLink, onView, name, helperText, className, placeholder, placeholderImgSrc, isHidePersonalData, PdfViewer, }) => {
|
|
13
|
+
export const usePreviewFileUploader = ({ value, isDisabled, accept, restrictions = [], maxFileSize, inputRef, notify, onChange, onUploadFile, onDeleteFile, label, isError, generateDownloadLink, onView, name, helperText, className, placeholder, placeholderImgSrc, isHidePersonalData, PdfViewer, }) => {
|
|
14
14
|
const inputId = useId();
|
|
15
|
+
const [deletingFileId, setDeletingFileId] = useState(null);
|
|
15
16
|
const { generateId } = useGenerateLocalId();
|
|
16
17
|
// Преобразуем value к массиву
|
|
17
18
|
const files = useMemo(() => toArray(value), [value]);
|
|
@@ -80,8 +81,16 @@ export const usePreviewFileUploader = ({ value, isDisabled, accept, restrictions
|
|
|
80
81
|
});
|
|
81
82
|
},
|
|
82
83
|
});
|
|
83
|
-
const handleDelete = () => {
|
|
84
|
-
|
|
84
|
+
const handleDelete = (fileId) => {
|
|
85
|
+
const deleteFile = () => onChange(null);
|
|
86
|
+
if (!onDeleteFile) {
|
|
87
|
+
return deleteFile();
|
|
88
|
+
}
|
|
89
|
+
setDeletingFileId(fileId);
|
|
90
|
+
onDeleteFile(fileId)
|
|
91
|
+
.then(deleteFile)
|
|
92
|
+
.catch(() => notify.error('Ошибка удаления файла'))
|
|
93
|
+
.finally(() => setDeletingFileId(null));
|
|
85
94
|
};
|
|
86
95
|
const getHandlerOnRetry = () => {
|
|
87
96
|
if (onUploadFile) {
|
|
@@ -135,6 +144,7 @@ export const usePreviewFileUploader = ({ value, isDisabled, accept, restrictions
|
|
|
135
144
|
files,
|
|
136
145
|
isHidePersonalData,
|
|
137
146
|
PdfViewer,
|
|
147
|
+
deletingFileId,
|
|
138
148
|
},
|
|
139
149
|
};
|
|
140
150
|
};
|
|
@@ -188,6 +188,13 @@ type BaseFileUploaderProps = {
|
|
|
188
188
|
signal: AbortSignal;
|
|
189
189
|
setProgress: (progressFileId: FileId, progressEvent: ProgressEvent) => void;
|
|
190
190
|
}) => Promise<UploadedFileData>;
|
|
191
|
+
/**
|
|
192
|
+
* Функция, вызываемая при удалении файла.
|
|
193
|
+
* Используется для сбора идентификаторов файлов, помеченных на удаление.
|
|
194
|
+
* Фактическое удаление файлов с сервера должно выполняться только при подтверждении формы,
|
|
195
|
+
* чтобы избежать потери данных при отмене действия или перезагрузке страницы.
|
|
196
|
+
*/
|
|
197
|
+
onDeleteFile?: (fileId: FileId) => Promise<void>;
|
|
191
198
|
/**
|
|
192
199
|
* Обработчик просмотра файла
|
|
193
200
|
* @param fileId - Идентификатор файла
|
package/components/index.d.ts
CHANGED
|
@@ -86,30 +86,30 @@ export * from './GlobalStyles';
|
|
|
86
86
|
export * from './Grid';
|
|
87
87
|
export { GuidTypography, type GuidTypographyProps } from './GuidTypography';
|
|
88
88
|
export { HintIcon, type HintIconProps } from './HintIcon';
|
|
89
|
-
export { useAsyncOptions } from './
|
|
90
|
-
export { useCheckControlled } from './
|
|
91
|
-
export { type UseClickAwayListenerOptions, useClickAwayEffect, } from './
|
|
92
|
-
export { type UseEscapeClickEffectProps, useEscapeClickEffect, } from './
|
|
93
|
-
export { useFeatureFlags } from './
|
|
94
|
-
export { useFirstMountState } from './
|
|
95
|
-
export { useFocusAwayEffect } from './
|
|
96
|
-
export { useForwardedRef } from './
|
|
97
|
-
export { type UseInputPopoverOptions, useInputPopover, } from './
|
|
98
|
-
export { useInterval } from './
|
|
99
|
-
export { useLoadingState } from './
|
|
100
|
-
export { useLocaleDateTimeFormat } from './
|
|
101
|
-
export { useLocalStorage } from './
|
|
102
|
-
export { useMenu } from './
|
|
103
|
-
export { type AnchorType, type UsePopoverResult, usePopover, } from './
|
|
104
|
-
export { type UsePopoverAnimationResult, usePopoverAnimation, } from './
|
|
105
|
-
export { useRadioGroup } from './
|
|
106
|
-
export { useScrollManagement } from './
|
|
107
|
-
export { useSecondsCountdown } from './
|
|
108
|
-
export { useSet } from './
|
|
109
|
-
export { useStickyButton } from './
|
|
110
|
-
export { useToggle } from './
|
|
111
|
-
export { useUpdateEffect } from './
|
|
112
|
-
export { useViewportType } from './
|
|
89
|
+
export { useAsyncOptions } from './useAsyncOptions';
|
|
90
|
+
export { useCheckControlled } from './useCheckControlled';
|
|
91
|
+
export { type UseClickAwayListenerOptions, useClickAwayEffect, } from './useClickAwayEffect';
|
|
92
|
+
export { type UseEscapeClickEffectProps, useEscapeClickEffect, } from './useEscapeClickEffect';
|
|
93
|
+
export { useFeatureFlags } from './useFeatureFlags';
|
|
94
|
+
export { useFirstMountState } from './useFirstMountState';
|
|
95
|
+
export { useFocusAwayEffect } from './useFocusAwayEffect';
|
|
96
|
+
export { useForwardedRef } from './useForwardedRef';
|
|
97
|
+
export { type UseInputPopoverOptions, useInputPopover, } from './useInputPopover';
|
|
98
|
+
export { useInterval } from './useInterval';
|
|
99
|
+
export { useLoadingState } from './useLoadingState';
|
|
100
|
+
export { useLocaleDateTimeFormat } from './useLocaleDateTimeFormat';
|
|
101
|
+
export { useLocalStorage } from './useLocalStorage';
|
|
102
|
+
export { useMenu } from './useMenu';
|
|
103
|
+
export { type AnchorType, type UsePopoverResult, usePopover, } from './usePopover';
|
|
104
|
+
export { type UsePopoverAnimationResult, usePopoverAnimation, } from './usePopoverAnimation';
|
|
105
|
+
export { useRadioGroup } from './useRadioGroup';
|
|
106
|
+
export { useScrollManagement } from './useScrollManagement';
|
|
107
|
+
export { useSecondsCountdown } from './useSecondsCountDown';
|
|
108
|
+
export { useSet } from './useSet';
|
|
109
|
+
export { useStickyButton } from './useStickyButton';
|
|
110
|
+
export { useToggle } from './useToggle';
|
|
111
|
+
export { useUpdateEffect } from './useUpdateEffect';
|
|
112
|
+
export { useViewportType } from './useViewportType';
|
|
113
113
|
export * from './IconButton';
|
|
114
114
|
export * from './IconDropdownButton';
|
|
115
115
|
export { Iframe, type IframeProps } from './Iframe';
|
package/components/index.js
CHANGED
|
@@ -85,30 +85,30 @@ export * from './GlobalStyles';
|
|
|
85
85
|
export * from './Grid';
|
|
86
86
|
export { GuidTypography } from './GuidTypography';
|
|
87
87
|
export { HintIcon } from './HintIcon';
|
|
88
|
-
export { useAsyncOptions } from './
|
|
89
|
-
export { useCheckControlled } from './
|
|
90
|
-
export { useClickAwayEffect, } from './
|
|
91
|
-
export { useEscapeClickEffect, } from './
|
|
92
|
-
export { useFeatureFlags } from './
|
|
93
|
-
export { useFirstMountState } from './
|
|
94
|
-
export { useFocusAwayEffect } from './
|
|
95
|
-
export { useForwardedRef } from './
|
|
96
|
-
export { useInputPopover, } from './
|
|
97
|
-
export { useInterval } from './
|
|
98
|
-
export { useLoadingState } from './
|
|
99
|
-
export { useLocaleDateTimeFormat } from './
|
|
100
|
-
export { useLocalStorage } from './
|
|
101
|
-
export { useMenu } from './
|
|
102
|
-
export { usePopover, } from './
|
|
103
|
-
export { usePopoverAnimation, } from './
|
|
104
|
-
export { useRadioGroup } from './
|
|
105
|
-
export { useScrollManagement } from './
|
|
106
|
-
export { useSecondsCountdown } from './
|
|
107
|
-
export { useSet } from './
|
|
108
|
-
export { useStickyButton } from './
|
|
109
|
-
export { useToggle } from './
|
|
110
|
-
export { useUpdateEffect } from './
|
|
111
|
-
export { useViewportType } from './
|
|
88
|
+
export { useAsyncOptions } from './useAsyncOptions';
|
|
89
|
+
export { useCheckControlled } from './useCheckControlled';
|
|
90
|
+
export { useClickAwayEffect, } from './useClickAwayEffect';
|
|
91
|
+
export { useEscapeClickEffect, } from './useEscapeClickEffect';
|
|
92
|
+
export { useFeatureFlags } from './useFeatureFlags';
|
|
93
|
+
export { useFirstMountState } from './useFirstMountState';
|
|
94
|
+
export { useFocusAwayEffect } from './useFocusAwayEffect';
|
|
95
|
+
export { useForwardedRef } from './useForwardedRef';
|
|
96
|
+
export { useInputPopover, } from './useInputPopover';
|
|
97
|
+
export { useInterval } from './useInterval';
|
|
98
|
+
export { useLoadingState } from './useLoadingState';
|
|
99
|
+
export { useLocaleDateTimeFormat } from './useLocaleDateTimeFormat';
|
|
100
|
+
export { useLocalStorage } from './useLocalStorage';
|
|
101
|
+
export { useMenu } from './useMenu';
|
|
102
|
+
export { usePopover, } from './usePopover';
|
|
103
|
+
export { usePopoverAnimation, } from './usePopoverAnimation';
|
|
104
|
+
export { useRadioGroup } from './useRadioGroup';
|
|
105
|
+
export { useScrollManagement } from './useScrollManagement';
|
|
106
|
+
export { useSecondsCountdown } from './useSecondsCountDown';
|
|
107
|
+
export { useSet } from './useSet';
|
|
108
|
+
export { useStickyButton } from './useStickyButton';
|
|
109
|
+
export { useToggle } from './useToggle';
|
|
110
|
+
export { useUpdateEffect } from './useUpdateEffect';
|
|
111
|
+
export { useViewportType } from './useViewportType';
|
|
112
112
|
export * from './IconButton';
|
|
113
113
|
export * from './IconDropdownButton';
|
|
114
114
|
export { Iframe } from './Iframe';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { debounce } from '@astral/utils/debounce';
|
|
2
2
|
import { useCallback, useRef, useState } from 'react';
|
|
3
|
-
import { useLoadingState } from '
|
|
3
|
+
import { useLoadingState } from '../useLoadingState';
|
|
4
4
|
/**
|
|
5
5
|
* Хук для асинхронной загрузки опций в компонентах с поиском.
|
|
6
6
|
* Управляет задержкой, отменой запросов и состояниями загрузки.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RefObject } from 'react';
|
|
2
|
-
import { type CloseEventReason } from '
|
|
2
|
+
import { type CloseEventReason } from '../types/CloseEventReason';
|
|
3
3
|
export type UseClickAwayListenerOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* реф на дом ноду, клик вне которой надо отслеживать
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RefObject } from 'react';
|
|
2
|
-
import { type CloseEventReason } from '
|
|
2
|
+
import { type CloseEventReason } from '../types/CloseEventReason';
|
|
3
3
|
type UseFocusAwayEffectOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* реф на дом ноду, blur вне которой надо отслеживать
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RefObject, type SyntheticEvent } from 'react';
|
|
2
|
-
import { type CloseEventReason } from '
|
|
2
|
+
import { type CloseEventReason } from '../types/CloseEventReason';
|
|
3
3
|
export type UseInputPopoverOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* реф на отслеживаемую ноду, ивенты вне которого будут приводить к закрытию поппера
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext, useRef } from 'react';
|
|
2
|
-
import { ConfigContext } from '
|
|
2
|
+
import { ConfigContext } from '../ConfigProvider';
|
|
3
3
|
export const useLocaleDateTimeFormat = (options) => {
|
|
4
4
|
const { language } = useContext(ConfigContext);
|
|
5
5
|
const { current } = useRef(Intl.DateTimeFormat(language, options).format);
|