@herca/rn-kit 0.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/LICENSE +20 -0
- package/README.md +33 -0
- package/RnKit.podspec +21 -0
- package/android/build.gradle +83 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/com/herca/rnkit/RnKitModule.kt +23 -0
- package/android/src/main/java/com/herca/rnkit/RnKitPackage.kt +33 -0
- package/ios/RnKit.h +5 -0
- package/ios/RnKit.mm +18 -0
- package/lib/module/Accordion/Accordion.js +33 -0
- package/lib/module/Accordion/Accordion.js.map +1 -0
- package/lib/module/Accordion/AccordionItem.js +13 -0
- package/lib/module/Accordion/AccordionItem.js.map +1 -0
- package/lib/module/Accordion/README.md +48 -0
- package/lib/module/Accordion/type.js +4 -0
- package/lib/module/Accordion/type.js.map +1 -0
- package/lib/module/Alert/Alert.js +121 -0
- package/lib/module/Alert/Alert.js.map +1 -0
- package/lib/module/Alert/README.md +68 -0
- package/lib/module/Avatar/Avatar.js +56 -0
- package/lib/module/Avatar/Avatar.js.map +1 -0
- package/lib/module/Avatar/AvatarGroup.js +118 -0
- package/lib/module/Avatar/AvatarGroup.js.map +1 -0
- package/lib/module/Avatar/README_AVATAR.md +57 -0
- package/lib/module/Avatar/README_AVATARGROUP.md +58 -0
- package/lib/module/Avatar/type.js +4 -0
- package/lib/module/Avatar/type.js.map +1 -0
- package/lib/module/Badge/Badge.js +119 -0
- package/lib/module/Badge/Badge.js.map +1 -0
- package/lib/module/Badge/README.md +64 -0
- package/lib/module/Badge/type.js +2 -0
- package/lib/module/Badge/type.js.map +1 -0
- package/lib/module/BottomSheet/BottomSheet.js +211 -0
- package/lib/module/BottomSheet/BottomSheet.js.map +1 -0
- package/lib/module/BottomSheet/README.md +64 -0
- package/lib/module/BottomSheet/type.js +2 -0
- package/lib/module/BottomSheet/type.js.map +1 -0
- package/lib/module/Button/Button.js +138 -0
- package/lib/module/Button/Button.js.map +1 -0
- package/lib/module/Button/README.md +94 -0
- package/lib/module/Button/type.js +262 -0
- package/lib/module/Button/type.js.map +1 -0
- package/lib/module/Calendar/Calendar.js +356 -0
- package/lib/module/Calendar/Calendar.js.map +1 -0
- package/lib/module/Calendar/CalendarPropsType.js +4 -0
- package/lib/module/Calendar/CalendarPropsType.js.map +1 -0
- package/lib/module/Calendar/README.md +73 -0
- package/lib/module/CheckBox/CheckBox.js +67 -0
- package/lib/module/CheckBox/CheckBox.js.map +1 -0
- package/lib/module/CheckBox/CheckBoxList.js +41 -0
- package/lib/module/CheckBox/CheckBoxList.js.map +1 -0
- package/lib/module/CheckBox/README_CHECKBOX.md +46 -0
- package/lib/module/CheckBox/README_CHECKBOXLIST.md +41 -0
- package/lib/module/Chip/Chip.js +109 -0
- package/lib/module/Chip/Chip.js.map +1 -0
- package/lib/module/Chip/ChipItem.js +89 -0
- package/lib/module/Chip/ChipItem.js.map +1 -0
- package/lib/module/Chip/README.md +89 -0
- package/lib/module/Chip/type.js +94 -0
- package/lib/module/Chip/type.js.map +1 -0
- package/lib/module/Color/Color.js +126 -0
- package/lib/module/Color/Color.js.map +1 -0
- package/lib/module/Color/README.md +54 -0
- package/lib/module/Color/type.js +2 -0
- package/lib/module/Color/type.js.map +1 -0
- package/lib/module/DatePicker/DatePicker.js +69 -0
- package/lib/module/DatePicker/DatePicker.js.map +1 -0
- package/lib/module/DatePicker/MonthPicker.js +179 -0
- package/lib/module/DatePicker/MonthPicker.js.map +1 -0
- package/lib/module/DatePicker/README.md +51 -0
- package/lib/module/DatePicker/TimePicker.js +200 -0
- package/lib/module/DatePicker/TimePicker.js.map +1 -0
- package/lib/module/DatePicker/YearPicker.js +217 -0
- package/lib/module/DatePicker/YearPicker.js.map +1 -0
- package/lib/module/DatePicker/helpers.js +33 -0
- package/lib/module/DatePicker/helpers.js.map +1 -0
- package/lib/module/Drawing/Drawing.js +26 -0
- package/lib/module/Drawing/Drawing.js.map +1 -0
- package/lib/module/DropDown/DropDown.js +107 -0
- package/lib/module/DropDown/DropDown.js.map +1 -0
- package/lib/module/DropDown/type.js +4 -0
- package/lib/module/DropDown/type.js.map +1 -0
- package/lib/module/FileView/Image.js +8 -0
- package/lib/module/FileView/Image.js.map +1 -0
- package/lib/module/FileView/PdfView.js +37 -0
- package/lib/module/FileView/PdfView.js.map +1 -0
- package/lib/module/Icon/Icon.js +74 -0
- package/lib/module/Icon/Icon.js.map +1 -0
- package/lib/module/Icon/icons/AirPlane.js +22 -0
- package/lib/module/Icon/icons/AirPlane.js.map +1 -0
- package/lib/module/Icon/icons/ArrowBackAlt.js +22 -0
- package/lib/module/Icon/icons/ArrowBackAlt.js.map +1 -0
- package/lib/module/Icon/icons/ArrowDown.js +22 -0
- package/lib/module/Icon/icons/ArrowDown.js.map +1 -0
- package/lib/module/Icon/icons/ArrowForwardAlt.js +22 -0
- package/lib/module/Icon/icons/ArrowForwardAlt.js.map +1 -0
- package/lib/module/Icon/icons/ArrowLeft.js +22 -0
- package/lib/module/Icon/icons/ArrowLeft.js.map +1 -0
- package/lib/module/Icon/icons/ArrowRight.js +22 -0
- package/lib/module/Icon/icons/ArrowRight.js.map +1 -0
- package/lib/module/Icon/icons/ArrowUp.js +22 -0
- package/lib/module/Icon/icons/ArrowUp.js.map +1 -0
- package/lib/module/Icon/icons/Calendar.js +22 -0
- package/lib/module/Icon/icons/Calendar.js.map +1 -0
- package/lib/module/Icon/icons/Camera.js +22 -0
- package/lib/module/Icon/icons/Camera.js.map +1 -0
- package/lib/module/Icon/icons/Check.js +22 -0
- package/lib/module/Icon/icons/Check.js.map +1 -0
- package/lib/module/Icon/icons/Document.js +22 -0
- package/lib/module/Icon/icons/Document.js.map +1 -0
- package/lib/module/Icon/icons/Download.js +22 -0
- package/lib/module/Icon/icons/Download.js.map +1 -0
- package/lib/module/Icon/icons/ExlmationMark.js +22 -0
- package/lib/module/Icon/icons/ExlmationMark.js.map +1 -0
- package/lib/module/Icon/icons/Eye.js +22 -0
- package/lib/module/Icon/icons/Eye.js.map +1 -0
- package/lib/module/Icon/icons/EyeOpen.js +22 -0
- package/lib/module/Icon/icons/EyeOpen.js.map +1 -0
- package/lib/module/Icon/icons/Filter.js +22 -0
- package/lib/module/Icon/icons/Filter.js.map +1 -0
- package/lib/module/Icon/icons/Home.js +8 -0
- package/lib/module/Icon/icons/Home.js.map +1 -0
- package/lib/module/Icon/icons/Image.js +22 -0
- package/lib/module/Icon/icons/Image.js.map +1 -0
- package/lib/module/Icon/icons/Pdf.js +22 -0
- package/lib/module/Icon/icons/Pdf.js.map +1 -0
- package/lib/module/Icon/icons/RadioButton.js +34 -0
- package/lib/module/Icon/icons/RadioButton.js.map +1 -0
- package/lib/module/Icon/icons/Search.js +22 -0
- package/lib/module/Icon/icons/Search.js.map +1 -0
- package/lib/module/Icon/icons/StickyNote.js +22 -0
- package/lib/module/Icon/icons/StickyNote.js.map +1 -0
- package/lib/module/Icon/icons/Times.js +22 -0
- package/lib/module/Icon/icons/Times.js.map +1 -0
- package/lib/module/Icon/icons/User.js +22 -0
- package/lib/module/Icon/icons/User.js.map +1 -0
- package/lib/module/Icon/icons/XCircle.js +22 -0
- package/lib/module/Icon/icons/XCircle.js.map +1 -0
- package/lib/module/Icon/index.js +6 -0
- package/lib/module/Icon/index.js.map +1 -0
- package/lib/module/Icon/type.js +4 -0
- package/lib/module/Icon/type.js.map +1 -0
- package/lib/module/Input/Input.js +125 -0
- package/lib/module/Input/Input.js.map +1 -0
- package/lib/module/Input/Input.md +51 -0
- package/lib/module/Input/InputFile.js +319 -0
- package/lib/module/Input/InputFile.js.map +1 -0
- package/lib/module/Input/InputMonth.js +4 -0
- package/lib/module/Input/InputMonth.js.map +1 -0
- package/lib/module/Input/InputNumber.js +2 -0
- package/lib/module/Input/InputNumber.js.map +1 -0
- package/lib/module/Input/InputOtp.js +74 -0
- package/lib/module/Input/InputOtp.js.map +1 -0
- package/lib/module/Input/InputPassword.js +18 -0
- package/lib/module/Input/InputPassword.js.map +1 -0
- package/lib/module/Input/InputSelect.js +8 -0
- package/lib/module/Input/InputSelect.js.map +1 -0
- package/lib/module/Input/Switch.js +91 -0
- package/lib/module/Input/Switch.js.map +1 -0
- package/lib/module/Input/TextArea.js +61 -0
- package/lib/module/Input/TextArea.js.map +1 -0
- package/lib/module/Input/assets/Ilustrasi.svg +14 -0
- package/lib/module/Input/assets/input-file.png +0 -0
- package/lib/module/Input/type.js +4 -0
- package/lib/module/Input/type.js.map +1 -0
- package/lib/module/Label/Label.js +87 -0
- package/lib/module/Label/Label.js.map +1 -0
- package/lib/module/LabelForm/LabelForm.js +17 -0
- package/lib/module/LabelForm/LabelForm.js.map +1 -0
- package/lib/module/List/List.js +31 -0
- package/lib/module/List/List.js.map +1 -0
- package/lib/module/List/ListItem.js +31 -0
- package/lib/module/List/ListItem.js.map +1 -0
- package/lib/module/List/type.js +4 -0
- package/lib/module/List/type.js.map +1 -0
- package/lib/module/Loading/Loading.js +50 -0
- package/lib/module/Loading/Loading.js.map +1 -0
- package/lib/module/Modal/Modal.js +149 -0
- package/lib/module/Modal/Modal.js.map +1 -0
- package/lib/module/NativeRnKit.js +5 -0
- package/lib/module/NativeRnKit.js.map +1 -0
- package/lib/module/Provider/FooterProvider.js +25 -0
- package/lib/module/Provider/FooterProvider.js.map +1 -0
- package/lib/module/Provider/LayoutWithFooter.js +34 -0
- package/lib/module/Provider/LayoutWithFooter.js.map +1 -0
- package/lib/module/Provider/Provider.js +43 -0
- package/lib/module/Provider/Provider.js.map +1 -0
- package/lib/module/Provider/RequiredUpdateAppsProvider.js +60 -0
- package/lib/module/Provider/RequiredUpdateAppsProvider.js.map +1 -0
- package/lib/module/Provider/type.js +2 -0
- package/lib/module/Provider/type.js.map +1 -0
- package/lib/module/RadioButton/README.md +43 -0
- package/lib/module/RadioButton/RadioButton.js +97 -0
- package/lib/module/RadioButton/RadioButton.js.map +1 -0
- package/lib/module/Select/README.md +78 -0
- package/lib/module/Select/README_Select.md +78 -0
- package/lib/module/Select/Select.js +101 -0
- package/lib/module/Select/Select.js.map +1 -0
- package/lib/module/Select/type.js +4 -0
- package/lib/module/Select/type.js.map +1 -0
- package/lib/module/Step/Step.js +83 -0
- package/lib/module/Step/Step.js.map +1 -0
- package/lib/module/Step/StepItem.js +78 -0
- package/lib/module/Step/StepItem.js.map +1 -0
- package/lib/module/Step/type.js +4 -0
- package/lib/module/Step/type.js.map +1 -0
- package/lib/module/SwitchButton/SwitchButton.js +8 -0
- package/lib/module/SwitchButton/SwitchButton.js.map +1 -0
- package/lib/module/TextArea/TextArea.js +2 -0
- package/lib/module/TextArea/TextArea.js.map +1 -0
- package/lib/module/Theme/Theme.js +31 -0
- package/lib/module/Theme/Theme.js.map +1 -0
- package/lib/module/Timeline/Timeline.js +12 -0
- package/lib/module/Timeline/Timeline.js.map +1 -0
- package/lib/module/Timeline/TimelineItem.js +66 -0
- package/lib/module/Timeline/TimelineItem.js.map +1 -0
- package/lib/module/Toast/Toast.js +143 -0
- package/lib/module/Toast/Toast.js.map +1 -0
- package/lib/module/Toast/ToastContext.js +40 -0
- package/lib/module/Toast/ToastContext.js.map +1 -0
- package/lib/module/Typography/README.md +71 -0
- package/lib/module/Typography/Typography.js +39 -0
- package/lib/module/Typography/Typography.js.map +1 -0
- package/lib/module/Typography/type.js +33 -0
- package/lib/module/Typography/type.js.map +1 -0
- package/lib/module/Ui/Card.js +50 -0
- package/lib/module/Ui/Card.js.map +1 -0
- package/lib/module/Ui/Center.js +21 -0
- package/lib/module/Ui/Center.js.map +1 -0
- package/lib/module/Ui/Col.js +20 -0
- package/lib/module/Ui/Col.js.map +1 -0
- package/lib/module/Ui/Container.js +20 -0
- package/lib/module/Ui/Container.js.map +1 -0
- package/lib/module/Ui/Devider.js +18 -0
- package/lib/module/Ui/Devider.js.map +1 -0
- package/lib/module/Ui/Footer.js +36 -0
- package/lib/module/Ui/Footer.js.map +1 -0
- package/lib/module/Ui/Gap.js +13 -0
- package/lib/module/Ui/Gap.js.map +1 -0
- package/lib/module/Ui/Grid.js +31 -0
- package/lib/module/Ui/Grid.js.map +1 -0
- package/lib/module/index.js +61 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/Accordion/Accordion.d.ts +3 -0
- package/lib/typescript/src/Accordion/Accordion.d.ts.map +1 -0
- package/lib/typescript/src/Accordion/AccordionItem.d.ts +3 -0
- package/lib/typescript/src/Accordion/AccordionItem.d.ts.map +1 -0
- package/lib/typescript/src/Accordion/type.d.ts +17 -0
- package/lib/typescript/src/Accordion/type.d.ts.map +1 -0
- package/lib/typescript/src/Alert/Alert.d.ts +16 -0
- package/lib/typescript/src/Alert/Alert.d.ts.map +1 -0
- package/lib/typescript/src/Avatar/Avatar.d.ts +5 -0
- package/lib/typescript/src/Avatar/Avatar.d.ts.map +1 -0
- package/lib/typescript/src/Avatar/AvatarGroup.d.ts +4 -0
- package/lib/typescript/src/Avatar/AvatarGroup.d.ts.map +1 -0
- package/lib/typescript/src/Avatar/type.d.ts +16 -0
- package/lib/typescript/src/Avatar/type.d.ts.map +1 -0
- package/lib/typescript/src/Badge/Badge.d.ts +14 -0
- package/lib/typescript/src/Badge/Badge.d.ts.map +1 -0
- package/lib/typescript/src/Badge/type.d.ts +1 -0
- package/lib/typescript/src/Badge/type.d.ts.map +1 -0
- package/lib/typescript/src/BottomSheet/BottomSheet.d.ts +3 -0
- package/lib/typescript/src/BottomSheet/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/src/BottomSheet/type.d.ts +15 -0
- package/lib/typescript/src/BottomSheet/type.d.ts.map +1 -0
- package/lib/typescript/src/Button/Button.d.ts +5 -0
- package/lib/typescript/src/Button/Button.d.ts.map +1 -0
- package/lib/typescript/src/Button/type.d.ts +49 -0
- package/lib/typescript/src/Button/type.d.ts.map +1 -0
- package/lib/typescript/src/Calendar/Calendar.d.ts +4 -0
- package/lib/typescript/src/Calendar/Calendar.d.ts.map +1 -0
- package/lib/typescript/src/Calendar/CalendarPropsType.d.ts +52 -0
- package/lib/typescript/src/Calendar/CalendarPropsType.d.ts.map +1 -0
- package/lib/typescript/src/CheckBox/CheckBox.d.ts +11 -0
- package/lib/typescript/src/CheckBox/CheckBox.d.ts.map +1 -0
- package/lib/typescript/src/CheckBox/CheckBoxList.d.ts +14 -0
- package/lib/typescript/src/CheckBox/CheckBoxList.d.ts.map +1 -0
- package/lib/typescript/src/Chip/Chip.d.ts +5 -0
- package/lib/typescript/src/Chip/Chip.d.ts.map +1 -0
- package/lib/typescript/src/Chip/ChipItem.d.ts +3 -0
- package/lib/typescript/src/Chip/ChipItem.d.ts.map +1 -0
- package/lib/typescript/src/Chip/type.d.ts +50 -0
- package/lib/typescript/src/Chip/type.d.ts.map +1 -0
- package/lib/typescript/src/Color/Color.d.ts +122 -0
- package/lib/typescript/src/Color/Color.d.ts.map +1 -0
- package/lib/typescript/src/Color/type.d.ts +2 -0
- package/lib/typescript/src/Color/type.d.ts.map +1 -0
- package/lib/typescript/src/DatePicker/DatePicker.d.ts +10 -0
- package/lib/typescript/src/DatePicker/DatePicker.d.ts.map +1 -0
- package/lib/typescript/src/DatePicker/MonthPicker.d.ts +13 -0
- package/lib/typescript/src/DatePicker/MonthPicker.d.ts.map +1 -0
- package/lib/typescript/src/DatePicker/TimePicker.d.ts +11 -0
- package/lib/typescript/src/DatePicker/TimePicker.d.ts.map +1 -0
- package/lib/typescript/src/DatePicker/YearPicker.d.ts +13 -0
- package/lib/typescript/src/DatePicker/YearPicker.d.ts.map +1 -0
- package/lib/typescript/src/DatePicker/helpers.d.ts +21 -0
- package/lib/typescript/src/DatePicker/helpers.d.ts.map +1 -0
- package/lib/typescript/src/Drawing/Drawing.d.ts +2 -0
- package/lib/typescript/src/Drawing/Drawing.d.ts.map +1 -0
- package/lib/typescript/src/DropDown/DropDown.d.ts +4 -0
- package/lib/typescript/src/DropDown/DropDown.d.ts.map +1 -0
- package/lib/typescript/src/DropDown/type.d.ts +9 -0
- package/lib/typescript/src/DropDown/type.d.ts.map +1 -0
- package/lib/typescript/src/FileView/Image.d.ts +2 -0
- package/lib/typescript/src/FileView/Image.d.ts.map +1 -0
- package/lib/typescript/src/FileView/PdfView.d.ts +5 -0
- package/lib/typescript/src/FileView/PdfView.d.ts.map +1 -0
- package/lib/typescript/src/Icon/Icon.d.ts +5 -0
- package/lib/typescript/src/Icon/Icon.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/AirPlane.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/AirPlane.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/ArrowBackAlt.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/ArrowBackAlt.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/ArrowDown.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/ArrowDown.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/ArrowForwardAlt.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/ArrowForwardAlt.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/ArrowLeft.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/ArrowLeft.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/ArrowRight.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/ArrowRight.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/ArrowUp.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/ArrowUp.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/Calendar.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/Calendar.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/Camera.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/Camera.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/Check.d.ts +6 -0
- package/lib/typescript/src/Icon/icons/Check.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/Document.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/Document.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/Download.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/Download.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/ExlmationMark.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/ExlmationMark.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/Eye.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/Eye.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/EyeOpen.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/EyeOpen.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/Filter.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/Filter.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/Home.d.ts +2 -0
- package/lib/typescript/src/Icon/icons/Home.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/Image.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/Image.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/Pdf.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/Pdf.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/RadioButton.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/RadioButton.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/Search.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/Search.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/StickyNote.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/StickyNote.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/Times.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/Times.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/User.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/User.d.ts.map +1 -0
- package/lib/typescript/src/Icon/icons/XCircle.d.ts +9 -0
- package/lib/typescript/src/Icon/icons/XCircle.d.ts.map +1 -0
- package/lib/typescript/src/Icon/index.d.ts +5 -0
- package/lib/typescript/src/Icon/index.d.ts.map +1 -0
- package/lib/typescript/src/Icon/type.d.ts +9 -0
- package/lib/typescript/src/Icon/type.d.ts.map +1 -0
- package/lib/typescript/src/Input/Input.d.ts +5 -0
- package/lib/typescript/src/Input/Input.d.ts.map +1 -0
- package/lib/typescript/src/Input/InputFile.d.ts +11 -0
- package/lib/typescript/src/Input/InputFile.d.ts.map +1 -0
- package/lib/typescript/src/Input/InputMonth.d.ts +2 -0
- package/lib/typescript/src/Input/InputMonth.d.ts.map +1 -0
- package/lib/typescript/src/Input/InputNumber.d.ts +1 -0
- package/lib/typescript/src/Input/InputNumber.d.ts.map +1 -0
- package/lib/typescript/src/Input/InputOtp.d.ts +11 -0
- package/lib/typescript/src/Input/InputOtp.d.ts.map +1 -0
- package/lib/typescript/src/Input/InputPassword.d.ts +15 -0
- package/lib/typescript/src/Input/InputPassword.d.ts.map +1 -0
- package/lib/typescript/src/Input/InputSelect.d.ts +2 -0
- package/lib/typescript/src/Input/InputSelect.d.ts.map +1 -0
- package/lib/typescript/src/Input/Switch.d.ts +12 -0
- package/lib/typescript/src/Input/Switch.d.ts.map +1 -0
- package/lib/typescript/src/Input/TextArea.d.ts +3 -0
- package/lib/typescript/src/Input/TextArea.d.ts.map +1 -0
- package/lib/typescript/src/Input/type.d.ts +18 -0
- package/lib/typescript/src/Input/type.d.ts.map +1 -0
- package/lib/typescript/src/Label/Label.d.ts +12 -0
- package/lib/typescript/src/Label/Label.d.ts.map +1 -0
- package/lib/typescript/src/LabelForm/LabelForm.d.ts +4 -0
- package/lib/typescript/src/LabelForm/LabelForm.d.ts.map +1 -0
- package/lib/typescript/src/List/List.d.ts +3 -0
- package/lib/typescript/src/List/List.d.ts.map +1 -0
- package/lib/typescript/src/List/ListItem.d.ts +3 -0
- package/lib/typescript/src/List/ListItem.d.ts.map +1 -0
- package/lib/typescript/src/List/type.d.ts +14 -0
- package/lib/typescript/src/List/type.d.ts.map +1 -0
- package/lib/typescript/src/Loading/Loading.d.ts +10 -0
- package/lib/typescript/src/Loading/Loading.d.ts.map +1 -0
- package/lib/typescript/src/Modal/Modal.d.ts +18 -0
- package/lib/typescript/src/Modal/Modal.d.ts.map +1 -0
- package/lib/typescript/src/NativeRnKit.d.ts +7 -0
- package/lib/typescript/src/NativeRnKit.d.ts.map +1 -0
- package/lib/typescript/src/Provider/FooterProvider.d.ts +11 -0
- package/lib/typescript/src/Provider/FooterProvider.d.ts.map +1 -0
- package/lib/typescript/src/Provider/LayoutWithFooter.d.ts +5 -0
- package/lib/typescript/src/Provider/LayoutWithFooter.d.ts.map +1 -0
- package/lib/typescript/src/Provider/Provider.d.ts +15 -0
- package/lib/typescript/src/Provider/Provider.d.ts.map +1 -0
- package/lib/typescript/src/Provider/RequiredUpdateAppsProvider.d.ts +3 -0
- package/lib/typescript/src/Provider/RequiredUpdateAppsProvider.d.ts.map +1 -0
- package/lib/typescript/src/Provider/type.d.ts +7 -0
- package/lib/typescript/src/Provider/type.d.ts.map +1 -0
- package/lib/typescript/src/RadioButton/RadioButton.d.ts +15 -0
- package/lib/typescript/src/RadioButton/RadioButton.d.ts.map +1 -0
- package/lib/typescript/src/Select/Select.d.ts +3 -0
- package/lib/typescript/src/Select/Select.d.ts.map +1 -0
- package/lib/typescript/src/Select/type.d.ts +24 -0
- package/lib/typescript/src/Select/type.d.ts.map +1 -0
- package/lib/typescript/src/Step/Step.d.ts +4 -0
- package/lib/typescript/src/Step/Step.d.ts.map +1 -0
- package/lib/typescript/src/Step/StepItem.d.ts +4 -0
- package/lib/typescript/src/Step/StepItem.d.ts.map +1 -0
- package/lib/typescript/src/Step/type.d.ts +18 -0
- package/lib/typescript/src/Step/type.d.ts.map +1 -0
- package/lib/typescript/src/SwitchButton/SwitchButton.d.ts +2 -0
- package/lib/typescript/src/SwitchButton/SwitchButton.d.ts.map +1 -0
- package/lib/typescript/src/TextArea/TextArea.d.ts +1 -0
- package/lib/typescript/src/TextArea/TextArea.d.ts.map +1 -0
- package/lib/typescript/src/Theme/Theme.d.ts +29 -0
- package/lib/typescript/src/Theme/Theme.d.ts.map +1 -0
- package/lib/typescript/src/Timeline/Timeline.d.ts +6 -0
- package/lib/typescript/src/Timeline/Timeline.d.ts.map +1 -0
- package/lib/typescript/src/Timeline/TimelineItem.d.ts +15 -0
- package/lib/typescript/src/Timeline/TimelineItem.d.ts.map +1 -0
- package/lib/typescript/src/Toast/Toast.d.ts +14 -0
- package/lib/typescript/src/Toast/Toast.d.ts.map +1 -0
- package/lib/typescript/src/Toast/ToastContext.d.ts +17 -0
- package/lib/typescript/src/Toast/ToastContext.d.ts.map +1 -0
- package/lib/typescript/src/Typography/Typography.d.ts +5 -0
- package/lib/typescript/src/Typography/Typography.d.ts.map +1 -0
- package/lib/typescript/src/Typography/type.d.ts +19 -0
- package/lib/typescript/src/Typography/type.d.ts.map +1 -0
- package/lib/typescript/src/Ui/Card.d.ts +11 -0
- package/lib/typescript/src/Ui/Card.d.ts.map +1 -0
- package/lib/typescript/src/Ui/Center.d.ts +9 -0
- package/lib/typescript/src/Ui/Center.d.ts.map +1 -0
- package/lib/typescript/src/Ui/Col.d.ts +10 -0
- package/lib/typescript/src/Ui/Col.d.ts.map +1 -0
- package/lib/typescript/src/Ui/Container.d.ts +2 -0
- package/lib/typescript/src/Ui/Container.d.ts.map +1 -0
- package/lib/typescript/src/Ui/Devider.d.ts +3 -0
- package/lib/typescript/src/Ui/Devider.d.ts.map +1 -0
- package/lib/typescript/src/Ui/Footer.d.ts +9 -0
- package/lib/typescript/src/Ui/Footer.d.ts.map +1 -0
- package/lib/typescript/src/Ui/Gap.d.ts +6 -0
- package/lib/typescript/src/Ui/Gap.d.ts.map +1 -0
- package/lib/typescript/src/Ui/Grid.d.ts +9 -0
- package/lib/typescript/src/Ui/Grid.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +59 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/package.json +172 -0
- package/src/Accordion/Accordion.tsx +38 -0
- package/src/Accordion/AccordionItem.tsx +9 -0
- package/src/Accordion/README.md +48 -0
- package/src/Accordion/type.tsx +19 -0
- package/src/Alert/Alert.tsx +141 -0
- package/src/Alert/README.md +68 -0
- package/src/Avatar/Avatar.tsx +68 -0
- package/src/Avatar/AvatarGroup.tsx +135 -0
- package/src/Avatar/README_AVATAR.md +57 -0
- package/src/Avatar/README_AVATARGROUP.md +58 -0
- package/src/Avatar/type.tsx +17 -0
- package/src/Badge/Badge.tsx +135 -0
- package/src/Badge/README.md +64 -0
- package/src/Badge/type.tsx +0 -0
- package/src/BottomSheet/BottomSheet.tsx +259 -0
- package/src/BottomSheet/README.md +64 -0
- package/src/BottomSheet/type.tsx +15 -0
- package/src/Button/Button.tsx +195 -0
- package/src/Button/README.md +94 -0
- package/src/Button/type.tsx +329 -0
- package/src/Calendar/Calendar.tsx +382 -0
- package/src/Calendar/CalendarPropsType.tsx +60 -0
- package/src/Calendar/README.md +73 -0
- package/src/CheckBox/CheckBox.tsx +80 -0
- package/src/CheckBox/CheckBoxList.tsx +64 -0
- package/src/CheckBox/README_CHECKBOX.md +46 -0
- package/src/CheckBox/README_CHECKBOXLIST.md +41 -0
- package/src/Chip/Chip.tsx +134 -0
- package/src/Chip/ChipItem.tsx +124 -0
- package/src/Chip/README.md +89 -0
- package/src/Chip/type.tsx +152 -0
- package/src/Color/Color.tsx +133 -0
- package/src/Color/README.md +54 -0
- package/src/Color/type.tsx +9 -0
- package/src/DatePicker/DatePicker.tsx +78 -0
- package/src/DatePicker/MonthPicker.tsx +204 -0
- package/src/DatePicker/README.md +51 -0
- package/src/DatePicker/TimePicker.tsx +234 -0
- package/src/DatePicker/YearPicker.tsx +238 -0
- package/src/DatePicker/helpers.tsx +53 -0
- package/src/Drawing/Drawing.tsx +23 -0
- package/src/DropDown/DropDown.tsx +136 -0
- package/src/DropDown/type.tsx +9 -0
- package/src/FileView/Image.tsx +5 -0
- package/src/FileView/PdfView.tsx +33 -0
- package/src/Icon/Icon.tsx +76 -0
- package/src/Icon/icons/AirPlane.tsx +19 -0
- package/src/Icon/icons/ArrowBackAlt.tsx +23 -0
- package/src/Icon/icons/ArrowDown.tsx +19 -0
- package/src/Icon/icons/ArrowForwardAlt.tsx +23 -0
- package/src/Icon/icons/ArrowLeft.tsx +19 -0
- package/src/Icon/icons/ArrowRight.tsx +19 -0
- package/src/Icon/icons/ArrowUp.tsx +19 -0
- package/src/Icon/icons/Calendar.tsx +19 -0
- package/src/Icon/icons/Camera.tsx +19 -0
- package/src/Icon/icons/Check.tsx +15 -0
- package/src/Icon/icons/Document.tsx +19 -0
- package/src/Icon/icons/Download.tsx +19 -0
- package/src/Icon/icons/ExlmationMark.tsx +23 -0
- package/src/Icon/icons/Eye.tsx +19 -0
- package/src/Icon/icons/EyeOpen.tsx +19 -0
- package/src/Icon/icons/Filter.tsx +19 -0
- package/src/Icon/icons/Home.tsx +5 -0
- package/src/Icon/icons/Image.tsx +19 -0
- package/src/Icon/icons/Pdf.tsx +19 -0
- package/src/Icon/icons/RadioButton.tsx +22 -0
- package/src/Icon/icons/Search.tsx +19 -0
- package/src/Icon/icons/StickyNote.tsx +19 -0
- package/src/Icon/icons/Times.tsx +19 -0
- package/src/Icon/icons/User.tsx +19 -0
- package/src/Icon/icons/XCircle.tsx +19 -0
- package/src/Icon/index.tsx +5 -0
- package/src/Icon/type.tsx +37 -0
- package/src/Input/Input.md +51 -0
- package/src/Input/Input.tsx +134 -0
- package/src/Input/InputFile.tsx +320 -0
- package/src/Input/InputMonth.tsx +1 -0
- package/src/Input/InputNumber.tsx +0 -0
- package/src/Input/InputOtp.tsx +96 -0
- package/src/Input/InputPassword.tsx +31 -0
- package/src/Input/InputSelect.tsx +5 -0
- package/src/Input/Switch.tsx +111 -0
- package/src/Input/TextArea.tsx +67 -0
- package/src/Input/assets/Ilustrasi.svg +14 -0
- package/src/Input/assets/input-file.png +0 -0
- package/src/Input/type.tsx +19 -0
- package/src/Label/Label.tsx +119 -0
- package/src/LabelForm/LabelForm.tsx +12 -0
- package/src/List/List.tsx +31 -0
- package/src/List/ListItem.tsx +34 -0
- package/src/List/type.tsx +14 -0
- package/src/Loading/Loading.tsx +56 -0
- package/src/Modal/Modal.tsx +179 -0
- package/src/NativeRnKit.ts +8 -0
- package/src/Provider/FooterProvider.tsx +26 -0
- package/src/Provider/LayoutWithFooter.tsx +27 -0
- package/src/Provider/Provider.tsx +53 -0
- package/src/Provider/RequiredUpdateAppsProvider.tsx +58 -0
- package/src/Provider/type.tsx +6 -0
- package/src/RadioButton/README.md +43 -0
- package/src/RadioButton/RadioButton.tsx +119 -0
- package/src/Select/README.md +78 -0
- package/src/Select/README_Select.md +78 -0
- package/src/Select/Select.tsx +115 -0
- package/src/Select/type.tsx +30 -0
- package/src/Step/Step.tsx +92 -0
- package/src/Step/StepItem.tsx +86 -0
- package/src/Step/type.tsx +18 -0
- package/src/SwitchButton/SwitchButton.tsx +5 -0
- package/src/TextArea/TextArea.tsx +0 -0
- package/src/Theme/Theme.tsx +28 -0
- package/src/Timeline/Timeline.tsx +9 -0
- package/src/Timeline/TimelineItem.tsx +63 -0
- package/src/Toast/Toast.tsx +179 -0
- package/src/Toast/ToastContext.tsx +51 -0
- package/src/Typography/README.md +71 -0
- package/src/Typography/Typography.tsx +44 -0
- package/src/Typography/type.tsx +60 -0
- package/src/Ui/Card.tsx +70 -0
- package/src/Ui/Center.tsx +20 -0
- package/src/Ui/Col.tsx +17 -0
- package/src/Ui/Container.tsx +12 -0
- package/src/Ui/Devider.tsx +15 -0
- package/src/Ui/Footer.tsx +37 -0
- package/src/Ui/Gap.tsx +8 -0
- package/src/Ui/Grid.tsx +36 -0
- package/src/index.tsx +68 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const ArrowRight: React.FC<Props> = ({ size = 24, color = '#000', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 6 10" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M1.00004 10.0003C0.744037 10.0003 0.488006 9.90231 0.293006 9.70731C-0.0979941 9.31631 -0.0979941 8.68425 0.293006 8.29325L3.58597 5.00028L0.293006 1.70731C-0.0979941 1.31631 -0.0979941 0.68425 0.293006 0.29325C0.684006 -0.09775 1.31607 -0.09775 1.70707 0.29325L5.70707 4.29325C6.09807 4.68425 6.09807 5.31631 5.70707 5.70731L1.70707 9.70731C1.51207 9.90231 1.25604 10.0003 1.00004 10.0003Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default ArrowRight;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const ArrowUp: React.FC<Props> = ({ size = 24, color = '#000', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 10 6" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M8.33227 5.49999C8.11893 5.49999 7.90557 5.41835 7.74307 5.25585L4.99893 2.51171L2.25479 5.25585C1.92896 5.58168 1.40224 5.58168 1.07641 5.25585C0.750573 4.93002 0.750573 4.4033 1.07641 4.07746L4.40974 0.744131C4.73557 0.418298 5.26229 0.418298 5.58812 0.744131L8.92146 4.07746C9.24729 4.4033 9.24729 4.93002 8.92146 5.25585C8.75896 5.41835 8.5456 5.49999 8.33227 5.49999Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default ArrowUp;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const Calendar: React.FC<Props> = ({ size = 24, color = '#000', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 12 13" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M11.8 5.5H0.200033C0.0893659 5.5 0 5.58937 0 5.70003V11C0 12.3333 0.666667 13 2 13H10C11.3333 13 12 12.3333 12 11V5.70003C12 5.58937 11.9106 5.5 11.8 5.5ZM3.34668 11C2.97868 11 2.67659 10.7013 2.67659 10.3333C2.67659 9.96533 2.97201 9.66667 3.34001 9.66667H3.34668C3.71535 9.66667 4.01335 9.96533 4.01335 10.3333C4.01335 10.7013 3.71468 11 3.34668 11ZM3.34668 8.33333C2.97868 8.33333 2.67659 8.03467 2.67659 7.66667C2.67659 7.29867 2.97201 7 3.34001 7H3.34668C3.71535 7 4.01335 7.29867 4.01335 7.66667C4.01335 8.03467 3.71468 8.33333 3.34668 8.33333ZM6.01335 11C5.64535 11 5.34326 10.7013 5.34326 10.3333C5.34326 9.96533 5.63867 9.66667 6.00667 9.66667H6.01335C6.38201 9.66667 6.68001 9.96533 6.68001 10.3333C6.68001 10.7013 6.38135 11 6.01335 11ZM6.01335 8.33333C5.64535 8.33333 5.34326 8.03467 5.34326 7.66667C5.34326 7.29867 5.63867 7 6.00667 7H6.01335C6.38201 7 6.68001 7.29867 6.68001 7.66667C6.68001 8.03467 6.38135 8.33333 6.01335 8.33333ZM8.68001 11C8.31201 11 8.00993 10.7013 8.00993 10.3333C8.00993 9.96533 8.30534 9.66667 8.67334 9.66667H8.68001C9.04868 9.66667 9.34668 9.96533 9.34668 10.3333C9.34668 10.7013 9.04801 11 8.68001 11ZM8.68001 8.33333C8.31201 8.33333 8.00993 8.03467 8.00993 7.66667C8.00993 7.29867 8.30534 7 8.67334 7H8.68001C9.04868 7 9.34668 7.29867 9.34668 7.66667C9.34668 8.03467 9.04801 8.33333 8.68001 8.33333ZM12 4V4.29997C12 4.41063 11.9106 4.5 11.8 4.5H0.200033C0.0893659 4.5 0 4.41063 0 4.29997V4C0 2.66667 0.666667 2 2 2H2.83333V1C2.83333 0.726667 3.06 0.5 3.33333 0.5C3.60667 0.5 3.83333 0.726667 3.83333 1V2H8.16667V1C8.16667 0.726667 8.39333 0.5 8.66667 0.5C8.94 0.5 9.16667 0.726667 9.16667 1V2H10C11.3333 2 12 2.66667 12 4Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default Calendar;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const Camera: React.FC<Props> = ({ size = 24, color = '#909090', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 18 18" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M15 3.5H13L12.342 1.52588C12.138 0.912879 11.5649 0.5 10.9189 0.5H7.08105C6.43505 0.5 5.86196 0.912879 5.65796 1.52588L5 3.5H3C1 3.5 0 4.5 0 6.5V14.5C0 16.5 1 17.5 3 17.5H15C17 17.5 18 16.5 18 14.5V6.5C18 4.5 17 3.5 15 3.5ZM9 13.5C7.343 13.5 6 12.157 6 10.5C6 8.843 7.343 7.5 9 7.5C10.657 7.5 12 8.843 12 10.5C12 12.157 10.657 13.5 9 13.5ZM14.5 8C13.948 8 13.5 7.552 13.5 7C13.5 6.448 13.948 6 14.5 6C15.052 6 15.5 6.448 15.5 7C15.5 7.552 15.052 8 14.5 8Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default Camera;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Svg, { Path } from 'react-native-svg';
|
|
2
|
+
|
|
3
|
+
const Check = ({ size = 16, color = 'black' }) => (
|
|
4
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
5
|
+
<Path
|
|
6
|
+
d="M5 13l4 4L19 7"
|
|
7
|
+
stroke={color}
|
|
8
|
+
strokeWidth={2}
|
|
9
|
+
strokeLinecap="round"
|
|
10
|
+
strokeLinejoin="round"
|
|
11
|
+
/>
|
|
12
|
+
</Svg>
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
export default Check;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const Document: React.FC<Props> = ({ size = 24, color = '#000', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 15 19" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M9.75 3.5V1.25L14.25 5.75H12C10.42 5.75 9.75 5.08 9.75 3.5ZM12 7.25C9.58 7.25 8.25 5.92 8.25 3.5V0.5H3C1 0.5 0 1.5 0 3.5V15.5C0 17.5 1 18.5 3 18.5H12C14 18.5 15 17.5 15 15.5V7.25H12Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default Document;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const Downnload: React.FC<Props> = ({ size = 24, color = '#000', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 13 16" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M8.2915 3V1.125L12.0415 4.875H10.1665C8.84984 4.875 8.2915 4.31667 8.2915 3ZM12.6665 6.125V13C12.6665 14.6667 11.8332 15.5 10.1665 15.5H2.6665C0.999837 15.5 0.166504 14.6667 0.166504 13V3C0.166504 1.33333 0.999837 0.5 2.6665 0.5H7.0415V3C7.0415 5.01667 8.14984 6.125 10.1665 6.125H12.6665ZM7.27486 10.0583C7.03069 9.81417 6.63483 9.81417 6.39067 10.0583L5.79069 10.6583V8C5.79069 7.655 5.51069 7.375 5.16569 7.375C4.82069 7.375 4.54069 7.655 4.54069 8V10.6575L3.94071 10.0575C3.69655 9.81333 3.30069 9.81333 3.05652 10.0575C2.81235 10.3017 2.81235 10.6975 3.05652 10.9417L4.72319 12.6083C4.78068 12.6658 4.84977 12.7117 4.92643 12.7433C5.0031 12.775 5.08402 12.7917 5.16569 12.7917C5.24736 12.7917 5.32808 12.775 5.40474 12.7433C5.48141 12.7117 5.55069 12.6658 5.60819 12.6083L7.27486 10.9417C7.51903 10.6983 7.51903 10.3017 7.27486 10.0583Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default Downnload;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const ExlamationMark: React.FC<Props> = ({
|
|
11
|
+
size = 24,
|
|
12
|
+
color = '#909090',
|
|
13
|
+
style,
|
|
14
|
+
}) => (
|
|
15
|
+
<Svg width={size} height={size} viewBox="0 0 20 20" fill="none" style={style}>
|
|
16
|
+
<Path
|
|
17
|
+
d="M10.0005 20C15.5235 20 20.0005 15.523 20.0005 10C20.0005 4.477 15.5235 0 10.0005 0C4.47749 0 0.000488281 4.477 0.000488281 10C0.000488281 15.523 4.47749 20 10.0005 20ZM9.25049 5.5C9.25049 5.086 9.58649 4.75 10.0005 4.75C10.4145 4.75 10.7505 5.086 10.7505 5.5V10.071C10.7505 10.485 10.4145 10.821 10.0005 10.821C9.58649 10.821 9.25049 10.485 9.25049 10.071V5.5ZM9.98047 12.5C10.5325 12.5 10.9856 12.948 10.9856 13.5C10.9856 14.052 10.5425 14.5 9.99048 14.5H9.98047C9.42747 14.5 8.98047 14.052 8.98047 13.5C8.98047 12.948 9.42847 12.5 9.98047 12.5Z"
|
|
18
|
+
fill={`${color}`}
|
|
19
|
+
/>
|
|
20
|
+
</Svg>
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
export default ExlamationMark;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const Eye: React.FC<Props> = ({ size = 24, color = '#909090', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 16 12" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M10.2917 6.00008C10.2917 7.26425 9.2642 8.29175 8.00003 8.29175C6.73587 8.29175 5.70837 7.26425 5.70837 6.00008C5.70837 5.70925 5.7683 5.43338 5.86747 5.17672C6.02913 5.30505 6.22419 5.39339 6.44669 5.39339C6.96919 5.39339 7.39334 4.96924 7.39334 4.44674C7.39334 4.22424 7.305 4.02918 7.17667 3.86751C7.43334 3.76835 7.7092 3.70841 8.00003 3.70841C9.2642 3.70841 10.2917 4.73591 10.2917 6.00008ZM15.1601 7.23096C14.1376 8.94262 11.8409 11.8334 8.00003 11.8334C4.1592 11.8334 1.8625 8.94262 0.84 7.23096C0.386667 6.47262 0.386667 5.52754 0.84 4.76921C1.8625 3.05754 4.1592 0.166748 8.00003 0.166748C11.8409 0.166748 14.1376 3.05754 15.1601 4.76921C15.6134 5.52754 15.6134 6.47262 15.1601 7.23096ZM11.5417 6.00008C11.5417 4.04758 9.95337 2.45841 8.00003 2.45841C6.0467 2.45841 4.45837 4.04758 4.45837 6.00008C4.45837 7.95258 6.0467 9.54175 8.00003 9.54175C9.95337 9.54175 11.5417 7.95258 11.5417 6.00008Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default Eye;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const EyeOpen: React.FC<Props> = ({ size = 24, color = '#909090', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 18 18" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M16.1585 7.76682C16.6168 8.52516 16.6168 9.47513 16.1585 10.2335C15.1335 11.9418 12.8417 14.8335 9.00006 14.8335C8.37673 14.8335 7.7901 14.7543 7.2451 14.6168C7.05926 14.5701 7.00082 14.3319 7.13666 14.1969L8.71665 12.6169C8.81332 12.5202 8.93339 12.5418 9.00006 12.5418C10.9534 12.5418 12.5417 10.9526 12.5417 9.00014C12.5417 8.93348 12.5318 8.80177 12.6009 8.7326L14.8859 6.44765C14.9917 6.34182 15.17 6.35273 15.2625 6.47023C15.6291 6.93357 15.9276 7.37766 16.1585 7.76682ZM16.9418 1.94183L1.94175 16.9418C1.82008 17.0635 1.66006 17.1251 1.50006 17.1251C1.34006 17.1251 1.18004 17.0643 1.05837 16.9418C0.814202 16.6977 0.814202 16.3018 1.05837 16.0576L4.14593 12.9701C3.0876 12.0692 2.31999 11.0301 1.84165 10.2326C1.38332 9.47431 1.38332 8.52434 1.84165 7.76601C2.86665 6.05768 5.15839 3.16599 9.00006 3.16599C10.5201 3.16599 11.7893 3.62175 12.8443 4.27175L16.0584 1.05764C16.3025 0.81347 16.6984 0.81347 16.9426 1.05764C17.1867 1.3018 17.1859 1.69767 16.9418 1.94183ZM6.10008 11.0159L7.00747 10.1085C6.82247 9.77937 6.70839 9.40514 6.70839 9.00014C6.70839 8.70848 6.76668 8.43348 6.86668 8.17515C7.02501 8.30848 7.22497 8.39182 7.44997 8.39182C7.96664 8.39182 8.39174 7.96672 8.39174 7.45005C8.39174 7.22505 8.3084 7.02509 8.17507 6.86676C8.4334 6.76676 8.70839 6.70847 9.00006 6.70847C9.40506 6.70847 9.78013 6.82255 10.1085 7.00755L11.0158 6.10016C10.4425 5.69849 9.74923 5.45847 9.00006 5.45847C7.05006 5.45847 5.45839 7.05014 5.45839 9.00014C5.45839 9.75014 5.69841 10.4426 6.10008 11.0159Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default EyeOpen;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const Filter: React.FC<Props> = ({ size = 24, color = '#909090', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 14 16" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M1.58431 0.5H12.4176C13.1076 0.5 13.6676 1.06 13.6676 1.75V3.63082C13.6676 3.96249 13.536 4.27999 13.3018 4.51499L9.03426 8.7825C8.8001 9.01666 8.66846 9.335 8.66846 9.66667V15.5L5.33513 13V9.66667C5.33513 9.335 5.20349 9.0175 4.96932 8.7825L0.701847 4.51499C0.46768 4.28083 0.335941 3.96249 0.335941 3.63082V1.75C0.334275 1.06 0.894314 0.5 1.58431 0.5Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default Filter;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const Image: React.FC<Props> = ({ size = 24, color = '#909090', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 20 19" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M16 0.75H4C1.582 0.75 0.25 2.082 0.25 4.5V14.5C0.25 16.918 1.582 18.25 4 18.25H16C18.418 18.25 19.75 16.918 19.75 14.5V4.5C19.75 2.082 18.418 0.75 16 0.75ZM4 2.25H16C17.577 2.25 18.25 2.923 18.25 4.5V11.75L13.71 7.20996C13.32 6.81996 12.68 6.81996 12.29 7.20996L7.34998 12.1499C7.15998 12.3399 6.84002 12.3399 6.65002 12.1499L5.70996 11.21C5.31996 10.82 4.68004 10.82 4.29004 11.21L1.75 13.75V4.5C1.75 2.923 2.423 2.25 4 2.25ZM4.75 6.5C4.75 5.81 5.30404 5.25 5.99304 5.25H6.00305C6.69205 5.25 7.25098 5.81 7.25098 6.5C7.25098 7.19 6.69305 7.75 6.00305 7.75C5.31405 7.75 4.75 7.19 4.75 6.5Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default Image;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const Pdf: React.FC<Props> = ({ size = 24, color = '#909090', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 28 36" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M0.59375 6.82812C0.59375 3.12609 3.59484 0.125 7.29688 0.125H17.2468L27.4038 10.6875V29.1719C27.4038 32.8739 24.4027 35.875 20.7007 35.875H7.29688C3.59485 35.875 0.59375 32.8739 0.59375 29.1719V6.82812Z"
|
|
14
|
+
fill={`${color}`}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default Pdf;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Circle, Path } from 'react-native-svg';
|
|
3
|
+
import Color from '../../Color/Color';
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
size?: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
style?: object;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const RadioButton: React.FC<Props> = ({ size = 24, color = '#000', style }) => (
|
|
12
|
+
<Svg width={size} height={size} viewBox="0 0 20 20" fill="none" style={style}>
|
|
13
|
+
<Path
|
|
14
|
+
d="M18 3.37V9.84998C18 10.07 17.9799 10.29 17.9299 10.5H13.8799C12.0099 10.5 10.5 12.01 10.5 13.88V17.9301C10.29 17.9801 10.0701 18 9.8501 18H3.37988C1.11988 18 0 16.87 0 14.62V3.37C0 1.12 1.11988 0 3.37988 0H14.6201C16.8801 0 18 1.12 18 3.37ZM12 13.88V17.22C12.09 17.16 12.16 17.09 12.24 17.01L17.01 12.24C17.09 12.16 17.16 12.09 17.22 12H13.8799C12.8399 12 12 12.84 12 13.88Z"
|
|
15
|
+
fill={Color.base.white100}
|
|
16
|
+
/>
|
|
17
|
+
<Circle cx="10" cy="10" r="9.5" fill="#FFFAEB" stroke={color} />
|
|
18
|
+
<Circle cx="10" cy="10" r="4" fill={color} />
|
|
19
|
+
</Svg>
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
export default RadioButton;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const Search: React.FC<Props> = ({ size = 24, color = '#000', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 18 18" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M16.9417 16.0583L13.7409 12.8575C14.8109 11.5883 15.4583 9.9525 15.4583 8.16667C15.4583 4.14583 12.1875 0.875 8.16667 0.875C4.14583 0.875 0.875 4.14583 0.875 8.16667C0.875 12.1875 4.14583 15.4583 8.16667 15.4583C9.9525 15.4583 11.5884 14.8108 12.8575 13.7408L16.0583 16.9417C16.18 17.0633 16.34 17.125 16.5 17.125C16.66 17.125 16.82 17.0642 16.9417 16.9417C17.1859 16.6983 17.1859 16.3025 16.9417 16.0583ZM2.125 8.16667C2.125 4.835 4.835 2.125 8.16667 2.125C11.4983 2.125 14.2083 4.835 14.2083 8.16667C14.2083 11.4983 11.4983 14.2083 8.16667 14.2083C4.835 14.2083 2.125 11.4983 2.125 8.16667Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default Search;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const StickyNote: React.FC<Props> = ({ size = 24, color = '#000', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 18 18" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M18 3.37V9.84998C18 10.07 17.9799 10.29 17.9299 10.5H13.8799C12.0099 10.5 10.5 12.01 10.5 13.88V17.9301C10.29 17.9801 10.0701 18 9.8501 18H3.37988C1.11988 18 0 16.87 0 14.62V3.37C0 1.12 1.11988 0 3.37988 0H14.6201C16.8801 0 18 1.12 18 3.37ZM12 13.88V17.22C12.09 17.16 12.16 17.09 12.24 17.01L17.01 12.24C17.09 12.16 17.16 12.09 17.22 12H13.8799C12.8399 12 12 12.84 12 13.88Z"
|
|
14
|
+
fill={`${color}`}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default StickyNote;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const Times: React.FC<Props> = ({ size = 24, color = '#909090', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 12 12" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M7.17594 6.00002L11.5868 1.58916C11.9126 1.26416 11.9126 0.735879 11.5868 0.410879C11.2609 0.0850456 10.7343 0.0850456 10.4084 0.410879L5.99761 4.82169L1.58677 0.410879C1.26094 0.0850456 0.734271 0.0850456 0.408438 0.410879C0.0826042 0.735879 0.0826042 1.26416 0.408438 1.58916L4.81927 6.00002L0.408438 10.4109C0.0826042 10.7359 0.0826042 11.2642 0.408438 11.5892C0.570938 11.7517 0.784271 11.8334 0.997605 11.8334C1.21094 11.8334 1.42427 11.7517 1.58677 11.5892L5.99761 7.17836L10.4084 11.5892C10.5709 11.7517 10.7843 11.8334 10.9976 11.8334C11.2109 11.8334 11.4243 11.7517 11.5868 11.5892C11.9126 11.2642 11.9126 10.7359 11.5868 10.4109L7.17594 6.00002Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default Times;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const User: React.FC<Props> = ({ size = 24, color = '#909090', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 14 16" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M3.67419 3.41659C3.67419 1.57825 5.16919 0.083252 7.00753 0.083252C8.84586 0.083252 10.3409 1.57825 10.3409 3.41659C10.3409 5.25492 8.84586 6.74992 7.00753 6.74992C5.16919 6.74992 3.67419 5.25492 3.67419 3.41659ZM8.66667 8.41659H5.33333C1.95 8.41659 0.75 10.8941 0.75 13.0158C0.75 14.9133 1.75921 15.9166 3.66921 15.9166H10.3308C12.2408 15.9166 13.25 14.9133 13.25 13.0158C13.25 10.8941 12.05 8.41659 8.66667 8.41659Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default User;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const XCircle: React.FC<Props> = ({ size = 24, color = '#909090', style }) => (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 18 18" fill="none" style={style}>
|
|
12
|
+
<Path
|
|
13
|
+
d="M9.00033 0.666748C4.40033 0.666748 0.666992 4.40008 0.666992 9.00008C0.666992 13.6001 4.40033 17.3334 9.00033 17.3334C13.6003 17.3334 17.3337 13.6001 17.3337 9.00008C17.3337 4.40008 13.6003 0.666748 9.00033 0.666748ZM11.942 11.0584C12.1837 11.3001 12.1837 11.7001 11.942 11.9418C11.817 12.0668 11.6587 12.1251 11.5003 12.1251C11.342 12.1251 11.1837 12.0668 11.0587 11.9418L9.00033 9.88341L6.94199 11.9418C6.81699 12.0668 6.65866 12.1251 6.50033 12.1251C6.34199 12.1251 6.18366 12.0668 6.05866 11.9418C5.81699 11.7001 5.81699 11.3001 6.05866 11.0584L8.11699 9.00008L6.05866 6.94177C5.81699 6.70011 5.81699 6.30006 6.05866 6.05839C6.30033 5.81672 6.70032 5.81672 6.94199 6.05839L9.00033 8.11675L11.0587 6.05839C11.3003 5.81672 11.7003 5.81672 11.942 6.05839C12.1837 6.30006 12.1837 6.70011 11.942 6.94177L9.88366 9.00008L11.942 11.0584Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default XCircle;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// src/icons/types.ts
|
|
2
|
+
|
|
3
|
+
import { type ViewStyle } from 'react-native';
|
|
4
|
+
|
|
5
|
+
export type IconNameProps =
|
|
6
|
+
| 'Home'
|
|
7
|
+
| 'Search'
|
|
8
|
+
| 'User'
|
|
9
|
+
| 'Eye'
|
|
10
|
+
| 'EyeOpen'
|
|
11
|
+
| 'ArrowRight'
|
|
12
|
+
| 'ArrowLeft'
|
|
13
|
+
| 'Document'
|
|
14
|
+
| 'Calendar'
|
|
15
|
+
| 'ExlamationMark'
|
|
16
|
+
| 'Download'
|
|
17
|
+
| 'x-circle'
|
|
18
|
+
| 'StickyNote'
|
|
19
|
+
| 'RadioButton'
|
|
20
|
+
| 'Pdf'
|
|
21
|
+
| 'ArrowBackAlt'
|
|
22
|
+
| 'ArrowForwardAlt'
|
|
23
|
+
| 'ArrowDown'
|
|
24
|
+
| 'ArrowUp'
|
|
25
|
+
| 'Check'
|
|
26
|
+
| 'Filter'
|
|
27
|
+
| 'AirPlane'
|
|
28
|
+
| 'Camera'
|
|
29
|
+
| 'Image'
|
|
30
|
+
| 'Times';
|
|
31
|
+
|
|
32
|
+
export interface IconProps {
|
|
33
|
+
name: IconNameProps;
|
|
34
|
+
size?: number;
|
|
35
|
+
color?: string;
|
|
36
|
+
style?: ViewStyle;
|
|
37
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# 📥 Input Component
|
|
2
|
+
|
|
3
|
+
Komponen `Input` ini adalah komponen input teks yang dapat dikustomisasi dengan label, ikon, tombol clear, dan tampilan error. Dibangun menggunakan React Native.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🔧 Props
|
|
8
|
+
|
|
9
|
+
| Prop | Tipe | Deskripsi |
|
|
10
|
+
|------------------|--------------------|---------------------------------------------------------------------------|
|
|
11
|
+
| `label` | `string` | Label yang ditampilkan di atas input |
|
|
12
|
+
| `value` | `string` | Nilai dari input (kontrol dari luar) |
|
|
13
|
+
| `onChange` | `(value: string) => void` | Fungsi yang dipanggil saat nilai berubah |
|
|
14
|
+
| `icon` | `string` | Nama ikon (kiri) dari library `Icon` |
|
|
15
|
+
| `iconRight` | `string` | Nama ikon kanan dari library `Icon` |
|
|
16
|
+
| `clearButton` | `boolean` | Menampilkan tombol `x` untuk menghapus input |
|
|
17
|
+
| `hasError` | `boolean` | Menandai input error, border akan berubah merah |
|
|
18
|
+
| `hint` | `string` | Menampilkan teks kecil di bawah input, bisa untuk error atau petunjuk |
|
|
19
|
+
| `onPressIconLeft` | `() => void` | Fungsi saat ikon kiri diklik |
|
|
20
|
+
| `onPressIconRight` | `() => void` | Fungsi saat ikon kanan diklik |
|
|
21
|
+
| `secureTextEntry`| `boolean` | Jika `true`, menyembunyikan input (untuk password) |
|
|
22
|
+
| `style` | `ViewStyle` | Style tambahan untuk input |
|
|
23
|
+
| `...rest` | `TextInputProps` | Props lain dari React Native `TextInput` |
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 🧪 Contoh Penggunaan
|
|
28
|
+
|
|
29
|
+
```tsx
|
|
30
|
+
import React, { useState } from 'react';
|
|
31
|
+
import { View } from 'react-native';
|
|
32
|
+
import Input from './Input';
|
|
33
|
+
|
|
34
|
+
export default function MyForm() {
|
|
35
|
+
const [text, setText] = useState('');
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<View style={{ padding: 16 }}>
|
|
39
|
+
<Input
|
|
40
|
+
label="Nama Pengguna"
|
|
41
|
+
value={text}
|
|
42
|
+
onChange={setText}
|
|
43
|
+
icon="user"
|
|
44
|
+
iconRight="eye"
|
|
45
|
+
onPressIconRight={() => alert('Lihat password')}
|
|
46
|
+
clearButton
|
|
47
|
+
hint="Masukkan nama lengkap Anda"
|
|
48
|
+
/>
|
|
49
|
+
</View>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { TextInput, View, StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { Icon } from '../Icon';
|
|
4
|
+
import Color from '../Color/Color';
|
|
5
|
+
import LabelForm from '../LabelForm/LabelForm';
|
|
6
|
+
import Typography from '../Typography/Typography';
|
|
7
|
+
import type { InputProps } from './type';
|
|
8
|
+
|
|
9
|
+
const Input: React.FC<InputProps> = ({
|
|
10
|
+
icon,
|
|
11
|
+
iconRight,
|
|
12
|
+
label,
|
|
13
|
+
style,
|
|
14
|
+
value,
|
|
15
|
+
clearButton = false,
|
|
16
|
+
hasError = false,
|
|
17
|
+
hint,
|
|
18
|
+
onChangeText,
|
|
19
|
+
onPressIconLeft,
|
|
20
|
+
onPressIconRight,
|
|
21
|
+
secureTextEntry = false,
|
|
22
|
+
...rest
|
|
23
|
+
}) => {
|
|
24
|
+
const [inputValue, setInputValue] = useState(value || '');
|
|
25
|
+
|
|
26
|
+
const handleClear = () => {
|
|
27
|
+
setInputValue('');
|
|
28
|
+
onChangeText?.('');
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const handleChange = (text: string) => {
|
|
32
|
+
setInputValue(text);
|
|
33
|
+
onChangeText?.(text);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const showRightIcons = (clearButton && inputValue !== '') || iconRight;
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<View style={styles.gap}>
|
|
40
|
+
{label ? <LabelForm title={label} /> : null}
|
|
41
|
+
|
|
42
|
+
<View
|
|
43
|
+
style={[
|
|
44
|
+
styles.container,
|
|
45
|
+
{
|
|
46
|
+
borderColor: hasError ? Color.danger[500] : Color.gray[100],
|
|
47
|
+
},
|
|
48
|
+
]}
|
|
49
|
+
>
|
|
50
|
+
{icon && (
|
|
51
|
+
<TouchableOpacity
|
|
52
|
+
onPress={onPressIconLeft}
|
|
53
|
+
style={styles.iconLeft}
|
|
54
|
+
hitSlop={10}
|
|
55
|
+
>
|
|
56
|
+
<Icon name={icon} size={18} color="#888" />
|
|
57
|
+
</TouchableOpacity>
|
|
58
|
+
)}
|
|
59
|
+
|
|
60
|
+
<TextInput
|
|
61
|
+
{...rest}
|
|
62
|
+
style={[
|
|
63
|
+
styles.input,
|
|
64
|
+
icon && { paddingLeft: 40 },
|
|
65
|
+
showRightIcons && { paddingRight: 60 },
|
|
66
|
+
style,
|
|
67
|
+
]}
|
|
68
|
+
secureTextEntry={secureTextEntry}
|
|
69
|
+
value={inputValue}
|
|
70
|
+
onChangeText={handleChange}
|
|
71
|
+
placeholderTextColor={Color.gray[400]}
|
|
72
|
+
/>
|
|
73
|
+
|
|
74
|
+
{showRightIcons && (
|
|
75
|
+
<View style={styles.rightContainer}>
|
|
76
|
+
{clearButton && inputValue !== '' && (
|
|
77
|
+
<TouchableOpacity
|
|
78
|
+
onPress={handleClear}
|
|
79
|
+
style={[{ marginRight: iconRight ? 8 : 0 }]}
|
|
80
|
+
>
|
|
81
|
+
<Icon name="x-circle" size={18} color="#aaa" />
|
|
82
|
+
</TouchableOpacity>
|
|
83
|
+
)}
|
|
84
|
+
{iconRight && (
|
|
85
|
+
<TouchableOpacity onPress={onPressIconRight} hitSlop={10}>
|
|
86
|
+
<Icon name={iconRight} size={18} color="#888" />
|
|
87
|
+
</TouchableOpacity>
|
|
88
|
+
)}
|
|
89
|
+
</View>
|
|
90
|
+
)}
|
|
91
|
+
</View>
|
|
92
|
+
{hint ? (
|
|
93
|
+
<Typography color={hasError ? Color.danger[500] : ''} variant="t2">
|
|
94
|
+
{hint}
|
|
95
|
+
</Typography>
|
|
96
|
+
) : null}
|
|
97
|
+
</View>
|
|
98
|
+
);
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const styles = StyleSheet.create({
|
|
102
|
+
gap: {
|
|
103
|
+
gap: 4,
|
|
104
|
+
},
|
|
105
|
+
container: {
|
|
106
|
+
position: 'relative',
|
|
107
|
+
height: 36,
|
|
108
|
+
borderRadius: 8,
|
|
109
|
+
gap: 8,
|
|
110
|
+
borderWidth: 1,
|
|
111
|
+
backgroundColor: Color.base.white100,
|
|
112
|
+
justifyContent: 'center',
|
|
113
|
+
},
|
|
114
|
+
input: {
|
|
115
|
+
height: 37,
|
|
116
|
+
paddingHorizontal: 12,
|
|
117
|
+
fontSize: 16,
|
|
118
|
+
color: '#333',
|
|
119
|
+
},
|
|
120
|
+
iconLeft: {
|
|
121
|
+
position: 'absolute',
|
|
122
|
+
left: 12,
|
|
123
|
+
zIndex: 1,
|
|
124
|
+
},
|
|
125
|
+
rightContainer: {
|
|
126
|
+
position: 'absolute',
|
|
127
|
+
right: 12,
|
|
128
|
+
flexDirection: 'row',
|
|
129
|
+
alignItems: 'center',
|
|
130
|
+
zIndex: 1,
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
export default Input;
|