sapo-components-ui-rn 1.1.86 → 1.1.87
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/README.md +5 -3
- package/dist/components/Toast/ToastProvider.d.ts +1 -1
- package/dist/core/theming.d.ts +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +54 -113
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +52 -115
- package/dist/index.js.map +1 -1
- package/dist/styles/themes/tokens.d.ts +2 -4
- package/dist/theme/dimensions.d.ts +0 -2
- package/package.json +11 -3
- package/src/.DS_Store +0 -0
- package/src/assets/images/avatar.png +0 -0
- package/src/assets/images/badge.png +0 -0
- package/src/assets/images/button-icon.png +0 -0
- package/src/assets/images/button.png +0 -0
- package/src/assets/images/checkbox.png +0 -0
- package/src/assets/images/chipbar.png +0 -0
- package/src/assets/images/counting-dot.png +0 -0
- package/src/assets/images/error.png +0 -0
- package/src/assets/images/floating-button.png +0 -0
- package/src/assets/images/image.png +0 -0
- package/src/assets/images/image_default.png +0 -0
- package/src/assets/images/index.ts +0 -1
- package/src/assets/images/info.png +0 -0
- package/src/assets/images/radio-button.png +0 -0
- package/src/assets/images/search-input.png +0 -0
- package/src/assets/images/selection-field.png +0 -0
- package/src/assets/images/success.png +0 -0
- package/src/assets/images/switch.png +0 -0
- package/src/assets/images/text-area.png +0 -0
- package/src/assets/images/text-input.png +0 -0
- package/src/assets/images/toast.png +0 -0
- package/src/assets/images/warning.png +0 -0
- package/src/assets/svg/icon-arrow-down.svg +0 -3
- package/src/assets/svg/icon-checkbox-active.svg +0 -4
- package/src/assets/svg/icon-checkbox.svg +0 -3
- package/src/assets/svg/icon-clear-text.svg +0 -4
- package/src/assets/svg/icon-close.svg +0 -3
- package/src/assets/svg/icon-del-number.svg +0 -4
- package/src/assets/svg/icon-error.svg +0 -3
- package/src/assets/svg/icon-info.svg +0 -3
- package/src/assets/svg/icon-radio-active.svg +0 -5
- package/src/assets/svg/icon-radio.svg +0 -4
- package/src/assets/svg/icon-search.svg +0 -10
- package/src/assets/svg/icon-success.svg +0 -3
- package/src/assets/svg/icon-warning.svg +0 -3
- package/src/assets/svg/index.ts +0 -29
- package/src/babel/.eslintrc +0 -7
- package/src/babel/index.js +0 -63
- package/src/components/ActivityIndicator.tsx +0 -238
- package/src/components/Avatar/index.tsx +0 -115
- package/src/components/Badge/index.tsx +0 -301
- package/src/components/Button/index.tsx +0 -312
- package/src/components/ButtonIcon/index.tsx +0 -103
- package/src/components/Checkbox/index.tsx +0 -105
- package/src/components/ChipBar/index.tsx +0 -114
- package/src/components/CountingDot/index.tsx +0 -63
- package/src/components/FloatingButton/index.tsx +0 -98
- package/src/components/Icon/index.tsx +0 -121
- package/src/components/IconSvg/index.tsx +0 -41
- package/src/components/Image/index.tsx +0 -128
- package/src/components/NumberKeyboard/index.tsx +0 -586
- package/src/components/ProgressBar.tsx +0 -272
- package/src/components/RadioButton/index.tsx +0 -93
- package/src/components/ScaleButton/index.tsx +0 -17
- package/src/components/SearchInput/index.tsx +0 -98
- package/src/components/SelectionField/index.tsx +0 -193
- package/src/components/Spacer/index.tsx +0 -28
- package/src/components/Switch/Switch.tsx +0 -151
- package/src/components/Switch/utils.ts +0 -96
- package/src/components/Tag/index.tsx +0 -113
- package/src/components/Text/index.tsx +0 -90
- package/src/components/TextInput/Addons/Outline.tsx +0 -62
- package/src/components/TextInput/Addons/Underline.tsx +0 -71
- package/src/components/TextInput/Adornment/TextInputAdornment.tsx +0 -191
- package/src/components/TextInput/Adornment/TextInputAffix.tsx +0 -212
- package/src/components/TextInput/Adornment/enums.tsx +0 -12
- package/src/components/TextInput/Adornment/types.tsx +0 -11
- package/src/components/TextInput/Adornment/utils.ts +0 -39
- package/src/components/TextInput/Label/InputLabel.tsx +0 -224
- package/src/components/TextInput/Label/LabelBackground.tsx +0 -100
- package/src/components/TextInput/TextInput.tsx +0 -617
- package/src/components/TextInput/TextInputDefault.tsx +0 -481
- package/src/components/TextInput/TextInputFlat.tsx +0 -600
- package/src/components/TextInput/TextInputNumber.tsx +0 -875
- package/src/components/TextInput/constants.tsx +0 -48
- package/src/components/TextInput/helpers.tsx +0 -537
- package/src/components/TextInput/types.tsx +0 -167
- package/src/components/Toast/ToastProvider.tsx +0 -70
- package/src/components/Toast/index.tsx +0 -283
- package/src/components/Typography/AnimatedText.tsx +0 -84
- package/src/components/Typography/StyledText.tsx +0 -53
- package/src/components/Typography/Text.tsx +0 -189
- package/src/components/Typography/types.tsx +0 -5
- package/src/components/View/index.tsx +0 -452
- package/src/components/ViewVisibleAnimated/index.tsx +0 -199
- package/src/constants.tsx +0 -16
- package/src/core/theming.tsx +0 -144
- package/src/icons/IconArrowDown.tsx +0 -14
- package/src/icons/IconCheckbox.tsx +0 -20
- package/src/icons/IconCheckboxActive.tsx +0 -18
- package/src/icons/IconClearText.tsx +0 -14
- package/src/icons/IconClose.tsx +0 -14
- package/src/icons/IconDelNumber.tsx +0 -20
- package/src/icons/IconError.tsx +0 -22
- package/src/icons/IconInfo.tsx +0 -27
- package/src/icons/IconRadio.tsx +0 -11
- package/src/icons/IconRadioActive.tsx +0 -12
- package/src/icons/IconRadioDisable.tsx +0 -12
- package/src/icons/IconSearch.tsx +0 -14
- package/src/icons/IconSuccess.tsx +0 -21
- package/src/icons/IconWarning.tsx +0 -27
- package/src/index.ts +0 -48
- package/src/index.tsx +0 -48
- package/src/styles/fonts.tsx +0 -89
- package/src/styles/overlay.tsx +0 -69
- package/src/styles/shadow.tsx +0 -47
- package/src/styles/themes/DarkTheme.tsx +0 -11
- package/src/styles/themes/LightTheme.tsx +0 -14
- package/src/styles/themes/index.ts +0 -3
- package/src/styles/themes/tokens.tsx +0 -539
- package/src/theme/blue.ts +0 -25
- package/src/theme/colors.ts +0 -21
- package/src/theme/container-styles.tsx +0 -71
- package/src/theme/dimensions.ts +0 -45
- package/src/theme/green.ts +0 -27
- package/src/theme/icon.ts +0 -7
- package/src/theme/ink.ts +0 -18
- package/src/theme/orange.ts +0 -24
- package/src/theme/purple.ts +0 -8
- package/src/theme/red.ts +0 -26
- package/src/theme/themes.tsx +0 -17
- package/src/theme/white.ts +0 -16
- package/src/theme/yellow.ts +0 -26
- package/src/types/index.ts +0 -71
- package/src/types/svg.d.ts +0 -5
- package/src/types.ts +0 -297
- package/src/types.tsx +0 -296
- package/src/utils/BackHandler/BackHandler.native.tsx +0 -3
- package/src/utils/BackHandler/BackHandler.tsx +0 -11
- package/src/utils/addEventListener.tsx +0 -56
- package/src/utils/forwardRef.tsx +0 -23
- package/src/utils/function-utils.tsx +0 -108
- package/src/utils/getContrastingColor.tsx +0 -15
- package/src/utils/hasTouchHandler.tsx +0 -23
- package/src/utils/roundLayoutSize.ts +0 -2
- package/src/utils/splitStyles.ts +0 -60
- package/src/utils/toast-manager.tsx +0 -52
- package/src/utils/useAnimatedValue.tsx +0 -9
- package/src/utils/useAnimatedValueArray.tsx +0 -13
- package/src/utils/useIsKeyboardShown.tsx +0 -55
- package/src/utils/useLayout.tsx +0 -29
- package/src/utils/useLazyRef.tsx +0 -11
package/README.md
CHANGED
|
@@ -28,11 +28,13 @@ Thư viện này yêu cầu các peer dependencies sau:
|
|
|
28
28
|
## Sử dụng
|
|
29
29
|
|
|
30
30
|
```tsx
|
|
31
|
-
import { Button } from '
|
|
31
|
+
import { Button, ToastProvider } from 'sapo-components-ui-rn';
|
|
32
32
|
|
|
33
|
-
function
|
|
33
|
+
function App() {
|
|
34
34
|
return (
|
|
35
|
-
<
|
|
35
|
+
<ToastProvider>
|
|
36
|
+
<Button title="My Button" onPress={() => {}} />
|
|
37
|
+
</ToastProvider>
|
|
36
38
|
);
|
|
37
39
|
}
|
|
38
40
|
```
|
package/dist/core/theming.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const ThemeProvider: ({ children }: {
|
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
}) => React.JSX.Element;
|
|
9
9
|
export declare function useTheme<T = AppTheme>(overrides?: $DeepPartial<T>): T;
|
|
10
|
-
export declare const useInternalTheme: () =>
|
|
10
|
+
export declare const useInternalTheme: () => InternalTheme;
|
|
11
11
|
export declare const withInternalTheme: <Props extends {
|
|
12
12
|
theme: InternalTheme;
|
|
13
13
|
}, C>(WrappedComponent: ComponentType<Props & {
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export { ThemeColors } from "./styles/themes/tokens";
|
|
|
2
2
|
export { CONSTANTS } from "./styles/themes/tokens";
|
|
3
3
|
export { ThemeColors as ThemeColorsProps } from "./types";
|
|
4
4
|
export { default as containerStyles } from "./theme/container-styles";
|
|
5
|
-
export { useTheme, ThemeProvider, DefaultTheme, adaptNavigationTheme, } from "./core/theming";
|
|
6
5
|
export * from "./styles/themes";
|
|
7
6
|
export { default as Switch } from "./components/Switch/Switch";
|
|
8
7
|
export { default as TextInput } from "./components/TextInput/TextInput";
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Platform, StyleSheet, Dimensions, TouchableOpacity, View as View$1, Animated, Text as Text$2, Pressable, I18nManager, useWindowDimensions, TextInput as TextInput$1, Modal, Keyboard, ActivityIndicator, ImageBackground, Image as Image$2 } from 'react-native';
|
|
2
2
|
import * as React$3 from 'react';
|
|
3
3
|
import React__default, { forwardRef as forwardRef$1, memo, useRef, useEffect, useCallback, useState, useMemo, useImperativeHandle } from 'react';
|
|
4
4
|
import require$$1 from 'deepmerge';
|
|
@@ -223,8 +223,7 @@ var yellow = {
|
|
|
223
223
|
YELLOW_STATUS: YELLOW_STATUS,
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
-
var
|
|
227
|
-
var DEVICE_WIDTH = Dimensions.get("window").width;
|
|
226
|
+
var getWindowDimensions = function () { return Dimensions.get("window"); };
|
|
228
227
|
var ref = {
|
|
229
228
|
palette: {
|
|
230
229
|
dark: {
|
|
@@ -603,8 +602,12 @@ var typescale = {
|
|
|
603
602
|
};
|
|
604
603
|
var ThemeColors = ref.palette;
|
|
605
604
|
var CONSTANTS = {
|
|
606
|
-
DEVICE_HEIGHT
|
|
607
|
-
|
|
605
|
+
get DEVICE_HEIGHT() {
|
|
606
|
+
return getWindowDimensions().height;
|
|
607
|
+
},
|
|
608
|
+
get DEVICE_WIDTH() {
|
|
609
|
+
return getWindowDimensions().width;
|
|
610
|
+
},
|
|
608
611
|
HEADER_HEIGHT: 50,
|
|
609
612
|
BUTTON_HEIGHT: 48,
|
|
610
613
|
BUTTON_HEIGHT_SMALL: 36,
|
|
@@ -722,6 +725,48 @@ var containerStyles = StyleSheet.create({
|
|
|
722
725
|
},
|
|
723
726
|
});
|
|
724
727
|
|
|
728
|
+
function configureV3Fonts(config) {
|
|
729
|
+
if (!config) {
|
|
730
|
+
return typescale;
|
|
731
|
+
}
|
|
732
|
+
var isFlatConfig = Object.keys(config).every(function (key) { return typeof config[key] !== "object"; });
|
|
733
|
+
if (isFlatConfig) {
|
|
734
|
+
return Object.fromEntries(Object.entries(typescale).map(function (_a) {
|
|
735
|
+
var variantName = _a[0], variantProperties = _a[1];
|
|
736
|
+
return [
|
|
737
|
+
variantName,
|
|
738
|
+
__assign(__assign({}, variantProperties), config),
|
|
739
|
+
];
|
|
740
|
+
}));
|
|
741
|
+
}
|
|
742
|
+
return Object.assign.apply(Object, __spreadArray([{},
|
|
743
|
+
typescale], Object.entries(config).map(function (_a) {
|
|
744
|
+
var _b;
|
|
745
|
+
var variantName = _a[0], variantProperties = _a[1];
|
|
746
|
+
return (_b = {},
|
|
747
|
+
_b[variantName] = __assign(__assign({}, typescale[variantName]), variantProperties),
|
|
748
|
+
_b);
|
|
749
|
+
}), false));
|
|
750
|
+
}
|
|
751
|
+
// eslint-disable-next-line no-redeclare
|
|
752
|
+
function configureFonts(params) {
|
|
753
|
+
var config = (params || {}).config;
|
|
754
|
+
return configureV3Fonts(config);
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
var LightTheme = {
|
|
758
|
+
dark: false,
|
|
759
|
+
roundness: 8,
|
|
760
|
+
version: 3,
|
|
761
|
+
colors: ThemeColors.light.colors,
|
|
762
|
+
fonts: configureFonts(),
|
|
763
|
+
animation: {
|
|
764
|
+
scale: 1.0,
|
|
765
|
+
},
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
var DarkTheme = __assign(__assign({}, LightTheme), { dark: true, mode: "adaptive", version: 3, colors: ThemeColors.light.colors });
|
|
769
|
+
|
|
725
770
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
726
771
|
|
|
727
772
|
var createTheming$2 = {};
|
|
@@ -1214,112 +1259,10 @@ var createTheming = _createTheming.default;
|
|
|
1214
1259
|
|
|
1215
1260
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1216
1261
|
|
|
1217
|
-
|
|
1218
|
-
if (!config) {
|
|
1219
|
-
return typescale;
|
|
1220
|
-
}
|
|
1221
|
-
var isFlatConfig = Object.keys(config).every(function (key) { return typeof config[key] !== "object"; });
|
|
1222
|
-
if (isFlatConfig) {
|
|
1223
|
-
return Object.fromEntries(Object.entries(typescale).map(function (_a) {
|
|
1224
|
-
var variantName = _a[0], variantProperties = _a[1];
|
|
1225
|
-
return [
|
|
1226
|
-
variantName,
|
|
1227
|
-
__assign(__assign({}, variantProperties), config),
|
|
1228
|
-
];
|
|
1229
|
-
}));
|
|
1230
|
-
}
|
|
1231
|
-
return Object.assign.apply(Object, __spreadArray([{},
|
|
1232
|
-
typescale], Object.entries(config).map(function (_a) {
|
|
1233
|
-
var _b;
|
|
1234
|
-
var variantName = _a[0], variantProperties = _a[1];
|
|
1235
|
-
return (_b = {},
|
|
1236
|
-
_b[variantName] = __assign(__assign({}, typescale[variantName]), variantProperties),
|
|
1237
|
-
_b);
|
|
1238
|
-
}), false));
|
|
1239
|
-
}
|
|
1240
|
-
// eslint-disable-next-line no-redeclare
|
|
1241
|
-
function configureFonts(params) {
|
|
1242
|
-
var config = (params || {}).config;
|
|
1243
|
-
return configureV3Fonts(config);
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
var LightTheme = {
|
|
1247
|
-
dark: false,
|
|
1248
|
-
roundness: 8,
|
|
1249
|
-
version: 3,
|
|
1250
|
-
colors: ThemeColors.light.colors,
|
|
1251
|
-
fonts: configureFonts(),
|
|
1252
|
-
animation: {
|
|
1253
|
-
scale: 1.0,
|
|
1254
|
-
},
|
|
1255
|
-
};
|
|
1256
|
-
|
|
1257
|
-
var DarkTheme = __assign(__assign({}, LightTheme), { dark: true, mode: "adaptive", version: 3, colors: ThemeColors.light.colors });
|
|
1258
|
-
|
|
1259
|
-
var DefaultTheme = LightTheme;
|
|
1260
|
-
var _a = createTheming(LightTheme), BaseThemeProvider = _a.ThemeProvider; _a.withTheme; var useAppTheme = _a.useTheme;
|
|
1261
|
-
var ThemeProvider = function (_a) {
|
|
1262
|
-
var children = _a.children;
|
|
1263
|
-
var colorScheme = useColorScheme();
|
|
1264
|
-
var isDark = colorScheme === "dark";
|
|
1265
|
-
var theme = isDark ? DarkTheme : LightTheme;
|
|
1266
|
-
return React__default.createElement(BaseThemeProvider, { theme: theme }, children);
|
|
1267
|
-
};
|
|
1268
|
-
function useTheme(overrides) {
|
|
1269
|
-
return useAppTheme(overrides);
|
|
1270
|
-
}
|
|
1262
|
+
var _a = createTheming(LightTheme); _a.ThemeProvider; _a.withTheme; var useAppTheme = _a.useTheme;
|
|
1271
1263
|
var useInternalTheme = function () {
|
|
1272
|
-
|
|
1273
|
-
var isDark = colorScheme === "dark";
|
|
1274
|
-
var theme = getTheme(isDark);
|
|
1275
|
-
return theme;
|
|
1276
|
-
};
|
|
1277
|
-
var defaultThemesByVersion = {
|
|
1278
|
-
light: LightTheme,
|
|
1279
|
-
dark: DarkTheme,
|
|
1264
|
+
return useAppTheme();
|
|
1280
1265
|
};
|
|
1281
|
-
var getTheme = function (isDark) {
|
|
1282
|
-
if (isDark === void 0) { isDark = false; }
|
|
1283
|
-
var scheme = isDark ? "dark" : "light";
|
|
1284
|
-
return defaultThemesByVersion[scheme];
|
|
1285
|
-
};
|
|
1286
|
-
// eslint-disable-next-line no-redeclare
|
|
1287
|
-
function adaptNavigationTheme(themes) {
|
|
1288
|
-
var reactNavigationLight = themes.reactNavigationLight, reactNavigationDark = themes.reactNavigationDark, materialLight = themes.materialLight, materialDark = themes.materialDark;
|
|
1289
|
-
var getAdaptedTheme = function (navigationTheme, AppTheme) {
|
|
1290
|
-
return __assign(__assign({}, navigationTheme), { colors: __assign(__assign({}, navigationTheme.colors), { primary: AppTheme.colors.surfaceBrandDefault, background: AppTheme.colors.backgroundPrimary, card: AppTheme.colors.card, text: AppTheme.colors.backgroundPrimary, border: AppTheme.colors.borderPrimaryDefault, notification: AppTheme.colors.surfaceErrorDefault }) });
|
|
1291
|
-
};
|
|
1292
|
-
var AppThemes = {
|
|
1293
|
-
light: materialLight || LightTheme,
|
|
1294
|
-
dark: materialDark || DarkTheme,
|
|
1295
|
-
};
|
|
1296
|
-
if (reactNavigationLight && reactNavigationDark) {
|
|
1297
|
-
var modes = ["light", "dark"];
|
|
1298
|
-
var NavigationThemes_1 = {
|
|
1299
|
-
light: reactNavigationLight,
|
|
1300
|
-
dark: reactNavigationDark,
|
|
1301
|
-
};
|
|
1302
|
-
var _a = modes.reduce(function (prev, curr) {
|
|
1303
|
-
var _a;
|
|
1304
|
-
return __assign(__assign({}, prev), (_a = {}, _a[curr] = getAdaptedTheme(NavigationThemes_1[curr], AppThemes[curr]), _a));
|
|
1305
|
-
}, {
|
|
1306
|
-
light: reactNavigationLight,
|
|
1307
|
-
dark: reactNavigationDark,
|
|
1308
|
-
}), adaptedLight = _a.light, adaptedDark = _a.dark;
|
|
1309
|
-
return {
|
|
1310
|
-
LightTheme: adaptedLight,
|
|
1311
|
-
DarkTheme: adaptedDark,
|
|
1312
|
-
};
|
|
1313
|
-
}
|
|
1314
|
-
if (reactNavigationDark) {
|
|
1315
|
-
return {
|
|
1316
|
-
DarkTheme: getAdaptedTheme(reactNavigationDark, AppThemes.dark),
|
|
1317
|
-
};
|
|
1318
|
-
}
|
|
1319
|
-
return {
|
|
1320
|
-
LightTheme: getAdaptedTheme(reactNavigationLight, AppThemes.light),
|
|
1321
|
-
};
|
|
1322
|
-
}
|
|
1323
1266
|
|
|
1324
1267
|
var ViewCustom = forwardRef$1(function (_a, ref) {
|
|
1325
1268
|
var row = _a.row, full = _a.full, justifyCenter = _a.justifyCenter, justifyBetween = _a.justifyBetween, alignCenter = _a.alignCenter, center = _a.center, color = _a.color, backgroundColor = _a.backgroundColor, width = _a.width, height = _a.height, padding = _a.padding, paddingHorizontal = _a.paddingHorizontal, paddingVertical = _a.paddingVertical, marginHorizontal = _a.marginHorizontal, marginVertical = _a.marginVertical, paddingLeft = _a.paddingLeft, paddingRight = _a.paddingRight, paddingTop = _a.paddingTop, alignEnd = _a.alignEnd, wrap = _a.wrap, borderBottomWidth = _a.borderBottomWidth, borderBottomColor = _a.borderBottomColor, borderRadius = _a.borderRadius, borderWidth = _a.borderWidth, borderColor = _a.borderColor, style = _a.style, onPress = _a.onPress, _b = _a.activeOpacity, activeOpacity = _b === void 0 ? 0.8 : _b, children = _a.children, disabled = _a.disabled, paddingBottom = _a.paddingBottom, marginTop = _a.marginTop, marginBottom = _a.marginBottom, marginLeft = _a.marginLeft, marginRight = _a.marginRight, margin = _a.margin, borderTopWidth = _a.borderTopWidth, borderTopColor = _a.borderTopColor, borderLeftWidth = _a.borderLeftWidth, borderLeftColor = _a.borderLeftColor, borderRightWidth = _a.borderRightWidth, borderRightColor = _a.borderRightColor, pointerEvents = _a.pointerEvents, gap = _a.gap,
|
|
@@ -4734,8 +4677,6 @@ var Spacer = function (_a) {
|
|
|
4734
4677
|
return (React__default.createElement(View, { backgroundColor: backgroundColor || "transparent", width: width, height: height, style: [style] }));
|
|
4735
4678
|
};
|
|
4736
4679
|
|
|
4737
|
-
Dimensions.get("window").height;
|
|
4738
|
-
Dimensions.get("window").width;
|
|
4739
4680
|
var BUTTON_HEIGHT = 48;
|
|
4740
4681
|
var BUTTON_HEIGHT_SMALL = 40;
|
|
4741
4682
|
var SPACE_4 = 4;
|
|
@@ -7707,7 +7648,7 @@ var showToast = function (_a) {
|
|
|
7707
7648
|
};
|
|
7708
7649
|
|
|
7709
7650
|
var ToastProvider = forwardRef$1(function (_a, ref) {
|
|
7710
|
-
var children = _a.children, _b = _a.wrapSafeArea, wrapSafeArea = _b === void 0 ?
|
|
7651
|
+
var children = _a.children, _b = _a.wrapSafeArea, wrapSafeArea = _b === void 0 ? false : _b;
|
|
7711
7652
|
var toastComponentRef = React__default.useRef(null);
|
|
7712
7653
|
// Expose the show method through the ref
|
|
7713
7654
|
useImperativeHandle(ref, function () { return ({
|
|
@@ -7738,5 +7679,5 @@ var ToastProvider = forwardRef$1(function (_a, ref) {
|
|
|
7738
7679
|
renderToast()));
|
|
7739
7680
|
});
|
|
7740
7681
|
|
|
7741
|
-
export { Avatar, Badge, index$3 as Button, CONSTANTS, Checkbox, ChipBar, CountingDot, DarkTheme,
|
|
7682
|
+
export { Avatar, Badge, index$3 as Button, CONSTANTS, Checkbox, ChipBar, CountingDot, DarkTheme, index$2 as FloatingButton, Image$1 as Image, LightTheme, index as NumberKeyboard, RadioButton, SearchInput, index$1 as SelectionField, Spacer, Switch, Tag, Text$1 as Text, TextInput, ThemeColors, Toast, ToastProvider, View, containerStyles, showToast, toastRef };
|
|
7742
7683
|
//# sourceMappingURL=index.esm.js.map
|