@adoptaunabuelo/react-components 0.3.156 → 0.3.159
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/esm/components/Input/Image/InputImage.d.ts +12 -1
- package/dist/esm/components/Input/Location/InputLocation.d.ts +1 -1
- package/dist/esm/components/Input/Price/InputPrice.d.ts +2 -0
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/index.js +118 -110
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +16 -2
- package/package.json +1 -1
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:
|
|
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;
|
|
@@ -416,7 +427,7 @@ interface LocationProps {
|
|
|
416
427
|
/** Full formatted address string */
|
|
417
428
|
address?: string;
|
|
418
429
|
/** Short address (city, province, country) */
|
|
419
|
-
|
|
430
|
+
shortAddress?: string;
|
|
420
431
|
/** Street name */
|
|
421
432
|
route?: string;
|
|
422
433
|
/** Street number */
|
|
@@ -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