@beppla/tapas-ui 1.0.67 → 1.0.69
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/commonjs/Alert/Alert.js +1 -2
- package/commonjs/AnimatedNavItem/AnimatedNavItem.js +1 -2
- package/commonjs/AnimatedNavItem/index.js +15 -10
- package/commonjs/BarChart/BarChart.js +90 -113
- package/commonjs/BarChart/index.js +0 -1
- package/commonjs/Button/Button.js +78 -97
- package/commonjs/Button/ButtonGroup.js +1 -2
- package/commonjs/Button/react-native-hoverable.d.js +0 -1
- package/commonjs/Calendar/Calendar.base.js +190 -163
- package/commonjs/Calendar/Calendar.js +102 -87
- package/commonjs/Calendar/ConcreteTimeSelector.js +271 -221
- package/commonjs/Calendar/CustomRange.js +324 -272
- package/commonjs/Calendar/DaySelector.js +0 -1
- package/commonjs/Calendar/MonthSelector.js +0 -1
- package/commonjs/Calendar/TimeSelector.js +274 -224
- package/commonjs/Calendar/WeekDaySelector.js +0 -1
- package/commonjs/Calendar/helper.js +68 -69
- package/commonjs/Calendar/local.js +1 -2
- package/commonjs/Calendar/types.js +10 -11
- package/commonjs/Card/Card.js +150 -160
- package/commonjs/CheckBox/CheckBox.js +1 -2
- package/commonjs/CheckBox/CheckBoxItem.js +1 -2
- package/commonjs/CheckBox/GroupCheckBox.js +80 -68
- package/commonjs/CircularProgress/CircularProgress.js +0 -12
- package/commonjs/Collapsible/Collapsible.js +102 -56
- package/commonjs/DashboardCard/DashboardCard.js +94 -75
- package/commonjs/DataCell/DataCell.js +205 -260
- package/commonjs/DataCell/index.js +0 -1
- package/commonjs/DataTable/DataTable.js +136 -142
- package/commonjs/DataTable/index.js +0 -1
- package/commonjs/DeviceSelectionModal/DeviceSelectionModal.js +244 -243
- package/commonjs/DraggableFlatList/DraggableFlatList.js +9 -12
- package/commonjs/Drawer/Drawer.js +140 -160
- package/commonjs/Dropdown/CustomDropdown.js +0 -1
- package/commonjs/Dropdown/Dropdown.js +1 -2
- package/commonjs/Dropdown/InputDropdown.js +123 -115
- package/commonjs/ExternalLink/ExternalLink.js +50 -59
- package/commonjs/Gantt/Accessories.js +168 -136
- package/commonjs/Gantt/Gantt.js +0 -1
- package/commonjs/Gantt/GanttInnerElementType.js +102 -94
- package/commonjs/Gantt/helper.js +1 -2
- package/commonjs/Gantt/types.js +0 -1
- package/commonjs/Grid/FixedSizeGrid.js +76 -83
- package/commonjs/Grid/Grid.base.js +374 -358
- package/commonjs/Grid/StaticFixedSizeGrid.js +0 -1
- package/commonjs/Grid/VariableSizeGrid.js +113 -121
- package/commonjs/Grid/helper.js +0 -1
- package/commonjs/Grid/timer.js +4 -9
- package/commonjs/Header/Header.js +1 -2
- package/commonjs/HelloWave/HelloWave.js +1 -2
- package/commonjs/Hoverable/Hoverable.js +1 -2
- package/commonjs/IconText/IconText.js +0 -1
- package/commonjs/Icons/.!11492!expoFontLoader.js +205 -0
- package/commonjs/Icons/TapasIcon.js +1 -2
- package/commonjs/Icons/TapasIconExpo.js +94 -102
- package/commonjs/Icons/expoFontLoader.js +1 -2
- package/commonjs/Icons/fontLoader.js +0 -1
- package/commonjs/Icons/index.js +1 -2
- package/commonjs/Icons/smartFontLoader.js +222 -267
- package/commonjs/Image/Image.js +96 -107
- package/commonjs/Image/PreviewImg.js +63 -86
- package/commonjs/Input/Input.js +1 -2
- package/commonjs/Layout/DrawerContext.js +35 -1
- package/commonjs/Layout/Layout.js +1 -2
- package/commonjs/Layout/ToastContext.js +0 -1
- package/commonjs/Layout/index.js +34 -39
- package/commonjs/LineChart/LineChart.js +144 -127
- package/commonjs/LineChart/index.js +0 -1
- package/commonjs/ListItem/ListItem.js +0 -1
- package/commonjs/Loading/Loading.js +1 -2
- package/commonjs/MessageBox/MessageBox.js +126 -128
- package/commonjs/MultiSelector/MultiSelector.js +0 -1
- package/commonjs/MultiSelector/index.js +8 -4
- package/commonjs/Navigation/Navigation.js +0 -1
- package/commonjs/Notification/Notification.js +1 -2
- package/commonjs/Notification/index.js +8 -7
- package/commonjs/NumericInput/NumericInput.js +0 -24
- package/commonjs/Overlay/Overlay.js +30 -30
- package/commonjs/Pagination/Pagination.js +139 -121
- package/commonjs/PieChart/PieChart.js +97 -75
- package/commonjs/PieChart/index.js +3 -3
- package/commonjs/Popover/Popover.js +137 -113
- package/commonjs/Progress/Progress.js +0 -1
- package/commonjs/Quantity/Quantity.js +122 -118
- package/commonjs/Quantity/index.js +3 -1
- package/commonjs/RadioButton/RadioButton.js +46 -95
- package/commonjs/ReasonModal/ReasonModal.js +122 -126
- package/commonjs/ReasonModal/index.js +15 -10
- package/commonjs/ScanButton/ScanButton.js +64 -51
- package/commonjs/SearchInput/SearchInput.js +0 -1
- package/commonjs/SearchInput/index.js +8 -7
- package/commonjs/SheetTitle/SheetTitle.js +1 -2
- package/commonjs/Shell/Shell.js +92 -85
- package/commonjs/Shell/styles.js +0 -1
- package/commonjs/Shell/types.js +0 -1
- package/commonjs/StatisticCard/StatisticCard.js +47 -42
- package/commonjs/StatisticCard/index.js +1 -2
- package/commonjs/Status/Status.js +0 -1
- package/commonjs/Steps/Steps.js +43 -40
- package/commonjs/TabTitle/TabTitle.js +0 -1
- package/commonjs/TabTitle/index.js +1 -2
- package/commonjs/TableColumnHeader/TableColumnHeader.js +140 -135
- package/commonjs/TableColumnHeader/index.js +15 -10
- package/commonjs/Tag/Tag.js +1 -2
- package/commonjs/Task/Task.js +0 -1
- package/commonjs/Task/type.js +0 -1
- package/commonjs/Text/Text.js +1 -2
- package/commonjs/TextArea/TextArea.js +82 -1
- package/commonjs/Theme/ThemeProvider.js +1 -2
- package/commonjs/Theme/defaultTheme.js +18 -11
- package/commonjs/Theme/themed.d.js +0 -1
- package/commonjs/Timeline/Timeline.js +1 -2
- package/commonjs/Toast/Toast.js +41 -95
- package/commonjs/UserSwitcher/UserSwitcher.js +0 -1
- package/commonjs/UserSwitcher/index.js +14 -9
- package/commonjs/common.js +4 -6
- package/commonjs/index.js +426 -337
- package/module/Alert/Alert.js +51 -72
- package/module/AnimatedNavItem/AnimatedNavItem.js +1 -2
- package/module/AnimatedNavItem/index.js +2 -7
- package/module/BarChart/BarChart.js +0 -1
- package/module/BarChart/index.js +1 -2
- package/module/Button/Button.js +80 -72
- package/module/Button/ButtonGroup.js +129 -121
- package/module/Button/react-native-hoverable.d.js +0 -1
- package/module/Calendar/Calendar.base.js +0 -1
- package/module/Calendar/Calendar.js +80 -77
- package/module/Calendar/ConcreteTimeSelector.js +0 -1
- package/module/Calendar/CustomRange.js +258 -358
- package/module/Calendar/DaySelector.js +95 -119
- package/module/Calendar/MonthSelector.js +1 -2
- package/module/Calendar/TimeSelector.js +215 -308
- package/module/Calendar/WeekDaySelector.js +98 -123
- package/module/Calendar/helper.js +74 -75
- package/module/Calendar/local.js +0 -1
- package/module/Calendar/types.js +1 -2
- package/module/Card/Card.js +0 -134
- package/module/CheckBox/CheckBox.js +93 -90
- package/module/CheckBox/CheckBoxItem.js +69 -85
- package/module/CheckBox/GroupCheckBox.js +0 -1
- package/module/CircularProgress/CircularProgress.js +1 -2
- package/module/Collapsible/Collapsible.js +66 -1
- package/module/DashboardCard/DashboardCard.js +80 -89
- package/module/DataCell/DataCell.js +311 -225
- package/module/DataCell/index.js +1 -2
- package/module/DataTable/DataTable.js +0 -101
- package/module/DataTable/index.js +4 -3
- package/module/DeviceSelectionModal/DeviceSelectionModal.js +0 -125
- package/module/DraggableFlatList/DraggableFlatList.js +0 -1
- package/module/Drawer/Drawer.js +0 -1
- package/module/Dropdown/CustomDropdown.js +212 -161
- package/module/Dropdown/Dropdown.js +484 -409
- package/module/Dropdown/InputDropdown.js +116 -135
- package/module/ExternalLink/ExternalLink.js +1 -2
- package/module/Gantt/Accessories.js +176 -150
- package/module/Gantt/Gantt.js +0 -1
- package/module/Gantt/GanttInnerElementType.js +0 -1
- package/module/Gantt/helper.js +0 -1
- package/module/Gantt/types.js +1 -2
- package/module/Grid/FixedSizeGrid.js +80 -87
- package/module/Grid/Grid.base.js +339 -402
- package/module/Grid/StaticFixedSizeGrid.js +1 -2
- package/module/Grid/VariableSizeGrid.js +121 -119
- package/module/Grid/helper.js +0 -1
- package/module/Grid/timer.js +1 -2
- package/module/Header/Header.js +1 -2
- package/module/HelloWave/HelloWave.js +43 -54
- package/module/Hoverable/Hoverable.js +1 -2
- package/module/IconText/IconText.js +1 -2
- package/module/Icons/TapasIcon.js +120 -97
- package/module/Icons/TapasIconExpo.js +0 -1
- package/module/Icons/expoFontLoader.js +1 -2
- package/module/Icons/fontLoader.js +0 -1
- package/module/Icons/index.js +9 -11
- package/module/Icons/smartFontLoader.js +0 -1
- package/module/Image/Image.js +1 -2
- package/module/Image/PreviewImg.js +76 -80
- package/module/Input/Input.js +34 -113
- package/module/Layout/DrawerContext.js +18 -30
- package/module/Layout/Layout.js +0 -1
- package/module/Layout/ToastContext.js +0 -1
- package/module/Layout/index.js +14 -16
- package/module/LineChart/LineChart.js +0 -1
- package/module/LineChart/index.js +1 -2
- package/module/ListItem/ListItem.js +98 -106
- package/module/Loading/Loading.js +67 -66
- package/module/MessageBox/MessageBox.js +137 -99
- package/module/MultiSelector/MultiSelector.js +229 -321
- package/module/MultiSelector/index.js +3 -3
- package/module/Navigation/Navigation.js +1 -2
- package/module/Notification/Notification.js +0 -1
- package/module/Notification/index.js +0 -17
- package/module/NumericInput/NumericInput.js +1 -2
- package/module/Overlay/Overlay.js +0 -30
- package/module/Pagination/Pagination.js +139 -135
- package/module/PieChart/PieChart.js +0 -1
- package/module/PieChart/index.js +1 -2
- package/module/Popover/Popover.js +117 -148
- package/module/Progress/Progress.js +1 -2
- package/module/Quantity/Quantity.js +112 -130
- package/module/Quantity/index.js +16 -1
- package/module/RadioButton/RadioButton.js +1 -2
- package/module/ReasonModal/ReasonModal.js +1 -2
- package/module/ReasonModal/index.js +0 -28
- package/module/ScanButton/ScanButton.js +0 -46
- package/module/SearchInput/SearchInput.js +1 -2
- package/module/SearchInput/index.js +3 -3
- package/module/SheetTitle/SheetTitle.js +35 -41
- package/module/Shell/Shell.js +79 -93
- package/module/Shell/styles.js +8 -9
- package/module/Shell/types.js +0 -1
- package/module/StatisticCard/StatisticCard.js +79 -49
- package/module/StatisticCard/index.js +1 -2
- package/module/Status/Status.js +1 -2
- package/module/Steps/Steps.js +1 -2
- package/module/TabTitle/TabTitle.js +0 -1
- package/module/TabTitle/index.js +1 -2
- package/module/TableColumnHeader/TableColumnHeader.js +0 -1
- package/module/TableColumnHeader/index.js +2 -8
- package/module/Tag/Tag.js +87 -73
- package/module/Task/Task.js +108 -1
- package/module/Task/type.js +0 -1
- package/module/Text/Text.js +70 -81
- package/module/TextArea/TextArea.js +0 -120
- package/module/Theme/ThemeProvider.js +1 -2
- package/module/Theme/defaultTheme.js +0 -21
- package/module/Theme/themed.d.js +0 -1
- package/module/Timeline/Timeline.js +0 -55
- package/module/Toast/Toast.js +1 -2
- package/module/UserSwitcher/UserSwitcher.js +171 -131
- package/module/UserSwitcher/index.js +2 -5
- package/module/common.js +8 -8
- package/module/index.js +131 -121
- package/package.json +2 -2
- package/commonjs/Alert/Alert.js.map +0 -2
- package/commonjs/AnimatedNavItem/AnimatedNavItem.js.map +0 -2
- package/commonjs/AnimatedNavItem/index.js.map +0 -1
- package/commonjs/BarChart/BarChart.js.map +0 -1
- package/commonjs/BarChart/index.js.map +0 -2
- package/commonjs/Button/Button.js.map +0 -2
- package/commonjs/Button/ButtonGroup.js.map +0 -2
- package/commonjs/Button/react-native-hoverable.d.js.map +0 -1
- package/commonjs/Calendar/Calendar.base.js.map +0 -1
- package/commonjs/Calendar/Calendar.js.map +0 -2
- package/commonjs/Calendar/ConcreteTimeSelector.js.map +0 -2
- package/commonjs/Calendar/CustomRange.js.map +0 -1
- package/commonjs/Calendar/DaySelector.js.map +0 -1
- package/commonjs/Calendar/MonthSelector.js.map +0 -1
- package/commonjs/Calendar/TimeSelector.js.map +0 -1
- package/commonjs/Calendar/WeekDaySelector.js.map +0 -1
- package/commonjs/Calendar/helper.js.map +0 -2
- package/commonjs/Calendar/local.js.map +0 -2
- package/commonjs/Calendar/types.js.map +0 -1
- package/commonjs/Card/Card.js.map +0 -2
- package/commonjs/CheckBox/CheckBox.js.map +0 -2
- package/commonjs/CheckBox/CheckBoxItem.js.map +0 -2
- package/commonjs/CheckBox/GroupCheckBox.js.map +0 -2
- package/commonjs/CircularProgress/CircularProgress.js.map +0 -2
- package/commonjs/Collapsible/Collapsible.js.map +0 -2
- package/commonjs/DashboardCard/DashboardCard.js.map +0 -2
- package/commonjs/DataCell/DataCell.js.map +0 -1
- package/commonjs/DataCell/index.js.map +0 -2
- package/commonjs/DataTable/DataTable.js.map +0 -1
- package/commonjs/DataTable/index.js.map +0 -1
- package/commonjs/DeviceSelectionModal/DeviceSelectionModal.js.map +0 -1
- package/commonjs/DraggableFlatList/DraggableFlatList.js.map +0 -1
- package/commonjs/Drawer/Drawer.js.map +0 -2
- package/commonjs/Dropdown/CustomDropdown.js.map +0 -1
- package/commonjs/Dropdown/Dropdown.js.map +0 -2
- package/commonjs/Dropdown/InputDropdown.js.map +0 -2
- package/commonjs/ExternalLink/ExternalLink.js.map +0 -1
- package/commonjs/Gantt/Accessories.js.map +0 -1
- package/commonjs/Gantt/Gantt.js.map +0 -1
- package/commonjs/Gantt/GanttInnerElementType.js.map +0 -2
- package/commonjs/Gantt/helper.js.map +0 -2
- package/commonjs/Gantt/types.js.map +0 -1
- package/commonjs/Grid/FixedSizeGrid.js.map +0 -1
- package/commonjs/Grid/Grid.base.js.map +0 -1
- package/commonjs/Grid/StaticFixedSizeGrid.js.map +0 -2
- package/commonjs/Grid/VariableSizeGrid.js.map +0 -2
- package/commonjs/Grid/helper.js.map +0 -2
- package/commonjs/Grid/timer.js.map +0 -1
- package/commonjs/Header/Header.js.map +0 -2
- package/commonjs/HelloWave/HelloWave.js.map +0 -2
- package/commonjs/Hoverable/Hoverable.js.map +0 -2
- package/commonjs/IconText/IconText.js.map +0 -1
- package/commonjs/Icons/TapasIcon.js.map +0 -2
- package/commonjs/Icons/TapasIconExpo.js.map +0 -1
- package/commonjs/Icons/expoFontLoader.js.map +0 -2
- package/commonjs/Icons/fontLoader.js.map +0 -2
- package/commonjs/Icons/index.js.map +0 -2
- package/commonjs/Icons/smartFontLoader.js.map +0 -2
- package/commonjs/Image/Image.js.map +0 -1
- package/commonjs/Image/PreviewImg.js.map +0 -2
- package/commonjs/Input/Input.js.map +0 -2
- package/commonjs/Layout/DrawerContext.js.map +0 -1
- package/commonjs/Layout/Layout.js.map +0 -2
- package/commonjs/Layout/ToastContext.js.map +0 -2
- package/commonjs/Layout/index.js.map +0 -1
- package/commonjs/LineChart/LineChart.js.map +0 -2
- package/commonjs/LineChart/index.js.map +0 -2
- package/commonjs/ListItem/ListItem.js.map +0 -1
- package/commonjs/Loading/Loading.js.map +0 -2
- package/commonjs/MessageBox/MessageBox.js.map +0 -2
- package/commonjs/MultiSelector/MultiSelector.js.map +0 -1
- package/commonjs/MultiSelector/index.js.map +0 -1
- package/commonjs/Navigation/Navigation.js.map +0 -2
- package/commonjs/Notification/Notification.js.map +0 -2
- package/commonjs/Notification/index.js.map +0 -2
- package/commonjs/NumericInput/NumericInput.js.map +0 -2
- package/commonjs/Overlay/Overlay.js.map +0 -2
- package/commonjs/Pagination/Pagination.js.map +0 -2
- package/commonjs/PieChart/PieChart.js.map +0 -2
- package/commonjs/PieChart/index.js.map +0 -2
- package/commonjs/Popover/Popover.js.map +0 -1
- package/commonjs/Progress/Progress.js.map +0 -1
- package/commonjs/Quantity/Quantity.js.map +0 -2
- package/commonjs/Quantity/index.js.map +0 -1
- package/commonjs/RadioButton/RadioButton.js.map +0 -1
- package/commonjs/ReasonModal/ReasonModal.js.map +0 -2
- package/commonjs/ReasonModal/index.js.map +0 -1
- package/commonjs/ScanButton/ScanButton.js.map +0 -1
- package/commonjs/SearchInput/SearchInput.js.map +0 -2
- package/commonjs/SearchInput/index.js.map +0 -2
- package/commonjs/SheetTitle/SheetTitle.js.map +0 -2
- package/commonjs/Shell/Shell.js.map +0 -2
- package/commonjs/Shell/styles.js.map +0 -2
- package/commonjs/Shell/types.js.map +0 -2
- package/commonjs/StatisticCard/StatisticCard.js.map +0 -1
- package/commonjs/StatisticCard/index.js.map +0 -2
- package/commonjs/Status/Status.js.map +0 -1
- package/commonjs/Steps/Steps.js.map +0 -1
- package/commonjs/TabTitle/TabTitle.js.map +0 -1
- package/commonjs/TabTitle/index.js.map +0 -2
- package/commonjs/TableColumnHeader/TableColumnHeader.js.map +0 -2
- package/commonjs/TableColumnHeader/index.js.map +0 -1
- package/commonjs/Tag/Tag.js.map +0 -2
- package/commonjs/Task/Task.js.map +0 -1
- package/commonjs/Task/type.js.map +0 -2
- package/commonjs/Text/Text.js.map +0 -2
- package/commonjs/TextArea/TextArea.js.map +0 -1
- package/commonjs/Theme/ThemeProvider.js.map +0 -1
- package/commonjs/Theme/defaultTheme.js.map +0 -1
- package/commonjs/Theme/themed.d.js.map +0 -1
- package/commonjs/Timeline/Timeline.js.map +0 -2
- package/commonjs/Toast/Toast.js.map +0 -1
- package/commonjs/UserSwitcher/UserSwitcher.js.map +0 -1
- package/commonjs/UserSwitcher/index.js.map +0 -1
- package/commonjs/common.js.map +0 -2
- package/commonjs/index.js.map +0 -1
- package/module/Alert/Alert.js.map +0 -2
- package/module/AnimatedNavItem/AnimatedNavItem.js.map +0 -2
- package/module/AnimatedNavItem/index.js.map +0 -1
- package/module/BarChart/BarChart.js.map +0 -1
- package/module/BarChart/index.js.map +0 -1
- package/module/Button/Button.js.map +0 -2
- package/module/Button/ButtonGroup.js.map +0 -1
- package/module/Button/react-native-hoverable.d.js.map +0 -1
- package/module/Calendar/Calendar.base.js.map +0 -1
- package/module/Calendar/Calendar.js.map +0 -2
- package/module/Calendar/ConcreteTimeSelector.js.map +0 -2
- package/module/Calendar/CustomRange.js.map +0 -1
- package/module/Calendar/DaySelector.js.map +0 -2
- package/module/Calendar/MonthSelector.js.map +0 -2
- package/module/Calendar/TimeSelector.js.map +0 -2
- package/module/Calendar/WeekDaySelector.js.map +0 -2
- package/module/Calendar/helper.js.map +0 -2
- package/module/Calendar/local.js.map +0 -1
- package/module/Calendar/types.js.map +0 -1
- package/module/Card/Card.js.map +0 -2
- package/module/CheckBox/CheckBox.js.map +0 -2
- package/module/CheckBox/CheckBoxItem.js.map +0 -2
- package/module/CheckBox/GroupCheckBox.js.map +0 -1
- package/module/CircularProgress/CircularProgress.js.map +0 -2
- package/module/Collapsible/Collapsible.js.map +0 -1
- package/module/DashboardCard/DashboardCard.js.map +0 -1
- package/module/DataCell/DataCell.js.map +0 -2
- package/module/DataCell/index.js.map +0 -2
- package/module/DataTable/DataTable.js.map +0 -2
- package/module/DataTable/index.js.map +0 -2
- package/module/DeviceSelectionModal/DeviceSelectionModal.js.map +0 -2
- package/module/DraggableFlatList/DraggableFlatList.js.map +0 -1
- package/module/Drawer/Drawer.js.map +0 -1
- package/module/Dropdown/CustomDropdown.js.map +0 -1
- package/module/Dropdown/Dropdown.js.map +0 -1
- package/module/Dropdown/InputDropdown.js.map +0 -2
- package/module/ExternalLink/ExternalLink.js.map +0 -2
- package/module/Gantt/Accessories.js.map +0 -1
- package/module/Gantt/Gantt.js.map +0 -2
- package/module/Gantt/GanttInnerElementType.js.map +0 -2
- package/module/Gantt/helper.js.map +0 -1
- package/module/Gantt/types.js.map +0 -1
- package/module/Grid/FixedSizeGrid.js.map +0 -2
- package/module/Grid/Grid.base.js.map +0 -2
- package/module/Grid/StaticFixedSizeGrid.js.map +0 -2
- package/module/Grid/VariableSizeGrid.js.map +0 -1
- package/module/Grid/helper.js.map +0 -2
- package/module/Grid/timer.js.map +0 -1
- package/module/Header/Header.js.map +0 -2
- package/module/HelloWave/HelloWave.js.map +0 -2
- package/module/Hoverable/Hoverable.js.map +0 -2
- package/module/IconText/IconText.js.map +0 -2
- package/module/Icons/TapasIcon.js.map +0 -2
- package/module/Icons/TapasIconExpo.js.map +0 -2
- package/module/Icons/expoFontLoader.js.map +0 -2
- package/module/Icons/fontLoader.js.map +0 -1
- package/module/Icons/index.js.map +0 -1
- package/module/Icons/smartFontLoader.js.map +0 -2
- package/module/Image/Image.js.map +0 -2
- package/module/Image/PreviewImg.js.map +0 -1
- package/module/Input/Input.js.map +0 -1
- package/module/Layout/DrawerContext.js.map +0 -2
- package/module/Layout/Layout.js.map +0 -2
- package/module/Layout/ToastContext.js.map +0 -2
- package/module/Layout/index.js.map +0 -2
- package/module/LineChart/LineChart.js.map +0 -2
- package/module/LineChart/index.js.map +0 -2
- package/module/ListItem/ListItem.js.map +0 -1
- package/module/Loading/Loading.js.map +0 -1
- package/module/MessageBox/MessageBox.js.map +0 -1
- package/module/MultiSelector/MultiSelector.js.map +0 -2
- package/module/MultiSelector/index.js.map +0 -2
- package/module/Navigation/Navigation.js.map +0 -1
- package/module/Notification/Notification.js.map +0 -1
- package/module/Notification/index.js.map +0 -2
- package/module/NumericInput/NumericInput.js.map +0 -2
- package/module/Overlay/Overlay.js.map +0 -1
- package/module/Pagination/Pagination.js.map +0 -1
- package/module/PieChart/PieChart.js.map +0 -1
- package/module/PieChart/index.js.map +0 -2
- package/module/Popover/Popover.js.map +0 -2
- package/module/Progress/Progress.js.map +0 -2
- package/module/Quantity/Quantity.js.map +0 -2
- package/module/Quantity/index.js.map +0 -1
- package/module/RadioButton/RadioButton.js.map +0 -2
- package/module/ReasonModal/ReasonModal.js.map +0 -2
- package/module/ReasonModal/index.js.map +0 -2
- package/module/ScanButton/ScanButton.js.map +0 -1
- package/module/SearchInput/SearchInput.js.map +0 -2
- package/module/SearchInput/index.js.map +0 -2
- package/module/SheetTitle/SheetTitle.js.map +0 -2
- package/module/Shell/Shell.js.map +0 -2
- package/module/Shell/styles.js.map +0 -2
- package/module/Shell/types.js.map +0 -2
- package/module/StatisticCard/StatisticCard.js.map +0 -1
- package/module/StatisticCard/index.js.map +0 -2
- package/module/Status/Status.js.map +0 -2
- package/module/Steps/Steps.js.map +0 -2
- package/module/TabTitle/TabTitle.js.map +0 -2
- package/module/TabTitle/index.js.map +0 -2
- package/module/TableColumnHeader/TableColumnHeader.js.map +0 -1
- package/module/TableColumnHeader/index.js.map +0 -2
- package/module/Tag/Tag.js.map +0 -1
- package/module/Task/Task.js.map +0 -2
- package/module/Task/type.js.map +0 -1
- package/module/Text/Text.js.map +0 -1
- package/module/TextArea/TextArea.js.map +0 -2
- package/module/Theme/ThemeProvider.js.map +0 -1
- package/module/Theme/defaultTheme.js.map +0 -2
- package/module/Theme/themed.d.js.map +0 -1
- package/module/Timeline/Timeline.js.map +0 -2
- package/module/Toast/Toast.js.map +0 -2
- package/module/UserSwitcher/UserSwitcher.js.map +0 -1
- package/module/UserSwitcher/index.js.map +0 -1
- package/module/common.js.map +0 -2
- package/module/index.js.map +0 -2
|
@@ -1,105 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __assign = void 0 && (void 0).__assign || function () {
|
|
4
|
-
__assign = Object.assign || function (t) {
|
|
5
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
-
s = arguments[i];
|
|
7
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () {
|
|
20
|
-
return m[k];
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
Object.defineProperty(o, k2, desc);
|
|
25
|
-
} : function (o, m, k, k2) {
|
|
26
|
-
if (k2 === undefined) k2 = k;
|
|
27
|
-
o[k2] = m[k];
|
|
28
|
-
});
|
|
29
|
-
var __setModuleDefault = void 0 && (void 0).__setModuleDefault || (Object.create ? function (o, v) {
|
|
30
|
-
Object.defineProperty(o, "default", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
value: v
|
|
33
|
-
});
|
|
34
|
-
} : function (o, v) {
|
|
35
|
-
o["default"] = v;
|
|
36
|
-
});
|
|
37
|
-
var __importStar = void 0 && (void 0).__importStar || function () {
|
|
38
|
-
var ownKeys = function (o) {
|
|
39
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
40
|
-
var ar = [];
|
|
41
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
42
|
-
return ar;
|
|
43
|
-
};
|
|
44
|
-
return ownKeys(o);
|
|
45
|
-
};
|
|
46
|
-
return function (mod) {
|
|
47
|
-
if (mod && mod.__esModule) return mod;
|
|
48
|
-
var result = {};
|
|
49
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
50
|
-
__setModuleDefault(result, mod);
|
|
51
|
-
return result;
|
|
52
|
-
};
|
|
53
|
-
}();
|
|
54
3
|
Object.defineProperty(exports, "__esModule", {
|
|
55
4
|
value: true
|
|
56
5
|
});
|
|
57
|
-
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _themed = require("@rneui/themed");
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _reactNative = require("react-native");
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
+
const RadioButton = ({
|
|
13
|
+
options,
|
|
14
|
+
theme,
|
|
15
|
+
onPress,
|
|
16
|
+
selected,
|
|
17
|
+
testID
|
|
18
|
+
}) => {
|
|
19
|
+
const [checked, setChecked] = (0, _react.useState)(selected ?? "");
|
|
20
|
+
(0, _react.useEffect)(() => {
|
|
21
|
+
setChecked(selected ?? "");
|
|
71
22
|
}, [selected]);
|
|
72
|
-
return
|
|
23
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
73
24
|
style: styles.container,
|
|
74
25
|
testID: testID
|
|
75
|
-
}, (options || []).map(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
26
|
+
}, (options || []).map((option, index) => /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
27
|
+
key: index,
|
|
28
|
+
style: styles.radioContainer,
|
|
29
|
+
onPress: () => {
|
|
30
|
+
setChecked(option.key);
|
|
31
|
+
onPress && onPress(option);
|
|
32
|
+
}
|
|
33
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
34
|
+
style: styles.radioCon
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
36
|
+
style: {
|
|
37
|
+
...styles.outerCircle,
|
|
38
|
+
borderColor: theme.colors.primary
|
|
39
|
+
}
|
|
40
|
+
}, checked === option.key && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
41
|
+
style: {
|
|
42
|
+
...styles.innerCircle,
|
|
43
|
+
backgroundColor: theme.colors.primary
|
|
44
|
+
}
|
|
45
|
+
}))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
46
|
+
style: styles.text
|
|
47
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
48
|
+
style: {
|
|
49
|
+
...styles.label,
|
|
50
|
+
color: theme.colors.primary
|
|
51
|
+
}
|
|
52
|
+
}, option.text)))));
|
|
101
53
|
};
|
|
102
|
-
|
|
54
|
+
const styles = _reactNative.StyleSheet.create({
|
|
103
55
|
container: {
|
|
104
56
|
display: "flex",
|
|
105
57
|
flexDirection: "column",
|
|
@@ -149,5 +101,4 @@ var styles = react_native_1.StyleSheet.create({
|
|
|
149
101
|
fontWeight: "400"
|
|
150
102
|
}
|
|
151
103
|
});
|
|
152
|
-
exports.default = (0,
|
|
153
|
-
//# sourceMappingURL=RadioButton.js.map
|
|
104
|
+
var _default = exports.default = (0, _themed.withTheme)(RadioButton);
|
|
@@ -1,116 +1,179 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
4
|
+
__assign = Object.assign || function (t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () {
|
|
20
|
+
return m[k];
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
Object.defineProperty(o, k2, desc);
|
|
25
|
+
} : function (o, m, k, k2) {
|
|
26
|
+
if (k2 === undefined) k2 = k;
|
|
27
|
+
o[k2] = m[k];
|
|
28
|
+
});
|
|
29
|
+
var __setModuleDefault = void 0 && (void 0).__setModuleDefault || (Object.create ? function (o, v) {
|
|
30
|
+
Object.defineProperty(o, "default", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
value: v
|
|
33
|
+
});
|
|
34
|
+
} : function (o, v) {
|
|
35
|
+
o["default"] = v;
|
|
36
|
+
});
|
|
37
|
+
var __importStar = void 0 && (void 0).__importStar || function () {
|
|
38
|
+
var ownKeys = function (o) {
|
|
39
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
40
|
+
var ar = [];
|
|
41
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
42
|
+
return ar;
|
|
43
|
+
};
|
|
44
|
+
return ownKeys(o);
|
|
45
|
+
};
|
|
46
|
+
return function (mod) {
|
|
47
|
+
if (mod && mod.__esModule) return mod;
|
|
48
|
+
var result = {};
|
|
49
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
50
|
+
__setModuleDefault(result, mod);
|
|
51
|
+
return result;
|
|
52
|
+
};
|
|
53
|
+
}();
|
|
54
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
55
|
+
var t = {};
|
|
56
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
57
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
58
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
59
|
+
}
|
|
60
|
+
return t;
|
|
61
|
+
};
|
|
62
|
+
var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
63
|
+
return mod && mod.__esModule ? mod : {
|
|
64
|
+
"default": mod
|
|
65
|
+
};
|
|
66
|
+
};
|
|
3
67
|
Object.defineProperty(exports, "__esModule", {
|
|
4
68
|
value: true
|
|
5
69
|
});
|
|
6
|
-
exports.
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
70
|
+
exports.TapasReasonModal = exports.ReasonModal = void 0;
|
|
71
|
+
var react_1 = __importStar(require("react"));
|
|
72
|
+
var react_native_1 = require("react-native");
|
|
73
|
+
var themed_1 = require("@rneui/themed");
|
|
74
|
+
var Button_1 = __importDefault(require("../Button/Button"));
|
|
75
|
+
var RadioButton_1 = __importDefault(require("../RadioButton/RadioButton"));
|
|
76
|
+
var TapasReasonModal = function (_a) {
|
|
77
|
+
var _b = _a.visible,
|
|
78
|
+
visible = _b === void 0 ? false : _b,
|
|
79
|
+
_c = _a.title,
|
|
80
|
+
title = _c === void 0 ? "Select Reason" : _c,
|
|
81
|
+
subtitle = _a.subtitle,
|
|
82
|
+
_d = _a.options,
|
|
83
|
+
options = _d === void 0 ? [] : _d,
|
|
84
|
+
selectedReason = _a.selectedReason,
|
|
85
|
+
_e = _a.confirmText,
|
|
86
|
+
confirmText = _e === void 0 ? "Confirm" : _e,
|
|
87
|
+
_f = _a.cancelText,
|
|
88
|
+
cancelText = _f === void 0 ? "Cancel" : _f,
|
|
89
|
+
_g = _a.width,
|
|
90
|
+
width = _g === void 0 ? 480 : _g,
|
|
91
|
+
_h = _a.disableConfirmWhenEmpty,
|
|
92
|
+
disableConfirmWhenEmpty = _h === void 0 ? true : _h,
|
|
93
|
+
onClose = _a.onClose,
|
|
94
|
+
onConfirm = _a.onConfirm,
|
|
95
|
+
onSelectionChange = _a.onSelectionChange,
|
|
96
|
+
onRequestClose = _a.onRequestClose,
|
|
97
|
+
style = _a.style,
|
|
98
|
+
otherProps = __rest(_a, ["visible", "title", "subtitle", "options", "selectedReason", "confirmText", "cancelText", "width", "disableConfirmWhenEmpty", "onClose", "onConfirm", "onSelectionChange", "onRequestClose", "style"]);
|
|
99
|
+
var styles = useStyles();
|
|
100
|
+
var _j = (0, react_1.useState)(""),
|
|
101
|
+
localSelectedReason = _j[0],
|
|
102
|
+
setLocalSelectedReason = _j[1];
|
|
36
103
|
// 同步外部选中状态
|
|
37
|
-
(0,
|
|
104
|
+
(0, react_1.useEffect)(function () {
|
|
38
105
|
setLocalSelectedReason(selectedReason || "");
|
|
39
106
|
}, [selectedReason]);
|
|
40
|
-
|
|
41
107
|
// 重置选择当模态框显示/隐藏时
|
|
42
|
-
(0,
|
|
108
|
+
(0, react_1.useEffect)(function () {
|
|
43
109
|
if (visible) {
|
|
44
110
|
setLocalSelectedReason(selectedReason || "");
|
|
45
111
|
} else {
|
|
46
112
|
setLocalSelectedReason("");
|
|
47
113
|
}
|
|
48
114
|
}, [visible, selectedReason]);
|
|
49
|
-
|
|
50
115
|
// 处理选择改变
|
|
51
|
-
|
|
116
|
+
var handleSelectionChange = (0, react_1.useCallback)(function (option) {
|
|
52
117
|
setLocalSelectedReason(option.key);
|
|
53
|
-
onSelectionChange
|
|
118
|
+
onSelectionChange === null || onSelectionChange === void 0 ? void 0 : onSelectionChange(option);
|
|
54
119
|
}, [onSelectionChange]);
|
|
55
|
-
|
|
56
120
|
// 处理关闭
|
|
57
|
-
|
|
121
|
+
var handleClose = (0, react_1.useCallback)(function () {
|
|
58
122
|
setLocalSelectedReason("");
|
|
59
|
-
onClose
|
|
123
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
60
124
|
}, [onClose]);
|
|
61
|
-
|
|
62
125
|
// 处理确认
|
|
63
|
-
|
|
64
|
-
|
|
126
|
+
var handleConfirm = (0, react_1.useCallback)(function () {
|
|
127
|
+
var selectedOption = options.find(function (option) {
|
|
128
|
+
return option.key === localSelectedReason;
|
|
129
|
+
});
|
|
65
130
|
if (selectedOption) {
|
|
66
|
-
onConfirm
|
|
131
|
+
onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(selectedOption);
|
|
67
132
|
}
|
|
68
133
|
}, [localSelectedReason, options, onConfirm]);
|
|
69
|
-
|
|
70
134
|
// 处理模态框请求关闭
|
|
71
|
-
|
|
135
|
+
var handleRequestClose = (0, react_1.useCallback)(function () {
|
|
72
136
|
if (onRequestClose) {
|
|
73
137
|
onRequestClose();
|
|
74
138
|
} else {
|
|
75
139
|
handleClose();
|
|
76
140
|
}
|
|
77
141
|
}, [onRequestClose, handleClose]);
|
|
78
|
-
|
|
79
142
|
// 计算是否应该禁用确认按钮
|
|
80
|
-
|
|
143
|
+
var isConfirmDisabled = (0, react_1.useMemo)(function () {
|
|
81
144
|
return disableConfirmWhenEmpty && !localSelectedReason;
|
|
82
145
|
}, [disableConfirmWhenEmpty, localSelectedReason]);
|
|
83
|
-
return
|
|
146
|
+
return react_1.default.createElement(react_native_1.Modal, __assign({
|
|
84
147
|
animationType: "fade",
|
|
85
148
|
transparent: true,
|
|
86
149
|
visible: visible,
|
|
87
150
|
onRequestClose: handleRequestClose
|
|
88
|
-
}, otherProps),
|
|
151
|
+
}, otherProps), react_1.default.createElement(react_native_1.View, {
|
|
89
152
|
style: [styles.modalContainer, style]
|
|
90
|
-
},
|
|
153
|
+
}, react_1.default.createElement(react_native_1.View, {
|
|
91
154
|
style: [styles.modalContent, {
|
|
92
|
-
width
|
|
155
|
+
width: width
|
|
93
156
|
}]
|
|
94
|
-
},
|
|
157
|
+
}, react_1.default.createElement(react_native_1.View, {
|
|
95
158
|
style: styles.titleContainer
|
|
96
|
-
},
|
|
159
|
+
}, react_1.default.createElement(react_native_1.Text, {
|
|
97
160
|
style: styles.title
|
|
98
|
-
}, title), subtitle &&
|
|
161
|
+
}, title), subtitle && react_1.default.createElement(react_native_1.Text, {
|
|
99
162
|
style: styles.subtitle
|
|
100
|
-
}, subtitle)),
|
|
163
|
+
}, subtitle)), react_1.default.createElement(react_native_1.View, {
|
|
101
164
|
style: styles.optionsContainer
|
|
102
|
-
},
|
|
165
|
+
}, react_1.default.createElement(RadioButton_1.default, {
|
|
103
166
|
options: options,
|
|
104
167
|
selected: localSelectedReason,
|
|
105
168
|
onPress: handleSelectionChange
|
|
106
|
-
})),
|
|
169
|
+
})), react_1.default.createElement(react_native_1.View, {
|
|
107
170
|
style: styles.buttonsContainer
|
|
108
|
-
},
|
|
171
|
+
}, react_1.default.createElement(Button_1.default, {
|
|
109
172
|
title: cancelText,
|
|
110
173
|
type: "clear",
|
|
111
174
|
onPress: handleClose,
|
|
112
175
|
style: styles.cancelButton
|
|
113
|
-
}),
|
|
176
|
+
}), react_1.default.createElement(Button_1.default, {
|
|
114
177
|
title: confirmText,
|
|
115
178
|
type: "solid",
|
|
116
179
|
disabled: isConfirmDisabled,
|
|
@@ -119,72 +182,6 @@ const TapasReasonModal = ({
|
|
|
119
182
|
})))));
|
|
120
183
|
};
|
|
121
184
|
exports.TapasReasonModal = TapasReasonModal;
|
|
122
|
-
const useStyles = (0, _themed.makeStyles)(theme => ({
|
|
123
|
-
modalContainer: {
|
|
124
|
-
flex: 1,
|
|
125
|
-
justifyContent: "center",
|
|
126
|
-
alignItems: "center",
|
|
127
|
-
backgroundColor: "rgba(0, 0, 0, 0.6)",
|
|
128
|
-
zIndex: 10
|
|
129
|
-
},
|
|
130
|
-
modalContent: {
|
|
131
|
-
borderRadius: theme?.radius?.rounded || 12,
|
|
132
|
-
backgroundColor: theme?.colors?.white || '#ffffff',
|
|
133
|
-
boxShadow: "0px 12px 40px 0px rgba(0, 0, 0, 0.14), 0px 24px 56px 0px rgba(0, 0, 0, 0.10)",
|
|
134
|
-
display: "flex",
|
|
135
|
-
flexDirection: "column",
|
|
136
|
-
maxHeight: "80%",
|
|
137
|
-
minWidth: 320,
|
|
138
|
-
maxWidth: "90%"
|
|
139
|
-
},
|
|
140
|
-
titleContainer: {
|
|
141
|
-
padding: theme?.spacing?.tpRg || 16,
|
|
142
|
-
paddingBottom: theme?.spacing?.tpXs || 8,
|
|
143
|
-
borderBottomWidth: 1,
|
|
144
|
-
borderBottomColor: theme?.colors?.grey4 || '#e0e0e0'
|
|
145
|
-
},
|
|
146
|
-
title: {
|
|
147
|
-
fontSize: 18,
|
|
148
|
-
fontWeight: theme?.fonts?.weightL || "600",
|
|
149
|
-
color: theme?.colors?.primary || '#007AFF',
|
|
150
|
-
lineHeight: 24
|
|
151
|
-
},
|
|
152
|
-
subtitle: {
|
|
153
|
-
marginTop: theme?.spacing?.tp2xs || 4,
|
|
154
|
-
fontSize: 14,
|
|
155
|
-
color: theme?.colors?.colorTextSecondary || theme?.colors?.grey1 || '#666666',
|
|
156
|
-
lineHeight: 20
|
|
157
|
-
},
|
|
158
|
-
optionsContainer: {
|
|
159
|
-
flex: 1,
|
|
160
|
-
padding: theme?.spacing?.tpRg || 16,
|
|
161
|
-
minHeight: 100,
|
|
162
|
-
maxHeight: 400
|
|
163
|
-
},
|
|
164
|
-
buttonsContainer: {
|
|
165
|
-
flexDirection: "row",
|
|
166
|
-
justifyContent: "flex-end",
|
|
167
|
-
padding: theme?.spacing?.tpRg || 16,
|
|
168
|
-
paddingTop: theme?.spacing?.tpXs || 8,
|
|
169
|
-
borderTopWidth: 1,
|
|
170
|
-
borderTopColor: theme?.colors?.grey4 || '#e0e0e0',
|
|
171
|
-
gap: 12
|
|
172
|
-
},
|
|
173
|
-
cancelButton: {
|
|
174
|
-
minWidth: 80
|
|
175
|
-
},
|
|
176
|
-
confirmButton: {
|
|
177
|
-
minWidth: 80
|
|
178
|
-
}
|
|
179
|
-
}));
|
|
180
|
-
var _default = exports.default = (0, _themed.withTheme)(TapasReasonModal); // Export aliases for compatibility
|
|
181
|
-
const ReasonModal = exports.ReasonModal = (0, _themed.withTheme)(TapasReasonModal);
|
|
182
|
-
//# sourceMappingURL=ReasonModal.js.mapnfirmDisabled,
|
|
183
|
-
onPress: handleConfirm,
|
|
184
|
-
style: styles.confirmButton
|
|
185
|
-
})))));
|
|
186
|
-
};
|
|
187
|
-
exports.TapasReasonModal = TapasReasonModal;
|
|
188
185
|
var useStyles = (0, themed_1.makeStyles)(function (theme) {
|
|
189
186
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
190
187
|
return {
|
|
@@ -249,4 +246,3 @@ var useStyles = (0, themed_1.makeStyles)(function (theme) {
|
|
|
249
246
|
exports.default = (0, themed_1.withTheme)(TapasReasonModal);
|
|
250
247
|
// Export aliases for compatibility
|
|
251
248
|
exports.ReasonModal = (0, themed_1.withTheme)(TapasReasonModal);
|
|
252
|
-
//# sourceMappingURL=ReasonModal.js.map
|
|
@@ -1,27 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
4
|
+
return mod && mod.__esModule ? mod : {
|
|
5
|
+
"default": mod
|
|
6
|
+
};
|
|
7
|
+
};
|
|
3
8
|
Object.defineProperty(exports, "__esModule", {
|
|
4
9
|
value: true
|
|
5
10
|
});
|
|
6
|
-
|
|
11
|
+
exports.TapasReasonModal = exports.ReasonModal = exports.default = void 0;
|
|
12
|
+
var ReasonModal_1 = require("./ReasonModal");
|
|
13
|
+
Object.defineProperty(exports, "default", {
|
|
7
14
|
enumerable: true,
|
|
8
15
|
get: function () {
|
|
9
|
-
return
|
|
16
|
+
return __importDefault(ReasonModal_1).default;
|
|
10
17
|
}
|
|
11
18
|
});
|
|
12
|
-
|
|
19
|
+
var ReasonModal_2 = require("./ReasonModal");
|
|
20
|
+
Object.defineProperty(exports, "ReasonModal", {
|
|
13
21
|
enumerable: true,
|
|
14
22
|
get: function () {
|
|
15
|
-
return
|
|
23
|
+
return ReasonModal_2.ReasonModal;
|
|
16
24
|
}
|
|
17
25
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
26
|
+
Object.defineProperty(exports, "TapasReasonModal", {
|
|
19
27
|
enumerable: true,
|
|
20
28
|
get: function () {
|
|
21
|
-
return
|
|
29
|
+
return ReasonModal_2.TapasReasonModal;
|
|
22
30
|
}
|
|
23
31
|
});
|
|
24
|
-
|
|
25
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
26
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
32
|
+
|