react-native-ui-lib 8.4.0-snapshot.7859 → 8.4.0-snapshot.7870

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ui-lib",
3
- "version": "8.4.0-snapshot.7859",
3
+ "version": "8.4.0-snapshot.7870",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -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.4.21",
85
+ "postcss": "^8.5.8",
86
86
  "postcss-js": "^4.0.0",
87
87
  "prettier": "^3.2.5",
88
88
  "react": "18.3.1",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WheelPickerItemValue } from './types';
3
2
  import { WheelPickerItemProps } from './Item';
4
3
  type PropTypes<T> = {
@@ -5,6 +5,8 @@ export declare enum ChipsInputChangeReason {
5
5
  Added = "added",
6
6
  Removed = "removed"
7
7
  }
8
+ type ChipsInputChangeReasonUnion = `${ChipsInputChangeReason}`;
9
+ export type ChipsInputChangeReasonProps = ChipsInputChangeReasonUnion | ChipsInputChangeReason;
8
10
  export type ChipsInputChipProps = ChipProps & {
9
11
  invalid?: boolean;
10
12
  };
@@ -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): string;
15
+ export declare function getHexString(color: HSLColor): Uppercase<string>;
16
16
  export declare function getTextColor(color: string): string;
@@ -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): string;
5
+ export declare function getInitials(name?: string, limit?: number): Uppercase<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;
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 } from './components/chipsInput';
26
+ export { default as ChipsInput, ChipsInputProps, ChipsInputChipProps, ChipsInputChangeReason, ChipsInputChangeReasonProps } 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,6 +61,8 @@ var _exportNames = {
61
61
  ChipsInput: true,
62
62
  ChipsInputProps: true,
63
63
  ChipsInputChipProps: true,
64
+ ChipsInputChangeReason: true,
65
+ ChipsInputChangeReasonProps: true,
64
66
  Chip: true,
65
67
  ChipProps: true,
66
68
  ColorPicker: true,
@@ -432,6 +434,18 @@ Object.defineProperty(exports, "ChipsInput", {
432
434
  return _chipsInput().default;
433
435
  }
434
436
  });
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
+ });
435
449
  Object.defineProperty(exports, "ChipsInputChipProps", {
436
450
  enumerable: true,
437
451
  get: function () {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DragData, UniDriver, UniDriverClass } from './UniDriver';
3
2
  export type ComponentDriverArgs = {
4
3
  testID: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DragData, UniDriver } from '../UniDriver';
3
2
  import { ReactTestInstance } from 'react-test-renderer';
4
3
  export declare class TestingLibraryDriver<Props> implements UniDriver<Props> {