@axelor/aos-mobile-ui 8.0.6 → 8.1.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/README.md +2 -6
- package/lib/components/atoms/BlockInteractionScreen/BlockInteractionScreen.d.ts +2 -2
- package/lib/components/atoms/BootstrapIcon/BootstrapIcon.d.ts +1 -1
- package/lib/components/atoms/Card/Card.d.ts +2 -1
- package/lib/components/atoms/DottedLine/DottedLine.d.ts +2 -1
- package/lib/components/atoms/HorizontalRule/HorizontalRule.d.ts +2 -1
- package/lib/components/atoms/HtmlInput/HtmlInput.d.ts +2 -1
- package/lib/components/atoms/Icon/Icon.d.ts +2 -1
- package/lib/components/atoms/Input/Input.d.ts +2 -2
- package/lib/components/atoms/KeyboardAvoidingScrollView/KeyboardAvoidingScrollView.d.ts +2 -2
- package/lib/components/atoms/RadioButton/RadioButton.d.ts +2 -1
- package/lib/components/atoms/Screen/Screen.d.ts +2 -1
- package/lib/components/atoms/ScrollView/ScrollView.d.ts +2 -1
- package/lib/components/atoms/Switch/Switch.d.ts +2 -1
- package/lib/components/atoms/Text/Text.d.ts +2 -1
- package/lib/components/molecules/Alert/Alert.d.ts +2 -1
- package/lib/components/molecules/AttachmentCard/AttachmentCard.d.ts +2 -1
- package/lib/components/molecules/Badge/Badge.d.ts +2 -1
- package/lib/components/molecules/BlockInteractionMessage/BlockInteractionMessage.d.ts +2 -1
- package/lib/components/molecules/Button/Button.d.ts +2 -1
- package/lib/components/molecules/CardIconButton/CardIconButton.d.ts +3 -1
- package/lib/components/molecules/CardIconButton/CardIconButton.js +16 -15
- package/lib/components/molecules/CardIconButton/CardIconButton.js.map +1 -1
- package/lib/components/molecules/CardIndicator/CardIndicator.d.ts +13 -0
- package/lib/components/molecules/CardIndicator/CardIndicator.js +55 -0
- package/lib/components/molecules/CardIndicator/CardIndicator.js.map +1 -0
- package/lib/components/molecules/Checkbox/Checkbox.d.ts +2 -1
- package/lib/components/molecules/Chip/Chip.d.ts +2 -1
- package/lib/components/molecules/CircleButton/CircleButton.d.ts +2 -1
- package/lib/components/molecules/ClearableCard/ClearableCard.d.ts +2 -1
- package/lib/components/molecules/DoubleIcon/DoubleIcon.d.ts +2 -1
- package/lib/components/molecules/DropdownCard/DropdownCard.d.ts +2 -1
- package/lib/components/molecules/DropdownMenu/DropdownMenu.d.ts +2 -1
- package/lib/components/molecules/EditableInput/EditableInput.d.ts +2 -1
- package/lib/components/molecules/FormHtmlInput/FormHtmlInput.d.ts +2 -1
- package/lib/components/molecules/FormIncrementInput/FormIncrementInput.d.ts +2 -1
- package/lib/components/molecules/FormInput/FormInput.d.ts +2 -1
- package/lib/components/molecules/FromTo/FromTo.d.ts +1 -1
- package/lib/components/molecules/HalfLabelCard/HalfLabelCard.d.ts +2 -1
- package/lib/components/molecules/IconInput/IconInput.d.ts +2 -2
- package/lib/components/molecules/Image/Image.d.ts +2 -1
- package/lib/components/molecules/Increment/Increment.d.ts +2 -1
- package/lib/components/molecules/Increment/IncrementButton.d.ts +2 -1
- package/lib/components/molecules/Label/Label.d.ts +2 -1
- package/lib/components/molecules/LabelText/LabelText.d.ts +2 -1
- package/lib/components/molecules/LoadingIndicator/LoadingIndicator.d.ts +2 -1
- package/lib/components/molecules/MessageBox/MessageBox.d.ts +2 -1
- package/lib/components/molecules/MovementIndicationCard/MovementIndicationCard.d.ts +1 -1
- package/lib/components/molecules/MultiValuePickerButton/MultiValuePickerButton.d.ts +2 -1
- package/lib/components/molecules/NotesCard/NotesCard.d.ts +2 -1
- package/lib/components/molecules/NotesCard/NotesCard.js +27 -11
- package/lib/components/molecules/NotesCard/NotesCard.js.map +1 -1
- package/lib/components/molecules/NumberBubble/NumberBubble.d.ts +2 -1
- package/lib/components/molecules/NumberBubble/NumberBubble.js +3 -1
- package/lib/components/molecules/NumberBubble/NumberBubble.js.map +1 -1
- package/lib/components/molecules/NumberChevronInput/NumberChevronInput.d.ts +2 -2
- package/lib/components/molecules/PanelTabs/PanelTabs.d.ts +1 -1
- package/lib/components/molecules/RadioSelect/RadioSelect.d.ts +2 -1
- package/lib/components/molecules/RightIconButton/RightIconButton.d.ts +1 -1
- package/lib/components/molecules/SelectionContainer/SelectionContainer.d.ts +2 -1
- package/lib/components/molecules/SelectionContainer/SelectionContainer.js +1 -1
- package/lib/components/molecules/SelectionContainer/SelectionContainer.js.map +1 -1
- package/lib/components/molecules/StarScore/StarScore.d.ts +2 -1
- package/lib/components/molecules/SwitchCard/SwitchCard.d.ts +2 -1
- package/lib/components/molecules/TextUnit/TextUnit.d.ts +13 -0
- package/lib/components/molecules/TextUnit/TextUnit.js +35 -0
- package/lib/components/molecules/TextUnit/TextUnit.js.map +1 -0
- package/lib/components/molecules/TitledValue/TitledValue.d.ts +2 -1
- package/lib/components/molecules/ToggleSwitch/ToggleSwitch.d.ts +2 -2
- package/lib/components/molecules/UnorderedList/UnorderedList.d.ts +2 -1
- package/lib/components/molecules/ViewAllContainer/ViewAllContainer.d.ts +2 -1
- package/lib/components/molecules/WarningCard/WarningCard.d.ts +2 -1
- package/lib/components/molecules/index.d.ts +2 -1
- package/lib/components/molecules/index.js +2 -1
- package/lib/components/molecules/index.js.map +1 -1
- package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.d.ts +2 -1
- package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.js +1 -1
- package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.js.map +1 -1
- package/lib/components/organisms/AutoCompleteSearch/ItemCard.d.ts +2 -1
- package/lib/components/organisms/AutoCompleteSearch/SearchDetailsPopUp.d.ts +2 -1
- package/lib/components/organisms/AutoCompleteSearch/SearchDetailsPopUp.js +6 -11
- package/lib/components/organisms/AutoCompleteSearch/SearchDetailsPopUp.js.map +1 -1
- package/lib/components/organisms/CheckboxScrollList/CheckboxScrollList.d.ts +2 -1
- package/lib/components/organisms/CheckboxScrollList/CheckboxScrollList.js +6 -2
- package/lib/components/organisms/CheckboxScrollList/CheckboxScrollList.js.map +1 -1
- package/lib/components/organisms/ChipSelect/ChipSelect.d.ts +3 -2
- package/lib/components/organisms/DistributionBar/DistributionBar.d.ts +14 -0
- package/lib/components/organisms/DistributionBar/DistributionBar.js +65 -0
- package/lib/components/organisms/DistributionBar/DistributionBar.js.map +1 -0
- package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.d.ts +5 -3
- package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.js +30 -11
- package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.js.map +1 -1
- package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.d.ts +2 -2
- package/lib/components/organisms/DurationInput/DurationInput.d.ts +2 -1
- package/lib/components/organisms/FloatingButton/FloatingActionButton.d.ts +14 -0
- package/lib/components/organisms/FloatingButton/FloatingActionButton.js +64 -0
- package/lib/components/organisms/FloatingButton/FloatingActionButton.js.map +1 -0
- package/lib/components/organisms/FloatingButton/FloatingButton.d.ts +3 -15
- package/lib/components/organisms/FloatingButton/FloatingButton.js +62 -58
- package/lib/components/organisms/FloatingButton/FloatingButton.js.map +1 -1
- package/lib/components/organisms/FloatingButton/Indicator.d.ts +9 -0
- package/lib/components/organisms/FloatingButton/Indicator.js +49 -0
- package/lib/components/organisms/FloatingButton/Indicator.js.map +1 -0
- package/lib/components/organisms/FloatingButton/types.d.ts +27 -0
- package/lib/components/organisms/FloatingButton/types.js +21 -0
- package/lib/components/organisms/FloatingButton/types.js.map +1 -0
- package/lib/components/organisms/GridView/CellView.d.ts +8 -0
- package/lib/components/organisms/GridView/CellView.js +40 -0
- package/lib/components/organisms/GridView/CellView.js.map +1 -0
- package/lib/components/organisms/GridView/GridView.d.ts +15 -0
- package/lib/components/organisms/GridView/GridView.js +98 -0
- package/lib/components/organisms/GridView/GridView.js.map +1 -0
- package/lib/components/organisms/GroupByScrollList/BottomSeparator.d.ts +2 -1
- package/lib/components/organisms/GroupByScrollList/GroupByScrollList.d.ts +5 -2
- package/lib/components/organisms/GroupByScrollList/GroupByScrollList.js +3 -3
- package/lib/components/organisms/GroupByScrollList/GroupByScrollList.js.map +1 -1
- package/lib/components/organisms/GroupByScrollList/TopSeparator.d.ts +2 -1
- package/lib/components/organisms/GroupByScrollList/TopSeparator.js +2 -1
- package/lib/components/organisms/GroupByScrollList/TopSeparator.js.map +1 -1
- package/lib/components/organisms/HeaderContainer/HeaderContainer.d.ts +3 -1
- package/lib/components/organisms/HeaderContainer/HeaderContainer.js +2 -1
- package/lib/components/organisms/HeaderContainer/HeaderContainer.js.map +1 -1
- package/lib/components/organisms/ImageBubble/ImageBubble.d.ts +2 -1
- package/lib/components/{molecules → organisms}/InfoBubble/InfoBubble.d.ts +3 -2
- package/lib/components/organisms/InfoBubble/InfoBubble.js +45 -0
- package/lib/components/organisms/InfoBubble/InfoBubble.js.map +1 -0
- package/lib/components/organisms/InfoButton/InfoButton.d.ts +13 -0
- package/lib/components/organisms/InfoButton/InfoButton.js +31 -0
- package/lib/components/organisms/InfoButton/InfoButton.js.map +1 -0
- package/lib/components/organisms/MultiValuePicker/MultiValuePicker.d.ts +2 -1
- package/lib/components/organisms/Picker/Picker.d.ts +3 -2
- package/lib/components/organisms/ProgressBar/ProgressBar.d.ts +2 -1
- package/lib/components/organisms/ScrollList/DottedButton.d.ts +11 -0
- package/lib/components/organisms/ScrollList/DottedButton.js +61 -0
- package/lib/components/organisms/ScrollList/DottedButton.js.map +1 -0
- package/lib/components/organisms/ScrollList/ScrollList.d.ts +12 -2
- package/lib/components/organisms/ScrollList/ScrollList.js +80 -11
- package/lib/components/organisms/ScrollList/ScrollList.js.map +1 -1
- package/lib/components/organisms/ScrollList/TopActions.d.ts +8 -0
- package/lib/components/organisms/ScrollList/TopActions.js +42 -0
- package/lib/components/organisms/ScrollList/TopActions.js.map +1 -0
- package/lib/components/organisms/ScrollList/index.d.ts +2 -0
- package/lib/components/organisms/ScrollList/index.js +20 -0
- package/lib/components/organisms/ScrollList/index.js.map +1 -0
- package/lib/components/organisms/SearchBar/SearchBar.d.ts +2 -2
- package/lib/components/organisms/TagList/TagList.d.ts +18 -0
- package/lib/components/organisms/TagList/TagList.js +74 -0
- package/lib/components/organisms/TagList/TagList.js.map +1 -0
- package/lib/components/organisms/ToggleButton/ToggleButton.d.ts +2 -1
- package/lib/components/organisms/index.d.ts +6 -1
- package/lib/components/organisms/index.js +6 -1
- package/lib/components/organisms/index.js.map +1 -1
- package/lib/components/templates/BottomBar/BarItem.d.ts +13 -0
- package/lib/components/templates/BottomBar/BarItem.js +61 -0
- package/lib/components/templates/BottomBar/BarItem.js.map +1 -0
- package/lib/components/templates/BottomBar/BottomBar.d.ts +8 -0
- package/lib/components/templates/BottomBar/BottomBar.js +118 -0
- package/lib/components/templates/BottomBar/BottomBar.js.map +1 -0
- package/lib/components/templates/BottomBar/display.helper.d.ts +1 -0
- package/lib/components/templates/BottomBar/display.helper.js +33 -0
- package/lib/components/templates/BottomBar/display.helper.js.map +1 -0
- package/lib/components/templates/BottomBar/types.helper.d.ts +14 -0
- package/lib/components/templates/BottomBar/types.helper.js +19 -0
- package/lib/components/templates/BottomBar/types.helper.js.map +1 -0
- package/lib/components/templates/Dashboard/Chart/BarChart.d.ts +3 -2
- package/lib/components/templates/Dashboard/Chart/BarChart.js +15 -12
- package/lib/components/templates/Dashboard/Chart/BarChart.js.map +1 -1
- package/lib/components/templates/Dashboard/Chart/ChartRender.d.ts +10 -0
- package/lib/components/templates/Dashboard/Chart/ChartRender.js +47 -0
- package/lib/components/templates/Dashboard/Chart/ChartRender.js.map +1 -0
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/ChartTitle.d.ts +8 -0
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/ChartTitle.js +36 -0
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/ChartTitle.js.map +1 -0
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/IndicatorChart.d.ts +11 -0
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/IndicatorChart.js +71 -0
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/IndicatorChart.js.map +1 -0
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/IndicatorItem.d.ts +10 -0
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/IndicatorItem.js +76 -0
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/IndicatorItem.js.map +1 -0
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/SimpleIndicator.d.ts +10 -0
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/SimpleIndicator.js +71 -0
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/SimpleIndicator.js.map +1 -0
- package/lib/components/templates/Dashboard/Chart/LineChart.d.ts +2 -1
- package/lib/components/templates/Dashboard/Chart/LineChart.js +16 -13
- package/lib/components/templates/Dashboard/Chart/LineChart.js.map +1 -1
- package/lib/components/templates/Dashboard/Chart/PieChart/ChartLegend.d.ts +2 -1
- package/lib/components/templates/Dashboard/Chart/PieChart/LabelView.d.ts +2 -1
- package/lib/components/templates/Dashboard/Chart/PieChart/PieChart.d.ts +2 -1
- package/lib/components/templates/Dashboard/Chart/PieChart/PieChart.js +12 -8
- package/lib/components/templates/Dashboard/Chart/PieChart/PieChart.js.map +1 -1
- package/lib/components/templates/Dashboard/Chart/chart.helper.d.ts +3 -0
- package/lib/components/templates/Dashboard/Chart/chart.helper.js +14 -0
- package/lib/components/templates/Dashboard/Chart/chart.helper.js.map +1 -1
- package/lib/components/templates/Dashboard/Chart/index.d.ts +2 -0
- package/lib/components/templates/Dashboard/Chart/index.js +2 -0
- package/lib/components/templates/Dashboard/Chart/index.js.map +1 -1
- package/lib/components/templates/Dashboard/Dashboard.d.ts +4 -1
- package/lib/components/templates/Dashboard/Dashboard.js +17 -35
- package/lib/components/templates/Dashboard/Dashboard.js.map +1 -1
- package/lib/components/templates/Dashboard/index.d.ts +1 -0
- package/lib/components/templates/Dashboard/index.js +1 -0
- package/lib/components/templates/Dashboard/index.js.map +1 -1
- package/lib/components/templates/ObjectCard/ObjectCard.d.ts +2 -2
- package/lib/components/templates/TabsScreen/IndicatorBadge.d.ts +2 -1
- package/lib/components/templates/TabsScreen/Tab.d.ts +2 -1
- package/lib/components/templates/TabsScreen/TabsScreen.d.ts +2 -1
- package/lib/components/templates/TreeView/Branch.d.ts +20 -0
- package/lib/components/templates/TreeView/Branch.js +87 -0
- package/lib/components/templates/TreeView/Branch.js.map +1 -0
- package/lib/components/templates/TreeView/BranchCard.d.ts +11 -0
- package/lib/components/templates/TreeView/BranchCard.js +57 -0
- package/lib/components/templates/TreeView/BranchCard.js.map +1 -0
- package/lib/components/templates/TreeView/TreeView.d.ts +40 -0
- package/lib/components/templates/TreeView/TreeView.js +32 -0
- package/lib/components/templates/TreeView/TreeView.js.map +1 -0
- package/lib/components/templates/index.d.ts +2 -0
- package/lib/components/templates/index.js +2 -0
- package/lib/components/templates/index.js.map +1 -1
- package/lib/config/ConfigContext.d.ts +2 -1
- package/lib/hooks/use-click-outside.d.ts +2 -1
- package/lib/theme/ThemeContext.d.ts +2 -2
- package/lib/theme/WritingThemeContext.d.ts +2 -2
- package/lib/theme/themes.d.ts +20 -0
- package/lib/theme/themes.js +105 -0
- package/lib/theme/themes.js.map +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/utils/index.js.map +1 -1
- package/package.json +14 -14
- package/lib/components/molecules/InfoBubble/InfoBubble.js +0 -76
- package/lib/components/molecules/InfoBubble/InfoBubble.js.map +0 -1
package/README.md
CHANGED
|
@@ -29,13 +29,9 @@ Install the library :
|
|
|
29
29
|
yarn add @axelor/aos-mobile-ui
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
Compatibility with React v18.2.x and React Native v0.
|
|
32
|
+
Compatibility with React v18.2.x and React Native v0.70.x.
|
|
33
33
|
|
|
34
|
-
This package has a few required libraries as peer dependencies
|
|
35
|
-
|
|
36
|
-
- [react-native-vector-icons](https://www.npmjs.com/package/react-native-vector-icons)
|
|
37
|
-
- [react-native-system-navigation-bar](https://www.npmjs.com/package/react-native-system-navigation-bar)
|
|
38
|
-
- [react-native-pell-rich-editor](https://www.npmjs.com/package/react-native-pell-rich-editor)
|
|
34
|
+
This package has a few required libraries as peer dependencies, please check package.json for more informations.
|
|
39
35
|
|
|
40
36
|
### Use of basic components
|
|
41
37
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
interface BlockInteractionScreenProps {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
hideHeader?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare const BlockInteractionScreen: ({ children, hideHeader, }: BlockInteractionScreenProps) => JSX.Element;
|
|
6
|
+
declare const BlockInteractionScreen: ({ children, hideHeader, }: BlockInteractionScreenProps) => React.JSX.Element;
|
|
7
7
|
export default BlockInteractionScreen;
|
|
@@ -6,5 +6,5 @@ interface BootstrapIconProps {
|
|
|
6
6
|
color: ColorValue;
|
|
7
7
|
style?: React.CSSProperties | unknown;
|
|
8
8
|
}
|
|
9
|
-
declare const _default: React.MemoExoticComponent<({ name, size, color, style }: BootstrapIconProps) => JSX.Element>;
|
|
9
|
+
declare const _default: React.MemoExoticComponent<({ name, size, color, style }: BootstrapIconProps) => React.JSX.Element>;
|
|
10
10
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface HorizontalRuleProps {
|
|
2
3
|
style?: any;
|
|
3
4
|
}
|
|
4
|
-
declare const HorizontalRule: ({ style }: HorizontalRuleProps) => JSX.Element;
|
|
5
|
+
declare const HorizontalRule: ({ style }: HorizontalRuleProps) => React.JSX.Element;
|
|
5
6
|
export default HorizontalRule;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface HtmlInputProps {
|
|
2
3
|
style?: any;
|
|
3
4
|
styleToolbar?: any;
|
|
@@ -12,5 +13,5 @@ interface HtmlInputProps {
|
|
|
12
13
|
onFocus?: () => void;
|
|
13
14
|
onBlur?: () => void;
|
|
14
15
|
}
|
|
15
|
-
declare const HtmlInput: ({ style, styleToolbar, containerStyle, editorBackgroundColor, title, placeholder, onChange, defaultInput, readonly, onHeightChange, onFocus, onBlur, }: HtmlInputProps) => JSX.Element;
|
|
16
|
+
declare const HtmlInput: ({ style, styleToolbar, containerStyle, editorBackgroundColor, title, placeholder, onChange, defaultInput, readonly, onHeightChange, onFocus, onBlur, }: HtmlInputProps) => React.JSX.Element;
|
|
16
17
|
export default HtmlInput;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface IconProps {
|
|
2
3
|
style?: any;
|
|
3
4
|
name: string;
|
|
@@ -15,5 +16,5 @@ interface IconProps {
|
|
|
15
16
|
visible?: boolean;
|
|
16
17
|
onPress?: () => void;
|
|
17
18
|
}
|
|
18
|
-
declare const Icon: ({ style, name, isFontAwesome4, isFontAwesome5, color, size, touchable, visible, onPress, }: IconProps) => JSX.Element;
|
|
19
|
+
declare const Icon: ({ style, name, isFontAwesome4, isFontAwesome5, color, size, touchable, visible, onPress, }: IconProps) => React.JSX.Element;
|
|
19
20
|
export default Icon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LegacyRef } from 'react';
|
|
1
|
+
import React, { LegacyRef } from 'react';
|
|
2
2
|
import { KeyboardTypeOptions, NativeSyntheticEvent, TextInput, TextInputContentSizeChangeEventData } from 'react-native';
|
|
3
3
|
interface InputProps {
|
|
4
4
|
style?: any;
|
|
@@ -17,5 +17,5 @@ interface InputProps {
|
|
|
17
17
|
writingType?: 'title' | 'subtitle' | 'important' | 'details' | undefined;
|
|
18
18
|
onContentSizeChange?: (e: NativeSyntheticEvent<TextInputContentSizeChangeEventData>) => void;
|
|
19
19
|
}
|
|
20
|
-
declare const Input: ({ style, inputRef, value, onChange, placeholder, secureTextEntry, readOnly, onSelection, multiline, numberOfLines, keyboardType, onEndFocus, isFocus, writingType, onContentSizeChange, }: InputProps) => JSX.Element;
|
|
20
|
+
declare const Input: ({ style, inputRef, value, onChange, placeholder, secureTextEntry, readOnly, onSelection, multiline, numberOfLines, keyboardType, onEndFocus, isFocus, writingType, onContentSizeChange, }: InputProps) => React.JSX.Element;
|
|
21
21
|
export default Input;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
interface Offset {
|
|
3
3
|
ios: number;
|
|
4
4
|
android: number;
|
|
@@ -13,5 +13,5 @@ declare const KeyboardAvoidingScrollView: ({ globalStyle, style, children, keybo
|
|
|
13
13
|
children: ReactNode;
|
|
14
14
|
keyboardOffset?: Offset;
|
|
15
15
|
refresh?: Refresh;
|
|
16
|
-
}) => JSX.Element;
|
|
16
|
+
}) => React.JSX.Element;
|
|
17
17
|
export default KeyboardAvoidingScrollView;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
declare const RadioButton: ({ style, onPress, selected, title, size, readonly, }: {
|
|
2
3
|
onPress: () => void;
|
|
3
4
|
selected: boolean;
|
|
@@ -5,5 +6,5 @@ declare const RadioButton: ({ style, onPress, selected, title, size, readonly, }
|
|
|
5
6
|
title: string;
|
|
6
7
|
size?: number;
|
|
7
8
|
style?: any;
|
|
8
|
-
}) => JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
9
10
|
export default RadioButton;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface ScreenProps {
|
|
2
3
|
style?: any;
|
|
3
4
|
children: any;
|
|
@@ -5,5 +6,5 @@ interface ScreenProps {
|
|
|
5
6
|
removeSpaceOnTop?: boolean;
|
|
6
7
|
loading?: boolean;
|
|
7
8
|
}
|
|
8
|
-
declare const Screen: ({ style, children, fixedItems, removeSpaceOnTop, loading, }: ScreenProps) => JSX.Element;
|
|
9
|
+
declare const Screen: ({ style, children, fixedItems, removeSpaceOnTop, loading, }: ScreenProps) => React.JSX.Element;
|
|
9
10
|
export default Screen;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface Refresh {
|
|
2
3
|
loading: boolean;
|
|
3
4
|
fetcher: () => void;
|
|
@@ -7,5 +8,5 @@ interface ScrollViewProps {
|
|
|
7
8
|
children?: any;
|
|
8
9
|
refresh?: Refresh;
|
|
9
10
|
}
|
|
10
|
-
declare const ScrollView: ({ style, children, refresh }: ScrollViewProps) => JSX.Element;
|
|
11
|
+
declare const ScrollView: ({ style, children, refresh }: ScrollViewProps) => React.JSX.Element;
|
|
11
12
|
export default ScrollView;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface SwitchProps {
|
|
2
3
|
isEnabled: boolean;
|
|
3
4
|
style: any;
|
|
4
5
|
readonly?: boolean;
|
|
5
6
|
handleToggle: (any: any) => void;
|
|
6
7
|
}
|
|
7
|
-
declare const Switch: ({ isEnabled, handleToggle, style, readonly, }: SwitchProps) => JSX.Element;
|
|
8
|
+
declare const Switch: ({ isEnabled, handleToggle, style, readonly, }: SwitchProps) => React.JSX.Element;
|
|
8
9
|
export default Switch;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export interface TextProps {
|
|
2
3
|
style?: any;
|
|
3
4
|
numberOfLines?: number;
|
|
@@ -8,5 +9,5 @@ export interface TextProps {
|
|
|
8
9
|
fontSize?: number;
|
|
9
10
|
writingType?: 'title' | 'subtitle' | 'important' | 'details' | undefined;
|
|
10
11
|
}
|
|
11
|
-
declare const Text: ({ style, numberOfLines, adjustsFontSizeToFit, onTextLayout, children, textColor, fontSize, writingType, }: TextProps) => JSX.Element;
|
|
12
|
+
declare const Text: ({ style, numberOfLines, adjustsFontSizeToFit, onTextLayout, children, textColor, fontSize, writingType, }: TextProps) => React.JSX.Element;
|
|
12
13
|
export default Text;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ButtonProps } from '../Button/Button';
|
|
2
3
|
interface ButtonConfig extends ButtonProps {
|
|
3
4
|
hide?: boolean;
|
|
@@ -18,5 +19,5 @@ interface AlertProps {
|
|
|
18
19
|
confirmButtonConfig?: ButtonConfig;
|
|
19
20
|
translator?: (key: string) => string;
|
|
20
21
|
}
|
|
21
|
-
declare const Alert: ({ style, buttonsContainerStyle, visible, title, titleStyle, noBoldTitle, children, cancelButtonConfig, confirmButtonConfig, translator, }: AlertProps) => JSX.Element;
|
|
22
|
+
declare const Alert: ({ style, buttonsContainerStyle, visible, title, titleStyle, noBoldTitle, children, cancelButtonConfig, confirmButtonConfig, translator, }: AlertProps) => React.JSX.Element;
|
|
22
23
|
export default Alert;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface AttachmentCardProps {
|
|
2
3
|
fileName: string;
|
|
3
4
|
creationDate: string;
|
|
4
5
|
onPress: () => void;
|
|
5
6
|
translator: (translationKey: string) => string;
|
|
6
7
|
}
|
|
7
|
-
declare const AttachmentCard: ({ fileName, creationDate, onPress, translator, }: AttachmentCardProps) => JSX.Element;
|
|
8
|
+
declare const AttachmentCard: ({ fileName, creationDate, onPress, translator, }: AttachmentCardProps) => React.JSX.Element;
|
|
8
9
|
export default AttachmentCard;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Color } from '../../../theme';
|
|
2
3
|
interface BadgeProps {
|
|
3
4
|
style?: any;
|
|
@@ -6,5 +7,5 @@ interface BadgeProps {
|
|
|
6
7
|
color?: Color;
|
|
7
8
|
numberOfLines?: number;
|
|
8
9
|
}
|
|
9
|
-
declare const Badge: ({ style, txtStyle, title, color, numberOfLines, }: BadgeProps) => JSX.Element;
|
|
10
|
+
declare const Badge: ({ style, txtStyle, title, color, numberOfLines, }: BadgeProps) => React.JSX.Element;
|
|
10
11
|
export default Badge;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* @description To use this component, please use
|
|
3
4
|
* setBlockInteractionConfig({
|
|
@@ -14,5 +15,5 @@
|
|
|
14
15
|
* ],
|
|
15
16
|
* })
|
|
16
17
|
*/
|
|
17
|
-
declare const BlockInteractionMessage: ({}: {}) => JSX.Element;
|
|
18
|
+
declare const BlockInteractionMessage: ({}: {}) => React.JSX.Element;
|
|
18
19
|
export default BlockInteractionMessage;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Color } from '../../../theme/themes';
|
|
2
3
|
export interface ButtonProps {
|
|
3
4
|
width?: string | number;
|
|
@@ -13,5 +14,5 @@ export interface ButtonProps {
|
|
|
13
14
|
disabled?: boolean;
|
|
14
15
|
onDisabledPress?: () => void;
|
|
15
16
|
}
|
|
16
|
-
declare const Button: ({ width, color, isNeutralBackground, iconName, iconSize, title, style, styleIcon, styleTxt, onPress, disabled, onDisabledPress, }: ButtonProps) => JSX.Element;
|
|
17
|
+
declare const Button: ({ width, color, isNeutralBackground, iconName, iconSize, title, style, styleIcon, styleTxt, onPress, disabled, onDisabledPress, }: ButtonProps) => React.JSX.Element;
|
|
17
18
|
export default Button;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface CardIconButtonProps {
|
|
2
3
|
style?: any;
|
|
3
4
|
iconName: string;
|
|
4
5
|
iconColor: string;
|
|
5
6
|
onPress: (any: any) => void;
|
|
7
|
+
onLongPress?: (any: any) => void;
|
|
6
8
|
}
|
|
7
|
-
declare const CardIconButton: ({ style, iconName, iconColor, onPress, }: CardIconButtonProps) => JSX.Element;
|
|
9
|
+
declare const CardIconButton: ({ style, iconName, iconColor, onPress, onLongPress, }: CardIconButtonProps) => React.JSX.Element;
|
|
8
10
|
export default CardIconButton;
|
|
@@ -15,28 +15,29 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import React
|
|
18
|
+
import React from 'react';
|
|
19
19
|
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<Icon size={20} name={iconName} color={iconColor}/>
|
|
20
|
+
import { Card, Icon } from '../../atoms';
|
|
21
|
+
const CardIconButton = ({ style, iconName, iconColor, onPress = () => { }, onLongPress = () => { }, }) => {
|
|
22
|
+
return (<TouchableOpacity style={[styles.container, style]} onLongPress={onLongPress} onPress={onPress} activeOpacity={0.9}>
|
|
23
|
+
<Card style={styles.cardContainer}>
|
|
24
|
+
<Icon size={20} name={iconName} color={iconColor}/>
|
|
25
|
+
</Card>
|
|
27
26
|
</TouchableOpacity>);
|
|
28
27
|
};
|
|
29
|
-
const
|
|
28
|
+
const styles = StyleSheet.create({
|
|
30
29
|
container: {
|
|
30
|
+
flex: 1,
|
|
31
|
+
margin: 2,
|
|
32
|
+
},
|
|
33
|
+
cardContainer: {
|
|
31
34
|
height: '100%',
|
|
32
|
-
width: '
|
|
33
|
-
borderRadius: 8,
|
|
35
|
+
width: '100%',
|
|
34
36
|
alignSelf: 'center',
|
|
35
|
-
shadowOpacity: 0,
|
|
36
|
-
elevation: 0,
|
|
37
37
|
justifyContent: 'center',
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
paddingHorizontal: 10,
|
|
39
|
+
paddingRight: 10,
|
|
40
|
+
paddingVertical: 10,
|
|
40
41
|
},
|
|
41
42
|
});
|
|
42
43
|
export default CardIconButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardIconButton.js","sourceRoot":"","sources":["../../../../src/components/molecules/CardIconButton/CardIconButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"CardIconButton.js","sourceRoot":"","sources":["../../../../src/components/molecules/CardIconButton/CardIconButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AAUvC,MAAM,cAAc,GAAG,CAAC,EACtB,KAAK,EACL,QAAQ,EACR,SAAS,EACT,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,EAClB,WAAW,GAAG,GAAG,EAAE,GAAE,CAAC,GACF,EAAE,EAAE;IACxB,OAAO,CACL,CAAC,gBAAgB,CACf,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CACjC,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,aAAa,CAAC,CAAC,GAAG,CAAC,CACnB;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAChC;QAAA,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,EACnD;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,gBAAgB,CAAC,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;QACP,MAAM,EAAE,CAAC;KACV;IACD,aAAa,EAAE;QACb,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,MAAM;QACb,SAAS,EAAE,QAAQ;QACnB,cAAc,EAAE,QAAQ;QACxB,iBAAiB,EAAE,EAAE;QACrB,YAAY,EAAE,EAAE;QAChB,eAAe,EAAE,EAAE;KACpB;CACF,CAAC,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CardIndicatorProps {
|
|
3
|
+
style?: any;
|
|
4
|
+
textIndicationStyle?: any;
|
|
5
|
+
indication?: string;
|
|
6
|
+
position?: 'left' | 'right';
|
|
7
|
+
children: any;
|
|
8
|
+
isVisible: boolean;
|
|
9
|
+
handleClose: () => void;
|
|
10
|
+
space?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const CardIndicator: ({ style, textIndicationStyle, indication, position, children, isVisible, handleClose, space, }: CardIndicatorProps) => React.JSX.Element;
|
|
13
|
+
export default CardIndicator;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useMemo, useEffect, useRef } from 'react';
|
|
19
|
+
import { Dimensions, StyleSheet, View } from 'react-native';
|
|
20
|
+
import { OUTSIDE_INDICATOR, useClickOutside, } from '../../../hooks/use-click-outside';
|
|
21
|
+
import { checkNullString } from '../../../utils';
|
|
22
|
+
import { Card, Text } from '../../atoms';
|
|
23
|
+
const CardIndicator = ({ style, textIndicationStyle, indication, position = 'right', children, isVisible, handleClose, space = Dimensions.get('window').width * 0.08, }) => {
|
|
24
|
+
const wrapperRef = useRef(null);
|
|
25
|
+
const clickOutside = useClickOutside({ wrapperRef });
|
|
26
|
+
const styles = useMemo(() => getStyles(isVisible, position, space), [isVisible, position, space]);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (clickOutside === OUTSIDE_INDICATOR && isVisible) {
|
|
29
|
+
handleClose();
|
|
30
|
+
}
|
|
31
|
+
}, [clickOutside, isVisible, handleClose]);
|
|
32
|
+
return (<View ref={wrapperRef} style={[styles.container, style]}>
|
|
33
|
+
{children}
|
|
34
|
+
{!checkNullString(indication) && isVisible ? (<Card style={[styles.indicationCard, textIndicationStyle]}>
|
|
35
|
+
<Text>{indication}</Text>
|
|
36
|
+
</Card>) : null}
|
|
37
|
+
</View>);
|
|
38
|
+
};
|
|
39
|
+
const getStyles = (isOpen, position, space) => StyleSheet.create({
|
|
40
|
+
container: {
|
|
41
|
+
flexDirection: 'row',
|
|
42
|
+
alignItems: 'center',
|
|
43
|
+
zIndex: isOpen ? 50 : 0,
|
|
44
|
+
},
|
|
45
|
+
indicationCard: {
|
|
46
|
+
position: 'absolute',
|
|
47
|
+
paddingLeft: 10,
|
|
48
|
+
paddingVertical: 10,
|
|
49
|
+
paddingRight: 10,
|
|
50
|
+
zIndex: 99,
|
|
51
|
+
[position === 'left' ? 'right' : 'left']: space,
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
export default CardIndicator;
|
|
55
|
+
//# sourceMappingURL=CardIndicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardIndicator.js","sourceRoot":"","sources":["../../../../src/components/molecules/CardIndicator/CardIndicator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AACxD,OAAO,EAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC1D,OAAO,EACL,iBAAiB,EACjB,eAAe,GAChB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AAavC,MAAM,aAAa,GAAG,CAAC,EACrB,KAAK,EACL,mBAAmB,EACnB,UAAU,EACV,QAAQ,GAAG,OAAO,EAClB,QAAQ,EACR,SAAS,EACT,WAAW,EACX,KAAK,GAAG,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,KAAK,GAAG,IAAI,GAC1B,EAAE,EAAE;IACvB,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAChC,MAAM,YAAY,GAAG,eAAe,CAAC,EAAC,UAAU,EAAC,CAAC,CAAC;IAEnD,MAAM,MAAM,GAAG,OAAO,CACpB,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,EAC3C,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAC7B,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,YAAY,KAAK,iBAAiB,IAAI,SAAS,EAAE;YACnD,WAAW,EAAE,CAAC;SACf;IACH,CAAC,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;IAE3C,OAAO,CACL,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CACtD;MAAA,CAAC,QAAQ,CACT;MAAA,CAAC,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,CAC3C,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,EAAE,mBAAmB,CAAC,CAAC,CACxD;UAAA,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,EAAE,IAAI,CAC1B;QAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,CAC5C,UAAU,CAAC,MAAM,CAAC;IAChB,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;KACxB;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,UAAU;QACpB,WAAW,EAAE,EAAE;QACf,eAAe,EAAE,EAAE;QACnB,YAAY,EAAE,EAAE;QAChB,MAAM,EAAE,EAAE;QACV,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK;KAChD;CACF,CAAC,CAAC;AAEL,eAAe,aAAa,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface CheckboxProps {
|
|
2
3
|
style?: any;
|
|
3
4
|
styleTxt?: any;
|
|
@@ -9,5 +10,5 @@ interface CheckboxProps {
|
|
|
9
10
|
isDefaultPartialChecked?: boolean;
|
|
10
11
|
onChange: (any: any) => void;
|
|
11
12
|
}
|
|
12
|
-
declare const Checkbox: ({ style, styleTxt, iconColor, iconSize, disabled, title, isDefaultChecked, isDefaultPartialChecked, onChange, }: CheckboxProps) => JSX.Element;
|
|
13
|
+
declare const Checkbox: ({ style, styleTxt, iconColor, iconSize, disabled, title, isDefaultChecked, isDefaultPartialChecked, onChange, }: CheckboxProps) => React.JSX.Element;
|
|
13
14
|
export default Checkbox;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Color } from '../../../theme';
|
|
2
3
|
interface ChipProps {
|
|
3
4
|
selected: boolean;
|
|
@@ -8,5 +9,5 @@ interface ChipProps {
|
|
|
8
9
|
marginHorizontal?: number;
|
|
9
10
|
style?: any;
|
|
10
11
|
}
|
|
11
|
-
declare const Chip: ({ selected, title, onPress, selectedColor, width, marginHorizontal, style, }: ChipProps) => JSX.Element;
|
|
12
|
+
declare const Chip: ({ selected, title, onPress, selectedColor, width, marginHorizontal, style, }: ChipProps) => React.JSX.Element;
|
|
12
13
|
export default Chip;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Color } from '../../../theme/themes';
|
|
2
3
|
interface CircleButtonProps {
|
|
3
4
|
square?: boolean;
|
|
@@ -10,5 +11,5 @@ interface CircleButtonProps {
|
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
onDisabledPress?: () => void;
|
|
12
13
|
}
|
|
13
|
-
declare const CircleButton: ({ square, size, color, isNeutralBackground, iconName, style, onPress, disabled, onDisabledPress, }: CircleButtonProps) => JSX.Element;
|
|
14
|
+
declare const CircleButton: ({ square, size, color, isNeutralBackground, iconName, style, onPress, disabled, onDisabledPress, }: CircleButtonProps) => React.JSX.Element;
|
|
14
15
|
export default CircleButton;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface ClearableCardPops {
|
|
2
3
|
style?: any;
|
|
3
4
|
valueTxt: string;
|
|
4
5
|
onClearPress: () => void;
|
|
5
6
|
clearable: boolean;
|
|
6
7
|
}
|
|
7
|
-
declare const ClearableCard: ({ style, valueTxt, onClearPress, clearable, }: ClearableCardPops) => JSX.Element;
|
|
8
|
+
declare const ClearableCard: ({ style, valueTxt, onClearPress, clearable, }: ClearableCardPops) => React.JSX.Element;
|
|
8
9
|
export default ClearableCard;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
declare const predefinedPositions: {
|
|
2
3
|
left: {
|
|
3
4
|
left: number;
|
|
@@ -48,5 +49,5 @@ interface DoubleIconProps {
|
|
|
48
49
|
left?: number;
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
declare const DoubleIcon: ({ style, topIconConfig, bottomIconConfig, size, predefinedPosition, topIconPosition, touchable, onPress, }: DoubleIconProps) => JSX.Element;
|
|
52
|
+
declare const DoubleIcon: ({ style, topIconConfig, bottomIconConfig, size, predefinedPosition, topIconPosition, touchable, onPress, }: DoubleIconProps) => React.JSX.Element;
|
|
52
53
|
export default DoubleIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface DropdownCardProps {
|
|
2
3
|
style?: any;
|
|
3
4
|
styleText?: any;
|
|
@@ -8,5 +9,5 @@ interface DropdownCardProps {
|
|
|
8
9
|
onPress?: () => void;
|
|
9
10
|
showIcon?: boolean;
|
|
10
11
|
}
|
|
11
|
-
declare const DropdownCard: ({ style, styleText, styleContainer, title, dropdownIsOpen, children, onPress, showIcon, }: DropdownCardProps) => JSX.Element;
|
|
12
|
+
declare const DropdownCard: ({ style, styleText, styleContainer, title, dropdownIsOpen, children, onPress, showIcon, }: DropdownCardProps) => React.JSX.Element;
|
|
12
13
|
export default DropdownCard;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface DropdownMenuProps {
|
|
2
3
|
children: any;
|
|
3
4
|
}
|
|
4
|
-
declare const DropdownMenu: ({ children }: DropdownMenuProps) => JSX.Element;
|
|
5
|
+
declare const DropdownMenu: ({ children }: DropdownMenuProps) => React.JSX.Element;
|
|
5
6
|
export default DropdownMenu;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface EditableInputProps {
|
|
2
3
|
placeholder: string;
|
|
3
4
|
onValidate: (any: any) => void;
|
|
@@ -5,5 +6,5 @@ interface EditableInputProps {
|
|
|
5
6
|
multiline?: boolean;
|
|
6
7
|
numberOfLines?: number;
|
|
7
8
|
}
|
|
8
|
-
declare const EditableInput: ({ placeholder, onValidate, defaultValue, multiline, numberOfLines, }: EditableInputProps) => JSX.Element;
|
|
9
|
+
declare const EditableInput: ({ placeholder, onValidate, defaultValue, multiline, numberOfLines, }: EditableInputProps) => React.JSX.Element;
|
|
9
10
|
export default EditableInput;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface FormHtmlInputProps {
|
|
2
3
|
title: string;
|
|
3
4
|
placeholder?: string;
|
|
@@ -8,5 +9,5 @@ interface FormHtmlInputProps {
|
|
|
8
9
|
required?: boolean;
|
|
9
10
|
onChange?: (any: any) => void;
|
|
10
11
|
}
|
|
11
|
-
declare const FormHtmlInput: ({ title, placeholder, defaultValue, readonly, hideIfNull, style, required, onChange, }: FormHtmlInputProps) => JSX.Element;
|
|
12
|
+
declare const FormHtmlInput: ({ title, placeholder, defaultValue, readonly, hideIfNull, style, required, onChange, }: FormHtmlInputProps) => React.JSX.Element;
|
|
12
13
|
export default FormHtmlInput;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { KeyboardTypeOptions } from 'react-native';
|
|
2
3
|
interface FormIncrementInputProps {
|
|
3
4
|
style?: any;
|
|
@@ -16,5 +17,5 @@ interface FormIncrementInputProps {
|
|
|
16
17
|
keyboardType?: KeyboardTypeOptions;
|
|
17
18
|
scale?: number;
|
|
18
19
|
}
|
|
19
|
-
declare const FormIncrementInput: ({ style, title, readOnly, required, defaultValue, decimalSpacer, thousandSpacer, onChange, defaultFormatting, stepSize, minValue, maxValue, isBigButton, keyboardType, scale, }: FormIncrementInputProps) => JSX.Element;
|
|
20
|
+
declare const FormIncrementInput: ({ style, title, readOnly, required, defaultValue, decimalSpacer, thousandSpacer, onChange, defaultFormatting, stepSize, minValue, maxValue, isBigButton, keyboardType, scale, }: FormIncrementInputProps) => React.JSX.Element;
|
|
20
21
|
export default FormIncrementInput;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { KeyboardTypeOptions } from 'react-native';
|
|
2
3
|
interface FormInputProps {
|
|
3
4
|
title: string;
|
|
@@ -12,5 +13,5 @@ interface FormInputProps {
|
|
|
12
13
|
multiline?: boolean;
|
|
13
14
|
adjustHeightWithLines?: boolean;
|
|
14
15
|
}
|
|
15
|
-
declare const FormInput: ({ title, defaultValue, readOnly, style, required, onChange, onSelection, onEndFocus, keyboardType, multiline, adjustHeightWithLines, }: FormInputProps) => JSX.Element;
|
|
16
|
+
declare const FormInput: ({ title, defaultValue, readOnly, style, required, onChange, onSelection, onEndFocus, keyboardType, multiline, adjustHeightWithLines, }: FormInputProps) => React.JSX.Element;
|
|
16
17
|
export default FormInput;
|
|
@@ -4,5 +4,5 @@ interface FromToProps {
|
|
|
4
4
|
toComponent: React.ReactNode;
|
|
5
5
|
style?: any;
|
|
6
6
|
}
|
|
7
|
-
declare function FromTo({ fromComponent, toComponent, style }: FromToProps): JSX.Element;
|
|
7
|
+
declare function FromTo({ fromComponent, toComponent, style }: FromToProps): React.JSX.Element;
|
|
8
8
|
export default FromTo;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface HalfLabelCardProps {
|
|
2
3
|
style?: any;
|
|
3
4
|
iconName: string;
|
|
4
5
|
title: string;
|
|
5
6
|
onPress: () => void;
|
|
6
7
|
}
|
|
7
|
-
declare const HalfLabelCard: ({ style, iconName, title, onPress, }: HalfLabelCardProps) => JSX.Element;
|
|
8
|
+
declare const HalfLabelCard: ({ style, iconName, title, onPress, }: HalfLabelCardProps) => React.JSX.Element;
|
|
8
9
|
export default HalfLabelCard;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LegacyRef } from 'react';
|
|
1
|
+
import React, { LegacyRef } from 'react';
|
|
2
2
|
import { KeyboardTypeOptions, TextInput } from 'react-native';
|
|
3
3
|
interface IconInputProps {
|
|
4
4
|
style?: any;
|
|
@@ -18,5 +18,5 @@ interface IconInputProps {
|
|
|
18
18
|
leftIconsList?: any[];
|
|
19
19
|
rightIconsList?: any[];
|
|
20
20
|
}
|
|
21
|
-
declare const IconInput: ({ style, inputRef, value, onChange, placeholder, readOnly, required, secureTextEntry, onSelection, multiline, numberOfLines, keyboardType, onEndFocus, isFocus, leftIconsList, rightIconsList, }: IconInputProps) => JSX.Element;
|
|
21
|
+
declare const IconInput: ({ style, inputRef, value, onChange, placeholder, readOnly, required, secureTextEntry, onSelection, multiline, numberOfLines, keyboardType, onEndFocus, isFocus, leftIconsList, rightIconsList, }: IconInputProps) => React.JSX.Element;
|
|
22
22
|
export default IconInput;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ImageResizeMode, ImageSourcePropType, ImageStyle, StyleProp } from 'react-native';
|
|
2
3
|
interface ImageProps {
|
|
3
4
|
imageSize?: StyleProp<ImageStyle>;
|
|
@@ -6,5 +7,5 @@ interface ImageProps {
|
|
|
6
7
|
source: ImageSourcePropType;
|
|
7
8
|
defaultIconSize?: number;
|
|
8
9
|
}
|
|
9
|
-
declare const Image: ({ imageSize, generalStyle, resizeMode, source, defaultIconSize, }: ImageProps) => JSX.Element;
|
|
10
|
+
declare const Image: ({ imageSize, generalStyle, resizeMode, source, defaultIconSize, }: ImageProps) => React.JSX.Element;
|
|
10
11
|
export default Image;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { KeyboardTypeOptions } from 'react-native';
|
|
2
3
|
interface IncrementProps {
|
|
3
4
|
style?: any;
|
|
@@ -17,5 +18,5 @@ interface IncrementProps {
|
|
|
17
18
|
keyboardType?: KeyboardTypeOptions;
|
|
18
19
|
scale?: number;
|
|
19
20
|
}
|
|
20
|
-
declare const Increment: ({ style, inputStyle, value, decimalSpacer, thousandSpacer, onValueChange, onFocus, onBlur, readonly, defaultFormatting, stepSize, minValue, maxValue, isBigButton, keyboardType, scale, }: IncrementProps) => JSX.Element;
|
|
21
|
+
declare const Increment: ({ style, inputStyle, value, decimalSpacer, thousandSpacer, onValueChange, onFocus, onBlur, readonly, defaultFormatting, stepSize, minValue, maxValue, isBigButton, keyboardType, scale, }: IncrementProps) => React.JSX.Element;
|
|
21
22
|
export default Increment;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface IncrementButtonProps {
|
|
2
3
|
style?: any;
|
|
3
4
|
iconName: 'plus-lg' | 'dash-lg';
|
|
@@ -6,5 +7,5 @@ interface IncrementButtonProps {
|
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
isBigButton?: boolean;
|
|
8
9
|
}
|
|
9
|
-
declare const IncrementButton: ({ style, iconName, onPress, readonly, disabled, isBigButton, }: IncrementButtonProps) => JSX.Element;
|
|
10
|
+
declare const IncrementButton: ({ style, iconName, onPress, readonly, disabled, isBigButton, }: IncrementButtonProps) => React.JSX.Element;
|
|
10
11
|
export default IncrementButton;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Color } from '../../../theme';
|
|
2
3
|
type LabelType = 'info' | 'success' | 'danger' | 'error';
|
|
3
4
|
interface LabelProps {
|
|
@@ -10,5 +11,5 @@ interface LabelProps {
|
|
|
10
11
|
showClose?: boolean;
|
|
11
12
|
onClose?: () => void;
|
|
12
13
|
}
|
|
13
|
-
declare const Label: ({ style, message, type, iconName, color, visible, showClose, onClose, }: LabelProps) => JSX.Element;
|
|
14
|
+
declare const Label: ({ style, message, type, iconName, color, visible, showClose, onClose, }: LabelProps) => React.JSX.Element;
|
|
14
15
|
export default Label;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface LabelTextProps {
|
|
2
3
|
style?: any;
|
|
3
4
|
iconStyle?: any;
|
|
@@ -10,5 +11,5 @@ interface LabelTextProps {
|
|
|
10
11
|
iconName?: string;
|
|
11
12
|
onlyOneLine?: boolean;
|
|
12
13
|
}
|
|
13
|
-
declare const LabelText: ({ style, iconStyle, textStyle, title, value, size, textSize, color, iconName, onlyOneLine, }: LabelTextProps) => JSX.Element;
|
|
14
|
+
declare const LabelText: ({ style, iconStyle, textStyle, title, value, size, textSize, color, iconName, onlyOneLine, }: LabelTextProps) => React.JSX.Element;
|
|
14
15
|
export default LabelText;
|