@situaction/traquiste-mobile 1.0.0 → 1.1.0-next.1
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 +55 -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/ScreenCanva/ScreenCanva.d.ts +8 -0
- package/build/components/navigation/ScreenCanva/ScreenCanva.d.ts.map +1 -0
- package/build/components/navigation/ScreenCanva/ScreenCanva.js +37 -0
- package/build/components/navigation/ScreenCanva/ScreenCanva.js.map +1 -0
- package/build/components/navigation/ScreenCanva/index.d.ts +3 -0
- package/build/components/navigation/ScreenCanva/index.d.ts.map +1 -0
- package/build/components/navigation/ScreenCanva/index.js +2 -0
- package/build/components/navigation/ScreenCanva/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 +79 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +39 -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,257 @@
|
|
|
1
|
+
export declare const CALENDAR_TOKENS: {
|
|
2
|
+
readonly dayTouchTarget: 44;
|
|
3
|
+
readonly dayCircleSize: 36;
|
|
4
|
+
readonly dayCirclePaddingTop: 2;
|
|
5
|
+
readonly dayCircleBorderR: 9999;
|
|
6
|
+
readonly dayDotSize: 4;
|
|
7
|
+
readonly dayDotLeft: 16;
|
|
8
|
+
readonly dayDotTop: 27;
|
|
9
|
+
readonly rangeBarHeight: 32;
|
|
10
|
+
readonly gridPaddingH: 16;
|
|
11
|
+
readonly gridPaddingTop: 16;
|
|
12
|
+
readonly gridPaddingBottom: 20;
|
|
13
|
+
readonly gridGap: 8;
|
|
14
|
+
readonly headerHeight: 52;
|
|
15
|
+
readonly legendPaddingH: 32;
|
|
16
|
+
readonly legendPaddingV: 10;
|
|
17
|
+
readonly footerPaddingH: 16;
|
|
18
|
+
readonly footerPaddingTop: 12;
|
|
19
|
+
readonly footerPaddingBottom: 16;
|
|
20
|
+
readonly footerGap: 8;
|
|
21
|
+
readonly btnPaddingH: 16;
|
|
22
|
+
readonly btnPaddingV: 10;
|
|
23
|
+
readonly btnBorderRadius: 8;
|
|
24
|
+
readonly btnGap: 4;
|
|
25
|
+
readonly tabsContainerPad: 2;
|
|
26
|
+
readonly tabsContainerWidth: 148;
|
|
27
|
+
readonly tabsPaddingH: 8;
|
|
28
|
+
readonly tabsPaddingV: 6;
|
|
29
|
+
readonly tabsBorderRadius: 4;
|
|
30
|
+
readonly tabsContainerBorderRadius: 6;
|
|
31
|
+
readonly tabsGap: 4;
|
|
32
|
+
readonly topBarPaddingLeft: 20;
|
|
33
|
+
readonly topBarPaddingRight: 16;
|
|
34
|
+
readonly topBarPaddingTop: 16;
|
|
35
|
+
readonly topBarPaddingBottom: 12;
|
|
36
|
+
readonly cardBorderRadius: 16;
|
|
37
|
+
readonly yearItemBorderRadius: 12;
|
|
38
|
+
};
|
|
39
|
+
export declare const TYPO: {
|
|
40
|
+
readonly labelSmallest: {
|
|
41
|
+
readonly fontFamily: "Urbanist";
|
|
42
|
+
readonly fontWeight: "600";
|
|
43
|
+
readonly fontSize: 11;
|
|
44
|
+
readonly lineHeight: 14;
|
|
45
|
+
readonly letterSpacing: 0.66;
|
|
46
|
+
};
|
|
47
|
+
readonly textSmall: {
|
|
48
|
+
readonly fontFamily: "Urbanist";
|
|
49
|
+
readonly fontWeight: "500";
|
|
50
|
+
readonly fontSize: 14;
|
|
51
|
+
readonly lineHeight: 20;
|
|
52
|
+
};
|
|
53
|
+
readonly textSemiBoldSmall: {
|
|
54
|
+
readonly fontFamily: "Urbanist";
|
|
55
|
+
readonly fontWeight: "600";
|
|
56
|
+
readonly fontSize: 14;
|
|
57
|
+
readonly lineHeight: 20;
|
|
58
|
+
};
|
|
59
|
+
readonly textSemiBoldLarge: {
|
|
60
|
+
readonly fontFamily: "Urbanist";
|
|
61
|
+
readonly fontWeight: "600";
|
|
62
|
+
readonly fontSize: 18;
|
|
63
|
+
readonly lineHeight: 26;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export declare const dayStyles: {
|
|
67
|
+
cell: {
|
|
68
|
+
width: 44;
|
|
69
|
+
height: 44;
|
|
70
|
+
alignItems: "center";
|
|
71
|
+
justifyContent: "center";
|
|
72
|
+
};
|
|
73
|
+
rangeBarBase: {
|
|
74
|
+
position: "absolute";
|
|
75
|
+
height: 32;
|
|
76
|
+
top: number;
|
|
77
|
+
};
|
|
78
|
+
rangeBarFull: {
|
|
79
|
+
width: number;
|
|
80
|
+
left: number;
|
|
81
|
+
};
|
|
82
|
+
rangeBarStart: {
|
|
83
|
+
width: number;
|
|
84
|
+
right: number;
|
|
85
|
+
};
|
|
86
|
+
rangeBarEnd: {
|
|
87
|
+
width: number;
|
|
88
|
+
left: number;
|
|
89
|
+
};
|
|
90
|
+
circle: {
|
|
91
|
+
width: 36;
|
|
92
|
+
height: 36;
|
|
93
|
+
borderRadius: 9999;
|
|
94
|
+
alignItems: "center";
|
|
95
|
+
justifyContent: "center";
|
|
96
|
+
};
|
|
97
|
+
dot: {
|
|
98
|
+
position: "absolute";
|
|
99
|
+
width: 4;
|
|
100
|
+
height: 4;
|
|
101
|
+
borderRadius: number;
|
|
102
|
+
left: 16;
|
|
103
|
+
top: 27;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export declare const calendarStyles: {
|
|
107
|
+
card: {
|
|
108
|
+
borderRadius: 16;
|
|
109
|
+
overflow: "hidden";
|
|
110
|
+
shadowOffset: {
|
|
111
|
+
width: number;
|
|
112
|
+
height: number;
|
|
113
|
+
};
|
|
114
|
+
shadowOpacity: number;
|
|
115
|
+
shadowRadius: number;
|
|
116
|
+
elevation: number;
|
|
117
|
+
};
|
|
118
|
+
topBar: {
|
|
119
|
+
flexDirection: "row";
|
|
120
|
+
alignItems: "center";
|
|
121
|
+
justifyContent: "space-between";
|
|
122
|
+
paddingLeft: 20;
|
|
123
|
+
paddingRight: 16;
|
|
124
|
+
paddingTop: 16;
|
|
125
|
+
paddingBottom: 12;
|
|
126
|
+
};
|
|
127
|
+
topBarLabel: {
|
|
128
|
+
fontFamily: "Urbanist";
|
|
129
|
+
fontWeight: "600";
|
|
130
|
+
fontSize: 11;
|
|
131
|
+
lineHeight: 14;
|
|
132
|
+
letterSpacing: 0.66;
|
|
133
|
+
};
|
|
134
|
+
topBarDate: {
|
|
135
|
+
fontFamily: "Urbanist";
|
|
136
|
+
fontWeight: "500";
|
|
137
|
+
fontSize: 14;
|
|
138
|
+
lineHeight: 20;
|
|
139
|
+
};
|
|
140
|
+
divider: {
|
|
141
|
+
height: number;
|
|
142
|
+
};
|
|
143
|
+
gridContainer: {
|
|
144
|
+
paddingHorizontal: 16;
|
|
145
|
+
paddingTop: 16;
|
|
146
|
+
paddingBottom: 20;
|
|
147
|
+
};
|
|
148
|
+
weekLabelsRow: {
|
|
149
|
+
flexDirection: "row";
|
|
150
|
+
marginTop: number;
|
|
151
|
+
marginBottom: number;
|
|
152
|
+
};
|
|
153
|
+
weekLabelCell: {
|
|
154
|
+
width: 44;
|
|
155
|
+
alignItems: "center";
|
|
156
|
+
paddingVertical: number;
|
|
157
|
+
};
|
|
158
|
+
weekLabelText: {
|
|
159
|
+
fontFamily: "Urbanist";
|
|
160
|
+
fontWeight: "600";
|
|
161
|
+
fontSize: 11;
|
|
162
|
+
lineHeight: 14;
|
|
163
|
+
letterSpacing: 0.66;
|
|
164
|
+
};
|
|
165
|
+
weekRow: {
|
|
166
|
+
flexDirection: "row";
|
|
167
|
+
marginTop: 8;
|
|
168
|
+
};
|
|
169
|
+
header: {
|
|
170
|
+
height: 52;
|
|
171
|
+
flexDirection: "row";
|
|
172
|
+
alignItems: "center";
|
|
173
|
+
justifyContent: "space-between";
|
|
174
|
+
};
|
|
175
|
+
headerArrow: {
|
|
176
|
+
padding: number;
|
|
177
|
+
};
|
|
178
|
+
legend: {
|
|
179
|
+
borderTopWidth: number;
|
|
180
|
+
borderBottomWidth: number;
|
|
181
|
+
flexDirection: "row";
|
|
182
|
+
alignItems: "center";
|
|
183
|
+
justifyContent: "center";
|
|
184
|
+
paddingHorizontal: 32;
|
|
185
|
+
paddingVertical: 10;
|
|
186
|
+
gap: number;
|
|
187
|
+
};
|
|
188
|
+
legendItem: {
|
|
189
|
+
flexDirection: "row";
|
|
190
|
+
alignItems: "center";
|
|
191
|
+
gap: number;
|
|
192
|
+
};
|
|
193
|
+
legendText: {
|
|
194
|
+
includeFontPadding: false;
|
|
195
|
+
textAlignVertical: "center";
|
|
196
|
+
fontFamily: "Urbanist";
|
|
197
|
+
fontWeight: "600";
|
|
198
|
+
fontSize: 11;
|
|
199
|
+
lineHeight: 14;
|
|
200
|
+
letterSpacing: 0.66;
|
|
201
|
+
};
|
|
202
|
+
legendDot: {
|
|
203
|
+
width: number;
|
|
204
|
+
height: number;
|
|
205
|
+
borderRadius: number;
|
|
206
|
+
};
|
|
207
|
+
legendTodayCircle: {
|
|
208
|
+
width: number;
|
|
209
|
+
height: number;
|
|
210
|
+
borderRadius: number;
|
|
211
|
+
borderWidth: number;
|
|
212
|
+
};
|
|
213
|
+
legendRangeBar: {
|
|
214
|
+
width: number;
|
|
215
|
+
height: number;
|
|
216
|
+
borderRadius: number;
|
|
217
|
+
borderWidth: number;
|
|
218
|
+
};
|
|
219
|
+
legendSelectionDot: {
|
|
220
|
+
width: number;
|
|
221
|
+
height: number;
|
|
222
|
+
borderRadius: number;
|
|
223
|
+
};
|
|
224
|
+
footer: {
|
|
225
|
+
paddingHorizontal: 16;
|
|
226
|
+
paddingTop: 12;
|
|
227
|
+
paddingBottom: 16;
|
|
228
|
+
flexDirection: "row";
|
|
229
|
+
gap: 8;
|
|
230
|
+
};
|
|
231
|
+
tabsContainer: {
|
|
232
|
+
flexDirection: "row";
|
|
233
|
+
borderWidth: number;
|
|
234
|
+
borderRadius: 6;
|
|
235
|
+
padding: 2;
|
|
236
|
+
gap: 4;
|
|
237
|
+
width: 148;
|
|
238
|
+
};
|
|
239
|
+
tab: {
|
|
240
|
+
flex: number;
|
|
241
|
+
alignItems: "center";
|
|
242
|
+
justifyContent: "center";
|
|
243
|
+
paddingHorizontal: 8;
|
|
244
|
+
paddingVertical: 6;
|
|
245
|
+
borderRadius: 4;
|
|
246
|
+
borderWidth: number;
|
|
247
|
+
borderColor: string;
|
|
248
|
+
};
|
|
249
|
+
tabActive: {};
|
|
250
|
+
tabText: {
|
|
251
|
+
fontFamily: "Urbanist";
|
|
252
|
+
fontWeight: "600";
|
|
253
|
+
fontSize: 14;
|
|
254
|
+
lineHeight: 20;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
//# sourceMappingURL=Calendar.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Calendar.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Calendar/Calendar.styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqClB,CAAC;AAIX,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BP,CAAC;AAMX,eAAO,MAAM,SAAS;;;;;;;;;;;;;eAYyB,MAAM;;;;eACP,MAAM;;;;eACN,MAAM;;;;;;;;;;;;;;;;;;CAgBlD,CAAC;AAIH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiIzB,CAAC"}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
/** Layout tokens and static styles for the Calendar component family — colors come from useTheme() */
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
3
|
+
// --- Dimension tokens ---
|
|
4
|
+
export const CALENDAR_TOKENS = {
|
|
5
|
+
dayTouchTarget: 44,
|
|
6
|
+
dayCircleSize: 36,
|
|
7
|
+
dayCirclePaddingTop: 2,
|
|
8
|
+
dayCircleBorderR: 9999,
|
|
9
|
+
dayDotSize: 4,
|
|
10
|
+
dayDotLeft: 16,
|
|
11
|
+
dayDotTop: 27,
|
|
12
|
+
rangeBarHeight: 32,
|
|
13
|
+
gridPaddingH: 16,
|
|
14
|
+
gridPaddingTop: 16,
|
|
15
|
+
gridPaddingBottom: 20,
|
|
16
|
+
gridGap: 8,
|
|
17
|
+
headerHeight: 52,
|
|
18
|
+
legendPaddingH: 32,
|
|
19
|
+
legendPaddingV: 10,
|
|
20
|
+
footerPaddingH: 16,
|
|
21
|
+
footerPaddingTop: 12,
|
|
22
|
+
footerPaddingBottom: 16,
|
|
23
|
+
footerGap: 8,
|
|
24
|
+
btnPaddingH: 16,
|
|
25
|
+
btnPaddingV: 10,
|
|
26
|
+
btnBorderRadius: 8,
|
|
27
|
+
btnGap: 4,
|
|
28
|
+
tabsContainerPad: 2,
|
|
29
|
+
tabsContainerWidth: 148,
|
|
30
|
+
tabsPaddingH: 8,
|
|
31
|
+
tabsPaddingV: 6,
|
|
32
|
+
tabsBorderRadius: 4,
|
|
33
|
+
tabsContainerBorderRadius: 6,
|
|
34
|
+
tabsGap: 4,
|
|
35
|
+
topBarPaddingLeft: 20,
|
|
36
|
+
topBarPaddingRight: 16,
|
|
37
|
+
topBarPaddingTop: 16,
|
|
38
|
+
topBarPaddingBottom: 12,
|
|
39
|
+
cardBorderRadius: 16,
|
|
40
|
+
yearItemBorderRadius: 12,
|
|
41
|
+
};
|
|
42
|
+
// --- Typography presets (no color) ---
|
|
43
|
+
export const TYPO = {
|
|
44
|
+
labelSmallest: {
|
|
45
|
+
fontFamily: 'Urbanist',
|
|
46
|
+
fontWeight: '600',
|
|
47
|
+
fontSize: 11,
|
|
48
|
+
lineHeight: 14,
|
|
49
|
+
letterSpacing: 0.66,
|
|
50
|
+
},
|
|
51
|
+
textSmall: {
|
|
52
|
+
fontFamily: 'Urbanist',
|
|
53
|
+
fontWeight: '500',
|
|
54
|
+
fontSize: 14,
|
|
55
|
+
lineHeight: 20,
|
|
56
|
+
},
|
|
57
|
+
textSemiBoldSmall: {
|
|
58
|
+
fontFamily: 'Urbanist',
|
|
59
|
+
fontWeight: '600',
|
|
60
|
+
fontSize: 14,
|
|
61
|
+
lineHeight: 20,
|
|
62
|
+
},
|
|
63
|
+
textSemiBoldLarge: {
|
|
64
|
+
fontFamily: 'Urbanist',
|
|
65
|
+
fontWeight: '600',
|
|
66
|
+
fontSize: 18,
|
|
67
|
+
lineHeight: 26,
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
const T = CALENDAR_TOKENS;
|
|
71
|
+
// --- Day cell static layout ---
|
|
72
|
+
export const dayStyles = StyleSheet.create({
|
|
73
|
+
cell: {
|
|
74
|
+
width: T.dayTouchTarget,
|
|
75
|
+
height: T.dayTouchTarget,
|
|
76
|
+
alignItems: 'center',
|
|
77
|
+
justifyContent: 'center',
|
|
78
|
+
},
|
|
79
|
+
rangeBarBase: {
|
|
80
|
+
position: 'absolute',
|
|
81
|
+
height: T.rangeBarHeight,
|
|
82
|
+
top: (T.dayTouchTarget - T.rangeBarHeight) / 2,
|
|
83
|
+
},
|
|
84
|
+
rangeBarFull: { width: '100%', left: 0 },
|
|
85
|
+
rangeBarStart: { width: '50%', right: 0 },
|
|
86
|
+
rangeBarEnd: { width: '50%', left: 0 },
|
|
87
|
+
circle: {
|
|
88
|
+
width: T.dayCircleSize,
|
|
89
|
+
height: T.dayCircleSize,
|
|
90
|
+
borderRadius: T.dayCircleBorderR,
|
|
91
|
+
alignItems: 'center',
|
|
92
|
+
justifyContent: 'center',
|
|
93
|
+
},
|
|
94
|
+
dot: {
|
|
95
|
+
position: 'absolute',
|
|
96
|
+
width: T.dayDotSize,
|
|
97
|
+
height: T.dayDotSize,
|
|
98
|
+
borderRadius: 9999,
|
|
99
|
+
left: T.dayDotLeft,
|
|
100
|
+
top: T.dayDotTop,
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
// --- Calendar layout ---
|
|
104
|
+
export const calendarStyles = StyleSheet.create({
|
|
105
|
+
card: {
|
|
106
|
+
borderRadius: T.cardBorderRadius,
|
|
107
|
+
overflow: 'hidden',
|
|
108
|
+
shadowOffset: { width: 0, height: 4 },
|
|
109
|
+
shadowOpacity: 1,
|
|
110
|
+
shadowRadius: 16,
|
|
111
|
+
elevation: 4,
|
|
112
|
+
},
|
|
113
|
+
topBar: {
|
|
114
|
+
flexDirection: 'row',
|
|
115
|
+
alignItems: 'center',
|
|
116
|
+
justifyContent: 'space-between',
|
|
117
|
+
paddingLeft: T.topBarPaddingLeft,
|
|
118
|
+
paddingRight: T.topBarPaddingRight,
|
|
119
|
+
paddingTop: T.topBarPaddingTop,
|
|
120
|
+
paddingBottom: T.topBarPaddingBottom,
|
|
121
|
+
},
|
|
122
|
+
topBarLabel: {
|
|
123
|
+
...TYPO.labelSmallest,
|
|
124
|
+
},
|
|
125
|
+
topBarDate: {
|
|
126
|
+
...TYPO.textSmall,
|
|
127
|
+
},
|
|
128
|
+
divider: {
|
|
129
|
+
height: 1,
|
|
130
|
+
},
|
|
131
|
+
gridContainer: {
|
|
132
|
+
paddingHorizontal: T.gridPaddingH,
|
|
133
|
+
paddingTop: T.gridPaddingTop,
|
|
134
|
+
paddingBottom: T.gridPaddingBottom,
|
|
135
|
+
},
|
|
136
|
+
weekLabelsRow: {
|
|
137
|
+
flexDirection: 'row',
|
|
138
|
+
marginTop: 8,
|
|
139
|
+
marginBottom: 4,
|
|
140
|
+
},
|
|
141
|
+
weekLabelCell: {
|
|
142
|
+
width: T.dayTouchTarget,
|
|
143
|
+
alignItems: 'center',
|
|
144
|
+
paddingVertical: 4,
|
|
145
|
+
},
|
|
146
|
+
weekLabelText: {
|
|
147
|
+
...TYPO.labelSmallest,
|
|
148
|
+
},
|
|
149
|
+
weekRow: {
|
|
150
|
+
flexDirection: 'row',
|
|
151
|
+
marginTop: T.gridGap,
|
|
152
|
+
},
|
|
153
|
+
header: {
|
|
154
|
+
height: T.headerHeight,
|
|
155
|
+
flexDirection: 'row',
|
|
156
|
+
alignItems: 'center',
|
|
157
|
+
justifyContent: 'space-between',
|
|
158
|
+
},
|
|
159
|
+
headerArrow: {
|
|
160
|
+
padding: 10,
|
|
161
|
+
},
|
|
162
|
+
legend: {
|
|
163
|
+
borderTopWidth: 1,
|
|
164
|
+
borderBottomWidth: 1,
|
|
165
|
+
flexDirection: 'row',
|
|
166
|
+
alignItems: 'center',
|
|
167
|
+
justifyContent: 'center',
|
|
168
|
+
paddingHorizontal: T.legendPaddingH,
|
|
169
|
+
paddingVertical: T.legendPaddingV,
|
|
170
|
+
gap: 16,
|
|
171
|
+
},
|
|
172
|
+
legendItem: {
|
|
173
|
+
flexDirection: 'row',
|
|
174
|
+
alignItems: 'center',
|
|
175
|
+
gap: 6,
|
|
176
|
+
},
|
|
177
|
+
legendText: {
|
|
178
|
+
...TYPO.labelSmallest,
|
|
179
|
+
includeFontPadding: false,
|
|
180
|
+
textAlignVertical: 'center',
|
|
181
|
+
},
|
|
182
|
+
legendDot: {
|
|
183
|
+
width: 4,
|
|
184
|
+
height: 4,
|
|
185
|
+
borderRadius: 9999,
|
|
186
|
+
},
|
|
187
|
+
legendTodayCircle: {
|
|
188
|
+
width: 13,
|
|
189
|
+
height: 13,
|
|
190
|
+
borderRadius: 9999,
|
|
191
|
+
borderWidth: 1.5,
|
|
192
|
+
},
|
|
193
|
+
legendRangeBar: {
|
|
194
|
+
width: 20,
|
|
195
|
+
height: 8,
|
|
196
|
+
borderRadius: 2,
|
|
197
|
+
borderWidth: 1,
|
|
198
|
+
},
|
|
199
|
+
legendSelectionDot: {
|
|
200
|
+
width: 13,
|
|
201
|
+
height: 13,
|
|
202
|
+
borderRadius: 9999,
|
|
203
|
+
},
|
|
204
|
+
footer: {
|
|
205
|
+
paddingHorizontal: T.footerPaddingH,
|
|
206
|
+
paddingTop: T.footerPaddingTop,
|
|
207
|
+
paddingBottom: T.footerPaddingBottom,
|
|
208
|
+
flexDirection: 'row',
|
|
209
|
+
gap: T.footerGap,
|
|
210
|
+
},
|
|
211
|
+
tabsContainer: {
|
|
212
|
+
flexDirection: 'row',
|
|
213
|
+
borderWidth: 1,
|
|
214
|
+
borderRadius: T.tabsContainerBorderRadius,
|
|
215
|
+
padding: T.tabsContainerPad,
|
|
216
|
+
gap: T.tabsGap,
|
|
217
|
+
width: T.tabsContainerWidth,
|
|
218
|
+
},
|
|
219
|
+
tab: {
|
|
220
|
+
flex: 1,
|
|
221
|
+
alignItems: 'center',
|
|
222
|
+
justifyContent: 'center',
|
|
223
|
+
paddingHorizontal: T.tabsPaddingH,
|
|
224
|
+
paddingVertical: T.tabsPaddingV,
|
|
225
|
+
borderRadius: T.tabsBorderRadius,
|
|
226
|
+
borderWidth: 1,
|
|
227
|
+
borderColor: 'transparent',
|
|
228
|
+
},
|
|
229
|
+
tabActive: {},
|
|
230
|
+
tabText: {
|
|
231
|
+
...TYPO.textSemiBoldSmall,
|
|
232
|
+
},
|
|
233
|
+
});
|
|
234
|
+
//# sourceMappingURL=Calendar.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Calendar.styles.js","sourceRoot":"","sources":["../../../src/components/Calendar/Calendar.styles.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,2BAA2B;AAE3B,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,cAAc,EAAO,EAAE;IACvB,aAAa,EAAQ,EAAE;IACvB,mBAAmB,EAAE,CAAC;IACtB,gBAAgB,EAAK,IAAI;IACzB,UAAU,EAAW,CAAC;IACtB,UAAU,EAAW,EAAE;IACvB,SAAS,EAAY,EAAE;IACvB,cAAc,EAAO,EAAE;IACvB,YAAY,EAAS,EAAE;IACvB,cAAc,EAAO,EAAE;IACvB,iBAAiB,EAAI,EAAE;IACvB,OAAO,EAAc,CAAC;IACtB,YAAY,EAAS,EAAE;IACvB,cAAc,EAAO,EAAE;IACvB,cAAc,EAAO,EAAE;IACvB,cAAc,EAAO,EAAE;IACvB,gBAAgB,EAAK,EAAE;IACvB,mBAAmB,EAAE,EAAE;IACvB,SAAS,EAAY,CAAC;IACtB,WAAW,EAAU,EAAE;IACvB,WAAW,EAAU,EAAE;IACvB,eAAe,EAAM,CAAC;IACtB,MAAM,EAAe,CAAC;IACtB,gBAAgB,EAAK,CAAC;IACtB,kBAAkB,EAAG,GAAG;IAC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cesContent":["/** Layout tokens and static styles for the Calendar component family — colors come from useTheme() */\nimport { StyleSheet } from 'react-native';\n\n// --- Dimension tokens ---\n\nexport const CALENDAR_TOKENS = {\n dayTouchTarget: 44,\n dayCircleSize: 36,\n dayCirclePaddingTop: 2,\n dayCircleBorderR: 9999,\n dayDotSize: 4,\n dayDotLeft: 16,\n dayDotTop: 27,\n rangeBarHeight: 32,\n gridPaddingH: 16,\n gridPaddingTop: 16,\n gridPaddingBottom: 20,\n gridGap: 8,\n headerHeight: 52,\n legendPaddingH: 32,\n legendPaddingV: 10,\n footerPaddingH: 16,\n footerPaddingTop: 12,\n footerPaddingBottom: 16,\n footerGap: 8,\n btnPaddingH: 16,\n btnPaddingV: 10,\n btnBorderRadius: 8,\n btnGap: 4,\n tabsContainerPad: 2,\n tabsContainerWidth: 148,\n tabsPaddingH: 8,\n tabsPaddingV: 6,\n tabsBorderRadius: 4,\n tabsContainerBorderRadius: 6,\n tabsGap: 4,\n topBarPaddingLeft: 20,\n topBarPaddingRight: 16,\n topBarPaddingTop: 16,\n topBarPaddingBottom: 12,\n cardBorderRadius: 16,\n yearItemBorderRadius: 12,\n} as const;\n\n// --- Typography presets (no color) ---\n\nexport const TYPO = {\n labelSmallest: {\n fontFamily: 'Urbanist',\n fontWeight: '600' as const,\n fontSize: 11,\n lineHeight: 14,\n letterSpacing: 0.66,\n },\n textSmall: {\n fontFamily: 'Urbanist',\n fontWeight: '500' as const,\n fontSize: 14,\n lineHeight: 20,\n },\n textSemiBoldSmall: {\n fontFamily: 'Urbanist',\n fontWeight: '600' as const,\n fontSize: 14,\n lineHeight: 20,\n },\n textSemiBoldLarge: {\n fontFamily: 'Urbanist',\n fontWeight: '600' as const,\n fontSize: 18,\n lineHeight: 26,\n },\n} as const;\n\nconst T = CALENDAR_TOKENS;\n\n// --- Day cell static layout ---\n\nexport const dayStyles = StyleSheet.create({\n cell: {\n width: T.dayTouchTarget,\n height: T.dayTouchTarget,\n alignItems: 'center',\n justifyContent: 'center',\n },\n rangeBarBase: {\n position: 'absolute',\n height: T.rangeBarHeight,\n top: (T.dayTouchTarget - T.rangeBarHeight) / 2,\n },\n rangeBarFull: { width: '100%' as unknown as number, left: 0 },\n rangeBarStart: { width: '50%' as unknown as number, right: 0 },\n rangeBarEnd: { width: '50%' as unknown as number, left: 0 },\n circle: {\n width: T.dayCircleSize,\n height: T.dayCircleSize,\n borderRadius: T.dayCircleBorderR,\n alignItems: 'center',\n justifyContent: 'center',\n },\n dot: {\n position: 'absolute',\n width: T.dayDotSize,\n height: T.dayDotSize,\n borderRadius: 9999,\n left: T.dayDotLeft,\n top: T.dayDotTop,\n },\n});\n\n// --- Calendar layout ---\n\nexport const calendarStyles = StyleSheet.create({\n card: {\n borderRadius: T.cardBorderRadius,\n overflow: 'hidden',\n shadowOffset: { width: 0, height: 4 },\n shadowOpacity: 1,\n shadowRadius: 16,\n elevation: 4,\n },\n topBar: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n paddingLeft: T.topBarPaddingLeft,\n paddingRight: T.topBarPaddingRight,\n paddingTop: T.topBarPaddingTop,\n paddingBottom: T.topBarPaddingBottom,\n },\n topBarLabel: {\n ...TYPO.labelSmallest,\n },\n topBarDate: {\n ...TYPO.textSmall,\n },\n divider: {\n height: 1,\n },\n gridContainer: {\n paddingHorizontal: T.gridPaddingH,\n paddingTop: T.gridPaddingTop,\n paddingBottom: T.gridPaddingBottom,\n },\n weekLabelsRow: {\n flexDirection: 'row',\n marginTop: 8,\n marginBottom: 4,\n },\n weekLabelCell: {\n width: T.dayTouchTarget,\n alignItems: 'center',\n paddingVertical: 4,\n },\n weekLabelText: {\n ...TYPO.labelSmallest,\n },\n weekRow: {\n flexDirection: 'row',\n marginTop: T.gridGap,\n },\n header: {\n height: T.headerHeight,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n },\n headerArrow: {\n padding: 10,\n },\n legend: {\n borderTopWidth: 1,\n borderBottomWidth: 1,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n paddingHorizontal: T.legendPaddingH,\n paddingVertical: T.legendPaddingV,\n gap: 16,\n },\n legendItem: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: 6,\n },\n legendText: {\n ...TYPO.labelSmallest,\n includeFontPadding: false,\n textAlignVertical: 'center',\n },\n legendDot: {\n width: 4,\n height: 4,\n borderRadius: 9999,\n },\n legendTodayCircle: {\n width: 13,\n height: 13,\n borderRadius: 9999,\n borderWidth: 1.5,\n },\n legendRangeBar: {\n width: 20,\n height: 8,\n borderRadius: 2,\n borderWidth: 1,\n },\n legendSelectionDot: {\n width: 13,\n height: 13,\n borderRadius: 9999,\n },\n footer: {\n paddingHorizontal: T.footerPaddingH,\n paddingTop: T.footerPaddingTop,\n paddingBottom: T.footerPaddingBottom,\n flexDirection: 'row',\n gap: T.footerGap,\n },\n tabsContainer: {\n flexDirection: 'row',\n borderWidth: 1,\n borderRadius: T.tabsContainerBorderRadius,\n padding: T.tabsContainerPad,\n gap: T.tabsGap,\n width: T.tabsContainerWidth,\n },\n tab: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n paddingHorizontal: T.tabsPaddingH,\n paddingVertical: T.tabsPaddingV,\n borderRadius: T.tabsBorderRadius,\n borderWidth: 1,\n borderColor: 'transparent',\n },\n tabActive: {},\n tabText: {\n ...TYPO.textSemiBoldSmall,\n },\n});"]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/** Types for the Calendar component family */
|
|
2
|
+
import type { CalendarI18n } from './Calendar.i18n';
|
|
3
|
+
export type DayState = 'default' | 'nodata' | 'selected-start' | 'selected-end' | 'in-range' | 'today' | 'outside' | 'disabled';
|
|
4
|
+
export interface CalendarDayProps {
|
|
5
|
+
/** Day number to display */
|
|
6
|
+
day: number;
|
|
7
|
+
/** Day state */
|
|
8
|
+
state?: DayState;
|
|
9
|
+
/** Calendar mode — hides range band in day mode */
|
|
10
|
+
mode?: 'day' | 'range';
|
|
11
|
+
/** Whether both range start and end are defined — hides band when only one side selected */
|
|
12
|
+
hasRange?: boolean;
|
|
13
|
+
/** Show data dot below number */
|
|
14
|
+
hasData?: boolean;
|
|
15
|
+
/** Called on press */
|
|
16
|
+
onPress?: (day: number) => void;
|
|
17
|
+
}
|
|
18
|
+
export interface CalendarHeaderProps {
|
|
19
|
+
/** Displayed month+year label */
|
|
20
|
+
label: string;
|
|
21
|
+
/** Called when prev arrow pressed */
|
|
22
|
+
onPrev: () => void;
|
|
23
|
+
/** Called when next arrow pressed */
|
|
24
|
+
onNext: () => void;
|
|
25
|
+
/** Called when month/year button pressed — opens year picker */
|
|
26
|
+
onLabelPress: () => void;
|
|
27
|
+
}
|
|
28
|
+
export interface CalendarLegendProps {
|
|
29
|
+
/** Calendar mode — shows "Range" item or "Sélection" item */
|
|
30
|
+
mode: 'range' | 'day';
|
|
31
|
+
/** i18n labels */
|
|
32
|
+
i18n: CalendarI18n;
|
|
33
|
+
}
|
|
34
|
+
export interface CalendarProps {
|
|
35
|
+
/** Controlled selected date (day mode) */
|
|
36
|
+
selectedDate?: Date;
|
|
37
|
+
/** Controlled range start */
|
|
38
|
+
rangeStart?: Date;
|
|
39
|
+
/** Controlled range end */
|
|
40
|
+
rangeEnd?: Date;
|
|
41
|
+
/** Mode: single day or range */
|
|
42
|
+
mode?: 'day' | 'range';
|
|
43
|
+
/** Show mode toggle tabs */
|
|
44
|
+
showModeTabs?: boolean;
|
|
45
|
+
/** Dates with data dot */
|
|
46
|
+
dataDates?: Date[];
|
|
47
|
+
/** Called when a day is pressed */
|
|
48
|
+
onDayPress?: (date: Date) => void;
|
|
49
|
+
/** Called on mode change */
|
|
50
|
+
onModeChange?: (mode: 'day' | 'range') => void;
|
|
51
|
+
/** Called on clear button press */
|
|
52
|
+
onClear?: () => void;
|
|
53
|
+
/** Called on confirm button press */
|
|
54
|
+
onConfirm?: () => void;
|
|
55
|
+
/** First selectable year in the year picker — defaults to 1900 */
|
|
56
|
+
minYear?: number;
|
|
57
|
+
/** Last selectable year in the year picker — defaults to 2100 */
|
|
58
|
+
maxYear?: number;
|
|
59
|
+
/** i18n labels — defaults to French */
|
|
60
|
+
i18n?: Partial<CalendarI18n>;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=Calendar.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Calendar.types.d.ts","sourceRoot":"","sources":["../../../src/components/Calendar/Calendar.types.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,QAAQ,GACR,gBAAgB,GAChB,cAAc,GACd,UAAU,GACV,OAAO,GACP,SAAS,GACT,UAAU,CAAC;AAEf,MAAM,WAAW,gBAAgB;IAC/B,4BAA4B;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB;IAChB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,mDAAmD;IACnD,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;IACvB,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iCAAiC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sBAAsB;IACtB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,mBAAmB;IAClC,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,qCAAqC;IACrC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,gEAAgE;IAChE,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAClC,6DAA6D;IAC7D,IAAI,EAAE,OAAO,GAAG,KAAK,CAAC;IACtB,kBAAkB;IAClB,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,0CAA0C;IAC1C,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,6BAA6B;IAC7B,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,gCAAgC;IAChC,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;IACvB,4BAA4B;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC;IACnB,mCAAmC;IACnC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAClC,4BAA4B;IAC5B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,KAAK,IAAI,CAAC;IAC/C,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,IAAI,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Calendar.types.js","sourceRoot":"","sources":["../../../src/components/Calendar/Calendar.types.ts"],"names":[],"mappings":"","sourcesContent":["/** Types for the Calendar component family */\nimport type { CalendarI18n } from './Calendar.i18n';\n\nexport type DayState =\n | 'default'\n | 'nodata'\n | 'selected-start'\n | 'selected-end'\n | 'in-range'\n | 'today'\n | 'outside'\n | 'disabled';\n\nexport interface CalendarDayProps {\n /** Day number to display */\n day: number;\n /** Day state */\n state?: DayState;\n /** Calendar mode — hides range band in day mode */\n mode?: 'day' | 'range';\n /** Whether both range start and end are defined — hides band when only one side selected */\n hasRange?: boolean;\n /** Show data dot below number */\n hasData?: boolean;\n /** Called on press */\n onPress?: (day: number) => void;\n}\n\nexport interface CalendarHeaderProps {\n /** Displayed month+year label */\n label: string;\n /** Called when prev arrow pressed */\n onPrev: () => void;\n /** Called when next arrow pressed */\n onNext: () => void;\n /** Called when month/year button pressed — opens year picker */\n onLabelPress: () => void;\n}\n\nexport interface CalendarLegendProps {\n /** Calendar mode — shows \"Range\" item or \"Sélection\" item */\n mode: 'range' | 'day';\n /** i18n labels */\n i18n: CalendarI18n;\n}\n\nexport interface CalendarProps {\n /** Controlled selected date (day mode) */\n selectedDate?: Date;\n /** Controlled range start */\n rangeStart?: Date;\n /** Controlled range end */\n rangeEnd?: Date;\n /** Mode: single day or range */\n mode?: 'day' | 'range';\n /** Show mode toggle tabs */\n showModeTabs?: boolean;\n /** Dates with data dot */\n dataDates?: Date[];\n /** Called when a day is pressed */\n onDayPress?: (date: Date) => void;\n /** Called on mode change */\n onModeChange?: (mode: 'day' | 'range') => void;\n /** Called on clear button press */\n onClear?: () => void;\n /** Called on confirm button press */\n onConfirm?: () => void;\n /** First selectable year in the year picker — defaults to 1900 */\n minYear?: number;\n /** Last selectable year in the year picker — defaults to 2100 */\n maxYear?: number;\n /** i18n labels — defaults to French */\n i18n?: Partial<CalendarI18n>;\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalendarDay.d.ts","sourceRoot":"","sources":["../../../src/components/Calendar/CalendarDay.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAY,MAAM,kBAAkB,CAAC;AAUnE,wBAAgB,WAAW,CAAC,EAAE,GAAG,EAAE,KAAiB,EAAE,IAAc,EAAE,QAAgB,EAAE,OAAe,EAAE,OAAO,EAAE,EAAE,gBAAgB,+BAwDnI;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/** Atomic day cell — 44px touch target with circle, range band and data dot */
|
|
2
|
+
import { Pressable, Text, View } from 'react-native';
|
|
3
|
+
import { useTheme } from '../../context/ThemeContext';
|
|
4
|
+
import { TYPO, dayStyles } from './Calendar.styles';
|
|
5
|
+
function getRangeBandLayout(state) {
|
|
6
|
+
if (state === 'in-range')
|
|
7
|
+
return dayStyles.rangeBarFull;
|
|
8
|
+
if (state === 'selected-start')
|
|
9
|
+
return dayStyles.rangeBarStart;
|
|
10
|
+
if (state === 'selected-end')
|
|
11
|
+
return dayStyles.rangeBarEnd;
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
export function CalendarDay({ day, state = 'default', mode = 'range', hasRange = false, hasData = false, onPress }) {
|
|
15
|
+
const { colors, fontFamily } = useTheme();
|
|
16
|
+
const cal = colors.calendar;
|
|
17
|
+
const isSelected = state === 'selected-start' || state === 'selected-end';
|
|
18
|
+
const isOutside = state === 'outside';
|
|
19
|
+
const isDisabled = state === 'disabled';
|
|
20
|
+
// Text color
|
|
21
|
+
const textColor = isSelected ? cal.day.selected.text :
|
|
22
|
+
isOutside ? cal.day.default.secondary :
|
|
23
|
+
state === 'nodata' ? cal.day.default.secondary :
|
|
24
|
+
isDisabled ? cal.day.disabled.text :
|
|
25
|
+
state === 'today' ? cal.day.today.text :
|
|
26
|
+
cal.day.default.text;
|
|
27
|
+
const textStyle = {
|
|
28
|
+
...(isSelected ? TYPO.textSemiBoldSmall : TYPO.textSmall),
|
|
29
|
+
color: textColor,
|
|
30
|
+
fontFamily,
|
|
31
|
+
};
|
|
32
|
+
// Circle style
|
|
33
|
+
const circleStyle = isSelected
|
|
34
|
+
? { backgroundColor: cal.day.selected.background }
|
|
35
|
+
: state === 'today'
|
|
36
|
+
? { borderWidth: 2, borderColor: cal.day.today.border }
|
|
37
|
+
: undefined;
|
|
38
|
+
// Range band — masqué en mode jour ou si la plage est incomplète
|
|
39
|
+
const bandLayout = mode === 'range' && hasRange ? getRangeBandLayout(state) : null;
|
|
40
|
+
const showDot = hasData && !isOutside && !isDisabled;
|
|
41
|
+
const dotColor = isSelected ? cal.day.dataSelected.dot : cal.day.data.dot;
|
|
42
|
+
return (<Pressable style={dayStyles.cell} onPress={!isDisabled && !isOutside ? () => onPress?.(day) : undefined} accessibilityRole="button" accessibilityLabel={`${day}`} accessibilityState={{ disabled: isDisabled }}>
|
|
43
|
+
{bandLayout != null && (<View style={[dayStyles.rangeBarBase, bandLayout, { backgroundColor: cal.range.background }]} pointerEvents="none"/>)}
|
|
44
|
+
|
|
45
|
+
<View style={[dayStyles.circle, circleStyle]} pointerEvents="none">
|
|
46
|
+
<Text style={textStyle}>{day}</Text>
|
|
47
|
+
{showDot && <View style={[dayStyles.dot, { backgroundColor: dotColor }]}/>}
|
|
48
|
+
</View>
|
|
49
|
+
</Pressable>);
|
|
50
|
+
}
|
|
51
|
+
export default CalendarDay;
|
|
52
|
+
//# sourceMappingURL=CalendarDay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalendarDay.js","sourceRoot":"","sources":["../../../src/components/Calendar/CalendarDay.tsx"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEpD,SAAS,kBAAkB,CAAC,KAAe;IACzC,IAAI,KAAK,KAAK,UAAU;QAAQ,OAAO,SAAS,CAAC,YAAY,CAAC;IAC9D,IAAI,KAAK,KAAK,gBAAgB;QAAE,OAAO,SAAS,CAAC,aAAa,CAAC;IAC/D,IAAI,KAAK,KAAK,cAAc;QAAI,OAAO,SAAS,CAAC,WAAW,CAAC;IAC7D,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAAE,GAAG,EAAE,KAAK,GAAG,SAAS,EAAE,IAAI,GAAG,OAAO,EAAE,QAA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ChE;QAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CACnC;QAAA,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAG,CAC7E;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,SAAS,CAAC,CACb,CAAC;AACJ,CAAC;AAED,eAAe,WAAW,CAAC","sourcesContent":["/** Atomic day cell — 44px touch target with circle, range band and data dot */\nimport { Pressable, Text, View } from 'react-native';\nimport { useTheme } from '../../context/ThemeContext';\nimport type { CalendarDayProps, DayState } from './Calendar.types';\nimport { TYPO, dayStyles } from './Calendar.styles';\n\nfunction getRangeBandLayout(state: DayState) {\n if (state === 'in-range') return dayStyles.rangeBarFull;\n if (state === 'selected-start') return dayStyles.rangeBarStart;\n if (state === 'selected-end') return dayStyles.rangeBarEnd;\n return null;\n}\n\nexport function CalendarDay({ day, state = 'default', mode = 'range', hasRange = false, hasData = false, onPress }: CalendarDayProps) {\n const { colors, fontFamily } = useTheme();\n const cal = colors.calendar;\n\n const isSelected = state === 'selected-start' || state === 'selected-end';\n const isOutside = state === 'outside';\n const isDisabled = state === 'disabled';\n\n // Text color\n const textColor =\n isSelected ? cal.day.selected.text :\n isOutside ? cal.day.default.secondary :\n state === 'nodata' ? cal.day.default.secondary :\n isDisabled ? cal.day.disabled.text :\n state === 'today' ? cal.day.today.text :\n cal.day.default.text;\n\n const textStyle = {\n ...(isSelected ? TYPO.textSemiBoldSmall : TYPO.textSmall),\n color: textColor,\n fontFamily,\n };\n\n // Circle style\n const circleStyle = isSelected\n ? { backgroundColor: cal.day.selected.background }\n : state === 'today'\n ? { borderWidth: 2, borderColor: cal.day.today.border }\n : undefined;\n\n // Range band — masqué en mode jour ou si la plage est incomplète\n const bandLayout = mode === 'range' && hasRange ? getRangeBandLayout(state) : null;\n const showDot = hasData && !isOutside && !isDisabled;\n const dotColor = isSelected ? cal.day.dataSelected.dot : cal.day.data.dot;\n\n return (\n <Pressable\n style={dayStyles.cell}\n onPress={!isDisabled && !isOutside ? () => onPress?.(day) : undefined}\n accessibilityRole=\"button\"\n accessibilityLabel={`${day}`}\n accessibilityState={{ disabled: isDisabled }}\n >\n {bandLayout != null && (\n <View\n style={[dayStyles.rangeBarBase, bandLayout, { backgroundColor: cal.range.background }]}\n pointerEvents=\"none\"\n />\n )}\n\n <View style={[dayStyles.circle, circleStyle]} pointerEvents=\"none\">\n <Text style={textStyle}>{day}</Text>\n {showDot && <View style={[dayStyles.dot, { backgroundColor: dotColor }]} />}\n </View>\n </Pressable>\n );\n}\n\nexport default CalendarDay;"]}
|