@retray-dev/ui-kit 12.1.0 → 12.2.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 +98 -4
- package/README.md +4 -4
- package/dist/Accordion.d.mts +6 -0
- package/dist/Accordion.d.ts +6 -0
- package/dist/Accordion.js +16 -0
- package/dist/Accordion.mjs +2 -2
- package/dist/AlertBanner.js +2 -0
- package/dist/AlertBanner.mjs +2 -2
- package/dist/AppHeader.js +2 -0
- package/dist/AppHeader.mjs +3 -3
- package/dist/Avatar.js +2 -0
- package/dist/Avatar.mjs +2 -2
- package/dist/Badge.js +2 -0
- package/dist/Badge.mjs +2 -2
- package/dist/Button.js +17 -17
- package/dist/Button.mjs +2 -2
- package/dist/Card.js +2 -0
- package/dist/Card.mjs +2 -2
- package/dist/CategoryStrip.js +2 -0
- package/dist/CategoryStrip.mjs +2 -2
- package/dist/Checkbox.js +2 -0
- package/dist/Checkbox.mjs +2 -2
- package/dist/Chip.js +2 -0
- package/dist/Chip.mjs +2 -2
- package/dist/ConfirmDialog.js +26 -20
- package/dist/ConfirmDialog.mjs +3 -3
- package/dist/CurrencyDisplay.js +2 -0
- package/dist/CurrencyDisplay.mjs +2 -2
- package/dist/CurrencyInput.js +2 -0
- package/dist/CurrencyInput.mjs +3 -3
- package/dist/DetailRow.js +2 -0
- package/dist/DetailRow.mjs +2 -2
- package/dist/EmptyState.js +17 -17
- package/dist/EmptyState.mjs +3 -3
- package/dist/ErrorBoundary.js +2 -0
- package/dist/ErrorBoundary.mjs +2 -2
- package/dist/Form.js +2 -0
- package/dist/Form.mjs +2 -2
- package/dist/IconButton.js +2 -0
- package/dist/IconButton.mjs +2 -2
- package/dist/IconPicker.js +2 -0
- package/dist/IconPicker.mjs +3 -3
- package/dist/ImageUpload.d.mts +3 -1
- package/dist/ImageUpload.d.ts +3 -1
- package/dist/ImageUpload.js +10 -3
- package/dist/ImageUpload.mjs +3 -3
- package/dist/ImageViewer.js +2 -0
- package/dist/ImageViewer.mjs +4 -4
- package/dist/Input.js +2 -0
- package/dist/Input.mjs +2 -2
- package/dist/LabelValue.js +2 -0
- package/dist/LabelValue.mjs +2 -2
- package/dist/ListGroup.js +2 -0
- package/dist/ListGroup.mjs +2 -2
- package/dist/ListItem.js +2 -0
- package/dist/ListItem.mjs +2 -2
- package/dist/MediaCard.js +2 -0
- package/dist/MediaCard.mjs +2 -2
- package/dist/MenuGroup.js +2 -0
- package/dist/MenuGroup.mjs +2 -2
- package/dist/MenuItem.js +2 -0
- package/dist/MenuItem.mjs +2 -2
- package/dist/MonthPicker.js +2 -0
- package/dist/MonthPicker.mjs +2 -2
- package/dist/NumberStepper.js +2 -0
- package/dist/NumberStepper.mjs +2 -2
- package/dist/PagerDots.js +2 -0
- package/dist/PagerDots.mjs +2 -2
- package/dist/PricingCard.js +17 -17
- package/dist/PricingCard.mjs +4 -4
- package/dist/Progress.js +2 -0
- package/dist/Progress.mjs +2 -2
- package/dist/RadioGroup.js +2 -0
- package/dist/RadioGroup.mjs +2 -2
- package/dist/RetrayProvider.d.mts +1 -1
- package/dist/RetrayProvider.d.ts +1 -1
- package/dist/RetrayProvider.js +2 -0
- package/dist/RetrayProvider.mjs +3 -3
- package/dist/Select.js +2 -0
- package/dist/Select.mjs +2 -2
- package/dist/SelectableCard.d.mts +27 -0
- package/dist/SelectableCard.d.ts +27 -0
- package/dist/SelectableCard.js +511 -0
- package/dist/SelectableCard.mjs +8 -0
- package/dist/SelectableGrid.js +2 -0
- package/dist/SelectableGrid.mjs +2 -2
- package/dist/Separator.js +2 -0
- package/dist/Separator.mjs +2 -2
- package/dist/Sheet.js +11 -3
- package/dist/Sheet.mjs +2 -2
- package/dist/SheetSelect.js +2 -0
- package/dist/SheetSelect.mjs +2 -2
- package/dist/Skeleton.d.mts +3 -1
- package/dist/Skeleton.d.ts +3 -1
- package/dist/Skeleton.js +5 -2
- package/dist/Skeleton.mjs +2 -2
- package/dist/Slider.js +2 -0
- package/dist/Slider.mjs +2 -2
- package/dist/Spinner.js +2 -0
- package/dist/Spinner.mjs +2 -2
- package/dist/Stats.d.mts +4 -1
- package/dist/Stats.d.ts +4 -1
- package/dist/Stats.js +27 -3
- package/dist/Stats.mjs +2 -2
- package/dist/Switch.js +2 -0
- package/dist/Switch.mjs +2 -2
- package/dist/TabBar.js +2 -0
- package/dist/TabBar.mjs +2 -2
- package/dist/Tabs.js +2 -0
- package/dist/Tabs.mjs +2 -2
- package/dist/Text.js +2 -0
- package/dist/Text.mjs +2 -2
- package/dist/Textarea.js +2 -0
- package/dist/Textarea.mjs +2 -2
- package/dist/Toast.js +2 -0
- package/dist/Toast.mjs +2 -2
- package/dist/Toggle.js +2 -0
- package/dist/Toggle.mjs +2 -2
- package/dist/{chunk-JNVAIDLK.mjs → chunk-2BA3JMKK.mjs} +1 -1
- package/dist/{chunk-X26S5EVZ.mjs → chunk-2HFD4IHU.mjs} +1 -1
- package/dist/{chunk-ZHMSAYLT.mjs → chunk-2LG326TT.mjs} +1 -1
- package/dist/chunk-2P2CB235.mjs +236 -0
- package/dist/{chunk-MYZ2EDYU.mjs → chunk-3XCFYSX4.mjs} +1 -1
- package/dist/{chunk-DOGIPOF5.mjs → chunk-4J2PXL36.mjs} +16 -18
- package/dist/{chunk-V6NFJXKO.mjs → chunk-4OORJ2DY.mjs} +1 -1
- package/dist/{chunk-5OLNXP3S.mjs → chunk-4XOB5TTD.mjs} +26 -4
- package/dist/{chunk-P64WHW4A.mjs → chunk-57V2LXCK.mjs} +1 -1
- package/dist/{chunk-HJ46DTJE.mjs → chunk-7AFZWSCI.mjs} +1 -1
- package/dist/{chunk-AQEVCEXV.mjs → chunk-7ELGZ66G.mjs} +1 -1
- package/dist/{chunk-I4V5XZPS.mjs → chunk-AENAVIKT.mjs} +1 -1
- package/dist/{chunk-2CBQKU7H.mjs → chunk-BXF4AMHY.mjs} +1 -1
- package/dist/{chunk-JULSIZDM.mjs → chunk-C43HRKXH.mjs} +1 -1
- package/dist/{chunk-GK4VRMNE.mjs → chunk-CF27NBXO.mjs} +11 -6
- package/dist/{chunk-PGERH3P7.mjs → chunk-DF7JA72E.mjs} +1 -1
- package/dist/{chunk-F4V6XLP4.mjs → chunk-E5UKLSJZ.mjs} +3 -3
- package/dist/{chunk-FUVYSVGR.mjs → chunk-EDLCGYIO.mjs} +1 -1
- package/dist/{chunk-N4ZPVCJH.mjs → chunk-ELGEOM7I.mjs} +1 -1
- package/dist/{chunk-FA2KMTH5.mjs → chunk-F3YTWO3T.mjs} +1 -1
- package/dist/{chunk-3UYAZ7I4.mjs → chunk-GH67YXG6.mjs} +1 -1
- package/dist/{chunk-357YO24D.mjs → chunk-GUTDFUNF.mjs} +1 -1
- package/dist/{chunk-7HSILTC4.mjs → chunk-HC4VVCWY.mjs} +2 -2
- package/dist/{chunk-WOEWGSTU.mjs → chunk-HEDQPK4I.mjs} +1 -1
- package/dist/{chunk-3GEYJ7I5.mjs → chunk-IVSRW4HS.mjs} +1 -1
- package/dist/{chunk-P73V2EKS.mjs → chunk-KSUWPU2F.mjs} +1 -1
- package/dist/{chunk-BCWEHE34.mjs → chunk-LIS6I5UP.mjs} +1 -1
- package/dist/{chunk-J6Q2YJEV.mjs → chunk-LNPKGWBG.mjs} +1 -1
- package/dist/{chunk-DF6DU42P.mjs → chunk-LOBLCFMN.mjs} +1 -1
- package/dist/{chunk-2A2LEFZG.mjs → chunk-LPV4NJJK.mjs} +2 -2
- package/dist/{chunk-FFTYLPSB.mjs → chunk-M3C7XM2M.mjs} +11 -5
- package/dist/{chunk-BQZE3HAW.mjs → chunk-MEPSKGBO.mjs} +1 -1
- package/dist/{chunk-ISY26JQJ.mjs → chunk-MVMGPZN6.mjs} +2 -2
- package/dist/{chunk-265G6A46.mjs → chunk-NHDI3VQB.mjs} +15 -1
- package/dist/{chunk-D3Y2T42P.mjs → chunk-NJG7DHVF.mjs} +1 -1
- package/dist/{chunk-LRM4AVYY.mjs → chunk-NLZY4TXU.mjs} +1 -1
- package/dist/{chunk-OULVKTWL.mjs → chunk-OLVJFKXS.mjs} +1 -1
- package/dist/{chunk-BOVUP27T.mjs → chunk-QDAZGZUF.mjs} +4 -3
- package/dist/{chunk-S3KJCPEJ.mjs → chunk-QOLWA2PW.mjs} +1 -1
- package/dist/{chunk-JCZQOY4O.mjs → chunk-QXDGGOLC.mjs} +12 -6
- package/dist/{chunk-4WFMPFZB.mjs → chunk-RJNLAH76.mjs} +1 -1
- package/dist/{chunk-HLMPMUK2.mjs → chunk-RMRS44MQ.mjs} +1 -1
- package/dist/{chunk-KHYX4IOM.mjs → chunk-SAWUXP3A.mjs} +2 -2
- package/dist/{chunk-2I2AYECM.mjs → chunk-TS7DGUIR.mjs} +1 -1
- package/dist/{chunk-3N2M3WZL.mjs → chunk-UBUXUMER.mjs} +1 -1
- package/dist/{chunk-AKM4EPOT.mjs → chunk-ULGNQPNE.mjs} +1 -1
- package/dist/{chunk-FVTVCJAH.mjs → chunk-UNNRUJTM.mjs} +1 -1
- package/dist/{chunk-DI7CBDL6.mjs → chunk-UQ4742ET.mjs} +1 -1
- package/dist/{chunk-EFLFRAHD.mjs → chunk-VJBUCITV.mjs} +1 -1
- package/dist/{chunk-QSFV2P7O.mjs → chunk-YMYIEVZP.mjs} +1 -1
- package/dist/{chunk-EMUWGDWC.mjs → chunk-YTXRIXNZ.mjs} +2 -0
- package/dist/{chunk-XBAGGKLW.mjs → chunk-ZIMY2QUM.mjs} +2 -2
- package/dist/{chunk-NXI4YDZ2.mjs → chunk-ZR6HSEAB.mjs} +1 -1
- package/dist/{index-wt-orHUi.d.ts → index-CY34hxPN.d.mts} +1 -0
- package/dist/{index-wt-orHUi.d.mts → index-CY34hxPN.d.ts} +1 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +733 -453
- package/dist/index.mjs +53 -52
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.tsx +20 -0
- package/src/components/Button/Button.tsx +29 -26
- package/src/components/ConfirmDialog/ConfirmDialog.tsx +10 -3
- package/src/components/ImageUpload/ImageUpload.tsx +10 -3
- package/src/components/SelectableCard/SelectableCard.tsx +304 -0
- package/src/components/SelectableCard/index.ts +1 -0
- package/src/components/Sheet/Sheet.tsx +10 -3
- package/src/components/Skeleton/Skeleton.tsx +5 -2
- package/src/components/Stats/Stats.tsx +35 -7
- package/src/index.ts +1 -0
- package/src/theme/colors.ts +7 -0
- package/src/theme/types.ts +4 -1
package/dist/ConfirmDialog.js
CHANGED
|
@@ -185,6 +185,7 @@ function deriveColors(t, scheme) {
|
|
|
185
185
|
const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
|
|
186
186
|
const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
|
|
187
187
|
const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
|
|
188
|
+
const skeleton = dark ? lighten(bg, -0.1) : darken(bg, 0.1);
|
|
188
189
|
const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
|
|
189
190
|
const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
|
|
190
191
|
const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
|
|
@@ -197,6 +198,7 @@ function deriveColors(t, scheme) {
|
|
|
197
198
|
foregroundMuted,
|
|
198
199
|
surface,
|
|
199
200
|
surfaceStrong,
|
|
201
|
+
skeleton,
|
|
200
202
|
destructiveTint,
|
|
201
203
|
destructiveBorder,
|
|
202
204
|
successTint,
|
|
@@ -365,24 +367,26 @@ function ButtonBase({
|
|
|
365
367
|
impactMedium();
|
|
366
368
|
onPress?.();
|
|
367
369
|
};
|
|
368
|
-
const containerVariantStyle = {
|
|
370
|
+
const containerVariantStyle = isDisabled ? {
|
|
371
|
+
primary: { backgroundColor: colors.surface },
|
|
372
|
+
secondary: { backgroundColor: "transparent", borderWidth: 1.5, borderColor: colors.border },
|
|
373
|
+
text: { backgroundColor: "transparent" },
|
|
374
|
+
destructive: { backgroundColor: colors.surface }
|
|
375
|
+
}[variant] : {
|
|
369
376
|
primary: { backgroundColor: colors.primary },
|
|
370
377
|
secondary: { backgroundColor: "transparent", borderWidth: 1.5, borderColor: colors.primary },
|
|
371
378
|
text: { backgroundColor: "transparent" },
|
|
372
379
|
destructive: { backgroundColor: colors.destructive }
|
|
373
380
|
}[variant];
|
|
374
|
-
const
|
|
375
|
-
primary:
|
|
376
|
-
secondary:
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
// carry the brand voltage. Falls back to primary when no accent is defined.
|
|
380
|
-
text: { color: colors.accentResolved },
|
|
381
|
-
destructive: { color: colors.destructiveForeground }
|
|
381
|
+
const labelColor = isDisabled ? colors.foregroundMuted : {
|
|
382
|
+
primary: colors.primaryForeground,
|
|
383
|
+
secondary: colors.primary,
|
|
384
|
+
text: colors.accentResolved,
|
|
385
|
+
destructive: colors.destructiveForeground
|
|
382
386
|
}[variant];
|
|
383
|
-
const textColor = iconColor ??
|
|
387
|
+
const textColor = iconColor ?? labelColor;
|
|
384
388
|
const effectiveIcon = iconName ? renderIcon(iconName, iconSizeMap[size], textColor) : typeof icon === "function" ? icon({ label, size, variant, color: textColor }) : icon;
|
|
385
|
-
const spinnerColor = variant === "destructive" ? colors.destructiveForeground : variant === "primary" ? colors.primaryForeground : colors.accentResolved;
|
|
389
|
+
const spinnerColor = isDisabled ? colors.foregroundMuted : variant === "destructive" ? colors.destructiveForeground : variant === "primary" ? colors.primaryForeground : colors.accentResolved;
|
|
386
390
|
const styleArray = Array.isArray(style) ? style : style ? [style] : [];
|
|
387
391
|
const flatStyle = reactNative.StyleSheet.flatten(styleArray);
|
|
388
392
|
const { flex, ...restStyle } = flatStyle || {};
|
|
@@ -394,7 +398,6 @@ function ButtonBase({
|
|
|
394
398
|
containerVariantStyle,
|
|
395
399
|
containerSizeStyles[size],
|
|
396
400
|
fullWidth && styles.fullWidth,
|
|
397
|
-
isDisabled && styles.disabled,
|
|
398
401
|
restStyle
|
|
399
402
|
],
|
|
400
403
|
enabled: !isDisabled,
|
|
@@ -410,7 +413,7 @@ function ButtonBase({
|
|
|
410
413
|
loading ? /* @__PURE__ */ React3__default.default.createElement(React3__default.default.Fragment, null, /* @__PURE__ */ React3__default.default.createElement(reactNative.ActivityIndicator, { size: "small", color: spinnerColor, style: { marginRight: s(6) } }), /* @__PURE__ */ React3__default.default.createElement(
|
|
411
414
|
reactNative.Text,
|
|
412
415
|
{
|
|
413
|
-
style: [styles.label,
|
|
416
|
+
style: [styles.label, { color: labelColor }, labelSizeStyles[size], styles.labelLoading],
|
|
414
417
|
allowFontScaling: true,
|
|
415
418
|
numberOfLines: 1
|
|
416
419
|
},
|
|
@@ -418,7 +421,7 @@ function ButtonBase({
|
|
|
418
421
|
)) : /* @__PURE__ */ React3__default.default.createElement(React3__default.default.Fragment, null, effectiveIcon && iconPosition === "left" && /* @__PURE__ */ React3__default.default.createElement(React3__default.default.Fragment, null, effectiveIcon), /* @__PURE__ */ React3__default.default.createElement(
|
|
419
422
|
reactNative.Text,
|
|
420
423
|
{
|
|
421
|
-
style: [styles.label,
|
|
424
|
+
style: [styles.label, { color: labelColor }, labelSizeStyles[size], effectiveIcon ? styles.labelWithIcon : void 0],
|
|
422
425
|
allowFontScaling: true,
|
|
423
426
|
numberOfLines: 1
|
|
424
427
|
},
|
|
@@ -437,9 +440,6 @@ var styles = reactNative.StyleSheet.create({
|
|
|
437
440
|
fullWidth: {
|
|
438
441
|
width: "100%"
|
|
439
442
|
},
|
|
440
|
-
disabled: {
|
|
441
|
-
opacity: 0.45
|
|
442
|
-
},
|
|
443
443
|
label: {
|
|
444
444
|
fontFamily: "Sohne-Medium",
|
|
445
445
|
flexShrink: 1
|
|
@@ -469,13 +469,19 @@ function ConfirmDialog({
|
|
|
469
469
|
const insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
470
470
|
const ref = React3.useRef(null);
|
|
471
471
|
const wasOpened = React3.useRef(false);
|
|
472
|
+
const isPresentedRef = React3.useRef(false);
|
|
472
473
|
const name = React3.useId();
|
|
474
|
+
const handleDismiss = React3.useCallback(() => {
|
|
475
|
+
isPresentedRef.current = false;
|
|
476
|
+
onCancel();
|
|
477
|
+
}, [onCancel]);
|
|
473
478
|
React3.useEffect(() => {
|
|
474
|
-
if (visible) {
|
|
479
|
+
if (visible && !isPresentedRef.current) {
|
|
475
480
|
impactMedium();
|
|
476
481
|
ref.current?.present();
|
|
477
482
|
wasOpened.current = true;
|
|
478
|
-
|
|
483
|
+
isPresentedRef.current = true;
|
|
484
|
+
} else if (!visible && wasOpened.current && isPresentedRef.current) {
|
|
479
485
|
ref.current?.dismiss();
|
|
480
486
|
}
|
|
481
487
|
}, [visible]);
|
|
@@ -496,7 +502,7 @@ function ConfirmDialog({
|
|
|
496
502
|
{
|
|
497
503
|
ref,
|
|
498
504
|
name,
|
|
499
|
-
onDismiss:
|
|
505
|
+
onDismiss: handleDismiss,
|
|
500
506
|
enableDynamicSizing: true,
|
|
501
507
|
backdropComponent: renderBackdrop,
|
|
502
508
|
backgroundStyle: { ...styles2.background, backgroundColor: colors.card },
|
package/dist/ConfirmDialog.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { ConfirmDialog } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { ConfirmDialog } from './chunk-QXDGGOLC.mjs';
|
|
2
|
+
import './chunk-4J2PXL36.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-YTXRIXNZ.mjs';
|
|
9
9
|
import './chunk-2CE3TQVY.mjs';
|
|
10
10
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/CurrencyDisplay.js
CHANGED
|
@@ -89,6 +89,7 @@ function deriveColors(t, scheme) {
|
|
|
89
89
|
const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
|
|
90
90
|
const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
|
|
91
91
|
const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
|
|
92
|
+
const skeleton = dark ? lighten(bg, -0.1) : darken(bg, 0.1);
|
|
92
93
|
const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
|
|
93
94
|
const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
|
|
94
95
|
const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
|
|
@@ -101,6 +102,7 @@ function deriveColors(t, scheme) {
|
|
|
101
102
|
foregroundMuted,
|
|
102
103
|
surface,
|
|
103
104
|
surfaceStrong,
|
|
105
|
+
skeleton,
|
|
104
106
|
destructiveTint,
|
|
105
107
|
destructiveBorder,
|
|
106
108
|
successTint,
|
package/dist/CurrencyDisplay.mjs
CHANGED
package/dist/CurrencyInput.js
CHANGED
|
@@ -105,6 +105,7 @@ function deriveColors(t, scheme) {
|
|
|
105
105
|
const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
|
|
106
106
|
const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
|
|
107
107
|
const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
|
|
108
|
+
const skeleton = dark ? lighten(bg, -0.1) : darken(bg, 0.1);
|
|
108
109
|
const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
|
|
109
110
|
const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
|
|
110
111
|
const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
|
|
@@ -117,6 +118,7 @@ function deriveColors(t, scheme) {
|
|
|
117
118
|
foregroundMuted,
|
|
118
119
|
surface,
|
|
119
120
|
surfaceStrong,
|
|
121
|
+
skeleton,
|
|
120
122
|
destructiveTint,
|
|
121
123
|
destructiveBorder,
|
|
122
124
|
successTint,
|
package/dist/CurrencyInput.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { CurrencyInput } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { CurrencyInput } from './chunk-2HFD4IHU.mjs';
|
|
2
|
+
import './chunk-DF7JA72E.mjs';
|
|
3
3
|
import './chunk-DVK4G2GT.mjs';
|
|
4
4
|
import './chunk-KA7LTET3.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-YTXRIXNZ.mjs';
|
|
6
6
|
import './chunk-2CE3TQVY.mjs';
|
|
7
7
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/DetailRow.js
CHANGED
|
@@ -101,6 +101,7 @@ function deriveColors(t, scheme) {
|
|
|
101
101
|
const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
|
|
102
102
|
const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
|
|
103
103
|
const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
|
|
104
|
+
const skeleton = dark ? lighten(bg, -0.1) : darken(bg, 0.1);
|
|
104
105
|
const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
|
|
105
106
|
const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
|
|
106
107
|
const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
|
|
@@ -113,6 +114,7 @@ function deriveColors(t, scheme) {
|
|
|
113
114
|
foregroundMuted,
|
|
114
115
|
surface,
|
|
115
116
|
surfaceStrong,
|
|
117
|
+
skeleton,
|
|
116
118
|
destructiveTint,
|
|
117
119
|
destructiveBorder,
|
|
118
120
|
successTint,
|
package/dist/DetailRow.mjs
CHANGED
package/dist/EmptyState.js
CHANGED
|
@@ -108,6 +108,7 @@ function deriveColors(t, scheme) {
|
|
|
108
108
|
const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
|
|
109
109
|
const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
|
|
110
110
|
const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
|
|
111
|
+
const skeleton = dark ? lighten(bg, -0.1) : darken(bg, 0.1);
|
|
111
112
|
const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
|
|
112
113
|
const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
|
|
113
114
|
const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
|
|
@@ -120,6 +121,7 @@ function deriveColors(t, scheme) {
|
|
|
120
121
|
foregroundMuted,
|
|
121
122
|
surface,
|
|
122
123
|
surfaceStrong,
|
|
124
|
+
skeleton,
|
|
123
125
|
destructiveTint,
|
|
124
126
|
destructiveBorder,
|
|
125
127
|
successTint,
|
|
@@ -342,24 +344,26 @@ function ButtonBase({
|
|
|
342
344
|
impactMedium();
|
|
343
345
|
onPress?.();
|
|
344
346
|
};
|
|
345
|
-
const containerVariantStyle = {
|
|
347
|
+
const containerVariantStyle = isDisabled ? {
|
|
348
|
+
primary: { backgroundColor: colors.surface },
|
|
349
|
+
secondary: { backgroundColor: "transparent", borderWidth: 1.5, borderColor: colors.border },
|
|
350
|
+
text: { backgroundColor: "transparent" },
|
|
351
|
+
destructive: { backgroundColor: colors.surface }
|
|
352
|
+
}[variant] : {
|
|
346
353
|
primary: { backgroundColor: colors.primary },
|
|
347
354
|
secondary: { backgroundColor: "transparent", borderWidth: 1.5, borderColor: colors.primary },
|
|
348
355
|
text: { backgroundColor: "transparent" },
|
|
349
356
|
destructive: { backgroundColor: colors.destructive }
|
|
350
357
|
}[variant];
|
|
351
|
-
const
|
|
352
|
-
primary:
|
|
353
|
-
secondary:
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
// carry the brand voltage. Falls back to primary when no accent is defined.
|
|
357
|
-
text: { color: colors.accentResolved },
|
|
358
|
-
destructive: { color: colors.destructiveForeground }
|
|
358
|
+
const labelColor = isDisabled ? colors.foregroundMuted : {
|
|
359
|
+
primary: colors.primaryForeground,
|
|
360
|
+
secondary: colors.primary,
|
|
361
|
+
text: colors.accentResolved,
|
|
362
|
+
destructive: colors.destructiveForeground
|
|
359
363
|
}[variant];
|
|
360
|
-
const textColor = iconColor ??
|
|
364
|
+
const textColor = iconColor ?? labelColor;
|
|
361
365
|
const effectiveIcon = iconName ? renderIcon(iconName, iconSizeMap[size], textColor) : typeof icon === "function" ? icon({ label, size, variant, color: textColor }) : icon;
|
|
362
|
-
const spinnerColor = variant === "destructive" ? colors.destructiveForeground : variant === "primary" ? colors.primaryForeground : colors.accentResolved;
|
|
366
|
+
const spinnerColor = isDisabled ? colors.foregroundMuted : variant === "destructive" ? colors.destructiveForeground : variant === "primary" ? colors.primaryForeground : colors.accentResolved;
|
|
363
367
|
const styleArray = Array.isArray(style) ? style : style ? [style] : [];
|
|
364
368
|
const flatStyle = reactNative.StyleSheet.flatten(styleArray);
|
|
365
369
|
const { flex, ...restStyle } = flatStyle || {};
|
|
@@ -371,7 +375,6 @@ function ButtonBase({
|
|
|
371
375
|
containerVariantStyle,
|
|
372
376
|
containerSizeStyles[size],
|
|
373
377
|
fullWidth && styles.fullWidth,
|
|
374
|
-
isDisabled && styles.disabled,
|
|
375
378
|
restStyle
|
|
376
379
|
],
|
|
377
380
|
enabled: !isDisabled,
|
|
@@ -387,7 +390,7 @@ function ButtonBase({
|
|
|
387
390
|
loading ? /* @__PURE__ */ React3__default.default.createElement(React3__default.default.Fragment, null, /* @__PURE__ */ React3__default.default.createElement(reactNative.ActivityIndicator, { size: "small", color: spinnerColor, style: { marginRight: s(6) } }), /* @__PURE__ */ React3__default.default.createElement(
|
|
388
391
|
reactNative.Text,
|
|
389
392
|
{
|
|
390
|
-
style: [styles.label,
|
|
393
|
+
style: [styles.label, { color: labelColor }, labelSizeStyles[size], styles.labelLoading],
|
|
391
394
|
allowFontScaling: true,
|
|
392
395
|
numberOfLines: 1
|
|
393
396
|
},
|
|
@@ -395,7 +398,7 @@ function ButtonBase({
|
|
|
395
398
|
)) : /* @__PURE__ */ React3__default.default.createElement(React3__default.default.Fragment, null, effectiveIcon && iconPosition === "left" && /* @__PURE__ */ React3__default.default.createElement(React3__default.default.Fragment, null, effectiveIcon), /* @__PURE__ */ React3__default.default.createElement(
|
|
396
399
|
reactNative.Text,
|
|
397
400
|
{
|
|
398
|
-
style: [styles.label,
|
|
401
|
+
style: [styles.label, { color: labelColor }, labelSizeStyles[size], effectiveIcon ? styles.labelWithIcon : void 0],
|
|
399
402
|
allowFontScaling: true,
|
|
400
403
|
numberOfLines: 1
|
|
401
404
|
},
|
|
@@ -414,9 +417,6 @@ var styles = reactNative.StyleSheet.create({
|
|
|
414
417
|
fullWidth: {
|
|
415
418
|
width: "100%"
|
|
416
419
|
},
|
|
417
|
-
disabled: {
|
|
418
|
-
opacity: 0.45
|
|
419
|
-
},
|
|
420
420
|
label: {
|
|
421
421
|
fontFamily: "Sohne-Medium",
|
|
422
422
|
flexShrink: 1
|
package/dist/EmptyState.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { EmptyState } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { EmptyState } from './chunk-HC4VVCWY.mjs';
|
|
2
|
+
import './chunk-4J2PXL36.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-YTXRIXNZ.mjs';
|
|
9
9
|
import './chunk-2CE3TQVY.mjs';
|
|
10
10
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/ErrorBoundary.js
CHANGED
|
@@ -106,6 +106,7 @@ function deriveColors(t, scheme) {
|
|
|
106
106
|
const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
|
|
107
107
|
const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
|
|
108
108
|
const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
|
|
109
|
+
const skeleton = dark ? lighten(bg, -0.1) : darken(bg, 0.1);
|
|
109
110
|
const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
|
|
110
111
|
const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
|
|
111
112
|
const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
|
|
@@ -118,6 +119,7 @@ function deriveColors(t, scheme) {
|
|
|
118
119
|
foregroundMuted,
|
|
119
120
|
surface,
|
|
120
121
|
surfaceStrong,
|
|
122
|
+
skeleton,
|
|
121
123
|
destructiveTint,
|
|
122
124
|
destructiveBorder,
|
|
123
125
|
successTint,
|
package/dist/ErrorBoundary.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ErrorBoundary } from './chunk-
|
|
1
|
+
export { ErrorBoundary } from './chunk-NLZY4TXU.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-YTXRIXNZ.mjs';
|
|
6
6
|
import './chunk-2CE3TQVY.mjs';
|
|
7
7
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/Form.js
CHANGED
|
@@ -89,6 +89,7 @@ function deriveColors(t, scheme) {
|
|
|
89
89
|
const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
|
|
90
90
|
const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
|
|
91
91
|
const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
|
|
92
|
+
const skeleton = dark ? lighten(bg, -0.1) : darken(bg, 0.1);
|
|
92
93
|
const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
|
|
93
94
|
const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
|
|
94
95
|
const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
|
|
@@ -101,6 +102,7 @@ function deriveColors(t, scheme) {
|
|
|
101
102
|
foregroundMuted,
|
|
102
103
|
surface,
|
|
103
104
|
surfaceStrong,
|
|
105
|
+
skeleton,
|
|
104
106
|
destructiveTint,
|
|
105
107
|
destructiveBorder,
|
|
106
108
|
successTint,
|
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-7AFZWSCI.mjs';
|
|
2
|
+
import './chunk-YTXRIXNZ.mjs';
|
|
3
3
|
import './chunk-2CE3TQVY.mjs';
|
|
4
4
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/IconButton.js
CHANGED
|
@@ -162,6 +162,7 @@ function deriveColors(t, scheme) {
|
|
|
162
162
|
const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
|
|
163
163
|
const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
|
|
164
164
|
const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
|
|
165
|
+
const skeleton = dark ? lighten(bg, -0.1) : darken(bg, 0.1);
|
|
165
166
|
const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
|
|
166
167
|
const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
|
|
167
168
|
const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
|
|
@@ -174,6 +175,7 @@ function deriveColors(t, scheme) {
|
|
|
174
175
|
foregroundMuted,
|
|
175
176
|
surface,
|
|
176
177
|
surfaceStrong,
|
|
178
|
+
skeleton,
|
|
177
179
|
destructiveTint,
|
|
178
180
|
destructiveBorder,
|
|
179
181
|
successTint,
|
package/dist/IconButton.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { IconButton } from './chunk-
|
|
1
|
+
export { IconButton } from './chunk-LOBLCFMN.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-YTXRIXNZ.mjs';
|
|
7
7
|
import './chunk-2CE3TQVY.mjs';
|
|
8
8
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/IconPicker.js
CHANGED
|
@@ -109,6 +109,7 @@ function deriveColors(t, scheme) {
|
|
|
109
109
|
const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
|
|
110
110
|
const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
|
|
111
111
|
const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
|
|
112
|
+
const skeleton = dark ? lighten(bg, -0.1) : darken(bg, 0.1);
|
|
112
113
|
const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
|
|
113
114
|
const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
|
|
114
115
|
const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
|
|
@@ -121,6 +122,7 @@ function deriveColors(t, scheme) {
|
|
|
121
122
|
foregroundMuted,
|
|
122
123
|
surface,
|
|
123
124
|
surfaceStrong,
|
|
125
|
+
skeleton,
|
|
124
126
|
destructiveTint,
|
|
125
127
|
destructiveBorder,
|
|
126
128
|
successTint,
|
package/dist/IconPicker.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { IconPicker } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { IconPicker } from './chunk-SAWUXP3A.mjs';
|
|
2
|
+
import './chunk-LIS6I5UP.mjs';
|
|
3
3
|
import './chunk-EJ7ZPXOH.mjs';
|
|
4
4
|
import './chunk-QY3X2UYR.mjs';
|
|
5
5
|
import './chunk-KA7LTET3.mjs';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-YTXRIXNZ.mjs';
|
|
7
7
|
import './chunk-2CE3TQVY.mjs';
|
|
8
8
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/ImageUpload.d.mts
CHANGED
|
@@ -20,10 +20,12 @@ interface ImageUploadProps {
|
|
|
20
20
|
borderRadius?: number;
|
|
21
21
|
/** Aspect ratio for the selected image. Defaults to 'cover'. */
|
|
22
22
|
resizeMode?: 'cover' | 'contain' | 'stretch';
|
|
23
|
+
/** Whether to allow the user to crop the image after selecting. Defaults to true. */
|
|
24
|
+
allowsEditing?: boolean;
|
|
23
25
|
disabled?: boolean;
|
|
24
26
|
style?: ViewStyle;
|
|
25
27
|
accessibilityLabel?: string;
|
|
26
28
|
}
|
|
27
|
-
declare function ImageUpload({ value, onChange, loading, placeholder, showPlaceholderText, width, height, borderRadius, resizeMode, disabled, style, accessibilityLabel, }: ImageUploadProps): React.JSX.Element;
|
|
29
|
+
declare function ImageUpload({ value, onChange, loading, placeholder, showPlaceholderText, width, height, borderRadius, resizeMode, allowsEditing, disabled, style, accessibilityLabel, }: ImageUploadProps): React.JSX.Element;
|
|
28
30
|
|
|
29
31
|
export { ImageUpload, type ImageUploadProps };
|
package/dist/ImageUpload.d.ts
CHANGED
|
@@ -20,10 +20,12 @@ interface ImageUploadProps {
|
|
|
20
20
|
borderRadius?: number;
|
|
21
21
|
/** Aspect ratio for the selected image. Defaults to 'cover'. */
|
|
22
22
|
resizeMode?: 'cover' | 'contain' | 'stretch';
|
|
23
|
+
/** Whether to allow the user to crop the image after selecting. Defaults to true. */
|
|
24
|
+
allowsEditing?: boolean;
|
|
23
25
|
disabled?: boolean;
|
|
24
26
|
style?: ViewStyle;
|
|
25
27
|
accessibilityLabel?: string;
|
|
26
28
|
}
|
|
27
|
-
declare function ImageUpload({ value, onChange, loading, placeholder, showPlaceholderText, width, height, borderRadius, resizeMode, disabled, style, accessibilityLabel, }: ImageUploadProps): React.JSX.Element;
|
|
29
|
+
declare function ImageUpload({ value, onChange, loading, placeholder, showPlaceholderText, width, height, borderRadius, resizeMode, allowsEditing, disabled, style, accessibilityLabel, }: ImageUploadProps): React.JSX.Element;
|
|
28
30
|
|
|
29
31
|
export { ImageUpload, type ImageUploadProps };
|
package/dist/ImageUpload.js
CHANGED
|
@@ -151,6 +151,7 @@ function deriveColors(t, scheme) {
|
|
|
151
151
|
const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
|
|
152
152
|
const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
|
|
153
153
|
const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
|
|
154
|
+
const skeleton = dark ? lighten(bg, -0.1) : darken(bg, 0.1);
|
|
154
155
|
const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
|
|
155
156
|
const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
|
|
156
157
|
const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
|
|
@@ -163,6 +164,7 @@ function deriveColors(t, scheme) {
|
|
|
163
164
|
foregroundMuted,
|
|
164
165
|
surface,
|
|
165
166
|
surfaceStrong,
|
|
167
|
+
skeleton,
|
|
166
168
|
destructiveTint,
|
|
167
169
|
destructiveBorder,
|
|
168
170
|
successTint,
|
|
@@ -305,11 +307,13 @@ function ImageUpload({
|
|
|
305
307
|
height = 200,
|
|
306
308
|
borderRadius = RADIUS.lg,
|
|
307
309
|
resizeMode = "cover",
|
|
310
|
+
allowsEditing = true,
|
|
308
311
|
disabled = false,
|
|
309
312
|
style,
|
|
310
313
|
accessibilityLabel
|
|
311
314
|
}) {
|
|
312
315
|
const { colors } = useTheme();
|
|
316
|
+
const [imageLoaded, setImageLoaded] = React3.useState(false);
|
|
313
317
|
const handlePress = async () => {
|
|
314
318
|
if (disabled || loading) return;
|
|
315
319
|
impactLight();
|
|
@@ -334,10 +338,11 @@ function ImageUpload({
|
|
|
334
338
|
}
|
|
335
339
|
const result = await picker.launchImageLibraryAsync({
|
|
336
340
|
mediaTypes: ["images"],
|
|
337
|
-
allowsEditing
|
|
341
|
+
allowsEditing,
|
|
338
342
|
quality: 0.8
|
|
339
343
|
});
|
|
340
344
|
if (!result.canceled && result.assets?.[0]) {
|
|
345
|
+
setImageLoaded(false);
|
|
341
346
|
onChange?.(result.assets[0].uri);
|
|
342
347
|
}
|
|
343
348
|
};
|
|
@@ -348,7 +353,7 @@ function ImageUpload({
|
|
|
348
353
|
borderWidth: value ? 0 : 1,
|
|
349
354
|
borderStyle: "dashed",
|
|
350
355
|
borderColor: colors.border,
|
|
351
|
-
backgroundColor: value ? "transparent" : colors.surface,
|
|
356
|
+
backgroundColor: value && imageLoaded ? "transparent" : colors.surface,
|
|
352
357
|
overflow: "hidden"
|
|
353
358
|
};
|
|
354
359
|
return /* @__PURE__ */ React3__default.default.createElement(
|
|
@@ -368,7 +373,9 @@ function ImageUpload({
|
|
|
368
373
|
{
|
|
369
374
|
source: { uri: value },
|
|
370
375
|
style: [reactNative.StyleSheet.absoluteFillObject, { borderRadius }],
|
|
371
|
-
resizeMode
|
|
376
|
+
resizeMode,
|
|
377
|
+
onLoad: () => setImageLoaded(true),
|
|
378
|
+
onError: () => setImageLoaded(true)
|
|
372
379
|
}
|
|
373
380
|
) : /* @__PURE__ */ React3__default.default.createElement(reactNative.View, { style: styles2.placeholder }, /* @__PURE__ */ React3__default.default.createElement(vectorIcons.Feather, { name: "image", size: ms(28), color: colors.foregroundMuted }), showPlaceholderText ? /* @__PURE__ */ React3__default.default.createElement(
|
|
374
381
|
reactNative.Text,
|
package/dist/ImageUpload.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { ImageUpload } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { ImageUpload } from './chunk-CF27NBXO.mjs';
|
|
2
|
+
import './chunk-LIS6I5UP.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
|
-
import './chunk-
|
|
7
|
+
import './chunk-YTXRIXNZ.mjs';
|
|
8
8
|
import './chunk-2CE3TQVY.mjs';
|
|
9
9
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/ImageViewer.js
CHANGED
|
@@ -175,6 +175,7 @@ function deriveColors(t, scheme) {
|
|
|
175
175
|
const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
|
|
176
176
|
const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
|
|
177
177
|
const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
|
|
178
|
+
const skeleton = dark ? lighten(bg, -0.1) : darken(bg, 0.1);
|
|
178
179
|
const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
|
|
179
180
|
const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
|
|
180
181
|
const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
|
|
@@ -187,6 +188,7 @@ function deriveColors(t, scheme) {
|
|
|
187
188
|
foregroundMuted,
|
|
188
189
|
surface,
|
|
189
190
|
surfaceStrong,
|
|
191
|
+
skeleton,
|
|
190
192
|
destructiveTint,
|
|
191
193
|
destructiveBorder,
|
|
192
194
|
successTint,
|
package/dist/ImageViewer.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { ImageViewer } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { ImageViewer } from './chunk-LPV4NJJK.mjs';
|
|
2
|
+
import './chunk-OLVJFKXS.mjs';
|
|
3
|
+
import './chunk-LOBLCFMN.mjs';
|
|
4
4
|
import './chunk-3DKJ2GIC.mjs';
|
|
5
5
|
import './chunk-EJ7ZPXOH.mjs';
|
|
6
6
|
import './chunk-DVK4G2GT.mjs';
|
|
7
7
|
import './chunk-KA7LTET3.mjs';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-YTXRIXNZ.mjs';
|
|
9
9
|
import './chunk-2CE3TQVY.mjs';
|
|
10
10
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/Input.js
CHANGED
|
@@ -105,6 +105,7 @@ function deriveColors(t, scheme) {
|
|
|
105
105
|
const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
|
|
106
106
|
const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
|
|
107
107
|
const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
|
|
108
|
+
const skeleton = dark ? lighten(bg, -0.1) : darken(bg, 0.1);
|
|
108
109
|
const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
|
|
109
110
|
const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
|
|
110
111
|
const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
|
|
@@ -117,6 +118,7 @@ function deriveColors(t, scheme) {
|
|
|
117
118
|
foregroundMuted,
|
|
118
119
|
surface,
|
|
119
120
|
surfaceStrong,
|
|
121
|
+
skeleton,
|
|
120
122
|
destructiveTint,
|
|
121
123
|
destructiveBorder,
|
|
122
124
|
successTint,
|
package/dist/Input.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { Input } from './chunk-
|
|
1
|
+
export { Input } from './chunk-DF7JA72E.mjs';
|
|
2
2
|
import './chunk-DVK4G2GT.mjs';
|
|
3
3
|
import './chunk-KA7LTET3.mjs';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-YTXRIXNZ.mjs';
|
|
5
5
|
import './chunk-2CE3TQVY.mjs';
|
|
6
6
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/LabelValue.js
CHANGED
|
@@ -101,6 +101,7 @@ function deriveColors(t, scheme) {
|
|
|
101
101
|
const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
|
|
102
102
|
const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
|
|
103
103
|
const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
|
|
104
|
+
const skeleton = dark ? lighten(bg, -0.1) : darken(bg, 0.1);
|
|
104
105
|
const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
|
|
105
106
|
const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
|
|
106
107
|
const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
|
|
@@ -113,6 +114,7 @@ function deriveColors(t, scheme) {
|
|
|
113
114
|
foregroundMuted,
|
|
114
115
|
surface,
|
|
115
116
|
surfaceStrong,
|
|
117
|
+
skeleton,
|
|
116
118
|
destructiveTint,
|
|
117
119
|
destructiveBorder,
|
|
118
120
|
successTint,
|
package/dist/LabelValue.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { LabelValue } from './chunk-
|
|
1
|
+
export { LabelValue } from './chunk-57V2LXCK.mjs';
|
|
2
2
|
import './chunk-KA7LTET3.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-YTXRIXNZ.mjs';
|
|
4
4
|
import './chunk-2CE3TQVY.mjs';
|
|
5
5
|
import './chunk-Y6FXYEAI.mjs';
|
package/dist/ListGroup.js
CHANGED
|
@@ -89,6 +89,7 @@ function deriveColors(t, scheme) {
|
|
|
89
89
|
const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
|
|
90
90
|
const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
|
|
91
91
|
const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
|
|
92
|
+
const skeleton = dark ? lighten(bg, -0.1) : darken(bg, 0.1);
|
|
92
93
|
const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
|
|
93
94
|
const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
|
|
94
95
|
const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
|
|
@@ -101,6 +102,7 @@ function deriveColors(t, scheme) {
|
|
|
101
102
|
foregroundMuted,
|
|
102
103
|
surface,
|
|
103
104
|
surfaceStrong,
|
|
105
|
+
skeleton,
|
|
104
106
|
destructiveTint,
|
|
105
107
|
destructiveBorder,
|
|
106
108
|
successTint,
|