@ds-autonomie/react-native 0.2.0 → 0.4.0

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/chunks/chunk.2XHLIGU3.js +16 -0
  3. package/dist/chunks/chunk.4GJSNQET.js +48 -0
  4. package/dist/chunks/chunk.523CLSSB.js +22 -0
  5. package/dist/chunks/{chunk.QOZS5EA3.js → chunk.65RCE3RB.js} +7 -25
  6. package/dist/chunks/{chunk.MCKLJGG3.js → chunk.7H4YRP4X.js} +2 -2
  7. package/dist/chunks/chunk.DE3QWY2X.js +51 -0
  8. package/dist/chunks/chunk.DGZYY7CA.js +47 -0
  9. package/dist/chunks/chunk.DMHRBYRF.js +69 -0
  10. package/dist/chunks/{chunk.2HOUMFYI.js → chunk.DMWLLPBB.js} +2 -2
  11. package/dist/chunks/chunk.I5NPEO25.js +147 -0
  12. package/dist/chunks/chunk.JQRCUHR6.js +65 -0
  13. package/dist/{components/search/SearchField.js → chunks/chunk.KVGKM2JI.js} +3 -2
  14. package/dist/chunks/chunk.LN5IVTGU.js +60 -0
  15. package/dist/chunks/chunk.LR5V6SDZ.js +22 -0
  16. package/dist/chunks/chunk.SZJKAIPC.js +20 -0
  17. package/dist/chunks/chunk.TWXAL56H.js +21 -0
  18. package/dist/chunks/chunk.VPRSFOFO.js +40 -0
  19. package/dist/chunks/chunk.WVKTSG5X.js +22 -0
  20. package/dist/chunks/chunk.XCMNSIIN.js +72 -0
  21. package/dist/components/button/Button.js +4 -64
  22. package/dist/components/checkbox/Checkbox.js +4 -67
  23. package/dist/components/divider/Divider.d.ts +7 -0
  24. package/dist/components/divider/Divider.js +24 -0
  25. package/dist/components/divider/Divider.styles.d.ts +13 -0
  26. package/dist/components/divider/Divider.styles.js +6 -0
  27. package/dist/components/listCaption/ListCaption.d.ts +7 -0
  28. package/dist/components/listCaption/ListCaption.js +8 -0
  29. package/dist/components/listCaption/ListCaption.styles.d.ts +14 -0
  30. package/dist/components/listCaption/ListCaption.styles.js +7 -0
  31. package/dist/components/listItem/ListItem.d.ts +34 -0
  32. package/dist/components/listItem/ListItem.js +9 -0
  33. package/dist/components/listItem/ListItem.styles.d.ts +48 -0
  34. package/dist/components/listItem/ListItem.styles.js +7 -0
  35. package/dist/components/listTitle/ListTitle.d.ts +7 -0
  36. package/dist/components/listTitle/ListTitle.js +8 -0
  37. package/dist/components/listTitle/ListTitle.styles.d.ts +15 -0
  38. package/dist/components/listTitle/ListTitle.styles.js +7 -0
  39. package/dist/components/radio/Radio.js +3 -55
  40. package/dist/components/searchField/SearchField.js +7 -0
  41. package/dist/components/{search → searchField}/SearchField.styles.js +1 -1
  42. package/dist/components/tabs/Tabs.d.ts +18 -0
  43. package/dist/components/tabs/Tabs.js +7 -0
  44. package/dist/components/tabs/Tabs.styles.d.ts +10 -0
  45. package/dist/components/tabs/Tabs.styles.js +6 -0
  46. package/dist/components/tabs/tabItem/TabItem.d.ts +40 -0
  47. package/dist/components/tabs/tabItem/TabItem.js +9 -0
  48. package/dist/components/tabs/tabItem/TabItem.styles.d.ts +33 -0
  49. package/dist/components/tabs/tabItem/TabItem.styles.js +7 -0
  50. package/dist/components/textInput/TextInput.js +9 -0
  51. package/dist/components/{text-input → textInput}/TextInput.styles.d.ts +8 -0
  52. package/dist/components/{text-input → textInput}/TextInput.styles.js +2 -1
  53. package/dist/index.d.ts +11 -1
  54. package/dist/index.js +52 -3
  55. package/dist/styles/fonts.d.ts +25 -0
  56. package/package.json +2 -2
  57. package/dist/components/text-input/TextInput.js +0 -8
  58. /package/dist/components/{search → searchField}/SearchField.d.ts +0 -0
  59. /package/dist/components/{search → searchField}/SearchField.styles.d.ts +0 -0
  60. /package/dist/components/{text-input → textInput}/TextInput.d.ts +0 -0
