react-native-ui-lib 8.4.2-snapshot.7918 → 8.4.3

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/lib/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "lodash": "4.18.1",
13
+ "lodash": "^4.17.21",
14
14
  "prop-types": "^15.5.10"
15
15
  },
16
16
  "devDependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ui-lib",
3
- "version": "8.4.2-snapshot.7918",
3
+ "version": "8.4.3",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -34,7 +34,7 @@
34
34
  "date-fns": "^2.29.3",
35
35
  "deprecated-react-native-prop-types": "^2.3.0",
36
36
  "hoist-non-react-statics": "^3.0.0",
37
- "lodash": "4.18.1",
37
+ "lodash": "^4.17.21",
38
38
  "memoize-one": "^5.0.5",
39
39
  "prop-types": "^15.5.10",
40
40
  "react-freeze": "^1.0.0",
@@ -66,7 +66,7 @@
66
66
  "@react-native/metro-config": "0.77.3",
67
67
  "@react-native/typescript-config": "0.77.3",
68
68
  "@shopify/flash-list": "1.7.6",
69
- "@testing-library/react-native": "12.9.0",
69
+ "@testing-library/react-native": "^11.5.1",
70
70
  "@types/hoist-non-react-statics": "^3.3.1",
71
71
  "@types/jest": "^29.5.13",
72
72
  "@types/lodash": "^4.0.0",
@@ -82,7 +82,7 @@
82
82
  "light-date": "^1.2.0",
83
83
  "moment": "^2.24.0",
84
84
  "object-hash": "^3.0.0",
85
- "postcss": "^8.5.8",
85
+ "postcss": "^8.4.21",
86
86
  "postcss-js": "^4.0.0",
87
87
  "prettier": "^3.2.5",
88
88
  "react": "18.3.1",
@@ -112,6 +112,7 @@
112
112
  "react-native": ">=0.77.3",
113
113
  "react-native-gesture-handler": ">=2.24.0",
114
114
  "react-native-reanimated": ">=3.17.5",
115
+ "react-native-safe-area-context": ">=5.6.2",
115
116
  "uilib-native": "^5.0.1"
116
117
  },
117
118
  "jest": {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WheelPickerItemValue } from './types';
2
3
  import { WheelPickerItemProps } from './Item';
3
4
  type PropTypes<T> = {
@@ -5,8 +5,6 @@ export declare enum ChipsInputChangeReason {
5
5
  Added = "added",
6
6
  Removed = "removed"
7
7
  }
8
- type ChipsInputChangeReasonUnion = `${ChipsInputChangeReason}`;
9
- export type ChipsInputChangeReasonProps = ChipsInputChangeReasonUnion | ChipsInputChangeReason;
10
8
  export type ChipsInputChipProps = ChipProps & {
11
9
  invalid?: boolean;
12
10
  };
@@ -12,5 +12,5 @@ export declare function getValidColorString(text?: string): {
12
12
  valid: boolean;
13
13
  hex?: undefined;
14
14
  };
15
- export declare function getHexString(color: HSLColor): Uppercase<string>;
15
+ export declare function getHexString(color: HSLColor): string;
16
16
  export declare function getTextColor(color: string): string;
@@ -2,7 +2,7 @@ import React, { useEffect, useMemo } from 'react';
2
2
  import { StyleSheet } from 'react-native';
3
3
  import { asBaseComponent, Constants } from "../../commons/new";
4
4
  import { LogService } from "../../services";
5
- import { Colors, Shadows, Spacings } from "../../style";
5
+ import { Colors, Shadows } from "../../style";
6
6
  import Button from "../button";
7
7
  import ScreenFooter, { ScreenFooterLayouts, ScreenFooterBackgrounds, KeyboardBehavior, ItemsFit } from "../screenFooter";
8
8
  export let FloatingButtonLayouts = /*#__PURE__*/function (FloatingButtonLayouts) {
@@ -35,19 +35,16 @@ const FloatingButton = props => {
35
35
  // eslint-disable-next-line max-len
36
36
  LogService.warn('RNUILib FloatingButton now uses ScreenFooter internally, which requires a SafeAreaProvider. If you experience safe area issues, please wrap your app (or the relevant screen) with <SafeAreaProvider>.');
37
37
  }, []);
38
- const isSecondaryOnly = !!secondaryButton && !button;
39
- const isHorizontal = buttonLayout === FloatingButtonLayouts.HORIZONTAL || isSecondaryOnly;
40
38
  const footerContentContainerStyle = useMemo(() => {
41
39
  if (bottomMargin !== undefined) {
42
40
  return {
43
41
  paddingBottom: bottomMargin
44
42
  };
45
43
  }
46
- const isSecondaryAtBottom = !!secondaryButton && (isSecondaryOnly || !isHorizontal);
47
- return {
48
- paddingBottom: isSecondaryAtBottom ? Spacings.s7 : Spacings.s8
49
- };
50
- }, [bottomMargin, secondaryButton, isSecondaryOnly, isHorizontal]);
44
+ return undefined;
45
+ }, [bottomMargin]);
46
+ const isSecondaryOnly = !!secondaryButton && !button;
47
+ const isHorizontal = buttonLayout === FloatingButtonLayouts.HORIZONTAL || isSecondaryOnly;
51
48
  if (!button && !secondaryButton) {
52
49
  return null;
53
50
  }
