@adoptaunabuelo/react-components 0.3.156 → 0.3.158

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/dist/index.d.ts CHANGED
@@ -345,7 +345,7 @@ interface InputDateRangeProps {
345
345
  isOutsideRange?: (date: moment.Moment) => boolean;
346
346
  }
347
347
 
348
- declare const InputImage: (props: InputImageProps) => react_jsx_runtime.JSX.Element;
348
+ declare const InputImage: react.ForwardRefExoticComponent<InputImageProps & react.RefAttributes<InputImageRef>>;
349
349
 
350
350
  /**
351
351
  * Image upload with crop, compression, and webcam capture.
@@ -378,6 +378,17 @@ interface InputImageProps {
378
378
  hideCrop?: boolean;
379
379
  /** Callback with base64-encoded WebP image */
380
380
  onChange?: (image: string | ArrayBuffer | null) => void;
381
+ /** Callback when crop state changes (for external control of crop actions) */
382
+ onCropStateChange?: (isCropping: boolean) => void;
383
+ /** Hide internal toolbar with crop/cancel buttons (use with ref for external control) */
384
+ hideToolbar?: boolean;
385
+ }
386
+ /** Ref methods exposed by InputImage for external control */
387
+ interface InputImageRef {
388
+ /** Trigger the crop operation */
389
+ triggerCrop: () => void;
390
+ /** Cancel the crop and clear the image */
391
+ cancelCrop: () => void;
381
392
  }
382
393
 
383
394
  declare const InputLocation: ({ isLoaded, isForm, searchTypes, searchFields, onLocationChange, ...restProps }: InputLocationProps) => react_jsx_runtime.JSX.Element;
@@ -578,6 +589,8 @@ type InputPriceProps = {
578
589
  customAmountData?: React.ReactElement;
579
590
  /** Callback with selected/entered price. Validates minimum from first option */
580
591
  onChange?: (value: number) => void;
592
+ /** Fires when the custom-amount min-validation error appears (true) or clears (false) */
593
+ onErrorChange?: (hasError: boolean) => void;
581
594
  };
582
595
 
583
596
  declare const Select: (props: Props$e) => react_jsx_runtime.JSX.Element;
@@ -1777,3 +1790,4 @@ declare const ColorV2: {
1777
1790
  };
1778
1791
 
1779
1792
  export { Avatar, BreadCrumb, Button, CellSelector, Chat, CheckboxList as Checkbox, Color, ColorV2, Countdown, Counter, CurrencySelector, Dropdown, FAQs, FeedBack as Feedback, Filter, Form, Hover, Input, InputBirthday, InputChat, InputCode, InputDateRange, InputImage, InputLocation, InputPhone, InputPrice, InputRange, Label, MenuList as Menu, ModalComponent as Modal, Pagination, Payout, ProgressBar, RadioButtonList as RadioButton, SearchBar, Select, Stamp, Switch, SwitchTag, Tabs, TagSelector, Text, TextAnimated, TextArea };
1793
+ export type { InputImageRef };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adoptaunabuelo/react-components",
3
- "version": "0.3.156",
3
+ "version": "0.3.158",
4
4
  "homepage": "https://github.com/Adopta-Un-Abuelo/react-components",
5
5
  "author": "Guillermo Angeles <guilleangeles94@gmail.com>",
6
6
  "private": false,