@@ -0,0 +1,20 @@
1
+ // src/components/divider/Divider.styles.ts
2
+ import theme from "@ds-autonomie/assets/js/dsa-theme";
3
+ import { StyleSheet } from "react-native";
4
+ var dividerStyles = StyleSheet.create({
5
+ container: {
6
+ backgroundColor: theme.collection.background.divider
7
+ },
8
+ horizontal: {
9
+ height: 1,
10
+ width: "100%"
11
+ },
12
+ vertical: {
13
+ width: 1,
14
+ height: "100%"
15
+ }
16
+ });
17
+
18
+ export {
19
+ dividerStyles
20
+ };
@@ -0,0 +1,21 @@
1
+ import {
2
+ fonts
3
+ } from "./chunk.4GJSNQET.js";
4
+
5
+ // src/components/listCaption/ListCaption.styles.ts
6
+ import theme from "@ds-autonomie/assets/js/dsa-theme";
7
+ import { StyleSheet } from "react-native";
8
+ var listCaptionStyles = StyleSheet.create({
9
+ container: {
10
+ paddingHorizontal: theme.primitives.spacing[16],
11
+ paddingTop: theme.primitives.spacing[12]
12
+ },
13
+ text: {
14
+ ...fonts.labelMedium,
15
+ paddingHorizontal: theme.primitives.spacing[16]
16
+ }
17
+ });
18
+
19
+ export {
20
+ listCaptionStyles
21
+ };
@@ -0,0 +1,40 @@
1
+ import {
2
+ fonts
3
+ } from "./chunk.4GJSNQET.js";
4
+
5
+ // src/components/tabs/tabItem/TabItem.styles.ts
6
+ import theme from "@ds-autonomie/assets/js/dsa-theme";
7
+ import { StyleSheet } from "react-native";
8
+ var tabItemStyles = StyleSheet.create({
9
+ container: {
10
+ height: 48,
11
+ flex: 1,
12
+ justifyContent: "center",
13
+ paddingHorizontal: theme.primitives.spacing[16],
14
+ gap: theme.primitives.spacing[8],
15
+ display: "flex",
16
+ flexDirection: "row",
17
+ alignItems: "center"
18
+ },
19
+ text: {
20
+ ...fonts.labelLarge,
21
+ textAlign: "center",
22
+ color: theme.collection.tab.unselected["on-enabled"]
23
+ },
24
+ selected: {
25
+ color: theme.collection.tab.selected["on-enabled"],
26
+ backgroundColor: theme.collection.tab.selected.enabled
27
+ },
28
+ focus: {
29
+ color: theme.collection.tab.selected["on-focus"],
30
+ backgroundColor: theme.collection.tab.unselected.focus
31
+ },
32
+ focusSelected: {
33
+ color: theme.collection.tab.selected["on-focus"],
34
+ backgroundColor: theme.collection.tab.selected.focus
35
+ }
36
+ });
37
+
38
+ export {
39
+ tabItemStyles
40
+ };
@@ -0,0 +1,22 @@
1
+ import {
2
+ listTitleStyles
3
+ } from "./chunk.523CLSSB.js";
4
+
5
+ // src/components/listTitle/ListTitle.tsx
6
+ import React from "react";
7
+ import { View, Text } from "react-native";
8
+ var ListTitle = React.forwardRef(
9
+ function ListTitle2({ style, children, ...restProps }, ref) {
10
+ return <View
11
+ ref={ref}
12
+ {...restProps}
13
+ accessibilityRole="text"
14
+ accessible
15
+ style={[style, listTitleStyles.container]}
16
+ ><Text style={[listTitleStyles.text]}>{children}</Text></View>;
17
+ }
18
+ );
19
+
20
+ export {
21
+ ListTitle
22
+ };
@@ -0,0 +1,72 @@
1
+ import {
2
+ checkboxCheckStyles,
3
+ checkboxContainerStyles
4
+ } from "./chunk.H2AL2E3A.js";
5
+ import {
6
+ Icon
7
+ } from "./chunk.OQSCGAEY.js";
8
+
9
+ // src/components/checkbox/Checkbox.tsx
10
+ import theme from "@ds-autonomie/assets/js/dsa-theme";
11
+ import React, { useEffect, useState } from "react";
12
+ import { Pressable, View } from "react-native";
13
+ var Checkbox = React.forwardRef(function Checkbox2({
14
+ value = false,
15
+ disabled = false,
16
+ error = false,
17
+ onValueChange,
18
+ style: styleProps,
19
+ ...restProps
20
+ }, ref) {
21
+ const [checked, setChecked] = useState(value);
22
+ useEffect(
23
+ function onValueUpdate() {
24
+ setChecked(value);
25
+ },
26
+ [value]
27
+ );
28
+ function handlePress() {
29
+ if (disabled) {
30
+ return;
31
+ }
32
+ onValueChange?.(!checked);
33
+ setChecked(!checked);
34
+ }
35
+ return <Pressable
36
+ ref={ref}
37
+ {...restProps}
38
+ accessibilityLabel="checkbox"
39
+ accessibilityRole="checkbox"
40
+ accessibilityState={{ checked, disabled }}
41
+ accessible
42
+ aria-checked={checked}
43
+ aria-disabled={disabled}
44
+ aria-invalid={error}
45
+ aria-pressed={checked}
46
+ onPress={handlePress}
47
+ role="checkbox"
48
+ hitSlop={15}
49
+ style={[
50
+ styleProps,
51
+ checkboxContainerStyles.default,
52
+ checked && checkboxContainerStyles.active,
53
+ error && checkboxContainerStyles.error,
54
+ disabled && checkboxContainerStyles.disabled
55
+ ]}
56
+ >{checked && <View
57
+ style={[
58
+ checkboxCheckStyles.default,
59
+ checked && checkboxCheckStyles.active,
60
+ error && checkboxCheckStyles.error,
61
+ disabled && checkboxCheckStyles.disabled
62
+ ]}
63
+ ><Icon
64
+ name="check"
65
+ color={theme.primitives.color.neutral[100]}
66
+ size={18}
67
+ /></View>}</Pressable>;
68
+ });
69
+
70
+ export {
71
+ Checkbox
72
+ };
@@ -1,68 +1,8 @@
1
1
  import {
2
- getContainerStyle,
3
- getIconColor,
4
- getTextStyle
5
- } from "../../chunks/chunk.RNOZ5AW4.js";
6
- import {
7
- Icon
8
- } from "../../chunks/chunk.OQSCGAEY.js";
9
-
10
- // src/components/button/Button.tsx
11
- import React from "react";
12
- import {
13
- Pressable,
14
- Text
15
- } from "react-native";
16
- var Button = React.forwardRef(function Toggle({
17
- variant = "primary",
18
- style,
19
- disabled = false,
20
- endIcon,
21
- size = "medium",
22
- startIcon,
23
- children,
24
- ...props
25
- }, ref) {
26
- const hasOnlyOneIcon = [!!startIcon, !!endIcon].filter(Boolean).length === 1 && !children;
27
- return <Pressable
28
- ref={ref}
29
- {...props}
30
- accessibilityLabel="button"
31
- accessibilityRole="button"
32
- accessible
33
- aria-disabled={disabled}
34
- accessibilityState={{
35
- disabled
36
- }}
37
- disabled={disabled}
38
- role="button"
39
- style={({ pressed }) => [
40
- style,
41
- getContainerStyle({ variant, size, hasOnlyOneIcon, disabled, pressed })
42
- ]}
43
- >{({ pressed }) => {
44
- const iconColor = getIconColor({
45
- pressed,
46
- disabled,
47
- variant
48
- });
49
- return <>
50
- {startIcon && <Icon name={startIcon} color={iconColor} size={24} />}
51
- {children !== void 0 && <Text
52
- style={[
53
- getTextStyle({
54
- variant,
55
- size,
56
- hasOnlyOneIcon,
57
- disabled,
58
- pressed
59
- })
60
- ]}
61
- >{children}</Text>}
62
- {endIcon && <Icon name={endIcon} color={iconColor} size={24} />}
63
- </>;
64
- }}</Pressable>;
65
- });
2
+ Button
3
+ } from "../../chunks/chunk.DMHRBYRF.js";
4
+ import "../../chunks/chunk.RNOZ5AW4.js";
5
+ import "../../chunks/chunk.OQSCGAEY.js";
66
6
  export {
67
7
  Button
68
8
  };
