@alveole/components 2.0.0-alpha.16 → 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/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/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 +8 -8
- 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 +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -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/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 +1 -1
- package/dist/ui/PriceInput/PriceInput.stories.d.ts +8 -8
- package/dist/ui/PriceInput/PriceInput.stories.js +2 -2
- package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts.map +1 -1
- package/dist/ui/PriceInput/PriceInput.stories.sources.js +2 -2
- package/dist/ui/PriceInput/PriceInput.styles.d.ts +7 -7
- package/dist/ui/PriceInput/PriceInput.web.d.ts.map +1 -1
- package/dist/ui/PriceInput/PriceInput.web.js +2 -2
- package/dist/ui/PriceInput/cadrePrix.d.ts +26 -0
- package/dist/ui/PriceInput/cadrePrix.d.ts.map +1 -1
- 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/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 +11 -11
- 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/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 +23 -23
|
@@ -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";
|
|
@@ -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'],
|
|
@@ -21,7 +21,71 @@ export declare const selectControlStyle: (styles: SelectStyles, state: SelectCon
|
|
|
21
21
|
':hover': {
|
|
22
22
|
borderColor: string;
|
|
23
23
|
};
|
|
24
|
+
borderWidth: number;
|
|
24
25
|
borderColor: string;
|
|
26
|
+
outlineWidth?: number | undefined;
|
|
27
|
+
outlineStyle?: "solid" | undefined;
|
|
28
|
+
outlineColor?: string | undefined;
|
|
29
|
+
outlineOffset?: number | undefined;
|
|
30
|
+
cursor: "pointer";
|
|
31
|
+
display: "flex";
|
|
32
|
+
flexDirection: "row";
|
|
33
|
+
alignItems: "center";
|
|
34
|
+
gap: string | number;
|
|
35
|
+
paddingLeft: number;
|
|
36
|
+
paddingRight: number;
|
|
37
|
+
minHeight: number;
|
|
38
|
+
borderRadius: import("@alveole/theme").Radius;
|
|
39
|
+
borderStyle: "solid";
|
|
40
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
41
|
+
width: "100%";
|
|
42
|
+
} | {
|
|
43
|
+
boxShadow: string;
|
|
44
|
+
outline: string;
|
|
45
|
+
':hover': {
|
|
46
|
+
borderColor: string;
|
|
47
|
+
};
|
|
48
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
49
|
+
cursor: "pointer";
|
|
50
|
+
display: "flex";
|
|
51
|
+
flexDirection: "row";
|
|
52
|
+
alignItems: "center";
|
|
53
|
+
gap: string | number;
|
|
54
|
+
paddingLeft: number;
|
|
55
|
+
paddingRight: number;
|
|
56
|
+
minHeight: number;
|
|
57
|
+
borderRadius: import("@alveole/theme").Radius;
|
|
58
|
+
borderWidth: number;
|
|
59
|
+
borderStyle: "solid";
|
|
60
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
61
|
+
width: "100%";
|
|
62
|
+
} | {
|
|
63
|
+
boxShadow: string;
|
|
64
|
+
outline: string;
|
|
65
|
+
':hover': {
|
|
66
|
+
borderColor: string;
|
|
67
|
+
};
|
|
68
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
69
|
+
cursor: "pointer";
|
|
70
|
+
display: "flex";
|
|
71
|
+
flexDirection: "row";
|
|
72
|
+
alignItems: "center";
|
|
73
|
+
gap: string | number;
|
|
74
|
+
paddingLeft: number;
|
|
75
|
+
paddingRight: number;
|
|
76
|
+
minHeight: number;
|
|
77
|
+
borderRadius: import("@alveole/theme").Radius;
|
|
78
|
+
borderWidth: number;
|
|
79
|
+
borderStyle: "solid";
|
|
80
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
81
|
+
width: "100%";
|
|
82
|
+
} | {
|
|
83
|
+
boxShadow: string;
|
|
84
|
+
outline: string;
|
|
85
|
+
':hover': {
|
|
86
|
+
borderColor: string;
|
|
87
|
+
};
|
|
88
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
25
89
|
cursor: "pointer";
|
|
26
90
|
display: "flex";
|
|
27
91
|
flexDirection: "row";
|
|
@@ -33,7 +97,7 @@ export declare const selectControlStyle: (styles: SelectStyles, state: SelectCon
|
|
|
33
97
|
borderRadius: import("@alveole/theme").Radius;
|
|
34
98
|
borderWidth: number;
|
|
35
99
|
borderStyle: "solid";
|
|
36
|
-
backgroundColor:
|
|
100
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
37
101
|
width: "100%";
|
|
38
102
|
} | {
|
|
39
103
|
boxShadow: string;
|
|
@@ -41,7 +105,71 @@ export declare const selectControlStyle: (styles: SelectStyles, state: SelectCon
|
|
|
41
105
|
':hover': {
|
|
42
106
|
borderColor: string;
|
|
43
107
|
};
|
|
108
|
+
borderWidth: number;
|
|
44
109
|
borderColor: string;
|
|
110
|
+
outlineWidth?: number | undefined;
|
|
111
|
+
outlineStyle?: "solid" | undefined;
|
|
112
|
+
outlineColor?: string | undefined;
|
|
113
|
+
outlineOffset?: number | undefined;
|
|
114
|
+
cursor: "not-allowed";
|
|
115
|
+
display: "flex";
|
|
116
|
+
flexDirection: "row";
|
|
117
|
+
alignItems: "center";
|
|
118
|
+
gap: string | number;
|
|
119
|
+
paddingLeft: number;
|
|
120
|
+
paddingRight: number;
|
|
121
|
+
minHeight: number;
|
|
122
|
+
borderRadius: import("@alveole/theme").Radius;
|
|
123
|
+
borderStyle: "solid";
|
|
124
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
125
|
+
width: "100%";
|
|
126
|
+
} | {
|
|
127
|
+
boxShadow: string;
|
|
128
|
+
outline: string;
|
|
129
|
+
':hover': {
|
|
130
|
+
borderColor: string;
|
|
131
|
+
};
|
|
132
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
133
|
+
cursor: "not-allowed";
|
|
134
|
+
display: "flex";
|
|
135
|
+
flexDirection: "row";
|
|
136
|
+
alignItems: "center";
|
|
137
|
+
gap: string | number;
|
|
138
|
+
paddingLeft: number;
|
|
139
|
+
paddingRight: number;
|
|
140
|
+
minHeight: number;
|
|
141
|
+
borderRadius: import("@alveole/theme").Radius;
|
|
142
|
+
borderWidth: number;
|
|
143
|
+
borderStyle: "solid";
|
|
144
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
145
|
+
width: "100%";
|
|
146
|
+
} | {
|
|
147
|
+
boxShadow: string;
|
|
148
|
+
outline: string;
|
|
149
|
+
':hover': {
|
|
150
|
+
borderColor: string;
|
|
151
|
+
};
|
|
152
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
153
|
+
cursor: "not-allowed";
|
|
154
|
+
display: "flex";
|
|
155
|
+
flexDirection: "row";
|
|
156
|
+
alignItems: "center";
|
|
157
|
+
gap: string | number;
|
|
158
|
+
paddingLeft: number;
|
|
159
|
+
paddingRight: number;
|
|
160
|
+
minHeight: number;
|
|
161
|
+
borderRadius: import("@alveole/theme").Radius;
|
|
162
|
+
borderWidth: number;
|
|
163
|
+
borderStyle: "solid";
|
|
164
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
165
|
+
width: "100%";
|
|
166
|
+
} | {
|
|
167
|
+
boxShadow: string;
|
|
168
|
+
outline: string;
|
|
169
|
+
':hover': {
|
|
170
|
+
borderColor: string;
|
|
171
|
+
};
|
|
172
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
45
173
|
cursor: "not-allowed";
|
|
46
174
|
display: "flex";
|
|
47
175
|
flexDirection: "row";
|
|
@@ -53,7 +181,7 @@ export declare const selectControlStyle: (styles: SelectStyles, state: SelectCon
|
|
|
53
181
|
borderRadius: import("@alveole/theme").Radius;
|
|
54
182
|
borderWidth: number;
|
|
55
183
|
borderStyle: "solid";
|
|
56
|
-
backgroundColor:
|
|
184
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
57
185
|
width: "100%";
|
|
58
186
|
};
|
|
59
187
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectControlStyle.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/selectControlStyle.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAQ,YAAY,EAAE,OAAO,kBAAkB
|
|
1
|
+
{"version":3,"file":"selectControlStyle.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/selectControlStyle.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAQ,YAAY,EAAE,OAAO,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBjF,CAAC"}
|
|
@@ -37,11 +37,11 @@ export declare const selectItemStyle: (styles: SelectListStyles, couleurs: {
|
|
|
37
37
|
borderRadius: import("@alveole/theme").Radius;
|
|
38
38
|
};
|
|
39
39
|
fondDeBande: {
|
|
40
|
-
default:
|
|
41
|
-
hover:
|
|
40
|
+
default: import("@alveole/theme").ThemeColor | undefined;
|
|
41
|
+
hover: import("@alveole/theme").ThemeColor | undefined;
|
|
42
42
|
};
|
|
43
43
|
label: {
|
|
44
|
-
color:
|
|
44
|
+
color: import("@alveole/theme").ThemeColor;
|
|
45
45
|
flex: number;
|
|
46
46
|
fontSize: 14;
|
|
47
47
|
lineHeight: 20;
|
|
@@ -51,8 +51,8 @@ export declare const selectItemStyle: (styles: SelectListStyles, couleurs: {
|
|
|
51
51
|
};
|
|
52
52
|
icone: string;
|
|
53
53
|
caseACocher: {
|
|
54
|
-
backgroundColor:
|
|
55
|
-
borderColor:
|
|
54
|
+
backgroundColor: import("@alveole/theme").ThemeColor | "transparent";
|
|
55
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
56
56
|
display: "flex";
|
|
57
57
|
alignItems: "center";
|
|
58
58
|
justifyContent: "center";
|