@situaction/traquiste-mobile 1.0.0-next.5 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -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 +11 -5
- 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 +7 -2
- package/build/components/ButtonMenu/ButtonMenu.d.ts.map +1 -1
- package/build/components/ButtonMenu/ButtonMenu.js +15 -15
- 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 +254 -0
- package/build/components/Calendar/Calendar.styles.d.ts.map +1 -0
- package/build/components/Calendar/Calendar.styles.js +231 -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 +78 -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 +12 -11
- 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 +104 -0
- package/build/components/Input/Input.js.map +1 -0
- package/build/components/Input/Input.styles.d.ts +34 -0
- package/build/components/Input/Input.styles.d.ts.map +1 -0
- package/build/components/Input/Input.styles.js +35 -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/ListItem/ListItem.d.ts +42 -0
- package/build/components/ListItem/ListItem.d.ts.map +1 -0
- package/build/components/ListItem/ListItem.js +66 -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 +83 -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 +50 -0
- package/build/components/Tab/Tab.d.ts.map +1 -0
- package/build/components/Tab/Tab.js +117 -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 +33 -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 +19 -0
- package/build/components/navigation/GeneralNav/GeneralNav.d.ts.map +1 -0
- package/build/components/navigation/GeneralNav/GeneralNav.js +27 -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 +6 -2
- package/build/context/ThemeContext.d.ts.map +1 -1
- package/build/context/ThemeContext.js +5 -3
- package/build/context/ThemeContext.js.map +1 -1
- package/build/index.d.ts +75 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +37 -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,55 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
autoSize: {
|
|
3
|
+
alignSelf: "flex-start";
|
|
4
|
+
};
|
|
5
|
+
lineContainer: {
|
|
6
|
+
flexDirection: "row";
|
|
7
|
+
borderBottomWidth: number;
|
|
8
|
+
alignItems: "flex-end";
|
|
9
|
+
};
|
|
10
|
+
lineTab: {
|
|
11
|
+
flexDirection: "row";
|
|
12
|
+
alignItems: "center";
|
|
13
|
+
justifyContent: "center";
|
|
14
|
+
gap: number;
|
|
15
|
+
minHeight: number;
|
|
16
|
+
paddingHorizontal: number;
|
|
17
|
+
paddingVertical: number;
|
|
18
|
+
};
|
|
19
|
+
lineTabFlex: {
|
|
20
|
+
flex: number;
|
|
21
|
+
};
|
|
22
|
+
lineScrollContent: {
|
|
23
|
+
flexDirection: "row";
|
|
24
|
+
};
|
|
25
|
+
buttonContainer: {
|
|
26
|
+
flexDirection: "row";
|
|
27
|
+
borderWidth: number;
|
|
28
|
+
borderRadius: number;
|
|
29
|
+
padding: number;
|
|
30
|
+
gap: number;
|
|
31
|
+
};
|
|
32
|
+
buttonTab: {
|
|
33
|
+
flexDirection: "row";
|
|
34
|
+
alignItems: "center";
|
|
35
|
+
justifyContent: "center";
|
|
36
|
+
gap: number;
|
|
37
|
+
borderRadius: number;
|
|
38
|
+
paddingHorizontal: number;
|
|
39
|
+
paddingVertical: number;
|
|
40
|
+
};
|
|
41
|
+
buttonTabFlex: {
|
|
42
|
+
flex: number;
|
|
43
|
+
};
|
|
44
|
+
buttonScrollContent: {
|
|
45
|
+
flexDirection: "row";
|
|
46
|
+
gap: number;
|
|
47
|
+
};
|
|
48
|
+
label: {
|
|
49
|
+
fontFamily: string;
|
|
50
|
+
fontSize: number;
|
|
51
|
+
fontWeight: "600";
|
|
52
|
+
lineHeight: number;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=Tab.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tab.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Tab/Tab.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DjB,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
export const styles = StyleSheet.create({
|
|
3
|
+
// -- Shared
|
|
4
|
+
autoSize: {
|
|
5
|
+
alignSelf: 'flex-start',
|
|
6
|
+
},
|
|
7
|
+
// -- Line variant
|
|
8
|
+
lineContainer: {
|
|
9
|
+
flexDirection: 'row',
|
|
10
|
+
borderBottomWidth: 1,
|
|
11
|
+
alignItems: 'flex-end',
|
|
12
|
+
},
|
|
13
|
+
lineTab: {
|
|
14
|
+
flexDirection: 'row',
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
justifyContent: 'center',
|
|
17
|
+
gap: 4,
|
|
18
|
+
minHeight: 40,
|
|
19
|
+
paddingHorizontal: 16,
|
|
20
|
+
paddingVertical: 8,
|
|
21
|
+
},
|
|
22
|
+
lineTabFlex: {
|
|
23
|
+
flex: 1,
|
|
24
|
+
},
|
|
25
|
+
lineScrollContent: {
|
|
26
|
+
flexDirection: 'row',
|
|
27
|
+
},
|
|
28
|
+
// -- Button variant
|
|
29
|
+
buttonContainer: {
|
|
30
|
+
flexDirection: 'row',
|
|
31
|
+
borderWidth: 1,
|
|
32
|
+
borderRadius: 6,
|
|
33
|
+
padding: 2,
|
|
34
|
+
gap: 4,
|
|
35
|
+
},
|
|
36
|
+
buttonTab: {
|
|
37
|
+
flexDirection: 'row',
|
|
38
|
+
alignItems: 'center',
|
|
39
|
+
justifyContent: 'center',
|
|
40
|
+
gap: 4,
|
|
41
|
+
borderRadius: 4,
|
|
42
|
+
paddingHorizontal: 12,
|
|
43
|
+
paddingVertical: 6,
|
|
44
|
+
},
|
|
45
|
+
buttonTabFlex: {
|
|
46
|
+
flex: 1,
|
|
47
|
+
},
|
|
48
|
+
buttonScrollContent: {
|
|
49
|
+
flexDirection: 'row',
|
|
50
|
+
gap: 4,
|
|
51
|
+
},
|
|
52
|
+
// -- Shared
|
|
53
|
+
label: {
|
|
54
|
+
fontFamily: 'Urbanist',
|
|
55
|
+
fontSize: 14,
|
|
56
|
+
fontWeight: '600',
|
|
57
|
+
lineHeight: 20,
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
//# sourceMappingURL=Tab.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tab.styles.js","sourceRoot":"","sources":["../../../src/components/Tab/Tab.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IACtC,YAAY;IACZ,QAAQ,EAAE;QACR,SAAS,EAAE,YAAY;KACxB;IAED,kBAAkB;IAClB,aAAa,EAAE;QACb,aAAa,EAAI,KAAK;QACtB,iBAAiB,EAAE,CAAC;QACpB,UAAU,EAAO,UAAU;KAC5B;IACD,OAAO,EAAE;QACP,aAAa,EAAG,KAAK;QACrB,UAAU,EAAM,QAAQ;QACxB,cAAc,EAAE,QAAQ;QACxB,GAAG,EAAa,CAAC;QACjB,SAAS,EAAO,EAAE;QAClB,iBAAiB,EAAE,EAAE;QACrB,eAAe,EAAI,CAAC;KACrB;IACD,WAAW,EAAE;QACX,IAAI,EAAE,CAAC;KACR;IACD,iBAAiB,EAAE;QACjB,aAAa,EAAE,KAAK;KACrB;IAED,oBAAoB;IACpB,eAAe,EAAE;QACf,aAAa,EAAE,KAAK;QACpB,WAAW,EAAI,CAAC;QAChB,YAAY,EAAG,CAAC;QAChB,OAAO,EAAQ,CAAC;QAChB,GAAG,EAAY,CAAC;KACjB;IACD,SAAS,EAAE;QACT,aAAa,EAAM,KAAK;QACxB,UAAU,EAAS,QAAQ;QAC3B,cAAc,EAAK,QAAQ;QAC3B,GAAG,EAAgB,CAAC;QACpB,YAAY,EAAO,CAAC;QACpB,iBAAiB,EAAE,EAAE;QACrB,eAAe,EAAI,CAAC;KACrB;IACD,aAAa,EAAE;QACb,IAAI,EAAE,CAAC;KACR;IACD,mBAAmB,EAAE;QACnB,aAAa,EAAE,KAAK;QACpB,GAAG,EAAY,CAAC;KACjB;IAED,YAAY;IACZ,KAAK,EAAE;QACL,UAAU,EAAG,UAAU;QACvB,QAAQ,EAAK,EAAE;QACf,UAAU,EAAG,KAAK;QAClB,UAAU,EAAG,EAAE;KAChB;CACF,CAAC,CAAC","sourcesContent":["import { StyleSheet } from 'react-native';\n\nexport const styles = StyleSheet.create({\n // -- Shared\n autoSize: {\n alignSelf: 'flex-start',\n },\n\n // -- Line variant\n lineContainer: {\n flexDirection: 'row',\n borderBottomWidth: 1,\n alignItems: 'flex-end',\n },\n lineTab: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n gap: 4,\n minHeight: 40,\n paddingHorizontal: 16,\n paddingVertical: 8,\n },\n lineTabFlex: {\n flex: 1,\n },\n lineScrollContent: {\n flexDirection: 'row',\n },\n\n // -- Button variant\n buttonContainer: {\n flexDirection: 'row',\n borderWidth: 1,\n borderRadius: 6,\n padding: 2,\n gap: 4,\n },\n buttonTab: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n gap: 4,\n borderRadius: 4,\n paddingHorizontal: 12,\n paddingVertical: 6,\n },\n buttonTabFlex: {\n flex: 1,\n },\n buttonScrollContent: {\n flexDirection: 'row',\n gap: 4,\n },\n\n // -- Shared\n label: {\n fontFamily: 'Urbanist',\n fontSize: 14,\n fontWeight: '600',\n lineHeight: 20,\n },\n});"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tab/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Tab/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC","sourcesContent":["export { Tab } from './Tab';\nexport type { TabProps, TabItem } from './Tab';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,wBAAgB,GAAG,CAAC,EAClB,KAAK,EACL,IAAW,EACX,KAAc,EACd,QAAgB,EAChB,KAAK,EACL,SAAS,EACT,QAAQ,EACR,OAAO,GACR,EAAE,QAAQ,+BA6CV;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tag component — compact label badge with optional icon slot and close button.
|
|
3
|
+
* Colors come from colors.tag.purple / colors.tag.disabled via useTheme().
|
|
4
|
+
*/
|
|
5
|
+
import { Pressable, Text, View } from 'react-native';
|
|
6
|
+
import { X } from 'phosphor-react-native';
|
|
7
|
+
import { useTheme } from '../../context/ThemeContext';
|
|
8
|
+
import { getBorderRadius, getSizeTokens, styles } from './Tag.styles';
|
|
9
|
+
export function Tag({ label, size = 'md', shape = 'pill', disabled = false, color, textColor, iconLeft, onClose, }) {
|
|
10
|
+
const { colors, fontFamily } = useTheme();
|
|
11
|
+
const tagColors = disabled ? colors.tag.disabled : colors.tag.purple;
|
|
12
|
+
const sizeTokens = getSizeTokens(size);
|
|
13
|
+
const borderRadius = getBorderRadius(size, shape);
|
|
14
|
+
// Custom color prop overrides background; textColor overrides text/icon
|
|
15
|
+
const resolvedBg = !disabled && color ? color : tagColors.background;
|
|
16
|
+
const resolvedText = !disabled && textColor ? textColor : tagColors.text;
|
|
17
|
+
const resolvedIcon = !disabled && textColor ? textColor : tagColors.icon;
|
|
18
|
+
const containerStyle = {
|
|
19
|
+
paddingHorizontal: sizeTokens.paddingHorizontal,
|
|
20
|
+
paddingVertical: sizeTokens.paddingVertical,
|
|
21
|
+
gap: sizeTokens.gap,
|
|
22
|
+
borderRadius,
|
|
23
|
+
backgroundColor: resolvedBg,
|
|
24
|
+
};
|
|
25
|
+
return (<View style={[styles.row, containerStyle]}>
|
|
26
|
+
{iconLeft != null && (<View style={{ width: sizeTokens.iconSize, height: sizeTokens.iconSize, alignItems: 'center', justifyContent: 'center' }}>
|
|
27
|
+
{iconLeft}
|
|
28
|
+
</View>)}
|
|
29
|
+
|
|
30
|
+
<Text style={[styles.label, { fontSize: sizeTokens.fontSize, color: resolvedText, fontFamily }]} numberOfLines={1}>
|
|
31
|
+
{label}
|
|
32
|
+
</Text>
|
|
33
|
+
|
|
34
|
+
{onClose != null && (<Pressable style={styles.closeHitZone} onPress={disabled ? undefined : onClose} accessibilityRole="button" accessibilityLabel="Remove tag" pointerEvents={disabled ? 'none' : 'auto'}>
|
|
35
|
+
<X size={sizeTokens.closeSize} color={resolvedIcon} weight="bold"/>
|
|
36
|
+
</Pressable>)}
|
|
37
|
+
</View>);
|
|
38
|
+
}
|
|
39
|
+
export default Tag;
|
|
40
|
+
//# sourceMappingURL=Tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,CAAC,EAAE,MAAM,uBAAuB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtE,MAAM,UAAU,GAAG,CAAC,EAClB,KAAK,EACL,IAAI,GAAG,IAAI,EACX,KAAK,GAAG,MAAM,EACd,QAAQ,GAAG,KAAK,EAChB,KAAK,EACL,SAAS,EACT,QAAQ,EACR,OAAO,GACE;IACT,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,QAAQ,EAAE,CAAC;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C,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAChH;QAAA,CAAC,KAAK,CACR;MAAA,EAAE,IAAI,CAEN;;MAAA,CAAC,OAAO,IAAI,IAAI,IAAI,CAClB,CAAC,SAAS,CACR,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CACxC,iBAAiB,CAAC,QAAQ,CAC1B,kBAAkB,CAAC,YAAY,CAC/B,aAAa,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAE1C;UAAA,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,MAAM,EACnE;QAAA,EAAE,SAAS,CAAC,CACb,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED,eAAe,GAAG,CAAC","sourcesContent":["/**\n * Tag component — compact label badge with optional icon slot and close button.\n * Colors come from colors.tag.purple / colors.tag.disabled via useTheme().\n */\nimport { Pressable, Text, View } from 'react-native';\nimport { X } from 'phosphor-react-native';\nimport { useTheme } from '../../context/ThemeContext';\nimport type { TagProps } from './Tag.types';\nimport { getBorderRadius, getSizeTokens, styles } from './Tag.styles';\n\nexport function Tag({\n label,\n size = 'md',\n shape = 'pill',\n disabled = false,\n color,\n textColor,\n iconLeft,\n onClose,\n}: TagProps) {\n const { colors, fontFamily } = useTheme();\n const tagColors = disabled ? colors.tag.disabled : colors.tag.purple;\n\n const sizeTokens = getSizeTokens(size);\n const borderRadius = getBorderRadius(size, shape);\n\n // Custom color prop overrides background; textColor overrides text/icon\n const resolvedBg = !disabled && color ? color : tagColors.background;\n const resolvedText = !disabled && textColor ? textColor : tagColors.text;\n const resolvedIcon = !disabled && textColor ? textColor : tagColors.icon;\n\n const containerStyle = {\n paddingHorizontal: sizeTokens.paddingHorizontal,\n paddingVertical: sizeTokens.paddingVertical,\n gap: sizeTokens.gap,\n borderRadius,\n backgroundColor: resolvedBg,\n };\n\n return (\n <View style={[styles.row, containerStyle]}>\n {iconLeft != null && (\n <View style={{ width: sizeTokens.iconSize, height: sizeTokens.iconSize, alignItems: 'center', justifyContent: 'center' }}>\n {iconLeft}\n </View>\n )}\n\n <Text style={[styles.label, { fontSize: sizeTokens.fontSize, color: resolvedText, fontFamily }]} numberOfLines={1}>\n {label}\n </Text>\n\n {onClose != null && (\n <Pressable\n style={styles.closeHitZone}\n onPress={disabled ? undefined : onClose}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Remove tag\"\n pointerEvents={disabled ? 'none' : 'auto'}\n >\n <X size={sizeTokens.closeSize} color={resolvedIcon} weight=\"bold\" />\n </Pressable>\n )}\n </View>\n );\n}\n\nexport default Tag;"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { TagSize, TagShape } from './Tag.types';
|
|
2
|
+
interface SizeTokens {
|
|
3
|
+
paddingHorizontal: number;
|
|
4
|
+
paddingVertical: number;
|
|
5
|
+
fontSize: number;
|
|
6
|
+
iconSize: number;
|
|
7
|
+
closeSize: number;
|
|
8
|
+
gap: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function getSizeTokens(size: TagSize): SizeTokens;
|
|
11
|
+
export declare function getBorderRadius(size: TagSize, shape: TagShape): number;
|
|
12
|
+
export declare const styles: {
|
|
13
|
+
row: {
|
|
14
|
+
flexDirection: "row";
|
|
15
|
+
alignItems: "center";
|
|
16
|
+
alignSelf: "flex-start";
|
|
17
|
+
borderWidth: number;
|
|
18
|
+
borderColor: string;
|
|
19
|
+
};
|
|
20
|
+
label: {
|
|
21
|
+
fontFamily: string;
|
|
22
|
+
fontWeight: "600";
|
|
23
|
+
flexShrink: number;
|
|
24
|
+
};
|
|
25
|
+
closeHitZone: {
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
alignItems: "center";
|
|
29
|
+
justifyContent: "center";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=Tag.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIrD,UAAU,UAAU;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb;AAkBD,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,UAAU,CAEvD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,GAAG,MAAM,CAEtE;AAID,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;CAmBjB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** Layout tokens and static styles for the Tag component — colors come from useTheme() */
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
3
|
+
const SIZE_TOKENS = {
|
|
4
|
+
xs: { paddingHorizontal: 6, paddingVertical: 4, fontSize: 10, iconSize: 12, closeSize: 8, gap: 4 },
|
|
5
|
+
sm: { paddingHorizontal: 8, paddingVertical: 4, fontSize: 12, iconSize: 14, closeSize: 10, gap: 4 },
|
|
6
|
+
md: { paddingHorizontal: 10, paddingVertical: 6, fontSize: 13, iconSize: 16, closeSize: 12, gap: 4 },
|
|
7
|
+
lg: { paddingHorizontal: 12, paddingVertical: 8, fontSize: 14, iconSize: 18, closeSize: 14, gap: 6 },
|
|
8
|
+
};
|
|
9
|
+
const BORDER_RADIUS_ROUNDED = {
|
|
10
|
+
xs: 2,
|
|
11
|
+
sm: 4,
|
|
12
|
+
md: 6,
|
|
13
|
+
lg: 8,
|
|
14
|
+
};
|
|
15
|
+
// --- Helpers ---
|
|
16
|
+
export function getSizeTokens(size) {
|
|
17
|
+
return SIZE_TOKENS[size];
|
|
18
|
+
}
|
|
19
|
+
export function getBorderRadius(size, shape) {
|
|
20
|
+
return shape === 'pill' ? 9999 : BORDER_RADIUS_ROUNDED[size];
|
|
21
|
+
}
|
|
22
|
+
// --- Static styles ---
|
|
23
|
+
export const styles = StyleSheet.create({
|
|
24
|
+
row: {
|
|
25
|
+
flexDirection: 'row',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
alignSelf: 'flex-start',
|
|
28
|
+
borderWidth: 1,
|
|
29
|
+
borderColor: 'transparent',
|
|
30
|
+
},
|
|
31
|
+
label: {
|
|
32
|
+
fontFamily: 'Urbanist',
|
|
33
|
+
fontWeight: '600',
|
|
34
|
+
flexShrink: 1,
|
|
35
|
+
},
|
|
36
|
+
closeHitZone: {
|
|
37
|
+
width: 20,
|
|
38
|
+
height: 20,
|
|
39
|
+
alignItems: 'center',
|
|
40
|
+
justifyContent: 'center',
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=Tag.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.styles.js","sourceRoot":"","sources":["../../../src/components/Tag/Tag.styles.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAc1C,MAAM,WAAW,GAAgC;IAC/C,EAAE,EAAE,EAAE,iBAAiB,EAAE,CAAC,EAAG,eAAe,EAAE,CA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ACd,WAAW,EAAE,aAAa;KAC3B;IACD,KAAK,EAAE;QACL,UAAU,EAAE,UAAU;QACtB,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,CAAC;KACd;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KACzB;CACF,CAAC,CAAC","sourcesContent":["/** Layout tokens and static styles for the Tag component — colors come from useTheme() */\nimport { StyleSheet } from 'react-native';\nimport type { TagSize, TagShape } from './Tag.types';\n\n// --- Size tokens ---\n\ninterface SizeTokens {\n paddingHorizontal: number;\n paddingVertical: number;\n fontSize: number;\n iconSize: number;\n closeSize: number;\n gap: number;\n}\n\nconst SIZE_TOKENS: Record<TagSize, SizeTokens> = {\n xs: { paddingHorizontal: 6, paddingVertical: 4, fontSize: 10, iconSize: 12, closeSize: 8, gap: 4 },\n sm: { paddingHorizontal: 8, paddingVertical: 4, fontSize: 12, iconSize: 14, closeSize: 10, gap: 4 },\n md: { paddingHorizontal: 10, paddingVertical: 6, fontSize: 13, iconSize: 16, closeSize: 12, gap: 4 },\n lg: { paddingHorizontal: 12, paddingVertical: 8, fontSize: 14, iconSize: 18, closeSize: 14, gap: 6 },\n};\n\nconst BORDER_RADIUS_ROUNDED: Record<TagSize, number> = {\n xs: 2,\n sm: 4,\n md: 6,\n lg: 8,\n};\n\n// --- Helpers ---\n\nexport function getSizeTokens(size: TagSize): SizeTokens {\n return SIZE_TOKENS[size];\n}\n\nexport function getBorderRadius(size: TagSize, shape: TagShape): number {\n return shape === 'pill' ? 9999 : BORDER_RADIUS_ROUNDED[size];\n}\n\n// --- Static styles ---\n\nexport const styles = StyleSheet.create({\n row: {\n flexDirection: 'row',\n alignItems: 'center',\n alignSelf: 'flex-start',\n borderWidth: 1,\n borderColor: 'transparent',\n },\n label: {\n fontFamily: 'Urbanist',\n fontWeight: '600',\n flexShrink: 1,\n },\n closeHitZone: {\n width: 20,\n height: 20,\n alignItems: 'center',\n justifyContent: 'center',\n },\n});"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Types for the Tag component */
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export type TagSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
4
|
+
export type TagShape = 'pill' | 'rounded';
|
|
5
|
+
export interface TagProps {
|
|
6
|
+
/** Tag label text */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Size */
|
|
9
|
+
size?: TagSize;
|
|
10
|
+
/** Shape — pill (9999px) or rounded */
|
|
11
|
+
shape?: TagShape;
|
|
12
|
+
/** Disabled state — uses colors.tag.disabled tokens */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Optional left slot — icon or avatar node */
|
|
15
|
+
iconLeft?: ReactNode;
|
|
16
|
+
/** Custom background color override (hex) — overrides colors.tag.purple.background */
|
|
17
|
+
color?: string;
|
|
18
|
+
/** Custom text/icon color override — used alongside color prop */
|
|
19
|
+
textColor?: string;
|
|
20
|
+
/** Called when close button is pressed — shows close button when defined */
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=Tag.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.types.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.types.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAChD,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAC1C,MAAM,WAAW,QAAQ;IACvB,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW;IACX,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uCAAuC;IACvC,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,sFAAsF;IACtF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.types.js","sourceRoot":"","sources":["../../../src/components/Tag/Tag.types.ts"],"names":[],"mappings":"","sourcesContent":["/** Types for the Tag component */\nimport type { ReactNode } from 'react';\n\nexport type TagSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type TagShape = 'pill' | 'rounded';\nexport interface TagProps {\n /** Tag label text */\n label: string;\n /** Size */\n size?: TagSize;\n /** Shape — pill (9999px) or rounded */\n shape?: TagShape;\n /** Disabled state — uses colors.tag.disabled tokens */\n disabled?: boolean;\n /** Optional left slot — icon or avatar node */\n iconLeft?: ReactNode;\n /** Custom background color override (hex) — overrides colors.tag.purple.background */\n color?: string;\n /** Custom text/icon color override — used alongside color prop */\n textColor?: string;\n /** Called when close button is pressed — shows close button when defined */\n onClose?: () => void;\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC","sourcesContent":["export { Tag } from './Tag';\nexport type { TagProps, TagSize, TagShape } from './Tag.types';"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Top navigation bar — left icon (display only) + title grouped left, right Button pushed to the far right */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { type Icon } from 'phosphor-react-native';
|
|
4
|
+
export type GeneralNavAction = {
|
|
5
|
+
/** Icon element to pass to Button's iconLeft prop */
|
|
6
|
+
icon: React.ReactElement;
|
|
7
|
+
onPress: () => void;
|
|
8
|
+
accessibilityLabel?: string;
|
|
9
|
+
};
|
|
10
|
+
export interface GeneralNavProps {
|
|
11
|
+
/** Page title — always required */
|
|
12
|
+
title: string;
|
|
13
|
+
/** Optional left icon — display only, no press handler */
|
|
14
|
+
leftIcon?: Icon;
|
|
15
|
+
/** One or two right actions — each rendered as a ghost icon-only Button */
|
|
16
|
+
rightActions?: GeneralNavAction[];
|
|
17
|
+
}
|
|
18
|
+
export declare function GeneralNav({ title, leftIcon: LeftIconProp, rightActions, }: GeneralNavProps): React.JSX.Element;
|
|
19
|
+
//# sourceMappingURL=GeneralNav.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeneralNav.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/GeneralNav/GeneralNav.tsx"],"names":[],"mappings":"AAAA,+GAA+G;AAC/G,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAiB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAKjE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,qDAAqD;IACrD,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACnC;AAED,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EAAE,YAAY,EACtB,YAAY,GACb,EAAE,eAAe,qBAoCjB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** Top navigation bar — left icon (display only) + title grouped left, right Button pushed to the far right */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { View, Text } from 'react-native';
|
|
4
|
+
import { CaretLeftIcon } from 'phosphor-react-native';
|
|
5
|
+
import { useTheme } from '../../../context/ThemeContext';
|
|
6
|
+
import { Button } from '../../Button';
|
|
7
|
+
import { styles } from './GeneralNav.styles';
|
|
8
|
+
export function GeneralNav({ title, leftIcon: LeftIconProp, rightActions, }) {
|
|
9
|
+
const { colors, fontFamily } = useTheme();
|
|
10
|
+
const nav = colors.generalNav;
|
|
11
|
+
const LeftIcon = LeftIconProp ?? CaretLeftIcon;
|
|
12
|
+
return (<View style={[styles.container, { backgroundColor: colors.background.primary }]}>
|
|
13
|
+
{/* Left group: icon (display only) + title — takes all available space */}
|
|
14
|
+
<View style={styles.leftGroup}>
|
|
15
|
+
{LeftIconProp && (<LeftIcon size={24} weight="bold" color={nav.navTextIcons}/>)}
|
|
16
|
+
<Text style={[styles.title, { color: nav.navTextIcons, fontFamily }]} numberOfLines={1}>
|
|
17
|
+
{title}
|
|
18
|
+
</Text>
|
|
19
|
+
</View>
|
|
20
|
+
|
|
21
|
+
{/* Right actions — ghost icon-only Buttons, pushed to far right by leftGroup flex: 1 */}
|
|
22
|
+
{rightActions && rightActions.length > 0 && (<View style={styles.rightGroup}>
|
|
23
|
+
{rightActions.map((action, index) => (<Button key={index} variant="tertiary" content="icon-only-rounded" size="M" iconLeft={action.icon} onPress={action.onPress} accessibilityLabel={action.accessibilityLabel}/>))}
|
|
24
|
+
</View>)}
|
|
25
|
+
</View>);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=GeneralNav.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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AC,aAAa,CAAC,CAAC,CAAC,CAAC,CACrF;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,IAAI,CACR;MAAA,EAAE,IAAI,CAEN;;MAAA,CAAC,uFAAuF,CACxF;MAAA,CAAC,YAAY,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,IAAI,CAC1C,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAC7B;UAAA,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CACnC,CAAC,MAAM,CACL,GAAG,CAAC,CAAC,KAAK,CAAC,CACX,OAAO,CAAC,UAAU,CAClB,OAAO,CAAC,mBAAmB,CAC3B,IAAI,CAAC,GAAG,CACR,QAAQ,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACtB,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CACxB,kBAAkB,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAC9C,CACH,CAAC,CACJ;QAAA,EAAE,IAAI,CAAC,CACR,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC","sourcesContent":["/** Top navigation bar — left icon (display only) + title grouped left, right Button pushed to the far right */\nimport React from 'react';\nimport { View, Text } from 'react-native';\nimport { CaretLeftIcon, type Icon } from 'phosphor-react-native';\nimport { useTheme } from '../../../context/ThemeContext';\nimport { Button } from '../../Button';\nimport { styles } from './GeneralNav.styles';\n\nexport type GeneralNavAction = {\n /** Icon element to pass to Button's iconLeft prop */\n icon: React.ReactElement;\n onPress: () => void;\n accessibilityLabel?: string;\n};\n\nexport interface GeneralNavProps {\n /** Page title — always required */\n title: string;\n /** Optional left icon — display only, no press handler */\n leftIcon?: Icon;\n /** One or two right actions — each rendered as a ghost icon-only Button */\n rightActions?: GeneralNavAction[];\n}\n\nexport function GeneralNav({\n title,\n leftIcon: LeftIconProp,\n rightActions,\n}: GeneralNavProps) {\n const { colors, fontFamily } = useTheme();\n const nav = colors.generalNav;\n\n const LeftIcon = LeftIconProp ?? CaretLeftIcon;\n\n return (\n <View style={[styles.container, { backgroundColor: colors.background.primary }]}>\n {/* Left group: icon (display only) + title — takes all available space */}\n <View style={styles.leftGroup}>\n {LeftIconProp && (\n <LeftIcon size={24} weight=\"bold\" color={nav.navTextIcons} />\n )}\n <Text style={[styles.title, { color: nav.navTextIcons, fontFamily }]} numberOfLines={1}>\n {title}\n </Text>\n </View>\n\n {/* Right actions — ghost icon-only Buttons, pushed to far right by leftGroup flex: 1 */}\n {rightActions && rightActions.length > 0 && (\n <View style={styles.rightGroup}>\n {rightActions.map((action, index) => (\n <Button\n key={index}\n variant=\"tertiary\"\n content=\"icon-only-rounded\"\n size=\"M\"\n iconLeft={action.icon}\n onPress={action.onPress}\n accessibilityLabel={action.accessibilityLabel}\n />\n ))}\n </View>\n )}\n </View>\n );\n}"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** Width/height of the left and right icon slots (touch target) */
|
|
2
|
+
export declare const SLOT_SIZE = 44;
|
|
3
|
+
/** Fixed height of the navigation bar */
|
|
4
|
+
export declare const NAV_HEIGHT = 56;
|
|
5
|
+
export declare const styles: {
|
|
6
|
+
container: {
|
|
7
|
+
width: "100%";
|
|
8
|
+
height: number;
|
|
9
|
+
flexDirection: "row";
|
|
10
|
+
alignItems: "center";
|
|
11
|
+
paddingHorizontal: number;
|
|
12
|
+
};
|
|
13
|
+
/** Groups the optional left icon and the title — takes all available space */
|
|
14
|
+
leftGroup: {
|
|
15
|
+
flex: number;
|
|
16
|
+
flexDirection: "row";
|
|
17
|
+
alignItems: "center";
|
|
18
|
+
gap: number;
|
|
19
|
+
};
|
|
20
|
+
title: {
|
|
21
|
+
flex: number;
|
|
22
|
+
fontSize: number;
|
|
23
|
+
fontWeight: "700";
|
|
24
|
+
fontFamily: string;
|
|
25
|
+
lineHeight: number;
|
|
26
|
+
};
|
|
27
|
+
rightGroup: {
|
|
28
|
+
flexDirection: "row";
|
|
29
|
+
alignItems: "center";
|
|
30
|
+
gap: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=GeneralNav.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeneralNav.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/GeneralNav/GeneralNav.styles.ts"],"names":[],"mappings":"AAGA,mEAAmE;AACnE,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,yCAAyC;AACzC,eAAO,MAAM,UAAU,KAAK,CAAC;AAE7B,eAAO,MAAM,MAAM;;;;;;;;IAQjB,8EAA8E;;;;;;;;;;;;;;;;;;;CAmB9E,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Static layout styles for GeneralNav — colors and shadow injected via useTheme() */
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
3
|
+
/** Width/height of the left and right icon slots (touch target) */
|
|
4
|
+
export const SLOT_SIZE = 44;
|
|
5
|
+
/** Fixed height of the navigation bar */
|
|
6
|
+
export const NAV_HEIGHT = 56;
|
|
7
|
+
export const styles = StyleSheet.create({
|
|
8
|
+
container: {
|
|
9
|
+
width: '100%',
|
|
10
|
+
height: NAV_HEIGHT,
|
|
11
|
+
flexDirection: 'row',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
paddingHorizontal: 10,
|
|
14
|
+
},
|
|
15
|
+
/** Groups the optional left icon and the title — takes all available space */
|
|
16
|
+
leftGroup: {
|
|
17
|
+
flex: 1,
|
|
18
|
+
flexDirection: 'row',
|
|
19
|
+
alignItems: 'center',
|
|
20
|
+
gap: 8,
|
|
21
|
+
},
|
|
22
|
+
title: {
|
|
23
|
+
flex: 1,
|
|
24
|
+
fontSize: 28,
|
|
25
|
+
fontWeight: '700',
|
|
26
|
+
fontFamily: 'Urbanist',
|
|
27
|
+
lineHeight: 34,
|
|
28
|
+
},
|
|
29
|
+
rightGroup: {
|
|
30
|
+
flexDirection: 'row',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
gap: 4,
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=GeneralNav.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeneralNav.styles.js","sourceRoot":"","sources":["../../../../src/components/navigation/GeneralNav/GeneralNav.styles.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,mEAAmE;AACnE,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,CAAC;AAC5B,yCAAyC;AACzC,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,CAAC;AAE7B,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IACtC,SAAS,EAAE;QACT,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,UAAU;QAClB,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,iBAAiB,EAAE,EAAE;KACtB;IACD,8EAA8E;IAC9E,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;QACP,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,CAAC;KACP;IACD,KAAK,EAAE;QACL,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,UAAU;QACtB,UAAU,EAAE,EAAE;KACf;IACD,UAAU,EAAE;QACV,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,CAAC;KACP;CACF,CAAC,CAAC","sourcesContent":["/** Static layout styles for GeneralNav — colors and shadow injected via useTheme() */\nimport { StyleSheet } from 'react-native';\n\n/** Width/height of the left and right icon slots (touch target) */\nexport const SLOT_SIZE = 44;\n/** Fixed height of the navigation bar */\nexport const NAV_HEIGHT = 56;\n\nexport const styles = StyleSheet.create({\n container: {\n width: '100%',\n height: NAV_HEIGHT,\n flexDirection: 'row',\n alignItems: 'center',\n paddingHorizontal: 10,\n },\n /** Groups the optional left icon and the title — takes all available space */\n leftGroup: {\n flex: 1,\n flexDirection: 'row',\n alignItems: 'center',\n gap: 8,\n },\n title: {\n flex: 1,\n fontSize: 28,\n fontWeight: '700',\n fontFamily: 'Urbanist',\n lineHeight: 34,\n },\n rightGroup: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: 4,\n },\n});"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/GeneralNav/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/navigation/GeneralNav/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC","sourcesContent":["export { GeneralNav } from './GeneralNav';\nexport type { GeneralNavProps, GeneralNavAction } from './GeneralNav';"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** MobileCanva — responsive app shell used as preview frame in Storybook and docs */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { TabBarProps } from '../TabBar';
|
|
4
|
+
export interface MobileCanvaProps {
|
|
5
|
+
/** Content rendered inside the white area */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/** Override the inner TabBar — defaults to [Table, MapTrifold, Bell, User] */
|
|
8
|
+
tabBarProps?: TabBarProps;
|
|
9
|
+
}
|
|
10
|
+
export declare function MobileCanva({ children, tabBarProps }: MobileCanvaProps): React.JSX.Element;
|
|
11
|
+
//# sourceMappingURL=MobileCanva.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileCanva.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/MobileCanva/MobileCanva.tsx"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C,MAAM,WAAW,gBAAgB;IAC/B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,8EAA8E;IAC9E,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,gBAAgB,qBA4BtE"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** MobileCanva — responsive app shell used as preview frame in Storybook and docs */
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { View, StyleSheet } from 'react-native';
|
|
4
|
+
import { Table, MapTrifold, Bell, User } from 'phosphor-react-native';
|
|
5
|
+
import { useTheme } from '../../../context/ThemeContext';
|
|
6
|
+
import { TabBar } from '../TabBar';
|
|
7
|
+
export function MobileCanva({ children, tabBarProps }) {
|
|
8
|
+
const { colors } = useTheme();
|
|
9
|
+
const [activeIndex, setActiveIndex] = useState(0);
|
|
10
|
+
const defaultTabBarProps = {
|
|
11
|
+
activeIndex,
|
|
12
|
+
tabs: [
|
|
13
|
+
{ icon: <Table />, onPress: () => setActiveIndex(0) },
|
|
14
|
+
{ icon: <MapTrifold />, onPress: () => setActiveIndex(1) },
|
|
15
|
+
{ icon: <Bell />, onPress: () => setActiveIndex(2), notif: true },
|
|
16
|
+
{ icon: <User />, onPress: () => setActiveIndex(3) },
|
|
17
|
+
],
|
|
18
|
+
};
|
|
19
|
+
const resolvedTabBarProps = tabBarProps ?? defaultTabBarProps;
|
|
20
|
+
return (<View style={[styles.shell, { backgroundColor: colors.canva.shellBackground }]}>
|
|
21
|
+
<View style={[styles.content, {
|
|
22
|
+
backgroundColor: colors.canva.contentBackground,
|
|
23
|
+
borderColor: colors.canva.contentBorder,
|
|
24
|
+
}]}>
|
|
25
|
+
{children}
|
|
26
|
+
</View>
|
|
27
|
+
|
|
28
|
+
<TabBar {...resolvedTabBarProps}/>
|
|
29
|
+
</View>);
|
|
30
|
+
}
|
|
31
|
+
const styles = StyleSheet.create({
|
|
32
|
+
shell: {
|
|
33
|
+
flex: 1,
|
|
34
|
+
padding: 6,
|
|
35
|
+
gap: 6,
|
|
36
|
+
overflow: 'hidden',
|
|
37
|
+
},
|
|
38
|
+
content: {
|
|
39
|
+
flex: 1,
|
|
40
|
+
borderRadius: 12,
|
|
41
|
+
borderWidth: 1,
|
|
42
|
+
overflow: 'hidden',
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=MobileCanva.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileCanva.js","sourceRoot":"","sources":["../../../../src/components/navigation/MobileCanva/MobileCanva.tsx"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAUnC,MAAM,UAAU,WAAW,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAoB;IACrE,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC9B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElD,MAAM,kBAAkB,GAAgB;QACtC,WAAW;QACX,IAAI,EAAE;YACJ,EA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AQ;KACnB;IACD,OAAO,EAAE;QACP,IAAI,EAAU,CAAC;QACf,YAAY,EAAE,EAAE;QAChB,WAAW,EAAG,CAAC;QACf,QAAQ,EAAM,QAAQ;KACvB;CACF,CAAC,CAAC","sourcesContent":["/** MobileCanva — responsive app shell used as preview frame in Storybook and docs */\nimport React, { useState } from 'react';\nimport { View, StyleSheet } from 'react-native';\nimport { Table, MapTrifold, Bell, User } from 'phosphor-react-native';\nimport { useTheme } from '../../../context/ThemeContext';\nimport { TabBar } from '../TabBar';\nimport type { TabBarProps } from '../TabBar';\n\nexport interface MobileCanvaProps {\n /** Content rendered inside the white area */\n children?: React.ReactNode;\n /** Override the inner TabBar — defaults to [Table, MapTrifold, Bell, User] */\n tabBarProps?: TabBarProps;\n}\n\nexport function MobileCanva({ children, tabBarProps }: MobileCanvaProps) {\n const { colors } = useTheme();\n const [activeIndex, setActiveIndex] = useState(0);\n\n const defaultTabBarProps: TabBarProps = {\n activeIndex,\n tabs: [\n { icon: <Table />, onPress: () => setActiveIndex(0) },\n { icon: <MapTrifold />, onPress: () => setActiveIndex(1) },\n { icon: <Bell />, onPress: () => setActiveIndex(2), notif: true },\n { icon: <User />, onPress: () => setActiveIndex(3) },\n ],\n };\n\n const resolvedTabBarProps = tabBarProps ?? defaultTabBarProps;\n\n return (\n <View style={[styles.shell, { backgroundColor: colors.canva.shellBackground }]}>\n <View style={[styles.content, {\n backgroundColor: colors.canva.contentBackground,\n borderColor: colors.canva.contentBorder,\n }]}>\n {children}\n </View>\n\n <TabBar {...resolvedTabBarProps} />\n </View>\n );\n}\n\nconst styles = StyleSheet.create({\n shell: {\n flex: 1,\n padding: 6,\n gap: 6,\n overflow: 'hidden',\n },\n content: {\n flex: 1,\n borderRadius: 12,\n borderWidth: 1,\n overflow: 'hidden',\n },\n});"]}
|