@@ -1,71 +1,8 @@
1
1
  import {
2
- checkboxCheckStyles,
3
- checkboxContainerStyles
4
- } from "../../chunks/chunk.H2AL2E3A.js";
5
- import {
6
- Icon
7
- } from "../../chunks/chunk.OQSCGAEY.js";
8
-
9
- // src/components/checkbox/Checkbox.tsx
10
- import theme from "@ds-autonomie/assets/js/dsa-theme";
11
- import React, { useEffect, useState } from "react";
12
- import { Pressable, View } from "react-native";
13
- var Checkbox = React.forwardRef(function Checkbox2({
14
- value = false,
15
- disabled = false,
16
- error = false,
17
- onValueChange,
18
- style: styleProps,
19
- ...restProps
20
- }, ref) {
21
- const [checked, setChecked] = useState(value);
22
- useEffect(
23
- function onValueUpdate() {
24
- setChecked(value);
25
- },
26
- [value]
27
- );
28
- function handlePress() {
29
- if (disabled) {
30
- return;
31
- }
32
- onValueChange?.(!checked);
33
- setChecked(!checked);
34
- }
35
- return <Pressable
36
- ref={ref}
37
- {...restProps}
38
- accessibilityLabel="checkbox"
39
- accessibilityRole="checkbox"
40
- accessibilityState={{ checked, disabled }}
41
- accessible
42
- aria-checked={checked}
43
- aria-disabled={disabled}
44
- aria-invalid={error}
45
- aria-pressed={checked}
46
- onPress={handlePress}
47
- role="checkbox"
48
- hitSlop={15}
49
- style={[
50
- styleProps,
51
- checkboxContainerStyles.default,
52
- checked && checkboxContainerStyles.active,
53
- error && checkboxContainerStyles.error,
54
- disabled && checkboxContainerStyles.disabled
55
- ]}
56
- >{checked && <View
57
- style={[
58
- checkboxCheckStyles.default,
59
- checked && checkboxCheckStyles.active,
60
- error && checkboxCheckStyles.error,
61
- disabled && checkboxCheckStyles.disabled
62
- ]}
63
- ><Icon
64
- name="check"
65
- color={theme.primitives.color.neutral[100]}
66
- size={18}
67
- /></View>}</Pressable>;
68
- });
2
+ Checkbox
3
+ } from "../../chunks/chunk.XCMNSIIN.js";
4
+ import "../../chunks/chunk.H2AL2E3A.js";
5
+ import "../../chunks/chunk.OQSCGAEY.js";
69
6
  export {
70
7
  Checkbox
71
8
  };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ViewProps } from 'react-native';
