@alveole/components 2.0.0-alpha.16 → 2.0.0-alpha.18
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,14 +1,14 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/core/Grid/Grid.stories.tsx
|
|
3
|
-
export const TwoEqualColumns = () => "export const TwoEqualColumns = () => (\n <Grid gap
|
|
4
|
-
export const AsymmetricColumns = () => "export const AsymmetricColumns = () => (\n <Grid gap
|
|
5
|
-
export const ThreeColumns = () => "export const ThreeColumns = () => (\n <Grid gap
|
|
6
|
-
export const FourColumns = () => "export const FourColumns = () => (\n <Grid gap
|
|
7
|
-
export const FullWidthColumn = () => "export const FullWidthColumn = () => (\n <Grid gap
|
|
8
|
-
export const ResponsiveColumns = () => "export const ResponsiveColumns = () => (\n <Grid gap
|
|
9
|
-
export const ResponsiveThreeColumns = () => "export const ResponsiveThreeColumns = () => (\n <Grid gap
|
|
10
|
-
export const WithLargeGap = () => "export const WithLargeGap = () => (\n <Grid gap
|
|
11
|
-
export const EqualHeightCards = () => "export const EqualHeightCards = () => (\n <Grid gap
|
|
3
|
+
export const TwoEqualColumns = () => "export const TwoEqualColumns = () => (\n <Grid gap=\"1W\">\n <Grid.Column size={6}>\n <Col label=\"6 colonnes\" />\n </Grid.Column>\n <Grid.Column size={6}>\n <Col label=\"6 colonnes\" />\n </Grid.Column>\n </Grid>\n);";
|
|
4
|
+
export const AsymmetricColumns = () => "export const AsymmetricColumns = () => (\n <Grid gap=\"1W\">\n <Grid.Column size={4}>\n <Col label=\"4 colonnes\" />\n </Grid.Column>\n <Grid.Column size={8}>\n <Col color={colColorAlt} label=\"8 colonnes\" />\n </Grid.Column>\n </Grid>\n);";
|
|
5
|
+
export const ThreeColumns = () => "export const ThreeColumns = () => (\n <Grid gap=\"1W\">\n <Grid.Column size={4}>\n <Col label=\"4 colonnes\" />\n </Grid.Column>\n <Grid.Column size={4}>\n <Col color={colColorAlt} label=\"4 colonnes\" />\n </Grid.Column>\n <Grid.Column size={4}>\n <Col label=\"4 colonnes\" />\n </Grid.Column>\n </Grid>\n);";
|
|
6
|
+
export const FourColumns = () => "export const FourColumns = () => (\n <Grid gap=\"1W\">\n <Grid.Column size={3}>\n <Col label=\"3\" />\n </Grid.Column>\n <Grid.Column size={3}>\n <Col color={colColorAlt} label=\"3\" />\n </Grid.Column>\n <Grid.Column size={3}>\n <Col label=\"3\" />\n </Grid.Column>\n <Grid.Column size={3}>\n <Col color={colColorAlt} label=\"3\" />\n </Grid.Column>\n </Grid>\n);";
|
|
7
|
+
export const FullWidthColumn = () => "export const FullWidthColumn = () => (\n <Grid gap=\"1W\">\n <Grid.Column size={12}>\n <Col label=\"12 colonnes (pleine largeur)\" />\n </Grid.Column>\n <Grid.Column size={6}>\n <Col label=\"6 colonnes\" />\n </Grid.Column>\n <Grid.Column size={6}>\n <Col color={colColorAlt} label=\"6 colonnes\" />\n </Grid.Column>\n </Grid>\n);";
|
|
8
|
+
export const ResponsiveColumns = () => "export const ResponsiveColumns = () => (\n <Grid gap=\"1W\">\n <Grid.Column size={{ mobile: 12, desktop: 6 }}>\n <Col label=\"12 mobile / 6 desktop\" />\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 6 }}>\n <Col color={colColorAlt} label=\"12 mobile / 6 desktop\" />\n </Grid.Column>\n </Grid>\n);";
|
|
9
|
+
export const ResponsiveThreeColumns = () => "export const ResponsiveThreeColumns = () => (\n <Grid gap=\"1W\">\n <Grid.Column size={{ mobile: 12, tablet: 6, desktop: 4 }}>\n <Col label=\"12 mobile / 6 tablet / 4 desktop\" />\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, tablet: 6, desktop: 4 }}>\n <Col color={colColorAlt} label=\"12 mobile / 6 tablet / 4 desktop\" />\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, tablet: 12, desktop: 4 }}>\n <Col label=\"12 mobile / 12 tablet / 4 desktop\" />\n </Grid.Column>\n </Grid>\n);";
|
|
10
|
+
export const WithLargeGap = () => "export const WithLargeGap = () => (\n <Grid gap=\"3W\">\n <Grid.Column size={4}>\n <Col label=\"gap 24\" />\n </Grid.Column>\n <Grid.Column size={4}>\n <Col color={colColorAlt} label=\"gap 24\" />\n </Grid.Column>\n <Grid.Column size={4}>\n <Col label=\"gap 24\" />\n </Grid.Column>\n </Grid>\n);";
|
|
11
|
+
export const EqualHeightCards = () => "export const EqualHeightCards = () => (\n <Grid gap=\"2W\">\n <Grid.Column size={{ mobile: 12, tablet: 6, desktop: 4 }}>\n <Card>\n <Card.Header titre=\"Titre court\" sousTitre=\"Une ligne\" />\n <Card.Actions>\n <Button variant=\"secondary\" title=\"Voir\" size=\"sm\" />\n </Card.Actions>\n </Card>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, tablet: 6, desktop: 4 }}>\n <Card>\n <Card.Header\n titre=\"Un titre bien plus long qui passe sur deux lignes\"\n sousTitre=\"Un sous-titre lui aussi assez long pour occuper plusieurs lignes dans la carte\"\n />\n <Card.Actions>\n <Button variant=\"secondary\" title=\"Voir\" size=\"sm\" />\n </Card.Actions>\n </Card>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, tablet: 6, desktop: 4 }}>\n <A href=\"/components/Card\">\n <Card>\n <Card.Header titre=\"Carte cliquable\" />\n </Card>\n </A>\n </Grid.Column>\n </Grid>\n);";
|
|
12
12
|
export const storySources = {
|
|
13
13
|
TwoEqualColumns,
|
|
14
14
|
AsymmetricColumns,
|
|
@@ -10,7 +10,7 @@ declare const _default: {
|
|
|
10
10
|
width: "100%";
|
|
11
11
|
flexGrow: number;
|
|
12
12
|
flexShrink: number;
|
|
13
|
-
backgroundColor:
|
|
13
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
14
14
|
};
|
|
15
15
|
highlightContainerStandalone: {
|
|
16
16
|
borderRadius: import("@alveole/theme").Radius;
|
|
@@ -22,13 +22,13 @@ declare const _default: {
|
|
|
22
22
|
highlight: {
|
|
23
23
|
borderRadius: import("@alveole/theme").Radius;
|
|
24
24
|
borderWidth: number;
|
|
25
|
-
borderColor:
|
|
25
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
26
26
|
overflow: "scroll";
|
|
27
27
|
padding: import("@alveole/theme").Spacing;
|
|
28
28
|
minWidth: "100%";
|
|
29
29
|
flexGrow: number;
|
|
30
30
|
flexShrink: number;
|
|
31
|
-
backgroundColor:
|
|
31
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
32
32
|
};
|
|
33
33
|
highlightEmbedded: {
|
|
34
34
|
overflow: "scroll";
|
|
@@ -36,7 +36,7 @@ declare const _default: {
|
|
|
36
36
|
minWidth: "100%";
|
|
37
37
|
flexGrow: number;
|
|
38
38
|
flexShrink: number;
|
|
39
|
-
backgroundColor:
|
|
39
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
};
|
|
@@ -3,7 +3,7 @@ export declare const useStyles: () => {
|
|
|
3
3
|
width: "100%";
|
|
4
4
|
flexGrow: number;
|
|
5
5
|
flexShrink: number;
|
|
6
|
-
backgroundColor:
|
|
6
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
7
7
|
};
|
|
8
8
|
highlightContainerStandalone: {
|
|
9
9
|
borderRadius: import("@alveole/theme").Radius;
|
|
@@ -15,13 +15,13 @@ export declare const useStyles: () => {
|
|
|
15
15
|
highlight: {
|
|
16
16
|
borderRadius: import("@alveole/theme").Radius;
|
|
17
17
|
borderWidth: number;
|
|
18
|
-
borderColor:
|
|
18
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
19
19
|
overflow: "scroll";
|
|
20
20
|
padding: import("@alveole/theme").Spacing;
|
|
21
21
|
minWidth: "100%";
|
|
22
22
|
flexGrow: number;
|
|
23
23
|
flexShrink: number;
|
|
24
|
-
backgroundColor:
|
|
24
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
25
25
|
};
|
|
26
26
|
highlightEmbedded: {
|
|
27
27
|
overflow: "scroll";
|
|
@@ -29,7 +29,7 @@ export declare const useStyles: () => {
|
|
|
29
29
|
minWidth: "100%";
|
|
30
30
|
flexGrow: number;
|
|
31
31
|
flexShrink: number;
|
|
32
|
-
backgroundColor:
|
|
32
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=Highlight.styles.d.ts.map
|
|
@@ -7,9 +7,7 @@ export declare const BASE_STYLE_KEY = "base";
|
|
|
7
7
|
export declare const styleNatif: (style?: CSSProperties) => TextStyle;
|
|
8
8
|
export declare const feuilleDeColoration: (syntaxStyle: Record<string, CSSProperties>, fond: string) => NativeSyntaxStyle;
|
|
9
9
|
/** Le texte de base : la couleur du theme, puis la chasse fixe. */
|
|
10
|
-
export declare const styleDuTexteDeBase: (feuille: NativeSyntaxStyle) => TextStyle
|
|
11
|
-
readonly fontFamily: "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace";
|
|
12
|
-
};
|
|
10
|
+
export declare const styleDuTexteDeBase: (feuille: NativeSyntaxStyle) => TextStyle;
|
|
13
11
|
/**
|
|
14
12
|
* La surface du bloc. Le theme de coloration ne fournit que les couleurs de jetons : la surface
|
|
15
13
|
* vient du design system, posee apres la base du theme, et le style de l'appelant en dernier.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Highlight.theme.d.ts","sourceRoot":"","sources":["../../../src/core/Highlight/Highlight.theme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAc,SAAS,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc,SAAS,CAAC;AAkCrC,eAAO,MAAM,UAAU,GAAI,QAAO,aAAkB,KAAG,
|
|
1
|
+
{"version":3,"file":"Highlight.theme.d.ts","sourceRoot":"","sources":["../../../src/core/Highlight/Highlight.theme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAc,SAAS,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc,SAAS,CAAC;AAkCrC,eAAO,MAAM,UAAU,GAAI,QAAO,aAAkB,KAAG,SAMrD,CAAC;AAkCH,eAAO,MAAM,mBAAmB,GAAI,aAAa,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,MAAM,KAAG,iBAgB9F,CAAC;AAEF,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,GAAI,SAAS,iBAAiB,KAAG,SAC+C,CAAC;AAEhH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,MAAM,EACd,SAAS,iBAAiB,EAC1B,0BAA0B;IAAE,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC;IAAC,WAAW,EAAE,SAAS,CAAA;CAAE,KACvF,SAMO,CAAC"}
|
|
@@ -27,20 +27,13 @@ const estGraisseNative = accepteSeulement([
|
|
|
27
27
|
'800',
|
|
28
28
|
'900',
|
|
29
29
|
]);
|
|
30
|
-
export const styleNatif = (style = {}) => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
nativeStyle.backgroundColor = style.backgroundColor;
|
|
38
|
-
if (estGraisseNative(style.fontWeight))
|
|
39
|
-
nativeStyle.fontWeight = style.fontWeight;
|
|
40
|
-
if (estStyleDePoliceNatif(style.fontStyle))
|
|
41
|
-
nativeStyle.fontStyle = style.fontStyle;
|
|
42
|
-
return nativeStyle;
|
|
43
|
-
};
|
|
30
|
+
export const styleNatif = (style = {}) => ({
|
|
31
|
+
...(typeof style.color === 'string' && { color: style.color }),
|
|
32
|
+
...(typeof style.background === 'string' && { backgroundColor: style.background }),
|
|
33
|
+
...(typeof style.backgroundColor === 'string' && { backgroundColor: style.backgroundColor }),
|
|
34
|
+
...(estGraisseNative(style.fontWeight) && { fontWeight: style.fontWeight }),
|
|
35
|
+
...(estStyleDePoliceNatif(style.fontStyle) && { fontStyle: style.fontStyle }),
|
|
36
|
+
});
|
|
44
37
|
const getSyntaxStyleKeys = (selector) => {
|
|
45
38
|
if (selector.includes('pre[') || selector.includes('code[')) {
|
|
46
39
|
return [BASE_STYLE_KEY];
|
|
@@ -81,7 +74,7 @@ export const feuilleDeColoration = (syntaxStyle, fond) => {
|
|
|
81
74
|
}, {});
|
|
82
75
|
};
|
|
83
76
|
/** Le texte de base : la couleur du theme, puis la chasse fixe. */
|
|
84
|
-
export const styleDuTexteDeBase = (feuille) => StyleSheet.flatten([{ color: feuille[BASE_STYLE_KEY]?.color }, feuille[BASE_STYLE_KEY], MonospaceFont]);
|
|
77
|
+
export const styleDuTexteDeBase = (feuille) => StyleSheet.flatten([{ color: feuille[BASE_STYLE_KEY]?.color }, feuille[BASE_STYLE_KEY], MonospaceFont]) ?? {};
|
|
85
78
|
/**
|
|
86
79
|
* La surface du bloc. Le theme de coloration ne fournit que les couleurs de jetons : la surface
|
|
87
80
|
* vient du design system, posee apres la base du theme, et le style de l'appelant en dernier.
|
|
@@ -93,4 +86,4 @@ export const styleDeLaSurface = (styles, feuille, { variant, styleFourni }) => S
|
|
|
93
86
|
variant === 'embedded' ? styles.highlightEmbedded : styles.highlight,
|
|
94
87
|
{ overflow: 'visible' },
|
|
95
88
|
styleFourni,
|
|
96
|
-
]);
|
|
89
|
+
]) ?? {};
|
package/dist/core/Map/Map.js
CHANGED
|
@@ -2,5 +2,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Box } from '../Box';
|
|
3
3
|
import { Typography } from '../Typography';
|
|
4
4
|
export const Map = (_) => {
|
|
5
|
-
return (_jsx(Box, { p:
|
|
5
|
+
return (_jsx(Box, { p: "3V", children: _jsx(Typography, { textAlign: 'center', children: "La carte n\u2019est pas disponible sur le mobile" }) }));
|
|
6
6
|
};
|
|
@@ -32,5 +32,5 @@ export const MarkdownDescription = ({ children, taille = 'MD', color: textColor
|
|
|
32
32
|
linkColor,
|
|
33
33
|
};
|
|
34
34
|
const components = Platform.OS === 'web' ? createMarkdownComponents(styles) : createNativeMarkdownComponents(styles);
|
|
35
|
-
return (_jsx(Box, { tag: "markdown-description", display: "flex", gap:
|
|
35
|
+
return (_jsx(Box, { tag: "markdown-description", display: "flex", gap: "1W", style: { alignSelf: 'stretch' }, children: _jsx(ReactMarkdown, { remarkPlugins: [remarkGfm, replierLesCoupuresDeLigne], rehypePlugins: Platform.OS === 'web' ? [] : [preparerMarkdownNatif], skipHtml: Platform.OS !== 'web', components: components, children: children }) }));
|
|
36
36
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Theme } from '@alveole/theme';
|
|
1
|
+
import { Theme, ThemeColor } from '@alveole/theme';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { Components } from 'react-markdown';
|
|
4
4
|
import { TextStyle as RNTextStyle } from 'react-native';
|
|
@@ -16,8 +16,8 @@ export type MarkdownComponentsStyles = {
|
|
|
16
16
|
titres: Theme['text']['Titres'];
|
|
17
17
|
/** Couleur des titres : `textColor` s'il est fourni, sinon `title-grey`. */
|
|
18
18
|
titleColor: string;
|
|
19
|
-
borderColor:
|
|
20
|
-
headerBg:
|
|
19
|
+
borderColor: ThemeColor;
|
|
20
|
+
headerBg: ThemeColor;
|
|
21
21
|
linkColor: string;
|
|
22
22
|
};
|
|
23
23
|
type TextComponentStyles = Pick<MarkdownComponentsStyles, 'bodyStyle' | 'boldStyle' | 'textColor'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdownComponents.d.ts","sourceRoot":"","sources":["../../../src/core/MarkdownDescription/markdownComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"markdownComponents.d.ts","sourceRoot":"","sources":["../../../src/core/MarkdownDescription/markdownComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAIxD,OAAO,EAAa,cAAc,EAAE,MAAM,cAAc,CAAC;AAczD,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,KAAG,cAAc,CAAC,UAAU,CAG7E,CAAC;AAEF,KAAK,WAAW,GAAG;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC;AAClD,KAAK,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,eAAe,CAAC,CAAC;AAE9G,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;IACrB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC;IAChC,4EAA4E;IAC5E,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,UAAU,CAAC;IACxB,QAAQ,EAAE,UAAU,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,mBAAmB,GAAG,IAAI,CAAC,wBAAwB,EAAE,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC,CAAC;AAEnG,eAAO,MAAM,oBAAoB,GAAI,qCAAqC,mBAAmB;yBACtE,WAAW;8BAKN,WAAW;0BAKf,WAAW;CAKjC,CAAC;AAGH,eAAO,MAAM,uBAAuB,GAAI,QAAQ,KAAK,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,EAAE,YAAY,MAAM;0BACnE,WAAW;0BAKX,WAAW;0BAKX,WAAW;0BAKX,WAAW;CAKjC,CAAC;AA+HH,eAAO,MAAM,wBAAwB,GAAI,QAAQ,wBAAwB,KAAG,UAQ1E,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { FOCUS_ATTRIBUTE } from '@alveole/theme';
|
|
2
|
+
import { FOCUS_ATTRIBUTE, Spacings } from '@alveole/theme';
|
|
3
3
|
import { AnchorHeading } from '../AnchorHeading';
|
|
4
4
|
import { Box } from '../Box';
|
|
5
5
|
import { Code } from '../Code';
|
|
@@ -32,9 +32,9 @@ export const createHeadingComponents = (titres, titleColor) => ({
|
|
|
32
32
|
h4: ({ children: c }) => (_jsx(AnchorHeading, { as: "h4", style: titres['H6 - XXS'], color: titleColor, children: c })),
|
|
33
33
|
});
|
|
34
34
|
const createListComponents = (bodyStyle) => ({
|
|
35
|
-
ul: ({ children: c }) => (_jsx(Box, { display: "flex", gap:
|
|
36
|
-
ol: ({ children: c }) => (_jsx(Box, { display: "flex", gap:
|
|
37
|
-
li: ({ children: c }) => (_jsxs(Box, { display: "flex", flexDirection: "row", gap:
|
|
35
|
+
ul: ({ children: c }) => (_jsx(Box, { display: "flex", gap: "1V", children: c })),
|
|
36
|
+
ol: ({ children: c }) => (_jsx(Box, { display: "flex", gap: "1V", children: c })),
|
|
37
|
+
li: ({ children: c }) => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "1W", style: { alignItems: 'flex-start' }, children: [_jsx(Typography, { style: bodyStyle, children: '•' }), _jsx(Typography, { style: [bodyStyle, { flex: 1 }], children: c })] })),
|
|
38
38
|
});
|
|
39
39
|
const createLinkComponents = ({ linkColor }) => ({
|
|
40
40
|
a: ({ href, children: c }) => (_jsx(Typography, { tag: "a", color: linkColor, textDecorationLine: soulignementDuLien, href, [FOCUS_ATTRIBUTE]: 'ring', children: c })),
|
|
@@ -43,7 +43,7 @@ const createBlockComponents = (borderColor) => ({
|
|
|
43
43
|
pre: ({ children: c }) => _jsx(Box, { display: "flex", children: c }),
|
|
44
44
|
// `tag="blockquote"` pose un vrai `<blockquote>` DOM, qui garde la marge par
|
|
45
45
|
// défaut du user-agent (`margin: 1em 40px`) tant qu'on ne la remet pas à zéro.
|
|
46
|
-
blockquote: ({ children: c }) => (_jsx(Box, { tag: "blockquote", display: "flex", pl:
|
|
46
|
+
blockquote: ({ children: c }) => (_jsx(Box, { tag: "blockquote", display: "flex", pl: "3V", style: { margin: Spacings['0V'], borderLeftWidth: 2, borderLeftColor: borderColor }, children: c })),
|
|
47
47
|
});
|
|
48
48
|
const createCodeComponents = () => ({
|
|
49
49
|
// react-markdown ne passe plus de prop `inline` depuis la v9, et un bloc sans
|
|
@@ -59,7 +59,7 @@ const createCodeComponents = () => ({
|
|
|
59
59
|
},
|
|
60
60
|
});
|
|
61
61
|
const createTableComponents = ({ bodyStyle, boldStyle, borderColor, headerBg }) => ({
|
|
62
|
-
table: ({ children: c }) => (_jsx(Box, { tag: "div", borderWidth: 1, borderColor: borderColor, borderRadius:
|
|
62
|
+
table: ({ children: c }) => (_jsx(Box, { tag: "div", borderWidth: 1, borderColor: borderColor, borderRadius: "md", overflow: "hidden", children: _jsx(Box, { tag: "table", style: { display: 'table', borderCollapse: 'collapse', width: '100%' }, children: c }) })),
|
|
63
63
|
thead: ({ children: c }) => (_jsx(Box, { tag: "thead", style: { display: 'table-header-group' }, children: c })),
|
|
64
64
|
tbody: ({ children: c }) => (_jsx(Box, { tag: "tbody", style: { display: 'table-row-group' }, children: c })),
|
|
65
65
|
tr: ({ children: c }) => (_jsx(Box, { tag: "tr", style: { display: 'table-row' }, children: c })),
|
|
@@ -68,8 +68,8 @@ const createTableComponents = ({ bodyStyle, boldStyle, borderColor, headerBg })
|
|
|
68
68
|
// sérialise les props de la vue, dont le contexte du thème, circulaire, ce qui
|
|
69
69
|
// remplace l'avertissement par un « Converting circular structure to JSON » qui
|
|
70
70
|
// fait planter le rendu.
|
|
71
|
-
th: ({ children: c }) => (_jsx(Box, { tag: "th", borderWidth: 1, borderColor: borderColor, pt:
|
|
72
|
-
td: ({ children: c }) => (_jsx(Box, { tag: "td", borderWidth: 1, borderColor: borderColor, pt:
|
|
71
|
+
th: ({ children: c }) => (_jsx(Box, { tag: "th", borderWidth: 1, borderColor: borderColor, pt: "1W", pb: "1W", pl: "3V", pr: "3V", style: { display: 'table-cell', textAlign: 'left', backgroundColor: headerBg }, children: _jsx(Typography, { style: boldStyle, children: c }) })),
|
|
72
|
+
td: ({ children: c }) => (_jsx(Box, { tag: "td", borderWidth: 1, borderColor: borderColor, pt: "1W", pb: "1W", pl: "3V", pr: "3V", style: { display: 'table-cell' }, children: _jsx(Typography, { style: bodyStyle, children: c }) })),
|
|
73
73
|
});
|
|
74
74
|
export const createMarkdownComponents = (styles) => ({
|
|
75
75
|
...createTextComponents(styles),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdownNatif.d.ts","sourceRoot":"","sources":["../../../src/core/MarkdownDescription/markdownNatif.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"markdownNatif.d.ts","sourceRoot":"","sources":["../../../src/core/MarkdownDescription/markdownNatif.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAIjD,OAAO,EAA4B,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAE1F,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IACvD,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC;CACpB,CAAC;AAwCF,eAAO,MAAM,qBAAqB,gBAjBT,KAAK,KAAG,IAiBkB,CAAC;AAuBpD,eAAO,MAAM,8BAA8B,GAAI,QAAQ,wBAAwB,KAAG,UAwChF,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Spacings } from '@alveole/theme';
|
|
2
3
|
import { Linking } from 'react-native';
|
|
3
4
|
import { Box } from '../Box';
|
|
4
5
|
import { Typography } from '../Typography';
|
|
@@ -50,20 +51,20 @@ const tableauxNatifs = ({ bodyStyle, boldStyle, borderColor, headerBg }) => ({
|
|
|
50
51
|
thead: ({ children }) => _jsx(Box, { style: { backgroundColor: headerBg }, children: children }),
|
|
51
52
|
tbody: ({ children }) => _jsx(Box, { children: children }),
|
|
52
53
|
tr: ({ children }) => _jsx(Box, { style: { flexDirection: 'row' }, children: children }),
|
|
53
|
-
th: ({ children }) => (_jsx(Box, { p:
|
|
54
|
-
td: ({ children }) => (_jsx(Box, { p:
|
|
54
|
+
th: ({ children }) => (_jsx(Box, { p: "1W", borderWidth: 1, borderColor: borderColor, style: { flex: 1, minWidth: 0 }, children: _jsx(Typography, { style: boldStyle, children: children }) })),
|
|
55
|
+
td: ({ children }) => (_jsx(Box, { p: "1W", borderWidth: 1, borderColor: borderColor, style: { flex: 1, minWidth: 0 }, children: _jsx(Typography, { style: bodyStyle, children: children }) })),
|
|
55
56
|
});
|
|
56
57
|
export const createNativeMarkdownComponents = (styles) => ({
|
|
57
58
|
...createMarkdownComponents(styles),
|
|
58
59
|
...tableauxNatifs(styles),
|
|
59
|
-
section: ({ children }) => _jsx(Box, { style: { gap:
|
|
60
|
+
section: ({ children }) => _jsx(Box, { style: { gap: Spacings['1W'] }, children: children }),
|
|
60
61
|
sup: ({ children }) => _jsx(Typography, { style: styles.bodyStyle, children: children }),
|
|
61
62
|
h5: ({ children }) => (_jsx(Typography, { style: styles.titres['H6 - XXS'], color: styles.titleColor, children: children })),
|
|
62
63
|
h6: ({ children }) => (_jsx(Typography, { style: styles.titres['H6 - XXS'], color: styles.titleColor, children: children })),
|
|
63
64
|
a: ({ href, children }) => (_jsx(Typography, { style: styles.bodyStyle, color: styles.linkColor, textDecorationLine: "underline", accessibilityRole: "link", onPress: href ? () => void Linking.openURL(href) : undefined, children: children })),
|
|
64
65
|
li: ({ children, node }) => {
|
|
65
66
|
const marque = node?.properties?.['data-marker'];
|
|
66
|
-
return (_jsxs(Box, { style: { flexDirection: 'row', gap:
|
|
67
|
+
return (_jsxs(Box, { style: { flexDirection: 'row', gap: Spacings['1W'], alignItems: 'flex-start' }, children: [_jsx(Typography, { style: styles.bodyStyle, children: typeof marque === 'string' ? marque : '•' }), _jsx(Box, { style: { flex: 1, gap: Spacings['1V'] }, children: children })] }));
|
|
67
68
|
},
|
|
68
69
|
br: () => _jsx(Typography, { children: '\n' }),
|
|
69
70
|
hr: () => _jsx(Box, { style: { borderTopWidth: 1, borderColor: styles.borderColor } }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageContent.d.ts","sourceRoot":"","sources":["../../../src/core/Page/PageContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAEzC,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,
|
|
1
|
+
{"version":3,"file":"PageContent.d.ts","sourceRoot":"","sources":["../../../src/core/Page/PageContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAEzC,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,sBAmElD,CAAC"}
|
|
@@ -22,7 +22,7 @@ export const PageContent = (props) => {
|
|
|
22
22
|
setIsScrolled(scrolled);
|
|
23
23
|
onScrollChange?.(scrollY);
|
|
24
24
|
}, [onScrollChange]);
|
|
25
|
-
const renderPageWithSidebar = (children) => (_jsxs(Box, { style: styles.sidebarContainer, overflow: mobileOrTablet && sideBarController?.open ? 'hidden' : undefined, children: [sidebar, _jsxs(Box, { flex: 1, children: [mobileOrTablet && (_jsx(Box, { tag: "mobile-menu", style: statusBar?.backgroundColor ? { backgroundColor: statusBar.backgroundColor } : undefined, children: _jsx(Box, {
|
|
25
|
+
const renderPageWithSidebar = (children) => (_jsxs(Box, { style: styles.sidebarContainer, overflow: mobileOrTablet && sideBarController?.open ? 'hidden' : undefined, children: [sidebar, _jsxs(Box, { flex: 1, children: [mobileOrTablet && (_jsx(Box, { tag: "mobile-menu", style: statusBar?.backgroundColor ? { backgroundColor: statusBar.backgroundColor } : undefined, children: _jsx(Box, { style: { paddingTop: Platform.OS === 'android' ? top : undefined }, children: renderToolbar?.({ isScrolled }) }) })), _jsx(Box, { flex: 1, children: children })] })] }));
|
|
26
26
|
const isScrollable = React.useMemo(() => scrollable === true ||
|
|
27
27
|
(scrollable === 'desktop-only' && isVariant('desktop')) ||
|
|
28
28
|
(scrollable === 'mobile-only' && mobileOrTablet), [isVariant, mobileOrTablet, scrollable]);
|
|
@@ -8,24 +8,24 @@ export type PageContentScrollableProps = PageProps & {
|
|
|
8
8
|
onEndReachedThreshold?: number;
|
|
9
9
|
onScrollChange?: (scrollY: number) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const PageContentScrollable: React.ForwardRefExoticComponent<Omit<import("tamagui").ViewProps, "flex" | "
|
|
11
|
+
export declare const PageContentScrollable: React.ForwardRefExoticComponent<Omit<import("tamagui").ViewProps, "flex" | "display" | "overflow" | "backgroundColor" | "borderColor" | "borderRadius" | "borderWidth" | "opacity" | "flexDirection" | "flexWrap" | "gap" | "style" | "justify" | keyof import("../..").SizeStyle | "p" | "pl" | "pr" | "pt" | "pb" | "m" | "ml" | "mr" | "mt" | "mb" | "tag"> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "tag"> & Pick<import("tamagui").ViewProps, "flex" | "display" | "overflow" | "opacity" | "flexDirection" | "flexWrap"> & {
|
|
12
12
|
justify?: import("tamagui").ViewProps["justifyContent"];
|
|
13
13
|
} & import("../..").SizeStyle & {
|
|
14
|
-
p?:
|
|
15
|
-
pl?:
|
|
16
|
-
pr?:
|
|
17
|
-
pt?:
|
|
18
|
-
pb?:
|
|
19
|
-
m?:
|
|
20
|
-
ml?:
|
|
21
|
-
mr?:
|
|
22
|
-
mt?:
|
|
23
|
-
mb?:
|
|
24
|
-
backgroundColor?: import("
|
|
14
|
+
p?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
15
|
+
pl?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
16
|
+
pr?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
17
|
+
pt?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
18
|
+
pb?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
19
|
+
m?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
20
|
+
ml?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
21
|
+
mr?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
22
|
+
mt?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
23
|
+
mb?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
24
|
+
backgroundColor?: (import("@alveole/theme").ThemeColor | "transparent") | Partial<Record<"default" | "hover" | "press" | "focus" | "focusVisible" | "disabled", import("@alveole/theme").ThemeColor | "transparent">>;
|
|
25
25
|
borderWidth?: import("tamagui").ViewProps["borderWidth"];
|
|
26
|
-
borderRadius?:
|
|
27
|
-
borderColor?: import("
|
|
28
|
-
gap?:
|
|
26
|
+
borderRadius?: import("@alveole/theme").RadiusKey;
|
|
27
|
+
borderColor?: (import("@alveole/theme").ThemeColor | "transparent") | Partial<Record<"default" | "hover" | "press" | "focus" | "focusVisible" | "disabled", import("@alveole/theme").ThemeColor | "transparent">>;
|
|
28
|
+
gap?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
29
29
|
} & {
|
|
30
30
|
tag?: string;
|
|
31
31
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePageStatusBar.d.ts","sourceRoot":"","sources":["../../../src/core/Page/usePageStatusBar.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"usePageStatusBar.d.ts","sourceRoot":"","sources":["../../../src/core/Page/usePageStatusBar.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AASlD,eAAO,MAAM,cAAc,GAAI,WAAW,QAAQ,CAAC,kBAAkB,CAAC,SAGrE,CAAC;AAKF,eAAO,MAAM,gBAAgB,GAAI,YAAY,kBAAkB,SA0B9D,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { useFocusEffect } from 'expo-router';
|
|
2
2
|
import * as SystemUI from 'expo-system-ui';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { AppState,
|
|
4
|
+
import { AppState, StatusBar } from 'react-native';
|
|
5
5
|
const DEFAULT_STATUS_BAR = {
|
|
6
6
|
barStyle: 'dark-content',
|
|
7
7
|
backgroundColor: 'white',
|
|
8
8
|
};
|
|
9
|
+
// Pas de `StatusBar.setBackgroundColor` : sans effet en edge-to-edge, mode par défaut des apps
|
|
10
|
+
// Expo, et retiré de React Native 0.88. Le fond sous la barre est celui que pose expo-system-ui.
|
|
9
11
|
export const applyStatusBar = (statusBar) => {
|
|
10
12
|
StatusBar.setBarStyle(statusBar.barStyle);
|
|
11
|
-
if (Platform.OS === 'android')
|
|
12
|
-
StatusBar.setBackgroundColor(statusBar.backgroundColor);
|
|
13
13
|
void SystemUI.setBackgroundColorAsync(statusBar.backgroundColor);
|
|
14
14
|
};
|
|
15
15
|
// La barre de statut est un état global de l'OS : la poser au focus de la page et la restaurer à
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Section/Section.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Section.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Section/Section.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAQkB;AAMlB,eAAO,MAAM,OAAO,mCAMnB,CAAC;AAEF,eAAO,MAAM,YAAY,mCAMxB,CAAC;AAEF,eAAO,MAAM,WAAW,mCAUvB,CAAC;AAEF,eAAO,MAAM,aAAa,mCAMzB,CAAC;AAEF,eAAO,MAAM,WAAW,mCAUvB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CustomPalette, enCouleursDuTheme } from '@alveole/theme';
|
|
2
3
|
import { Box } from '../Box';
|
|
3
4
|
import { Typography } from '../Typography';
|
|
4
5
|
import { Section } from './Section';
|
|
@@ -11,17 +12,18 @@ export default {
|
|
|
11
12
|
component: Section,
|
|
12
13
|
styleFn: useStyles,
|
|
13
14
|
};
|
|
14
|
-
const
|
|
15
|
-
const
|
|
15
|
+
const { background } = enCouleursDuTheme(CustomPalette).light;
|
|
16
|
+
const paddingColor = background['contrast-success'];
|
|
17
|
+
const innerBoxColor = background['contrast-info'];
|
|
16
18
|
export const Default = () => (_jsx(Section, { children: _jsx(Box, { children: _jsx(Typography, { children: "Section" }) }) }));
|
|
17
|
-
export const WithPaddingY = () => (_jsx(Section, { backgroundColor: paddingColor, withPaddingY: true, children: _jsx(Box, { backgroundColor: innerBoxColor, p:
|
|
19
|
+
export const WithPaddingY = () => (_jsx(Section, { backgroundColor: paddingColor, withPaddingY: true, children: _jsx(Box, { backgroundColor: innerBoxColor, p: "1W", children: _jsx(Typography, { children: "Section avec background et padding Y" }) }) }));
|
|
18
20
|
export const WidthMdSize = () => {
|
|
19
21
|
const styles = useStyles();
|
|
20
|
-
return (_jsx(Section, { backgroundColor: paddingColor, size: "md", children: _jsx(Box, { backgroundColor: innerBoxColor, p:
|
|
22
|
+
return (_jsx(Section, { backgroundColor: paddingColor, size: "md", children: _jsx(Box, { backgroundColor: innerBoxColor, p: "1W", children: _jsxs(Typography, { children: ["Section avec background et size md (", styles.sectionContainerMD.maxWidth, "px)"] }) }) }));
|
|
21
23
|
};
|
|
22
|
-
export const WidthFullSize = () => (_jsx(Section, { backgroundColor: paddingColor, size: "full", children: _jsx(Box, { backgroundColor: innerBoxColor, p:
|
|
24
|
+
export const WidthFullSize = () => (_jsx(Section, { backgroundColor: paddingColor, size: "full", children: _jsx(Box, { backgroundColor: innerBoxColor, p: "1W", children: _jsx(Typography, { children: "Section avec background et size full (taille par d\u00E9faut)" }) }) }));
|
|
23
25
|
export const WidthSmSize = () => {
|
|
24
26
|
const styles = useStyles();
|
|
25
|
-
return (_jsx(Section, { backgroundColor: paddingColor, size: "sm", children: _jsx(Box, { backgroundColor: innerBoxColor, p:
|
|
27
|
+
return (_jsx(Section, { backgroundColor: paddingColor, size: "sm", children: _jsx(Box, { backgroundColor: innerBoxColor, p: "1W", children: _jsxs(Typography, { children: ["Section avec background et size sm (", styles.sectionContainerSM.maxWidth, "px)"] }) }) }));
|
|
26
28
|
};
|
|
27
29
|
export * as Sources from './Section.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Section/Section.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAuI,CAAC;AAE5J,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"Section.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Section/Section.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAuI,CAAC;AAE5J,eAAO,MAAM,YAAY,cAA8P,CAAC;AAExR,eAAO,MAAM,WAAW,cAAgW,CAAC;AAEzX,eAAO,MAAM,aAAa,cAAoR,CAAC;AAE/S,eAAO,MAAM,WAAW,cAAgW,CAAC;AAEzX,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/core/Section/Section.stories.tsx
|
|
3
3
|
export const Default = () => "export const Default = () => (\n <Section>\n <Box>\n <Typography>Section</Typography>\n </Box>\n </Section>\n);";
|
|
4
|
-
export const WithPaddingY = () => "export const WithPaddingY = () => (\n <Section backgroundColor={paddingColor} withPaddingY>\n <Box backgroundColor={innerBoxColor} p
|
|
5
|
-
export const WidthMdSize = () => "export const WidthMdSize = () => {\n const styles = useStyles();\n\n return (\n <Section backgroundColor={paddingColor} size=\"md\">\n <Box backgroundColor={innerBoxColor} p
|
|
6
|
-
export const WidthFullSize = () => "export const WidthFullSize = () => (\n <Section backgroundColor={paddingColor} size=\"full\">\n <Box backgroundColor={innerBoxColor} p
|
|
7
|
-
export const WidthSmSize = () => "export const WidthSmSize = () => {\n const styles = useStyles();\n\n return (\n <Section backgroundColor={paddingColor} size=\"sm\">\n <Box backgroundColor={innerBoxColor} p
|
|
4
|
+
export const WithPaddingY = () => "export const WithPaddingY = () => (\n <Section backgroundColor={paddingColor} withPaddingY>\n <Box backgroundColor={innerBoxColor} p=\"1W\">\n <Typography>Section avec background et padding Y</Typography>\n </Box>\n </Section>\n);";
|
|
5
|
+
export const WidthMdSize = () => "export const WidthMdSize = () => {\n const styles = useStyles();\n\n return (\n <Section backgroundColor={paddingColor} size=\"md\">\n <Box backgroundColor={innerBoxColor} p=\"1W\">\n <Typography>Section avec background et size md ({styles.sectionContainerMD.maxWidth}px)</Typography>\n </Box>\n </Section>\n );\n};";
|
|
6
|
+
export const WidthFullSize = () => "export const WidthFullSize = () => (\n <Section backgroundColor={paddingColor} size=\"full\">\n <Box backgroundColor={innerBoxColor} p=\"1W\">\n <Typography>Section avec background et size full (taille par défaut)</Typography>\n </Box>\n </Section>\n);";
|
|
7
|
+
export const WidthSmSize = () => "export const WidthSmSize = () => {\n const styles = useStyles();\n\n return (\n <Section backgroundColor={paddingColor} size=\"sm\">\n <Box backgroundColor={innerBoxColor} p=\"1W\">\n <Typography>Section avec background et size sm ({styles.sectionContainerSM.maxWidth}px)</Typography>\n </Box>\n </Section>\n );\n};";
|
|
8
8
|
export const storySources = {
|
|
9
9
|
Default,
|
|
10
10
|
WithPaddingY,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.stories.d.ts","sourceRoot":"","sources":["../../../src/core/ThemeProvider/ThemeProvider.stories.tsx"],"names":[],"mappings":";;;;;;;;AAOA,wBAQkB;
|
|
1
|
+
{"version":3,"file":"ThemeProvider.stories.d.ts","sourceRoot":"","sources":["../../../src/core/ThemeProvider/ThemeProvider.stories.tsx"],"names":[],"mappings":";;;;;;;;AAOA,wBAQkB;AAkClB;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,mCAevB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,gBAAgB,mCA8C5B,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme } from '@alveole/theme';
|
|
2
|
+
import { RadiusList, Spacings, useTheme } from '@alveole/theme';
|
|
3
3
|
import { Box } from '../Box';
|
|
4
4
|
import { Highlight } from '../Highlight';
|
|
5
5
|
import { Typography } from '../Typography';
|
|
@@ -16,13 +16,18 @@ export default {
|
|
|
16
16
|
// démonstration.
|
|
17
17
|
const ModeBadge = ({ children }) => {
|
|
18
18
|
const { color, text } = useTheme();
|
|
19
|
-
return (_jsxs(Box, { display: "flex", flexDirection: "row", gap:
|
|
19
|
+
return (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "1W", style: {
|
|
20
20
|
alignItems: 'center',
|
|
21
|
-
paddingHorizontal:
|
|
22
|
-
paddingVertical:
|
|
23
|
-
borderRadius:
|
|
21
|
+
paddingHorizontal: Spacings['3V'],
|
|
22
|
+
paddingVertical: Spacings['1W'],
|
|
23
|
+
borderRadius: RadiusList.md,
|
|
24
24
|
backgroundColor: color.light.background['default-grey'],
|
|
25
|
-
}, children: [_jsx(Box, { style: {
|
|
25
|
+
}, children: [_jsx(Box, { style: {
|
|
26
|
+
width: 8,
|
|
27
|
+
height: 8,
|
|
28
|
+
borderRadius: RadiusList.full,
|
|
29
|
+
backgroundColor: color.light.background['active-primary'],
|
|
30
|
+
} }), _jsx(Typography, { style: text['Corps de texte'].SM.Regular, children: children })] }));
|
|
26
31
|
};
|
|
27
32
|
/**
|
|
28
33
|
* Mode par défaut : les variables CSS sont injectées au runtime via des balises `<style>`,
|
|
@@ -40,7 +45,7 @@ const ModeBadge = ({ children }) => {
|
|
|
40
45
|
* }
|
|
41
46
|
* ```
|
|
42
47
|
*/
|
|
43
|
-
export const UsageDefaut = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
48
|
+
export const UsageDefaut = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3V", children: [_jsx(ModeBadge, { children: "Mode actif : injection dynamique via balises <style>" }), _jsx(Highlight, { language: "tsx", children: `import { ThemeProvider } from '@alveole/theme';
|
|
44
49
|
|
|
45
50
|
export default function RootLayout() {
|
|
46
51
|
return (
|
|
@@ -86,7 +91,7 @@ export default function RootLayout() {
|
|
|
86
91
|
*/
|
|
87
92
|
export const UsageCSSStatique = () => {
|
|
88
93
|
const { color, text } = useTheme();
|
|
89
|
-
return (_jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
94
|
+
return (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3V", children: [_jsx(ModeBadge, { children: "Mode actif : CSS pr\u00E9-compil\u00E9 - aucune balise <style> inject\u00E9e" }), _jsx(Highlight, { language: "tsx", children: `import '@alveole/theme/dist/default.css';
|
|
90
95
|
import { ThemeProvider } from '@alveole/theme';
|
|
91
96
|
|
|
92
97
|
export default function RootLayout() {
|
|
@@ -95,10 +100,10 @@ export default function RootLayout() {
|
|
|
95
100
|
{children}
|
|
96
101
|
</ThemeProvider>
|
|
97
102
|
);
|
|
98
|
-
}` }), _jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
99
|
-
paddingHorizontal:
|
|
100
|
-
paddingVertical:
|
|
101
|
-
borderRadius:
|
|
103
|
+
}` }), _jsxs(Box, { display: "flex", flexDirection: "column", gap: "1W", style: {
|
|
104
|
+
paddingHorizontal: Spacings['3V'],
|
|
105
|
+
paddingVertical: Spacings['3V'],
|
|
106
|
+
borderRadius: RadiusList.md,
|
|
102
107
|
backgroundColor: color.light.background['action-high-error'],
|
|
103
108
|
}, children: [_jsx(Typography, { style: { ...text['Corps de texte'].SM.Medium, color: color.light.text['action-high-error'] }, children: "Limitation : incompatible avec color custom" }), _jsx(Typography, { style: { ...text['Corps de texte'].SM.Regular, color: color.light.text['action-high-error'] }, children: "Si l'app passe un prop `color` au ThemeProvider, les variables overrid\u00E9es ne seront pas inject\u00E9es. Dans ce cas, retirer `staticCSS`." })] }), _jsx(Highlight, { language: "tsx", children: `// ❌ Les overrides color sont ignorés avec staticCSS
|
|
104
109
|
<ThemeProvider staticCSS color={{ light: { background: { 'default-grey': '#eee' } } }}>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/ThemeProvider/ThemeProvider.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"ThemeProvider.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/ThemeProvider/ThemeProvider.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,cAA2b,CAAC;AAEpd,eAAO,MAAM,gBAAgB,cAAouD,CAAC;AAElwD,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAGtE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/core/ThemeProvider/ThemeProvider.stories.tsx
|
|
3
|
-
export const UsageDefaut = () => "export const UsageDefaut = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
4
|
-
export const UsageCSSStatique = () => "export const UsageCSSStatique = () => {\n const { color, text } = useTheme();\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
3
|
+
export const UsageDefaut = () => "export const UsageDefaut = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3V\">\n <ModeBadge>Mode actif : injection dynamique via balises <style></ModeBadge>\n <Highlight language=\"tsx\">\n {`import { ThemeProvider } from '@alveole/theme';\n\nexport default function RootLayout() {\n return (\n <ThemeProvider>\n {children}\n </ThemeProvider>\n );\n}`}\n </Highlight>\n </Box>\n);";
|
|
4
|
+
export const UsageCSSStatique = () => "export const UsageCSSStatique = () => {\n const { color, text } = useTheme();\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3V\">\n <ModeBadge>Mode actif : CSS pré-compilé - aucune balise <style> injectée</ModeBadge>\n <Highlight language=\"tsx\">\n {`import '@alveole/theme/dist/default.css';\nimport { ThemeProvider } from '@alveole/theme';\n\nexport default function RootLayout() {\n return (\n <ThemeProvider staticCSS>\n {children}\n </ThemeProvider>\n );\n}`}\n </Highlight>\n <Box\n display=\"flex\"\n flexDirection=\"column\"\n gap=\"1W\"\n style={{\n paddingHorizontal: Spacings['3V'],\n paddingVertical: Spacings['3V'],\n borderRadius: RadiusList.md,\n backgroundColor: color.light.background['action-high-error'],\n }}\n >\n <Typography style={{ ...text['Corps de texte'].SM.Medium, color: color.light.text['action-high-error'] }}>\n Limitation : incompatible avec color custom\n </Typography>\n <Typography style={{ ...text['Corps de texte'].SM.Regular, color: color.light.text['action-high-error'] }}>\n Si l'app passe un prop `color` au ThemeProvider, les variables overridées ne seront pas injectées. Dans\n ce cas, retirer `staticCSS`.\n </Typography>\n </Box>\n <Highlight language=\"tsx\">\n {`// ❌ Les overrides color sont ignorés avec staticCSS\n<ThemeProvider staticCSS color={{ light: { background: { 'default-grey': '#eee' } } }}>\n\n// ✅ Sans staticCSS, les overrides fonctionnent\n<ThemeProvider color={{ light: { background: { 'default-grey': '#eee' } } }}>`}\n </Highlight>\n </Box>\n );\n};";
|
|
5
5
|
export const storySources = {
|
|
6
6
|
UsageDefaut,
|
|
7
7
|
UsageCSSStatique,
|
|
@@ -30,5 +30,6 @@ export declare const TypographyStyleUnderline: () => import("react").JSX.Element
|
|
|
30
30
|
export declare const TypographyStyleLineThrough: () => import("react").JSX.Element;
|
|
31
31
|
export declare const TypographyTransformCapitalize: () => import("react").JSX.Element;
|
|
32
32
|
export declare const TypographyTransformUppercase: () => import("react").JSX.Element;
|
|
33
|
+
export declare const TypographyAligneeADroite: () => import("react").JSX.Element;
|
|
33
34
|
export * as Sources from './Typography.stories.sources';
|
|
34
35
|
//# sourceMappingURL=Typography.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Typography/Typography.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAOkB;AAElB,eAAO,MAAM,iBAAiB,mCAAoD,CAAC;AAEnF,eAAO,MAAM,yBAAyB,mCAIrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,mCAAsE,CAAC;AAEzG,eAAO,MAAM,wBAAwB,mCAAkF,CAAC;AAExH,eAAO,MAAM,0BAA0B,mCAA+E,CAAC;AAEvH,eAAO,MAAM,6BAA6B,mCAEzC,CAAC;AAEF,eAAO,MAAM,4BAA4B,mCAAwE,CAAC;
|
|
1
|
+
{"version":3,"file":"Typography.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Typography/Typography.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAOkB;AAElB,eAAO,MAAM,iBAAiB,mCAAoD,CAAC;AAEnF,eAAO,MAAM,yBAAyB,mCAIrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,mCAAsE,CAAC;AAEzG,eAAO,MAAM,wBAAwB,mCAAkF,CAAC;AAExH,eAAO,MAAM,0BAA0B,mCAA+E,CAAC;AAEvH,eAAO,MAAM,6BAA6B,mCAEzC,CAAC;AAEF,eAAO,MAAM,4BAA4B,mCAAwE,CAAC;AAGlH,eAAO,MAAM,wBAAwB,mCAIpC,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC"}
|