@retray-dev/ui-kit 10.2.0 → 12.1.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.md +287 -37
- package/README.md +11 -2
- package/dist/Accordion.mjs +2 -2
- package/dist/AlertBanner.mjs +2 -2
- package/dist/AppHeader.mjs +3 -3
- package/dist/Avatar.mjs +2 -2
- package/dist/Badge.mjs +2 -2
- package/dist/Button.mjs +2 -2
- package/dist/Card.mjs +2 -2
- package/dist/CategoryStrip.mjs +2 -2
- package/dist/Checkbox.mjs +2 -2
- package/dist/Chip.mjs +2 -2
- package/dist/ConfirmDialog.d.mts +1 -6
- package/dist/ConfirmDialog.d.ts +1 -6
- package/dist/ConfirmDialog.js +29 -23
- package/dist/ConfirmDialog.mjs +3 -3
- package/dist/CurrencyDisplay.mjs +2 -2
- package/dist/CurrencyInput.d.mts +3 -8
- package/dist/CurrencyInput.d.ts +3 -8
- package/dist/CurrencyInput.js +3 -1
- package/dist/CurrencyInput.mjs +3 -3
- package/dist/DetailRow.mjs +2 -2
- package/dist/EmptyState.mjs +3 -3
- package/dist/ErrorBoundary.mjs +2 -2
- package/dist/Form.mjs +2 -2
- package/dist/IconButton.mjs +2 -2
- package/dist/IconPicker.js +675 -248
- package/dist/IconPicker.mjs +3 -2
- package/dist/ImageUpload.mjs +3 -3
- package/dist/ImageViewer.mjs +4 -4
- package/dist/Input.mjs +2 -2
- package/dist/LabelValue.mjs +2 -2
- package/dist/ListGroup.mjs +2 -2
- package/dist/ListItem.d.mts +7 -7
- package/dist/ListItem.d.ts +7 -7
- package/dist/ListItem.js +12 -7
- package/dist/ListItem.mjs +2 -2
- package/dist/MediaCard.mjs +2 -2
- package/dist/MenuGroup.mjs +2 -2
- package/dist/MenuItem.mjs +2 -2
- package/dist/MonthPicker.mjs +2 -2
- package/dist/NumberStepper.mjs +2 -2
- package/dist/PagerDots.mjs +2 -2
- package/dist/Pressable.d.mts +15 -7
- package/dist/Pressable.d.ts +15 -7
- package/dist/Pressable.js +7 -3
- package/dist/Pressable.mjs +1 -1
- package/dist/PricingCard.mjs +4 -4
- package/dist/Progress.mjs +2 -2
- package/dist/RadioGroup.mjs +2 -2
- package/dist/RetrayProvider.mjs +3 -3
- package/dist/Select.mjs +2 -2
- package/dist/SelectableGrid.mjs +2 -2
- package/dist/Separator.mjs +2 -2
- package/dist/Sheet.d.mts +4 -46
- package/dist/Sheet.d.ts +4 -46
- package/dist/Sheet.js +46 -114
- package/dist/Sheet.mjs +2 -3
- package/dist/SheetSelect.mjs +2 -2
- package/dist/Skeleton.mjs +2 -2
- package/dist/Slider.mjs +2 -2
- package/dist/Spinner.mjs +2 -2
- package/dist/Stats.d.mts +30 -0
- package/dist/Stats.d.ts +30 -0
- package/dist/Stats.js +429 -0
- package/dist/Stats.mjs +9 -0
- package/dist/Switch.mjs +2 -2
- package/dist/TabBar.mjs +2 -2
- package/dist/Tabs.mjs +2 -2
- package/dist/Text.d.mts +3 -1
- package/dist/Text.d.ts +3 -1
- package/dist/Text.js +3 -3
- package/dist/Text.mjs +2 -2
- package/dist/Textarea.mjs +2 -2
- package/dist/Toast.mjs +2 -2
- package/dist/Toggle.mjs +2 -2
- package/dist/{chunk-YJ7I257J.mjs → chunk-265G6A46.mjs} +1 -1
- package/dist/{chunk-ELXBDILQ.mjs → chunk-2A2LEFZG.mjs} +2 -2
- package/dist/{chunk-ID72TK46.mjs → chunk-2CBQKU7H.mjs} +1 -1
- package/dist/{chunk-OB4JUQ3O.mjs → chunk-2I2AYECM.mjs} +1 -1
- package/dist/{chunk-WJLKJMKR.mjs → chunk-357YO24D.mjs} +4 -4
- package/dist/{chunk-GQYFLP3D.mjs → chunk-3GEYJ7I5.mjs} +1 -1
- package/dist/{chunk-AV4EMIRH.mjs → chunk-3N2M3WZL.mjs} +1 -1
- package/dist/{chunk-VF2ATYN3.mjs → chunk-3UYAZ7I4.mjs} +1 -1
- package/dist/{chunk-JMOZEC77.mjs → chunk-4WFMPFZB.mjs} +1 -1
- package/dist/chunk-5OLNXP3S.mjs +144 -0
- package/dist/{chunk-6SECQ2ZF.mjs → chunk-7HSILTC4.mjs} +2 -2
- package/dist/{chunk-IRRY3CRZ.mjs → chunk-AKM4EPOT.mjs} +1 -1
- package/dist/{chunk-IX3NYLYQ.mjs → chunk-AQEVCEXV.mjs} +1 -1
- package/dist/{chunk-WBOOUHSS.mjs → chunk-BCWEHE34.mjs} +1 -1
- package/dist/{chunk-AJ7ZDNBT.mjs → chunk-BOVUP27T.mjs} +1 -1
- package/dist/{chunk-BRKYVJVV.mjs → chunk-BQZE3HAW.mjs} +1 -1
- package/dist/{chunk-Z6SFHN6T.mjs → chunk-D3Y2T42P.mjs} +1 -1
- package/dist/{chunk-T2KCAHOS.mjs → chunk-DF6DU42P.mjs} +1 -1
- package/dist/{chunk-TB6SD2FT.mjs → chunk-DI7CBDL6.mjs} +1 -1
- package/dist/{chunk-HTHGSXFG.mjs → chunk-DOGIPOF5.mjs} +1 -1
- package/dist/{chunk-MBMXYJJV.mjs → chunk-E7NEHHXV.mjs} +7 -3
- package/dist/{chunk-MX6HRKMI.mjs → chunk-EFLFRAHD.mjs} +1 -1
- package/dist/{chunk-SOYNZDVY.mjs → chunk-EMUWGDWC.mjs} +6 -1
- package/dist/{chunk-AJRVDP2H.mjs → chunk-F4V6XLP4.mjs} +3 -3
- package/dist/{chunk-DYT7BG5I.mjs → chunk-FA2KMTH5.mjs} +1 -1
- package/dist/{chunk-Y2NS74WS.mjs → chunk-FFTYLPSB.mjs} +46 -98
- package/dist/{chunk-VKID2D2I.mjs → chunk-FUVYSVGR.mjs} +13 -8
- package/dist/{chunk-7LWRKMF5.mjs → chunk-FVTVCJAH.mjs} +1 -1
- package/dist/{chunk-TZDGAP5N.mjs → chunk-GK4VRMNE.mjs} +2 -2
- package/dist/{chunk-6Q64UFIA.mjs → chunk-HJ46DTJE.mjs} +1 -1
- package/dist/{chunk-WF2XDFRK.mjs → chunk-HLMPMUK2.mjs} +1 -1
- package/dist/{chunk-GD6KXMG5.mjs → chunk-I4V5XZPS.mjs} +1 -1
- package/dist/{chunk-TBNZHU6C.mjs → chunk-ISY26JQJ.mjs} +2 -2
- package/dist/{chunk-X4G6APW6.mjs → chunk-J6Q2YJEV.mjs} +1 -1
- package/dist/{chunk-WYEUNUTP.mjs → chunk-JCZQOY4O.mjs} +31 -24
- package/dist/{chunk-U2XJFYED.mjs → chunk-JNVAIDLK.mjs} +1 -1
- package/dist/{chunk-SOA2Z4RB.mjs → chunk-JULSIZDM.mjs} +1 -1
- package/dist/chunk-KHYX4IOM.mjs +1114 -0
- package/dist/{chunk-RYZC432S.mjs → chunk-LRM4AVYY.mjs} +1 -1
- package/dist/{chunk-6L4G6PBT.mjs → chunk-MYZ2EDYU.mjs} +1 -1
- package/dist/{chunk-BUMAMSTZ.mjs → chunk-N4ZPVCJH.mjs} +1 -1
- package/dist/{chunk-Z4VHZ7B5.mjs → chunk-NXI4YDZ2.mjs} +1 -1
- package/dist/{chunk-ZZ2R6KZ3.mjs → chunk-OULVKTWL.mjs} +1 -1
- package/dist/{chunk-FCSSQK3L.mjs → chunk-P64WHW4A.mjs} +1 -1
- package/dist/{chunk-KOO4WITD.mjs → chunk-P73V2EKS.mjs} +1 -1
- package/dist/{chunk-SXLKNTA4.mjs → chunk-PGERH3P7.mjs} +1 -1
- package/dist/{chunk-2UYENBLV.mjs → chunk-QSFV2P7O.mjs} +1 -1
- package/dist/{chunk-JT7HKXRB.mjs → chunk-S3KJCPEJ.mjs} +1 -1
- package/dist/{chunk-BEMIQXXU.mjs → chunk-V6NFJXKO.mjs} +1 -1
- package/dist/{chunk-A3A6KNQN.mjs → chunk-WOEWGSTU.mjs} +1 -1
- package/dist/{chunk-NMU5FMQJ.mjs → chunk-X26S5EVZ.mjs} +4 -2
- package/dist/{chunk-YFZ3ELX5.mjs → chunk-XBAGGKLW.mjs} +2 -2
- package/dist/{chunk-S2R7UVOE.mjs → chunk-ZHMSAYLT.mjs} +1 -1
- package/dist/fonts.d.mts +1 -7
- package/dist/fonts.d.ts +1 -7
- package/dist/fonts.js +0 -2
- package/dist/fonts.mjs +1 -2
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1184 -708
- package/dist/index.mjs +53 -52
- package/package.json +3 -3
- package/src/components/ConfirmDialog/ConfirmDialog.tsx +39 -30
- package/src/components/CurrencyInput/CurrencyInput.tsx +4 -7
- package/src/components/IconPicker/IconPicker.tsx +124 -112
- package/src/components/ListItem/ListItem.tsx +43 -28
- package/src/components/Pressable/Pressable.tsx +20 -8
- package/src/components/Sheet/Sheet.tsx +64 -172
- package/src/components/Stats/Stats.tsx +226 -0
- package/src/components/Stats/index.ts +2 -0
- package/src/components/Text/Text.tsx +4 -2
- package/src/fonts.ts +0 -7
- package/src/index.ts +4 -0
- package/src/theme/colorUtils.ts +9 -0
- package/src/utils/curatedIcons.ts +698 -135
- package/src/utils/fontGuard.ts +2 -1
- package/dist/chunk-53Z3NYGE.mjs +0 -742
package/dist/Checkbox.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { Checkbox } from './chunk-
|
|
1
|
+
export { Checkbox } from './chunk-3N2M3WZL.mjs';
|
|
2
2
|
import './chunk-3DKJ2GIC.mjs';
|
|
3
3
|
import './chunk-EJ7ZPXOH.mjs';
|
|
4
4
|
import './chunk-DVK4G2GT.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-EMUWGDWC.mjs';
|
|
6
6
|
import './chunk-2CE3TQVY.mjs';
|
|
7
7
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/Chip.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { Chip, ChipGroup } from './chunk-
|
|
1
|
+
export { Chip, ChipGroup } from './chunk-FA2KMTH5.mjs';
|
|
2
2
|
import './chunk-3DKJ2GIC.mjs';
|
|
3
3
|
import './chunk-EJ7ZPXOH.mjs';
|
|
4
4
|
import './chunk-DVK4G2GT.mjs';
|
|
5
5
|
import './chunk-KA7LTET3.mjs';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-EMUWGDWC.mjs';
|
|
7
7
|
import './chunk-2CE3TQVY.mjs';
|
|
8
8
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/ConfirmDialog.d.mts
CHANGED
|
@@ -3,20 +3,15 @@ import React from 'react';
|
|
|
3
3
|
interface ConfirmDialogProps {
|
|
4
4
|
visible: boolean;
|
|
5
5
|
title: string;
|
|
6
|
-
/** Secondary text below title. */
|
|
7
6
|
subtitle?: string;
|
|
8
|
-
/** @deprecated Use `subtitle` instead. */
|
|
9
|
-
description?: string;
|
|
10
7
|
confirmLabel?: string;
|
|
11
8
|
cancelLabel?: string;
|
|
12
9
|
confirmVariant?: 'primary' | 'destructive';
|
|
13
|
-
/** Show a loading spinner in the confirm button (e.g. while async action completes). */
|
|
14
10
|
loading?: boolean;
|
|
15
|
-
/** Show an X close button in the top-right corner. */
|
|
16
11
|
showCloseButton?: boolean;
|
|
17
12
|
onConfirm: () => void;
|
|
18
13
|
onCancel: () => void;
|
|
19
14
|
}
|
|
20
|
-
declare function ConfirmDialog({ visible, title, subtitle,
|
|
15
|
+
declare function ConfirmDialog({ visible, title, subtitle, confirmLabel, cancelLabel, confirmVariant, loading, showCloseButton, onConfirm, onCancel, }: ConfirmDialogProps): React.JSX.Element;
|
|
21
16
|
|
|
22
17
|
export { ConfirmDialog, type ConfirmDialogProps };
|
package/dist/ConfirmDialog.d.ts
CHANGED
|
@@ -3,20 +3,15 @@ import React from 'react';
|
|
|
3
3
|
interface ConfirmDialogProps {
|
|
4
4
|
visible: boolean;
|
|
5
5
|
title: string;
|
|
6
|
-
/** Secondary text below title. */
|
|
7
6
|
subtitle?: string;
|
|
8
|
-
/** @deprecated Use `subtitle` instead. */
|
|
9
|
-
description?: string;
|
|
10
7
|
confirmLabel?: string;
|
|
11
8
|
cancelLabel?: string;
|
|
12
9
|
confirmVariant?: 'primary' | 'destructive';
|
|
13
|
-
/** Show a loading spinner in the confirm button (e.g. while async action completes). */
|
|
14
10
|
loading?: boolean;
|
|
15
|
-
/** Show an X close button in the top-right corner. */
|
|
16
11
|
showCloseButton?: boolean;
|
|
17
12
|
onConfirm: () => void;
|
|
18
13
|
onCancel: () => void;
|
|
19
14
|
}
|
|
20
|
-
declare function ConfirmDialog({ visible, title, subtitle,
|
|
15
|
+
declare function ConfirmDialog({ visible, title, subtitle, confirmLabel, cancelLabel, confirmVariant, loading, showCloseButton, onConfirm, onCancel, }: ConfirmDialogProps): React.JSX.Element;
|
|
21
16
|
|
|
22
17
|
export { ConfirmDialog, type ConfirmDialogProps };
|
package/dist/ConfirmDialog.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var React3 = require('react');
|
|
4
4
|
var reactNative = require('react-native');
|
|
5
|
-
var
|
|
5
|
+
var bottomSheet = require('@gorhom/bottom-sheet');
|
|
6
|
+
var reactNativeSafeAreaContext = require('react-native-safe-area-context');
|
|
6
7
|
var vectorIcons = require('@expo/vector-icons');
|
|
7
8
|
var reactNativeSizeMatters = require('react-native-size-matters');
|
|
8
9
|
var AntDesign = require('@expo/vector-icons/AntDesign');
|
|
@@ -17,7 +18,6 @@ var reactNativeReanimated = require('react-native-reanimated');
|
|
|
17
18
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
19
|
|
|
19
20
|
var React3__default = /*#__PURE__*/_interopDefault(React3);
|
|
20
|
-
var BottomSheet__default = /*#__PURE__*/_interopDefault(BottomSheet);
|
|
21
21
|
var AntDesign__default = /*#__PURE__*/_interopDefault(AntDesign);
|
|
22
22
|
var Entypo__default = /*#__PURE__*/_interopDefault(Entypo);
|
|
23
23
|
var Feather__default = /*#__PURE__*/_interopDefault(Feather);
|
|
@@ -457,7 +457,6 @@ function ConfirmDialog({
|
|
|
457
457
|
visible,
|
|
458
458
|
title,
|
|
459
459
|
subtitle,
|
|
460
|
-
description,
|
|
461
460
|
confirmLabel = "Confirm",
|
|
462
461
|
cancelLabel = "Cancel",
|
|
463
462
|
confirmVariant = "primary",
|
|
@@ -467,38 +466,45 @@ function ConfirmDialog({
|
|
|
467
466
|
onCancel
|
|
468
467
|
}) {
|
|
469
468
|
const { colors } = useTheme();
|
|
469
|
+
const insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
470
470
|
const ref = React3.useRef(null);
|
|
471
|
-
const
|
|
471
|
+
const wasOpened = React3.useRef(false);
|
|
472
|
+
const name = React3.useId();
|
|
472
473
|
React3.useEffect(() => {
|
|
473
474
|
if (visible) {
|
|
474
475
|
impactMedium();
|
|
475
|
-
ref.current?.
|
|
476
|
-
|
|
477
|
-
|
|
476
|
+
ref.current?.present();
|
|
477
|
+
wasOpened.current = true;
|
|
478
|
+
} else if (wasOpened.current) {
|
|
479
|
+
ref.current?.dismiss();
|
|
478
480
|
}
|
|
479
481
|
}, [visible]);
|
|
480
|
-
const renderBackdrop =
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
482
|
+
const renderBackdrop = React3.useCallback(
|
|
483
|
+
(props) => /* @__PURE__ */ React3__default.default.createElement(
|
|
484
|
+
bottomSheet.BottomSheetBackdrop,
|
|
485
|
+
{
|
|
486
|
+
...props,
|
|
487
|
+
disappearsOnIndex: -1,
|
|
488
|
+
appearsOnIndex: 0,
|
|
489
|
+
pressBehavior: "close"
|
|
490
|
+
}
|
|
491
|
+
),
|
|
492
|
+
[]
|
|
488
493
|
);
|
|
489
494
|
return /* @__PURE__ */ React3__default.default.createElement(
|
|
490
|
-
|
|
495
|
+
bottomSheet.BottomSheetModal,
|
|
491
496
|
{
|
|
492
497
|
ref,
|
|
493
|
-
|
|
494
|
-
|
|
498
|
+
name,
|
|
499
|
+
onDismiss: onCancel,
|
|
495
500
|
enableDynamicSizing: true,
|
|
496
501
|
backdropComponent: renderBackdrop,
|
|
497
|
-
backgroundStyle:
|
|
498
|
-
handleIndicatorStyle:
|
|
499
|
-
enablePanDownToClose: true
|
|
502
|
+
backgroundStyle: { ...styles2.background, backgroundColor: colors.card },
|
|
503
|
+
handleIndicatorStyle: { ...styles2.handle, backgroundColor: colors.border },
|
|
504
|
+
enablePanDownToClose: true,
|
|
505
|
+
topInset: insets.top
|
|
500
506
|
},
|
|
501
|
-
/* @__PURE__ */ React3__default.default.createElement(
|
|
507
|
+
/* @__PURE__ */ React3__default.default.createElement(bottomSheet.BottomSheetView, { style: styles2.content }, /* @__PURE__ */ React3__default.default.createElement(reactNative.View, { style: styles2.header, accessibilityRole: "header" }, /* @__PURE__ */ React3__default.default.createElement(reactNative.View, { style: styles2.headerRow }, /* @__PURE__ */ React3__default.default.createElement(reactNative.Text, { style: [styles2.title, { color: colors.foreground }], allowFontScaling: true }, title), showCloseButton ? /* @__PURE__ */ React3__default.default.createElement(
|
|
502
508
|
reactNative.TouchableOpacity,
|
|
503
509
|
{
|
|
504
510
|
onPress: onCancel,
|
|
@@ -510,7 +516,7 @@ function ConfirmDialog({
|
|
|
510
516
|
hitSlop: { top: 12, bottom: 12, left: 12, right: 12 }
|
|
511
517
|
},
|
|
512
518
|
/* @__PURE__ */ React3__default.default.createElement(vectorIcons.Feather, { name: "x", size: ms(18), color: colors.foregroundMuted })
|
|
513
|
-
) : null),
|
|
519
|
+
) : null), subtitle ? /* @__PURE__ */ React3__default.default.createElement(reactNative.Text, { style: [styles2.subtitle, { color: colors.foregroundMuted }], allowFontScaling: true }, subtitle) : null), /* @__PURE__ */ React3__default.default.createElement(reactNative.View, { style: styles2.actions }, /* @__PURE__ */ React3__default.default.createElement(
|
|
514
520
|
Button,
|
|
515
521
|
{
|
|
516
522
|
label: confirmLabel,
|
package/dist/ConfirmDialog.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { ConfirmDialog } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { ConfirmDialog } from './chunk-JCZQOY4O.mjs';
|
|
2
|
+
import './chunk-DOGIPOF5.mjs';
|
|
3
3
|
import './chunk-3DKJ2GIC.mjs';
|
|
4
4
|
import './chunk-EJ7ZPXOH.mjs';
|
|
5
5
|
import './chunk-DVK4G2GT.mjs';
|
|
6
6
|
import './chunk-QY3X2UYR.mjs';
|
|
7
7
|
import './chunk-KA7LTET3.mjs';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-EMUWGDWC.mjs';
|
|
9
9
|
import './chunk-2CE3TQVY.mjs';
|
|
10
10
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/CurrencyDisplay.mjs
CHANGED
package/dist/CurrencyInput.d.mts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { TextInputProps, ViewStyle } from 'react-native';
|
|
3
3
|
|
|
4
|
-
interface CurrencyInputProps {
|
|
5
|
-
value?: string;
|
|
6
|
-
onChangeText?: (formatted: string) => void;
|
|
4
|
+
interface CurrencyInputProps extends TextInputProps {
|
|
7
5
|
/** Called with the parsed numeric value (no separators, no prefix). */
|
|
8
6
|
onChangeValue?: (raw: number) => void;
|
|
9
7
|
/** Currency symbol shown left of the value. Any string (`'$'`, `'€'`, `'£'`, `'COP '`). Defaults to `'$'`. */
|
|
@@ -16,13 +14,10 @@ interface CurrencyInputProps {
|
|
|
16
14
|
/** Red helper text; also changes input border to destructive color. */
|
|
17
15
|
error?: string;
|
|
18
16
|
hint?: string;
|
|
19
|
-
placeholder?: string;
|
|
20
|
-
editable?: boolean;
|
|
21
17
|
containerStyle?: ViewStyle;
|
|
22
|
-
style?: TextStyle;
|
|
23
18
|
/** Use inside a Sheet/BottomSheet — passes sheetMode to the underlying Input. */
|
|
24
19
|
sheetMode?: boolean;
|
|
25
20
|
}
|
|
26
|
-
declare function CurrencyInput({ value, onChangeText, onChangeValue, prefix, thousandsSeparator, size, label, error, hint, placeholder, editable, containerStyle, style, sheetMode, }: CurrencyInputProps): React.JSX.Element;
|
|
21
|
+
declare function CurrencyInput({ value, onChangeText, onChangeValue, prefix, thousandsSeparator, size, label, error, hint, placeholder, editable, containerStyle, style, sheetMode, ...props }: CurrencyInputProps): React.JSX.Element;
|
|
27
22
|
|
|
28
23
|
export { CurrencyInput, type CurrencyInputProps };
|
package/dist/CurrencyInput.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { TextInputProps, ViewStyle } from 'react-native';
|
|
3
3
|
|
|
4
|
-
interface CurrencyInputProps {
|
|
5
|
-
value?: string;
|
|
6
|
-
onChangeText?: (formatted: string) => void;
|
|
4
|
+
interface CurrencyInputProps extends TextInputProps {
|
|
7
5
|
/** Called with the parsed numeric value (no separators, no prefix). */
|
|
8
6
|
onChangeValue?: (raw: number) => void;
|
|
9
7
|
/** Currency symbol shown left of the value. Any string (`'$'`, `'€'`, `'£'`, `'COP '`). Defaults to `'$'`. */
|
|
@@ -16,13 +14,10 @@ interface CurrencyInputProps {
|
|
|
16
14
|
/** Red helper text; also changes input border to destructive color. */
|
|
17
15
|
error?: string;
|
|
18
16
|
hint?: string;
|
|
19
|
-
placeholder?: string;
|
|
20
|
-
editable?: boolean;
|
|
21
17
|
containerStyle?: ViewStyle;
|
|
22
|
-
style?: TextStyle;
|
|
23
18
|
/** Use inside a Sheet/BottomSheet — passes sheetMode to the underlying Input. */
|
|
24
19
|
sheetMode?: boolean;
|
|
25
20
|
}
|
|
26
|
-
declare function CurrencyInput({ value, onChangeText, onChangeValue, prefix, thousandsSeparator, size, label, error, hint, placeholder, editable, containerStyle, style, sheetMode, }: CurrencyInputProps): React.JSX.Element;
|
|
21
|
+
declare function CurrencyInput({ value, onChangeText, onChangeValue, prefix, thousandsSeparator, size, label, error, hint, placeholder, editable, containerStyle, style, sheetMode, ...props }: CurrencyInputProps): React.JSX.Element;
|
|
27
22
|
|
|
28
23
|
export { CurrencyInput, type CurrencyInputProps };
|
package/dist/CurrencyInput.js
CHANGED
|
@@ -379,7 +379,8 @@ function CurrencyInput({
|
|
|
379
379
|
editable,
|
|
380
380
|
containerStyle,
|
|
381
381
|
style,
|
|
382
|
-
sheetMode
|
|
382
|
+
sheetMode,
|
|
383
|
+
...props
|
|
383
384
|
}) {
|
|
384
385
|
const handleChange = (text) => {
|
|
385
386
|
const withoutPrefix = prefix && text.startsWith(prefix) ? text.slice(prefix.length) : text;
|
|
@@ -400,6 +401,7 @@ function CurrencyInput({
|
|
|
400
401
|
return /* @__PURE__ */ React3__default.default.createElement(
|
|
401
402
|
Input,
|
|
402
403
|
{
|
|
404
|
+
...props,
|
|
403
405
|
value: displayValue,
|
|
404
406
|
onChangeText: handleChange,
|
|
405
407
|
keyboardType: "numeric",
|
package/dist/CurrencyInput.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { CurrencyInput } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { CurrencyInput } from './chunk-X26S5EVZ.mjs';
|
|
2
|
+
import './chunk-PGERH3P7.mjs';
|
|
3
3
|
import './chunk-DVK4G2GT.mjs';
|
|
4
4
|
import './chunk-KA7LTET3.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-EMUWGDWC.mjs';
|
|
6
6
|
import './chunk-2CE3TQVY.mjs';
|
|
7
7
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/DetailRow.mjs
CHANGED
package/dist/EmptyState.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { EmptyState } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { EmptyState } from './chunk-7HSILTC4.mjs';
|
|
2
|
+
import './chunk-DOGIPOF5.mjs';
|
|
3
3
|
import './chunk-3DKJ2GIC.mjs';
|
|
4
4
|
import './chunk-EJ7ZPXOH.mjs';
|
|
5
5
|
import './chunk-DVK4G2GT.mjs';
|
|
6
6
|
import './chunk-QY3X2UYR.mjs';
|
|
7
7
|
import './chunk-KA7LTET3.mjs';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-EMUWGDWC.mjs';
|
|
9
9
|
import './chunk-2CE3TQVY.mjs';
|
|
10
10
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/ErrorBoundary.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ErrorBoundary } from './chunk-
|
|
1
|
+
export { ErrorBoundary } from './chunk-LRM4AVYY.mjs';
|
|
2
2
|
import './chunk-EJ7ZPXOH.mjs';
|
|
3
3
|
import './chunk-QY3X2UYR.mjs';
|
|
4
4
|
import './chunk-KA7LTET3.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-EMUWGDWC.mjs';
|
|
6
6
|
import './chunk-2CE3TQVY.mjs';
|
|
7
7
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/Form.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Form, FormField, FormFooter, FormSection } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { Form, FormField, FormFooter, FormSection } from './chunk-HJ46DTJE.mjs';
|
|
2
|
+
import './chunk-EMUWGDWC.mjs';
|
|
3
3
|
import './chunk-2CE3TQVY.mjs';
|
|
4
4
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/IconButton.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { IconButton } from './chunk-
|
|
1
|
+
export { IconButton } from './chunk-DF6DU42P.mjs';
|
|
2
2
|
import './chunk-3DKJ2GIC.mjs';
|
|
3
3
|
import './chunk-EJ7ZPXOH.mjs';
|
|
4
4
|
import './chunk-DVK4G2GT.mjs';
|
|
5
5
|
import './chunk-KA7LTET3.mjs';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-EMUWGDWC.mjs';
|
|
7
7
|
import './chunk-2CE3TQVY.mjs';
|
|
8
8
|
import './chunk-Y6FXYEAI.mjs';
|