Create OS-specific wrapper system: - Add IOSWrapper (based on NewWrapper for iOS) - Add AndroidWrapper (based on NewWrapper_V2 with keyboard handling) - Add OS_Wrapper (auto platform detection) - Add PageWrapper (with keyboard handling for Android forms) Migrate all Job screens (8 files): - ScreenJobCreate: NewWrapper_V2 → PageWrapper - ScreenJobEdit: NewWrapper_V2 → PageWrapper - ScreenBeranda2: NewWrapper_V2 → OS_Wrapper - ScreenArchive2: NewWrapper_V2 → OS_Wrapper - MainViewStatus2: NewWrapper_V2 → OS_Wrapper - ScreenBeranda: ViewWrapper → OS_Wrapper - ScreenArchive: ViewWrapper → OS_Wrapper - MainViewStatus: ViewWrapper → OS_Wrapper Benefits: - Automatic platform detection (no manual Platform.OS checks) - Consistent tabs behavior across iOS and Android - Keyboard handling for forms (Android only) - Cleaner code with unified API Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
156 lines
4.2 KiB
TypeScript
156 lines
4.2 KiB
TypeScript
// Alert
|
|
import AlertCustom from "./Alert/AlertCustom";
|
|
import AlertDefaultSystem from "./Alert/AlertDefaultSystem";
|
|
// ActionIcon
|
|
import ActionIcon from "./ActionIcon/ActionIcon";
|
|
// Button
|
|
import LeftButtonCustom from "./Button/BackButton";
|
|
import ButtonCenteredOnly from "./Button/ButtonCenteredOnly";
|
|
import ButtonCustom from "./Button/ButtonCustom";
|
|
import DotButton from "./Button/DotButton";
|
|
import FloatingButton from "./Button/FloatingButton";
|
|
// Badge
|
|
import BadgeCustom from "./Badge/BadgeCustom";
|
|
// Container
|
|
import CircleContainer from "./Container/CircleContainer";
|
|
// Checkbox
|
|
import CheckboxCustom from "./Checkbox/CheckboxCustom";
|
|
import CheckboxGroup from "./Checkbox/CheckboxGroup";
|
|
// Drawer
|
|
import DrawerCustom from "./Drawer/DrawerCustom";
|
|
import MenuDrawerDynamicGrid from "./Drawer/MenuDrawerDynamicGird";
|
|
// Text
|
|
import TextCustom from "./Text/TextCustom";
|
|
// TextInput
|
|
import TextInputCustom from "./TextInput/TextInputCustom";
|
|
// TextArea
|
|
import TextAreaCustom from "./TextArea/TextAreaCustom";
|
|
// Grid
|
|
import Grid from "./Grid/GridCustom";
|
|
// Box
|
|
import BaseBox from "./Box/BaseBox";
|
|
import BoxButtonOnFooter from "./Box/BoxButtonOnFooter";
|
|
import BoxWithHeaderSection from "./Box/BoxWithHeaderInformation";
|
|
import InformationBox from "./Box/InformationBox";
|
|
// Stack
|
|
import StackCustom from "./Stack/StackCustom";
|
|
// Select
|
|
import SelectCustom from "./Select/SelectCustom";
|
|
// Image
|
|
import AvatarCustom from "./Image/AvatarCustom";
|
|
import AvatarComp from "./Image/AvatarComp";
|
|
import LandscapeFrameUploaded from "./Image/LandscapeFrameUploaded";
|
|
// Divider
|
|
import Divider from "./Divider/Divider";
|
|
import DividerCustom from "./Divider/DividerCustom";
|
|
// Map
|
|
import MapCustom from "./Map/MapCustom";
|
|
// Center
|
|
import CenterCustom from "./Center/CenterCustom";
|
|
// Clickable
|
|
import ClickableCustom from "./Clickable/ClickableCustom";
|
|
// PhoneInput
|
|
import PhoneInputCustom from "./PhoneInput/PhoneInputCustom";
|
|
// Scroll
|
|
import ScrollableCustom from "./Scroll/ScrollCustom";
|
|
// ShareComponent
|
|
import AvatarUsernameAndOtherComponent from "./_ShareComponent/AvataraAndOtherHeaderComponent";
|
|
import Spacing from "./_ShareComponent/Spacing";
|
|
import TabBarBackground from "./_ShareComponent/TabBarBackground";
|
|
import ViewWrapper from "./_ShareComponent/ViewWrapper";
|
|
import SearchInput from "./_ShareComponent/SearchInput";
|
|
import DummyLandscapeImage from "./_ShareComponent/DummyLandscapeImage";
|
|
import GridComponentView from "./_ShareComponent/GridSectionView";
|
|
import NewWrapper from "./_ShareComponent/NewWrapper";
|
|
import BasicWrapper from "./_ShareComponent/BasicWrapper";
|
|
import { FormWrapper } from "./_ShareComponent/FormWrapper";
|
|
import { NewWrapper_V2 } from "./_ShareComponent/NewWrapper_V2";
|
|
// OS-Specific Wrappers
|
|
import OS_Wrapper, { PageWrapper, IOSWrapper, AndroidWrapper } from "./_ShareComponent/OS_Wrapper";
|
|
|
|
// Progress
|
|
import ProgressCustom from "./Progress/ProgressCustom";
|
|
// Loader
|
|
import LoaderCustom from "./Loader/LoaderCustom";
|
|
|
|
export {
|
|
// ActionIcon
|
|
ActionIcon,
|
|
// Alert
|
|
AlertCustom,
|
|
AlertDefaultSystem,
|
|
// Image
|
|
AvatarCustom,
|
|
AvatarComp,
|
|
// ShareComponent
|
|
AvatarUsernameAndOtherComponent,
|
|
// Button
|
|
LeftButtonCustom as BackButton,
|
|
// Box
|
|
BaseBox,
|
|
BoxButtonOnFooter,
|
|
BoxWithHeaderSection,
|
|
ButtonCenteredOnly,
|
|
ButtonCustom,
|
|
DotButton,
|
|
// Badge
|
|
BadgeCustom,
|
|
// Center
|
|
CenterCustom,
|
|
// Checkbox
|
|
CheckboxCustom,
|
|
CheckboxGroup,
|
|
// Clickable
|
|
ClickableCustom,
|
|
// PhoneInput
|
|
PhoneInputCustom,
|
|
// Container
|
|
CircleContainer,
|
|
// Divider
|
|
Divider,
|
|
DividerCustom,
|
|
// Drawer
|
|
DrawerCustom,
|
|
FloatingButton,
|
|
// Grid
|
|
Grid,
|
|
InformationBox,
|
|
LandscapeFrameUploaded,
|
|
// Map
|
|
MapCustom,
|
|
MenuDrawerDynamicGrid,
|
|
// Progress
|
|
ProgressCustom,
|
|
// Scroll
|
|
ScrollableCustom,
|
|
// Select
|
|
SelectCustom,
|
|
// ShareComponent
|
|
SearchInput,
|
|
DummyLandscapeImage,
|
|
GridComponentView,
|
|
Spacing,
|
|
NewWrapper,
|
|
BasicWrapper,
|
|
FormWrapper,
|
|
NewWrapper_V2,
|
|
// OS-Specific Wrappers
|
|
OS_Wrapper,
|
|
PageWrapper,
|
|
IOSWrapper,
|
|
AndroidWrapper,
|
|
// Stack
|
|
StackCustom,
|
|
TabBarBackground,
|
|
// TextArea
|
|
TextAreaCustom,
|
|
// Text
|
|
TextCustom,
|
|
// TextInput
|
|
TextInputCustom,
|
|
// ViewWrapper
|
|
ViewWrapper,
|
|
// Loader
|
|
LoaderCustom,
|
|
};
|