@mrmeg/expo-ui 0.4.2 → 0.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.
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentType } from "react";
2
- import { PressableProps, PressableStateCallbackType, StyleProp, TextStyle, ViewStyle } from "react-native";
2
+ import { PressableProps, PressableStateCallbackType, DimensionValue, StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import { TextProps } from "./StyledText";
4
4
  /**
5
5
  * Button variants
@@ -9,9 +9,19 @@ type Presets = "default" | "outline" | "ghost" | "link" | "destructive" | "secon
9
9
  * Button size variants
10
10
  */
11
11
  export type ButtonSize = "sm" | "md" | "lg";
12
- export type ButtonAccessoryStyle = Pick<ViewStyle, "margin" | "marginHorizontal" | "marginVertical" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginStart" | "marginEnd">;
12
+ export type ButtonAccessoryStyle = {
13
+ margin?: DimensionValue;
14
+ marginHorizontal?: DimensionValue;
15
+ marginVertical?: DimensionValue;
16
+ marginTop?: DimensionValue;
17
+ marginRight?: DimensionValue;
18
+ marginBottom?: DimensionValue;
19
+ marginLeft?: DimensionValue;
20
+ marginStart?: DimensionValue;
21
+ marginEnd?: DimensionValue;
22
+ };
13
23
  export interface ButtonAccessoryProps {
14
- style: StyleProp<ButtonAccessoryStyle>;
24
+ style: ButtonAccessoryStyle;
15
25
  pressableState: PressableStateCallbackType;
16
26
  disabled?: boolean;
17
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrmeg/expo-ui",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "private": false,
5
5
  "description": "Reusable Expo and React Native UI primitives for MrMeg projects.",
6
6
  "keywords": [