@@ -2,7 +2,7 @@ export declare function getInitialsTypography(size: number): import("react-nativ
2
2
  export declare function hashStringToNumber(str?: string): number;
3
3
  export declare function getAvatarColors(): string[];
4
4
  export declare function getColorById(id: string, avatarColors?: string[]): string;
5
- export declare function getInitials(name?: string, limit?: number): Uppercase<string>;
5
+ export declare function getInitials(name?: string, limit?: number): string;
6
6
  export declare function getBackgroundColor(name?: string, avatarColors?: string[], hashFunction?: (name?: string) => number, defaultColor?: string): string | undefined;
7
7
  export declare function isGravatarUrl(url: string): boolean;
8
8
  export declare function isBlankGravatarUrl(url: string): boolean;
@@ -40,7 +40,7 @@ const Thumb = props => {
40
40
  height: THUMB_SIZE
41
41
  });
42
42
  const lastOffset = useSharedValue(0);
43
- const gesture = Gesture.Pan().hitSlop(hitSlop).onBegin(() => {
43
+ const gesture = Gesture.Pan().onBegin(() => {
44
44
  onSeekStart?.();
45
45
  isPressed.value = true;
46
46
  lastOffset.value = offset.value;
package/src/index.d.ts CHANGED
@@ -23,7 +23,7 @@ export { default as Button, ButtonProps, ButtonSize, ButtonAnimationDirection }
23
23
  export { default as Card, CardProps, CardSectionProps, CardSelectionOptions } from './components/card';
24
24
  export { default as Carousel, CarouselProps, PageControlPosition } from './components/carousel';
25
25
  export { default as Checkbox, CheckboxProps, CheckboxRef } from './components/checkbox';
26
- export { default as ChipsInput, ChipsInputProps, ChipsInputChipProps, ChipsInputChangeReason, ChipsInputChangeReasonProps } from './components/chipsInput';
26
+ export { default as ChipsInput, ChipsInputProps, ChipsInputChipProps } from './components/chipsInput';
27
27
  export { default as Chip, ChipProps } from './components/chip';
28
28
  export { default as ColorPicker, ColorPickerProps } from './components/colorPicker';
29
29
  export { default as ColorPalette, ColorPaletteProps } from './components/colorPalette';
package/src/index.js CHANGED
@@ -61,8 +61,6 @@ var _exportNames = {
61
61
  ChipsInput: true,
62
62
  ChipsInputProps: true,
63
63
  ChipsInputChipProps: true,
64
- ChipsInputChangeReason: true,
65
- ChipsInputChangeReasonProps: true,
66
64
  Chip: true,
67
65
  ChipProps: true,
68
66
  ColorPicker: true,
@@ -434,18 +432,6 @@ Object.defineProperty(exports, "ChipsInput", {
434
432
  return _chipsInput().default;
435
433
  }
436
434
  });
437
- Object.defineProperty(exports, "ChipsInputChangeReason", {
438
- enumerable: true,
439
- get: function () {
440
- return _chipsInput().ChipsInputChangeReason;
441
- }
442
- });
443
- Object.defineProperty(exports, "ChipsInputChangeReasonProps", {
444
- enumerable: true,
445
- get: function () {
446
- return _chipsInput().ChipsInputChangeReasonProps;
447
- }
448
- });
449
435
  Object.defineProperty(exports, "ChipsInputChipProps", {
450
436
  enumerable: true,
451
437
  get: function () {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DragData, UniDriver, UniDriverClass } from './UniDriver';
2
3
  export type ComponentDriverArgs = {
3
4
  testID: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DragData, UniDriver } from '../UniDriver';
2
3
  import { ReactTestInstance } from 'react-test-renderer';
3
4
  export declare class TestingLibraryDriver<Props> implements UniDriver<Props> {