@alveole/components 2.0.0-alpha.15 → 2.0.0-alpha.17
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/dist/core/AlveoleProvider/AlveoleProvider.d.ts +17 -0
- package/dist/core/AlveoleProvider/AlveoleProvider.d.ts.map +1 -0
- package/dist/core/AlveoleProvider/AlveoleProvider.js +15 -0
- package/dist/core/AlveoleProvider/index.d.ts +2 -0
- package/dist/core/AlveoleProvider/index.d.ts.map +1 -0
- package/dist/core/AlveoleProvider/index.js +1 -0
- package/dist/core/AnchorHeading/AnchorHeading.d.ts +6 -2
- package/dist/core/AnchorHeading/AnchorHeading.d.ts.map +1 -1
- package/dist/core/AnchorHeading/AnchorHeading.js +1 -1
- package/dist/core/AnchorHeading/AnchorHeading.stories.d.ts +2 -1
- package/dist/core/AnchorHeading/AnchorHeading.stories.d.ts.map +1 -1
- package/dist/core/AnchorHeading/AnchorHeading.stories.js +1 -0
- package/dist/core/AnchorHeading/AnchorHeading.stories.sources.d.ts +2 -0
- package/dist/core/AnchorHeading/AnchorHeading.stories.sources.d.ts.map +1 -1
- package/dist/core/AnchorHeading/AnchorHeading.stories.sources.js +2 -0
- package/dist/core/AnchorHeading/AnchorHeading.web.d.ts +1 -1
- package/dist/core/AnchorHeading/AnchorHeading.web.d.ts.map +1 -1
- package/dist/core/AnchorHeading/AnchorHeading.web.js +7 -4
- package/dist/core/AnchorHeading/slug.d.ts +3 -0
- package/dist/core/AnchorHeading/slug.d.ts.map +1 -1
- package/dist/core/AnchorHeading/slug.js +11 -0
- package/dist/core/Box/Box.d.ts +15 -15
- package/dist/core/Box/Box.d.ts.map +1 -1
- package/dist/core/Box/Box.js +9 -6
- package/dist/core/Box/Box.stories.d.ts +19 -15
- package/dist/core/Box/Box.stories.d.ts.map +1 -1
- package/dist/core/Box/Box.stories.js +21 -4
- package/dist/core/Box/Box.stories.sources.d.ts +8 -0
- package/dist/core/Box/Box.stories.sources.d.ts.map +1 -1
- package/dist/core/Box/Box.stories.sources.js +11 -3
- package/dist/core/Box/Box.types.d.ts +21 -15
- package/dist/core/Box/Box.types.d.ts.map +1 -1
- package/dist/core/Box/elementDuTag.d.ts +2 -0
- package/dist/core/Box/elementDuTag.d.ts.map +1 -0
- package/dist/core/Box/elementDuTag.js +12 -0
- package/dist/core/Code/Code.stories.d.ts +2 -2
- package/dist/core/Code/Code.stories.js +1 -1
- package/dist/core/Code/Code.stories.sources.d.ts.map +1 -1
- package/dist/core/Code/Code.stories.sources.js +1 -1
- package/dist/core/Code/Code.styles.d.ts +2 -2
- package/dist/core/Form/Form.stories.js +1 -1
- package/dist/core/Form/Form.stories.sources.d.ts.map +1 -1
- package/dist/core/Form/Form.stories.sources.js +1 -1
- package/dist/core/Grid/Grid.stories.d.ts +15 -14
- package/dist/core/Grid/Grid.stories.d.ts.map +1 -1
- package/dist/core/Grid/Grid.stories.js +14 -12
- package/dist/core/Grid/Grid.stories.sources.d.ts.map +1 -1
- package/dist/core/Grid/Grid.stories.sources.js +9 -9
- package/dist/core/Heading/Heading.d.ts +8 -0
- package/dist/core/Heading/Heading.d.ts.map +1 -0
- package/dist/core/Heading/Heading.js +15 -0
- package/dist/core/Heading/Heading.stories.d.ts +13 -0
- package/dist/core/Heading/Heading.stories.d.ts.map +1 -0
- package/dist/core/Heading/Heading.stories.js +13 -0
- package/dist/core/Heading/Heading.stories.sources.d.ts +8 -0
- package/dist/core/Heading/Heading.stories.sources.d.ts.map +1 -0
- package/dist/core/Heading/Heading.stories.sources.js +8 -0
- package/dist/core/Heading/index.d.ts +2 -0
- package/dist/core/Heading/index.d.ts.map +1 -0
- package/dist/core/Heading/index.js +1 -0
- package/dist/core/Highlight/Highlight.stories.d.ts +4 -4
- package/dist/core/Highlight/Highlight.styles.d.ts +4 -4
- package/dist/core/Highlight/Highlight.theme.d.ts +1 -3
- package/dist/core/Highlight/Highlight.theme.d.ts.map +1 -1
- package/dist/core/Highlight/Highlight.theme.js +9 -16
- package/dist/core/Map/Map.js +1 -1
- package/dist/core/MarkdownDescription/MarkdownDescription.js +1 -1
- package/dist/core/MarkdownDescription/markdownComponents.d.ts +3 -3
- package/dist/core/MarkdownDescription/markdownComponents.d.ts.map +1 -1
- package/dist/core/MarkdownDescription/markdownComponents.js +14 -12
- package/dist/core/MarkdownDescription/markdownNatif.d.ts.map +1 -1
- package/dist/core/MarkdownDescription/markdownNatif.js +5 -4
- package/dist/core/Page/PageContent.d.ts.map +1 -1
- package/dist/core/Page/PageContent.js +1 -1
- package/dist/core/Page/PageContentScrollable.d.ts +15 -15
- package/dist/core/Page/usePageStatusBar.d.ts.map +1 -1
- package/dist/core/Page/usePageStatusBar.js +3 -3
- package/dist/core/Section/Section.stories.d.ts.map +1 -1
- package/dist/core/Section/Section.stories.js +8 -6
- package/dist/core/Section/Section.stories.sources.d.ts.map +1 -1
- package/dist/core/Section/Section.stories.sources.js +4 -4
- package/dist/core/ThemeProvider/ThemeProvider.stories.d.ts.map +1 -1
- package/dist/core/ThemeProvider/ThemeProvider.stories.js +17 -12
- package/dist/core/ThemeProvider/ThemeProvider.stories.sources.d.ts.map +1 -1
- package/dist/core/ThemeProvider/ThemeProvider.stories.sources.js +2 -2
- package/dist/core/Typography/Typography.stories.d.ts +1 -0
- package/dist/core/Typography/Typography.stories.d.ts.map +1 -1
- package/dist/core/Typography/Typography.stories.js +2 -0
- package/dist/core/Typography/Typography.stories.sources.d.ts +2 -0
- package/dist/core/Typography/Typography.stories.sources.d.ts.map +1 -1
- package/dist/core/Typography/Typography.stories.sources.js +2 -0
- package/dist/core/Typography/Typography.styles.d.ts +1 -1
- package/dist/core/Version/Version.stories.d.ts +1 -1
- package/dist/core/Version/Version.styles.d.ts +1 -1
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +2 -0
- package/dist/core/styleTamagui/flexDuWeb.d.ts +1 -1
- package/dist/core/styleTamagui/flexDuWeb.d.ts.map +1 -1
- package/dist/core/styleTamagui/flexDuWeb.js +4 -3
- package/dist/core/styleTamagui/fondAuSurvol.d.ts +5 -4
- package/dist/core/styleTamagui/fondAuSurvol.d.ts.map +1 -1
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/stories/index.d.ts +1 -0
- package/dist/stories/index.d.ts.map +1 -1
- package/dist/stories/index.js +1 -0
- package/dist/ui/Accordion/Accordion.stories.d.ts +8 -8
- package/dist/ui/Accordion/Accordion.styles.d.ts +8 -8
- package/dist/ui/Accordion/Accordion.styles.js +2 -2
- package/dist/ui/Avatar/Avatar.stories.d.ts +2 -2
- package/dist/ui/Avatar/Avatar.styles.d.ts +2 -2
- package/dist/ui/Badge/Badge.stories.d.ts +12 -12
- package/dist/ui/Badge/Badge.stories.js +3 -3
- package/dist/ui/Badge/Badge.stories.sources.d.ts.map +1 -1
- package/dist/ui/Badge/Badge.stories.sources.js +3 -3
- package/dist/ui/Badge/Badge.styles.d.ts +12 -12
- package/dist/ui/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/ui/BottomSheet/BottomSheet.js +2 -1
- package/dist/ui/BottomSheet/BottomSheet.stories.d.ts +2 -2
- package/dist/ui/BottomSheet/BottomSheet.styles.d.ts +2 -2
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -3
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.js +6 -6
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.sources.d.ts.map +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.sources.js +6 -6
- package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts +3 -3
- package/dist/ui/Button/Button.d.ts +4 -2
- package/dist/ui/Button/Button.d.ts.map +1 -1
- package/dist/ui/Button/Button.stories.d.ts +49 -49
- package/dist/ui/Button/Button.stories.js +8 -8
- package/dist/ui/Button/Button.stories.sources.d.ts.map +1 -1
- package/dist/ui/Button/Button.stories.sources.js +8 -8
- package/dist/ui/Button/Button.styles.d.ts +48 -48
- package/dist/ui/Button/buttonIconStyling.d.ts +4 -20
- package/dist/ui/Button/buttonIconStyling.d.ts.map +1 -1
- package/dist/ui/Card/Card.stories.d.ts +5 -3
- package/dist/ui/Card/Card.stories.d.ts.map +1 -1
- package/dist/ui/Card/Card.stories.js +8 -1
- package/dist/ui/Card/Card.stories.sources.d.ts +4 -0
- package/dist/ui/Card/Card.stories.sources.d.ts.map +1 -1
- package/dist/ui/Card/Card.stories.sources.js +5 -1
- package/dist/ui/Card/Card.styles.d.ts +2 -2
- package/dist/ui/Card/CardHeader.styles.d.ts +3 -3
- package/dist/ui/Card/CardSection.styles.d.ts +3 -3
- package/dist/ui/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/ui/Checkbox/Checkbox.js +1 -3
- package/dist/ui/Checkbox/Checkbox.stories.d.ts +10 -10
- package/dist/ui/Checkbox/Checkbox.stories.js +2 -2
- package/dist/ui/Checkbox/Checkbox.stories.sources.d.ts.map +1 -1
- package/dist/ui/Checkbox/Checkbox.stories.sources.js +2 -2
- package/dist/ui/Checkbox/Checkbox.styles.d.ts +10 -10
- package/dist/ui/Checkbox/Checkbox.styles.js +6 -6
- package/dist/ui/Counter/Counter.stories.d.ts +3 -3
- package/dist/ui/Counter/Counter.stories.js +1 -1
- package/dist/ui/Counter/Counter.stories.sources.d.ts.map +1 -1
- package/dist/ui/Counter/Counter.stories.sources.js +1 -1
- package/dist/ui/Counter/Counter.styles.d.ts +3 -3
- package/dist/ui/DataTable/DataTable.stories.d.ts +11 -11
- package/dist/ui/DataTable/DataTable.styles.d.ts +11 -11
- package/dist/ui/DateInput/DateInput.d.ts +2 -2
- package/dist/ui/DateInput/DateInput.d.ts.map +1 -1
- package/dist/ui/DateInput/DateInput.ios.d.ts +2 -1
- package/dist/ui/DateInput/DateInput.ios.d.ts.map +1 -1
- package/dist/ui/DateInput/DateInput.stories.d.ts +1 -1
- package/dist/ui/DateInput/DateInput.stories.js +2 -2
- package/dist/ui/DateInput/DateInput.stories.sources.d.ts.map +1 -1
- package/dist/ui/DateInput/DateInput.stories.sources.js +2 -2
- package/dist/ui/Divider/Divider.stories.d.ts +1 -1
- package/dist/ui/Divider/Divider.stories.d.ts.map +1 -1
- package/dist/ui/Divider/Divider.stories.js +1 -1
- package/dist/ui/Divider/Divider.stories.sources.d.ts.map +1 -1
- package/dist/ui/Divider/Divider.stories.sources.js +1 -1
- package/dist/ui/Divider/Divider.styles.d.ts +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +11 -11
- package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.js +2 -2
- package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.js +2 -2
- package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts +11 -11
- package/dist/ui/DocumentViewer/chargementDePdfJs.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/chargementDePdfJs.js +3 -1
- package/dist/ui/DurationInput/DurationInput.d.ts +2 -1
- package/dist/ui/DurationInput/DurationInput.d.ts.map +1 -1
- package/dist/ui/DurationInput/DurationInput.stories.d.ts +1 -1
- package/dist/ui/DurationInput/DurationInput.stories.js +2 -2
- package/dist/ui/DurationInput/DurationInput.stories.sources.d.ts.map +1 -1
- package/dist/ui/DurationInput/DurationInput.stories.sources.js +2 -2
- package/dist/ui/EmptyState/EmptyState.stories.d.ts +4 -4
- package/dist/ui/EmptyState/EmptyState.styles.d.ts +4 -4
- package/dist/ui/FileDropZone/FileDropZone.stories.d.ts +4 -4
- package/dist/ui/FileDropZone/FileDropZone.stories.js +3 -3
- package/dist/ui/FileDropZone/FileDropZone.stories.sources.d.ts.map +1 -1
- package/dist/ui/FileDropZone/FileDropZone.stories.sources.js +3 -3
- package/dist/ui/FileDropZone/FileDropZone.styles.d.ts +4 -4
- package/dist/ui/FilterDate/FilterDate.stories.d.ts +1 -1
- package/dist/ui/FilterDate/FilterDate.styles.d.ts +1 -1
- package/dist/ui/FormControl/ChampHHMM.d.ts +2 -2
- package/dist/ui/FormControl/ChampHHMM.d.ts.map +1 -1
- package/dist/ui/FormControl/FormControl.d.ts +2 -2
- package/dist/ui/FormControl/FormControl.d.ts.map +1 -1
- package/dist/ui/FormControl/FormControl.stories.d.ts +18 -18
- package/dist/ui/FormControl/FormControl.stories.js +4 -4
- package/dist/ui/FormControl/FormControl.stories.sources.d.ts.map +1 -1
- package/dist/ui/FormControl/FormControl.stories.sources.js +4 -4
- package/dist/ui/FormControl/FormControl.styles.d.ts +17 -17
- package/dist/ui/FormControl/NumberInput.d.ts +2 -1
- package/dist/ui/FormControl/NumberInput.d.ts.map +1 -1
- package/dist/ui/FormControl/NumberInput.stories.d.ts +18 -18
- package/dist/ui/FormControl/NumberInput.stories.d.ts.map +1 -1
- package/dist/ui/FormControl/NumberInput.stories.js +2 -1
- package/dist/ui/FormControl/NumberInput.stories.sources.d.ts.map +1 -1
- package/dist/ui/FormControl/NumberInput.stories.sources.js +1 -1
- package/dist/ui/FormControl/OtpInput.stories.d.ts +5 -5
- package/dist/ui/FormControl/OtpInput.stories.js +1 -1
- package/dist/ui/FormControl/OtpInput.stories.sources.d.ts.map +1 -1
- package/dist/ui/FormControl/OtpInput.stories.sources.js +1 -1
- package/dist/ui/FormControl/OtpInput.styles.d.ts +5 -5
- package/dist/ui/FormControl/OtpInput.styles.js +2 -2
- package/dist/ui/FormControl/TextInput.d.ts +1 -1
- package/dist/ui/FormControl/TextInput.d.ts.map +1 -1
- package/dist/ui/FormControl/TextInput.stories.d.ts +18 -18
- package/dist/ui/FormControl/TextInput.types.d.ts +3 -2
- package/dist/ui/FormControl/TextInput.types.d.ts.map +1 -1
- package/dist/ui/FormControl/TextInputInline.d.ts +2 -2
- package/dist/ui/FormControl/TextInputInline.d.ts.map +1 -1
- package/dist/ui/FormControl/TextInputMirror.d.ts +2 -2
- package/dist/ui/FormControl/TextInputMirror.d.ts.map +1 -1
- package/dist/ui/FormControl/TextInputModal.d.ts +2 -2
- package/dist/ui/FormControl/TextInputModal.d.ts.map +1 -1
- package/dist/ui/FormControl/TextInputPassword.d.ts +2 -1
- package/dist/ui/FormControl/TextInputPassword.d.ts.map +1 -1
- package/dist/ui/FormControl/fieldBorderState.d.ts +1 -1
- package/dist/ui/FormControl/fieldBorderState.d.ts.map +1 -1
- package/dist/ui/FormControl/otpTheme.d.ts +1 -1
- package/dist/ui/FormControl/otpTheme.d.ts.map +1 -1
- package/dist/ui/FormControl/otpTheme.js +0 -3
- package/dist/ui/FormControl/textInputStyles.d.ts +52 -0
- package/dist/ui/FormControl/textInputStyles.d.ts.map +1 -1
- package/dist/ui/FormControl/useTextInputModal.d.ts +4 -3
- package/dist/ui/FormControl/useTextInputModal.d.ts.map +1 -1
- package/dist/ui/Header/Header.stories.d.ts +4 -4
- package/dist/ui/Header/Header.styles.d.ts +4 -4
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.d.ts +2 -2
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.js +1 -1
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.d.ts.map +1 -1
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.js +1 -1
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.styles.d.ts +2 -2
- package/dist/ui/Link/Link.stories.d.ts +1 -1
- package/dist/ui/Link/Link.styles.d.ts +1 -1
- package/dist/ui/ListItem/ListItem.stories.d.ts +6 -6
- package/dist/ui/ListItem/ListItem.styles.d.ts +6 -6
- package/dist/ui/LucideIcon/LucideIcon.stories.d.ts.map +1 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.js +2 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.sources.d.ts.map +1 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.sources.js +1 -1
- package/dist/ui/LucideIcon/catalogueLucide.d.ts +36 -0
- package/dist/ui/LucideIcon/catalogueLucide.d.ts.map +1 -1
- package/dist/ui/LucideIcon/vendor/lab.js +1 -1
- package/dist/ui/LucideIcon/vendor/lucide.d.ts +1936 -1780
- package/dist/ui/LucideIcon/vendor/lucide.js +3 -3
- package/dist/ui/PageHeader/PageHeader.stories.d.ts +1 -1
- package/dist/ui/PageHeader/PageHeader.styles.d.ts +1 -1
- package/dist/ui/Popover/Popover.js +1 -1
- package/dist/ui/Popover/Popover.stories.d.ts +6 -6
- package/dist/ui/Popover/Popover.styles.d.ts +6 -6
- package/dist/ui/PriceInput/PriceInput.d.ts +2 -3
- package/dist/ui/PriceInput/PriceInput.d.ts.map +1 -1
- package/dist/ui/PriceInput/PriceInput.js +2 -2
- package/dist/ui/PriceInput/PriceInput.stories.d.ts +22 -6
- package/dist/ui/PriceInput/PriceInput.stories.d.ts.map +1 -1
- package/dist/ui/PriceInput/PriceInput.stories.js +2 -1
- package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts +2 -0
- package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts.map +1 -1
- package/dist/ui/PriceInput/PriceInput.stories.sources.js +3 -1
- package/dist/ui/PriceInput/PriceInput.styles.d.ts +20 -5
- package/dist/ui/PriceInput/PriceInput.styles.d.ts.map +1 -1
- package/dist/ui/PriceInput/PriceInput.styles.js +20 -6
- package/dist/ui/PriceInput/PriceInput.web.d.ts +0 -1
- package/dist/ui/PriceInput/PriceInput.web.d.ts.map +1 -1
- package/dist/ui/PriceInput/PriceInput.web.js +9 -10
- package/dist/ui/PriceInput/cadrePrix.d.ts +43 -0
- package/dist/ui/PriceInput/cadrePrix.d.ts.map +1 -0
- package/dist/ui/PriceInput/cadrePrix.js +9 -0
- package/dist/ui/PriceInput/largeurDuChamp.d.ts +2 -0
- package/dist/ui/PriceInput/largeurDuChamp.d.ts.map +1 -0
- package/dist/ui/PriceInput/largeurDuChamp.js +2 -0
- package/dist/ui/PriceInput/useSaisieMontant.d.ts +5 -0
- package/dist/ui/PriceInput/useSaisieMontant.d.ts.map +1 -0
- package/dist/ui/PriceInput/useSaisieMontant.js +19 -0
- package/dist/ui/ProgressBar/ProgressBar.stories.d.ts +7 -7
- package/dist/ui/ProgressBar/ProgressBar.styles.d.ts +7 -7
- package/dist/ui/RadioGroup/RadioGroup.stories.d.ts +8 -8
- package/dist/ui/RadioGroup/RadioGroup.stories.js +2 -2
- package/dist/ui/RadioGroup/RadioGroup.stories.sources.d.ts.map +1 -1
- package/dist/ui/RadioGroup/RadioGroup.stories.sources.js +2 -2
- package/dist/ui/RadioGroup/RadioGroup.styles.d.ts +8 -8
- package/dist/ui/RadioGroup/RadioGroup.styles.js +4 -4
- package/dist/ui/RadioGroup/RadioGroupCard.js +1 -1
- package/dist/ui/RadioGroup/RadioGroupItem.styles.d.ts +1 -1
- package/dist/ui/ResourceList/ResourceList.stories.d.ts +2 -2
- package/dist/ui/ResourceList/ResourceList.styles.d.ts +2 -2
- package/dist/ui/ResourceList/ResourceListDivider.js +1 -1
- package/dist/ui/Select/Select.stories.d.ts +8 -8
- package/dist/ui/Select/Select.stories.js +12 -12
- package/dist/ui/Select/Select.stories.sources.d.ts.map +1 -1
- package/dist/ui/Select/Select.stories.sources.js +11 -11
- package/dist/ui/Select/Select.styles.d.ts +8 -8
- package/dist/ui/Select/SelectBottomSheet.d.ts.map +1 -1
- package/dist/ui/Select/SelectBottomSheet.js +3 -3
- package/dist/ui/Select/SelectList.styles.d.ts +14 -14
- package/dist/ui/Select/SelectList.styles.js +3 -3
- package/dist/ui/Select/selectControlStyle.d.ts +130 -2
- package/dist/ui/Select/selectControlStyle.d.ts.map +1 -1
- package/dist/ui/Select/selectItemStyle.d.ts +5 -5
- package/dist/ui/Select/selectTriggerStyle.d.ts +53 -1
- package/dist/ui/Select/selectTriggerStyle.d.ts.map +1 -1
- package/dist/ui/Sidebar/Sidebar.stories.d.ts +20 -20
- package/dist/ui/Sidebar/Sidebar.stories.d.ts.map +1 -1
- package/dist/ui/Sidebar/Sidebar.stories.js +1 -1
- package/dist/ui/Sidebar/Sidebar.stories.sources.d.ts.map +1 -1
- package/dist/ui/Sidebar/Sidebar.stories.sources.js +1 -1
- package/dist/ui/Sidebar/Sidebar.styles.d.ts +20 -20
- package/dist/ui/Sidebar/Sidebar.styles.js +3 -3
- package/dist/ui/Sidebar/SidebarHeader.d.ts.map +1 -1
- package/dist/ui/Sidebar/SidebarHeader.js +4 -1
- package/dist/ui/Sidebar/SidebarItem.d.ts +8 -2
- package/dist/ui/Sidebar/SidebarItem.d.ts.map +1 -1
- package/dist/ui/Sidebar/SidebarItem.js +5 -2
- package/dist/ui/Signature/Signature.js +1 -1
- package/dist/ui/Signature/Signature.stories.d.ts +2 -2
- package/dist/ui/Signature/Signature.styles.d.ts +2 -2
- package/dist/ui/Skeleton/Skeleton.js +1 -1
- package/dist/ui/Skeleton/Skeleton.stories.d.ts +1 -1
- package/dist/ui/Skeleton/Skeleton.stories.d.ts.map +1 -1
- package/dist/ui/Skeleton/Skeleton.stories.js +3 -3
- package/dist/ui/Skeleton/Skeleton.stories.sources.d.ts.map +1 -1
- package/dist/ui/Skeleton/Skeleton.stories.sources.js +3 -3
- package/dist/ui/Skeleton/Skeleton.styles.d.ts +1 -1
- package/dist/ui/Spinner/Spinner.stories.d.ts +2 -2
- package/dist/ui/Spinner/Spinner.stories.js +2 -2
- package/dist/ui/Spinner/Spinner.stories.sources.d.ts.map +1 -1
- package/dist/ui/Spinner/Spinner.stories.sources.js +2 -2
- package/dist/ui/Spinner/Spinner.styles.d.ts +2 -2
- package/dist/ui/Spinner/useRotation.d.ts +3 -1
- package/dist/ui/Spinner/useRotation.d.ts.map +1 -1
- package/dist/ui/Spinner/useSpinner.d.ts +3 -3
- package/dist/ui/Switch/Switch.d.ts.map +1 -1
- package/dist/ui/Switch/Switch.js +2 -3
- package/dist/ui/Switch/Switch.stories.d.ts +9 -9
- package/dist/ui/Switch/Switch.stories.js +1 -1
- package/dist/ui/Switch/Switch.stories.sources.d.ts.map +1 -1
- package/dist/ui/Switch/Switch.stories.sources.js +1 -1
- package/dist/ui/Switch/Switch.styles.d.ts +9 -9
- package/dist/ui/Tabs/Tabs.stories.d.ts +6 -5
- package/dist/ui/Tabs/Tabs.stories.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.stories.js +3 -1
- package/dist/ui/Tabs/Tabs.stories.sources.d.ts +2 -0
- package/dist/ui/Tabs/Tabs.stories.sources.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.stories.sources.js +3 -1
- package/dist/ui/Tabs/Tabs.styles.d.ts +5 -5
- package/dist/ui/Tag/Tag.stories.d.ts +7 -7
- package/dist/ui/Tag/Tag.stories.js +5 -5
- package/dist/ui/Tag/Tag.stories.sources.d.ts.map +1 -1
- package/dist/ui/Tag/Tag.stories.sources.js +5 -5
- package/dist/ui/Tag/Tag.styles.d.ts +7 -7
- package/dist/ui/Tag/tagStyling.d.ts +2 -2
- package/dist/ui/TextInputArray/TextInputArray.js +1 -1
- package/dist/ui/TextareaInput/TextareaInput.d.ts +2 -2
- package/dist/ui/TextareaInput/TextareaInput.d.ts.map +1 -1
- package/dist/ui/TextareaInput/TextareaInput.stories.d.ts +1 -1
- package/dist/ui/TextareaInput/TextareaInput.stories.js +1 -1
- package/dist/ui/TextareaInput/TextareaInput.stories.sources.d.ts.map +1 -1
- package/dist/ui/TextareaInput/TextareaInput.stories.sources.js +1 -1
- package/dist/ui/TimeInput/TimeInput.d.ts +2 -1
- package/dist/ui/TimeInput/TimeInput.d.ts.map +1 -1
- package/dist/ui/TimeInput/TimeInput.stories.d.ts +1 -1
- package/dist/ui/TimeInput/TimeInput.stories.js +2 -2
- package/dist/ui/TimeInput/TimeInput.stories.sources.d.ts.map +1 -1
- package/dist/ui/TimeInput/TimeInput.stories.sources.js +2 -2
- package/dist/ui/Toast/Toast.stories.d.ts +11 -11
- package/dist/ui/Toast/Toast.stories.js +2 -2
- package/dist/ui/Toast/Toast.stories.sources.d.ts.map +1 -1
- package/dist/ui/Toast/Toast.stories.sources.js +2 -2
- package/dist/ui/Toast/Toast.styles.d.ts +11 -11
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts +5 -53
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts.map +1 -1
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.styles.d.ts +4 -4
- package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts +3 -3
- package/dist/ui/ToolbarTop/ToolbarTop.styles.d.ts +3 -3
- package/dist/ui/ToolbarTop/toolbarTopStyling.d.ts +4 -4
- package/package.json +24 -24
- package/dist/ui/PriceInput/PriceInput.css +0 -9
|
@@ -13,7 +13,7 @@ export default {
|
|
|
13
13
|
styleFn: useStyles,
|
|
14
14
|
};
|
|
15
15
|
export const DocumentImageEx = () => (_jsx(Box, { width: "100%", maxW: 500, height: 500, children: _jsx(DocumentViewer, { title: "Document image", type: "image", source: "https://picsum.photos/1000/2000", height: "100%" }) }));
|
|
16
|
-
export const DocumentPdf = () => (_jsx(Box, { width: "100%", height: 400, maxW: 500, children: _jsx(DocumentViewer, { title: "Document PDF", type: "pdf", source: "
|
|
16
|
+
export const DocumentPdf = () => (_jsx(Box, { width: "100%", height: 400, maxW: 500, children: _jsx(DocumentViewer, { title: "Document PDF", type: "pdf", source: "/document-exemple.pdf", height: "100%" }) }));
|
|
17
17
|
export const DocumentPdfError = () => (_jsx(Box, { width: "100%", height: 400, maxW: 500, children: _jsx(DocumentViewer, { title: "Document PDF en erreur", type: "pdf", source: "https://example.com/document-inexistant.pdf", height: "100%" }) }));
|
|
18
|
-
export const WithChildren = () => (_jsx(Box, { width: "100%", height: 600, children: _jsx(DocumentViewer, { title: "Document PDF", type: "pdf", source: "
|
|
18
|
+
export const WithChildren = () => (_jsx(Box, { width: "100%", height: 600, children: _jsx(DocumentViewer, { title: "Document PDF", type: "pdf", source: "/document-exemple.pdf", height: "100%", children: _jsx(Box, { p: '2W', children: _jsx(Typography, { children: "Contenu enfant" }) }) }) }));
|
|
19
19
|
export * as Sources from './DocumentViewer.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentViewer.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/DocumentViewer/DocumentViewer.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,cAA0O,CAAC;AAEvQ,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"DocumentViewer.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/DocumentViewer/DocumentViewer.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,cAA0O,CAAC;AAEvQ,eAAO,MAAM,WAAW,cAAwN,CAAC;AAEjP,eAAO,MAAM,gBAAgB,cAA8R,CAAC;AAE5T,eAAO,MAAM,YAAY,cAAwT,CAAC;AAElV,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/ui/DocumentViewer/DocumentViewer.stories.tsx
|
|
3
3
|
export const DocumentImageEx = () => "export const DocumentImageEx = () => (\n <Box width=\"100%\" maxW={500} height={500}>\n <DocumentViewer title=\"Document image\" type=\"image\" source=\"https://picsum.photos/1000/2000\" height=\"100%\" />\n </Box>\n);";
|
|
4
|
-
export const DocumentPdf = () => "export const DocumentPdf = () => (\n <Box width=\"100%\" height={400} maxW={500}>\n <DocumentViewer
|
|
4
|
+
export const DocumentPdf = () => "export const DocumentPdf = () => (\n <Box width=\"100%\" height={400} maxW={500}>\n <DocumentViewer title=\"Document PDF\" type=\"pdf\" source=\"/document-exemple.pdf\" height=\"100%\" />\n </Box>\n);";
|
|
5
5
|
export const DocumentPdfError = () => "export const DocumentPdfError = () => (\n <Box width=\"100%\" height={400} maxW={500}>\n <DocumentViewer\n title=\"Document PDF en erreur\"\n type=\"pdf\"\n source=\"https://example.com/document-inexistant.pdf\"\n height=\"100%\"\n />\n </Box>\n);";
|
|
6
|
-
export const WithChildren = () => "export const WithChildren = () => (\n <Box width=\"100%\" height={600}>\n <DocumentViewer
|
|
6
|
+
export const WithChildren = () => "export const WithChildren = () => (\n <Box width=\"100%\" height={600}>\n <DocumentViewer title=\"Document PDF\" type=\"pdf\" source=\"/document-exemple.pdf\" height=\"100%\">\n <Box p={'2W'}>\n <Typography>Contenu enfant</Typography>\n </Box>\n </DocumentViewer>\n </Box>\n);";
|
|
7
7
|
export const storySources = {
|
|
8
8
|
DocumentImageEx,
|
|
9
9
|
DocumentPdf,
|
|
@@ -37,10 +37,10 @@ export declare const useStyles: () => {
|
|
|
37
37
|
display: "flex";
|
|
38
38
|
alignItems: "center";
|
|
39
39
|
justifyContent: "center";
|
|
40
|
-
backgroundColor:
|
|
40
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
41
41
|
};
|
|
42
42
|
viewerPdfErrorLabel: {
|
|
43
|
-
color:
|
|
43
|
+
color: import("@alveole/theme").ThemeColor;
|
|
44
44
|
userSelect: "none";
|
|
45
45
|
textAlign: "center";
|
|
46
46
|
fontSize: 14;
|
|
@@ -76,13 +76,13 @@ export declare const useStyles: () => {
|
|
|
76
76
|
flexDirection: "column";
|
|
77
77
|
flex: number;
|
|
78
78
|
padding: string | number;
|
|
79
|
-
borderColor:
|
|
79
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
80
80
|
borderWidth: number;
|
|
81
81
|
borderStyle: "solid";
|
|
82
82
|
borderTopWidth: number;
|
|
83
83
|
borderBottomLeftRadius: import("@alveole/theme").Radius;
|
|
84
84
|
borderBottomRightRadius: import("@alveole/theme").Radius;
|
|
85
|
-
backgroundColor:
|
|
85
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
86
86
|
overflow: "hidden";
|
|
87
87
|
};
|
|
88
88
|
children: {
|
|
@@ -94,23 +94,23 @@ export declare const useStyles: () => {
|
|
|
94
94
|
minWidth: number;
|
|
95
95
|
flexShrink: number;
|
|
96
96
|
position: "relative";
|
|
97
|
-
borderColor:
|
|
97
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
98
98
|
borderWidth: number;
|
|
99
99
|
borderStyle: "solid";
|
|
100
100
|
borderLeft: number;
|
|
101
101
|
borderTopRightRadius: import("@alveole/theme").Radius;
|
|
102
102
|
borderBottomRightRadius: import("@alveole/theme").Radius;
|
|
103
|
-
backgroundColor:
|
|
103
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
104
104
|
overflow: "auto";
|
|
105
105
|
};
|
|
106
106
|
toolbar: {
|
|
107
107
|
padding: string | number;
|
|
108
|
-
borderColor:
|
|
108
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
109
109
|
borderWidth: number;
|
|
110
110
|
borderStyle: "solid";
|
|
111
111
|
borderTopLeftRadius: import("@alveole/theme").Radius;
|
|
112
112
|
borderTopRightRadius: import("@alveole/theme").Radius;
|
|
113
|
-
backgroundColor:
|
|
113
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
114
114
|
display: "flex";
|
|
115
115
|
flexDirection: "row";
|
|
116
116
|
gap: string | number;
|
|
@@ -123,7 +123,7 @@ export declare const useStyles: () => {
|
|
|
123
123
|
justifyContent: "flex-end";
|
|
124
124
|
};
|
|
125
125
|
toolbarTitle: {
|
|
126
|
-
color:
|
|
126
|
+
color: import("@alveole/theme").ThemeColor;
|
|
127
127
|
paddingLeft: string | number;
|
|
128
128
|
marginTop: string;
|
|
129
129
|
marginBottom: string;
|
|
@@ -135,7 +135,7 @@ export declare const useStyles: () => {
|
|
|
135
135
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
136
136
|
};
|
|
137
137
|
toolbarState: {
|
|
138
|
-
color:
|
|
138
|
+
color: import("@alveole/theme").ThemeColor;
|
|
139
139
|
userSelect: "none";
|
|
140
140
|
fontVariant: "tabular-nums";
|
|
141
141
|
fontSize: 14;
|
|
@@ -147,7 +147,7 @@ export declare const useStyles: () => {
|
|
|
147
147
|
toolbarDivider: {
|
|
148
148
|
width: number;
|
|
149
149
|
height: "50%";
|
|
150
|
-
backgroundColor:
|
|
150
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
151
151
|
marginTop: string;
|
|
152
152
|
marginBottom: string;
|
|
153
153
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chargementDePdfJs.d.ts","sourceRoot":"","sources":["../../../src/ui/DocumentViewer/chargementDePdfJs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;QACjC,WAAW,EAAE,CAAC,OAAO,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,sBAAsB,CAAA;SAAE,KAAK;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QACjH,MAAM,EAAE,CAAC,OAAO,EAAE;YAChB,aAAa,EAAE,wBAAwB,CAAC;YACxC,QAAQ,EAAE;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAA;aAAE,CAAC;YAC5C,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;SAC9D,KAAK;YAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;SAAE,GAAG,IAAI,CAAC;QAC7D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC,CAAC;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,mBAAmB,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK;QACjD,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;QACvC,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,EAAE,UAAU;IAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,WAMxG,CAAC;
|
|
1
|
+
{"version":3,"file":"chargementDePdfJs.d.ts","sourceRoot":"","sources":["../../../src/ui/DocumentViewer/chargementDePdfJs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;QACjC,WAAW,EAAE,CAAC,OAAO,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,sBAAsB,CAAA;SAAE,KAAK;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QACjH,MAAM,EAAE,CAAC,OAAO,EAAE;YAChB,aAAa,EAAE,wBAAwB,CAAC;YACxC,QAAQ,EAAE;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAA;aAAE,CAAC;YAC5C,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;SAC9D,KAAK;YAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;SAAE,GAAG,IAAI,CAAC;QAC7D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC,CAAC;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,mBAAmB,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK;QACjD,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;QACvC,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,EAAE,UAAU;IAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,WAMxG,CAAC;AAiBF,2FAA2F;AAC3F,eAAO,MAAM,aAAa,GAAI,QAAQ,OAAO,KAAG,WAK/C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,4BAoBlB,CAAC"}
|
|
@@ -14,7 +14,9 @@ const getPdfJsAssetUrl = (filename) => {
|
|
|
14
14
|
return urlDeLAssetPdfJs(filename, { scriptUrl: expoScript?.src ?? null, origin: window.location.origin });
|
|
15
15
|
};
|
|
16
16
|
const estUnObjet = (valeur) => typeof valeur === 'object' && valeur !== null;
|
|
17
|
-
|
|
17
|
+
// Dans pdf.js 6 (la version embarquée), `GlobalWorkerOptions` est une classe, plus un objet
|
|
18
|
+
const estDesOptionsDeWorker = (valeur) => estUnObjet(valeur) || typeof valeur === 'function';
|
|
19
|
+
const estPdfJs = (valeur) => estUnObjet(valeur) && estDesOptionsDeWorker(valeur.GlobalWorkerOptions) && typeof valeur.getDocument === 'function';
|
|
18
20
|
/** pdf.js tel que l'import dynamique le livre : un module que TypeScript n'a jamais vu. */
|
|
19
21
|
export const pdfJsDuModule = (module) => {
|
|
20
22
|
if (estUnObjet(module) && estPdfJs(module.default))
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { TextInputElement } from '../FormControl';
|
|
2
3
|
import { ChampHHMMProps } from '../FormControl/ChampHHMM';
|
|
3
4
|
export type DurationInputProps = ChampHHMMProps;
|
|
4
5
|
export declare const DurationInput: React.ForwardRefExoticComponent<import("..").FormControlCaptionProps & {
|
|
@@ -6,5 +7,5 @@ export declare const DurationInput: React.ForwardRefExoticComponent<import("..")
|
|
|
6
7
|
onChange?: (value: string) => void;
|
|
7
8
|
onBlur?: () => void;
|
|
8
9
|
disabled?: boolean;
|
|
9
|
-
} & React.RefAttributes<
|
|
10
|
+
} & React.RefAttributes<TextInputElement>>;
|
|
10
11
|
//# sourceMappingURL=DurationInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DurationInput.d.ts","sourceRoot":"","sources":["../../../src/ui/DurationInput/DurationInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DurationInput.d.ts","sourceRoot":"","sources":["../../../src/ui/DurationInput/DurationInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAgB,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAa,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAErE,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAEhD,eAAO,MAAM,aAAa;;;;;0CAExB,CAAC"}
|
|
@@ -9,7 +9,7 @@ declare const _default: {
|
|
|
9
9
|
onChange?: (value: string) => void;
|
|
10
10
|
onBlur?: () => void;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
} & import("react").RefAttributes<import("
|
|
12
|
+
} & import("react").RefAttributes<import("..").TextInputElement>>;
|
|
13
13
|
styleFn: () => string;
|
|
14
14
|
};
|
|
15
15
|
export default _default;
|
|
@@ -26,6 +26,6 @@ Le champ est nu : on le place dans un FormControl pour son libellé, son aide et
|
|
|
26
26
|
component: DurationInput,
|
|
27
27
|
styleFn: () => 'Aucun style appliqué',
|
|
28
28
|
};
|
|
29
|
-
export const Default = () => (_jsx(Box, { width: "100%", p:
|
|
30
|
-
export const States = () => (_jsx(Box, { width: "100%", p:
|
|
29
|
+
export const Default = () => (_jsx(Box, { width: "100%", p: "1W", children: _jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Dur\u00E9e", children: _jsx(DurationInput, {}) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Dur\u00E9e", children: _jsx(DurationInput, { value: "06:15" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Dur\u00E9e", hint: "Temps pass\u00E9 sur le terrain", children: _jsx(DurationInput, { value: "01:30" }) }) })] }) }));
|
|
30
|
+
export const States = () => (_jsx(Box, { width: "100%", p: "1W", children: _jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Erreur", error: "Heure invalide (minutes 00\u201359)", children: _jsx(DurationInput, { value: "25:70", error: "Heure invalide (minutes 00\u201359)" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Succ\u00E8s", success: "Enregistr\u00E9", children: _jsx(DurationInput, { value: "06:15", success: "Enregistr\u00E9" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "D\u00E9sactiv\u00E9", disabled: true, children: _jsx(DurationInput, { value: "06:15", disabled: true }) }) })] }) }));
|
|
31
31
|
export * as Sources from './DurationInput.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DurationInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/DurationInput/DurationInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"DurationInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/DurationInput/DurationInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA2rB,CAAC;AAEhtB,eAAO,MAAM,MAAM,cAA8zB,CAAC;AAEl1B,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/ui/DurationInput/DurationInput.stories.tsx
|
|
3
|
-
export const Default = () => "export const Default = () => (\n <Box width=\"100%\" p
|
|
4
|
-
export const States = () => "export const States = () => (\n <Box width=\"100%\" p
|
|
3
|
+
export const Default = () => "export const Default = () => (\n <Box width=\"100%\" p=\"1W\">\n <Grid gap=\"1W\">\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Durée\">\n <DurationInput />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Durée\">\n <DurationInput value=\"06:15\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Durée\" hint=\"Temps passé sur le terrain\">\n <DurationInput value=\"01:30\" />\n </FormControl>\n </Grid.Column>\n </Grid>\n </Box>\n);";
|
|
4
|
+
export const States = () => "export const States = () => (\n <Box width=\"100%\" p=\"1W\">\n <Grid gap=\"1W\">\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Erreur\" error=\"Heure invalide (minutes 00–59)\">\n <DurationInput value=\"25:70\" error=\"Heure invalide (minutes 00–59)\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Succès\" success=\"Enregistré\">\n <DurationInput value=\"06:15\" success=\"Enregistré\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Désactivé\" disabled>\n <DurationInput value=\"06:15\" disabled />\n </FormControl>\n </Grid.Column>\n </Grid>\n </Box>\n);";
|
|
5
5
|
export const storySources = {
|
|
6
6
|
Default,
|
|
7
7
|
States,
|
|
@@ -32,8 +32,8 @@ declare const _default: {
|
|
|
32
32
|
display: "flex";
|
|
33
33
|
alignItems: "center";
|
|
34
34
|
justifyContent: "center";
|
|
35
|
-
color:
|
|
36
|
-
backgroundColor:
|
|
35
|
+
color: import("@alveole/theme").ThemeColor;
|
|
36
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
37
37
|
borderRadius: import("@alveole/theme").Radius;
|
|
38
38
|
padding: string | number;
|
|
39
39
|
};
|
|
@@ -51,7 +51,7 @@ declare const _default: {
|
|
|
51
51
|
letterSpacing: 0;
|
|
52
52
|
fontFamily: string;
|
|
53
53
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
54
|
-
color:
|
|
54
|
+
color: import("@alveole/theme").ThemeColor;
|
|
55
55
|
};
|
|
56
56
|
description: {
|
|
57
57
|
textAlign: "center";
|
|
@@ -60,7 +60,7 @@ declare const _default: {
|
|
|
60
60
|
letterSpacing: 0;
|
|
61
61
|
fontFamily: string;
|
|
62
62
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
63
|
-
color:
|
|
63
|
+
color: import("@alveole/theme").ThemeColor;
|
|
64
64
|
};
|
|
65
65
|
footer: {
|
|
66
66
|
width: "100%" | undefined;
|
|
@@ -25,8 +25,8 @@ export declare const useStyles: () => {
|
|
|
25
25
|
display: "flex";
|
|
26
26
|
alignItems: "center";
|
|
27
27
|
justifyContent: "center";
|
|
28
|
-
color:
|
|
29
|
-
backgroundColor:
|
|
28
|
+
color: import("@alveole/theme").ThemeColor;
|
|
29
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
30
30
|
borderRadius: import("@alveole/theme").Radius;
|
|
31
31
|
padding: string | number;
|
|
32
32
|
};
|
|
@@ -44,7 +44,7 @@ export declare const useStyles: () => {
|
|
|
44
44
|
letterSpacing: 0;
|
|
45
45
|
fontFamily: string;
|
|
46
46
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
47
|
-
color:
|
|
47
|
+
color: import("@alveole/theme").ThemeColor;
|
|
48
48
|
};
|
|
49
49
|
description: {
|
|
50
50
|
textAlign: "center";
|
|
@@ -53,7 +53,7 @@ export declare const useStyles: () => {
|
|
|
53
53
|
letterSpacing: 0;
|
|
54
54
|
fontFamily: string;
|
|
55
55
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
56
|
-
color:
|
|
56
|
+
color: import("@alveole/theme").ThemeColor;
|
|
57
57
|
};
|
|
58
58
|
footer: {
|
|
59
59
|
width: "100%" | undefined;
|
|
@@ -17,15 +17,15 @@ declare const _default: {
|
|
|
17
17
|
left: number;
|
|
18
18
|
borderWidth: number;
|
|
19
19
|
borderStyle: "dashed";
|
|
20
|
-
borderColor:
|
|
20
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
21
21
|
borderRadius: import("@alveole/theme").Radius;
|
|
22
|
-
backgroundColor:
|
|
22
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
23
23
|
alignItems: "center";
|
|
24
24
|
justifyContent: "center";
|
|
25
25
|
pointerEvents: "none";
|
|
26
26
|
};
|
|
27
27
|
pastille: {
|
|
28
|
-
backgroundColor:
|
|
28
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
29
29
|
borderRadius: import("@alveole/theme").Radius;
|
|
30
30
|
paddingLeft: string | number;
|
|
31
31
|
paddingRight: string | number;
|
|
@@ -33,7 +33,7 @@ declare const _default: {
|
|
|
33
33
|
paddingBottom: string | number;
|
|
34
34
|
};
|
|
35
35
|
message: {
|
|
36
|
-
color:
|
|
36
|
+
color: import("@alveole/theme").ThemeColor;
|
|
37
37
|
fontSize: 16;
|
|
38
38
|
lineHeight: 24;
|
|
39
39
|
letterSpacing: 0;
|
|
@@ -16,14 +16,14 @@ export default {
|
|
|
16
16
|
export const Formulaire = () => {
|
|
17
17
|
const [titre, setTitre] = useState('');
|
|
18
18
|
const [fichiers, setFichiers] = useState(null);
|
|
19
|
-
return (_jsx(FileDropZone, { value: fichiers, onChange: setFichiers, multiple: true, children: _jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
19
|
+
return (_jsx(FileDropZone, { value: fichiers, onChange: setFichiers, multiple: true, children: _jsxs(Box, { display: "flex", flexDirection: "column", gap: "2W", p: "2W", children: [_jsx(FormControl, { label: "Titre", children: _jsx(TextInput, { value: titre, onChangeText: setTitre }) }), _jsx(FormControl, { label: "Pi\u00E8ces jointes", hint: "Glissez des fichiers n'importe o\u00F9 sur le formulaire.", children: _jsx(FileInput, { value: fichiers, onChange: setFichiers, multiple: true }) })] }) }));
|
|
20
20
|
};
|
|
21
21
|
export const Desactivee = () => {
|
|
22
22
|
const [fichiers, setFichiers] = useState(null);
|
|
23
|
-
return (_jsx(FileDropZone, { value: fichiers, onChange: setFichiers, multiple: true, disabled: true, children: _jsx(Box, { p:
|
|
23
|
+
return (_jsx(FileDropZone, { value: fichiers, onChange: setFichiers, multiple: true, disabled: true, children: _jsx(Box, { p: "2W", children: _jsx(FormControl, { label: "Pi\u00E8ces jointes", disabled: true, children: _jsx(FileInput, { value: fichiers, onChange: setFichiers, multiple: true, disabled: true }) }) }) }));
|
|
24
24
|
};
|
|
25
25
|
export const MessagePersonnalise = () => {
|
|
26
26
|
const [photo, setPhoto] = useState(null);
|
|
27
|
-
return (_jsx(FileDropZone, { value: photo, onChange: setPhoto, type: "image/*", message: "L\u00E2chez la photo pour l'ajouter", children: _jsx(Box, { p:
|
|
27
|
+
return (_jsx(FileDropZone, { value: photo, onChange: setPhoto, type: "image/*", message: "L\u00E2chez la photo pour l'ajouter", children: _jsx(Box, { p: "2W", children: _jsx(FormControl, { label: "Photo", children: _jsx(FileInput, { value: photo, onChange: setPhoto, type: "image/*" }) }) }) }));
|
|
28
28
|
};
|
|
29
29
|
export * as Sources from './FileDropZone.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileDropZone.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FileDropZone/FileDropZone.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"FileDropZone.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FileDropZone/FileDropZone.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,cAAirB,CAAC;AAEzsB,eAAO,MAAM,UAAU,cAAgb,CAAC;AAExc,eAAO,MAAM,mBAAmB,cAA8b,CAAC;AAE/d,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/ui/FileDropZone/FileDropZone.stories.tsx
|
|
3
|
-
export const Formulaire = () => "export const Formulaire = () => {\n const [titre, setTitre] = useState('');\n const [fichiers, setFichiers] = useState<FileInputValue>(null);\n return (\n <FileDropZone value={fichiers} onChange={setFichiers} multiple>\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
4
|
-
export const Desactivee = () => "export const Desactivee = () => {\n const [fichiers, setFichiers] = useState<FileInputValue>(null);\n return (\n <FileDropZone value={fichiers} onChange={setFichiers} multiple disabled>\n <Box p
|
|
5
|
-
export const MessagePersonnalise = () => "export const MessagePersonnalise = () => {\n const [photo, setPhoto] = useState<FileInputValue>(null);\n return (\n <FileDropZone value={photo} onChange={setPhoto} type=\"image/*\" message=\"Lâchez la photo pour l'ajouter\">\n <Box p
|
|
3
|
+
export const Formulaire = () => "export const Formulaire = () => {\n const [titre, setTitre] = useState('');\n const [fichiers, setFichiers] = useState<FileInputValue>(null);\n return (\n <FileDropZone value={fichiers} onChange={setFichiers} multiple>\n <Box display=\"flex\" flexDirection=\"column\" gap=\"2W\" p=\"2W\">\n <FormControl label=\"Titre\">\n <TextInput value={titre} onChangeText={setTitre} />\n </FormControl>\n <FormControl label=\"Pièces jointes\" hint=\"Glissez des fichiers n'importe où sur le formulaire.\">\n <FileInput value={fichiers} onChange={setFichiers} multiple />\n </FormControl>\n </Box>\n </FileDropZone>\n );\n};";
|
|
4
|
+
export const Desactivee = () => "export const Desactivee = () => {\n const [fichiers, setFichiers] = useState<FileInputValue>(null);\n return (\n <FileDropZone value={fichiers} onChange={setFichiers} multiple disabled>\n <Box p=\"2W\">\n <FormControl label=\"Pièces jointes\" disabled>\n <FileInput value={fichiers} onChange={setFichiers} multiple disabled />\n </FormControl>\n </Box>\n </FileDropZone>\n );\n};";
|
|
5
|
+
export const MessagePersonnalise = () => "export const MessagePersonnalise = () => {\n const [photo, setPhoto] = useState<FileInputValue>(null);\n return (\n <FileDropZone value={photo} onChange={setPhoto} type=\"image/*\" message=\"Lâchez la photo pour l'ajouter\">\n <Box p=\"2W\">\n <FormControl label=\"Photo\">\n <FileInput value={photo} onChange={setPhoto} type=\"image/*\" />\n </FormControl>\n </Box>\n </FileDropZone>\n );\n};";
|
|
6
6
|
export const storySources = {
|
|
7
7
|
Formulaire,
|
|
8
8
|
Desactivee,
|
|
@@ -10,15 +10,15 @@ export declare const useStyles: () => {
|
|
|
10
10
|
left: number;
|
|
11
11
|
borderWidth: number;
|
|
12
12
|
borderStyle: "dashed";
|
|
13
|
-
borderColor:
|
|
13
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
14
14
|
borderRadius: import("@alveole/theme").Radius;
|
|
15
|
-
backgroundColor:
|
|
15
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
16
16
|
alignItems: "center";
|
|
17
17
|
justifyContent: "center";
|
|
18
18
|
pointerEvents: "none";
|
|
19
19
|
};
|
|
20
20
|
pastille: {
|
|
21
|
-
backgroundColor:
|
|
21
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
22
22
|
borderRadius: import("@alveole/theme").Radius;
|
|
23
23
|
paddingLeft: string | number;
|
|
24
24
|
paddingRight: string | number;
|
|
@@ -26,7 +26,7 @@ export declare const useStyles: () => {
|
|
|
26
26
|
paddingBottom: string | number;
|
|
27
27
|
};
|
|
28
28
|
message: {
|
|
29
|
-
color:
|
|
29
|
+
color: import("@alveole/theme").ThemeColor;
|
|
30
30
|
fontSize: 16;
|
|
31
31
|
lineHeight: 24;
|
|
32
32
|
letterSpacing: 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormControlCaptionProps } from './FormControlCaption';
|
|
3
|
-
import { TextInputProps } from './TextInput';
|
|
3
|
+
import { TextInputElement, TextInputProps } from './TextInput';
|
|
4
4
|
export type ChampHHMMProps = FormControlCaptionProps & {
|
|
5
5
|
value?: string;
|
|
6
6
|
onChange?: (value: string) => void;
|
|
@@ -17,6 +17,6 @@ export declare const ChampHHMM: React.ForwardRefExoticComponent<FormControlCapti
|
|
|
17
17
|
onChange?: (value: string) => void;
|
|
18
18
|
onBlur?: () => void;
|
|
19
19
|
disabled?: boolean;
|
|
20
|
-
} & ChampHHMMConfig & React.RefAttributes<
|
|
20
|
+
} & ChampHHMMConfig & React.RefAttributes<TextInputElement>>;
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=ChampHHMM.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChampHHMM.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/ChampHHMM.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,
|
|
1
|
+
{"version":3,"file":"ChampHHMM.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/ChampHHMM.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAa,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG1E,MAAM,MAAM,cAAc,GAAG,uBAAuB,GAAG;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACvC,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,cAAc,CAAC,CAAC;CAC7D,CAAC;AAEF,2GAA2G;AAC3G,eAAO,MAAM,SAAS;YAZZ,MAAM;eACH,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;aACzB,MAAM,IAAI;eACR,OAAO;4DA6BlB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextInput as ReactNativeTextInput } from 'react-native';
|
|
3
2
|
import { BoxProps } from '../../core/Box';
|
|
4
3
|
import { FormControlCaptionProps } from './FormControlCaption';
|
|
5
4
|
import { FormControlHintProps } from './FormControlHint';
|
|
6
5
|
import { FormControlLabelProps } from './FormControlLabel';
|
|
6
|
+
import { TextInputElement } from './TextInput.types';
|
|
7
7
|
export type FormControlProps = React.PropsWithChildren & Pick<FormControlHintProps, 'hint'> & FormControlCaptionProps & Pick<FormControlLabelProps, 'labelRight'> & {
|
|
8
8
|
label?: string;
|
|
9
9
|
disabled?: boolean;
|
|
@@ -17,5 +17,5 @@ export declare const FormControl: React.ForwardRefExoticComponent<{
|
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
required?: boolean;
|
|
19
19
|
style?: BoxProps["style"];
|
|
20
|
-
} & React.RefAttributes<
|
|
20
|
+
} & React.RefAttributes<TextInputElement>>;
|
|
21
21
|
//# sourceMappingURL=FormControl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAO,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI/C,OAAO,EAAsB,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAmB,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAoB,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,iBAAiB,GACpD,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,GAClC,uBAAuB,GACvB,IAAI,CAAC,qBAAqB,EAAE,YAAY,CAAC,GAAG;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CAC3B,CAAC;AAEJ,eAAO,MAAM,WAAW;;;YANZ,MAAM;eACH,OAAO;eACP,OAAO;YACV,QAAQ,CAAC,OAAO,CAAC;0CAsB3B,CAAC"}
|
|
@@ -10,7 +10,7 @@ declare const _default: {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
required?: boolean;
|
|
12
12
|
style?: import("../..").BoxProps["style"];
|
|
13
|
-
} & import("react").RefAttributes<import("
|
|
13
|
+
} & import("react").RefAttributes<import("./TextInput.types").TextInputElement>>;
|
|
14
14
|
styleFn: () => {
|
|
15
15
|
caption: {
|
|
16
16
|
display: "flex";
|
|
@@ -35,14 +35,14 @@ declare const _default: {
|
|
|
35
35
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
36
36
|
};
|
|
37
37
|
errorText: {
|
|
38
|
-
color:
|
|
38
|
+
color: import("@alveole/theme").ThemeColor;
|
|
39
39
|
};
|
|
40
40
|
successText: {
|
|
41
|
-
color:
|
|
41
|
+
color: import("@alveole/theme").ThemeColor;
|
|
42
42
|
};
|
|
43
43
|
modalOverlay: {
|
|
44
44
|
flex: number;
|
|
45
|
-
backgroundColor:
|
|
45
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
46
46
|
};
|
|
47
47
|
modalSheet: {
|
|
48
48
|
width: "100%";
|
|
@@ -80,12 +80,12 @@ declare const _default: {
|
|
|
80
80
|
modalInputContainer: {
|
|
81
81
|
borderRadius: import("@alveole/theme").Radius;
|
|
82
82
|
borderWidth: number;
|
|
83
|
-
borderColor:
|
|
83
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
84
84
|
backgroundColor: "#FFFFFF";
|
|
85
85
|
minHeight: number;
|
|
86
86
|
};
|
|
87
87
|
modalInput: {
|
|
88
|
-
color:
|
|
88
|
+
color: import("@alveole/theme").ThemeColor;
|
|
89
89
|
paddingLeft: string | number;
|
|
90
90
|
paddingRight: string | number;
|
|
91
91
|
paddingTop: string | number;
|
|
@@ -100,14 +100,14 @@ declare const _default: {
|
|
|
100
100
|
};
|
|
101
101
|
inputFocused: import("@alveole/theme").FocusBorderStyle;
|
|
102
102
|
inputError: {
|
|
103
|
-
borderColor:
|
|
103
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
104
104
|
};
|
|
105
105
|
inputSuccess: {
|
|
106
|
-
borderColor:
|
|
106
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
107
107
|
};
|
|
108
108
|
inputDisabled: {
|
|
109
|
-
backgroundColor:
|
|
110
|
-
borderColor:
|
|
109
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
110
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
111
111
|
};
|
|
112
112
|
inputContainer: {
|
|
113
113
|
width: "100%";
|
|
@@ -119,7 +119,7 @@ declare const _default: {
|
|
|
119
119
|
padding: number;
|
|
120
120
|
borderRadius: import("@alveole/theme").Radius;
|
|
121
121
|
borderWidth: number;
|
|
122
|
-
borderColor:
|
|
122
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
123
123
|
backgroundColor: "#FFFFFF";
|
|
124
124
|
overflow: "hidden";
|
|
125
125
|
width: "100%";
|
|
@@ -129,7 +129,7 @@ declare const _default: {
|
|
|
129
129
|
display: "flex";
|
|
130
130
|
flexDirection: "row";
|
|
131
131
|
outline: string;
|
|
132
|
-
color:
|
|
132
|
+
color: import("@alveole/theme").ThemeColor;
|
|
133
133
|
fontFamily: string;
|
|
134
134
|
fontSize: 14;
|
|
135
135
|
marginTop: string | number;
|
|
@@ -145,7 +145,7 @@ declare const _default: {
|
|
|
145
145
|
letterSpacing: 0;
|
|
146
146
|
fontFamily: string;
|
|
147
147
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
148
|
-
color:
|
|
148
|
+
color: import("@alveole/theme").ThemeColor;
|
|
149
149
|
};
|
|
150
150
|
inputWeb: {
|
|
151
151
|
borderWidth: number;
|
|
@@ -169,7 +169,7 @@ declare const _default: {
|
|
|
169
169
|
justifyContent: "space-between";
|
|
170
170
|
};
|
|
171
171
|
label: {
|
|
172
|
-
color:
|
|
172
|
+
color: import("@alveole/theme").ThemeColor;
|
|
173
173
|
fontSize: 14;
|
|
174
174
|
lineHeight: 20;
|
|
175
175
|
letterSpacing: 0;
|
|
@@ -177,7 +177,7 @@ declare const _default: {
|
|
|
177
177
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
178
178
|
};
|
|
179
179
|
labelDisabled: {
|
|
180
|
-
color:
|
|
180
|
+
color: import("@alveole/theme").ThemeColor;
|
|
181
181
|
};
|
|
182
182
|
hintContainer: {
|
|
183
183
|
display: "flex";
|
|
@@ -185,7 +185,7 @@ declare const _default: {
|
|
|
185
185
|
justifyContent: "space-between";
|
|
186
186
|
};
|
|
187
187
|
hint: {
|
|
188
|
-
color:
|
|
188
|
+
color: import("@alveole/theme").ThemeColor;
|
|
189
189
|
fontSize: 12;
|
|
190
190
|
lineHeight: 20;
|
|
191
191
|
letterSpacing: 0;
|
|
@@ -193,10 +193,10 @@ declare const _default: {
|
|
|
193
193
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
194
194
|
};
|
|
195
195
|
hintDisabled: {
|
|
196
|
-
color:
|
|
196
|
+
color: import("@alveole/theme").ThemeColor;
|
|
197
197
|
};
|
|
198
198
|
requiredMarker: {
|
|
199
|
-
color:
|
|
199
|
+
color: import("@alveole/theme").ThemeColor;
|
|
200
200
|
marginLeft: string | number;
|
|
201
201
|
fontSize: 14;
|
|
202
202
|
lineHeight: 20;
|
|
@@ -24,9 +24,9 @@ export default {
|
|
|
24
24
|
export const WithTextInput = () => (_jsxs(FormControl, { children: [_jsxs(InputHeading, { children: [_jsx(FormControlLabel, { label: "Adresse email" }), _jsx(FormControlHint, { hint: "Votre email professionnel" })] }), _jsx(TextInput, { placeholder: "jean@exemple.fr" })] }));
|
|
25
25
|
export const WithError = () => (_jsxs(FormControl, { children: [_jsx(InputHeading, { children: _jsx(FormControlLabel, { label: "Adresse email" }) }), _jsx(TextInput, { placeholder: "jean@exemple.fr" }), _jsx(FormControlCaption, { error: "Format invalide" })] }));
|
|
26
26
|
export const WithSuccess = () => (_jsxs(FormControl, { children: [_jsx(InputHeading, { children: _jsx(FormControlLabel, { label: "Adresse email" }) }), _jsx(TextInput, { placeholder: "jean@exemple.fr" }), _jsx(FormControlCaption, { success: "Email valide" })] }));
|
|
27
|
-
export const Label = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
28
|
-
export const Caption = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
29
|
-
export const Hint = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
27
|
+
export const Label = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(FormControlLabel, { label: "Label par defaut" }), _jsx(FormControlLabel, { label: "Desactive", disabled: true }), _jsx(FormControlLabel, { label: "Avec badge", labelRight: _jsx(Typography, { children: "Optionnel" }) })] }));
|
|
28
|
+
export const Caption = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(FormControlCaption, { error: "Champ requis" }), _jsx(FormControlCaption, { success: "Valeur correcte" })] }));
|
|
29
|
+
export const Hint = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(FormControlHint, { hint: "Texte descriptif du champ" }), _jsx(FormControlHint, { hint: "Texte desactive", disabled: true })] }));
|
|
30
30
|
export const Modal = () => {
|
|
31
31
|
const [open, setOpen] = useState(false);
|
|
32
32
|
return (_jsxs(Box, { children: [_jsx(Button, { variant: "secondary", title: "Ouvrir la modale", onPress: () => setOpen(true) }), _jsx(FormControlModal, { open: open, onClose: () => setOpen(false), submitLabel: "Valider", onSubmit: () => setOpen(false), children: _jsx(TextInput, { placeholder: "Saisir un texte...", multiline: true, numberOfLines: 6 }) })] }));
|
|
@@ -35,6 +35,6 @@ export const DateInput = () => {
|
|
|
35
35
|
const [date, setDate] = useState('');
|
|
36
36
|
const [time, setTime] = useState('');
|
|
37
37
|
const [month, setMonth] = useState('');
|
|
38
|
-
return (_jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
38
|
+
return (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3V", children: [_jsxs(FormControl, { children: [_jsx(InputHeading, { children: _jsx(FormControlLabel, { label: "Date" }) }), _jsx(DateInputControl, { type: "date", value: date, onChange: setDate })] }), _jsxs(FormControl, { children: [_jsx(InputHeading, { children: _jsx(FormControlLabel, { label: "Heure" }) }), _jsx(TimeInput, { value: time, onChange: setTime })] }), _jsxs(FormControl, { children: [_jsx(InputHeading, { children: _jsx(FormControlLabel, { label: "Mois" }) }), _jsx(DateInputControl, { type: "month", value: month, onChange: setMonth })] })] }));
|
|
39
39
|
};
|
|
40
40
|
export * as Sources from './FormControl.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControl.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/FormControl.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,cAAoS,CAAC;AAE/T,eAAO,MAAM,SAAS,cAAwR,CAAC;AAE/S,eAAO,MAAM,WAAW,cAAyR,CAAC;AAElT,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"FormControl.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/FormControl.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,cAAoS,CAAC;AAE/T,eAAO,MAAM,SAAS,cAAwR,CAAC;AAE/S,eAAO,MAAM,WAAW,cAAyR,CAAC;AAElT,eAAO,MAAM,KAAK,cAA8T,CAAC;AAEjV,eAAO,MAAM,OAAO,cAAgO,CAAC;AAErP,eAAO,MAAM,IAAI,cAAyO,CAAC;AAE3P,eAAO,MAAM,KAAK,cAA2f,CAAC;AAE9gB,eAAO,MAAM,SAAS,cAA83B,CAAC;AAEr5B,eAAO,MAAM,YAAY;;;;;;;;;CASf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|