native-pytech 1.0.106 → 1.0.108

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.
@@ -6,5 +6,5 @@ import type Props from './types';
6
6
  Este componente extiende "List" de @expo/ui/swift-ui y agrega automáticamente:
7
7
  - padding({ top: -15 })
8
8
  */
9
- declare const _default: React.MemoExoticComponent<({ children, modifiers, disablePaddingTop, onRefresh, ...listProps }: Props) => React.JSX.Element>;
9
+ declare const _default: React.MemoExoticComponent<({ children, modifiers, disablePaddingTop, listStyle, onRefresh, ...listProps }: Props) => React.JSX.Element>;
10
10
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { List } from '@expo/ui/swift-ui';
2
- import { padding, refreshable } from '@expo/ui/swift-ui/modifiers';
2
+ import { listStyle as listStyleModifier, padding, refreshable } from '@expo/ui/swift-ui/modifiers';
3
3
  import React, { memo, useMemo } from 'react';
4
4
  /**
5
5
  Wrapper de List que aplica un padding superior negativo por defecto.
@@ -7,9 +7,10 @@ import React, { memo, useMemo } from 'react';
7
7
  Este componente extiende "List" de @expo/ui/swift-ui y agrega automáticamente:
8
8
  - padding({ top: -15 })
9
9
  */
10
- export default memo(({ children, modifiers, disablePaddingTop, onRefresh, ...listProps }) => {
10
+ export default memo(({ children, modifiers, disablePaddingTop, listStyle, onRefresh, ...listProps }) => {
11
11
  const _modifiers = useMemo(() => [
12
12
  ...(modifiers ?? []),
13
+ ...(listStyle ? [listStyleModifier(listStyle)] : []),
13
14
  ...(disablePaddingTop ? [] : [padding({ top: -15 })]),
14
15
  ...(onRefresh ? [refreshable(onRefresh)] : []),
15
16
  ], [modifiers, disablePaddingTop, onRefresh]);
@@ -4,6 +4,10 @@ type Props = ListProps & {
4
4
  Whether to disable the padding top of the list.
5
5
  */
6
6
  disablePaddingTop?: boolean;
7
+ /**
8
+ The style of the list.
9
+ */
10
+ listStyle?: 'plain' | 'inset' | 'grouped';
7
11
  /**
8
12
  The function to handle the refresh event.
9
13
  */
@@ -1,4 +1,5 @@
1
1
  import { Spacer, Image, HStack } from '@expo/ui/swift-ui';
2
+ import { foregroundStyle, font } from '@expo/ui/swift-ui/modifiers';
2
3
  import { Color } from 'expo-router';
3
4
  import React, { memo } from 'react';
4
5
  import Text from '../Text';
@@ -11,4 +12,7 @@ export default memo(({ text, textProps }) => {
11
12
  </HStack>) : (<ChevronRight />)}
12
13
  </>);
13
14
  });
14
- const ChevronRight = memo(() => <Image systemName='chevron.right' size={16} color={Color.ios.opaqueSeparator}/>);
15
+ const ChevronRight = memo(() => <Image systemName='chevron.right' size={16} color={Color.ios.opaqueSeparator} modifiers={[
16
+ foregroundStyle({ type: 'hierarchical', style: 'tertiary' }),
17
+ font({ weight: 'semibold' })
18
+ ]}/>);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-pytech",
3
- "version": "1.0.106",
3
+ "version": "1.0.108",
4
4
  "description": "Libreria de React Native Pytech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",