@ds-autonomie/react-native 0.3.0 → 1.0.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.
- package/CHANGELOG.md +17 -0
- package/dist/chunks/chunk.2XHLIGU3.js +16 -0
- package/dist/chunks/{chunk.4SSEOHVB.js → chunk.4GJSNQET.js} +7 -0
- package/dist/chunks/{chunk.3QXPJAHY.js → chunk.523CLSSB.js} +1 -1
- package/dist/chunks/{chunk.CIHQLL6Y.js → chunk.65RCE3RB.js} +1 -1
- package/dist/chunks/{chunk.INEDXDER.js → chunk.DE3QWY2X.js} +1 -1
- package/dist/chunks/chunk.DGZYY7CA.js +47 -0
- package/dist/chunks/{chunk.73S52VD6.js → chunk.DMWLLPBB.js} +1 -1
- package/dist/chunks/chunk.I5NPEO25.js +147 -0
- package/dist/chunks/{chunk.4MPJJ7EN.js → chunk.JQRCUHR6.js} +1 -1
- package/dist/chunks/{chunk.KVXJ2L2C.js → chunk.LR5V6SDZ.js} +1 -1
- package/dist/chunks/{chunk.4ZX27FCY.js → chunk.TWXAL56H.js} +1 -1
- package/dist/chunks/chunk.VPRSFOFO.js +40 -0
- package/dist/chunks/{chunk.6DY4BFMZ.js → chunk.WVKTSG5X.js} +1 -1
- package/dist/components/listCaption/ListCaption.js +3 -3
- package/dist/components/listCaption/ListCaption.styles.js +2 -2
- package/dist/components/listItem/ListItem.js +3 -3
- package/dist/components/listItem/ListItem.styles.js +2 -2
- package/dist/components/listTitle/ListTitle.js +3 -3
- package/dist/components/listTitle/ListTitle.styles.js +2 -2
- package/dist/components/tabs/Tabs.d.ts +18 -0
- package/dist/components/tabs/Tabs.js +7 -0
- package/dist/components/tabs/Tabs.styles.d.ts +10 -0
- package/dist/components/tabs/Tabs.styles.js +6 -0
- package/dist/components/tabs/tabItem/TabItem.d.ts +40 -0
- package/dist/components/tabs/tabItem/TabItem.js +9 -0
- package/dist/components/tabs/tabItem/TabItem.styles.d.ts +33 -0
- package/dist/components/tabs/tabItem/TabItem.styles.js +7 -0
- package/dist/components/textInput/TextInput.js +3 -3
- package/dist/components/textInput/TextInput.styles.js +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -9
- package/dist/styles/fonts.d.ts +7 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @ds-autonomie/react-native
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [e86df51]
|
|
8
|
+
- @ds-autonomie/assets@1.2.0
|
|
9
|
+
|
|
10
|
+
## 0.4.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 8987c49: `Tabs`,`TabItem`: Implémentation des composants Tabs et TabItem
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- @ds-autonomie/assets@1.1.1
|
|
19
|
+
|
|
3
20
|
## 0.3.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/components/tabs/Tabs.styles.ts
|
|
2
|
+
import { StyleSheet } from "react-native";
|
|
3
|
+
var tabsStyles = StyleSheet.create({
|
|
4
|
+
container: {
|
|
5
|
+
flexDirection: "row"
|
|
6
|
+
},
|
|
7
|
+
indicator: {
|
|
8
|
+
position: "absolute",
|
|
9
|
+
height: 2,
|
|
10
|
+
bottom: 0
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
tabsStyles
|
|
16
|
+
};
|
|
@@ -33,6 +33,13 @@ var fonts = StyleSheet.create({
|
|
|
33
33
|
lineHeight: 16,
|
|
34
34
|
fontFamily: "Cabin-Regular",
|
|
35
35
|
letterSpacing: 0.5
|
|
36
|
+
},
|
|
37
|
+
labelLarge: {
|
|
38
|
+
fontFamily: "Cabin-Regular",
|
|
39
|
+
fontWeight: "500",
|
|
40
|
+
fontSize: 14,
|
|
41
|
+
lineHeight: 20,
|
|
42
|
+
letterSpacing: 0.1
|
|
36
43
|
}
|
|
37
44
|
});
|
|
38
45
|
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tabItemStyles
|
|
3
|
+
} from "./chunk.VPRSFOFO.js";
|
|
4
|
+
import {
|
|
5
|
+
Icon
|
|
6
|
+
} from "./chunk.OQSCGAEY.js";
|
|
7
|
+
|
|
8
|
+
// src/components/tabs/tabItem/TabItem.tsx
|
|
9
|
+
import theme from "@ds-autonomie/assets/js/dsa-theme";
|
|
10
|
+
import React, { useState } from "react";
|
|
11
|
+
import {
|
|
12
|
+
Text,
|
|
13
|
+
Pressable
|
|
14
|
+
} from "react-native";
|
|
15
|
+
var TabItem = React.forwardRef(function TabItem2({ icon, title, active = false, style, ...restProps }, ref) {
|
|
16
|
+
const [isFocus, setIsFocus] = useState(false);
|
|
17
|
+
return <Pressable
|
|
18
|
+
ref={ref}
|
|
19
|
+
{...restProps}
|
|
20
|
+
accessibilityLabel="tab"
|
|
21
|
+
accessibilityRole="tab"
|
|
22
|
+
accessible
|
|
23
|
+
accessibilityState={{
|
|
24
|
+
selected: active
|
|
25
|
+
}}
|
|
26
|
+
role="tab"
|
|
27
|
+
onFocus={() => setIsFocus(true)}
|
|
28
|
+
style={[
|
|
29
|
+
style,
|
|
30
|
+
tabItemStyles.container,
|
|
31
|
+
active && tabItemStyles.selected,
|
|
32
|
+
isFocus && tabItemStyles.focus,
|
|
33
|
+
active && isFocus && tabItemStyles.focusSelected
|
|
34
|
+
]}
|
|
35
|
+
>
|
|
36
|
+
{icon && <Icon
|
|
37
|
+
name={icon}
|
|
38
|
+
size={18}
|
|
39
|
+
color={active ? theme.collection.tab.selected["on-enabled"] : theme.collection.tab.unselected["on-enabled"]}
|
|
40
|
+
/>}
|
|
41
|
+
<Text style={[tabItemStyles.text, active && tabItemStyles.selected]}>{title}</Text>
|
|
42
|
+
</Pressable>;
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
TabItem
|
|
47
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tabsStyles
|
|
3
|
+
} from "./chunk.2XHLIGU3.js";
|
|
4
|
+
|
|
5
|
+
// src/components/tabs/Tabs.tsx
|
|
6
|
+
import theme from "@ds-autonomie/assets/js/dsa-theme";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import {
|
|
9
|
+
View,
|
|
10
|
+
Animated,
|
|
11
|
+
ScrollView,
|
|
12
|
+
Platform
|
|
13
|
+
} from "react-native";
|
|
14
|
+
var sumTabItemWidthToIndex = (tabItemPositions, index) => {
|
|
15
|
+
let total = 0;
|
|
16
|
+
for (let i = 0; i <= index; i++) {
|
|
17
|
+
total += tabItemPositions[i]?.width || 0;
|
|
18
|
+
}
|
|
19
|
+
return total;
|
|
20
|
+
};
|
|
21
|
+
var SCROLL_ANIMATED_DURATION = 170;
|
|
22
|
+
var Tabs = ({
|
|
23
|
+
children,
|
|
24
|
+
value = 0,
|
|
25
|
+
onChange,
|
|
26
|
+
scrollable = false,
|
|
27
|
+
style,
|
|
28
|
+
...rest
|
|
29
|
+
}) => {
|
|
30
|
+
const animationRef = React.useRef(new Animated.Value(0));
|
|
31
|
+
const scrollViewRef = React.useRef(null);
|
|
32
|
+
const scrollViewPosition = React.useRef(0);
|
|
33
|
+
const tabItemPositions = React.useRef([]);
|
|
34
|
+
const [tabContainerWidth, setTabContainerWidth] = React.useState(0);
|
|
35
|
+
const tabs = React.Children.toArray(children);
|
|
36
|
+
const scrollHandler = React.useCallback(
|
|
37
|
+
(currentTabIndex) => {
|
|
38
|
+
const isScrollableTabs = tabItemPositions.current.length > currentTabIndex;
|
|
39
|
+
if (isScrollableTabs) {
|
|
40
|
+
const tabPositions = tabItemPositions.current.map(
|
|
41
|
+
({ position }, index) => {
|
|
42
|
+
return Platform.OS === "ios" ? sumTabItemWidthToIndex(tabItemPositions.current, index) : position;
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
const previousTabItemXPosition = currentTabIndex === 0 ? 0 : tabPositions[currentTabIndex - 1];
|
|
46
|
+
const currentTabItemXPosition = tabPositions[currentTabIndex];
|
|
47
|
+
const scrollCurrentPosition = scrollViewPosition.current;
|
|
48
|
+
let scrollX = scrollCurrentPosition;
|
|
49
|
+
if (previousTabItemXPosition < scrollCurrentPosition) {
|
|
50
|
+
scrollX += previousTabItemXPosition - scrollCurrentPosition;
|
|
51
|
+
} else if (scrollCurrentPosition + tabContainerWidth < currentTabItemXPosition) {
|
|
52
|
+
scrollX += currentTabItemXPosition - (scrollCurrentPosition + tabContainerWidth);
|
|
53
|
+
}
|
|
54
|
+
scrollViewRef.current && scrollViewRef.current.scrollTo({
|
|
55
|
+
x: scrollX,
|
|
56
|
+
y: 0,
|
|
57
|
+
animated: true
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
[tabContainerWidth]
|
|
62
|
+
);
|
|
63
|
+
React.useEffect(() => {
|
|
64
|
+
Animated.timing(animationRef.current, {
|
|
65
|
+
toValue: value,
|
|
66
|
+
useNativeDriver: true,
|
|
67
|
+
duration: SCROLL_ANIMATED_DURATION
|
|
68
|
+
}).start();
|
|
69
|
+
scrollable && requestAnimationFrame(() => scrollHandler(value));
|
|
70
|
+
}, [animationRef, value, scrollable, scrollHandler]);
|
|
71
|
+
const onScrollHandler = (event) => {
|
|
72
|
+
scrollViewPosition.current = event.nativeEvent.contentOffset.x;
|
|
73
|
+
};
|
|
74
|
+
const indicatorTransitionInterpolate = React.useMemo(() => {
|
|
75
|
+
const countItems = tabs.length;
|
|
76
|
+
if (countItems < 2 || tabItemPositions.current.length === 0) {
|
|
77
|
+
return 0;
|
|
78
|
+
}
|
|
79
|
+
const inputRange = Array.from(Array(countItems + 1).keys());
|
|
80
|
+
const outputRange = tabItemPositions.current.map(
|
|
81
|
+
({ position }, index) => {
|
|
82
|
+
return Platform.OS === "ios" ? sumTabItemWidthToIndex(tabItemPositions.current, index) : position;
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
if (inputRange.length - 1 !== outputRange.length || outputRange.includes(void 0)) {
|
|
86
|
+
return 0;
|
|
87
|
+
}
|
|
88
|
+
return animationRef.current.interpolate({
|
|
89
|
+
inputRange,
|
|
90
|
+
outputRange: [0, ...outputRange]
|
|
91
|
+
});
|
|
92
|
+
}, [animationRef, tabs, tabItemPositions.current.length]);
|
|
93
|
+
const tabIndicatorWidth = tabItemPositions.current[value]?.width;
|
|
94
|
+
return <View
|
|
95
|
+
{...rest}
|
|
96
|
+
accessibilityRole="tablist"
|
|
97
|
+
style={[tabsStyles.container, style]}
|
|
98
|
+
onLayout={({ nativeEvent: { layout } }) => {
|
|
99
|
+
setTabContainerWidth(layout.width);
|
|
100
|
+
}}
|
|
101
|
+
>{React.createElement(
|
|
102
|
+
scrollable ? ScrollView : React.Fragment,
|
|
103
|
+
{
|
|
104
|
+
...scrollable && {
|
|
105
|
+
horizontal: true,
|
|
106
|
+
ref: scrollViewRef,
|
|
107
|
+
onScroll: onScrollHandler,
|
|
108
|
+
scrollEventThrottle: 1,
|
|
109
|
+
showsHorizontalScrollIndicator: false
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
<>
|
|
113
|
+
{tabs.map(
|
|
114
|
+
(tab, index) => React.cloneElement(tab, {
|
|
115
|
+
onPress: () => onChange(index),
|
|
116
|
+
onLayout: (event) => {
|
|
117
|
+
const { width } = event.nativeEvent.layout;
|
|
118
|
+
const previousItemPosition = tabItemPositions.current[index - 1]?.position || 0;
|
|
119
|
+
tabItemPositions.current[index] = {
|
|
120
|
+
position: previousItemPosition + width,
|
|
121
|
+
width
|
|
122
|
+
};
|
|
123
|
+
},
|
|
124
|
+
active: index === value
|
|
125
|
+
})
|
|
126
|
+
)}
|
|
127
|
+
<Animated.View
|
|
128
|
+
style={[
|
|
129
|
+
tabsStyles.indicator,
|
|
130
|
+
{
|
|
131
|
+
backgroundColor: theme.collection.tab.selected["on-enabled"],
|
|
132
|
+
transform: [
|
|
133
|
+
{
|
|
134
|
+
translateX: indicatorTransitionInterpolate ?? 0
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
width: tabIndicatorWidth
|
|
138
|
+
}
|
|
139
|
+
]}
|
|
140
|
+
/>
|
|
141
|
+
</>
|
|
142
|
+
)}</View>;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
export {
|
|
146
|
+
Tabs
|
|
147
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ListCaption
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.LR5V6SDZ.js";
|
|
4
|
+
import "../../chunks/chunk.TWXAL56H.js";
|
|
5
|
+
import "../../chunks/chunk.4GJSNQET.js";
|
|
6
6
|
export {
|
|
7
7
|
ListCaption
|
|
8
8
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ListItem
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.JQRCUHR6.js";
|
|
4
|
+
import "../../chunks/chunk.DE3QWY2X.js";
|
|
5
|
+
import "../../chunks/chunk.4GJSNQET.js";
|
|
6
6
|
import "../../chunks/chunk.OQSCGAEY.js";
|
|
7
7
|
export {
|
|
8
8
|
ListItem
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ListTitle
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.WVKTSG5X.js";
|
|
4
|
+
import "../../chunks/chunk.523CLSSB.js";
|
|
5
|
+
import "../../chunks/chunk.4GJSNQET.js";
|
|
6
6
|
export {
|
|
7
7
|
ListTitle
|
|
8
8
|
};
|
|
@@ -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,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PressableProps, ViewStyle, StyleProp, View } from 'react-native';
|
|
3
|
+
type OmittedPressableProps = 'accessibilityLabel' | 'accessibilityRole' | 'accessibilityState' | 'accessible' | 'children' | 'onFocus' | 'role' | 'style';
|
|
4
|
+
export type TabItemProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the icon.
|
|
7
|
+
*/
|
|
8
|
+
icon?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Text displayed in tab.
|
|
11
|
+
*/
|
|
12
|
+
title: string;
|
|
13
|
+
/**
|
|
14
|
+
* If `style` is defined, it will extend the container style.
|
|
15
|
+
*/
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
/**
|
|
18
|
+
* If `active` is true, the tab is selected
|
|
19
|
+
* */
|
|
20
|
+
active?: boolean;
|
|
21
|
+
} & Omit<PressableProps, OmittedPressableProps>;
|
|
22
|
+
export declare const TabItem: React.ForwardRefExoticComponent<{
|
|
23
|
+
/**
|
|
24
|
+
* Name of the icon.
|
|
25
|
+
*/
|
|
26
|
+
icon?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Text displayed in tab.
|
|
29
|
+
*/
|
|
30
|
+
title: string;
|
|
31
|
+
/**
|
|
32
|
+
* If `style` is defined, it will extend the container style.
|
|
33
|
+
*/
|
|
34
|
+
style?: StyleProp<ViewStyle>;
|
|
35
|
+
/**
|
|
36
|
+
* If `active` is true, the tab is selected
|
|
37
|
+
* */
|
|
38
|
+
active?: boolean | undefined;
|
|
39
|
+
} & Omit<PressableProps, OmittedPressableProps> & React.RefAttributes<View>>;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const tabItemStyles: {
|
|
2
|
+
container: {
|
|
3
|
+
height: number;
|
|
4
|
+
flex: number;
|
|
5
|
+
justifyContent: "center";
|
|
6
|
+
paddingHorizontal: 16;
|
|
7
|
+
gap: 8;
|
|
8
|
+
display: "flex";
|
|
9
|
+
flexDirection: "row";
|
|
10
|
+
alignItems: "center";
|
|
11
|
+
};
|
|
12
|
+
text: {
|
|
13
|
+
textAlign: "center";
|
|
14
|
+
color: "#252625ff";
|
|
15
|
+
fontFamily: string;
|
|
16
|
+
fontWeight: "500";
|
|
17
|
+
fontSize: number;
|
|
18
|
+
lineHeight: number;
|
|
19
|
+
letterSpacing: number;
|
|
20
|
+
};
|
|
21
|
+
selected: {
|
|
22
|
+
color: "#540abdff";
|
|
23
|
+
backgroundColor: "#f6f1fcff";
|
|
24
|
+
};
|
|
25
|
+
focus: {
|
|
26
|
+
color: "#540abdff";
|
|
27
|
+
backgroundColor: "#f7f7f7ff";
|
|
28
|
+
};
|
|
29
|
+
focusSelected: {
|
|
30
|
+
color: "#540abdff";
|
|
31
|
+
backgroundColor: "#ede4faff";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TextInput
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.DMWLLPBB.js";
|
|
4
|
+
import "../../chunks/chunk.65RCE3RB.js";
|
|
5
|
+
import "../../chunks/chunk.4GJSNQET.js";
|
|
6
6
|
import "../../chunks/chunk.OQSCGAEY.js";
|
|
7
7
|
export {
|
|
8
8
|
TextInput
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
getCursorColors,
|
|
3
3
|
inputWrapperStyles,
|
|
4
4
|
styles
|
|
5
|
-
} from "../../chunks/chunk.
|
|
6
|
-
import "../../chunks/chunk.
|
|
5
|
+
} from "../../chunks/chunk.65RCE3RB.js";
|
|
6
|
+
import "../../chunks/chunk.4GJSNQET.js";
|
|
7
7
|
export {
|
|
8
8
|
getCursorColors,
|
|
9
9
|
inputWrapperStyles,
|
package/dist/index.d.ts
CHANGED
|
@@ -8,4 +8,6 @@ export * from './components/radio/Radio';
|
|
|
8
8
|
export * from './components/searchField/SearchField';
|
|
9
9
|
export * from './components/toggle/Toggle';
|
|
10
10
|
export * from './components/textInput/TextInput';
|
|
11
|
+
export * from './components/tabs/Tabs';
|
|
12
|
+
export * from './components/tabs/tabItem/TabItem';
|
|
11
13
|
export * from './utils';
|
package/dist/index.js
CHANGED
|
@@ -1,28 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TabItem
|
|
3
|
+
} from "./chunks/chunk.DGZYY7CA.js";
|
|
4
|
+
import "./chunks/chunk.VPRSFOFO.js";
|
|
1
5
|
import {
|
|
2
6
|
SearchField
|
|
3
7
|
} from "./chunks/chunk.KVGKM2JI.js";
|
|
4
8
|
import "./chunks/chunk.7H4YRP4X.js";
|
|
9
|
+
import {
|
|
10
|
+
Tabs
|
|
11
|
+
} from "./chunks/chunk.I5NPEO25.js";
|
|
12
|
+
import "./chunks/chunk.2XHLIGU3.js";
|
|
5
13
|
import {
|
|
6
14
|
TextInput
|
|
7
|
-
} from "./chunks/chunk.
|
|
8
|
-
import "./chunks/chunk.
|
|
15
|
+
} from "./chunks/chunk.DMWLLPBB.js";
|
|
16
|
+
import "./chunks/chunk.65RCE3RB.js";
|
|
9
17
|
import {
|
|
10
18
|
Toggle
|
|
11
19
|
} from "./chunks/chunk.B2JV2E47.js";
|
|
12
20
|
import "./chunks/chunk.CZ5Y2AVH.js";
|
|
13
21
|
import {
|
|
14
22
|
ListCaption
|
|
15
|
-
} from "./chunks/chunk.
|
|
16
|
-
import "./chunks/chunk.
|
|
23
|
+
} from "./chunks/chunk.LR5V6SDZ.js";
|
|
24
|
+
import "./chunks/chunk.TWXAL56H.js";
|
|
17
25
|
import {
|
|
18
26
|
ListItem
|
|
19
|
-
} from "./chunks/chunk.
|
|
20
|
-
import "./chunks/chunk.
|
|
27
|
+
} from "./chunks/chunk.JQRCUHR6.js";
|
|
28
|
+
import "./chunks/chunk.DE3QWY2X.js";
|
|
21
29
|
import {
|
|
22
30
|
ListTitle
|
|
23
|
-
} from "./chunks/chunk.
|
|
24
|
-
import "./chunks/chunk.
|
|
25
|
-
import "./chunks/chunk.
|
|
31
|
+
} from "./chunks/chunk.WVKTSG5X.js";
|
|
32
|
+
import "./chunks/chunk.523CLSSB.js";
|
|
33
|
+
import "./chunks/chunk.4GJSNQET.js";
|
|
26
34
|
import {
|
|
27
35
|
Radio
|
|
28
36
|
} from "./chunks/chunk.LN5IVTGU.js";
|
|
@@ -53,6 +61,8 @@ export {
|
|
|
53
61
|
ListTitle,
|
|
54
62
|
Radio,
|
|
55
63
|
SearchField,
|
|
64
|
+
TabItem,
|
|
65
|
+
Tabs,
|
|
56
66
|
TextInput,
|
|
57
67
|
Toggle,
|
|
58
68
|
useFonts
|
package/dist/styles/fonts.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ds-autonomie/react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"author": "CNSA",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"react-native-vector-icons": "^10.0.1",
|
|
33
33
|
"react-native-reanimated": "^3.3.0",
|
|
34
34
|
"expo-font": "^11.4.0",
|
|
35
|
-
"@ds-autonomie/assets": "1.
|
|
35
|
+
"@ds-autonomie/assets": "1.2.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@storybook/react-native": "6.5.7",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"react-native-accessibility-engine": "3.2.0",
|
|
47
47
|
"react-test-renderer": "18.2.0",
|
|
48
48
|
"ts-jest": "29.1.1",
|
|
49
|
-
"@ds-autonomie/eslint-config": "2.
|
|
49
|
+
"@ds-autonomie/eslint-config": "2.1.0"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"ts:check": "tsc --noEmit",
|