@situaction/traquiste-mobile 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -90
- package/build/components/AssociationTag/AssociationTag.d.ts +19 -0
- package/build/components/AssociationTag/AssociationTag.d.ts.map +1 -0
- package/build/components/AssociationTag/AssociationTag.js +29 -0
- package/build/components/AssociationTag/AssociationTag.js.map +1 -0
- package/build/components/AssociationTag/AssociationTag.styles.d.ts +21 -0
- package/build/components/AssociationTag/AssociationTag.styles.d.ts.map +1 -0
- package/build/components/AssociationTag/AssociationTag.styles.js +26 -0
- package/build/components/AssociationTag/AssociationTag.styles.js.map +1 -0
- package/build/components/AssociationTag/index.d.ts +3 -0
- package/build/components/AssociationTag/index.d.ts.map +1 -0
- package/build/components/AssociationTag/index.js +2 -0
- package/build/components/AssociationTag/index.js.map +1 -0
- package/build/components/BottomSheet/BottomSheet.d.ts +36 -0
- package/build/components/BottomSheet/BottomSheet.d.ts.map +1 -0
- package/build/components/BottomSheet/BottomSheet.js +76 -0
- package/build/components/BottomSheet/BottomSheet.js.map +1 -0
- package/build/components/BottomSheet/BottomSheet.styles.d.ts +32 -0
- package/build/components/BottomSheet/BottomSheet.styles.d.ts.map +1 -0
- package/build/components/BottomSheet/BottomSheet.styles.js +31 -0
- package/build/components/BottomSheet/BottomSheet.styles.js.map +1 -0
- package/build/components/BottomSheet/index.d.ts +3 -0
- package/build/components/BottomSheet/index.d.ts.map +1 -0
- package/build/components/BottomSheet/index.js +2 -0
- package/build/components/BottomSheet/index.js.map +1 -0
- package/build/components/Button/Button.d.ts +5 -1
- package/build/components/Button/Button.d.ts.map +1 -1
- package/build/components/Button/Button.js +12 -6
- package/build/components/Button/Button.js.map +1 -1
- package/build/components/ButtonAction/ButtonAction.d.ts +5 -1
- package/build/components/ButtonAction/ButtonAction.d.ts.map +1 -1
- package/build/components/ButtonAction/ButtonAction.js +2 -2
- package/build/components/ButtonAction/ButtonAction.js.map +1 -1
- package/build/components/ButtonMap/ButtonMap.d.ts +5 -1
- package/build/components/ButtonMap/ButtonMap.d.ts.map +1 -1
- package/build/components/ButtonMap/ButtonMap.js +11 -9
- package/build/components/ButtonMap/ButtonMap.js.map +1 -1
- package/build/components/ButtonMenu/ButtonMenu.d.ts +5 -1
- package/build/components/ButtonMenu/ButtonMenu.d.ts.map +1 -1
- package/build/components/ButtonMenu/ButtonMenu.js +17 -17
- package/build/components/ButtonMenu/ButtonMenu.js.map +1 -1
- package/build/components/Calendar/Calendar.d.ts +4 -0
- package/build/components/Calendar/Calendar.d.ts.map +1 -0
- package/build/components/Calendar/Calendar.i18n.d.ts +34 -0
- package/build/components/Calendar/Calendar.i18n.d.ts.map +1 -0
- package/build/components/Calendar/Calendar.i18n.js +34 -0
- package/build/components/Calendar/Calendar.i18n.js.map +1 -0
- package/build/components/Calendar/Calendar.js +172 -0
- package/build/components/Calendar/Calendar.js.map +1 -0
- package/build/components/Calendar/Calendar.styles.d.ts +257 -0
- package/build/components/Calendar/Calendar.styles.d.ts.map +1 -0
- package/build/components/Calendar/Calendar.styles.js +234 -0
- package/build/components/Calendar/Calendar.styles.js.map +1 -0
- package/build/components/Calendar/Calendar.types.d.ts +62 -0
- package/build/components/Calendar/Calendar.types.d.ts.map +1 -0
- package/build/components/Calendar/Calendar.types.js +2 -0
- package/build/components/Calendar/Calendar.types.js.map +1 -0
- package/build/components/Calendar/CalendarDay.d.ts +4 -0
- package/build/components/Calendar/CalendarDay.d.ts.map +1 -0
- package/build/components/Calendar/CalendarDay.js +52 -0
- package/build/components/Calendar/CalendarDay.js.map +1 -0
- package/build/components/Calendar/CalendarHeader.d.ts +4 -0
- package/build/components/Calendar/CalendarHeader.d.ts.map +1 -0
- package/build/components/Calendar/CalendarHeader.js +16 -0
- package/build/components/Calendar/CalendarHeader.js.map +1 -0
- package/build/components/Calendar/CalendarLegend.d.ts +3 -0
- package/build/components/Calendar/CalendarLegend.d.ts.map +1 -0
- package/build/components/Calendar/CalendarLegend.js +38 -0
- package/build/components/Calendar/CalendarLegend.js.map +1 -0
- package/build/components/Calendar/CalendarYearPicker.d.ts +19 -0
- package/build/components/Calendar/CalendarYearPicker.d.ts.map +1 -0
- package/build/components/Calendar/CalendarYearPicker.js +158 -0
- package/build/components/Calendar/CalendarYearPicker.js.map +1 -0
- package/build/components/Calendar/index.d.ts +5 -0
- package/build/components/Calendar/index.d.ts.map +1 -0
- package/build/components/Calendar/index.js +3 -0
- package/build/components/Calendar/index.js.map +1 -0
- package/build/components/Card/Card.d.ts +25 -0
- package/build/components/Card/Card.d.ts.map +1 -0
- package/build/components/Card/Card.js +31 -0
- package/build/components/Card/Card.js.map +1 -0
- package/build/components/Card/Card.styles.d.ts +15 -0
- package/build/components/Card/Card.styles.d.ts.map +1 -0
- package/build/components/Card/Card.styles.js +18 -0
- package/build/components/Card/Card.styles.js.map +1 -0
- package/build/components/Card/index.d.ts +3 -0
- package/build/components/Card/index.d.ts.map +1 -0
- package/build/components/Card/index.js +2 -0
- package/build/components/Card/index.js.map +1 -0
- package/build/components/CardEquip/CardEquip.d.ts +60 -0
- package/build/components/CardEquip/CardEquip.d.ts.map +1 -0
- package/build/components/CardEquip/CardEquip.js +106 -0
- package/build/components/CardEquip/CardEquip.js.map +1 -0
- package/build/components/CardEquip/CardEquip.styles.d.ts +125 -0
- package/build/components/CardEquip/CardEquip.styles.d.ts.map +1 -0
- package/build/components/CardEquip/CardEquip.styles.js +139 -0
- package/build/components/CardEquip/CardEquip.styles.js.map +1 -0
- package/build/components/CardEquip/index.d.ts +3 -0
- package/build/components/CardEquip/index.d.ts.map +1 -0
- package/build/components/CardEquip/index.js +2 -0
- package/build/components/CardEquip/index.js.map +1 -0
- package/build/components/CardProfile/CardProfile.d.ts +55 -0
- package/build/components/CardProfile/CardProfile.d.ts.map +1 -0
- package/build/components/CardProfile/CardProfile.js +74 -0
- package/build/components/CardProfile/CardProfile.js.map +1 -0
- package/build/components/CardProfile/CardProfile.styles.d.ts +62 -0
- package/build/components/CardProfile/CardProfile.styles.d.ts.map +1 -0
- package/build/components/CardProfile/CardProfile.styles.js +65 -0
- package/build/components/CardProfile/CardProfile.styles.js.map +1 -0
- package/build/components/CardProfile/index.d.ts +3 -0
- package/build/components/CardProfile/index.d.ts.map +1 -0
- package/build/components/CardProfile/index.js +2 -0
- package/build/components/CardProfile/index.js.map +1 -0
- package/build/components/Checkbox/Checkbox.d.ts +28 -0
- package/build/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/build/components/Checkbox/Checkbox.js +77 -0
- package/build/components/Checkbox/Checkbox.js.map +1 -0
- package/build/components/Checkbox/Checkbox.styles.d.ts +34 -0
- package/build/components/Checkbox/Checkbox.styles.d.ts.map +1 -0
- package/build/components/Checkbox/Checkbox.styles.js +39 -0
- package/build/components/Checkbox/Checkbox.styles.js.map +1 -0
- package/build/components/Checkbox/Checkbox.types.d.ts +25 -0
- package/build/components/Checkbox/Checkbox.types.d.ts.map +1 -0
- package/build/components/Checkbox/Checkbox.types.js +5 -0
- package/build/components/Checkbox/Checkbox.types.js.map +1 -0
- package/build/components/Checkbox/index.d.ts +3 -0
- package/build/components/Checkbox/index.d.ts.map +1 -0
- package/build/components/Checkbox/index.js +2 -0
- package/build/components/Checkbox/index.js.map +1 -0
- package/build/components/Cluster/Cluster.d.ts +23 -0
- package/build/components/Cluster/Cluster.d.ts.map +1 -0
- package/build/components/Cluster/Cluster.js +34 -0
- package/build/components/Cluster/Cluster.js.map +1 -0
- package/build/components/Cluster/Cluster.styles.d.ts +33 -0
- package/build/components/Cluster/Cluster.styles.d.ts.map +1 -0
- package/build/components/Cluster/Cluster.styles.js +34 -0
- package/build/components/Cluster/Cluster.styles.js.map +1 -0
- package/build/components/Cluster/index.d.ts +3 -0
- package/build/components/Cluster/index.d.ts.map +1 -0
- package/build/components/Cluster/index.js +2 -0
- package/build/components/Cluster/index.js.map +1 -0
- package/build/components/ColorPicker/ColorPicker.d.ts +20 -0
- package/build/components/ColorPicker/ColorPicker.d.ts.map +1 -0
- package/build/components/ColorPicker/ColorPicker.js +17 -0
- package/build/components/ColorPicker/ColorPicker.js.map +1 -0
- package/build/components/ColorPicker/ColorPicker.styles.d.ts +10 -0
- package/build/components/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
- package/build/components/ColorPicker/ColorPicker.styles.js +11 -0
- package/build/components/ColorPicker/ColorPicker.styles.js.map +1 -0
- package/build/components/ColorPicker/index.d.ts +3 -0
- package/build/components/ColorPicker/index.d.ts.map +1 -0
- package/build/components/ColorPicker/index.js +2 -0
- package/build/components/ColorPicker/index.js.map +1 -0
- package/build/components/ColorSwatch/ColorSwatch.d.ts +20 -0
- package/build/components/ColorSwatch/ColorSwatch.d.ts.map +1 -0
- package/build/components/ColorSwatch/ColorSwatch.js +35 -0
- package/build/components/ColorSwatch/ColorSwatch.js.map +1 -0
- package/build/components/ColorSwatch/ColorSwatch.styles.d.ts +16 -0
- package/build/components/ColorSwatch/ColorSwatch.styles.d.ts.map +1 -0
- package/build/components/ColorSwatch/ColorSwatch.styles.js +19 -0
- package/build/components/ColorSwatch/ColorSwatch.styles.js.map +1 -0
- package/build/components/ColorSwatch/index.d.ts +3 -0
- package/build/components/ColorSwatch/index.d.ts.map +1 -0
- package/build/components/ColorSwatch/index.js +2 -0
- package/build/components/ColorSwatch/index.js.map +1 -0
- package/build/components/FileCard/FileCard.d.ts +29 -0
- package/build/components/FileCard/FileCard.d.ts.map +1 -0
- package/build/components/FileCard/FileCard.js +66 -0
- package/build/components/FileCard/FileCard.js.map +1 -0
- package/build/components/FileCard/FileCard.styles.d.ts +54 -0
- package/build/components/FileCard/FileCard.styles.d.ts.map +1 -0
- package/build/components/FileCard/FileCard.styles.js +56 -0
- package/build/components/FileCard/FileCard.styles.js.map +1 -0
- package/build/components/FileCard/index.d.ts +3 -0
- package/build/components/FileCard/index.d.ts.map +1 -0
- package/build/components/FileCard/index.js +2 -0
- package/build/components/FileCard/index.js.map +1 -0
- package/build/components/FilterChip/FilterChip.d.ts +5 -1
- package/build/components/FilterChip/FilterChip.d.ts.map +1 -1
- package/build/components/FilterChip/FilterChip.js +55 -25
- package/build/components/FilterChip/FilterChip.js.map +1 -1
- package/build/components/FilterNav/FilterNav.d.ts +53 -0
- package/build/components/FilterNav/FilterNav.d.ts.map +1 -0
- package/build/components/FilterNav/FilterNav.js +39 -0
- package/build/components/FilterNav/FilterNav.js.map +1 -0
- package/build/components/FilterNav/FilterNav.styles.d.ts +10 -0
- package/build/components/FilterNav/FilterNav.styles.d.ts.map +1 -0
- package/build/components/FilterNav/FilterNav.styles.js +11 -0
- package/build/components/FilterNav/FilterNav.styles.js.map +1 -0
- package/build/components/FilterNav/index.d.ts +3 -0
- package/build/components/FilterNav/index.d.ts.map +1 -0
- package/build/components/FilterNav/index.js +2 -0
- package/build/components/FilterNav/index.js.map +1 -0
- package/build/components/ImgPicker/ImgPicker.d.ts +47 -0
- package/build/components/ImgPicker/ImgPicker.d.ts.map +1 -0
- package/build/components/ImgPicker/ImgPicker.js +49 -0
- package/build/components/ImgPicker/ImgPicker.js.map +1 -0
- package/build/components/ImgPicker/ImgPicker.styles.d.ts +18 -0
- package/build/components/ImgPicker/ImgPicker.styles.d.ts.map +1 -0
- package/build/components/ImgPicker/ImgPicker.styles.js +19 -0
- package/build/components/ImgPicker/ImgPicker.styles.js.map +1 -0
- package/build/components/ImgPicker/index.d.ts +3 -0
- package/build/components/ImgPicker/index.d.ts.map +1 -0
- package/build/components/ImgPicker/index.js +2 -0
- package/build/components/ImgPicker/index.js.map +1 -0
- package/build/components/InlineInfo/InlineInfo.d.ts +60 -0
- package/build/components/InlineInfo/InlineInfo.d.ts.map +1 -0
- package/build/components/InlineInfo/InlineInfo.js +115 -0
- package/build/components/InlineInfo/InlineInfo.js.map +1 -0
- package/build/components/InlineInfo/InlineInfo.styles.d.ts +42 -0
- package/build/components/InlineInfo/InlineInfo.styles.d.ts.map +1 -0
- package/build/components/InlineInfo/InlineInfo.styles.js +50 -0
- package/build/components/InlineInfo/InlineInfo.styles.js.map +1 -0
- package/build/components/InlineInfo/index.d.ts +3 -0
- package/build/components/InlineInfo/index.d.ts.map +1 -0
- package/build/components/InlineInfo/index.js +2 -0
- package/build/components/InlineInfo/index.js.map +1 -0
- package/build/components/Input/Input.d.ts +57 -0
- package/build/components/Input/Input.d.ts.map +1 -0
- package/build/components/Input/Input.js +103 -0
- package/build/components/Input/Input.js.map +1 -0
- package/build/components/Input/Input.styles.d.ts +39 -0
- package/build/components/Input/Input.styles.d.ts.map +1 -0
- package/build/components/Input/Input.styles.js +40 -0
- package/build/components/Input/Input.styles.js.map +1 -0
- package/build/components/Input/index.d.ts +3 -0
- package/build/components/Input/index.d.ts.map +1 -0
- package/build/components/Input/index.js +2 -0
- package/build/components/Input/index.js.map +1 -0
- package/build/components/ListGroup/ListGroup.d.ts +24 -0
- package/build/components/ListGroup/ListGroup.d.ts.map +1 -0
- package/build/components/ListGroup/ListGroup.js +44 -0
- package/build/components/ListGroup/ListGroup.js.map +1 -0
- package/build/components/ListGroup/index.d.ts +3 -0
- package/build/components/ListGroup/index.d.ts.map +1 -0
- package/build/components/ListGroup/index.js +2 -0
- package/build/components/ListGroup/index.js.map +1 -0
- package/build/components/ListItem/ListItem.d.ts +44 -0
- package/build/components/ListItem/ListItem.d.ts.map +1 -0
- package/build/components/ListItem/ListItem.js +69 -0
- package/build/components/ListItem/ListItem.js.map +1 -0
- package/build/components/ListItem/ListItem.styles.d.ts +66 -0
- package/build/components/ListItem/ListItem.styles.d.ts.map +1 -0
- package/build/components/ListItem/ListItem.styles.js +70 -0
- package/build/components/ListItem/ListItem.styles.js.map +1 -0
- package/build/components/ListItem/index.d.ts +3 -0
- package/build/components/ListItem/index.d.ts.map +1 -0
- package/build/components/ListItem/index.js +2 -0
- package/build/components/ListItem/index.js.map +1 -0
- package/build/components/MapPin/MapPin.d.ts +61 -0
- package/build/components/MapPin/MapPin.d.ts.map +1 -0
- package/build/components/MapPin/MapPin.js +118 -0
- package/build/components/MapPin/MapPin.js.map +1 -0
- package/build/components/MapPin/MapPin.styles.d.ts +93 -0
- package/build/components/MapPin/MapPin.styles.d.ts.map +1 -0
- package/build/components/MapPin/MapPin.styles.js +101 -0
- package/build/components/MapPin/MapPin.styles.js.map +1 -0
- package/build/components/MapPin/index.d.ts +3 -0
- package/build/components/MapPin/index.d.ts.map +1 -0
- package/build/components/MapPin/index.js +2 -0
- package/build/components/MapPin/index.js.map +1 -0
- package/build/components/MediaPicker/MediaPicker.d.ts +74 -0
- package/build/components/MediaPicker/MediaPicker.d.ts.map +1 -0
- package/build/components/MediaPicker/MediaPicker.js +43 -0
- package/build/components/MediaPicker/MediaPicker.js.map +1 -0
- package/build/components/MediaPicker/MediaPicker.styles.d.ts +30 -0
- package/build/components/MediaPicker/MediaPicker.styles.d.ts.map +1 -0
- package/build/components/MediaPicker/MediaPicker.styles.js +31 -0
- package/build/components/MediaPicker/MediaPicker.styles.js.map +1 -0
- package/build/components/MediaPicker/index.d.ts +3 -0
- package/build/components/MediaPicker/index.d.ts.map +1 -0
- package/build/components/MediaPicker/index.js +2 -0
- package/build/components/MediaPicker/index.js.map +1 -0
- package/build/components/PhotoCard/PhotoCard.d.ts +28 -0
- package/build/components/PhotoCard/PhotoCard.d.ts.map +1 -0
- package/build/components/PhotoCard/PhotoCard.js +53 -0
- package/build/components/PhotoCard/PhotoCard.js.map +1 -0
- package/build/components/PhotoCard/PhotoCard.styles.d.ts +47 -0
- package/build/components/PhotoCard/PhotoCard.styles.d.ts.map +1 -0
- package/build/components/PhotoCard/PhotoCard.styles.js +45 -0
- package/build/components/PhotoCard/PhotoCard.styles.js.map +1 -0
- package/build/components/PhotoCard/index.d.ts +3 -0
- package/build/components/PhotoCard/index.d.ts.map +1 -0
- package/build/components/PhotoCard/index.js +2 -0
- package/build/components/PhotoCard/index.js.map +1 -0
- package/build/components/ProgressStep/ProgressStep.d.ts +9 -0
- package/build/components/ProgressStep/ProgressStep.d.ts.map +1 -0
- package/build/components/ProgressStep/ProgressStep.js +23 -0
- package/build/components/ProgressStep/ProgressStep.js.map +1 -0
- package/build/components/ProgressStep/ProgressStep.styles.d.ts +12 -0
- package/build/components/ProgressStep/ProgressStep.styles.d.ts.map +1 -0
- package/build/components/ProgressStep/ProgressStep.styles.js +13 -0
- package/build/components/ProgressStep/ProgressStep.styles.js.map +1 -0
- package/build/components/ProgressStep/index.d.ts +3 -0
- package/build/components/ProgressStep/index.d.ts.map +1 -0
- package/build/components/ProgressStep/index.js +2 -0
- package/build/components/ProgressStep/index.js.map +1 -0
- package/build/components/RadioButton/RadioButton.d.ts +29 -0
- package/build/components/RadioButton/RadioButton.d.ts.map +1 -0
- package/build/components/RadioButton/RadioButton.js +71 -0
- package/build/components/RadioButton/RadioButton.js.map +1 -0
- package/build/components/RadioButton/RadioButton.styles.d.ts +27 -0
- package/build/components/RadioButton/RadioButton.styles.d.ts.map +1 -0
- package/build/components/RadioButton/RadioButton.styles.js +30 -0
- package/build/components/RadioButton/RadioButton.styles.js.map +1 -0
- package/build/components/RadioButton/index.d.ts +3 -0
- package/build/components/RadioButton/index.d.ts.map +1 -0
- package/build/components/RadioButton/index.js +2 -0
- package/build/components/RadioButton/index.js.map +1 -0
- package/build/components/SearchBar/SearchBar.d.ts +33 -0
- package/build/components/SearchBar/SearchBar.d.ts.map +1 -0
- package/build/components/SearchBar/SearchBar.js +83 -0
- package/build/components/SearchBar/SearchBar.js.map +1 -0
- package/build/components/SearchBar/SearchBar.styles.d.ts +19 -0
- package/build/components/SearchBar/SearchBar.styles.d.ts.map +1 -0
- package/build/components/SearchBar/SearchBar.styles.js +21 -0
- package/build/components/SearchBar/SearchBar.styles.js.map +1 -0
- package/build/components/SearchBar/index.d.ts +3 -0
- package/build/components/SearchBar/index.d.ts.map +1 -0
- package/build/components/SearchBar/index.js +2 -0
- package/build/components/SearchBar/index.js.map +1 -0
- package/build/components/Spinner/Spinner.d.ts +12 -0
- package/build/components/Spinner/Spinner.d.ts.map +1 -0
- package/build/components/Spinner/Spinner.js +80 -0
- package/build/components/Spinner/Spinner.js.map +1 -0
- package/build/components/Spinner/Spinner.styles.d.ts +21 -0
- package/build/components/Spinner/Spinner.styles.d.ts.map +1 -0
- package/build/components/Spinner/Spinner.styles.js +22 -0
- package/build/components/Spinner/Spinner.styles.js.map +1 -0
- package/build/components/Spinner/index.d.ts +3 -0
- package/build/components/Spinner/index.d.ts.map +1 -0
- package/build/components/Spinner/index.js +2 -0
- package/build/components/Spinner/index.js.map +1 -0
- package/build/components/StepSheet/StepSheet.d.ts +77 -0
- package/build/components/StepSheet/StepSheet.d.ts.map +1 -0
- package/build/components/StepSheet/StepSheet.js +30 -0
- package/build/components/StepSheet/StepSheet.js.map +1 -0
- package/build/components/StepSheet/StepSheet.styles.d.ts +6 -0
- package/build/components/StepSheet/StepSheet.styles.d.ts.map +1 -0
- package/build/components/StepSheet/StepSheet.styles.js +7 -0
- package/build/components/StepSheet/StepSheet.styles.js.map +1 -0
- package/build/components/StepSheet/index.d.ts +3 -0
- package/build/components/StepSheet/index.d.ts.map +1 -0
- package/build/components/StepSheet/index.js +2 -0
- package/build/components/StepSheet/index.js.map +1 -0
- package/build/components/Stepper/Stepper.d.ts +50 -0
- package/build/components/Stepper/Stepper.d.ts.map +1 -0
- package/build/components/Stepper/Stepper.js +48 -0
- package/build/components/Stepper/Stepper.js.map +1 -0
- package/build/components/Stepper/Stepper.styles.d.ts +27 -0
- package/build/components/Stepper/Stepper.styles.d.ts.map +1 -0
- package/build/components/Stepper/Stepper.styles.js +28 -0
- package/build/components/Stepper/Stepper.styles.js.map +1 -0
- package/build/components/Stepper/index.d.ts +3 -0
- package/build/components/Stepper/index.d.ts.map +1 -0
- package/build/components/Stepper/index.js +2 -0
- package/build/components/Stepper/index.js.map +1 -0
- package/build/components/Switch/Switch.d.ts +29 -0
- package/build/components/Switch/Switch.d.ts.map +1 -0
- package/build/components/Switch/Switch.js +89 -0
- package/build/components/Switch/Switch.js.map +1 -0
- package/build/components/Switch/Switch.styles.d.ts +29 -0
- package/build/components/Switch/Switch.styles.d.ts.map +1 -0
- package/build/components/Switch/Switch.styles.js +26 -0
- package/build/components/Switch/Switch.styles.js.map +1 -0
- package/build/components/Switch/index.d.ts +3 -0
- package/build/components/Switch/index.d.ts.map +1 -0
- package/build/components/Switch/index.js +2 -0
- package/build/components/Switch/index.js.map +1 -0
- package/build/components/Tab/Tab.d.ts +52 -0
- package/build/components/Tab/Tab.d.ts.map +1 -0
- package/build/components/Tab/Tab.js +121 -0
- package/build/components/Tab/Tab.js.map +1 -0
- package/build/components/Tab/Tab.styles.d.ts +55 -0
- package/build/components/Tab/Tab.styles.d.ts.map +1 -0
- package/build/components/Tab/Tab.styles.js +60 -0
- package/build/components/Tab/Tab.styles.js.map +1 -0
- package/build/components/Tab/index.d.ts +3 -0
- package/build/components/Tab/index.d.ts.map +1 -0
- package/build/components/Tab/index.js +2 -0
- package/build/components/Tab/index.js.map +1 -0
- package/build/components/Tag/Tag.d.ts +4 -0
- package/build/components/Tag/Tag.d.ts.map +1 -0
- package/build/components/Tag/Tag.js +40 -0
- package/build/components/Tag/Tag.js.map +1 -0
- package/build/components/Tag/Tag.styles.d.ts +35 -0
- package/build/components/Tag/Tag.styles.d.ts.map +1 -0
- package/build/components/Tag/Tag.styles.js +43 -0
- package/build/components/Tag/Tag.styles.js.map +1 -0
- package/build/components/Tag/Tag.types.d.ts +23 -0
- package/build/components/Tag/Tag.types.d.ts.map +1 -0
- package/build/components/Tag/Tag.types.js +2 -0
- package/build/components/Tag/Tag.types.js.map +1 -0
- package/build/components/Tag/index.d.ts +3 -0
- package/build/components/Tag/index.d.ts.map +1 -0
- package/build/components/Tag/index.js +2 -0
- package/build/components/Tag/index.js.map +1 -0
- package/build/components/navigation/GeneralNav/GeneralNav.d.ts +21 -0
- package/build/components/navigation/GeneralNav/GeneralNav.d.ts.map +1 -0
- package/build/components/navigation/GeneralNav/GeneralNav.js +25 -0
- package/build/components/navigation/GeneralNav/GeneralNav.js.map +1 -0
- package/build/components/navigation/GeneralNav/GeneralNav.styles.d.ts +33 -0
- package/build/components/navigation/GeneralNav/GeneralNav.styles.d.ts.map +1 -0
- package/build/components/navigation/GeneralNav/GeneralNav.styles.js +35 -0
- package/build/components/navigation/GeneralNav/GeneralNav.styles.js.map +1 -0
- package/build/components/navigation/GeneralNav/index.d.ts +3 -0
- package/build/components/navigation/GeneralNav/index.d.ts.map +1 -0
- package/build/components/navigation/GeneralNav/index.js +2 -0
- package/build/components/navigation/GeneralNav/index.js.map +1 -0
- package/build/components/navigation/MobileCanva/MobileCanva.d.ts +11 -0
- package/build/components/navigation/MobileCanva/MobileCanva.d.ts.map +1 -0
- package/build/components/navigation/MobileCanva/MobileCanva.js +45 -0
- package/build/components/navigation/MobileCanva/MobileCanva.js.map +1 -0
- package/build/components/navigation/MobileCanva/MobileCanva.styles.d.ts +93 -0
- package/build/components/navigation/MobileCanva/MobileCanva.styles.d.ts.map +1 -0
- package/build/components/navigation/MobileCanva/MobileCanva.styles.js +94 -0
- package/build/components/navigation/MobileCanva/MobileCanva.styles.js.map +1 -0
- package/build/components/navigation/MobileCanva/MobileCanva.types.d.ts +21 -0
- package/build/components/navigation/MobileCanva/MobileCanva.types.d.ts.map +1 -0
- package/build/components/navigation/MobileCanva/MobileCanva.types.js +2 -0
- package/build/components/navigation/MobileCanva/MobileCanva.types.js.map +1 -0
- package/build/components/navigation/MobileCanva/index.d.ts +3 -0
- package/build/components/navigation/MobileCanva/index.d.ts.map +1 -0
- package/build/components/navigation/MobileCanva/index.js +2 -0
- package/build/components/navigation/MobileCanva/index.js.map +1 -0
- package/build/components/navigation/PageNav/PageNav.d.ts +46 -0
- package/build/components/navigation/PageNav/PageNav.d.ts.map +1 -0
- package/build/components/navigation/PageNav/PageNav.js +48 -0
- package/build/components/navigation/PageNav/PageNav.js.map +1 -0
- package/build/components/navigation/PageNav/PageNav.styles.d.ts +60 -0
- package/build/components/navigation/PageNav/PageNav.styles.d.ts.map +1 -0
- package/build/components/navigation/PageNav/PageNav.styles.js +60 -0
- package/build/components/navigation/PageNav/PageNav.styles.js.map +1 -0
- package/build/components/navigation/PageNav/index.d.ts +3 -0
- package/build/components/navigation/PageNav/index.d.ts.map +1 -0
- package/build/components/navigation/PageNav/index.js +2 -0
- package/build/components/navigation/PageNav/index.js.map +1 -0
- package/build/components/navigation/TabBar/TabBar.d.ts +22 -0
- package/build/components/navigation/TabBar/TabBar.d.ts.map +1 -0
- package/build/components/navigation/TabBar/TabBar.js +13 -0
- package/build/components/navigation/TabBar/TabBar.js.map +1 -0
- package/build/components/navigation/TabBar/TabBar.styles.d.ts +14 -0
- package/build/components/navigation/TabBar/TabBar.styles.d.ts.map +1 -0
- package/build/components/navigation/TabBar/TabBar.styles.js +16 -0
- package/build/components/navigation/TabBar/TabBar.styles.js.map +1 -0
- package/build/components/navigation/TabBar/index.d.ts +3 -0
- package/build/components/navigation/TabBar/index.d.ts.map +1 -0
- package/build/components/navigation/TabBar/index.js +2 -0
- package/build/components/navigation/TabBar/index.js.map +1 -0
- package/build/context/BottomSheetContext.d.ts +42 -0
- package/build/context/BottomSheetContext.d.ts.map +1 -0
- package/build/context/BottomSheetContext.js +51 -0
- package/build/context/BottomSheetContext.js.map +1 -0
- package/build/context/ThemeContext.d.ts +5 -1
- package/build/context/ThemeContext.d.ts.map +1 -1
- package/build/context/ThemeContext.js +4 -2
- package/build/context/ThemeContext.js.map +1 -1
- package/build/index.d.ts +77 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +38 -0
- package/build/index.js.map +1 -1
- package/build/theme/tokens/dark.d.ts.map +1 -1
- package/build/theme/tokens/dark.js +263 -10
- package/build/theme/tokens/dark.js.map +1 -1
- package/build/theme/tokens/light.d.ts.map +1 -1
- package/build/theme/tokens/light.js +252 -7
- package/build/theme/tokens/light.js.map +1 -1
- package/build/theme/type.d.ts +398 -0
- package/build/theme/type.d.ts.map +1 -1
- package/build/theme/type.js.map +1 -1
- package/package.json +8 -5
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
column: {
|
|
3
|
+
gap: number;
|
|
4
|
+
};
|
|
5
|
+
titleRow: {
|
|
6
|
+
flexDirection: "row";
|
|
7
|
+
alignItems: "center";
|
|
8
|
+
gap: number;
|
|
9
|
+
minHeight: number;
|
|
10
|
+
};
|
|
11
|
+
title: {
|
|
12
|
+
fontSize: number;
|
|
13
|
+
fontWeight: "700";
|
|
14
|
+
lineHeight: number;
|
|
15
|
+
flex: number;
|
|
16
|
+
};
|
|
17
|
+
message: {
|
|
18
|
+
fontSize: number;
|
|
19
|
+
fontWeight: "500";
|
|
20
|
+
lineHeight: number;
|
|
21
|
+
};
|
|
22
|
+
action: {
|
|
23
|
+
marginTop: number;
|
|
24
|
+
alignSelf: "flex-start";
|
|
25
|
+
};
|
|
26
|
+
actionText: {
|
|
27
|
+
fontSize: number;
|
|
28
|
+
fontWeight: "600";
|
|
29
|
+
lineHeight: number;
|
|
30
|
+
textDecorationLine: "underline";
|
|
31
|
+
};
|
|
32
|
+
dismissWrapper: {
|
|
33
|
+
flexDirection: "row";
|
|
34
|
+
alignItems: "flex-start";
|
|
35
|
+
};
|
|
36
|
+
dismissButton: {
|
|
37
|
+
padding: number;
|
|
38
|
+
marginLeft: number;
|
|
39
|
+
flexShrink: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=InlineInfo.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineInfo.styles.d.ts","sourceRoot":"","sources":["../../../src/components/InlineInfo/InlineInfo.styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CjB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Static styles for the InlineInfo component.
|
|
3
|
+
*/
|
|
4
|
+
import { StyleSheet } from 'react-native';
|
|
5
|
+
export const styles = StyleSheet.create({
|
|
6
|
+
// Column: title-row + message stacked
|
|
7
|
+
column: {
|
|
8
|
+
gap: 0,
|
|
9
|
+
},
|
|
10
|
+
// Title row: icon + title text side by side
|
|
11
|
+
titleRow: {
|
|
12
|
+
flexDirection: 'row',
|
|
13
|
+
alignItems: 'center',
|
|
14
|
+
gap: 6,
|
|
15
|
+
minHeight: 22,
|
|
16
|
+
},
|
|
17
|
+
title: {
|
|
18
|
+
fontSize: 16,
|
|
19
|
+
fontWeight: '700',
|
|
20
|
+
lineHeight: 22,
|
|
21
|
+
flex: 1,
|
|
22
|
+
},
|
|
23
|
+
message: {
|
|
24
|
+
fontSize: 14,
|
|
25
|
+
fontWeight: '500',
|
|
26
|
+
lineHeight: 20,
|
|
27
|
+
},
|
|
28
|
+
// Optional action link below message
|
|
29
|
+
action: {
|
|
30
|
+
marginTop: 6,
|
|
31
|
+
alignSelf: 'flex-start',
|
|
32
|
+
},
|
|
33
|
+
actionText: {
|
|
34
|
+
fontSize: 13,
|
|
35
|
+
fontWeight: '600',
|
|
36
|
+
lineHeight: 18,
|
|
37
|
+
textDecorationLine: 'underline',
|
|
38
|
+
},
|
|
39
|
+
// Dismiss button — absolutely positioned top-right
|
|
40
|
+
dismissWrapper: {
|
|
41
|
+
flexDirection: 'row',
|
|
42
|
+
alignItems: 'flex-start',
|
|
43
|
+
},
|
|
44
|
+
dismissButton: {
|
|
45
|
+
padding: 2,
|
|
46
|
+
marginLeft: 4,
|
|
47
|
+
flexShrink: 0,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=InlineInfo.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineInfo.styles.js","sourceRoot":"","sources":["../../../src/components/InlineInfo/InlineInfo.styles.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IACtC,sCAAsC;IACtC,MAAM,EAAE;QACN,GAAG,EAAE,CAAC;KACP;IACD,4CAA4C;IAC5C,QAAQ,EAAE;QACR,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,CAAC;QACN,SAAS,EAAE,EAAE;KACd;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,EAAE;QACd,IAAI,EAAE,CAAC;KACR;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,EAAE;KACf;IACD,qCAAqC;IACrC,MAAM,EAAE;QACN,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,YAAY;KACxB;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,EAAE;QACd,kBAAkB,EAAE,WAAW;KAChC;IACD,mDAAmD;IACnD,cAAc,EAAE;QACd,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,YAAY;KACzB;IACD,aAAa,EAAE;QACb,OAAO,EAAE,CAAC;QACV,UAAU,EAAE,CAAC;QACb,UAAU,EAAE,CAAC;KACd;CACF,CAAC,CAAC","sourcesContent":["/**\n * Static styles for the InlineInfo component.\n */\nimport { StyleSheet } from 'react-native';\n\nexport const styles = StyleSheet.create({\n // Column: title-row + message stacked\n column: {\n gap: 0,\n },\n // Title row: icon + title text side by side\n titleRow: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: 6,\n minHeight: 22,\n },\n title: {\n fontSize: 16,\n fontWeight: '700',\n lineHeight: 22,\n flex: 1,\n },\n message: {\n fontSize: 14,\n fontWeight: '500',\n lineHeight: 20,\n },\n // Optional action link below message\n action: {\n marginTop: 6,\n alignSelf: 'flex-start',\n },\n actionText: {\n fontSize: 13,\n fontWeight: '600',\n lineHeight: 18,\n textDecorationLine: 'underline',\n },\n // Dismiss button — absolutely positioned top-right\n dismissWrapper: {\n flexDirection: 'row',\n alignItems: 'flex-start',\n },\n dismissButton: {\n padding: 2,\n marginLeft: 4,\n flexShrink: 0,\n },\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/InlineInfo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/InlineInfo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC","sourcesContent":["export { InlineInfo } from './InlineInfo';\nexport type { InlineInfoProps, InlineInfoVariant, InlineInfoAction } from './InlineInfo';\n"]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input component — text field with label, icons, helper text and tag display.
|
|
3
|
+
* Supports text, tags, and tag-empty variants in sizes M (40px) and L (48px).
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { StyleProp, TextInputProps, ViewStyle } from 'react-native';
|
|
7
|
+
export type InputVariant = 'text' | 'tags' | 'tag-empty';
|
|
8
|
+
export type InputSize = 'M' | 'L';
|
|
9
|
+
export type InputState = 'default' | 'focused' | 'error' | 'disabled';
|
|
10
|
+
export interface InputProps {
|
|
11
|
+
/** Content variant */
|
|
12
|
+
variant?: InputVariant;
|
|
13
|
+
/** Input height — M: 40px, L: 48px */
|
|
14
|
+
size?: InputSize;
|
|
15
|
+
/** Label displayed above the field */
|
|
16
|
+
label?: string;
|
|
17
|
+
/** Placeholder text */
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
/** Left icon (Phosphor) */
|
|
20
|
+
iconLeft?: React.ReactElement;
|
|
21
|
+
/** Right icon (Phosphor) */
|
|
22
|
+
iconRight?: React.ReactElement;
|
|
23
|
+
/** Press handler for the left icon */
|
|
24
|
+
onPressIconLeft?: () => void;
|
|
25
|
+
/** Press handler for the right icon */
|
|
26
|
+
onPressIconRight?: () => void;
|
|
27
|
+
/** Helper or error message displayed below the field */
|
|
28
|
+
helperText?: string;
|
|
29
|
+
/** Content rendered inside the tags row — used with 'tags' variant */
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
/** Current text value — text variant only */
|
|
32
|
+
value?: string;
|
|
33
|
+
/** Text change handler — text variant only */
|
|
34
|
+
onChangeText?: (text: string) => void;
|
|
35
|
+
/** Press handler — tags and tag-empty variants */
|
|
36
|
+
onPress?: () => void;
|
|
37
|
+
/** Focus callback */
|
|
38
|
+
onFocus?: () => void;
|
|
39
|
+
/** Blur callback */
|
|
40
|
+
onBlur?: () => void;
|
|
41
|
+
/** Disabled state */
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
/** Error state */
|
|
44
|
+
error?: boolean;
|
|
45
|
+
/** Additional TextInput props — text variant only */
|
|
46
|
+
inputProps?: Omit<TextInputProps, 'value' | 'onChangeText' | 'onFocus' | 'onBlur' | 'editable' | 'placeholder' | 'placeholderTextColor'>;
|
|
47
|
+
/** Additional wrapper styles */
|
|
48
|
+
style?: StyleProp<ViewStyle>;
|
|
49
|
+
/** Test ID for automated testing */
|
|
50
|
+
testID?: string;
|
|
51
|
+
/** Accessibility label for the left icon press area */
|
|
52
|
+
accessibilityLabelIconLeft?: string;
|
|
53
|
+
/** Accessibility label for the right icon press area */
|
|
54
|
+
accessibilityLabelIconRight?: string;
|
|
55
|
+
}
|
|
56
|
+
export declare function Input({ variant, size, label, placeholder, iconLeft, iconRight, helperText, children, value, onChangeText, onPress, onFocus, onBlur, onPressIconLeft, onPressIconRight, disabled, error, inputProps, style, testID, accessibilityLabelIconLeft, accessibilityLabelIconRight, }: InputProps): React.JSX.Element;
|
|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,MAAM,IAAI,CAAC;IACrB,qBAAqB;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,oBAAoB;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,qDAAqD;IACrD,UAAU,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,aAAa,GAAG,sBAAsB,CAAC,CAAC;IACzI,gCAAgC;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,wDAAwD;IACxD,2BAA2B,CAAC,EAAE,MAAM,CAAC;CACtC;AAWD,wBAAgB,KAAK,CAAC,EACpB,OAAgB,EAChB,IAAU,EACV,KAAK,EACL,WAAW,EACX,QAAQ,EACR,SAAS,EACT,UAAU,EACV,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,OAAO,EACP,OAAO,EACP,MAAM,EACN,eAAe,EACf,gBAAgB,EAChB,QAAgB,EAChB,KAAa,EACb,UAAU,EACV,KAAK,EACL,MAAM,EACN,0BAA0B,EAC1B,2BAA2B,GAC5B,EAAE,UAAU,qBA4HZ"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input component — text field with label, icons, helper text and tag display.
|
|
3
|
+
* Supports text, tags, and tag-empty variants in sizes M (40px) and L (48px).
|
|
4
|
+
*/
|
|
5
|
+
import React, { useState } from 'react';
|
|
6
|
+
import { Pressable, Text, TextInput, View, } from 'react-native';
|
|
7
|
+
import { useTheme } from '../../context/ThemeContext';
|
|
8
|
+
import { styles } from './Input.styles';
|
|
9
|
+
// --- Size tokens (static) ---
|
|
10
|
+
const SIZE_TOKENS = {
|
|
11
|
+
M: { height: 40, paddingHorizontal: 10, iconSize: 16, fontSize: 14, lineHeight: 20, borderRadius: 8, gap: 8 },
|
|
12
|
+
L: { height: 48, paddingHorizontal: 12, iconSize: 20, fontSize: 16, lineHeight: 24, borderRadius: 8, gap: 8 },
|
|
13
|
+
};
|
|
14
|
+
// --- Component ---
|
|
15
|
+
export function Input({ variant = 'text', size = 'M', label, placeholder, iconLeft, iconRight, helperText, children, value, onChangeText, onPress, onFocus, onBlur, onPressIconLeft, onPressIconRight, disabled = false, error = false, inputProps, style, testID, accessibilityLabelIconLeft, accessibilityLabelIconRight, }) {
|
|
16
|
+
const { colors, fontFamily } = useTheme();
|
|
17
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
18
|
+
// focused takes priority over error — error is restored on blur if still invalid
|
|
19
|
+
const resolvedState = disabled
|
|
20
|
+
? 'disabled'
|
|
21
|
+
: isFocused
|
|
22
|
+
? 'focused'
|
|
23
|
+
: error
|
|
24
|
+
? 'error'
|
|
25
|
+
: 'default';
|
|
26
|
+
const sizes = SIZE_TOKENS[size];
|
|
27
|
+
const tokens = colors.input[resolvedState];
|
|
28
|
+
const containerStyle = {
|
|
29
|
+
height: sizes.height,
|
|
30
|
+
paddingHorizontal: sizes.paddingHorizontal,
|
|
31
|
+
borderRadius: sizes.borderRadius,
|
|
32
|
+
backgroundColor: tokens.background,
|
|
33
|
+
borderWidth: 1,
|
|
34
|
+
borderColor: isFocused ? 'transparent' : tokens.border,
|
|
35
|
+
flexDirection: 'row',
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
gap: sizes.gap,
|
|
38
|
+
...(disabled && { cursor: 'default' }),
|
|
39
|
+
};
|
|
40
|
+
// Outer focus ring — sits outside the container without affecting its border
|
|
41
|
+
const focusRingStyle = isFocused
|
|
42
|
+
? {
|
|
43
|
+
borderWidth: 2,
|
|
44
|
+
borderColor: colors.text.primary,
|
|
45
|
+
borderRadius: sizes.borderRadius + 2,
|
|
46
|
+
margin: -2,
|
|
47
|
+
}
|
|
48
|
+
: undefined;
|
|
49
|
+
const cloneIcon = (icon, onPress, a11yLabel) => {
|
|
50
|
+
if (!icon)
|
|
51
|
+
return null;
|
|
52
|
+
const cloned = React.cloneElement(icon, {
|
|
53
|
+
size: sizes.iconSize,
|
|
54
|
+
color: tokens.icon,
|
|
55
|
+
...icon.props,
|
|
56
|
+
});
|
|
57
|
+
if (onPress) {
|
|
58
|
+
return (<Pressable onPress={onPress} hitSlop={8} accessibilityRole="button" accessibilityLabel={a11yLabel}>
|
|
59
|
+
{cloned}
|
|
60
|
+
</Pressable>);
|
|
61
|
+
}
|
|
62
|
+
return cloned;
|
|
63
|
+
};
|
|
64
|
+
const handleFocus = () => {
|
|
65
|
+
if (disabled)
|
|
66
|
+
return;
|
|
67
|
+
setIsFocused(true);
|
|
68
|
+
onFocus?.();
|
|
69
|
+
};
|
|
70
|
+
const handleBlur = () => {
|
|
71
|
+
setIsFocused(false);
|
|
72
|
+
onBlur?.();
|
|
73
|
+
};
|
|
74
|
+
return (<View style={[styles.wrapper, style]} testID={testID}>
|
|
75
|
+
{label != null && (<Text style={[styles.label, { color: tokens.label, fontFamily }]}>{label}</Text>)}
|
|
76
|
+
|
|
77
|
+
<View style={focusRingStyle}>
|
|
78
|
+
{variant === 'text' || (variant === 'tags' && onChangeText != null) ? (
|
|
79
|
+
// text variant OR tags with inline search: View + optional children + TextInput
|
|
80
|
+
<View style={containerStyle}>
|
|
81
|
+
{cloneIcon(iconLeft, onPressIconLeft, accessibilityLabelIconLeft)}
|
|
82
|
+
<View style={styles.tagsRow}>
|
|
83
|
+
{variant === 'tags' && children}
|
|
84
|
+
<TextInput style={[styles.textInput, { color: tokens.text, fontSize: sizes.fontSize, fontFamily }]} value={value} onChangeText={onChangeText} onFocus={handleFocus} onBlur={handleBlur} editable={!disabled} placeholder={placeholder} placeholderTextColor={tokens.placeholder} {...inputProps}/>
|
|
85
|
+
</View>
|
|
86
|
+
{cloneIcon(iconRight, onPressIconRight, accessibilityLabelIconRight)}
|
|
87
|
+
</View>) : (
|
|
88
|
+
// tags (pressable) or tag-empty
|
|
89
|
+
<Pressable style={containerStyle} onPress={disabled ? undefined : onPress} pointerEvents={disabled ? 'none' : 'auto'}>
|
|
90
|
+
{cloneIcon(iconLeft, onPressIconLeft, accessibilityLabelIconLeft)}
|
|
91
|
+
{variant === 'tags' ? (<View style={styles.tagsRow}>
|
|
92
|
+
{children}
|
|
93
|
+
</View>) : (<Text style={[styles.placeholderText, { color: tokens.placeholder, fontSize: sizes.fontSize, fontFamily }]} numberOfLines={1}>
|
|
94
|
+
{placeholder}
|
|
95
|
+
</Text>)}
|
|
96
|
+
{cloneIcon(iconRight, onPressIconRight, accessibilityLabelIconRight)}
|
|
97
|
+
</Pressable>)}
|
|
98
|
+
</View>
|
|
99
|
+
|
|
100
|
+
{helperText != null && (<Text style={[styles.helperText, { color: tokens.helper, fontFamily }]}>{helperText}</Text>)}
|
|
101
|
+
</View>);
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=Input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACL,SAAS,EACT,IAAI,EACJ,SAAS,EACT,IAAI,GACL,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAqDxC,+BAA+B;AAE/B,MAAM,WAAW,GAAG;IAClB,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAA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BAAgB,EAAE,2BAA2B,CAAC,CACtE;UAAA,EAAE,SAAS,CAAC,CACb,CACH;MAAA,EAAE,IAAI,CAEN;;MAAA,CAAC,UAAU,IAAI,IAAI,IAAI,CACrB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,CAC5F,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Input component — text field with label, icons, helper text and tag display.\n * Supports text, tags, and tag-empty variants in sizes M (40px) and L (48px).\n */\nimport React, { useState } from 'react';\nimport {\n Pressable,\n Text,\n TextInput,\n View,\n} from 'react-native';\nimport type { StyleProp, TextInputProps, ViewStyle } from 'react-native';\nimport { useTheme } from '../../context/ThemeContext';\nimport { styles } from './Input.styles';\n\nexport type InputVariant = 'text' | 'tags' | 'tag-empty';\nexport type InputSize = 'M' | 'L';\nexport type InputState = 'default' | 'focused' | 'error' | 'disabled';\n\nexport interface InputProps {\n /** Content variant */\n variant?: InputVariant;\n /** Input height — M: 40px, L: 48px */\n size?: InputSize;\n /** Label displayed above the field */\n label?: string;\n /** Placeholder text */\n placeholder?: string;\n /** Left icon (Phosphor) */\n iconLeft?: React.ReactElement;\n /** Right icon (Phosphor) */\n iconRight?: React.ReactElement;\n /** Press handler for the left icon */\n onPressIconLeft?: () => void;\n /** Press handler for the right icon */\n onPressIconRight?: () => void;\n /** Helper or error message displayed below the field */\n helperText?: string;\n /** Content rendered inside the tags row — used with 'tags' variant */\n children?: React.ReactNode;\n /** Current text value — text variant only */\n value?: string;\n /** Text change handler — text variant only */\n onChangeText?: (text: string) => void;\n /** Press handler — tags and tag-empty variants */\n onPress?: () => void;\n /** Focus callback */\n onFocus?: () => void;\n /** Blur callback */\n onBlur?: () => void;\n /** Disabled state */\n disabled?: boolean;\n /** Error state */\n error?: boolean;\n /** Additional TextInput props — text variant only */\n inputProps?: Omit<TextInputProps, 'value' | 'onChangeText' | 'onFocus' | 'onBlur' | 'editable' | 'placeholder' | 'placeholderTextColor'>;\n /** Additional wrapper styles */\n style?: StyleProp<ViewStyle>;\n /** Test ID for automated testing */\n testID?: string;\n /** Accessibility label for the left icon press area */\n accessibilityLabelIconLeft?: string;\n /** Accessibility label for the right icon press area */\n accessibilityLabelIconRight?: string;\n}\n\n// --- Size tokens (static) ---\n\nconst SIZE_TOKENS = {\n M: { height: 40, paddingHorizontal: 10, iconSize: 16, fontSize: 14, lineHeight: 20, borderRadius: 8, gap: 8 },\n L: { height: 48, paddingHorizontal: 12, iconSize: 20, fontSize: 16, lineHeight: 24, borderRadius: 8, gap: 8 },\n} as const;\n\n// --- Component ---\n\nexport function Input({\n variant = 'text',\n size = 'M',\n label,\n placeholder,\n iconLeft,\n iconRight,\n helperText,\n children,\n value,\n onChangeText,\n onPress,\n onFocus,\n onBlur,\n onPressIconLeft,\n onPressIconRight,\n disabled = false,\n error = false,\n inputProps,\n style,\n testID,\n accessibilityLabelIconLeft,\n accessibilityLabelIconRight,\n}: InputProps) {\n const { colors, fontFamily } = useTheme();\n const [isFocused, setIsFocused] = useState(false);\n\n // focused takes priority over error — error is restored on blur if still invalid\n const resolvedState: InputState = disabled\n ? 'disabled'\n : isFocused\n ? 'focused'\n : error\n ? 'error'\n : 'default';\n\n const sizes = SIZE_TOKENS[size];\n const tokens = colors.input[resolvedState];\n\n const containerStyle: ViewStyle = {\n height: sizes.height,\n paddingHorizontal: sizes.paddingHorizontal,\n borderRadius: sizes.borderRadius,\n backgroundColor: tokens.background,\n borderWidth: 1,\n borderColor: isFocused ? 'transparent' : tokens.border,\n flexDirection: 'row',\n alignItems: 'center',\n gap: sizes.gap,\n ...(disabled && { cursor: 'default' } as object),\n };\n\n // Outer focus ring — sits outside the container without affecting its border\n const focusRingStyle: ViewStyle | undefined = isFocused\n ? {\n borderWidth: 2,\n borderColor: colors.text.primary,\n borderRadius: sizes.borderRadius + 2,\n margin: -2,\n }\n : undefined;\n\n const cloneIcon = (icon: React.ReactElement | undefined, onPress?: () => void, a11yLabel?: string) => {\n if (!icon) return null;\n const cloned = React.cloneElement(icon, {\n size: sizes.iconSize,\n color: tokens.icon,\n ...(icon.props as Record<string, unknown>),\n } as object);\n if (onPress) {\n return (\n <Pressable onPress={onPress} hitSlop={8} accessibilityRole=\"button\" accessibilityLabel={a11yLabel}>\n {cloned}\n </Pressable>\n );\n }\n return cloned;\n };\n\n const handleFocus = () => {\n if (disabled) return;\n setIsFocused(true);\n onFocus?.();\n };\n\n const handleBlur = () => {\n setIsFocused(false);\n onBlur?.();\n };\n\n return (\n <View style={[styles.wrapper, style]} testID={testID}>\n {label != null && (\n <Text style={[styles.label, { color: tokens.label, fontFamily }]}>{label}</Text>\n )}\n\n <View style={focusRingStyle}>\n {variant === 'text' || (variant === 'tags' && onChangeText != null) ? (\n // text variant OR tags with inline search: View + optional children + TextInput\n <View style={containerStyle}>\n {cloneIcon(iconLeft, onPressIconLeft, accessibilityLabelIconLeft)}\n <View style={styles.tagsRow}>\n {variant === 'tags' && children}\n <TextInput\n style={[styles.textInput, { color: tokens.text, fontSize: sizes.fontSize, fontFamily }]}\n value={value}\n onChangeText={onChangeText}\n onFocus={handleFocus}\n onBlur={handleBlur}\n editable={!disabled}\n placeholder={placeholder}\n placeholderTextColor={tokens.placeholder}\n {...inputProps}\n />\n </View>\n {cloneIcon(iconRight, onPressIconRight, accessibilityLabelIconRight)}\n </View>\n ) : (\n // tags (pressable) or tag-empty\n <Pressable\n style={containerStyle}\n onPress={disabled ? undefined : onPress}\n pointerEvents={disabled ? 'none' : 'auto'}\n >\n {cloneIcon(iconLeft, onPressIconLeft, accessibilityLabelIconLeft)}\n {variant === 'tags' ? (\n <View style={styles.tagsRow}>\n {children}\n </View>\n ) : (\n <Text\n style={[styles.placeholderText, { color: tokens.placeholder, fontSize: sizes.fontSize, fontFamily }]}\n numberOfLines={1}\n >\n {placeholder}\n </Text>\n )}\n {cloneIcon(iconRight, onPressIconRight, accessibilityLabelIconRight)}\n </Pressable>\n )}\n </View>\n\n {helperText != null && (\n <Text style={[styles.helperText, { color: tokens.helper, fontFamily }]}>{helperText}</Text>\n )}\n </View>\n );\n}\n\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
wrapper: {
|
|
3
|
+
alignSelf: "stretch";
|
|
4
|
+
};
|
|
5
|
+
label: {
|
|
6
|
+
fontSize: number;
|
|
7
|
+
lineHeight: number;
|
|
8
|
+
fontWeight: "600";
|
|
9
|
+
letterSpacing: number;
|
|
10
|
+
marginBottom: number;
|
|
11
|
+
};
|
|
12
|
+
textInput: {
|
|
13
|
+
flex: number;
|
|
14
|
+
padding: number;
|
|
15
|
+
fontWeight: "400";
|
|
16
|
+
includeFontPadding: false;
|
|
17
|
+
textAlignVertical: "center";
|
|
18
|
+
};
|
|
19
|
+
tagsRow: {
|
|
20
|
+
flex: number;
|
|
21
|
+
flexDirection: "row";
|
|
22
|
+
alignItems: "center";
|
|
23
|
+
gap: number;
|
|
24
|
+
overflow: "hidden";
|
|
25
|
+
};
|
|
26
|
+
placeholderText: {
|
|
27
|
+
flex: number;
|
|
28
|
+
fontWeight: "400";
|
|
29
|
+
includeFontPadding: false;
|
|
30
|
+
textAlignVertical: "center";
|
|
31
|
+
};
|
|
32
|
+
helperText: {
|
|
33
|
+
fontSize: number;
|
|
34
|
+
lineHeight: number;
|
|
35
|
+
fontWeight: "400";
|
|
36
|
+
marginTop: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=Input.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCjB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
export const styles = StyleSheet.create({
|
|
3
|
+
wrapper: {
|
|
4
|
+
alignSelf: 'stretch',
|
|
5
|
+
},
|
|
6
|
+
label: {
|
|
7
|
+
fontSize: 12,
|
|
8
|
+
lineHeight: 16,
|
|
9
|
+
fontWeight: '600',
|
|
10
|
+
letterSpacing: 0.72,
|
|
11
|
+
marginBottom: 4,
|
|
12
|
+
},
|
|
13
|
+
textInput: {
|
|
14
|
+
flex: 1,
|
|
15
|
+
padding: 0,
|
|
16
|
+
fontWeight: '400',
|
|
17
|
+
includeFontPadding: false,
|
|
18
|
+
textAlignVertical: 'center',
|
|
19
|
+
},
|
|
20
|
+
tagsRow: {
|
|
21
|
+
flex: 1,
|
|
22
|
+
flexDirection: 'row',
|
|
23
|
+
alignItems: 'center',
|
|
24
|
+
gap: 4,
|
|
25
|
+
overflow: 'hidden',
|
|
26
|
+
},
|
|
27
|
+
placeholderText: {
|
|
28
|
+
flex: 1,
|
|
29
|
+
fontWeight: '400',
|
|
30
|
+
includeFontPadding: false,
|
|
31
|
+
textAlignVertical: 'center',
|
|
32
|
+
},
|
|
33
|
+
helperText: {
|
|
34
|
+
fontSize: 12,
|
|
35
|
+
lineHeight: 16,
|
|
36
|
+
fontWeight: '400',
|
|
37
|
+
marginTop: 4,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=Input.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.styles.js","sourceRoot":"","sources":["../../../src/components/Input/Input.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IACtC,OAAO,EAAE;QACP,SAAS,EAAE,SAAS;KACrB;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,UAAU,EAAE,KAAK;QACjB,aAAa,EAAE,IAAI;QACnB,YAAY,EAAE,CAAC;KAChB;IACD,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;QACP,OAAO,EAAE,CAAC;QACV,UAAU,EAAE,KAAK;QACjB,kBAAkB,EAAE,KAAK;QACzB,iBAAiB,EAAE,QAAQ;KAC5B;IACD,OAAO,EAAE;QACP,IAAI,EAAE,CAAC;QACP,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,CAAC;QACN,QAAQ,EAAE,QAAQ;KACnB;IACD,eAAe,EAAE;QACf,IAAI,EAAE,CAAC;QACP,UAAU,EAAE,KAAK;QACjB,kBAAkB,EAAE,KAAK;QACzB,iBAAiB,EAAE,QAAQ;KAC5B;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,CAAC;KACb;CACF,CAAC,CAAC","sourcesContent":["import { StyleSheet } from 'react-native';\n\nexport const styles = StyleSheet.create({\n wrapper: {\n alignSelf: 'stretch',\n },\n label: {\n fontSize: 12,\n lineHeight: 16,\n fontWeight: '600',\n letterSpacing: 0.72,\n marginBottom: 4,\n },\n textInput: {\n flex: 1,\n padding: 0,\n fontWeight: '400',\n includeFontPadding: false,\n textAlignVertical: 'center',\n },\n tagsRow: {\n flex: 1,\n flexDirection: 'row',\n alignItems: 'center',\n gap: 4,\n overflow: 'hidden',\n },\n placeholderText: {\n flex: 1,\n fontWeight: '400',\n includeFontPadding: false,\n textAlignVertical: 'center',\n },\n helperText: {\n fontSize: 12,\n lineHeight: 16,\n fontWeight: '400',\n marginTop: 4,\n },\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC","sourcesContent":["export { Input } from './Input';\nexport type { InputProps, InputVariant, InputSize, InputState } from './Input';"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** ListGroup — section header + list of selectable items built on top of ListItem */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface ListGroupItem {
|
|
4
|
+
/** Unique identifier */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Primary label — large bold text */
|
|
7
|
+
primaryLabel: string;
|
|
8
|
+
/** Tag displayed after the primary label */
|
|
9
|
+
tag?: React.ReactNode;
|
|
10
|
+
/** Whether the item is disabled */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ListGroupProps {
|
|
14
|
+
/** Section title displayed above the group */
|
|
15
|
+
title: string;
|
|
16
|
+
/** Items to display in the group */
|
|
17
|
+
items: ListGroupItem[];
|
|
18
|
+
/** Controlled selected item id */
|
|
19
|
+
selectedId?: string | null;
|
|
20
|
+
/** Called when an item is pressed — receives the item id (or null if deselected) */
|
|
21
|
+
onSelect?: (id: string | null) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare function ListGroup({ title, items, selectedId, onSelect }: ListGroupProps): React.JSX.Element;
|
|
24
|
+
//# sourceMappingURL=ListGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListGroup.d.ts","sourceRoot":"","sources":["../../../src/components/ListGroup/ListGroup.tsx"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,MAAM,WAAW,aAAa;IAC5B,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,sCAAsC;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,oFAAoF;IACpF,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACxC;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,cAAc,qBAqC/E"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/** ListGroup — section header + list of selectable items built on top of ListItem */
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { Text, View, StyleSheet } from 'react-native';
|
|
4
|
+
import { Check } from 'phosphor-react-native';
|
|
5
|
+
import { useTheme } from '../../context/ThemeContext';
|
|
6
|
+
import { ListItem } from '../ListItem';
|
|
7
|
+
export function ListGroup({ title, items, selectedId, onSelect }) {
|
|
8
|
+
const [internalSelected, setInternalSelected] = useState(null);
|
|
9
|
+
const { colors, fontFamily } = useTheme();
|
|
10
|
+
const isControlled = selectedId !== undefined;
|
|
11
|
+
const activeId = isControlled ? selectedId : internalSelected;
|
|
12
|
+
const handlePress = (id) => {
|
|
13
|
+
const next = activeId === id ? null : id;
|
|
14
|
+
if (!isControlled)
|
|
15
|
+
setInternalSelected(next);
|
|
16
|
+
onSelect?.(next);
|
|
17
|
+
};
|
|
18
|
+
return (<View>
|
|
19
|
+
<View style={styles.titleContainer}>
|
|
20
|
+
<Text style={[styles.title, { color: colors.listItem.section.label, fontFamily }]}>
|
|
21
|
+
{title.toUpperCase()}
|
|
22
|
+
</Text>
|
|
23
|
+
</View>
|
|
24
|
+
{items.map(({ id, primaryLabel, tag, disabled }) => (<ListItem key={id} primaryLabel={primaryLabel} tag={tag} disabled={disabled} selected={activeId === id} trailing={activeId === id
|
|
25
|
+
? <Check size={24} weight="regular" color={colors.listItem.default.label}/>
|
|
26
|
+
: undefined} onPress={disabled ? undefined : () => handlePress(id)}/>))}
|
|
27
|
+
</View>);
|
|
28
|
+
}
|
|
29
|
+
const styles = StyleSheet.create({
|
|
30
|
+
titleContainer: {
|
|
31
|
+
minHeight: 40,
|
|
32
|
+
paddingHorizontal: 16,
|
|
33
|
+
paddingTop: 16,
|
|
34
|
+
paddingBottom: 8,
|
|
35
|
+
justifyContent: 'center',
|
|
36
|
+
},
|
|
37
|
+
title: {
|
|
38
|
+
fontSize: 12,
|
|
39
|
+
fontWeight: '600',
|
|
40
|
+
lineHeight: 16,
|
|
41
|
+
letterSpacing: 0.8,
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=ListGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListGroup.js","sourceRoot":"","sources":["../../../src/components/ListGroup/ListGroup.tsx"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAwBvC,MAAM,UAAU,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,Q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,CAAC,CAAC,QAAQ,KAAK,EAAE,CAAC,CAC1B,QAAQ,CAAC,CACP,QAAQ,KAAK,EAAE;gBACb,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,EAAG;gBAC5E,CAAC,CAAC,SACN,CAAC,CACD,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,EACtD,CACH,CAAC,CACJ;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,cAAc,EAAE;QACd,SAAS,EAAE,EAAE;QACb,iBAAiB,EAAE,EAAE;QACrB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,CAAC;QAChB,cAAc,EAAE,QAAQ;KACzB;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,GAAG;KACnB;CACF,CAAC,CAAC","sourcesContent":["/** ListGroup — section header + list of selectable items built on top of ListItem */\nimport React, { useState } from 'react';\nimport { Text, View, StyleSheet } from 'react-native';\nimport { Check } from 'phosphor-react-native';\nimport { useTheme } from '../../context/ThemeContext';\nimport { ListItem } from '../ListItem';\n\nexport interface ListGroupItem {\n /** Unique identifier */\n id: string;\n /** Primary label — large bold text */\n primaryLabel: string;\n /** Tag displayed after the primary label */\n tag?: React.ReactNode;\n /** Whether the item is disabled */\n disabled?: boolean;\n}\n\nexport interface ListGroupProps {\n /** Section title displayed above the group */\n title: string;\n /** Items to display in the group */\n items: ListGroupItem[];\n /** Controlled selected item id */\n selectedId?: string | null;\n /** Called when an item is pressed — receives the item id (or null if deselected) */\n onSelect?: (id: string | null) => void;\n}\n\nexport function ListGroup({ title, items, selectedId, onSelect }: ListGroupProps) {\n const [internalSelected, setInternalSelected] = useState<string | null>(null);\n const { colors, fontFamily } = useTheme();\n\n const isControlled = selectedId !== undefined;\n const activeId = isControlled ? selectedId : internalSelected;\n\n const handlePress = (id: string) => {\n const next = activeId === id ? null : id;\n if (!isControlled) setInternalSelected(next);\n onSelect?.(next);\n };\n\n return (\n <View>\n <View style={styles.titleContainer}>\n <Text style={[styles.title, { color: colors.listItem.section.label, fontFamily }]}>\n {title.toUpperCase()}\n </Text>\n </View>\n {items.map(({ id, primaryLabel, tag, disabled }) => (\n <ListItem\n key={id}\n primaryLabel={primaryLabel}\n tag={tag}\n disabled={disabled}\n selected={activeId === id}\n trailing={\n activeId === id\n ? <Check size={24} weight=\"regular\" color={colors.listItem.default.label} />\n : undefined\n }\n onPress={disabled ? undefined : () => handlePress(id)}\n />\n ))}\n </View>\n );\n}\n\nconst styles = StyleSheet.create({\n titleContainer: {\n minHeight: 40,\n paddingHorizontal: 16,\n paddingTop: 16,\n paddingBottom: 8,\n justifyContent: 'center',\n },\n title: {\n fontSize: 12,\n fontWeight: '600',\n lineHeight: 16,\n letterSpacing: 0.8,\n },\n});"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ListGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ListGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC","sourcesContent":["export { ListGroup } from './ListGroup';\nexport type { ListGroupProps, ListGroupItem } from './ListGroup';"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ListItem — flexible list row with optional leading/trailing slots.
|
|
3
|
+
*
|
|
4
|
+
* Variants:
|
|
5
|
+
* - 'default' → interactive row (48px min-height)
|
|
6
|
+
* - 'section' → group header label (40px min-height, uppercase)
|
|
7
|
+
*
|
|
8
|
+
* States: default, selected (warm background + radius 12), disabled (muted).
|
|
9
|
+
* Controlled: pass `selected` to mark a row, `onPress` to make it tappable.
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
13
|
+
export interface ListItemProps {
|
|
14
|
+
/** Primary label — largest text (18 px, 600), rendered above label and sublabel */
|
|
15
|
+
primaryLabel?: string;
|
|
16
|
+
/** Main label text — optional when tag is used alone */
|
|
17
|
+
label?: string;
|
|
18
|
+
/** Secondary text below label — shrinks label to 14 px when present */
|
|
19
|
+
sublabel?: string;
|
|
20
|
+
/** Left slot — Phosphor icon, avatar, or any ReactNode */
|
|
21
|
+
leading?: React.ReactNode;
|
|
22
|
+
/** Tag displayed after the label/sublabel — appears at the far left when no leading/label/sublabel */
|
|
23
|
+
tag?: React.ReactNode;
|
|
24
|
+
/** Right slot — icon, value text, or any ReactNode */
|
|
25
|
+
trailing?: React.ReactNode;
|
|
26
|
+
/** Highlights the row with a warm pressed background and border-radius */
|
|
27
|
+
selected?: boolean;
|
|
28
|
+
/** Disables interaction and mutes text + slots */
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/** Renders a hairline divider below the row */
|
|
31
|
+
divider?: boolean;
|
|
32
|
+
/** 'default' = interactive row | 'section' = group header */
|
|
33
|
+
variant?: 'default' | 'section';
|
|
34
|
+
/** Called when the row is pressed — omit to render a non-interactive row */
|
|
35
|
+
onPress?: () => void;
|
|
36
|
+
/** Additional style applied to the row container */
|
|
37
|
+
style?: StyleProp<ViewStyle>;
|
|
38
|
+
/** Test identifier for automated testing */
|
|
39
|
+
testID?: string;
|
|
40
|
+
/** Accessibility label for screen readers — defaults to label when omitted */
|
|
41
|
+
accessibilityLabel?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare const ListItem: ({ primaryLabel, label, sublabel, leading, tag, trailing, selected, disabled, divider, variant, onPress, style, testID, accessibilityLabel, }: ListItemProps) => React.JSX.Element;
|
|
44
|
+
//# sourceMappingURL=ListItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzD,MAAM,WAAW,aAAa;IAC5B,mFAAmF;IACnF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,sGAAsG;IACtG,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,oDAAoD;IACpD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8EAA8E;IAC9E,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAMD,eAAO,MAAM,QAAQ,GAAI,8IAetB,aAAa,sBAwFf,CAAC"}
|