3
+ type DividerProps = {
4
+ orientation?: 'horizontal' | 'vertical';
5
+ } & ViewProps;
6
+ export declare const Divider: ({ orientation, style, ...rest }: DividerProps) => React.JSX.Element;
7
+ export {};
@@ -0,0 +1,24 @@
1
+ import {
2
+ dividerStyles
3
+ } from "../../chunks/chunk.SZJKAIPC.js";
4
+
5
+ // src/components/divider/Divider.tsx
6
+ import { View } from "react-native";
7
+ var Divider = ({
8
+ orientation = "horizontal",
9
+ style,
10
+ ...rest
11
+ }) => {
12
+ return <View
13
+ {...rest}
14
+ style={[
15
+ style,
16
+ dividerStyles.container,
17
+ orientation === "vertical" && dividerStyles.vertical,
18
+ orientation === "horizontal" && dividerStyles.horizontal
19
+ ]}
20
+ />;
21
+ };
22
+ export {
23
+ Divider
24
+ };
@@ -0,0 +1,13 @@
1
+ export declare const dividerStyles: {
2
+ container: {
3
+ backgroundColor: "#e7e7e7ff";
4
+ };
5
+ horizontal: {
6
+ height: number;
7
+ width: "100%";
8
+ };
9
+ vertical: {
10
+ width: number;
11
+ height: "100%";
12
+ };
13
+ };
@@ -0,0 +1,6 @@
1
+ import {
2
+ dividerStyles
3
+ } from "../../chunks/chunk.SZJKAIPC.js";
4
+ export {
5
+ dividerStyles
6
+ };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { View, ViewProps } from 'react-native';
3
+ type OmittedProps = 'accessible' | 'accessibleRole';
4
+ export declare const ListCaption: React.ForwardRefExoticComponent<{
5
+ children: React.ReactNode;
6
+ } & Omit<ViewProps, OmittedProps> & React.RefAttributes<View>>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import {
2
+ ListCaption
3
+ } from "../../chunks/chunk.LR5V6SDZ.js";
4
+ import "../../chunks/chunk.TWXAL56H.js";
5
+ import "../../chunks/chunk.4GJSNQET.js";
6
+ export {
7
+ ListCaption
8
+ };
@@ -0,0 +1,14 @@
1
+ export declare const listCaptionStyles: {
2
+ container: {
3
+ paddingHorizontal: 16;
4
+ paddingTop: 12;
5
+ };
6
+ text: {
7
+ paddingHorizontal: 16;
8
+ fontSize: number;
9
+ fontWeight: "500";
10
+ lineHeight: number;
11
+ fontFamily: string;
12
+ letterSpacing: number;
13
+ };
14
+ };
@@ -0,0 +1,7 @@
1
+ import {
2
+ listCaptionStyles
3
+ } from "../../chunks/chunk.TWXAL56H.js";
4
+ import "../../chunks/chunk.4GJSNQET.js";
5
+ export {
6
+ listCaptionStyles
7
+ };
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { PressableProps, ViewStyle, StyleProp } from 'react-native';
3
+ type OmittedProps = 'accessibilityLabel' | 'accessible' | 'children' | 'style';
4
+ type InsetListItemProps = {
5
+ inset: true;
6
+ isLast: boolean;
7
+ isFirst: boolean;
8
+ };
9
+ type RegularListItemProps = {
10
+ inset: false;
11
+ isLast: boolean;
12
+ isFirst?: undefined;
13
+ };
14
+ type CommonListItemProps = {
15
+ label: string;
16
+ subtitle?: string;
17
+ prefix?: React.ReactNode;
18
+ suffix?: React.ReactNode;
19
+ /**
20
+ * If `style` is defined, it will extend the container style.
21
+ * If a similar property is defined, the new property will overwrite the old one.
22
+ * */
23
+ style?: StyleProp<ViewStyle>;
24
+ };
25
+ type ListItemProps = (InsetListItemProps | RegularListItemProps) & CommonListItemProps & Omit<PressableProps, OmittedProps>;
26
+ interface ListItemSubComponents {
27
+ ChevronSuffix?: typeof ChevronSuffix;
28
+ }
29
+ export declare const ListItem: React.ForwardRefExoticComponent<ListItemProps> & ListItemSubComponents;
30
+ type ChevronSuffixProps = {
31
+ title: string;
32
+ };
33
+ declare const ChevronSuffix: ({ title }: ChevronSuffixProps) => React.JSX.Element;
34
+ export {};
@@ -0,0 +1,9 @@
1
+ import {
2
+ ListItem
3
+ } from "../../chunks/chunk.JQRCUHR6.js";
4
+ import "../../chunks/chunk.DE3QWY2X.js";
5
+ import "../../chunks/chunk.4GJSNQET.js";
6
+ import "../../chunks/chunk.OQSCGAEY.js";
7
+ export {
8
+ ListItem
9
+ };
@@ -0,0 +1,48 @@
1
+ export declare const styles: {
2
+ container: {
3
+ borderBottomWidth: number;
4
+ borderBottomColor: "#e7e7e7ff";
5
+ backgroundColor: "#ffffffff";
6
+ paddingHorizontal: 16;
7
+ paddingVertical: 8;
8
+ display: "flex";
9
+ height: "auto";
10
+ flexDirection: "row";
11
+ alignItems: "center";
12
+ gap: 16;
13
+ };
14
+ large: {
15
+ minHeight: number;
16
+ };
17
+ lastItem: {
18
+ borderBottomWidth: number;
19
+ paddingBottom: number;
20
+ };
21
+ title: {
22
+ color: "#252625ff";
23
+ fontSize: number;
24
+ fontFamily: string;
25
+ fontWeight: "400";
26
+ lineHeight: number;
27
+ letterSpacing: number;
28
+ };
29
+ subtitle: {
30
+ color: "#666666ff";
31
+ fontSize: number;
32
+ fontWeight: "400";
33
+ lineHeight: number;
34
+ fontFamily: string;
35
+ letterSpacing: number;
36
+ };
37
+ inset: {
38
+ marginHorizontal: 16;
39
+ };
40
+ insetFirst: {
41
+ borderTopRightRadius: 8;
42
+ borderTopLeftRadius: 8;
43
+ };
44
+ insetLast: {
45
+ borderBottomRightRadius: 8;
46
+ borderBottomLeftRadius: 8;
47
+ };
48
+ };
@@ -0,0 +1,7 @@
1
+ import {
2
+ styles
3
+ } from "../../chunks/chunk.DE3QWY2X.js";
4
+ import "../../chunks/chunk.4GJSNQET.js";
5
+ export {
6
+ styles
7
+ };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { View, ViewProps } from 'react-native';
3
+ type OmittedProps = 'accessible' | 'accessibleRole';
4
+ export declare const ListTitle: React.ForwardRefExoticComponent<{
5
+ children: React.ReactNode;
6
+ } & Omit<ViewProps, OmittedProps> & React.RefAttributes<View>>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import {
2
+ ListTitle
3
+ } from "../../chunks/chunk.WVKTSG5X.js";
4
+ import "../../chunks/chunk.523CLSSB.js";
5
+ import "../../chunks/chunk.4GJSNQET.js";
6
+ export {
7
+ ListTitle
8
+ };
@@ -0,0 +1,15 @@
1
+ export declare const listTitleStyles: {
2
+ container: {
3
+ paddingHorizontal: 16;
4
+ paddingTop: 8;
5
+ paddingBottom: 12;
6
+ };
7
+ text: {
8
+ paddingHorizontal: 16;
9
+ fontSize: number;
10
+ fontWeight: "500";
11
+ lineHeight: number;
12
+ fontFamily: string;
13
+ letterSpacing: number;
14
+ };
15
+ };
@@ -0,0 +1,7 @@
1
+ import {
2
+ listTitleStyles
3
+ } from "../../chunks/chunk.523CLSSB.js";
4
+ import "../../chunks/chunk.4GJSNQET.js";
5
+ export {
6
+ listTitleStyles
7
+ };
@@ -1,59 +1,7 @@
1
1
  import {
2
- radioContainerStyles,
3
- radioDotStyles
4
- } from "../../chunks/chunk.YWEWQ2LT.js";
5
-
6
- // src/components/radio/Radio.tsx
7
- import React, { useEffect, useState } from "react";
8
- import { Pressable, View } from "react-native";
9
- var Radio = React.forwardRef(function Checkbox({
10
- value = false,
11
- disabled = false,
12
- onValueChange,
13
- style: styleProps,
14
- ...restProps
15
- }, ref) {
16
- const [checked, setChecked] = useState(value);
17
- useEffect(
18
- function onValueUpdate() {
19
- setChecked(value);
20
- },
21
- [value]
22
- );
23
- function handlePress() {
24
- if (disabled || checked) {
25
- return;
26
- }
27
- onValueChange?.(true);
28
- setChecked(true);
29
- }
30
- return <Pressable
31
- ref={ref}
32
- {...restProps}
33
- accessibilityLabel="radio"
34
- accessibilityRole="radio"
35
- accessibilityState={{ checked, disabled }}
36
- accessible
37
- aria-checked={checked}
38
- aria-disabled={disabled}
39
- aria-pressed={checked}
40
- onPress={handlePress}
41
- hitSlop={14}
42
- role="radio"
43
- style={[
44
- styleProps,
45
- radioContainerStyles.default,
46
- checked && radioContainerStyles.active,
47
- disabled && radioContainerStyles.disabled
48
- ]}
49
- >{checked && <View
50
- style={[
51
- radioDotStyles.default,
52
- checked && radioDotStyles.active,
53
- disabled && radioDotStyles.disabled
54
- ]}
55
- />}</Pressable>;
56
- });
2
+ Radio
3
+ } from "../../chunks/chunk.LN5IVTGU.js";
4
+ import "../../chunks/chunk.YWEWQ2LT.js";
57
5
  export {
58
6
  Radio
59
7
  };
