native-pytech 1.0.67 → 1.0.68

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,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type Props from './types';
3
- declare const _default: React.MemoExoticComponent<({ children, systemImage, label, modifiers, maintainButtonStyle, textTrailing, textTrailingProps, ...buttonProps }: Props) => React.JSX.Element>;
3
+ declare const _default: React.MemoExoticComponent<({ children, systemImage, label, modifiers, maintainButtonStyle, textTrailing, textTrailingProps, hStackProps, ...buttonProps }: Props) => React.JSX.Element>;
4
4
  export default _default;
@@ -3,7 +3,7 @@ import { foregroundStyle } from '@expo/ui/swift-ui/modifiers';
3
3
  import { Color } from 'expo-router';
4
4
  import React, { memo, useMemo } from 'react';
5
5
  import Trailing from './Trailing';
6
- export default memo(({ children, systemImage, label, modifiers, maintainButtonStyle = false, textTrailing, textTrailingProps, ...buttonProps }) => {
6
+ export default memo(({ children, systemImage, label, modifiers, maintainButtonStyle = false, textTrailing, textTrailingProps, hStackProps, ...buttonProps }) => {
7
7
  // Va a poner una Label cuando no tenga que mantener el estilo del button y haya una imagen.
8
8
  // Si no tiene que mantener el estilo del button y no hay una imagen, solo va a cambiar el foregroundColor.
9
9
  const renderLabel = !maintainButtonStyle && systemImage !== undefined;
@@ -13,7 +13,7 @@ export default memo(({ children, systemImage, label, modifiers, maintainButtonSt
13
13
  ], [modifiers, maintainButtonStyle, renderLabel]);
14
14
  const buttonSystemImage = !renderLabel ? systemImage : undefined;
15
15
  const buttonLabel = !renderLabel ? label : undefined;
16
- return (<HStack>
16
+ return (<HStack {...hStackProps}>
17
17
  <Button modifiers={_modifiers} systemImage={buttonSystemImage} label={buttonLabel} {...buttonProps}>
18
18
  {children}
19
19
  </Button>
@@ -1,4 +1,4 @@
1
- import { ButtonProps, TextProps } from "@expo/ui/swift-ui";
1
+ import { ButtonProps, HStackProps, TextProps } from "@expo/ui/swift-ui";
2
2
  export type TrailingProps = {
3
3
  /**
4
4
  Text to display on the Trailing Stack.
@@ -23,5 +23,9 @@ type Props = ButtonProps & {
23
23
  @default false
24
24
  */
25
25
  maintainButtonStyle?: boolean;
26
+ /**
27
+ HStackProps to apply to the HStack.
28
+ */
29
+ hStackProps?: Omit<HStackProps, 'children'>;
26
30
  };
27
31
  export default Props;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-pytech",
3
- "version": "1.0.67",
3
+ "version": "1.0.68",
4
4
  "description": "Libreria de React Native Pytech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",