creactive 0.0.202 → 0.0.203

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.
@@ -1,7 +1,7 @@
1
1
  export { Gradient } from './gradient';
2
2
  export type { GradientLinearComponent, GradientLinearProperties, GradientObject, GradientStopComponent, GradientStopProperties, } from './gradient';
3
3
  export { Pressable, usePressableContext } from './pressable';
4
- export type { PressableComponent, PressableContextValue, PressableProperties, } from './pressable';
4
+ export type { PressableComponent, PressableContextValue, PressablePressEvent, PressableProperties, } from './pressable';
5
5
  export { Text } from './text';
6
6
  export type { TextComponent, TextMeasureCallback, TextProperties, TextReference, } from './text';
7
7
  export { Transition } from './transition';
@@ -1,4 +1,4 @@
1
1
  import type { PressableComponent } from './pressable.types';
2
2
  export declare const Pressable: PressableComponent;
3
3
  export { usePressableContext } from './pressable.context';
4
- export type { PressEvent, PressableComponent, PressableContextValue, PressableProperties, } from './pressable.types';
4
+ export type { PressablePressEvent, PressableComponent, PressableContextValue, PressableProperties, } from './pressable.types';
@@ -1,7 +1,7 @@
1
1
  import type { BorderRadius } from '../../../constants';
2
2
  import type { FunctionComponent, PropsWithChildren } from 'react';
3
3
  import type { PressableTag } from './constants';
4
- export interface PressEvent {
4
+ export interface PressablePressEvent {
5
5
  preventDefault: () => void;
6
6
  stopPropagation: () => void;
7
7
  }
@@ -61,17 +61,17 @@ interface PressableBaseProperties extends PropsWithChildren {
61
61
  * Called when the pressable is pressed.
62
62
  * @default undefined
63
63
  */
64
- onPress?: (event: PressEvent) => void;
64
+ onPress?: (event: PressablePressEvent) => void;
65
65
  /**
66
66
  * Called when the pressable is pressed in.
67
67
  * @default undefined
68
68
  */
69
- onPressIn?: (event: PressEvent) => void;
69
+ onPressIn?: (event: PressablePressEvent) => void;
70
70
  /**
71
71
  * Called when the pressable is pressed out.
72
72
  * @default undefined
73
73
  */
74
- onPressOut?: (event: PressEvent) => void;
74
+ onPressOut?: (event: PressablePressEvent) => void;
75
75
  }
76
76
  /**
77
77
  * Pressable HTML tag (web only).
@@ -1,2 +1,2 @@
1
1
  export { Gradient, Pressable, Text, Transition, View, usePressableContext, } from './atoms';
2
- export type { GradientLinearComponent, GradientLinearProperties, GradientObject, GradientStopComponent, GradientStopProperties, PressableComponent, PressableContextValue, PressableProperties, TextComponent, TextMeasureCallback, TextProperties, TextReference, TransitionComponent, TransitionProperties, ViewComponent, ViewLayoutEvent, ViewProperties, } from './atoms';
2
+ export type { GradientLinearComponent, GradientLinearProperties, GradientObject, GradientStopComponent, GradientStopProperties, PressableComponent, PressableContextValue, PressablePressEvent, PressableProperties, TextComponent, TextMeasureCallback, TextProperties, TextReference, TransitionComponent, TransitionProperties, ViewComponent, ViewLayoutEvent, ViewProperties, } from './atoms';
package/build/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export type { MediaComponent, MediaContextProviderComponent, MediaContextValue,
3
3
  export { ThemeContextProvider, useThemeContext, useThemeStyleSheet, } from './contexts/theme';
4
4
  export type { ThemeContextProviderComponent, ThemeContextProviderProps, ThemeContextValue, } from './contexts/theme';
5
5
  export { Gradient, Pressable, Text, Transition, usePressableContext, View, } from './components';
6
- export type { GradientLinearComponent, GradientLinearProperties, GradientObject, GradientStopComponent, GradientStopProperties, PressableComponent, PressableContextValue, PressableProperties, TextComponent, TextMeasureCallback, TextProperties, TextReference, TransitionComponent, TransitionProperties, ViewComponent, ViewLayoutEvent, ViewProperties, } from './components';
6
+ export type { GradientLinearComponent, GradientLinearProperties, GradientObject, GradientStopComponent, GradientStopProperties, PressableComponent, PressableContextValue, PressablePressEvent, PressableProperties, TextComponent, TextMeasureCallback, TextProperties, TextReference, TransitionComponent, TransitionProperties, ViewComponent, ViewLayoutEvent, ViewProperties, } from './components';
7
7
  export { DIMENSION_MAX, DIMENSION_MIN, DIMENSION_NONE, Dimension, FRACTION_MAX, FRACTION_MIN, Fraction, } from './helpers';
8
8
  export type { DimensionValue, FractionValue } from './helpers';
9
9
  export type { Color, FontWeight } from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "creactive",
3
- "version": "0.0.202",
3
+ "version": "0.0.203",
4
4
  "main": "build/default.js",
5
5
  "exports": {
6
6
  ".": {