@retray-dev/ui-kit 10.2.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 +384 -40
- package/README.md +14 -5
- 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.d.mts +1 -6
- package/dist/ConfirmDialog.d.ts +1 -6
- package/dist/ConfirmDialog.js +53 -41
- package/dist/ConfirmDialog.mjs +3 -3
- package/dist/CurrencyDisplay.js +2 -0
- package/dist/CurrencyDisplay.mjs +2 -2
- package/dist/CurrencyInput.d.mts +3 -8
- package/dist/CurrencyInput.d.ts +3 -8
- package/dist/CurrencyInput.js +5 -1
- 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 +677 -248
- package/dist/IconPicker.mjs +3 -2
- 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.d.mts +7 -7
- package/dist/ListItem.d.ts +7 -7
- package/dist/ListItem.js +14 -7
- 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/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.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.d.mts +4 -46
- package/dist/Sheet.d.ts +4 -46
- package/dist/Sheet.js +55 -115
- package/dist/Sheet.mjs +2 -3
- 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 +33 -0
- package/dist/Stats.d.ts +33 -0
- package/dist/Stats.js +453 -0
- package/dist/Stats.mjs +9 -0
- 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.d.mts +3 -1
- package/dist/Text.d.ts +3 -1
- package/dist/Text.js +5 -3
- 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-U2XJFYED.mjs → chunk-2BA3JMKK.mjs} +1 -1
- package/dist/{chunk-NMU5FMQJ.mjs → chunk-2HFD4IHU.mjs} +4 -2
- package/dist/{chunk-S2R7UVOE.mjs → chunk-2LG326TT.mjs} +1 -1
- package/dist/chunk-2P2CB235.mjs +236 -0
- package/dist/{chunk-6L4G6PBT.mjs → chunk-3XCFYSX4.mjs} +1 -1
- package/dist/{chunk-HTHGSXFG.mjs → chunk-4J2PXL36.mjs} +16 -18
- package/dist/{chunk-BEMIQXXU.mjs → chunk-4OORJ2DY.mjs} +1 -1
- package/dist/chunk-4XOB5TTD.mjs +166 -0
- package/dist/{chunk-FCSSQK3L.mjs → chunk-57V2LXCK.mjs} +1 -1
- package/dist/{chunk-6Q64UFIA.mjs → chunk-7AFZWSCI.mjs} +1 -1
- package/dist/{chunk-IX3NYLYQ.mjs → chunk-7ELGZ66G.mjs} +1 -1
- package/dist/{chunk-GD6KXMG5.mjs → chunk-AENAVIKT.mjs} +1 -1
- package/dist/{chunk-ID72TK46.mjs → chunk-BXF4AMHY.mjs} +1 -1
- package/dist/{chunk-SOA2Z4RB.mjs → chunk-C43HRKXH.mjs} +1 -1
- package/dist/{chunk-TZDGAP5N.mjs → chunk-CF27NBXO.mjs} +11 -6
- package/dist/{chunk-SXLKNTA4.mjs → chunk-DF7JA72E.mjs} +1 -1
- package/dist/{chunk-AJRVDP2H.mjs → chunk-E5UKLSJZ.mjs} +3 -3
- package/dist/{chunk-MBMXYJJV.mjs → chunk-E7NEHHXV.mjs} +7 -3
- package/dist/{chunk-VKID2D2I.mjs → chunk-EDLCGYIO.mjs} +13 -8
- package/dist/{chunk-BUMAMSTZ.mjs → chunk-ELGEOM7I.mjs} +1 -1
- package/dist/{chunk-DYT7BG5I.mjs → chunk-F3YTWO3T.mjs} +1 -1
- package/dist/{chunk-VF2ATYN3.mjs → chunk-GH67YXG6.mjs} +1 -1
- package/dist/{chunk-WJLKJMKR.mjs → chunk-GUTDFUNF.mjs} +4 -4
- package/dist/{chunk-6SECQ2ZF.mjs → chunk-HC4VVCWY.mjs} +2 -2
- package/dist/{chunk-A3A6KNQN.mjs → chunk-HEDQPK4I.mjs} +1 -1
- package/dist/{chunk-GQYFLP3D.mjs → chunk-IVSRW4HS.mjs} +1 -1
- package/dist/{chunk-KOO4WITD.mjs → chunk-KSUWPU2F.mjs} +1 -1
- package/dist/{chunk-WBOOUHSS.mjs → chunk-LIS6I5UP.mjs} +1 -1
- package/dist/{chunk-X4G6APW6.mjs → chunk-LNPKGWBG.mjs} +1 -1
- package/dist/{chunk-T2KCAHOS.mjs → chunk-LOBLCFMN.mjs} +1 -1
- package/dist/{chunk-ELXBDILQ.mjs → chunk-LPV4NJJK.mjs} +2 -2
- package/dist/{chunk-Y2NS74WS.mjs → chunk-M3C7XM2M.mjs} +53 -99
- package/dist/{chunk-BRKYVJVV.mjs → chunk-MEPSKGBO.mjs} +1 -1
- package/dist/{chunk-TBNZHU6C.mjs → chunk-MVMGPZN6.mjs} +2 -2
- package/dist/{chunk-YJ7I257J.mjs → chunk-NHDI3VQB.mjs} +15 -1
- package/dist/{chunk-Z6SFHN6T.mjs → chunk-NJG7DHVF.mjs} +1 -1
- package/dist/{chunk-RYZC432S.mjs → chunk-NLZY4TXU.mjs} +1 -1
- package/dist/{chunk-ZZ2R6KZ3.mjs → chunk-OLVJFKXS.mjs} +1 -1
- package/dist/{chunk-AJ7ZDNBT.mjs → chunk-QDAZGZUF.mjs} +4 -3
- package/dist/{chunk-JT7HKXRB.mjs → chunk-QOLWA2PW.mjs} +1 -1
- package/dist/{chunk-WYEUNUTP.mjs → chunk-QXDGGOLC.mjs} +38 -25
- package/dist/{chunk-JMOZEC77.mjs → chunk-RJNLAH76.mjs} +1 -1
- package/dist/{chunk-WF2XDFRK.mjs → chunk-RMRS44MQ.mjs} +1 -1
- package/dist/chunk-SAWUXP3A.mjs +1114 -0
- package/dist/{chunk-OB4JUQ3O.mjs → chunk-TS7DGUIR.mjs} +1 -1
- package/dist/{chunk-AV4EMIRH.mjs → chunk-UBUXUMER.mjs} +1 -1
- package/dist/{chunk-IRRY3CRZ.mjs → chunk-ULGNQPNE.mjs} +1 -1
- package/dist/{chunk-7LWRKMF5.mjs → chunk-UNNRUJTM.mjs} +1 -1
- package/dist/{chunk-TB6SD2FT.mjs → chunk-UQ4742ET.mjs} +1 -1
- package/dist/{chunk-MX6HRKMI.mjs → chunk-VJBUCITV.mjs} +1 -1
- package/dist/{chunk-2UYENBLV.mjs → chunk-YMYIEVZP.mjs} +1 -1
- package/dist/{chunk-SOYNZDVY.mjs → chunk-YTXRIXNZ.mjs} +8 -1
- package/dist/{chunk-YFZ3ELX5.mjs → chunk-ZIMY2QUM.mjs} +2 -2
- package/dist/{chunk-Z4VHZ7B5.mjs → chunk-ZR6HSEAB.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-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 +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +1517 -761
- package/dist/index.mjs +54 -52
- package/package.json +3 -3
- package/src/components/Accordion/Accordion.tsx +20 -0
- package/src/components/Button/Button.tsx +29 -26
- package/src/components/ConfirmDialog/ConfirmDialog.tsx +47 -31
- package/src/components/CurrencyInput/CurrencyInput.tsx +4 -7
- package/src/components/IconPicker/IconPicker.tsx +124 -112
- package/src/components/ImageUpload/ImageUpload.tsx +10 -3
- package/src/components/ListItem/ListItem.tsx +43 -28
- package/src/components/Pressable/Pressable.tsx +20 -8
- package/src/components/SelectableCard/SelectableCard.tsx +304 -0
- package/src/components/SelectableCard/index.ts +1 -0
- package/src/components/Sheet/Sheet.tsx +72 -173
- package/src/components/Skeleton/Skeleton.tsx +5 -2
- package/src/components/Stats/Stats.tsx +254 -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 +5 -0
- package/src/theme/colorUtils.ts +9 -0
- package/src/theme/colors.ts +7 -0
- package/src/theme/types.ts +4 -1
- package/src/utils/curatedIcons.ts +698 -135
- package/src/utils/fontGuard.ts +2 -1
- package/dist/chunk-53Z3NYGE.mjs +0 -742
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SPRINGS } from './chunk-DVK4G2GT.mjs';
|
|
2
|
-
import { useTheme } from './chunk-
|
|
2
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
3
3
|
import { vs } from './chunk-2CE3TQVY.mjs';
|
|
4
4
|
import React, { useState, useEffect } from 'react';
|
|
5
5
|
import { StyleSheet, View } from 'react-native';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PressableButton } from './chunk-3DKJ2GIC.mjs';
|
|
2
2
|
import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
|
|
3
3
|
import { COLOR_TRANSITION, OPACITY_TRANSITION } from './chunk-DVK4G2GT.mjs';
|
|
4
|
-
import { useTheme } from './chunk-
|
|
4
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
5
5
|
import { mvs, ms, vs, s } from './chunk-2CE3TQVY.mjs';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { StyleSheet, View, Text } from 'react-native';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RADIUS } from './chunk-QY3X2UYR.mjs';
|
|
2
|
-
import { useTheme } from './chunk-
|
|
2
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
3
3
|
import { vs, s } from './chunk-2CE3TQVY.mjs';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { StyleSheet, View, Text } from 'react-native';
|
|
@@ -2,7 +2,7 @@ import { PressableButton } from './chunk-3DKJ2GIC.mjs';
|
|
|
2
2
|
import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
|
|
3
3
|
import { COLOR_TRANSITION } from './chunk-DVK4G2GT.mjs';
|
|
4
4
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
5
|
-
import { useTheme } from './chunk-
|
|
5
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
6
6
|
import { vs, s, ms } from './chunk-2CE3TQVY.mjs';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { StyleSheet, View, Text } from 'react-native';
|
|
@@ -2,7 +2,7 @@ import { PressableRow } from './chunk-3DKJ2GIC.mjs';
|
|
|
2
2
|
import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
|
|
3
3
|
import { RADIUS } from './chunk-QY3X2UYR.mjs';
|
|
4
4
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
5
|
-
import { useTheme } from './chunk-
|
|
5
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
6
6
|
import { vs, ms, s } from './chunk-2CE3TQVY.mjs';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { StyleSheet, View, Text } from 'react-native';
|
|
@@ -52,6 +52,11 @@ function darken(hex, amount) {
|
|
|
52
52
|
if (!rgb) return hex;
|
|
53
53
|
return rgbToHex(rgb.r * (1 - amount), rgb.g * (1 - amount), rgb.b * (1 - amount));
|
|
54
54
|
}
|
|
55
|
+
function withAlpha(hex, alpha) {
|
|
56
|
+
const rgb = hexToRgb(hex);
|
|
57
|
+
if (!rgb) return hex;
|
|
58
|
+
return `rgba(${rgb.r}, ${rgb.g}, ${rgb.b}, ${alpha})`;
|
|
59
|
+
}
|
|
55
60
|
|
|
56
61
|
// src/theme/colors.ts
|
|
57
62
|
var defaultLight = {
|
|
@@ -99,6 +104,7 @@ function deriveColors(t, scheme) {
|
|
|
99
104
|
const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
|
|
100
105
|
const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
|
|
101
106
|
const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
|
|
107
|
+
const skeleton = dark ? lighten(bg, -0.1) : darken(bg, 0.1);
|
|
102
108
|
const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
|
|
103
109
|
const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
|
|
104
110
|
const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
|
|
@@ -111,6 +117,7 @@ function deriveColors(t, scheme) {
|
|
|
111
117
|
foregroundMuted,
|
|
112
118
|
surface,
|
|
113
119
|
surfaceStrong,
|
|
120
|
+
skeleton,
|
|
114
121
|
destructiveTint,
|
|
115
122
|
destructiveBorder,
|
|
116
123
|
successTint,
|
|
@@ -148,4 +155,4 @@ function useTheme() {
|
|
|
148
155
|
return context;
|
|
149
156
|
}
|
|
150
157
|
|
|
151
|
-
export { ThemeProvider, defaultDark, defaultLight, deriveColors, useTheme };
|
|
158
|
+
export { ThemeProvider, defaultDark, defaultLight, deriveColors, useTheme, withAlpha };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ToastProvider } from './chunk-
|
|
2
|
-
import { ThemeProvider } from './chunk-
|
|
1
|
+
import { ToastProvider } from './chunk-YMYIEVZP.mjs';
|
|
2
|
+
import { ThemeProvider } from './chunk-YTXRIXNZ.mjs';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { StyleSheet } from 'react-native';
|
|
5
5
|
import { SafeAreaProvider, initialWindowMetrics } from 'react-native-safe-area-context';
|
|
@@ -3,7 +3,7 @@ import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
|
|
|
3
3
|
import { PRESS_SCALE } from './chunk-DVK4G2GT.mjs';
|
|
4
4
|
import { RADIUS } from './chunk-QY3X2UYR.mjs';
|
|
5
5
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
6
|
-
import { useTheme } from './chunk-
|
|
6
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
7
7
|
import { mvs, ms, vs, s } from './chunk-2CE3TQVY.mjs';
|
|
8
8
|
import React, { useState } from 'react';
|
|
9
9
|
import { StyleSheet, ScrollView, View, TouchableOpacity, Text } from 'react-native';
|
package/dist/fonts.d.mts
CHANGED
|
@@ -30,11 +30,5 @@
|
|
|
30
30
|
declare const SohneFontNames: readonly ["Sohne-ExtraLight", "Sohne-ExtraLightItalic", "Sohne-Light", "Sohne-LightItalic", "Sohne-Regular", "Sohne-Italic", "Sohne-Medium", "Sohne-MediumItalic", "Sohne-SemiBold", "Sohne-SemiBoldItalic", "Sohne-Bold", "Sohne-BoldItalic", "Sohne-ExtraBold", "Sohne-ExtraBoldItalic", "SohneMono-ExtraLight", "SohneMono-ExtraLightItalic", "SohneMono-Light", "SohneMono-LightItalic", "SohneMono-Regular", "SohneMono-Italic", "SohneMono-Medium", "SohneMono-MediumItalic", "SohneMono-SemiBold", "SohneMono-SemiBoldItalic", "SohneMono-Bold", "SohneMono-BoldItalic", "SohneMono-ExtraBold", "SohneMono-ExtraBoldItalic"];
|
|
31
31
|
/** Type for any valid Sohne font family name */
|
|
32
32
|
type SohneFontName = (typeof SohneFontNames)[number];
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated SohneFonts export removed in v10.0.0.
|
|
35
|
-
* Metro cannot resolve require() calls from node_modules reliably.
|
|
36
|
-
* Copy the static SohneFonts boilerplate from CONSUMER.md into your App.tsx instead.
|
|
37
|
-
*/
|
|
38
|
-
declare const SohneFonts: undefined;
|
|
39
33
|
|
|
40
|
-
export { type SohneFontName, SohneFontNames
|
|
34
|
+
export { type SohneFontName, SohneFontNames };
|
package/dist/fonts.d.ts
CHANGED
|
@@ -30,11 +30,5 @@
|
|
|
30
30
|
declare const SohneFontNames: readonly ["Sohne-ExtraLight", "Sohne-ExtraLightItalic", "Sohne-Light", "Sohne-LightItalic", "Sohne-Regular", "Sohne-Italic", "Sohne-Medium", "Sohne-MediumItalic", "Sohne-SemiBold", "Sohne-SemiBoldItalic", "Sohne-Bold", "Sohne-BoldItalic", "Sohne-ExtraBold", "Sohne-ExtraBoldItalic", "SohneMono-ExtraLight", "SohneMono-ExtraLightItalic", "SohneMono-Light", "SohneMono-LightItalic", "SohneMono-Regular", "SohneMono-Italic", "SohneMono-Medium", "SohneMono-MediumItalic", "SohneMono-SemiBold", "SohneMono-SemiBoldItalic", "SohneMono-Bold", "SohneMono-BoldItalic", "SohneMono-ExtraBold", "SohneMono-ExtraBoldItalic"];
|
|
31
31
|
/** Type for any valid Sohne font family name */
|
|
32
32
|
type SohneFontName = (typeof SohneFontNames)[number];
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated SohneFonts export removed in v10.0.0.
|
|
35
|
-
* Metro cannot resolve require() calls from node_modules reliably.
|
|
36
|
-
* Copy the static SohneFonts boilerplate from CONSUMER.md into your App.tsx instead.
|
|
37
|
-
*/
|
|
38
|
-
declare const SohneFonts: undefined;
|
|
39
33
|
|
|
40
|
-
export { type SohneFontName, SohneFontNames
|
|
34
|
+
export { type SohneFontName, SohneFontNames };
|
package/dist/fonts.js
CHANGED
package/dist/fonts.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { T as Theme, C as ColorScheme, a as ThemeContextValue, b as ThemeColors, R as ResolvedColors } from './index-
|
|
3
|
-
export { c as RetrayProvider, d as RetrayProviderProps } from './index-
|
|
2
|
+
import { T as Theme, C as ColorScheme, a as ThemeContextValue, b as ThemeColors, R as ResolvedColors } from './index-CY34hxPN.mjs';
|
|
3
|
+
export { c as RetrayProvider, d as RetrayProviderProps } from './index-CY34hxPN.mjs';
|
|
4
4
|
export { Button, ButtonProps, ButtonSize, ButtonVariant } from './Button.mjs';
|
|
5
5
|
export { ButtonGroup, ButtonGroupProps } from './ButtonGroup.mjs';
|
|
6
6
|
export { IconButton, IconButtonProps, IconButtonSize, IconButtonVariant } from './IconButton.mjs';
|
|
@@ -46,6 +46,7 @@ export { ErrorBoundary, ErrorBoundaryProps, ErrorFallbackProps } from './ErrorBo
|
|
|
46
46
|
export { PagerDots, PagerDotsProps } from './PagerDots.mjs';
|
|
47
47
|
export { AppHeader, AppHeaderProps } from './AppHeader.mjs';
|
|
48
48
|
export { SelectableGrid, SelectableGridItem, SelectableGridProps } from './SelectableGrid.mjs';
|
|
49
|
+
export { SelectableCard, SelectableCardGroup, SelectableCardGroupProps, SelectableCardProps } from './SelectableCard.mjs';
|
|
49
50
|
export { PricingCard, PricingCardProps, PricingFeature } from './PricingCard.mjs';
|
|
50
51
|
export { TabBar, TabBarItem, TabBarProps } from './TabBar.mjs';
|
|
51
52
|
export { ImageViewer, ImageViewerProps } from './ImageViewer.mjs';
|
|
@@ -53,6 +54,7 @@ export { SheetSelect, SheetSelectOption, SheetSelectProps } from './SheetSelect.
|
|
|
53
54
|
export { ImageUpload, ImageUploadProps } from './ImageUpload.mjs';
|
|
54
55
|
export { IconPicker, IconPickerProps } from './IconPicker.mjs';
|
|
55
56
|
export { NumberStepper, NumberStepperProps, NumberStepperSize } from './NumberStepper.mjs';
|
|
57
|
+
export { Stats, StatsGroupProps, StatsProps, StatsVariant } from './Stats.mjs';
|
|
56
58
|
export { BottomSheetModalProvider, BottomSheetTextInput as SheetTextInput } from '@gorhom/bottom-sheet';
|
|
57
59
|
export { toast } from 'sonner-native';
|
|
58
60
|
import 'react-native';
|
|
@@ -103,6 +105,8 @@ declare function getValidIconNames(families?: IconFamily[]): string[];
|
|
|
103
105
|
declare function Icon({ name, size, color, family }: IconProps): React.ReactElement | null;
|
|
104
106
|
declare function renderIcon(name: string, size: number, color: string): React.ReactElement | null;
|
|
105
107
|
|
|
108
|
+
declare function withAlpha(hex: string, alpha: number): string;
|
|
109
|
+
|
|
106
110
|
/**
|
|
107
111
|
* Returns a font size that steps down as formatted text grows longer.
|
|
108
112
|
* Designed for currency/numeric displays where long values overflow.
|
|
@@ -389,4 +393,4 @@ type RadiusKey = keyof Radius;
|
|
|
389
393
|
type Typography = typeof TYPOGRAPHY;
|
|
390
394
|
type TypographyKey = keyof Typography;
|
|
391
395
|
|
|
392
|
-
export { BREAKPOINTS, ColorScheme, ICON_SIZES, Icon, type IconFamily, type IconProps, type IconSize, type IconSizeKey, RADIUS, type Radius, type RadiusKey, ResolvedColors, SHADOWS, SPACING, type Spacing, type SpacingKey, TYPOGRAPHY, Theme, ThemeColors, ThemeProvider, type ThemeProviderProps, type Typography, type TypographyKey, type UseConfirmDialogOptions, type UseConfirmDialogResult, configureIconFamilies, defaultDark, defaultLight, deriveColors, getResponsiveFontSize, getValidIconNames, impactHeavy, impactLight, impactMedium, notificationError, notificationSuccess, notificationWarning, renderIcon, richHaptics, selectionAsync, useConfirmDialog, useTheme };
|
|
396
|
+
export { BREAKPOINTS, ColorScheme, ICON_SIZES, Icon, type IconFamily, type IconProps, type IconSize, type IconSizeKey, RADIUS, type Radius, type RadiusKey, ResolvedColors, SHADOWS, SPACING, type Spacing, type SpacingKey, TYPOGRAPHY, Theme, ThemeColors, ThemeProvider, type ThemeProviderProps, type Typography, type TypographyKey, type UseConfirmDialogOptions, type UseConfirmDialogResult, configureIconFamilies, defaultDark, defaultLight, deriveColors, getResponsiveFontSize, getValidIconNames, impactHeavy, impactLight, impactMedium, notificationError, notificationSuccess, notificationWarning, renderIcon, richHaptics, selectionAsync, useConfirmDialog, useTheme, withAlpha };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { T as Theme, C as ColorScheme, a as ThemeContextValue, b as ThemeColors, R as ResolvedColors } from './index-
|
|
3
|
-
export { c as RetrayProvider, d as RetrayProviderProps } from './index-
|
|
2
|
+
import { T as Theme, C as ColorScheme, a as ThemeContextValue, b as ThemeColors, R as ResolvedColors } from './index-CY34hxPN.js';
|
|
3
|
+
export { c as RetrayProvider, d as RetrayProviderProps } from './index-CY34hxPN.js';
|
|
4
4
|
export { Button, ButtonProps, ButtonSize, ButtonVariant } from './Button.js';
|
|
5
5
|
export { ButtonGroup, ButtonGroupProps } from './ButtonGroup.js';
|
|
6
6
|
export { IconButton, IconButtonProps, IconButtonSize, IconButtonVariant } from './IconButton.js';
|
|
@@ -46,6 +46,7 @@ export { ErrorBoundary, ErrorBoundaryProps, ErrorFallbackProps } from './ErrorBo
|
|
|
46
46
|
export { PagerDots, PagerDotsProps } from './PagerDots.js';
|
|
47
47
|
export { AppHeader, AppHeaderProps } from './AppHeader.js';
|
|
48
48
|
export { SelectableGrid, SelectableGridItem, SelectableGridProps } from './SelectableGrid.js';
|
|
49
|
+
export { SelectableCard, SelectableCardGroup, SelectableCardGroupProps, SelectableCardProps } from './SelectableCard.js';
|
|
49
50
|
export { PricingCard, PricingCardProps, PricingFeature } from './PricingCard.js';
|
|
50
51
|
export { TabBar, TabBarItem, TabBarProps } from './TabBar.js';
|
|
51
52
|
export { ImageViewer, ImageViewerProps } from './ImageViewer.js';
|
|
@@ -53,6 +54,7 @@ export { SheetSelect, SheetSelectOption, SheetSelectProps } from './SheetSelect.
|
|
|
53
54
|
export { ImageUpload, ImageUploadProps } from './ImageUpload.js';
|
|
54
55
|
export { IconPicker, IconPickerProps } from './IconPicker.js';
|
|
55
56
|
export { NumberStepper, NumberStepperProps, NumberStepperSize } from './NumberStepper.js';
|
|
57
|
+
export { Stats, StatsGroupProps, StatsProps, StatsVariant } from './Stats.js';
|
|
56
58
|
export { BottomSheetModalProvider, BottomSheetTextInput as SheetTextInput } from '@gorhom/bottom-sheet';
|
|
57
59
|
export { toast } from 'sonner-native';
|
|
58
60
|
import 'react-native';
|
|
@@ -103,6 +105,8 @@ declare function getValidIconNames(families?: IconFamily[]): string[];
|
|
|
103
105
|
declare function Icon({ name, size, color, family }: IconProps): React.ReactElement | null;
|
|
104
106
|
declare function renderIcon(name: string, size: number, color: string): React.ReactElement | null;
|
|
105
107
|
|
|
108
|
+
declare function withAlpha(hex: string, alpha: number): string;
|
|
109
|
+
|
|
106
110
|
/**
|
|
107
111
|
* Returns a font size that steps down as formatted text grows longer.
|
|
108
112
|
* Designed for currency/numeric displays where long values overflow.
|
|
@@ -389,4 +393,4 @@ type RadiusKey = keyof Radius;
|
|
|
389
393
|
type Typography = typeof TYPOGRAPHY;
|
|
390
394
|
type TypographyKey = keyof Typography;
|
|
391
395
|
|
|
392
|
-
export { BREAKPOINTS, ColorScheme, ICON_SIZES, Icon, type IconFamily, type IconProps, type IconSize, type IconSizeKey, RADIUS, type Radius, type RadiusKey, ResolvedColors, SHADOWS, SPACING, type Spacing, type SpacingKey, TYPOGRAPHY, Theme, ThemeColors, ThemeProvider, type ThemeProviderProps, type Typography, type TypographyKey, type UseConfirmDialogOptions, type UseConfirmDialogResult, configureIconFamilies, defaultDark, defaultLight, deriveColors, getResponsiveFontSize, getValidIconNames, impactHeavy, impactLight, impactMedium, notificationError, notificationSuccess, notificationWarning, renderIcon, richHaptics, selectionAsync, useConfirmDialog, useTheme };
|
|
396
|
+
export { BREAKPOINTS, ColorScheme, ICON_SIZES, Icon, type IconFamily, type IconProps, type IconSize, type IconSizeKey, RADIUS, type Radius, type RadiusKey, ResolvedColors, SHADOWS, SPACING, type Spacing, type SpacingKey, TYPOGRAPHY, Theme, ThemeColors, ThemeProvider, type ThemeProviderProps, type Typography, type TypographyKey, type UseConfirmDialogOptions, type UseConfirmDialogResult, configureIconFamilies, defaultDark, defaultLight, deriveColors, getResponsiveFontSize, getValidIconNames, impactHeavy, impactLight, impactMedium, notificationError, notificationSuccess, notificationWarning, renderIcon, richHaptics, selectionAsync, useConfirmDialog, useTheme, withAlpha };
|