@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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ThemeProviderProps } from '@alveole/theme';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { type TamaguiInternalConfig } from 'tamagui';
|
|
4
|
+
export type AlveoleProviderProps = React.PropsWithChildren<Omit<ThemeProviderProps, 'color' | 'children'> & {
|
|
5
|
+
/** Config Tamagui de l'application, qui porte aussi son `declare module 'tamagui'`. */
|
|
6
|
+
tamaguiConfig: TamaguiInternalConfig;
|
|
7
|
+
/** Surcharge partielle des couleurs Alveole, transmise au `ThemeProvider`. */
|
|
8
|
+
palette?: ThemeProviderProps['color'];
|
|
9
|
+
/** `false` pour une application qui monte déjà son propre `KeyboardProvider`. */
|
|
10
|
+
keyboardProvider?: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* Monte la pile obligatoire dans l'ordre que les composants attendent (ADR 0034) : le Sheet
|
|
14
|
+
* de Tamagui v3 lit ses retraits dans `SafeAreaProvider`, qui enveloppe donc `TamaguiProvider`.
|
|
15
|
+
*/
|
|
16
|
+
export declare const AlveoleProvider: (props: AlveoleProviderProps) => React.JSX.Element;
|
|
17
|
+
//# sourceMappingURL=AlveoleProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlveoleProvider.d.ts","sourceRoot":"","sources":["../../../src/core/AlveoleProvider/AlveoleProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAmB,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGtE,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,iBAAiB,CACxD,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IAC/C,uFAAuF;IACvF,aAAa,EAAE,qBAAqB,CAAC;IACrC,8EAA8E;IAC9E,OAAO,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACtC,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CACF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,oBAAoB,sBAa1D,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ThemeProvider } from '@alveole/theme';
|
|
3
|
+
import { KeyboardProvider } from 'react-native-keyboard-controller';
|
|
4
|
+
import { initialWindowMetrics, SafeAreaProvider } from 'react-native-safe-area-context';
|
|
5
|
+
import { TamaguiProvider } from 'tamagui';
|
|
6
|
+
import { Toasts } from '../../ui/Toast';
|
|
7
|
+
/**
|
|
8
|
+
* Monte la pile obligatoire dans l'ordre que les composants attendent (ADR 0034) : le Sheet
|
|
9
|
+
* de Tamagui v3 lit ses retraits dans `SafeAreaProvider`, qui enveloppe donc `TamaguiProvider`.
|
|
10
|
+
*/
|
|
11
|
+
export const AlveoleProvider = (props) => {
|
|
12
|
+
const { tamaguiConfig, palette, keyboardProvider = true, children, ...themeProps } = props;
|
|
13
|
+
const content = _jsx(Toasts, { children: children });
|
|
14
|
+
return (_jsx(SafeAreaProvider, { initialMetrics: initialWindowMetrics, children: _jsx(ThemeProvider, { ...themeProps, color: palette, children: _jsx(TamaguiProvider, { config: tamaguiConfig, defaultTheme: "light", children: keyboardProvider ? _jsx(KeyboardProvider, { children: content }) : content }) }) }));
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/AlveoleProvider/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AlveoleProvider';
|
package/dist/core/Box/Box.d.ts
CHANGED
|
@@ -5,24 +5,24 @@ export type BoxProps = Omit<TamaguiViewProps, keyof BoxStyle | 'tag' | 'style'>
|
|
|
5
5
|
tag?: string;
|
|
6
6
|
};
|
|
7
7
|
export type BoxElement = TamaguiElement;
|
|
8
|
-
export declare const Box: React.ForwardRefExoticComponent<Omit<TamaguiViewProps, "flex" | "
|
|
8
|
+
export declare const Box: React.ForwardRefExoticComponent<Omit<TamaguiViewProps, "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<RNTamaguiViewNonStyleProps, "tag"> & Pick<TamaguiViewProps, "flex" | "display" | "overflow" | "opacity" | "flexDirection" | "flexWrap"> & {
|
|
9
9
|
justify?: TamaguiViewProps["justifyContent"];
|
|
10
10
|
} & import("../..").SizeStyle & {
|
|
11
|
-
p?:
|
|
12
|
-
pl?:
|
|
13
|
-
pr?:
|
|
14
|
-
pt?:
|
|
15
|
-
pb?:
|
|
16
|
-
m?:
|
|
17
|
-
ml?:
|
|
18
|
-
mr?:
|
|
19
|
-
mt?:
|
|
20
|
-
mb?:
|
|
21
|
-
backgroundColor?:
|
|
11
|
+
p?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
12
|
+
pl?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
13
|
+
pr?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
14
|
+
pt?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
15
|
+
pb?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
16
|
+
m?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
17
|
+
ml?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
18
|
+
mr?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
19
|
+
mt?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
20
|
+
mb?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
21
|
+
backgroundColor?: (import("@alveole/theme").ThemeColor | "transparent") | Partial<Record<"default" | "hover" | "press" | "focus" | "focusVisible" | "disabled", import("@alveole/theme").ThemeColor | "transparent">>;
|
|
22
22
|
borderWidth?: TamaguiViewProps["borderWidth"];
|
|
23
|
-
borderRadius?:
|
|
24
|
-
borderColor?:
|
|
25
|
-
gap?:
|
|
23
|
+
borderRadius?: import("@alveole/theme").RadiusKey;
|
|
24
|
+
borderColor?: (import("@alveole/theme").ThemeColor | "transparent") | Partial<Record<"default" | "hover" | "press" | "focus" | "focusVisible" | "disabled", import("@alveole/theme").ThemeColor | "transparent">>;
|
|
25
|
+
gap?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
26
26
|
} & {
|
|
27
27
|
tag?: string;
|
|
28
28
|
} & React.RefAttributes<TamaguiElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAE1B,cAAc,EAEd,SAAS,IAAI,gBAAgB,EAC9B,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAOvC,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,EAAE,MAAM,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAC,GAC7E,IAAI,CAAC,0BAA0B,EAAE,KAAK,CAAC,GACvC,QAAQ,GAAG;IAGT,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAGJ,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC;AAExC,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;UANN,MAAM;wCAkDd,CAAC"}
|
package/dist/core/Box/Box.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { RadiusList } from '@alveole/theme';
|
|
2
3
|
import { styled, View as TamaguiView, } from '@tamagui/core';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
import { aplatirStyle } from '../styleTamagui/aplatirStyle';
|
|
5
6
|
import { definis } from '../styleTamagui/definis';
|
|
6
7
|
import { correctionFlexDuWeb } from '../styleTamagui/flexDuWeb';
|
|
8
|
+
import { elementDuTag } from './elementDuTag';
|
|
7
9
|
import { resolveSpacing } from './resolveSpacing';
|
|
8
10
|
const StyledView = styled(TamaguiView, { name: 'Box' });
|
|
9
11
|
export const Box = React.forwardRef(function Box(props, ref) {
|
|
10
12
|
const { tag, style, borderRadius, mt, mb, mr, ml, m, pt, pb, pl, pr, p, gap, ...viewProps } = props;
|
|
13
|
+
const rayon = borderRadius && RadiusList[borderRadius];
|
|
11
14
|
const radius = {
|
|
12
|
-
borderBottomRightRadius:
|
|
13
|
-
borderTopRightRadius:
|
|
14
|
-
borderBottomLeftRadius:
|
|
15
|
-
borderTopLeftRadius:
|
|
15
|
+
borderBottomRightRadius: rayon,
|
|
16
|
+
borderTopRightRadius: rayon,
|
|
17
|
+
borderBottomLeftRadius: rayon,
|
|
18
|
+
borderTopLeftRadius: rayon,
|
|
16
19
|
};
|
|
17
20
|
const margins = {
|
|
18
21
|
mt: resolveSpacing(mt),
|
|
@@ -31,6 +34,6 @@ export const Box = React.forwardRef(function Box(props, ref) {
|
|
|
31
34
|
const spacings = {
|
|
32
35
|
gap: resolveSpacing(gap),
|
|
33
36
|
};
|
|
34
|
-
const correctionFlex = correctionFlexDuWeb(style);
|
|
35
|
-
return (_jsx(StyledView, { ref: ref, render: tag
|
|
37
|
+
const correctionFlex = correctionFlexDuWeb(style, viewProps.flex);
|
|
38
|
+
return (_jsx(StyledView, { ref: ref, render: elementDuTag(tag), style: { ...aplatirStyle(style), ...correctionFlex }, ...radius, ...viewProps, ...definis(margins), ...definis(paddings), ...definis(spacings) }));
|
|
36
39
|
});
|
|
@@ -4,24 +4,24 @@ declare const _default: {
|
|
|
4
4
|
experimental: false;
|
|
5
5
|
description: string;
|
|
6
6
|
shortDescription: string;
|
|
7
|
-
component: import("react").ForwardRefExoticComponent<Omit<import("tamagui").ViewProps, "flex" | "
|
|
7
|
+
component: import("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"> & {
|
|
8
8
|
justify?: import("tamagui").ViewProps["justifyContent"];
|
|
9
9
|
} & import("../..").SizeStyle & {
|
|
10
|
-
p?:
|
|
11
|
-
pl?:
|
|
12
|
-
pr?:
|
|
13
|
-
pt?:
|
|
14
|
-
pb?:
|
|
15
|
-
m?:
|
|
16
|
-
ml?:
|
|
17
|
-
mr?:
|
|
18
|
-
mt?:
|
|
19
|
-
mb?:
|
|
20
|
-
backgroundColor?: import("
|
|
10
|
+
p?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
11
|
+
pl?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
12
|
+
pr?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
13
|
+
pt?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
14
|
+
pb?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
15
|
+
m?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
16
|
+
ml?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
17
|
+
mr?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
18
|
+
mt?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
19
|
+
mb?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
20
|
+
backgroundColor?: (import("@alveole/theme").ThemeColor | "transparent") | Partial<Record<"default" | "hover" | "press" | "focus" | "focusVisible" | "disabled", import("@alveole/theme").ThemeColor | "transparent">>;
|
|
21
21
|
borderWidth?: import("tamagui").ViewProps["borderWidth"];
|
|
22
|
-
borderRadius?:
|
|
23
|
-
borderColor?: import("
|
|
24
|
-
gap?:
|
|
22
|
+
borderRadius?: import("@alveole/theme").RadiusKey;
|
|
23
|
+
borderColor?: (import("@alveole/theme").ThemeColor | "transparent") | Partial<Record<"default" | "hover" | "press" | "focus" | "focusVisible" | "disabled", import("@alveole/theme").ThemeColor | "transparent">>;
|
|
24
|
+
gap?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
25
25
|
} & {
|
|
26
26
|
tag?: string;
|
|
27
27
|
} & import("react").RefAttributes<import("tamagui").TamaguiElement>>;
|
|
@@ -32,5 +32,9 @@ export declare const BoxDefault: () => import("react").JSX.Element;
|
|
|
32
32
|
export declare const BoxPadded: () => import("react").JSX.Element;
|
|
33
33
|
export declare const BoxPaddedWithBackground: () => import("react").JSX.Element;
|
|
34
34
|
export declare const BoxHovered: () => import("react").JSX.Element;
|
|
35
|
+
export declare const BoxSansTag: () => import("react").JSX.Element;
|
|
36
|
+
export declare const BoxFlexDansParentIndefini: () => import("react").JSX.Element;
|
|
37
|
+
export declare const BoxStyles: () => import("react").JSX.Element;
|
|
38
|
+
export declare const BoxTokens: () => import("react").JSX.Element;
|
|
35
39
|
export * as Sources from './Box.stories.sources';
|
|
36
40
|
//# sourceMappingURL=Box.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Box.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBASkB;AAElB,eAAO,MAAM,UAAU,mCAItB,CAAC;AAEF,eAAO,MAAM,SAAS,mCAIrB,CAAC;AAEF,eAAO,MAAM,uBAAuB,mCAOnC,CAAC;AAEF,eAAO,MAAM,UAAU,mCAOtB,CAAC;AAGF,eAAO,MAAM,UAAU,mCAYtB,CAAC;AAGF,eAAO,MAAM,yBAAyB,mCAYrC,CAAC;AAGF,eAAO,MAAM,SAAS,mCAYrB,CAAC;AAEF,eAAO,MAAM,SAAS,mCAMrB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Spacings, useTheme } from '@alveole/theme';
|
|
2
3
|
import { Typography } from '../Typography';
|
|
3
4
|
import { Box } from './Box';
|
|
4
5
|
export default {
|
|
@@ -11,7 +12,23 @@ export default {
|
|
|
11
12
|
styleFn: () => 'Aucun style appliqué',
|
|
12
13
|
};
|
|
13
14
|
export const BoxDefault = () => (_jsx(Box, { tag: "box", children: _jsx(Typography, { children: "Contenu par d\u00E9faut" }) }));
|
|
14
|
-
export const BoxPadded = () => (_jsx(Box, { tag: "padded", p:
|
|
15
|
-
export const BoxPaddedWithBackground = () =>
|
|
16
|
-
|
|
15
|
+
export const BoxPadded = () => (_jsx(Box, { tag: "padded", p: "2W", children: _jsx(Typography, { children: "Box avec padding" }) }));
|
|
16
|
+
export const BoxPaddedWithBackground = () => {
|
|
17
|
+
const { color } = useTheme();
|
|
18
|
+
return (_jsx(Box, { tag: "padded-with-background", backgroundColor: color.light.background['alt-grey'], p: "2W", children: _jsx(Typography, { children: "Box avec fond gris clair et padding" }) }));
|
|
19
|
+
};
|
|
20
|
+
export const BoxHovered = () => {
|
|
21
|
+
const { color } = useTheme();
|
|
22
|
+
return (_jsx(Box, { tag: "hovered", backgroundColor: { hover: color.light.background['alt-grey'] }, children: _jsx(Typography, { children: "Box avec fond gris changeant au hover" }) }));
|
|
23
|
+
};
|
|
24
|
+
// Sans tag, Box rend l'element inconnu <box> : il se met en page comme une div.
|
|
25
|
+
export const BoxSansTag = () => {
|
|
26
|
+
const { color } = useTheme();
|
|
27
|
+
return (_jsxs(Box, { tag: "box-comparaison", gap: "1W", children: [_jsx(Box, { backgroundColor: color.light.background['alt-grey'], p: "2W", children: _jsx(Typography, { children: "Box sans tag" }) }), _jsx(Box, { tag: "div", backgroundColor: color.light.background['alt-grey'], p: "2W", children: _jsx(Typography, { children: "Box en div" }) })] }));
|
|
28
|
+
};
|
|
29
|
+
// Dans un parent de hauteur indéfinie, `flex: 1` garde la hauteur de son contenu, en prop comme en style.
|
|
30
|
+
export const BoxFlexDansParentIndefini = () => (_jsxs(Box, { tag: "box-flex-parent", children: [_jsx(Box, { tag: "box-flex-en-prop", flex: 1, children: _jsx(Typography, { children: "flex: 1 en prop" }) }), _jsx(Box, { tag: "box-flex-en-style", style: { flex: 1 }, children: _jsx(Typography, { children: "flex: 1 en style" }) }), _jsx(Box, { tag: "box-flex-en-tableau", style: [{ flex: 1 }, { paddingLeft: Spacings['6W'] }], children: _jsx(Typography, { children: "flex: 1 en tableau, avec un autre style" }) })] }));
|
|
31
|
+
// Un style objet, en tableau ou en tableau imbriqué est fusionné avant d'atteindre le DOM.
|
|
32
|
+
export const BoxStyles = () => (_jsxs(Box, { gap: "1W", children: [_jsx(Box, { tag: "box-style-objet", style: { paddingLeft: Spacings['6W'] }, children: _jsx(Typography, { children: "Style objet" }) }), _jsx(Box, { tag: "box-style-tableau", style: [{ paddingLeft: Spacings['6W'] }, { marginTop: Spacings['0V'] }], children: _jsx(Typography, { children: "Style en tableau" }) }), _jsx(Box, { tag: "box-style-imbrique", style: [[{ paddingLeft: Spacings['6W'] }], { marginTop: Spacings['0V'] }], children: _jsx(Typography, { children: "Style en tableau imbriqu\u00E9" }) })] }));
|
|
33
|
+
export const BoxTokens = () => (_jsx(Box, { tag: "box-tokens-parent", width: 400, children: _jsx(Box, { tag: "box-tokens", width: 100, p: "2W", ml: "auto", mr: "10%", borderRadius: "md", children: _jsx(Typography, { children: "Tokens" }) }) }));
|
|
17
34
|
export * as Sources from './Box.stories.sources';
|
|
@@ -2,11 +2,19 @@ export declare const BoxDefault: () => string;
|
|
|
2
2
|
export declare const BoxPadded: () => string;
|
|
3
3
|
export declare const BoxPaddedWithBackground: () => string;
|
|
4
4
|
export declare const BoxHovered: () => string;
|
|
5
|
+
export declare const BoxSansTag: () => string;
|
|
6
|
+
export declare const BoxFlexDansParentIndefini: () => string;
|
|
7
|
+
export declare const BoxStyles: () => string;
|
|
8
|
+
export declare const BoxTokens: () => string;
|
|
5
9
|
export declare const storySources: {
|
|
6
10
|
readonly BoxDefault: () => string;
|
|
7
11
|
readonly BoxPadded: () => string;
|
|
8
12
|
readonly BoxPaddedWithBackground: () => string;
|
|
9
13
|
readonly BoxHovered: () => string;
|
|
14
|
+
readonly BoxSansTag: () => string;
|
|
15
|
+
readonly BoxFlexDansParentIndefini: () => string;
|
|
16
|
+
readonly BoxStyles: () => string;
|
|
17
|
+
readonly BoxTokens: () => string;
|
|
10
18
|
};
|
|
11
19
|
export type StorySourceName = keyof typeof storySources;
|
|
12
20
|
//# sourceMappingURL=Box.stories.sources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,cAAgI,CAAC;AAExJ,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"Box.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,cAAgI,CAAC;AAExJ,eAAO,MAAM,SAAS,cAAyI,CAAC;AAEhK,eAAO,MAAM,uBAAuB,cAAwS,CAAC;AAE7U,eAAO,MAAM,UAAU,cAAgR,CAAC;AAExS,eAAO,MAAM,UAAU,cAAub,CAAC;AAE/c,eAAO,MAAM,yBAAyB,cAA2f,CAAC;AAEliB,eAAO,MAAM,SAAS,cAAkjB,CAAC;AAEzkB,eAAO,MAAM,SAAS,cAAyP,CAAC;AAEhR,eAAO,MAAM,YAAY;;;;;;;;;CASf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/core/Box/Box.stories.tsx
|
|
3
3
|
export const BoxDefault = () => "export const BoxDefault = () => (\n <Box tag=\"box\">\n <Typography>Contenu par défaut</Typography>\n </Box>\n);";
|
|
4
|
-
export const BoxPadded = () => "export const BoxPadded = () => (\n <Box tag=\"padded\" p
|
|
5
|
-
export const BoxPaddedWithBackground = () => "export const BoxPaddedWithBackground = () => (\n
|
|
6
|
-
export const BoxHovered = () => "export const BoxHovered = () => (\n
|
|
4
|
+
export const BoxPadded = () => "export const BoxPadded = () => (\n <Box tag=\"padded\" p=\"2W\">\n <Typography>Box avec padding</Typography>\n </Box>\n);";
|
|
5
|
+
export const BoxPaddedWithBackground = () => "export const BoxPaddedWithBackground = () => {\n const { color } = useTheme();\n return (\n <Box tag=\"padded-with-background\" backgroundColor={color.light.background['alt-grey']} p=\"2W\">\n <Typography>Box avec fond gris clair et padding</Typography>\n </Box>\n );\n};";
|
|
6
|
+
export const BoxHovered = () => "export const BoxHovered = () => {\n const { color } = useTheme();\n return (\n <Box tag=\"hovered\" backgroundColor={{ hover: color.light.background['alt-grey'] }}>\n <Typography>Box avec fond gris changeant au hover</Typography>\n </Box>\n );\n};";
|
|
7
|
+
export const BoxSansTag = () => "export const BoxSansTag = () => {\n const { color } = useTheme();\n return (\n <Box tag=\"box-comparaison\" gap=\"1W\">\n <Box backgroundColor={color.light.background['alt-grey']} p=\"2W\">\n <Typography>Box sans tag</Typography>\n </Box>\n <Box tag=\"div\" backgroundColor={color.light.background['alt-grey']} p=\"2W\">\n <Typography>Box en div</Typography>\n </Box>\n </Box>\n );\n};";
|
|
8
|
+
export const BoxFlexDansParentIndefini = () => "export const BoxFlexDansParentIndefini = () => (\n <Box tag=\"box-flex-parent\">\n <Box tag=\"box-flex-en-prop\" flex={1}>\n <Typography>flex: 1 en prop</Typography>\n </Box>\n <Box tag=\"box-flex-en-style\" style={{ flex: 1 }}>\n <Typography>flex: 1 en style</Typography>\n </Box>\n <Box tag=\"box-flex-en-tableau\" style={[{ flex: 1 }, { paddingLeft: Spacings['6W'] }]}>\n <Typography>flex: 1 en tableau, avec un autre style</Typography>\n </Box>\n </Box>\n);";
|
|
9
|
+
export const BoxStyles = () => "export const BoxStyles = () => (\n <Box gap=\"1W\">\n <Box tag=\"box-style-objet\" style={{ paddingLeft: Spacings['6W'] }}>\n <Typography>Style objet</Typography>\n </Box>\n <Box tag=\"box-style-tableau\" style={[{ paddingLeft: Spacings['6W'] }, { marginTop: Spacings['0V'] }]}>\n <Typography>Style en tableau</Typography>\n </Box>\n <Box tag=\"box-style-imbrique\" style={[[{ paddingLeft: Spacings['6W'] }], { marginTop: Spacings['0V'] }]}>\n <Typography>Style en tableau imbriqué</Typography>\n </Box>\n </Box>\n);";
|
|
10
|
+
export const BoxTokens = () => "export const BoxTokens = () => (\n <Box tag=\"box-tokens-parent\" width={400}>\n <Box tag=\"box-tokens\" width={100} p=\"2W\" ml=\"auto\" mr=\"10%\" borderRadius=\"md\">\n <Typography>Tokens</Typography>\n </Box>\n </Box>\n);";
|
|
7
11
|
export const storySources = {
|
|
8
12
|
BoxDefault,
|
|
9
13
|
BoxPadded,
|
|
10
14
|
BoxPaddedWithBackground,
|
|
11
15
|
BoxHovered,
|
|
16
|
+
BoxSansTag,
|
|
17
|
+
BoxFlexDansParentIndefini,
|
|
18
|
+
BoxStyles,
|
|
19
|
+
BoxTokens,
|
|
12
20
|
};
|
|
@@ -1,25 +1,31 @@
|
|
|
1
|
-
import { SpacingKey } from '@alveole/theme';
|
|
1
|
+
import { RadiusKey, SpacingKey, ThemeColor } from '@alveole/theme';
|
|
2
2
|
import { ViewProps } from '@tamagui/core';
|
|
3
3
|
import { SizeStyle } from '../../type/SizeStyle';
|
|
4
|
+
type BoxSpacing = Exclude<SpacingKey, `${number}`>;
|
|
5
|
+
type BoxMargin = BoxSpacing | `${string}%` | 'auto';
|
|
6
|
+
type CouleurDeBox = ThemeColor | 'transparent';
|
|
7
|
+
type EtatTamagui = 'default' | 'hover' | 'press' | 'focus' | 'focusVisible' | 'disabled';
|
|
8
|
+
type BoxColor = CouleurDeBox | Partial<Record<EtatTamagui, CouleurDeBox>>;
|
|
4
9
|
export type BoxBaseStyle = Pick<ViewProps, 'display' | 'flex' | 'flexWrap' | 'flexDirection' | 'opacity' | 'overflow'> & {
|
|
5
10
|
justify?: ViewProps['justifyContent'];
|
|
6
11
|
};
|
|
7
12
|
export type BoxAdvancedStyle = SizeStyle & {
|
|
8
|
-
p?:
|
|
9
|
-
pl?:
|
|
10
|
-
pr?:
|
|
11
|
-
pt?:
|
|
12
|
-
pb?:
|
|
13
|
-
m?:
|
|
14
|
-
ml?:
|
|
15
|
-
mr?:
|
|
16
|
-
mt?:
|
|
17
|
-
mb?:
|
|
18
|
-
backgroundColor?:
|
|
13
|
+
p?: BoxSpacing;
|
|
14
|
+
pl?: BoxSpacing;
|
|
15
|
+
pr?: BoxSpacing;
|
|
16
|
+
pt?: BoxSpacing;
|
|
17
|
+
pb?: BoxSpacing;
|
|
18
|
+
m?: BoxMargin;
|
|
19
|
+
ml?: BoxMargin;
|
|
20
|
+
mr?: BoxMargin;
|
|
21
|
+
mt?: BoxMargin;
|
|
22
|
+
mb?: BoxMargin;
|
|
23
|
+
backgroundColor?: BoxColor;
|
|
19
24
|
borderWidth?: ViewProps['borderWidth'];
|
|
20
|
-
borderRadius?:
|
|
21
|
-
borderColor?:
|
|
22
|
-
gap?:
|
|
25
|
+
borderRadius?: RadiusKey;
|
|
26
|
+
borderColor?: BoxColor;
|
|
27
|
+
gap?: BoxSpacing;
|
|
23
28
|
};
|
|
24
29
|
export type BoxStyle = BoxBaseStyle & BoxAdvancedStyle;
|
|
30
|
+
export {};
|
|
25
31
|
//# sourceMappingURL=Box.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.types.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Box.types.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,KAAK,UAAU,GAAG,OAAO,CAAC,UAAU,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;AACnD,KAAK,SAAS,GAAG,UAAU,GAAG,GAAG,MAAM,GAAG,GAAG,MAAM,CAAC;AAEpD,KAAK,YAAY,GAAG,UAAU,GAAG,aAAa,CAAC;AAC/C,KAAK,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,CAAC;AAIzF,KAAK,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC;AAE1E,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,SAAS,EACT,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,eAAe,GAAG,SAAS,GAAG,UAAU,CAC3E,GAAG;IACF,OAAO,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG;IACzC,CAAC,CAAC,EAAE,UAAU,CAAC;IACf,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,EAAE,CAAC,EAAE,UAAU,CAAC;IAEhB,CAAC,CAAC,EAAE,SAAS,CAAC;IACd,EAAE,CAAC,EAAE,SAAS,CAAC;IACf,EAAE,CAAC,EAAE,SAAS,CAAC;IACf,EAAE,CAAC,EAAE,SAAS,CAAC;IACf,EAAE,CAAC,EAAE,SAAS,CAAC;IAEf,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B,WAAW,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,GAAG,CAAC,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elementDuTag.d.ts","sourceRoot":"","sources":["../../../src/core/Box/elementDuTag.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,GAAG,SAAS,WAOnD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Un nom d'element invalide fait lever `createElement` au DOM et tomber tout le rendu.
|
|
2
|
+
const NOM_D_ELEMENT = /^[a-z][a-z0-9-]*$/;
|
|
3
|
+
export const elementDuTag = (tag) => {
|
|
4
|
+
if (tag === undefined)
|
|
5
|
+
return 'box';
|
|
6
|
+
if (NOM_D_ELEMENT.test(tag))
|
|
7
|
+
return tag;
|
|
8
|
+
if (__DEV__) {
|
|
9
|
+
console.warn('Warning:', `Box : le tag "${tag}" n'est pas un nom d'element en minuscules, rendu en <box>.`);
|
|
10
|
+
}
|
|
11
|
+
return 'box';
|
|
12
|
+
};
|
|
@@ -12,11 +12,11 @@ declare const _default: {
|
|
|
12
12
|
paddingTop: number;
|
|
13
13
|
paddingBottom: number;
|
|
14
14
|
borderRadius: import("@alveole/theme").Radius;
|
|
15
|
-
color:
|
|
15
|
+
color: import("@alveole/theme").ThemeColor;
|
|
16
16
|
fontFamily: "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace";
|
|
17
17
|
};
|
|
18
18
|
codeText: {
|
|
19
|
-
color:
|
|
19
|
+
color: import("@alveole/theme").ThemeColor;
|
|
20
20
|
fontFamily: "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace";
|
|
21
21
|
};
|
|
22
22
|
codeSurface: {
|
|
@@ -12,5 +12,5 @@ export default {
|
|
|
12
12
|
styleFn: useStyles,
|
|
13
13
|
};
|
|
14
14
|
export const Basic = () => (_jsx(Box, { children: _jsxs(Typography, { children: ["La balise ", _jsx(Code, { children: '<Code>' }), " doit \u00EAtre comprise dans une balise ", _jsx(Code, { children: '<Typography>' })] }) }));
|
|
15
|
-
export const InText = () => (_jsx(Box, { children: _jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
15
|
+
export const InText = () => (_jsx(Box, { children: _jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsxs(Typography, { children: ["Le fichier CSV doit avoir une ", _jsx(Code, { children: "," }), " comme s\u00E9parateur de colonnes."] }), _jsxs(Typography, { children: ["Exemple : ", _jsx(Code, { children: "Individuel" }), " ou ", _jsx(Code, { children: "Collectif" })] })] }) }));
|
|
16
16
|
export * as Sources from './Code.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Code.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Code/Code.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,cAA6M,CAAC;AAEhO,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Code.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Code/Code.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,cAA6M,CAAC;AAEhO,eAAO,MAAM,MAAM,cAAsX,CAAC;AAE1Y,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/core/Code/Code.stories.tsx
|
|
3
3
|
export const Basic = () => "export const Basic = () => (\n <Box>\n <Typography>\n La balise <Code>{'<Code>'}</Code> doit être comprise dans une balise <Code>{'<Typography>'}</Code>\n </Typography>\n </Box>\n);";
|
|
4
|
-
export const InText = () => "export const InText = () => (\n <Box>\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
4
|
+
export const InText = () => "export const InText = () => (\n <Box>\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <Typography>\n Le fichier CSV doit avoir une <Code>,</Code> comme séparateur de colonnes.\n </Typography>\n <Typography>\n Exemple : <Code>Individuel</Code> ou <Code>Collectif</Code>\n </Typography>\n </Box>\n </Box>\n);";
|
|
5
5
|
export const storySources = {
|
|
6
6
|
Basic,
|
|
7
7
|
InText,
|
|
@@ -6,11 +6,11 @@ export declare const useStyles: () => {
|
|
|
6
6
|
paddingTop: number;
|
|
7
7
|
paddingBottom: number;
|
|
8
8
|
borderRadius: import("@alveole/theme").Radius;
|
|
9
|
-
color:
|
|
9
|
+
color: import("@alveole/theme").ThemeColor;
|
|
10
10
|
fontFamily: "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace";
|
|
11
11
|
};
|
|
12
12
|
codeText: {
|
|
13
|
-
color:
|
|
13
|
+
color: import("@alveole/theme").ThemeColor;
|
|
14
14
|
fontFamily: "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace";
|
|
15
15
|
};
|
|
16
16
|
codeSurface: {
|
|
@@ -14,5 +14,5 @@ export default {
|
|
|
14
14
|
};
|
|
15
15
|
const inputStyle = { borderWidth: 1, borderColor: '#ccc', borderRadius: 4, padding: 8 };
|
|
16
16
|
/** Taper dans le champ — cliquer en dehors ferme le clavier. */
|
|
17
|
-
export const WithKeyboardAware = () => (_jsx(Form, { children: _jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
17
|
+
export const WithKeyboardAware = () => (_jsx(Form, { children: _jsxs(Box, { display: "flex", flexDirection: "column", gap: "3V", children: [_jsx(RNTextInput, { placeholder: "Pr\u00E9nom", style: inputStyle }), _jsx(RNTextInput, { placeholder: "Email", keyboardType: "email-address", style: inputStyle })] }) }));
|
|
18
18
|
export * as Sources from './Form.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Form/Form.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"Form.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Form/Form.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,cAAwT,CAAC;AAEvV,eAAO,MAAM,YAAY;;CAEf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAEtE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/core/Form/Form.stories.tsx
|
|
3
|
-
export const WithKeyboardAware = () => "export const WithKeyboardAware = () => (\n <Form>\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
3
|
+
export const WithKeyboardAware = () => "export const WithKeyboardAware = () => (\n <Form>\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3V\">\n <RNTextInput placeholder=\"Prénom\" style={inputStyle} />\n <RNTextInput placeholder=\"Email\" keyboardType=\"email-address\" style={inputStyle} />\n </Box>\n </Form>\n);";
|
|
4
4
|
export const storySources = {
|
|
5
5
|
WithKeyboardAware,
|
|
6
6
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ThemeColor } from '@alveole/theme';
|
|
1
2
|
declare const _default: {
|
|
2
3
|
title: string;
|
|
3
4
|
tags: "core"[];
|
|
@@ -5,21 +6,21 @@ declare const _default: {
|
|
|
5
6
|
description: string;
|
|
6
7
|
shortDescription: string;
|
|
7
8
|
component: ((props: Pick<import("..").BoxProps, "gap" | "children"> & import("../..").SizeStyle & {
|
|
8
|
-
p?:
|
|
9
|
-
pl?:
|
|
10
|
-
pr?:
|
|
11
|
-
pt?:
|
|
12
|
-
pb?:
|
|
13
|
-
m?:
|
|
14
|
-
ml?:
|
|
15
|
-
mr?:
|
|
16
|
-
mt?:
|
|
17
|
-
mb?:
|
|
18
|
-
backgroundColor?:
|
|
9
|
+
p?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
10
|
+
pl?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
11
|
+
pr?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
12
|
+
pt?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
13
|
+
pb?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
14
|
+
m?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
15
|
+
ml?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
16
|
+
mr?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
17
|
+
mt?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
18
|
+
mb?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
|
|
19
|
+
backgroundColor?: (ThemeColor | "transparent") | Partial<Record<"default" | "hover" | "press" | "focus" | "focusVisible" | "disabled", ThemeColor | "transparent">>;
|
|
19
20
|
borderWidth?: import("tamagui").ViewProps["borderWidth"];
|
|
20
|
-
borderRadius?:
|
|
21
|
-
borderColor?:
|
|
22
|
-
gap?:
|
|
21
|
+
borderRadius?: import("@alveole/theme").RadiusKey;
|
|
22
|
+
borderColor?: (ThemeColor | "transparent") | Partial<Record<"default" | "hover" | "press" | "focus" | "focusVisible" | "disabled", ThemeColor | "transparent">>;
|
|
23
|
+
gap?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
|
|
23
24
|
}) => import("react").JSX.Element) & {
|
|
24
25
|
Column: (props: import("./Grid").GridColumnProps) => import("react").JSX.Element;
|
|
25
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Grid/Grid.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Grid/Grid.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgD,UAAU,EAAE,MAAM,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAU1F,wBASkB;AAYlB,eAAO,MAAM,eAAe,mCAS3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mCAS7B,CAAC;AAEF,eAAO,MAAM,YAAY,mCAYxB,CAAC;AAEF,eAAO,MAAM,WAAW,mCAevB,CAAC;AAEF,eAAO,MAAM,eAAe,mCAY3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mCAS7B,CAAC;AAEF,eAAO,MAAM,sBAAsB,mCAYlC,CAAC;AAEF,eAAO,MAAM,YAAY,mCAYxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCA6B5B,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CustomPalette, enCouleursDuTheme, RadiusList } from '@alveole/theme';
|
|
2
3
|
import { Button } from '../../ui/Button';
|
|
3
4
|
import { Card } from '../../ui/Card';
|
|
4
5
|
import { A } from '../A';
|
|
@@ -15,16 +16,17 @@ export default {
|
|
|
15
16
|
component: Grid,
|
|
16
17
|
styleFn: useStyles,
|
|
17
18
|
};
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
19
|
+
const { background } = enCouleursDuTheme(CustomPalette).light;
|
|
20
|
+
const colColor = background['contrast-info'];
|
|
21
|
+
const colColorAlt = background['contrast-success'];
|
|
22
|
+
const Col = ({ color = colColor, label }) => (_jsx(Box, { backgroundColor: color, p: "1W", style: { borderRadius: RadiusList.sm }, children: _jsx(Typography, { children: label }) }));
|
|
23
|
+
export const TwoEqualColumns = () => (_jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: 6, children: _jsx(Col, { label: "6 colonnes" }) }), _jsx(Grid.Column, { size: 6, children: _jsx(Col, { label: "6 colonnes" }) })] }));
|
|
24
|
+
export const AsymmetricColumns = () => (_jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: 4, children: _jsx(Col, { label: "4 colonnes" }) }), _jsx(Grid.Column, { size: 8, children: _jsx(Col, { color: colColorAlt, label: "8 colonnes" }) })] }));
|
|
25
|
+
export const ThreeColumns = () => (_jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: 4, children: _jsx(Col, { label: "4 colonnes" }) }), _jsx(Grid.Column, { size: 4, children: _jsx(Col, { color: colColorAlt, label: "4 colonnes" }) }), _jsx(Grid.Column, { size: 4, children: _jsx(Col, { label: "4 colonnes" }) })] }));
|
|
26
|
+
export const FourColumns = () => (_jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: 3, children: _jsx(Col, { label: "3" }) }), _jsx(Grid.Column, { size: 3, children: _jsx(Col, { color: colColorAlt, label: "3" }) }), _jsx(Grid.Column, { size: 3, children: _jsx(Col, { label: "3" }) }), _jsx(Grid.Column, { size: 3, children: _jsx(Col, { color: colColorAlt, label: "3" }) })] }));
|
|
27
|
+
export const FullWidthColumn = () => (_jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: 12, children: _jsx(Col, { label: "12 colonnes (pleine largeur)" }) }), _jsx(Grid.Column, { size: 6, children: _jsx(Col, { label: "6 colonnes" }) }), _jsx(Grid.Column, { size: 6, children: _jsx(Col, { color: colColorAlt, label: "6 colonnes" }) })] }));
|
|
28
|
+
export const ResponsiveColumns = () => (_jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: { mobile: 12, desktop: 6 }, children: _jsx(Col, { label: "12 mobile / 6 desktop" }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 6 }, children: _jsx(Col, { color: colColorAlt, label: "12 mobile / 6 desktop" }) })] }));
|
|
29
|
+
export const ResponsiveThreeColumns = () => (_jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: { mobile: 12, tablet: 6, desktop: 4 }, children: _jsx(Col, { label: "12 mobile / 6 tablet / 4 desktop" }) }), _jsx(Grid.Column, { size: { mobile: 12, tablet: 6, desktop: 4 }, children: _jsx(Col, { color: colColorAlt, label: "12 mobile / 6 tablet / 4 desktop" }) }), _jsx(Grid.Column, { size: { mobile: 12, tablet: 12, desktop: 4 }, children: _jsx(Col, { label: "12 mobile / 12 tablet / 4 desktop" }) })] }));
|
|
30
|
+
export const WithLargeGap = () => (_jsxs(Grid, { gap: "3W", children: [_jsx(Grid.Column, { size: 4, children: _jsx(Col, { label: "gap 24" }) }), _jsx(Grid.Column, { size: 4, children: _jsx(Col, { color: colColorAlt, label: "gap 24" }) }), _jsx(Grid.Column, { size: 4, children: _jsx(Col, { label: "gap 24" }) })] }));
|
|
31
|
+
export const EqualHeightCards = () => (_jsxs(Grid, { gap: "2W", children: [_jsx(Grid.Column, { size: { mobile: 12, tablet: 6, desktop: 4 }, children: _jsxs(Card, { children: [_jsx(Card.Header, { titre: "Titre court", sousTitre: "Une ligne" }), _jsx(Card.Actions, { children: _jsx(Button, { variant: "secondary", title: "Voir", size: "sm" }) })] }) }), _jsx(Grid.Column, { size: { mobile: 12, tablet: 6, desktop: 4 }, children: _jsxs(Card, { children: [_jsx(Card.Header, { titre: "Un titre bien plus long qui passe sur deux lignes", sousTitre: "Un sous-titre lui aussi assez long pour occuper plusieurs lignes dans la carte" }), _jsx(Card.Actions, { children: _jsx(Button, { variant: "secondary", title: "Voir", size: "sm" }) })] }) }), _jsx(Grid.Column, { size: { mobile: 12, tablet: 6, desktop: 4 }, children: _jsx(A, { href: "/components/Card", children: _jsx(Card, { children: _jsx(Card.Header, { titre: "Carte cliquable" }) }) }) })] }));
|
|
30
32
|
export * as Sources from './Grid.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Grid/Grid.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"Grid.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Grid/Grid.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,cAA6P,CAAC;AAE1R,eAAO,MAAM,iBAAiB,cAAmR,CAAC;AAElT,eAAO,MAAM,YAAY,cAAkW,CAAC;AAE5X,eAAO,MAAM,WAAW,cAAqa,CAAC;AAE9b,eAAO,MAAM,eAAe,cAAwX,CAAC;AAErZ,eAAO,MAAM,iBAAiB,cAA2V,CAAC;AAE1X,eAAO,MAAM,sBAAsB,cAA4hB,CAAC;AAEhkB,eAAO,MAAM,YAAY,cAAsV,CAAC;AAEhX,eAAO,MAAM,gBAAgB,cAA2hC,CAAC;AAEzjC,eAAO,MAAM,YAAY;;;;;;;;;;CAUf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|