@codeleap/web 3.24.2 → 3.24.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/web",
3
- "version": "3.24.2",
3
+ "version": "3.24.3",
4
4
  "main": "src/index.ts",
5
5
  "repository": {
6
6
  "url": "https://github.com/codeleap-uk/internal-libs-monorepo.git",
@@ -36,6 +36,7 @@ export const _CropPicker = forwardRef<FileInputRef, CropPickerProps>(
36
36
  debugName,
37
37
  handle,
38
38
  withLoading = false,
39
+ confirmButtonProps,
39
40
  ...fileInputProps
40
41
  } = allProps
41
42
 
@@ -82,6 +83,7 @@ export const _CropPicker = forwardRef<FileInputRef, CropPickerProps>(
82
83
  styles={buttonStyles}
83
84
  onPress={onConfirmCrop}
84
85
  debugName={debugName}
86
+ {...confirmButtonProps}
85
87
  />
86
88
  }
87
89
  {...modalProps}
@@ -5,6 +5,7 @@ import { StylesOf } from '../../types'
5
5
  import { ReactCropProps } from 'react-image-crop'
6
6
  import { ModalProps } from '../Modal'
7
7
  import { useCropPicker } from './useCropPicker'
8
+ import { ButtonProps } from '../Button'
8
9
 
9
10
  export type BaseCropProps = Partial<ReactCropProps>
10
11
 
@@ -20,6 +21,7 @@ export type CropPickerProps = Partial<FileInputProps> &
20
21
  handle?: ReturnType<typeof useCropPicker>
21
22
  ref: AnyRef<HTMLElement>
22
23
  withLoading?: boolean
24
+ confirmButtonProps?: Partial<ButtonProps>
23
25
  }
24
26
 
25
27
  export type ImageReading = HTMLImageElement