@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormControlCaptionProps } from './FormControlCaption';
|
|
3
|
-
import { TextInputProps } from './TextInput';
|
|
3
|
+
import { TextInputElement, TextInputProps } from './TextInput';
|
|
4
4
|
export type ChampHHMMProps = FormControlCaptionProps & {
|
|
5
5
|
value?: string;
|
|
6
6
|
onChange?: (value: string) => void;
|
|
@@ -17,6 +17,6 @@ export declare const ChampHHMM: React.ForwardRefExoticComponent<FormControlCapti
|
|
|
17
17
|
onChange?: (value: string) => void;
|
|
18
18
|
onBlur?: () => void;
|
|
19
19
|
disabled?: boolean;
|
|
20
|
-
} & ChampHHMMConfig & React.RefAttributes<
|
|
20
|
+
} & ChampHHMMConfig & React.RefAttributes<TextInputElement>>;
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=ChampHHMM.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChampHHMM.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/ChampHHMM.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,
|
|
1
|
+
{"version":3,"file":"ChampHHMM.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/ChampHHMM.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAa,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG1E,MAAM,MAAM,cAAc,GAAG,uBAAuB,GAAG;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACvC,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,cAAc,CAAC,CAAC;CAC7D,CAAC;AAEF,2GAA2G;AAC3G,eAAO,MAAM,SAAS;YAZZ,MAAM;eACH,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;aACzB,MAAM,IAAI;eACR,OAAO;4DA6BlB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextInput as ReactNativeTextInput } from 'react-native';
|
|
3
2
|
import { BoxProps } from '../../core/Box';
|
|
4
3
|
import { FormControlCaptionProps } from './FormControlCaption';
|
|
5
4
|
import { FormControlHintProps } from './FormControlHint';
|
|
6
5
|
import { FormControlLabelProps } from './FormControlLabel';
|
|
6
|
+
import { TextInputElement } from './TextInput.types';
|
|
7
7
|
export type FormControlProps = React.PropsWithChildren & Pick<FormControlHintProps, 'hint'> & FormControlCaptionProps & Pick<FormControlLabelProps, 'labelRight'> & {
|
|
8
8
|
label?: string;
|
|
9
9
|
disabled?: boolean;
|
|
@@ -17,5 +17,5 @@ export declare const FormControl: React.ForwardRefExoticComponent<{
|
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
required?: boolean;
|
|
19
19
|
style?: BoxProps["style"];
|
|
20
|
-
} & React.RefAttributes<
|
|
20
|
+
} & React.RefAttributes<TextInputElement>>;
|
|
21
21
|
//# sourceMappingURL=FormControl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAO,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI/C,OAAO,EAAsB,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAmB,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAoB,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,iBAAiB,GACpD,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,GAClC,uBAAuB,GACvB,IAAI,CAAC,qBAAqB,EAAE,YAAY,CAAC,GAAG;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CAC3B,CAAC;AAEJ,eAAO,MAAM,WAAW;;;YANZ,MAAM;eACH,OAAO;eACP,OAAO;YACV,QAAQ,CAAC,OAAO,CAAC;0CAsB3B,CAAC"}
|
|
@@ -10,7 +10,7 @@ declare const _default: {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
required?: boolean;
|
|
12
12
|
style?: import("../..").BoxProps["style"];
|
|
13
|
-
} & import("react").RefAttributes<import("
|
|
13
|
+
} & import("react").RefAttributes<import("./TextInput.types").TextInputElement>>;
|
|
14
14
|
styleFn: () => {
|
|
15
15
|
caption: {
|
|
16
16
|
display: "flex";
|
|
@@ -35,14 +35,14 @@ declare const _default: {
|
|
|
35
35
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
36
36
|
};
|
|
37
37
|
errorText: {
|
|
38
|
-
color:
|
|
38
|
+
color: import("@alveole/theme").ThemeColor;
|
|
39
39
|
};
|
|
40
40
|
successText: {
|
|
41
|
-
color:
|
|
41
|
+
color: import("@alveole/theme").ThemeColor;
|
|
42
42
|
};
|
|
43
43
|
modalOverlay: {
|
|
44
44
|
flex: number;
|
|
45
|
-
backgroundColor:
|
|
45
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
46
46
|
};
|
|
47
47
|
modalSheet: {
|
|
48
48
|
width: "100%";
|
|
@@ -80,12 +80,12 @@ declare const _default: {
|
|
|
80
80
|
modalInputContainer: {
|
|
81
81
|
borderRadius: import("@alveole/theme").Radius;
|
|
82
82
|
borderWidth: number;
|
|
83
|
-
borderColor:
|
|
83
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
84
84
|
backgroundColor: "#FFFFFF";
|
|
85
85
|
minHeight: number;
|
|
86
86
|
};
|
|
87
87
|
modalInput: {
|
|
88
|
-
color:
|
|
88
|
+
color: import("@alveole/theme").ThemeColor;
|
|
89
89
|
paddingLeft: string | number;
|
|
90
90
|
paddingRight: string | number;
|
|
91
91
|
paddingTop: string | number;
|
|
@@ -100,14 +100,14 @@ declare const _default: {
|
|
|
100
100
|
};
|
|
101
101
|
inputFocused: import("@alveole/theme").FocusBorderStyle;
|
|
102
102
|
inputError: {
|
|
103
|
-
borderColor:
|
|
103
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
104
104
|
};
|
|
105
105
|
inputSuccess: {
|
|
106
|
-
borderColor:
|
|
106
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
107
107
|
};
|
|
108
108
|
inputDisabled: {
|
|
109
|
-
backgroundColor:
|
|
110
|
-
borderColor:
|
|
109
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
110
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
111
111
|
};
|
|
112
112
|
inputContainer: {
|
|
113
113
|
width: "100%";
|
|
@@ -119,7 +119,7 @@ declare const _default: {
|
|
|
119
119
|
padding: number;
|
|
120
120
|
borderRadius: import("@alveole/theme").Radius;
|
|
121
121
|
borderWidth: number;
|
|
122
|
-
borderColor:
|
|
122
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
123
123
|
backgroundColor: "#FFFFFF";
|
|
124
124
|
overflow: "hidden";
|
|
125
125
|
width: "100%";
|
|
@@ -129,7 +129,7 @@ declare const _default: {
|
|
|
129
129
|
display: "flex";
|
|
130
130
|
flexDirection: "row";
|
|
131
131
|
outline: string;
|
|
132
|
-
color:
|
|
132
|
+
color: import("@alveole/theme").ThemeColor;
|
|
133
133
|
fontFamily: string;
|
|
134
134
|
fontSize: 14;
|
|
135
135
|
marginTop: string | number;
|
|
@@ -145,7 +145,7 @@ declare const _default: {
|
|
|
145
145
|
letterSpacing: 0;
|
|
146
146
|
fontFamily: string;
|
|
147
147
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
148
|
-
color:
|
|
148
|
+
color: import("@alveole/theme").ThemeColor;
|
|
149
149
|
};
|
|
150
150
|
inputWeb: {
|
|
151
151
|
borderWidth: number;
|
|
@@ -169,7 +169,7 @@ declare const _default: {
|
|
|
169
169
|
justifyContent: "space-between";
|
|
170
170
|
};
|
|
171
171
|
label: {
|
|
172
|
-
color:
|
|
172
|
+
color: import("@alveole/theme").ThemeColor;
|
|
173
173
|
fontSize: 14;
|
|
174
174
|
lineHeight: 20;
|
|
175
175
|
letterSpacing: 0;
|
|
@@ -177,7 +177,7 @@ declare const _default: {
|
|
|
177
177
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
178
178
|
};
|
|
179
179
|
labelDisabled: {
|
|
180
|
-
color:
|
|
180
|
+
color: import("@alveole/theme").ThemeColor;
|
|
181
181
|
};
|
|
182
182
|
hintContainer: {
|
|
183
183
|
display: "flex";
|
|
@@ -185,7 +185,7 @@ declare const _default: {
|
|
|
185
185
|
justifyContent: "space-between";
|
|
186
186
|
};
|
|
187
187
|
hint: {
|
|
188
|
-
color:
|
|
188
|
+
color: import("@alveole/theme").ThemeColor;
|
|
189
189
|
fontSize: 12;
|
|
190
190
|
lineHeight: 20;
|
|
191
191
|
letterSpacing: 0;
|
|
@@ -193,10 +193,10 @@ declare const _default: {
|
|
|
193
193
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
194
194
|
};
|
|
195
195
|
hintDisabled: {
|
|
196
|
-
color:
|
|
196
|
+
color: import("@alveole/theme").ThemeColor;
|
|
197
197
|
};
|
|
198
198
|
requiredMarker: {
|
|
199
|
-
color:
|
|
199
|
+
color: import("@alveole/theme").ThemeColor;
|
|
200
200
|
marginLeft: string | number;
|
|
201
201
|
fontSize: 14;
|
|
202
202
|
lineHeight: 20;
|
|
@@ -24,9 +24,9 @@ export default {
|
|
|
24
24
|
export const WithTextInput = () => (_jsxs(FormControl, { children: [_jsxs(InputHeading, { children: [_jsx(FormControlLabel, { label: "Adresse email" }), _jsx(FormControlHint, { hint: "Votre email professionnel" })] }), _jsx(TextInput, { placeholder: "jean@exemple.fr" })] }));
|
|
25
25
|
export const WithError = () => (_jsxs(FormControl, { children: [_jsx(InputHeading, { children: _jsx(FormControlLabel, { label: "Adresse email" }) }), _jsx(TextInput, { placeholder: "jean@exemple.fr" }), _jsx(FormControlCaption, { error: "Format invalide" })] }));
|
|
26
26
|
export const WithSuccess = () => (_jsxs(FormControl, { children: [_jsx(InputHeading, { children: _jsx(FormControlLabel, { label: "Adresse email" }) }), _jsx(TextInput, { placeholder: "jean@exemple.fr" }), _jsx(FormControlCaption, { success: "Email valide" })] }));
|
|
27
|
-
export const Label = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
28
|
-
export const Caption = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
29
|
-
export const Hint = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
27
|
+
export const Label = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(FormControlLabel, { label: "Label par defaut" }), _jsx(FormControlLabel, { label: "Desactive", disabled: true }), _jsx(FormControlLabel, { label: "Avec badge", labelRight: _jsx(Typography, { children: "Optionnel" }) })] }));
|
|
28
|
+
export const Caption = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(FormControlCaption, { error: "Champ requis" }), _jsx(FormControlCaption, { success: "Valeur correcte" })] }));
|
|
29
|
+
export const Hint = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(FormControlHint, { hint: "Texte descriptif du champ" }), _jsx(FormControlHint, { hint: "Texte desactive", disabled: true })] }));
|
|
30
30
|
export const Modal = () => {
|
|
31
31
|
const [open, setOpen] = useState(false);
|
|
32
32
|
return (_jsxs(Box, { children: [_jsx(Button, { variant: "secondary", title: "Ouvrir la modale", onPress: () => setOpen(true) }), _jsx(FormControlModal, { open: open, onClose: () => setOpen(false), submitLabel: "Valider", onSubmit: () => setOpen(false), children: _jsx(TextInput, { placeholder: "Saisir un texte...", multiline: true, numberOfLines: 6 }) })] }));
|
|
@@ -35,6 +35,6 @@ export const DateInput = () => {
|
|
|
35
35
|
const [date, setDate] = useState('');
|
|
36
36
|
const [time, setTime] = useState('');
|
|
37
37
|
const [month, setMonth] = useState('');
|
|
38
|
-
return (_jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
38
|
+
return (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3V", children: [_jsxs(FormControl, { children: [_jsx(InputHeading, { children: _jsx(FormControlLabel, { label: "Date" }) }), _jsx(DateInputControl, { type: "date", value: date, onChange: setDate })] }), _jsxs(FormControl, { children: [_jsx(InputHeading, { children: _jsx(FormControlLabel, { label: "Heure" }) }), _jsx(TimeInput, { value: time, onChange: setTime })] }), _jsxs(FormControl, { children: [_jsx(InputHeading, { children: _jsx(FormControlLabel, { label: "Mois" }) }), _jsx(DateInputControl, { type: "month", value: month, onChange: setMonth })] })] }));
|
|
39
39
|
};
|
|
40
40
|
export * as Sources from './FormControl.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControl.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/FormControl.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,cAAoS,CAAC;AAE/T,eAAO,MAAM,SAAS,cAAwR,CAAC;AAE/S,eAAO,MAAM,WAAW,cAAyR,CAAC;AAElT,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"FormControl.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/FormControl.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,cAAoS,CAAC;AAE/T,eAAO,MAAM,SAAS,cAAwR,CAAC;AAE/S,eAAO,MAAM,WAAW,cAAyR,CAAC;AAElT,eAAO,MAAM,KAAK,cAA8T,CAAC;AAEjV,eAAO,MAAM,OAAO,cAAgO,CAAC;AAErP,eAAO,MAAM,IAAI,cAAyO,CAAC;AAE3P,eAAO,MAAM,KAAK,cAA2f,CAAC;AAE9gB,eAAO,MAAM,SAAS,cAA83B,CAAC;AAEr5B,eAAO,MAAM,YAAY;;;;;;;;;CASf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
export const WithTextInput = () => "export const WithTextInput = () => (\n <FormControl>\n <InputHeading>\n <FormControlLabel label=\"Adresse email\" />\n <FormControlHint hint=\"Votre email professionnel\" />\n </InputHeading>\n <TextInput placeholder=\"jean@exemple.fr\" />\n </FormControl>\n);";
|
|
4
4
|
export const WithError = () => "export const WithError = () => (\n <FormControl>\n <InputHeading>\n <FormControlLabel label=\"Adresse email\" />\n </InputHeading>\n <TextInput placeholder=\"jean@exemple.fr\" />\n <FormControlCaption error=\"Format invalide\" />\n </FormControl>\n);";
|
|
5
5
|
export const WithSuccess = () => "export const WithSuccess = () => (\n <FormControl>\n <InputHeading>\n <FormControlLabel label=\"Adresse email\" />\n </InputHeading>\n <TextInput placeholder=\"jean@exemple.fr\" />\n <FormControlCaption success=\"Email valide\" />\n </FormControl>\n);";
|
|
6
|
-
export const Label = () => "export const Label = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
7
|
-
export const Caption = () => "export const Caption = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
8
|
-
export const Hint = () => "export const Hint = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
6
|
+
export const Label = () => "export const Label = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControlLabel label=\"Label par defaut\" />\n <FormControlLabel label=\"Desactive\" disabled />\n <FormControlLabel label=\"Avec badge\" labelRight={<Typography>Optionnel</Typography>} />\n </Box>\n);";
|
|
7
|
+
export const Caption = () => "export const Caption = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControlCaption error=\"Champ requis\" />\n <FormControlCaption success=\"Valeur correcte\" />\n </Box>\n);";
|
|
8
|
+
export const Hint = () => "export const Hint = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControlHint hint=\"Texte descriptif du champ\" />\n <FormControlHint hint=\"Texte desactive\" disabled />\n </Box>\n);";
|
|
9
9
|
export const Modal = () => "export const Modal = () => {\n const [open, setOpen] = useState(false);\n return (\n <Box>\n <Button variant=\"secondary\" title=\"Ouvrir la modale\" onPress={() => setOpen(true)} />\n <FormControlModal\n open={open}\n onClose={() => setOpen(false)}\n submitLabel=\"Valider\"\n onSubmit={() => setOpen(false)}\n >\n <TextInput placeholder=\"Saisir un texte...\" multiline numberOfLines={6} />\n </FormControlModal>\n </Box>\n );\n};";
|
|
10
|
-
export const DateInput = () => "export const DateInput = () => {\n const [date, setDate] = useState('');\n const [time, setTime] = useState('');\n const [month, setMonth] = useState('');\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
10
|
+
export const DateInput = () => "export const DateInput = () => {\n const [date, setDate] = useState('');\n const [time, setTime] = useState('');\n const [month, setMonth] = useState('');\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3V\">\n <FormControl>\n <InputHeading>\n <FormControlLabel label=\"Date\" />\n </InputHeading>\n <DateInputControl type=\"date\" value={date} onChange={setDate} />\n </FormControl>\n <FormControl>\n <InputHeading>\n <FormControlLabel label=\"Heure\" />\n </InputHeading>\n <TimeInput value={time} onChange={setTime} />\n </FormControl>\n <FormControl>\n <InputHeading>\n <FormControlLabel label=\"Mois\" />\n </InputHeading>\n <DateInputControl type=\"month\" value={month} onChange={setMonth} />\n </FormControl>\n </Box>\n );\n};";
|
|
11
11
|
export const storySources = {
|
|
12
12
|
WithTextInput,
|
|
13
13
|
WithError,
|
|
@@ -22,14 +22,14 @@ export declare const useStyles: () => {
|
|
|
22
22
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
23
23
|
};
|
|
24
24
|
errorText: {
|
|
25
|
-
color:
|
|
25
|
+
color: import("@alveole/theme").ThemeColor;
|
|
26
26
|
};
|
|
27
27
|
successText: {
|
|
28
|
-
color:
|
|
28
|
+
color: import("@alveole/theme").ThemeColor;
|
|
29
29
|
};
|
|
30
30
|
modalOverlay: {
|
|
31
31
|
flex: number;
|
|
32
|
-
backgroundColor:
|
|
32
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
33
33
|
};
|
|
34
34
|
modalSheet: {
|
|
35
35
|
width: "100%";
|
|
@@ -67,12 +67,12 @@ export declare const useStyles: () => {
|
|
|
67
67
|
modalInputContainer: {
|
|
68
68
|
borderRadius: import("@alveole/theme").Radius;
|
|
69
69
|
borderWidth: number;
|
|
70
|
-
borderColor:
|
|
70
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
71
71
|
backgroundColor: "#FFFFFF";
|
|
72
72
|
minHeight: number;
|
|
73
73
|
};
|
|
74
74
|
modalInput: {
|
|
75
|
-
color:
|
|
75
|
+
color: import("@alveole/theme").ThemeColor;
|
|
76
76
|
paddingLeft: string | number;
|
|
77
77
|
paddingRight: string | number;
|
|
78
78
|
paddingTop: string | number;
|
|
@@ -87,14 +87,14 @@ export declare const useStyles: () => {
|
|
|
87
87
|
};
|
|
88
88
|
inputFocused: import("@alveole/theme").FocusBorderStyle;
|
|
89
89
|
inputError: {
|
|
90
|
-
borderColor:
|
|
90
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
91
91
|
};
|
|
92
92
|
inputSuccess: {
|
|
93
|
-
borderColor:
|
|
93
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
94
94
|
};
|
|
95
95
|
inputDisabled: {
|
|
96
|
-
backgroundColor:
|
|
97
|
-
borderColor:
|
|
96
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
97
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
98
98
|
};
|
|
99
99
|
inputContainer: {
|
|
100
100
|
width: "100%";
|
|
@@ -106,7 +106,7 @@ export declare const useStyles: () => {
|
|
|
106
106
|
padding: number;
|
|
107
107
|
borderRadius: import("@alveole/theme").Radius;
|
|
108
108
|
borderWidth: number;
|
|
109
|
-
borderColor:
|
|
109
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
110
110
|
backgroundColor: "#FFFFFF";
|
|
111
111
|
overflow: "hidden";
|
|
112
112
|
width: "100%";
|
|
@@ -116,7 +116,7 @@ export declare const useStyles: () => {
|
|
|
116
116
|
display: "flex";
|
|
117
117
|
flexDirection: "row";
|
|
118
118
|
outline: string;
|
|
119
|
-
color:
|
|
119
|
+
color: import("@alveole/theme").ThemeColor;
|
|
120
120
|
fontFamily: string;
|
|
121
121
|
fontSize: 14;
|
|
122
122
|
marginTop: string | number;
|
|
@@ -132,7 +132,7 @@ export declare const useStyles: () => {
|
|
|
132
132
|
letterSpacing: 0;
|
|
133
133
|
fontFamily: string;
|
|
134
134
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
135
|
-
color:
|
|
135
|
+
color: import("@alveole/theme").ThemeColor;
|
|
136
136
|
};
|
|
137
137
|
inputWeb: {
|
|
138
138
|
borderWidth: number;
|
|
@@ -156,7 +156,7 @@ export declare const useStyles: () => {
|
|
|
156
156
|
justifyContent: "space-between";
|
|
157
157
|
};
|
|
158
158
|
label: {
|
|
159
|
-
color:
|
|
159
|
+
color: import("@alveole/theme").ThemeColor;
|
|
160
160
|
fontSize: 14;
|
|
161
161
|
lineHeight: 20;
|
|
162
162
|
letterSpacing: 0;
|
|
@@ -164,7 +164,7 @@ export declare const useStyles: () => {
|
|
|
164
164
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
165
165
|
};
|
|
166
166
|
labelDisabled: {
|
|
167
|
-
color:
|
|
167
|
+
color: import("@alveole/theme").ThemeColor;
|
|
168
168
|
};
|
|
169
169
|
hintContainer: {
|
|
170
170
|
display: "flex";
|
|
@@ -172,7 +172,7 @@ export declare const useStyles: () => {
|
|
|
172
172
|
justifyContent: "space-between";
|
|
173
173
|
};
|
|
174
174
|
hint: {
|
|
175
|
-
color:
|
|
175
|
+
color: import("@alveole/theme").ThemeColor;
|
|
176
176
|
fontSize: 12;
|
|
177
177
|
lineHeight: 20;
|
|
178
178
|
letterSpacing: 0;
|
|
@@ -180,10 +180,10 @@ export declare const useStyles: () => {
|
|
|
180
180
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
181
181
|
};
|
|
182
182
|
hintDisabled: {
|
|
183
|
-
color:
|
|
183
|
+
color: import("@alveole/theme").ThemeColor;
|
|
184
184
|
};
|
|
185
185
|
requiredMarker: {
|
|
186
|
-
color:
|
|
186
|
+
color: import("@alveole/theme").ThemeColor;
|
|
187
187
|
marginLeft: string | number;
|
|
188
188
|
fontSize: 14;
|
|
189
189
|
lineHeight: 20;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { TextInputElement } from './TextInput';
|
|
2
3
|
export type NumberInputElement = HTMLInputElement;
|
|
3
4
|
export type NumberInputProps = {
|
|
4
5
|
value?: number | null;
|
|
@@ -17,5 +18,5 @@ export type NumberInputProps = {
|
|
|
17
18
|
controlButton?: boolean;
|
|
18
19
|
};
|
|
19
20
|
/** Le natif n'a pas de champ nombre : c'est un champ texte au pave numerique, qui rend un nombre. */
|
|
20
|
-
export declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<
|
|
21
|
+
export declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<TextInputElement>>;
|
|
21
22
|
//# sourceMappingURL=NumberInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAa,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;IACzD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,WAAW,2FActB,CAAC"}
|
|
@@ -3,7 +3,7 @@ declare const _default: {
|
|
|
3
3
|
tags: "ui"[];
|
|
4
4
|
experimental: false;
|
|
5
5
|
description: string;
|
|
6
|
-
component: import("react").ForwardRefExoticComponent<import("./NumberInput").NumberInputProps & import("react").RefAttributes<import("
|
|
6
|
+
component: import("react").ForwardRefExoticComponent<import("./NumberInput").NumberInputProps & import("react").RefAttributes<import("./TextInput.types").TextInputElement>>;
|
|
7
7
|
styleFn: () => {
|
|
8
8
|
caption: {
|
|
9
9
|
display: "flex";
|
|
@@ -28,14 +28,14 @@ declare const _default: {
|
|
|
28
28
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
29
29
|
};
|
|
30
30
|
errorText: {
|
|
31
|
-
color:
|
|
31
|
+
color: import("@alveole/theme").ThemeColor;
|
|
32
32
|
};
|
|
33
33
|
successText: {
|
|
34
|
-
color:
|
|
34
|
+
color: import("@alveole/theme").ThemeColor;
|
|
35
35
|
};
|
|
36
36
|
modalOverlay: {
|
|
37
37
|
flex: number;
|
|
38
|
-
backgroundColor:
|
|
38
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
39
39
|
};
|
|
40
40
|
modalSheet: {
|
|
41
41
|
width: "100%";
|
|
@@ -73,12 +73,12 @@ declare const _default: {
|
|
|
73
73
|
modalInputContainer: {
|
|
74
74
|
borderRadius: import("@alveole/theme").Radius;
|
|
75
75
|
borderWidth: number;
|
|
76
|
-
borderColor:
|
|
76
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
77
77
|
backgroundColor: "#FFFFFF";
|
|
78
78
|
minHeight: number;
|
|
79
79
|
};
|
|
80
80
|
modalInput: {
|
|
81
|
-
color:
|
|
81
|
+
color: import("@alveole/theme").ThemeColor;
|
|
82
82
|
paddingLeft: string | number;
|
|
83
83
|
paddingRight: string | number;
|
|
84
84
|
paddingTop: string | number;
|
|
@@ -93,14 +93,14 @@ declare const _default: {
|
|
|
93
93
|
};
|
|
94
94
|
inputFocused: import("@alveole/theme").FocusBorderStyle;
|
|
95
95
|
inputError: {
|
|
96
|
-
borderColor:
|
|
96
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
97
97
|
};
|
|
98
98
|
inputSuccess: {
|
|
99
|
-
borderColor:
|
|
99
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
100
100
|
};
|
|
101
101
|
inputDisabled: {
|
|
102
|
-
backgroundColor:
|
|
103
|
-
borderColor:
|
|
102
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
103
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
104
104
|
};
|
|
105
105
|
inputContainer: {
|
|
106
106
|
width: "100%";
|
|
@@ -112,7 +112,7 @@ declare const _default: {
|
|
|
112
112
|
padding: number;
|
|
113
113
|
borderRadius: import("@alveole/theme").Radius;
|
|
114
114
|
borderWidth: number;
|
|
115
|
-
borderColor:
|
|
115
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
116
116
|
backgroundColor: "#FFFFFF";
|
|
117
117
|
overflow: "hidden";
|
|
118
118
|
width: "100%";
|
|
@@ -122,7 +122,7 @@ declare const _default: {
|
|
|
122
122
|
display: "flex";
|
|
123
123
|
flexDirection: "row";
|
|
124
124
|
outline: string;
|
|
125
|
-
color:
|
|
125
|
+
color: import("@alveole/theme").ThemeColor;
|
|
126
126
|
fontFamily: string;
|
|
127
127
|
fontSize: 14;
|
|
128
128
|
marginTop: string | number;
|
|
@@ -138,7 +138,7 @@ declare const _default: {
|
|
|
138
138
|
letterSpacing: 0;
|
|
139
139
|
fontFamily: string;
|
|
140
140
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
141
|
-
color:
|
|
141
|
+
color: import("@alveole/theme").ThemeColor;
|
|
142
142
|
};
|
|
143
143
|
inputWeb: {
|
|
144
144
|
borderWidth: number;
|
|
@@ -162,7 +162,7 @@ declare const _default: {
|
|
|
162
162
|
justifyContent: "space-between";
|
|
163
163
|
};
|
|
164
164
|
label: {
|
|
165
|
-
color:
|
|
165
|
+
color: import("@alveole/theme").ThemeColor;
|
|
166
166
|
fontSize: 14;
|
|
167
167
|
lineHeight: 20;
|
|
168
168
|
letterSpacing: 0;
|
|
@@ -170,7 +170,7 @@ declare const _default: {
|
|
|
170
170
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
171
171
|
};
|
|
172
172
|
labelDisabled: {
|
|
173
|
-
color:
|
|
173
|
+
color: import("@alveole/theme").ThemeColor;
|
|
174
174
|
};
|
|
175
175
|
hintContainer: {
|
|
176
176
|
display: "flex";
|
|
@@ -178,7 +178,7 @@ declare const _default: {
|
|
|
178
178
|
justifyContent: "space-between";
|
|
179
179
|
};
|
|
180
180
|
hint: {
|
|
181
|
-
color:
|
|
181
|
+
color: import("@alveole/theme").ThemeColor;
|
|
182
182
|
fontSize: 12;
|
|
183
183
|
lineHeight: 20;
|
|
184
184
|
letterSpacing: 0;
|
|
@@ -186,10 +186,10 @@ declare const _default: {
|
|
|
186
186
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
187
187
|
};
|
|
188
188
|
hintDisabled: {
|
|
189
|
-
color:
|
|
189
|
+
color: import("@alveole/theme").ThemeColor;
|
|
190
190
|
};
|
|
191
191
|
requiredMarker: {
|
|
192
|
-
color:
|
|
192
|
+
color: import("@alveole/theme").ThemeColor;
|
|
193
193
|
marginLeft: string | number;
|
|
194
194
|
fontSize: 14;
|
|
195
195
|
lineHeight: 20;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/NumberInput.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"NumberInput.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/NumberInput.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBAQkB;AAElB,eAAO,MAAM,OAAO,mCAOnB,CAAC;AAEF,eAAO,MAAM,UAAU,mCAoBtB,CAAC;AAEF,eAAO,MAAM,SAAS,mCAIrB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Spacings } from '@alveole/theme';
|
|
2
3
|
import { useState } from 'react';
|
|
3
4
|
import { Box } from '../../core/Box';
|
|
4
5
|
import { Typography } from '../../core/Typography';
|
|
@@ -19,7 +20,7 @@ export const Default = () => {
|
|
|
19
20
|
};
|
|
20
21
|
export const AvecUnites = () => {
|
|
21
22
|
const [value, setValue] = useState(null);
|
|
22
|
-
return (_jsx(FormControl, { label: "Avec unit\u00E9s", children: _jsx(NumberInput, { value: value, onChange: setValue, startAdornment: _jsx(Box, { style: { paddingLeft:
|
|
23
|
+
return (_jsx(FormControl, { label: "Avec unit\u00E9s", children: _jsx(NumberInput, { value: value, onChange: setValue, startAdornment: _jsx(Box, { style: { paddingLeft: Spacings['1W'], paddingRight: Spacings['1V'] }, children: _jsx(Typography, { children: "\u20AC" }) }), endAdornment: _jsx(Box, { style: { paddingLeft: Spacings['1V'], paddingRight: Spacings['1W'] }, children: _jsx(Typography, { children: "TTC" }) }) }) }));
|
|
23
24
|
};
|
|
24
25
|
export const Desactive = () => (_jsx(FormControl, { label: "D\u00E9sactiv\u00E9", children: _jsx(NumberInput, { value: 42, onChange: () => { }, disabled: true }) }));
|
|
25
26
|
export * as Sources from './NumberInput.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/NumberInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAsQ,CAAC;AAE3R,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"NumberInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/NumberInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAsQ,CAAC;AAE3R,eAAO,MAAM,UAAU,cAAynB,CAAC;AAEjpB,eAAO,MAAM,SAAS,cAAmK,CAAC;AAE1L,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/ui/FormControl/NumberInput.stories.tsx
|
|
3
3
|
export const Default = () => "export const Default = () => {\n const [value, setValue] = useState<number | null>(null);\n return (\n <FormControl label=\"Montant\">\n <NumberInput value={value} onChange={setValue} placeholder=\"Quantité\" />\n </FormControl>\n );\n};";
|
|
4
|
-
export const AvecUnites = () => "export const AvecUnites = () => {\n const [value, setValue] = useState<number | null>(null);\n return (\n <FormControl label=\"Avec unités\">\n <NumberInput\n value={value}\n onChange={setValue}\n startAdornment={\n <Box style={{ paddingLeft:
|
|
4
|
+
export const AvecUnites = () => "export const AvecUnites = () => {\n const [value, setValue] = useState<number | null>(null);\n return (\n <FormControl label=\"Avec unités\">\n <NumberInput\n value={value}\n onChange={setValue}\n startAdornment={\n <Box style={{ paddingLeft: Spacings['1W'], paddingRight: Spacings['1V'] }}>\n <Typography>€</Typography>\n </Box>\n }\n endAdornment={\n <Box style={{ paddingLeft: Spacings['1V'], paddingRight: Spacings['1W'] }}>\n <Typography>TTC</Typography>\n </Box>\n }\n />\n </FormControl>\n );\n};";
|
|
5
5
|
export const Desactive = () => "export const Desactive = () => (\n <FormControl label=\"Désactivé\">\n <NumberInput value={42} onChange={() => {}} disabled />\n </FormControl>\n);";
|
|
6
6
|
export const storySources = {
|
|
7
7
|
Default,
|
|
@@ -18,7 +18,7 @@ declare const _default: {
|
|
|
18
18
|
pinCodeContainerStyle: {
|
|
19
19
|
borderRadius: import("@alveole/theme").Radius;
|
|
20
20
|
borderWidth: number;
|
|
21
|
-
borderColor:
|
|
21
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
22
22
|
backgroundColor: "#FFFFFF";
|
|
23
23
|
overflow: "hidden";
|
|
24
24
|
height: import("@alveole/theme").Spacing;
|
|
@@ -27,13 +27,13 @@ declare const _default: {
|
|
|
27
27
|
alignItems: "center";
|
|
28
28
|
};
|
|
29
29
|
pinCodeContainerStyleDisabled: {
|
|
30
|
-
backgroundColor:
|
|
30
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
31
31
|
};
|
|
32
32
|
pinCodeContainerStyleError: {
|
|
33
|
-
borderColor:
|
|
33
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
34
34
|
};
|
|
35
35
|
pinCodeContainerStyleSuccess: {
|
|
36
|
-
borderColor:
|
|
36
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
37
37
|
};
|
|
38
38
|
focusedPinCodeContainerStyle: import("@alveole/theme").FocusBorderStyle;
|
|
39
39
|
hiddenInputStyle: {
|
|
@@ -48,7 +48,7 @@ declare const _default: {
|
|
|
48
48
|
letterSpacing: 0;
|
|
49
49
|
fontFamily: string;
|
|
50
50
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
51
|
-
color:
|
|
51
|
+
color: import("@alveole/theme").ThemeColor;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
};
|
|
@@ -11,5 +11,5 @@ export default {
|
|
|
11
11
|
component: OtpInput,
|
|
12
12
|
styleFn: useStyles,
|
|
13
13
|
};
|
|
14
|
-
export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
14
|
+
export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(FormControl, { label: "Code de v\u00E9rification", children: _jsx(OtpInput, { numberOfDigits: 4, onChange: () => { } }) }), _jsx(FormControl, { label: "Avec erreur", error: "Code invalide", children: _jsx(OtpInput, { numberOfDigits: 4, onChange: () => { }, error: "Code invalide" }) }), _jsx(FormControl, { label: "Avec succ\u00E8s", success: "Code v\u00E9rifi\u00E9", children: _jsx(OtpInput, { numberOfDigits: 4, onChange: () => { }, success: "Code v\u00E9rifi\u00E9" }) }), _jsx(FormControl, { label: "D\u00E9sactiv\u00E9", disabled: true, children: _jsx(OtpInput, { numberOfDigits: 4, onChange: () => { }, disabled: true }) })] }));
|
|
15
15
|
export * as Sources from './OtpInput.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtpInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/OtpInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"OtpInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/OtpInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAgtB,CAAC;AAEruB,eAAO,MAAM,YAAY;;CAEf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/ui/FormControl/OtpInput.stories.tsx
|
|
3
|
-
export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
3
|
+
export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Code de vérification\">\n <OtpInput numberOfDigits={4} onChange={() => {}} />\n </FormControl>\n <FormControl label=\"Avec erreur\" error=\"Code invalide\">\n <OtpInput numberOfDigits={4} onChange={() => {}} error=\"Code invalide\" />\n </FormControl>\n <FormControl label=\"Avec succès\" success=\"Code vérifié\">\n <OtpInput numberOfDigits={4} onChange={() => {}} success=\"Code vérifié\" />\n </FormControl>\n <FormControl label=\"Désactivé\" disabled>\n <OtpInput numberOfDigits={4} onChange={() => {}} disabled />\n </FormControl>\n </Box>\n);";
|
|
4
4
|
export const storySources = {
|
|
5
5
|
Default,
|
|
6
6
|
};
|