@@ -0,0 +1,7 @@
1
+ import {
2
+ SearchField
3
+ } from "../../chunks/chunk.KVGKM2JI.js";
4
+ import "../../chunks/chunk.7H4YRP4X.js";
5
+ export {
6
+ SearchField
7
+ };
@@ -2,7 +2,7 @@ import {
2
2
  placeholderTextColor,
3
3
  plateformStyles,
4
4
  styles
5
- } from "../../chunks/chunk.MCKLJGG3.js";
5
+ } from "../../chunks/chunk.7H4YRP4X.js";
6
6
  export {
7
7
  placeholderTextColor,
8
8
  plateformStyles,
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { ViewProps } from 'react-native';
3
+ type Props = {
4
+ /**
5
+ * Active tab index
6
+ * */
7
+ value: number;
8
+ /**
9
+ * Callback fired when the value is changed.
10
+ */
11
+ onChange: (index: number) => void;
12
+ /**
13
+ * If `true` the tab list is scrollable
14
+ * */
15
+ scrollable?: boolean;
16
+ } & ViewProps;
17
+ export declare const Tabs: ({ children, value, onChange, scrollable, style, ...rest }: Props) => React.JSX.Element;
18
+ export {};
@@ -0,0 +1,7 @@
1
+ import {
2
+ Tabs
3
+ } from "../../chunks/chunk.I5NPEO25.js";
4
+ import "../../chunks/chunk.2XHLIGU3.js";
5
+ export {
6
+ Tabs
7
+ };