react-native-ui-lib 8.3.4-snapshot.7804 → 8.3.4-snapshot.7808

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.3.4-snapshot.7804",
3
+ "version": "8.3.4-snapshot.7808",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -1,10 +1,10 @@
1
1
  import React, { useCallback, useEffect, useMemo, useState } from 'react';
2
2
  import { StyleSheet } from 'react-native';
3
- import { Image } from 'react-native-ui-lib';
4
3
  import Animated, { useAnimatedKeyboard, useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
5
4
  import { Keyboard } from 'uilib-native';
6
5
  import { SafeAreaContextPackage } from "../../optionalDependencies";
7
6
  import View from "../view";
7
+ import Image from "../image";
8
8
  import Assets from "../../assets";
9
9
  import { Colors, Shadows, Spacings } from "../../style";
10
10
  import { asBaseComponent, Constants } from "../../commons/new";
@@ -23,10 +23,12 @@ export type GeneratePaletteOptions = {
23
23
  adjustSaturation?: boolean;
24
24
  /** Custom percentage-based saturation curve indexed by distance from the base color.
25
25
  * Overrides the default curve when provided. Each value represents the fraction of the base
26
- * color's saturation to apply at that distance (e.g. [1.0, 0.89, 0.77, ...]) */
26
+ * color's saturation to apply at that distance (e.g. [1.0, 0.89, 0.77, ...]).
27
+ * The 'adjustSaturation' option must be true */
27
28
  saturationCurve?: number[];
28
29
  /** Array of additive saturation adjustments to apply per-index on the palette (from darkest to lightest).
29
- * When provided, uses legacy per-index saturation logic instead of the default curve */
30
+ * When provided, uses legacy per-index saturation logic instead of the default curve.
31
+ * The 'adjustSaturation' option must be true */
30
32
  saturationLevels?: number[];
31
33
  /** Whether to add two extra dark colors usually used for dark mode (generating a palette of 10 instead of 8 colors) */
32
34
  addDarkestTints?: boolean;
@@ -172,8 +174,7 @@ declare const colorObject: Colors & {
172
174
  red20: string;
173
175
  red30: string;
174
176
  red40: string;
175
- red50: string; /** Array of additive saturation adjustments to apply per-index on the palette (from darkest to lightest).
176
- * When provided, uses legacy per-index saturation logic instead of the default curve */
177
+ red50: string;
177
178
  red60: string;
178
179
  red70: string;
179
180
  red80: string;
@@ -183,7 +184,7 @@ declare const colorObject: Colors & {
183
184
  purple20: string;
184
185
  purple30: string;
185
186
  purple40: string;
186
- purple50: string; /** Whether to add two extra dark colors usually used for dark mode (generating a palette of 10 instead of 8 colors) */
187
+ purple50: string;
187
188
  purple60: string;
188
189
  purple70: string;
189
190
  purple80: string;