@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAS,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,cAAc,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AASrG,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IACzE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AA4BF,eAAO,MAAM,MAAM;SAlCZ,MAAM;YACH,MAAM;YACN,aAAa;YACb,MAAM;cACJ,MAAM;gBACJ,OAAO;
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAS,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,cAAc,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AASrG,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IACzE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AA4BF,eAAO,MAAM,MAAM;SAlCZ,MAAM;YACH,MAAM;YACN,aAAa;YACb,MAAM;cACJ,MAAM;gBACJ,OAAO;wCA6FnB,CAAC"}
|
package/dist/ui/Switch/Switch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { focusRingProps
|
|
2
|
+
import { focusRingProps } from '@alveole/theme';
|
|
3
3
|
import React, { useId } from 'react';
|
|
4
4
|
import { Platform, Pressable } from 'react-native';
|
|
5
5
|
import { Switch as TamaguiSwitch } from 'tamagui';
|
|
@@ -23,7 +23,6 @@ export const Switch = React.forwardRef(function Switch(props, ref) {
|
|
|
23
23
|
const isControlled = checked !== undefined;
|
|
24
24
|
const [model, setModel] = React.useState(Boolean(checked));
|
|
25
25
|
const value = isControlled ? checked : model;
|
|
26
|
-
const { spacingValue } = useTheme();
|
|
27
26
|
const styles = useStyles();
|
|
28
27
|
const uniqId = useId();
|
|
29
28
|
id = id || `switch--${uniqId}`;
|
|
@@ -35,5 +34,5 @@ export const Switch = React.forwardRef(function Switch(props, ref) {
|
|
|
35
34
|
const { bouton, pouce, libelle } = apparenceDuSwitch(styles, { value, disabled, noPadding, style });
|
|
36
35
|
const Toggle = (_jsx(TamaguiSwitch, { id: id, ref: ref, borderWidth: 1, ...DIMENSIONS_DE_LA_PISTE, checked: value, onCheckedChange: onChange, style: bouton, disabled: disabled, accessibilityLabel: label, accessibilityRole: "switch", accessibilityState: { checked: Boolean(value), disabled: Boolean(disabled) }, ...focusRingProps(), ...switchProps, children: _jsx(TamaguiSwitch.Thumb, { ...animer('quicker'), width: POUCE, height: POUCE, style: pouce }) }));
|
|
37
36
|
const ToggleWithLabel = (_jsxs(_Fragment, { children: [_jsx(SwitchLabel, { id: id, checked: value, disabled: disabled, onChange: onChange, children: _jsxs(Box, { tag: "switch", style: styles.switch, children: [Toggle, !!label && (_jsx(Typography, { htmlFor: id, style: libelle, children: label }))] }) }), (error ?? success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
38
|
-
return (_jsx(Box, { tag: "switch", gap: error || success ?
|
|
37
|
+
return (_jsx(Box, { tag: "switch", gap: error || success ? '1W' : '0V', style: styles.switchContainer, children: !label ? Toggle : ToggleWithLabel }));
|
|
39
38
|
});
|
|
@@ -20,8 +20,8 @@ declare const _default: {
|
|
|
20
20
|
paddingRight: string | number;
|
|
21
21
|
};
|
|
22
22
|
switchButton: {
|
|
23
|
-
borderColor:
|
|
24
|
-
backgroundColor:
|
|
23
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
24
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
25
25
|
cursor: "pointer";
|
|
26
26
|
padding: number;
|
|
27
27
|
minHeight: string | number;
|
|
@@ -29,29 +29,29 @@ declare const _default: {
|
|
|
29
29
|
marginBottom: string;
|
|
30
30
|
};
|
|
31
31
|
switchButtonChecked: {
|
|
32
|
-
backgroundColor:
|
|
32
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
33
33
|
};
|
|
34
34
|
switchButtonDisabled: {
|
|
35
35
|
opacity: 1;
|
|
36
|
-
backgroundColor:
|
|
36
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
37
37
|
cursor: "not-allowed";
|
|
38
38
|
};
|
|
39
39
|
switchThumb: {
|
|
40
40
|
borderWidth: number;
|
|
41
|
-
borderColor:
|
|
42
|
-
backgroundColor:
|
|
41
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
42
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
43
43
|
boxShadow: "none";
|
|
44
44
|
};
|
|
45
45
|
switchThumbChecked: {
|
|
46
|
-
backgroundColor:
|
|
46
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
47
47
|
};
|
|
48
48
|
switchThumbDisabled: {
|
|
49
|
-
backgroundColor:
|
|
49
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
50
50
|
cursor: "not-allowed";
|
|
51
51
|
borderColor: "#FFFFFF";
|
|
52
52
|
};
|
|
53
53
|
switchLabel: {
|
|
54
|
-
color:
|
|
54
|
+
color: import("@alveole/theme").ThemeColor;
|
|
55
55
|
fontSize: 14;
|
|
56
56
|
lineHeight: 20;
|
|
57
57
|
letterSpacing: 0;
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
component: Switch,
|
|
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(Switch, { label: "Non activ\u00E9" }), _jsx(Switch, { label: "Activ\u00E9", checked: true }), _jsx(Switch, { label: "D\u00E9sactiv\u00E9", disabled: true }), _jsx(Switch, { label: "Activ\u00E9 d\u00E9sactiv\u00E9", checked: true, disabled: true })] }));
|
|
15
15
|
export const Controlled = () => {
|
|
16
16
|
const [value, setValue] = useState(false);
|
|
17
17
|
return _jsx(Switch, { label: value ? 'Activé' : 'Désactivé', checked: value, onCheckedChange: v => setValue(!!v) });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Switch.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA4S,CAAC;AAEjU,eAAO,MAAM,UAAU,cAAgN,CAAC;AAExO,eAAO,MAAM,YAAY;;;CAGf,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/Switch/Switch.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 <Switch label=\"Non activé\" />\n <Switch label=\"Activé\" checked />\n <Switch label=\"Désactivé\" disabled />\n <Switch label=\"Activé désactivé\" checked disabled />\n </Box>\n);";
|
|
4
4
|
export const Controlled = () => "export const Controlled = () => {\n const [value, setValue] = useState(false);\n return <Switch label={value ? 'Activé' : 'Désactivé'} checked={value} onCheckedChange={v => setValue(!!v)} />;\n};";
|
|
5
5
|
export const storySources = {
|
|
6
6
|
Default,
|
|
@@ -7,8 +7,8 @@ export declare const useStyles: () => {
|
|
|
7
7
|
paddingRight: string | number;
|
|
8
8
|
};
|
|
9
9
|
switchButton: {
|
|
10
|
-
borderColor:
|
|
11
|
-
backgroundColor:
|
|
10
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
11
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
12
12
|
cursor: "pointer";
|
|
13
13
|
padding: number;
|
|
14
14
|
minHeight: string | number;
|
|
@@ -16,29 +16,29 @@ export declare const useStyles: () => {
|
|
|
16
16
|
marginBottom: string;
|
|
17
17
|
};
|
|
18
18
|
switchButtonChecked: {
|
|
19
|
-
backgroundColor:
|
|
19
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
20
20
|
};
|
|
21
21
|
switchButtonDisabled: {
|
|
22
22
|
opacity: 1;
|
|
23
|
-
backgroundColor:
|
|
23
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
24
24
|
cursor: "not-allowed";
|
|
25
25
|
};
|
|
26
26
|
switchThumb: {
|
|
27
27
|
borderWidth: number;
|
|
28
|
-
borderColor:
|
|
29
|
-
backgroundColor:
|
|
28
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
29
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
30
30
|
boxShadow: "none";
|
|
31
31
|
};
|
|
32
32
|
switchThumbChecked: {
|
|
33
|
-
backgroundColor:
|
|
33
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
34
34
|
};
|
|
35
35
|
switchThumbDisabled: {
|
|
36
|
-
backgroundColor:
|
|
36
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
37
37
|
cursor: "not-allowed";
|
|
38
38
|
borderColor: "#FFFFFF";
|
|
39
39
|
};
|
|
40
40
|
switchLabel: {
|
|
41
|
-
color:
|
|
41
|
+
color: import("@alveole/theme").ThemeColor;
|
|
42
42
|
fontSize: 14;
|
|
43
43
|
lineHeight: 20;
|
|
44
44
|
letterSpacing: 0;
|
|
@@ -8,10 +8,10 @@ declare const _default: {
|
|
|
8
8
|
component: (props: import("./Tabs").TabsProps) => React.JSX.Element;
|
|
9
9
|
styleFn: () => {
|
|
10
10
|
tabIcon: {
|
|
11
|
-
color:
|
|
11
|
+
color: import("@alveole/theme").ThemeColor;
|
|
12
12
|
};
|
|
13
13
|
tabIconHover: {
|
|
14
|
-
color:
|
|
14
|
+
color: import("@alveole/theme").ThemeColor;
|
|
15
15
|
};
|
|
16
16
|
tabsLabel: {
|
|
17
17
|
fontSize: 14;
|
|
@@ -47,7 +47,7 @@ declare const _default: {
|
|
|
47
47
|
cursor: "pointer";
|
|
48
48
|
};
|
|
49
49
|
tabsTabActive: {
|
|
50
|
-
borderBottomColor:
|
|
50
|
+
borderBottomColor: import("@alveole/theme").ThemeColor;
|
|
51
51
|
borderBottomWidth: number;
|
|
52
52
|
};
|
|
53
53
|
wrapper: {
|
|
@@ -68,7 +68,7 @@ declare const _default: {
|
|
|
68
68
|
display: "flex";
|
|
69
69
|
flexDirection: "row";
|
|
70
70
|
alignItems: "center";
|
|
71
|
-
backgroundColor:
|
|
71
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
72
72
|
};
|
|
73
73
|
container: {
|
|
74
74
|
flex: number;
|
|
@@ -97,7 +97,7 @@ declare const _default: {
|
|
|
97
97
|
borderBottomRightRadius: string | number;
|
|
98
98
|
gap: string | number;
|
|
99
99
|
boxSizing: "border-box";
|
|
100
|
-
borderColor:
|
|
100
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
101
101
|
borderBottomWidth: number;
|
|
102
102
|
backgroundColor: "transparent";
|
|
103
103
|
overflowX: "scroll";
|
|
@@ -122,5 +122,6 @@ declare const _default: {
|
|
|
122
122
|
export default _default;
|
|
123
123
|
export declare const Example: () => React.JSX.Element;
|
|
124
124
|
export declare const Controle: () => React.JSX.Element;
|
|
125
|
+
export declare const OngletUnique: () => React.JSX.Element;
|
|
125
126
|
export * as Sources from './Tabs.stories.sources';
|
|
126
127
|
//# sourceMappingURL=Tabs.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQ1B,wBAQkB;AAElB,eAAO,MAAM,OAAO,yBAuBnB,CAAC;AAIF,eAAO,MAAM,QAAQ,yBAiBpB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQ1B,wBAQkB;AAElB,eAAO,MAAM,OAAO,yBAuBnB,CAAC;AAIF,eAAO,MAAM,QAAQ,yBAiBpB,CAAC;AAGF,eAAO,MAAM,YAAY,yBAKxB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
|
|
@@ -37,6 +37,8 @@ export const Controle = () => {
|
|
|
37
37
|
{ label: 'Onglet 3', value: 'onglet-3', content: _jsx(Typography, { children: "Contenu de onglet 3" }) },
|
|
38
38
|
];
|
|
39
39
|
const [ongletActif, setOngletActif] = React.useState('onglet-1');
|
|
40
|
-
return (_jsxs(Box, { width: '100%', gap:
|
|
40
|
+
return (_jsxs(Box, { width: '100%', gap: "2W", children: [_jsxs(Box, { flexDirection: "row", gap: "1W", children: [_jsx(Button, { title: "Aller \u00E0 l\u2019onglet 1", variant: "secondary", onPress: () => setOngletActif('onglet-1') }), _jsx(Button, { title: "Aller \u00E0 l\u2019onglet 3", variant: "secondary", onPress: () => setOngletActif('onglet-3') })] }), _jsx(Tabs, { value: ongletActif, onChange: index => setOngletActif(onglets[index].value), tabs: onglets })] }));
|
|
41
41
|
};
|
|
42
|
+
// Un onglet seul est desactive : il garde pourtant sa pleine opacite.
|
|
43
|
+
export const OngletUnique = () => (_jsx(Tabs, { defaultValue: "seul", tabs: [{ label: 'Onglet seul', value: 'seul', content: _jsx(Typography, { children: "Contenu de l onglet seul" }) }] }));
|
|
42
44
|
export * as Sources from './Tabs.stories.sources';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export declare const Example: () => string;
|
|
2
2
|
export declare const Controle: () => string;
|
|
3
|
+
export declare const OngletUnique: () => string;
|
|
3
4
|
export declare const storySources: {
|
|
4
5
|
readonly Example: () => string;
|
|
5
6
|
readonly Controle: () => string;
|
|
7
|
+
readonly OngletUnique: () => string;
|
|
6
8
|
};
|
|
7
9
|
export type StorySourceName = keyof typeof storySources;
|
|
8
10
|
//# sourceMappingURL=Tabs.stories.sources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAk1B,CAAC;AAEv2B,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"Tabs.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAk1B,CAAC;AAEv2B,eAAO,MAAM,QAAQ,cAAi5B,CAAC;AAEv6B,eAAO,MAAM,YAAY,cAA8M,CAAC;AAExO,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/ui/Tabs/Tabs.stories.tsx
|
|
3
3
|
export const Example = () => "export const Example = () => {\n const [_activeTab, setActiveTab] = React.useState(0);\n\n return (\n <Box width={'100%'}>\n <Tabs\n defaultValue={'onglet-1'}\n onChange={setActiveTab}\n urlAnchorPrefix=\"tabs-story\"\n tabs={[\n { label: 'Onglet 1', value: 'onglet-1', content: <Typography>Contenu de onglet 1</Typography> },\n { label: 'Onglet 2', counter: 12, value: 'onglet-2', content: <Typography>Contenu de onglet 2</Typography> },\n { label: 'Onglet 3', value: 'onglet-3', content: <Typography>Contenu de onglet 3</Typography> },\n {\n label: 'Onglet 4',\n leading: 'Settings',\n value: 'onglet-4',\n content: <Typography>Contenu de onglet 4</Typography>,\n },\n ]}\n />\n </Box>\n );\n};";
|
|
4
|
-
export const Controle = () => "export const Controle = () => {\n const onglets = [\n { label: 'Onglet 1', value: 'onglet-1', content: <Typography>Contenu de onglet 1</Typography> },\n { label: 'Onglet 2', value: 'onglet-2', content: <Typography>Contenu de onglet 2</Typography> },\n { label: 'Onglet 3', value: 'onglet-3', content: <Typography>Contenu de onglet 3</Typography> },\n ];\n const [ongletActif, setOngletActif] = React.useState('onglet-1');\n\n return (\n <Box width={'100%'} gap
|
|
4
|
+
export const Controle = () => "export const Controle = () => {\n const onglets = [\n { label: 'Onglet 1', value: 'onglet-1', content: <Typography>Contenu de onglet 1</Typography> },\n { label: 'Onglet 2', value: 'onglet-2', content: <Typography>Contenu de onglet 2</Typography> },\n { label: 'Onglet 3', value: 'onglet-3', content: <Typography>Contenu de onglet 3</Typography> },\n ];\n const [ongletActif, setOngletActif] = React.useState('onglet-1');\n\n return (\n <Box width={'100%'} gap=\"2W\">\n <Box flexDirection=\"row\" gap=\"1W\">\n <Button title=\"Aller à l’onglet 1\" variant=\"secondary\" onPress={() => setOngletActif('onglet-1')} />\n <Button title=\"Aller à l’onglet 3\" variant=\"secondary\" onPress={() => setOngletActif('onglet-3')} />\n </Box>\n <Tabs value={ongletActif} onChange={index => setOngletActif(onglets[index].value)} tabs={onglets} />\n </Box>\n );\n};";
|
|
5
|
+
export const OngletUnique = () => "export const OngletUnique = () => (\n <Tabs\n defaultValue=\"seul\"\n tabs={[{ label: 'Onglet seul', value: 'seul', content: <Typography>Contenu de l onglet seul</Typography> }]}\n />\n);";
|
|
5
6
|
export const storySources = {
|
|
6
7
|
Example,
|
|
7
8
|
Controle,
|
|
9
|
+
OngletUnique,
|
|
8
10
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const useStyles: () => {
|
|
2
2
|
tabIcon: {
|
|
3
|
-
color:
|
|
3
|
+
color: import("@alveole/theme").ThemeColor;
|
|
4
4
|
};
|
|
5
5
|
tabIconHover: {
|
|
6
|
-
color:
|
|
6
|
+
color: import("@alveole/theme").ThemeColor;
|
|
7
7
|
};
|
|
8
8
|
tabsLabel: {
|
|
9
9
|
fontSize: 14;
|
|
@@ -39,7 +39,7 @@ export declare const useStyles: () => {
|
|
|
39
39
|
cursor: "pointer";
|
|
40
40
|
};
|
|
41
41
|
tabsTabActive: {
|
|
42
|
-
borderBottomColor:
|
|
42
|
+
borderBottomColor: import("@alveole/theme").ThemeColor;
|
|
43
43
|
borderBottomWidth: number;
|
|
44
44
|
};
|
|
45
45
|
wrapper: {
|
|
@@ -60,7 +60,7 @@ export declare const useStyles: () => {
|
|
|
60
60
|
display: "flex";
|
|
61
61
|
flexDirection: "row";
|
|
62
62
|
alignItems: "center";
|
|
63
|
-
backgroundColor:
|
|
63
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
64
64
|
};
|
|
65
65
|
container: {
|
|
66
66
|
flex: number;
|
|
@@ -89,7 +89,7 @@ export declare const useStyles: () => {
|
|
|
89
89
|
borderBottomRightRadius: string | number;
|
|
90
90
|
gap: string | number;
|
|
91
91
|
boxSizing: "border-box";
|
|
92
|
-
borderColor:
|
|
92
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
93
93
|
borderBottomWidth: number;
|
|
94
94
|
backgroundColor: "transparent";
|
|
95
95
|
overflowX: "scroll";
|
|
@@ -22,20 +22,20 @@ declare const _default: {
|
|
|
22
22
|
alignItems: "center";
|
|
23
23
|
borderRadius: import("@alveole/theme").Radius;
|
|
24
24
|
borderWidth: number;
|
|
25
|
-
borderColor:
|
|
26
|
-
color:
|
|
27
|
-
backgroundColor:
|
|
25
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
26
|
+
color: import("@alveole/theme").ThemeColor;
|
|
27
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
28
28
|
whiteSpace: "nowrap";
|
|
29
29
|
overflow: "hidden";
|
|
30
30
|
textOverflow: "ellipsis";
|
|
31
31
|
maxWidth: string;
|
|
32
32
|
};
|
|
33
33
|
tagSurvole: {
|
|
34
|
-
color:
|
|
34
|
+
color: import("@alveole/theme").ThemeColor;
|
|
35
35
|
};
|
|
36
36
|
tagSelected: {
|
|
37
|
-
borderColor:
|
|
38
|
-
color:
|
|
37
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
38
|
+
color: import("@alveole/theme").ThemeColor;
|
|
39
39
|
};
|
|
40
40
|
tagSm: {
|
|
41
41
|
fontSize: 12;
|
|
@@ -64,7 +64,7 @@ declare const _default: {
|
|
|
64
64
|
marginRight: number;
|
|
65
65
|
};
|
|
66
66
|
croixSurvolee: {
|
|
67
|
-
backgroundColor:
|
|
67
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
68
68
|
};
|
|
69
69
|
croixSm: {
|
|
70
70
|
marginLeft: number;
|
|
@@ -11,9 +11,9 @@ export default {
|
|
|
11
11
|
component: Tag,
|
|
12
12
|
styleFn: useStyles,
|
|
13
13
|
};
|
|
14
|
-
export const Sizes = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap:
|
|
15
|
-
export const Selection = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap:
|
|
16
|
-
export const Fermable = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap:
|
|
17
|
-
export const AvecIcone = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap:
|
|
18
|
-
export const LibelleLong = () => (_jsx(Box, { display: "flex", flexDirection: "row", gap:
|
|
14
|
+
export const Sizes = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", children: "Tag sm" }), _jsx(Tag, { size: "md", children: "Tag md" })] }));
|
|
15
|
+
export const Selection = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap: "2W", children: ['sm', 'md'].map(size => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: size, children: "Descriptive, inerte" }), _jsx(Tag, { size: size, interactive: true, children: "Au repos, dans un groupe" }), _jsx(Tag, { size: size, interactive: true, selected: true, children: "S\u00E9lectionn\u00E9" }), _jsx(Tag, { size: size, selected: true, closable: true, onClose: () => { }, children: "S\u00E9lectionn\u00E9 et fermable" })] }, size))) }));
|
|
16
|
+
export const Fermable = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", closable: true, onClose: () => { }, children: "Fermable sm" }), _jsx(Tag, { size: "md", closable: true, onClose: () => { }, children: "Fermable md" }), _jsx(Tag, { size: "md", closable: true, selected: true, onClose: () => { }, children: "Fermable et s\u00E9lectionn\u00E9" })] }));
|
|
17
|
+
export const AvecIcone = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", leading: "Check", children: "Valid\u00E9" }), _jsx(Tag, { size: "md", leading: "Clock", children: "En attente" }), _jsx(Tag, { size: "md", leading: "Tag", closable: true, onClose: () => { }, children: "Ic\u00F4ne et croix" }), _jsx(Tag, { size: "md", leading: "Tag", closable: true, selected: true, onClose: () => { }, children: "Tout \u00E0 la fois" })] }));
|
|
18
|
+
export const LibelleLong = () => (_jsx(Box, { display: "flex", flexDirection: "row", gap: "3W", style: { maxWidth: 260 }, children: _jsx(Tag, { size: "md", closable: true, onClose: () => { }, children: "Un libell\u00E9 beaucoup trop long pour la place disponible" }) }));
|
|
19
19
|
export * as Sources from './Tag.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Tag/Tag.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"Tag.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Tag/Tag.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,cAAwM,CAAC;AAE3N,eAAO,MAAM,SAAS,cAA+mB,CAAC;AAEtoB,eAAO,MAAM,QAAQ,cAAgZ,CAAC;AAEta,eAAO,MAAM,SAAS,cAAme,CAAC;AAE1f,eAAO,MAAM,WAAW,cAA6Q,CAAC;AAEtS,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/ui/Tag/Tag.stories.tsx
|
|
3
|
-
export const Sizes = () => "export const Sizes = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap
|
|
4
|
-
export const Selection = () => "export const Selection = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
5
|
-
export const Fermable = () => "export const Fermable = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap
|
|
6
|
-
export const AvecIcone = () => "export const AvecIcone = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap
|
|
7
|
-
export const LibelleLong = () => "export const LibelleLong = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap
|
|
3
|
+
export const Sizes = () => "export const Sizes = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap=\"3W\" flexWrap=\"wrap\">\n <Tag size=\"sm\">Tag sm</Tag>\n <Tag size=\"md\">Tag md</Tag>\n </Box>\n);";
|
|
4
|
+
export const Selection = () => "export const Selection = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"2W\">\n {(['sm', 'md'] as const).map(size => (\n <Box key={size} display=\"flex\" flexDirection=\"row\" gap=\"3W\" flexWrap=\"wrap\">\n <Tag size={size}>Descriptive, inerte</Tag>\n <Tag size={size} interactive>\n Au repos, dans un groupe\n </Tag>\n <Tag size={size} interactive selected>\n Sélectionné\n </Tag>\n <Tag size={size} selected closable onClose={() => {}}>\n Sélectionné et fermable\n </Tag>\n </Box>\n ))}\n </Box>\n);";
|
|
5
|
+
export const Fermable = () => "export const Fermable = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap=\"3W\" flexWrap=\"wrap\">\n <Tag size=\"sm\" closable onClose={() => {}}>\n Fermable sm\n </Tag>\n <Tag size=\"md\" closable onClose={() => {}}>\n Fermable md\n </Tag>\n <Tag size=\"md\" closable selected onClose={() => {}}>\n Fermable et sélectionné\n </Tag>\n </Box>\n);";
|
|
6
|
+
export const AvecIcone = () => "export const AvecIcone = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap=\"3W\" flexWrap=\"wrap\">\n <Tag size=\"sm\" leading=\"Check\">\n Validé\n </Tag>\n <Tag size=\"md\" leading=\"Clock\">\n En attente\n </Tag>\n <Tag size=\"md\" leading=\"Tag\" closable onClose={() => {}}>\n Icône et croix\n </Tag>\n <Tag size=\"md\" leading=\"Tag\" closable selected onClose={() => {}}>\n Tout à la fois\n </Tag>\n </Box>\n);";
|
|
7
|
+
export const LibelleLong = () => "export const LibelleLong = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap=\"3W\" style={{ maxWidth: 260 }}>\n <Tag size=\"md\" closable onClose={() => {}}>\n Un libellé beaucoup trop long pour la place disponible\n </Tag>\n </Box>\n);";
|
|
8
8
|
export const storySources = {
|
|
9
9
|
Sizes,
|
|
10
10
|
Selection,
|
|
@@ -16,20 +16,20 @@ export declare const useStyles: () => {
|
|
|
16
16
|
alignItems: "center";
|
|
17
17
|
borderRadius: Radius;
|
|
18
18
|
borderWidth: number;
|
|
19
|
-
borderColor:
|
|
20
|
-
color:
|
|
21
|
-
backgroundColor:
|
|
19
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
20
|
+
color: import("@alveole/theme").ThemeColor;
|
|
21
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
22
22
|
whiteSpace: "nowrap";
|
|
23
23
|
overflow: "hidden";
|
|
24
24
|
textOverflow: "ellipsis";
|
|
25
25
|
maxWidth: string;
|
|
26
26
|
};
|
|
27
27
|
tagSurvole: {
|
|
28
|
-
color:
|
|
28
|
+
color: import("@alveole/theme").ThemeColor;
|
|
29
29
|
};
|
|
30
30
|
tagSelected: {
|
|
31
|
-
borderColor:
|
|
32
|
-
color:
|
|
31
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
32
|
+
color: import("@alveole/theme").ThemeColor;
|
|
33
33
|
};
|
|
34
34
|
tagSm: {
|
|
35
35
|
fontSize: 12;
|
|
@@ -58,7 +58,7 @@ export declare const useStyles: () => {
|
|
|
58
58
|
marginRight: number;
|
|
59
59
|
};
|
|
60
60
|
croixSurvolee: {
|
|
61
|
-
backgroundColor:
|
|
61
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
62
62
|
};
|
|
63
63
|
croixSm: {
|
|
64
64
|
marginLeft: number;
|
|
@@ -39,7 +39,7 @@ export declare const reponseAuPointeur: ({ manipulable, pastilleSurvolee, croixS
|
|
|
39
39
|
};
|
|
40
40
|
/** Le cercle de la croix : son gabarit suit le cran, seul son fond change au survol. */
|
|
41
41
|
export declare const apparenceDeLaCroix: (styles: Styles, size: TailleDEtiquette, survolee: boolean) => {
|
|
42
|
-
backgroundColor?:
|
|
42
|
+
backgroundColor?: import("@alveole/theme").ThemeColor | undefined;
|
|
43
43
|
marginLeft: number;
|
|
44
44
|
alignItems: "center";
|
|
45
45
|
justifyContent: "center";
|
|
@@ -52,7 +52,7 @@ export declare const apparenceDeLaCroix: (styles: Styles, size: TailleDEtiquette
|
|
|
52
52
|
/** L'icone de la croix grossit avec la pastille et prend la teinte du libelle. */
|
|
53
53
|
export declare const apparenceDeLIconeDeCroix: (styles: Styles, size: TailleDEtiquette, fonce: boolean) => {
|
|
54
54
|
size: "sm" | "xs";
|
|
55
|
-
color:
|
|
55
|
+
color: import("@alveole/theme").ThemeColor;
|
|
56
56
|
};
|
|
57
57
|
export {};
|
|
58
58
|
//# sourceMappingURL=tagStyling.d.ts.map
|
|
@@ -13,5 +13,5 @@ export const TextInputArray = (props) => {
|
|
|
13
13
|
removeEmpty,
|
|
14
14
|
dedupe,
|
|
15
15
|
});
|
|
16
|
-
return (_jsxs(Box, { tag: "text-input-array", gap: "1V", children: [items.map((item, index) => (_jsx(TextInput, { placeholder: placeholder, autoCapitalize: "words", value: item.value, onChangeText: (txt) => updateItem(item.id, txt), endAdornment: item._original != null && disabledDeleteForOriginals.includes(item._original) ? undefined : (_jsx(InputButtonAdornment, { icon: "X", position: "end", accessibilityLabel: `Retirer la ligne ${index + 1}`, onPress: () => removeItem(item.id) })), onBlur: notifier }, item.id))), _jsx(Box, { display: "flex", flexDirection: "row", pt:
|
|
16
|
+
return (_jsxs(Box, { tag: "text-input-array", gap: "1V", children: [items.map((item, index) => (_jsx(TextInput, { placeholder: placeholder, autoCapitalize: "words", value: item.value, onChangeText: (txt) => updateItem(item.id, txt), endAdornment: item._original != null && disabledDeleteForOriginals.includes(item._original) ? undefined : (_jsx(InputButtonAdornment, { icon: "X", position: "end", accessibilityLabel: `Retirer la ligne ${index + 1}`, onPress: () => removeItem(item.id) })), onBlur: notifier }, item.id))), _jsx(Box, { display: "flex", flexDirection: "row", pt: "2W", justify: 'flex-start', children: _jsx(Button, { variant: "tertiary", leading: "Plus", title: addTitle, onPress: () => addItem() }) })] }));
|
|
17
17
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextInputProps } from '../FormControl';
|
|
2
|
+
import { TextInputElement, TextInputProps } from '../FormControl';
|
|
3
3
|
export type TextareaInputProps = TextInputProps & {
|
|
4
4
|
numberOfLines?: number;
|
|
5
5
|
onModalSubmit?: () => void;
|
|
@@ -17,5 +17,5 @@ export declare const TextareaInput: React.ForwardRefExoticComponent<Omit<import(
|
|
|
17
17
|
} & {
|
|
18
18
|
numberOfLines?: number;
|
|
19
19
|
onModalSubmit?: () => void;
|
|
20
|
-
} & React.RefAttributes<
|
|
20
|
+
} & React.RefAttributes<TextInputElement>>;
|
|
21
21
|
//# sourceMappingURL=TextareaInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextareaInput.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"TextareaInput.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAa,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAK7E,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;oBAJR,MAAM;oBACN,MAAM,IAAI;0CAkB1B,CAAC"}
|
|
@@ -16,7 +16,7 @@ declare const _default: {
|
|
|
16
16
|
} & {
|
|
17
17
|
numberOfLines?: number;
|
|
18
18
|
onModalSubmit?: () => void;
|
|
19
|
-
} & import("react").RefAttributes<import("
|
|
19
|
+
} & import("react").RefAttributes<import("..").TextInputElement>>;
|
|
20
20
|
styleFn: () => {};
|
|
21
21
|
};
|
|
22
22
|
export default _default;
|
|
@@ -13,5 +13,5 @@ export default {
|
|
|
13
13
|
};
|
|
14
14
|
// TextareaInput est le champ nu : c'est FormControl qui porte le libellé et le relie au champ.
|
|
15
15
|
const Champ = ({ label, children }) => (_jsxs(FormControl, { children: [_jsx(InputHeading, { children: _jsx(FormControlLabel, { label: label }) }), children] }));
|
|
16
|
-
export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
16
|
+
export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(Champ, { label: "Message", children: _jsx(TextareaInput, { placeholder: "Votre message...", numberOfLines: 4 }) }), _jsx(Champ, { label: "Avec valeur", children: _jsx(TextareaInput, { value: "Contenu du message", numberOfLines: 4 }) }), _jsx(Champ, { label: "D\u00E9sactiv\u00E9", children: _jsx(TextareaInput, { placeholder: "D\u00E9sactiv\u00E9", disabled: true, numberOfLines: 4 }) })] }));
|
|
17
17
|
export * as Sources from './TextareaInput.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextareaInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"TextareaInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAoe,CAAC;AAEzf,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/TextareaInput/TextareaInput.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 <Champ label=\"Message\">\n <TextareaInput placeholder=\"Votre message...\" numberOfLines={4} />\n </Champ>\n <Champ label=\"Avec valeur\">\n <TextareaInput value=\"Contenu du message\" numberOfLines={4} />\n </Champ>\n <Champ label=\"Désactivé\">\n <TextareaInput placeholder=\"Désactivé\" disabled numberOfLines={4} />\n </Champ>\n </Box>\n);";
|
|
4
4
|
export const storySources = {
|
|
5
5
|
Default,
|
|
6
6
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { TextInputElement } from '../FormControl';
|
|
2
3
|
import { ChampHHMMProps } from '../FormControl/ChampHHMM';
|
|
3
4
|
export type TimeInputProps = ChampHHMMProps;
|
|
4
5
|
export declare const TimeInput: React.ForwardRefExoticComponent<import("..").FormControlCaptionProps & {
|
|
@@ -6,5 +7,5 @@ export declare const TimeInput: React.ForwardRefExoticComponent<import("..").For
|
|
|
6
7
|
onChange?: (value: string) => void;
|
|
7
8
|
onBlur?: () => void;
|
|
8
9
|
disabled?: boolean;
|
|
9
|
-
} & React.RefAttributes<
|
|
10
|
+
} & React.RefAttributes<TextInputElement>>;
|
|
10
11
|
//# sourceMappingURL=TimeInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeInput.d.ts","sourceRoot":"","sources":["../../../src/ui/TimeInput/TimeInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TimeInput.d.ts","sourceRoot":"","sources":["../../../src/ui/TimeInput/TimeInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAgB,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAa,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAErE,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC;AAQ5C,eAAO,MAAM,SAAS;;;;;0CAEpB,CAAC"}
|
|
@@ -9,7 +9,7 @@ declare const _default: {
|
|
|
9
9
|
onChange?: (value: string) => void;
|
|
10
10
|
onBlur?: () => void;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
} & import("react").RefAttributes<import("
|
|
12
|
+
} & import("react").RefAttributes<import("..").TextInputElement>>;
|
|
13
13
|
styleFn: () => string;
|
|
14
14
|
};
|
|
15
15
|
export default _default;
|
|
@@ -23,6 +23,6 @@ Le champ est nu : on le place dans un FormControl pour son libellé, son aide et
|
|
|
23
23
|
component: TimeInput,
|
|
24
24
|
styleFn: () => 'Aucun style appliqué',
|
|
25
25
|
};
|
|
26
|
-
export const Default = () => (_jsx(Box, { width: "100%", p:
|
|
27
|
-
export const States = () => (_jsx(Box, { width: "100%", p:
|
|
26
|
+
export const Default = () => (_jsx(Box, { width: "100%", p: "1W", children: _jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Heure", children: _jsx(TimeInput, {}) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Heure", children: _jsx(TimeInput, { value: "09:30" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Heure", hint: "Heure de d\u00E9but de mission", children: _jsx(TimeInput, { value: "14:00" }) }) })] }) }));
|
|
27
|
+
export const States = () => (_jsx(Box, { width: "100%", p: "1W", children: _jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Erreur", error: "Heure invalide (00:00\u201323:59)", children: _jsx(TimeInput, { value: "25:70", error: "Heure invalide (00:00\u201323:59)" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Succ\u00E8s", success: "Enregistr\u00E9", children: _jsx(TimeInput, { value: "09:30", success: "Enregistr\u00E9" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "D\u00E9sactiv\u00E9", disabled: true, children: _jsx(TimeInput, { value: "09:30", disabled: true }) }) })] }) }));
|
|
28
28
|
export * as Sources from './TimeInput.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/TimeInput/TimeInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"TimeInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/TimeInput/TimeInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA8qB,CAAC;AAEnsB,eAAO,MAAM,MAAM,cAA8yB,CAAC;AAEl0B,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/ui/TimeInput/TimeInput.stories.tsx
|
|
3
|
-
export const Default = () => "export const Default = () => (\n <Box width=\"100%\" p
|
|
4
|
-
export const States = () => "export const States = () => (\n <Box width=\"100%\" p
|
|
3
|
+
export const Default = () => "export const Default = () => (\n <Box width=\"100%\" p=\"1W\">\n <Grid gap=\"1W\">\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Heure\">\n <TimeInput />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Heure\">\n <TimeInput value=\"09:30\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Heure\" hint=\"Heure de début de mission\">\n <TimeInput value=\"14:00\" />\n </FormControl>\n </Grid.Column>\n </Grid>\n </Box>\n);";
|
|
4
|
+
export const States = () => "export const States = () => (\n <Box width=\"100%\" p=\"1W\">\n <Grid gap=\"1W\">\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Erreur\" error=\"Heure invalide (00:00–23:59)\">\n <TimeInput value=\"25:70\" error=\"Heure invalide (00:00–23:59)\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Succès\" success=\"Enregistré\">\n <TimeInput value=\"09:30\" success=\"Enregistré\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Désactivé\" disabled>\n <TimeInput value=\"09:30\" disabled />\n </FormControl>\n </Grid.Column>\n </Grid>\n </Box>\n);";
|
|
5
5
|
export const storySources = {
|
|
6
6
|
Default,
|
|
7
7
|
States,
|