@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
|
@@ -32,17 +32,17 @@ declare const _default: {
|
|
|
32
32
|
transitionTimingFunction: "ease-in-out";
|
|
33
33
|
};
|
|
34
34
|
itemCardHover: {
|
|
35
|
-
backgroundColor:
|
|
35
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
36
36
|
};
|
|
37
37
|
itemCardIcon: {
|
|
38
38
|
display: "flex";
|
|
39
39
|
justifyContent: "center";
|
|
40
40
|
alignItems: "center";
|
|
41
|
-
color:
|
|
41
|
+
color: import("@alveole/theme").ThemeColor;
|
|
42
42
|
};
|
|
43
43
|
itemCardSeparator: {
|
|
44
44
|
borderTopWidth: number;
|
|
45
|
-
borderTopColor:
|
|
45
|
+
borderTopColor: import("@alveole/theme").ThemeColor;
|
|
46
46
|
};
|
|
47
47
|
radioGroupCardContent: {
|
|
48
48
|
display: "flex";
|
|
@@ -74,7 +74,7 @@ declare const _default: {
|
|
|
74
74
|
};
|
|
75
75
|
itemContainer: {
|
|
76
76
|
backgroundColor: "#FFFFFF";
|
|
77
|
-
borderColor:
|
|
77
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
78
78
|
};
|
|
79
79
|
itemContainerSm: {
|
|
80
80
|
height: import("@alveole/theme").Spacing;
|
|
@@ -85,10 +85,10 @@ declare const _default: {
|
|
|
85
85
|
width: import("@alveole/theme").Spacing;
|
|
86
86
|
};
|
|
87
87
|
itemContainerActive: {
|
|
88
|
-
borderColor:
|
|
88
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
89
89
|
};
|
|
90
90
|
itemIndicator: {
|
|
91
|
-
backgroundColor:
|
|
91
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
92
92
|
height: number;
|
|
93
93
|
width: number;
|
|
94
94
|
};
|
|
@@ -106,7 +106,7 @@ declare const _default: {
|
|
|
106
106
|
flexDirection: "column";
|
|
107
107
|
};
|
|
108
108
|
groupCard: {
|
|
109
|
-
borderColor:
|
|
109
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
110
110
|
borderRadius: import("@alveole/theme").Radius;
|
|
111
111
|
borderWidth: number;
|
|
112
112
|
overflow: "hidden";
|
|
@@ -120,7 +120,7 @@ declare const _default: {
|
|
|
120
120
|
letterSpacing: 0;
|
|
121
121
|
fontFamily: string;
|
|
122
122
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
123
|
-
color:
|
|
123
|
+
color: import("@alveole/theme").ThemeColor;
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
126
|
};
|
|
@@ -19,9 +19,9 @@ export const Cards = () => {
|
|
|
19
19
|
const [value, setValue] = useState('oui');
|
|
20
20
|
return (_jsxs(RadioGroup, { value: value, onChange: setValue, label: "Confirmez-vous ?", children: [_jsx(RadioGroup.Card, { value: "oui", label: "Oui", leading: "Check" }), _jsx(RadioGroup.Card, { value: "non", label: "Non", leading: "X" })] }));
|
|
21
21
|
};
|
|
22
|
-
export const WithError = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap:
|
|
22
|
+
export const WithError = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap: "3W", children: _jsxs(RadioGroup, { value: "a", label: "Avec erreur", error: "Veuillez faire un choix", children: [_jsx(RadioGroup.Item, { value: "a", children: "Option A" }), _jsx(RadioGroup.Item, { value: "b", children: "Option B" })] }) }));
|
|
23
23
|
export const RadioInput = () => {
|
|
24
24
|
const [value, setValue] = useState('tutu');
|
|
25
|
-
return (_jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
25
|
+
return (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(RadioGroup.Input, { id: "exemple-input", label: "Petit", size: "sm", value: "tutu", checked: value === 'tutu', onChange: setValue }), _jsx(RadioGroup.Input, { id: "exemple-input-md", label: "Moyen", size: "md", value: "toto", checked: value === 'toto', onChange: setValue })] }));
|
|
26
26
|
};
|
|
27
27
|
export * as Sources from './RadioGroup.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/RadioGroup/RadioGroup.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA+X,CAAC;AAEpZ,eAAO,MAAM,KAAK,cAA2V,CAAC;AAE9W,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"RadioGroup.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/RadioGroup/RadioGroup.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA+X,CAAC;AAEpZ,eAAO,MAAM,KAAK,cAA2V,CAAC;AAE9W,eAAO,MAAM,SAAS,cAA8V,CAAC;AAErX,eAAO,MAAM,UAAU,cAAklB,CAAC;AAE1mB,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// Source: src/ui/RadioGroup/RadioGroup.stories.tsx
|
|
3
3
|
export const Default = () => "export const Default = () => {\n const [value, setValue] = useState('a');\n return (\n <RadioGroup value={value} onChange={setValue} label=\"Choix\">\n <RadioGroup.Item value=\"a\">Option A</RadioGroup.Item>\n <RadioGroup.Item value=\"b\">Option B</RadioGroup.Item>\n <RadioGroup.Item value=\"c\">Option C</RadioGroup.Item>\n </RadioGroup>\n );\n};";
|
|
4
4
|
export const Cards = () => "export const Cards = () => {\n const [value, setValue] = useState('oui');\n return (\n <RadioGroup value={value} onChange={setValue} label=\"Confirmez-vous ?\">\n <RadioGroup.Card value=\"oui\" label=\"Oui\" leading=\"Check\" />\n <RadioGroup.Card value=\"non\" label=\"Non\" leading=\"X\" />\n </RadioGroup>\n );\n};";
|
|
5
|
-
export const WithError = () => "export const WithError = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
6
|
-
export const RadioInput = () => "export const RadioInput = () => {\n const [value, setValue] = useState('tutu');\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
5
|
+
export const WithError = () => "export const WithError = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <RadioGroup value=\"a\" label=\"Avec erreur\" error=\"Veuillez faire un choix\">\n <RadioGroup.Item value=\"a\">Option A</RadioGroup.Item>\n <RadioGroup.Item value=\"b\">Option B</RadioGroup.Item>\n </RadioGroup>\n </Box>\n);";
|
|
6
|
+
export const RadioInput = () => "export const RadioInput = () => {\n const [value, setValue] = useState('tutu');\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <RadioGroup.Input\n id=\"exemple-input\"\n label=\"Petit\"\n size=\"sm\"\n value=\"tutu\"\n checked={value === 'tutu'}\n onChange={setValue}\n />\n <RadioGroup.Input\n id=\"exemple-input-md\"\n label=\"Moyen\"\n size=\"md\"\n value=\"toto\"\n checked={value === 'toto'}\n onChange={setValue}\n />\n </Box>\n );\n};";
|
|
7
7
|
export const storySources = {
|
|
8
8
|
Default,
|
|
9
9
|
Cards,
|
|
@@ -17,17 +17,17 @@ export declare const useStyles: () => {
|
|
|
17
17
|
transitionTimingFunction: "ease-in-out";
|
|
18
18
|
};
|
|
19
19
|
itemCardHover: {
|
|
20
|
-
backgroundColor:
|
|
20
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
21
21
|
};
|
|
22
22
|
itemCardIcon: {
|
|
23
23
|
display: "flex";
|
|
24
24
|
justifyContent: "center";
|
|
25
25
|
alignItems: "center";
|
|
26
|
-
color:
|
|
26
|
+
color: import("@alveole/theme").ThemeColor;
|
|
27
27
|
};
|
|
28
28
|
itemCardSeparator: {
|
|
29
29
|
borderTopWidth: number;
|
|
30
|
-
borderTopColor:
|
|
30
|
+
borderTopColor: import("@alveole/theme").ThemeColor;
|
|
31
31
|
};
|
|
32
32
|
radioGroupCardContent: {
|
|
33
33
|
display: "flex";
|
|
@@ -59,7 +59,7 @@ export declare const useStyles: () => {
|
|
|
59
59
|
};
|
|
60
60
|
itemContainer: {
|
|
61
61
|
backgroundColor: "#FFFFFF";
|
|
62
|
-
borderColor:
|
|
62
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
63
63
|
};
|
|
64
64
|
itemContainerSm: {
|
|
65
65
|
height: import("@alveole/theme").Spacing;
|
|
@@ -70,10 +70,10 @@ export declare const useStyles: () => {
|
|
|
70
70
|
width: import("@alveole/theme").Spacing;
|
|
71
71
|
};
|
|
72
72
|
itemContainerActive: {
|
|
73
|
-
borderColor:
|
|
73
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
74
74
|
};
|
|
75
75
|
itemIndicator: {
|
|
76
|
-
backgroundColor:
|
|
76
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
77
77
|
height: number;
|
|
78
78
|
width: number;
|
|
79
79
|
};
|
|
@@ -91,7 +91,7 @@ export declare const useStyles: () => {
|
|
|
91
91
|
flexDirection: "column";
|
|
92
92
|
};
|
|
93
93
|
groupCard: {
|
|
94
|
-
borderColor:
|
|
94
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
95
95
|
borderRadius: import("@alveole/theme").Radius;
|
|
96
96
|
borderWidth: number;
|
|
97
97
|
overflow: "hidden";
|
|
@@ -105,7 +105,7 @@ export declare const useStyles: () => {
|
|
|
105
105
|
letterSpacing: 0;
|
|
106
106
|
fontFamily: string;
|
|
107
107
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
108
|
-
color:
|
|
108
|
+
color: import("@alveole/theme").ThemeColor;
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
111
|
//# sourceMappingURL=RadioGroup.styles.d.ts.map
|
|
@@ -34,12 +34,12 @@ const ligne = ({ color, spacingValue }) => ({
|
|
|
34
34
|
borderColor: color.light.border['action-high-primary'],
|
|
35
35
|
},
|
|
36
36
|
itemContainerSm: {
|
|
37
|
-
height: spacingValue('
|
|
38
|
-
width: spacingValue('
|
|
37
|
+
height: spacingValue('2W'),
|
|
38
|
+
width: spacingValue('2W'),
|
|
39
39
|
},
|
|
40
40
|
itemContainerMd: {
|
|
41
|
-
height: spacingValue('
|
|
42
|
-
width: spacingValue('
|
|
41
|
+
height: spacingValue('3W'),
|
|
42
|
+
width: spacingValue('3W'),
|
|
43
43
|
},
|
|
44
44
|
itemContainerActive: {
|
|
45
45
|
borderColor: color.light.border['action-high-primary'],
|
|
@@ -13,5 +13,5 @@ export const RadioGroupCard = (props) => {
|
|
|
13
13
|
const id = React.useMemo(() => `radiogroup-${value}-${rid}`, [value, rid]);
|
|
14
14
|
const styles = useStyles();
|
|
15
15
|
useRadioGroup();
|
|
16
|
-
return (_jsx(Box, { tag: "radio-group-card", style: styles.card, children: _jsx(Label, { htmlFor: id, display: "flex", flexDirection: "row", width: '100%', children: _jsx(Box, { style: { ...styles.itemCard, ...style }, backgroundColor: { hover: styles.itemCardHover.backgroundColor }, children: _jsxs(Box, { style: styles.radioGroupCardContent, children: [_jsx(RadioInput, { value: value, id: id, size: "sm" }), leading != null && (_jsx(Box, { display: "flex", flexDirection: "row", gap:
|
|
16
|
+
return (_jsx(Box, { tag: "radio-group-card", style: styles.card, children: _jsx(Label, { htmlFor: id, display: "flex", flexDirection: "row", width: '100%', children: _jsx(Box, { style: { ...styles.itemCard, ...style }, backgroundColor: { hover: styles.itemCardHover.backgroundColor }, children: _jsxs(Box, { style: styles.radioGroupCardContent, children: [_jsx(RadioInput, { value: value, id: id, size: "sm" }), leading != null && (_jsx(Box, { display: "flex", flexDirection: "row", gap: "1W", style: styles.itemCardIcon, children: _jsx(LeadingSlot, { contenu: leading, apparence: { size: 'sm' } }) })), _jsx(Box, { style: { ...styles.radioGroupCardLabelContainer, ...(separator ? styles.itemCardSeparator : {}) }, children: _jsx(Typography, { style: styles.radioGroupCardLabel, children: label }) })] }) }) }) }));
|
|
17
17
|
};
|
|
@@ -18,7 +18,7 @@ export declare const useStyles: () => {
|
|
|
18
18
|
fontFamily: string;
|
|
19
19
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
20
20
|
cursor: "pointer";
|
|
21
|
-
color:
|
|
21
|
+
color: import("@alveole/theme").ThemeColor;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
//# sourceMappingURL=RadioGroupItem.styles.d.ts.map
|
|
@@ -17,7 +17,7 @@ declare const _default: {
|
|
|
17
17
|
paddingBottom: string | number;
|
|
18
18
|
};
|
|
19
19
|
enteteTitle: {
|
|
20
|
-
color:
|
|
20
|
+
color: import("@alveole/theme").ThemeColor;
|
|
21
21
|
fontSize: 14;
|
|
22
22
|
lineHeight: 20;
|
|
23
23
|
letterSpacing: 0;
|
|
@@ -32,7 +32,7 @@ declare const _default: {
|
|
|
32
32
|
};
|
|
33
33
|
withBorder: {
|
|
34
34
|
borderWidth: number;
|
|
35
|
-
borderColor:
|
|
35
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
36
36
|
borderLeftWidth: number;
|
|
37
37
|
borderRightWidth: number;
|
|
38
38
|
};
|
|
@@ -10,7 +10,7 @@ export declare const useStyles: () => {
|
|
|
10
10
|
paddingBottom: string | number;
|
|
11
11
|
};
|
|
12
12
|
enteteTitle: {
|
|
13
|
-
color:
|
|
13
|
+
color: import("@alveole/theme").ThemeColor;
|
|
14
14
|
fontSize: 14;
|
|
15
15
|
lineHeight: 20;
|
|
16
16
|
letterSpacing: 0;
|
|
@@ -25,7 +25,7 @@ export declare const useStyles: () => {
|
|
|
25
25
|
};
|
|
26
26
|
withBorder: {
|
|
27
27
|
borderWidth: number;
|
|
28
|
-
borderColor:
|
|
28
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
29
29
|
borderLeftWidth: number;
|
|
30
30
|
borderRightWidth: number;
|
|
31
31
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Box } from '../../core/Box';
|
|
3
3
|
import { Divider } from '../Divider';
|
|
4
|
-
export const ResourceListDivider = () => (_jsx(Box, { pl: "
|
|
4
|
+
export const ResourceListDivider = () => (_jsx(Box, { pl: "2W", pr: "2W", children: _jsx(Divider, {}) }));
|
|
@@ -8,7 +8,7 @@ declare const _default: {
|
|
|
8
8
|
component: import("react").ForwardRefExoticComponent<import("./Select.types").SelectProps & import("react").RefAttributes<import("./Select.types").SelectRef>>;
|
|
9
9
|
styleFn: () => {
|
|
10
10
|
value: {
|
|
11
|
-
color:
|
|
11
|
+
color: import("@alveole/theme").ThemeColor;
|
|
12
12
|
flex: number;
|
|
13
13
|
fontSize: 14;
|
|
14
14
|
lineHeight: 20;
|
|
@@ -17,10 +17,10 @@ declare const _default: {
|
|
|
17
17
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
18
18
|
};
|
|
19
19
|
valuePlaceholder: {
|
|
20
|
-
color:
|
|
20
|
+
color: import("@alveole/theme").ThemeColor;
|
|
21
21
|
};
|
|
22
22
|
valueDisabled: {
|
|
23
|
-
color:
|
|
23
|
+
color: import("@alveole/theme").ThemeColor;
|
|
24
24
|
};
|
|
25
25
|
inputInnerMultiple: {
|
|
26
26
|
paddingTop: string | number;
|
|
@@ -49,18 +49,18 @@ declare const _default: {
|
|
|
49
49
|
borderRadius: import("@alveole/theme").Radius;
|
|
50
50
|
borderWidth: number;
|
|
51
51
|
borderStyle: "solid";
|
|
52
|
-
borderColor:
|
|
53
|
-
backgroundColor:
|
|
52
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
53
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
54
54
|
width: "100%";
|
|
55
55
|
};
|
|
56
56
|
inputError: {
|
|
57
|
-
borderColor:
|
|
57
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
58
58
|
};
|
|
59
59
|
inputSuccess: {
|
|
60
|
-
borderColor:
|
|
60
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
61
61
|
};
|
|
62
62
|
inputDisabled: {
|
|
63
|
-
borderColor:
|
|
63
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
64
64
|
};
|
|
65
65
|
inputCursor: {
|
|
66
66
|
cursor: "pointer";
|
|
@@ -21,7 +21,7 @@ export default {
|
|
|
21
21
|
'Le composant reste **strictement contrôlé**, y compris pour la création d’option : `onCreateOption` reçoit',
|
|
22
22
|
'la saisie, à l’appelant d’ajouter l’option à `options` puis de mettre `value` à jour.',
|
|
23
23
|
'',
|
|
24
|
-
'
|
|
24
|
+
'## Migration depuis `Autocomplete`',
|
|
25
25
|
'',
|
|
26
26
|
// Cellules en texte brut : le rendu Markdown du catalogue échoue sur du code
|
|
27
27
|
// inline dans un tableau.
|
|
@@ -81,29 +81,29 @@ const LONG_OPTIONS = Array.from({ length: 60 }, (_, index) => ({
|
|
|
81
81
|
}));
|
|
82
82
|
export const Default = () => {
|
|
83
83
|
const [value, setValue] = useState(null);
|
|
84
|
-
return (_jsx(Box, { display: "flex", flexDirection: "column", gap:
|
|
84
|
+
return (_jsx(Box, { display: "flex", flexDirection: "column", gap: "3W", children: _jsx(FormControl, { label: "S\u00E9lection", children: _jsx(Select, { placeholder: "Choisir...", options: OPTIONS, value: value, onChange: setValue }) }) }));
|
|
85
85
|
};
|
|
86
|
-
export const States = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
86
|
+
export const States = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(FormControl, { label: "Avec valeur", children: _jsx(Select, { options: OPTIONS, value: "b" }) }), _jsx(FormControl, { label: "Erreur", error: "Ce champ est requis", children: _jsx(Select, { options: OPTIONS, value: null, error: "Ce champ est requis" }) }), _jsx(FormControl, { label: "Succ\u00E8s", success: "Valide", children: _jsx(Select, { options: OPTIONS, value: "a", success: "Valide" }) }), _jsx(FormControl, { label: "D\u00E9sactiv\u00E9", disabled: true, children: _jsx(Select, { options: OPTIONS, value: "a", disabled: true }) })] }));
|
|
87
87
|
export const WithIcons = () => {
|
|
88
88
|
const [value, setValue] = useState('contact');
|
|
89
|
-
return (_jsx(Box, { display: "flex", flexDirection: "column", gap:
|
|
89
|
+
return (_jsx(Box, { display: "flex", flexDirection: "column", gap: "3W", children: _jsx(FormControl, { label: "Type de ressource", children: _jsx(Select, { options: ICON_OPTIONS, value: value, onChange: setValue }) }) }));
|
|
90
90
|
};
|
|
91
91
|
export const Grouped = () => {
|
|
92
92
|
const [value, setValue] = useState(null);
|
|
93
|
-
return (_jsx(Box, { display: "flex", flexDirection: "column", gap:
|
|
93
|
+
return (_jsx(Box, { display: "flex", flexDirection: "column", gap: "3W", children: _jsx(FormControl, { label: "Type de document", children: _jsx(Select, { placeholder: "Tous les types", options: GROUPED_OPTIONS, value: value, onChange: setValue }) }) }));
|
|
94
94
|
};
|
|
95
95
|
export const LongList = () => {
|
|
96
96
|
const [value, setValue] = useState('option-42');
|
|
97
|
-
return (_jsx(Box, { display: "flex", flexDirection: "column", gap:
|
|
97
|
+
return (_jsx(Box, { display: "flex", flexDirection: "column", gap: "3W", children: _jsx(FormControl, { label: "Liste d\u00E9filante", children: _jsx(Select, { options: LONG_OPTIONS, value: value, onChange: setValue }) }) }));
|
|
98
98
|
};
|
|
99
99
|
export const Clearable = () => {
|
|
100
100
|
const [value, setValue] = useState('b');
|
|
101
|
-
return (_jsx(Box, { display: "flex", flexDirection: "column", gap:
|
|
101
|
+
return (_jsx(Box, { display: "flex", flexDirection: "column", gap: "3W", children: _jsx(FormControl, { label: "Effa\u00E7able", children: _jsx(Select, { placeholder: "Choisir...", options: OPTIONS, value: value, onChange: setValue, clearable: true }) }) }));
|
|
102
102
|
};
|
|
103
103
|
/** `searchable` ajoute un champ de recherche au panneau et filtre les options sur leur libellé. */
|
|
104
104
|
export const Searchable = () => {
|
|
105
105
|
const [value, setValue] = useState(null);
|
|
106
|
-
return (_jsx(Box, { display: "flex", flexDirection: "column", gap:
|
|
106
|
+
return (_jsx(Box, { display: "flex", flexDirection: "column", gap: "3W", children: _jsx(FormControl, { label: "Ville", children: _jsx(Select, { placeholder: "Choisir...", searchable: true, options: CITY_OPTIONS, value: value, onChange: setValue }) }) }));
|
|
107
107
|
};
|
|
108
108
|
/**
|
|
109
109
|
* Recherche distante : `localFilter={false}` laisse le filtrage au serveur, et
|
|
@@ -125,12 +125,12 @@ export const RemoteSearch = () => {
|
|
|
125
125
|
]);
|
|
126
126
|
setLoading(false);
|
|
127
127
|
};
|
|
128
|
-
return (_jsx(Box, { display: "flex", flexDirection: "column", gap:
|
|
128
|
+
return (_jsx(Box, { display: "flex", flexDirection: "column", gap: "3W", children: _jsx(FormControl, { label: "Recherche distante", children: _jsx(Select, { placeholder: "Saisir au moins 3 caract\u00E8res...", searchable: true, localFilter: false, loading: loading, emptyMessage: "Saisir au moins 3 caract\u00E8res", options: options, value: value, onChange: setValue, onSearchChange: search }) }) }));
|
|
129
129
|
};
|
|
130
130
|
/** `multiple` fait de la valeur un tableau. Les valeurs retenues s’affichent en puces retirables. */
|
|
131
131
|
export const Multiple = () => {
|
|
132
132
|
const [values, setValues] = useState(['a']);
|
|
133
|
-
return (_jsx(Box, { display: "flex", flexDirection: "column", gap:
|
|
133
|
+
return (_jsx(Box, { display: "flex", flexDirection: "column", gap: "3W", children: _jsx(FormControl, { label: "S\u00E9lection multiple", children: _jsx(Select, { placeholder: "Choisir...", multiple: true, clearable: true, options: OPTIONS, value: values, onChange: setValues }) }) }));
|
|
134
134
|
};
|
|
135
135
|
/**
|
|
136
136
|
* `creatable` propose d’ajouter la saisie à la liste. Le composant restant contrôlé,
|
|
@@ -143,7 +143,7 @@ export const Creatable = () => {
|
|
|
143
143
|
setOptions(current => [...current, { label: query, value: query }]);
|
|
144
144
|
setValues(current => [...current, query]);
|
|
145
145
|
};
|
|
146
|
-
return (_jsx(Box, { display: "flex", flexDirection: "column", gap:
|
|
146
|
+
return (_jsx(Box, { display: "flex", flexDirection: "column", gap: "3W", children: _jsx(FormControl, { label: "\u00C9tiquettes", children: _jsx(Select, { placeholder: "Rechercher ou cr\u00E9er...", multiple: true, searchable: true, creatable: true, options: options, value: values, onChange: setValues, onCreateOption: createOption }) }) }));
|
|
147
147
|
};
|
|
148
148
|
/**
|
|
149
149
|
* Champ adresse : recherche distante et saisie libre autorisée. Ce préréglage remplace
|
|
@@ -159,6 +159,6 @@ export const Address = () => {
|
|
|
159
159
|
setOptions(current => [...current, { label: query, value: query }]);
|
|
160
160
|
setValue(query);
|
|
161
161
|
};
|
|
162
|
-
return (_jsx(Box, { display: "flex", flexDirection: "column", gap:
|
|
162
|
+
return (_jsx(Box, { display: "flex", flexDirection: "column", gap: "3W", children: _jsx(FormControl, { label: "Adresse", children: _jsx(Select, { placeholder: "ex : 3 rue Robespierre", searchable: true, localFilter: false, creatable: true, clearable: true, emptyMessage: "Saisir au moins 3 caract\u00E8res", createLabel: query => `Utiliser « ${query} »`, options: options, value: value, onChange: setValue, onSearchChange: search, onCreateOption: createAddress }) }) }));
|
|
163
163
|
};
|
|
164
164
|
export * as Sources from './Select.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/Select.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Select.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/Select.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAyW,CAAC;AAE9X,eAAO,MAAM,MAAM,cAAipB,CAAC;AAErqB,eAAO,MAAM,SAAS,cAAkW,CAAC;AAEzX,eAAO,MAAM,OAAO,cAA4X,CAAC;AAEjZ,eAAO,MAAM,QAAQ,cAAiW,CAAC;AAEvX,eAAO,MAAM,SAAS,cAAoX,CAAC;AAE3Y,eAAO,MAAM,UAAU,cAAwX,CAAC;AAEhZ,eAAO,MAAM,YAAY,cAAqiC,CAAC;AAE/jC,eAAO,MAAM,QAAQ,cAAsY,CAAC;AAE5Z,eAAO,MAAM,SAAS,cAAuwB,CAAC;AAE9xB,eAAO,MAAM,OAAO,cAA4gC,CAAC;AAEjiC,eAAO,MAAM,YAAY;;;;;;;;;;;;CAYf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAMtE,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/ui/Select/Select.stories.tsx
|
|
3
|
-
export const Default = () => "export const Default = () => {\n const [value, setValue] = useState<string | null>(null);\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
4
|
-
export const States = () => "export const States = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
5
|
-
export const WithIcons = () => "export const WithIcons = () => {\n const [value, setValue] = useState<string | null>('contact');\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
6
|
-
export const Grouped = () => "export const Grouped = () => {\n const [value, setValue] = useState<string | null>(null);\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
7
|
-
export const LongList = () => "export const LongList = () => {\n const [value, setValue] = useState<string | null>('option-42');\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
8
|
-
export const Clearable = () => "export const Clearable = () => {\n const [value, setValue] = useState<string | null>('b');\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
9
|
-
export const Searchable = () => "export const Searchable = () => {\n const [value, setValue] = useState<string | null>(null);\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
10
|
-
export const RemoteSearch = () => "export const RemoteSearch = () => {\n const [value, setValue] = useState<string | null>(null);\n const [options, setOptions] = useState<SelectOption[]>([]);\n const [loading, setLoading] = useState(false);\n\n const search = (query: string) => {\n if (query.length < 3) {\n setOptions([]);\n return;\n }\n setLoading(true);\n setOptions([\n { label: `${query} — résultat 1`, value: `${query}-1` },\n { label: `${query} — résultat 2`, value: `${query}-2` },\n ]);\n setLoading(false);\n };\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
11
|
-
export const Multiple = () => "export const Multiple = () => {\n const [values, setValues] = useState<string[]>(['a']);\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
12
|
-
export const Creatable = () => "export const Creatable = () => {\n const [options, setOptions] = useState<SelectOption[]>(OPTIONS);\n const [values, setValues] = useState<string[]>([]);\n\n const createOption = (query: string) => {\n setOptions(current => [...current, { label: query, value: query }]);\n setValues(current => [...current, query]);\n };\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
13
|
-
export const Address = () => "export const Address = () => {\n const [options, setOptions] = useState<SelectOption[]>([]);\n const [value, setValue] = useState<string | null>(null);\n\n const search = (query: string) => {\n setOptions(query.length >= 3 ? ADDRESS_SUGGESTIONS : []);\n };\n\n const createAddress = (query: string) => {\n setOptions(current => [...current, { label: query, value: query }]);\n setValue(query);\n };\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
3
|
+
export const Default = () => "export const Default = () => {\n const [value, setValue] = useState<string | null>(null);\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Sélection\">\n <Select placeholder=\"Choisir...\" options={OPTIONS} value={value} onChange={setValue} />\n </FormControl>\n </Box>\n );\n};";
|
|
4
|
+
export const States = () => "export const States = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Avec valeur\">\n <Select options={OPTIONS} value=\"b\" />\n </FormControl>\n <FormControl label=\"Erreur\" error=\"Ce champ est requis\">\n <Select options={OPTIONS} value={null} error=\"Ce champ est requis\" />\n </FormControl>\n <FormControl label=\"Succès\" success=\"Valide\">\n <Select options={OPTIONS} value=\"a\" success=\"Valide\" />\n </FormControl>\n <FormControl label=\"Désactivé\" disabled>\n <Select options={OPTIONS} value=\"a\" disabled />\n </FormControl>\n </Box>\n);";
|
|
5
|
+
export const WithIcons = () => "export const WithIcons = () => {\n const [value, setValue] = useState<string | null>('contact');\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Type de ressource\">\n <Select options={ICON_OPTIONS} value={value} onChange={setValue} />\n </FormControl>\n </Box>\n );\n};";
|
|
6
|
+
export const Grouped = () => "export const Grouped = () => {\n const [value, setValue] = useState<string | null>(null);\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Type de document\">\n <Select placeholder=\"Tous les types\" options={GROUPED_OPTIONS} value={value} onChange={setValue} />\n </FormControl>\n </Box>\n );\n};";
|
|
7
|
+
export const LongList = () => "export const LongList = () => {\n const [value, setValue] = useState<string | null>('option-42');\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Liste défilante\">\n <Select options={LONG_OPTIONS} value={value} onChange={setValue} />\n </FormControl>\n </Box>\n );\n};";
|
|
8
|
+
export const Clearable = () => "export const Clearable = () => {\n const [value, setValue] = useState<string | null>('b');\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Effaçable\">\n <Select placeholder=\"Choisir...\" options={OPTIONS} value={value} onChange={setValue} clearable />\n </FormControl>\n </Box>\n );\n};";
|
|
9
|
+
export const Searchable = () => "export const Searchable = () => {\n const [value, setValue] = useState<string | null>(null);\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Ville\">\n <Select placeholder=\"Choisir...\" searchable options={CITY_OPTIONS} value={value} onChange={setValue} />\n </FormControl>\n </Box>\n );\n};";
|
|
10
|
+
export const RemoteSearch = () => "export const RemoteSearch = () => {\n const [value, setValue] = useState<string | null>(null);\n const [options, setOptions] = useState<SelectOption[]>([]);\n const [loading, setLoading] = useState(false);\n\n const search = (query: string) => {\n if (query.length < 3) {\n setOptions([]);\n return;\n }\n setLoading(true);\n setOptions([\n { label: `${query} — résultat 1`, value: `${query}-1` },\n { label: `${query} — résultat 2`, value: `${query}-2` },\n ]);\n setLoading(false);\n };\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Recherche distante\">\n <Select\n placeholder=\"Saisir au moins 3 caractères...\"\n searchable\n localFilter={false}\n loading={loading}\n emptyMessage=\"Saisir au moins 3 caractères\"\n options={options}\n value={value}\n onChange={setValue}\n onSearchChange={search}\n />\n </FormControl>\n </Box>\n );\n};";
|
|
11
|
+
export const Multiple = () => "export const Multiple = () => {\n const [values, setValues] = useState<string[]>(['a']);\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Sélection multiple\">\n <Select placeholder=\"Choisir...\" multiple clearable options={OPTIONS} value={values} onChange={setValues} />\n </FormControl>\n </Box>\n );\n};";
|
|
12
|
+
export const Creatable = () => "export const Creatable = () => {\n const [options, setOptions] = useState<SelectOption[]>(OPTIONS);\n const [values, setValues] = useState<string[]>([]);\n\n const createOption = (query: string) => {\n setOptions(current => [...current, { label: query, value: query }]);\n setValues(current => [...current, query]);\n };\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Étiquettes\">\n <Select\n placeholder=\"Rechercher ou créer...\"\n multiple\n searchable\n creatable\n options={options}\n value={values}\n onChange={setValues}\n onCreateOption={createOption}\n />\n </FormControl>\n </Box>\n );\n};";
|
|
13
|
+
export const Address = () => "export const Address = () => {\n const [options, setOptions] = useState<SelectOption[]>([]);\n const [value, setValue] = useState<string | null>(null);\n\n const search = (query: string) => {\n setOptions(query.length >= 3 ? ADDRESS_SUGGESTIONS : []);\n };\n\n const createAddress = (query: string) => {\n setOptions(current => [...current, { label: query, value: query }]);\n setValue(query);\n };\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Adresse\">\n <Select\n placeholder=\"ex : 3 rue Robespierre\"\n searchable\n localFilter={false}\n creatable\n clearable\n emptyMessage=\"Saisir au moins 3 caractères\"\n createLabel={query => `Utiliser « ${query} »`}\n options={options}\n value={value}\n onChange={setValue}\n onSearchChange={search}\n onCreateOption={createAddress}\n />\n </FormControl>\n </Box>\n );\n};";
|
|
14
14
|
export const storySources = {
|
|
15
15
|
Default,
|
|
16
16
|
States,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const useStyles: () => {
|
|
2
2
|
value: {
|
|
3
|
-
color:
|
|
3
|
+
color: import("@alveole/theme").ThemeColor;
|
|
4
4
|
flex: number;
|
|
5
5
|
fontSize: 14;
|
|
6
6
|
lineHeight: 20;
|
|
@@ -9,10 +9,10 @@ export declare const useStyles: () => {
|
|
|
9
9
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
10
10
|
};
|
|
11
11
|
valuePlaceholder: {
|
|
12
|
-
color:
|
|
12
|
+
color: import("@alveole/theme").ThemeColor;
|
|
13
13
|
};
|
|
14
14
|
valueDisabled: {
|
|
15
|
-
color:
|
|
15
|
+
color: import("@alveole/theme").ThemeColor;
|
|
16
16
|
};
|
|
17
17
|
/** Les puces repassent à la ligne ; le chevron et la valeur restent centrés dans le champ. */
|
|
18
18
|
inputInnerMultiple: {
|
|
@@ -42,18 +42,18 @@ export declare const useStyles: () => {
|
|
|
42
42
|
borderRadius: import("@alveole/theme").Radius;
|
|
43
43
|
borderWidth: number;
|
|
44
44
|
borderStyle: "solid";
|
|
45
|
-
borderColor:
|
|
46
|
-
backgroundColor:
|
|
45
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
46
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
47
47
|
width: "100%";
|
|
48
48
|
};
|
|
49
49
|
inputError: {
|
|
50
|
-
borderColor:
|
|
50
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
51
51
|
};
|
|
52
52
|
inputSuccess: {
|
|
53
|
-
borderColor:
|
|
53
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
54
54
|
};
|
|
55
55
|
inputDisabled: {
|
|
56
|
-
borderColor:
|
|
56
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
57
57
|
};
|
|
58
58
|
/** Web uniquement : `cursor` n'appartient pas aux styles React Native. */
|
|
59
59
|
inputCursor: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectBottomSheet.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/SelectBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SelectBottomSheet.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/SelectBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG/E,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC;AAEtD,eAAO,MAAM,iBAAiB,GAAI,OAAO,sBAAsB,sBA6C9D,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { InteractionManager } from 'react-native';
|
|
4
3
|
import { Box } from '../../core/Box';
|
|
5
4
|
import { BottomSheet } from '../BottomSheet';
|
|
6
5
|
import { Button } from '../Button';
|
|
@@ -13,11 +12,12 @@ export const SelectBottomSheet = (props) => {
|
|
|
13
12
|
const searchRef = React.useRef(null);
|
|
14
13
|
// Le focus n'est pris qu'une fois l'animation d'ouverture terminée : pendant
|
|
15
14
|
// celle-ci le champ n'est pas encore mesuré et le clavier se referme aussitôt.
|
|
15
|
+
// `requestIdleCallback` remplace `InteractionManager`, retiré de React Native 0.88.
|
|
16
16
|
React.useEffect(() => {
|
|
17
17
|
if (!open || !searchable)
|
|
18
18
|
return;
|
|
19
|
-
const
|
|
20
|
-
return () =>
|
|
19
|
+
const handle = requestIdleCallback(() => searchRef.current?.focus());
|
|
20
|
+
return () => cancelIdleCallback(handle);
|
|
21
21
|
}, [open, searchable]);
|
|
22
22
|
return (_jsxs(BottomSheet, { open: open, setOpen: setOpen, title: title, ...(sheetSnapPoints != null ? { points: sheetSnapPoints } : { fitContent: true }), moveOnKeyboardChange: searchable, action: multiple ? (_jsx(Button, { testID: "select-validate", title: "Valider", size: "sm", variant: "primary", onPress: () => setOpen(false) })) : undefined, children: [searchable && (_jsx(Box, { pl: "2W", pr: "2W", pb: "1W", children: _jsx(TextInput, { ref: searchRef, testID: "select-search", accessibilityLabel: "Rechercher", value: query, onChangeText: onQueryChange, placeholder: searchPlaceholder }) })), _jsx(SelectOptionsList, { ...props })] }));
|
|
23
23
|
};
|
|
@@ -13,22 +13,22 @@ export declare const useStyles: () => {
|
|
|
13
13
|
width: import("@alveole/theme").Spacing;
|
|
14
14
|
borderWidth: number;
|
|
15
15
|
borderStyle: "solid";
|
|
16
|
-
borderColor:
|
|
16
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
17
17
|
borderRadius: import("@alveole/theme").Radius;
|
|
18
18
|
backgroundColor: "transparent";
|
|
19
19
|
};
|
|
20
20
|
checkboxChecked: {
|
|
21
|
-
borderColor:
|
|
22
|
-
backgroundColor:
|
|
21
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
22
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
23
23
|
};
|
|
24
24
|
checkboxDisabled: {
|
|
25
|
-
borderColor:
|
|
25
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
26
26
|
};
|
|
27
27
|
checkboxCheckedDisabled: {
|
|
28
|
-
backgroundColor:
|
|
28
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
29
29
|
};
|
|
30
30
|
itemLabel: {
|
|
31
|
-
color:
|
|
31
|
+
color: import("@alveole/theme").ThemeColor;
|
|
32
32
|
flex: number;
|
|
33
33
|
fontSize: 14;
|
|
34
34
|
lineHeight: 20;
|
|
@@ -37,7 +37,7 @@ export declare const useStyles: () => {
|
|
|
37
37
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
38
38
|
};
|
|
39
39
|
itemLabelDisabled: {
|
|
40
|
-
color:
|
|
40
|
+
color: import("@alveole/theme").ThemeColor;
|
|
41
41
|
};
|
|
42
42
|
placeCoche: {
|
|
43
43
|
width: import("@alveole/theme").Spacing;
|
|
@@ -68,7 +68,7 @@ export declare const useStyles: () => {
|
|
|
68
68
|
borderRadius: import("@alveole/theme").Radius;
|
|
69
69
|
};
|
|
70
70
|
bandHighlighted: {
|
|
71
|
-
backgroundColor:
|
|
71
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
72
72
|
};
|
|
73
73
|
barre: {
|
|
74
74
|
position: "absolute";
|
|
@@ -77,13 +77,13 @@ export declare const useStyles: () => {
|
|
|
77
77
|
bottom: string | number;
|
|
78
78
|
width: import("@alveole/theme").Spacing;
|
|
79
79
|
borderRadius: import("@alveole/theme").Radius;
|
|
80
|
-
backgroundColor:
|
|
80
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
81
81
|
};
|
|
82
82
|
panel: {
|
|
83
83
|
paddingTop: string | number;
|
|
84
84
|
paddingBottom: string | number;
|
|
85
85
|
borderRadius: import("@alveole/theme").Radius;
|
|
86
|
-
backgroundColor:
|
|
86
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
87
87
|
overflow: "hidden";
|
|
88
88
|
} | {
|
|
89
89
|
shadowColor: string;
|
|
@@ -97,18 +97,18 @@ export declare const useStyles: () => {
|
|
|
97
97
|
paddingTop: string | number;
|
|
98
98
|
paddingBottom: string | number;
|
|
99
99
|
borderRadius: import("@alveole/theme").Radius;
|
|
100
|
-
backgroundColor:
|
|
100
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
101
101
|
overflow: "hidden";
|
|
102
102
|
} | {
|
|
103
103
|
boxShadow: string;
|
|
104
104
|
paddingTop: string | number;
|
|
105
105
|
paddingBottom: string | number;
|
|
106
106
|
borderRadius: import("@alveole/theme").Radius;
|
|
107
|
-
backgroundColor:
|
|
107
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
108
108
|
overflow: "hidden";
|
|
109
109
|
};
|
|
110
110
|
emptyMessage: {
|
|
111
|
-
color:
|
|
111
|
+
color: import("@alveole/theme").ThemeColor;
|
|
112
112
|
paddingTop: string | number;
|
|
113
113
|
paddingBottom: string | number;
|
|
114
114
|
paddingLeft: string | number;
|
|
@@ -120,7 +120,7 @@ export declare const useStyles: () => {
|
|
|
120
120
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
121
121
|
};
|
|
122
122
|
groupHeader: {
|
|
123
|
-
color:
|
|
123
|
+
color: import("@alveole/theme").ThemeColor;
|
|
124
124
|
paddingTop: string | number;
|
|
125
125
|
paddingBottom: string | number;
|
|
126
126
|
paddingLeft: string | number;
|
|
@@ -86,7 +86,7 @@ const contenuDeLaLigne = ({ text, color, spacingValue }) => ({
|
|
|
86
86
|
},
|
|
87
87
|
// Place de la coche, vide sur les options non retenues : les libelles restent alignes.
|
|
88
88
|
placeCoche: {
|
|
89
|
-
width: spacingValue('
|
|
89
|
+
width: spacingValue('2W'),
|
|
90
90
|
flexShrink: 0,
|
|
91
91
|
},
|
|
92
92
|
});
|
|
@@ -99,8 +99,8 @@ const caseACocher = ({ color, spacingValue, radius }) => ({
|
|
|
99
99
|
alignItems: 'center',
|
|
100
100
|
justifyContent: 'center',
|
|
101
101
|
flexShrink: 0,
|
|
102
|
-
height: spacingValue('
|
|
103
|
-
width: spacingValue('
|
|
102
|
+
height: spacingValue('2W'),
|
|
103
|
+
width: spacingValue('2W'),
|
|
104
104
|
borderWidth: 1,
|
|
105
105
|
borderStyle: 'solid',
|
|
106
106
|
borderColor: color.light.border['contrast-grey'],
|