@alveole/components 2.0.0-alpha.15 → 2.0.0-alpha.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/AlveoleProvider/AlveoleProvider.d.ts +17 -0
- package/dist/core/AlveoleProvider/AlveoleProvider.d.ts.map +1 -0
- package/dist/core/AlveoleProvider/AlveoleProvider.js +15 -0
- package/dist/core/AlveoleProvider/index.d.ts +2 -0
- package/dist/core/AlveoleProvider/index.d.ts.map +1 -0
- package/dist/core/AlveoleProvider/index.js +1 -0
- package/dist/core/AnchorHeading/AnchorHeading.d.ts +6 -2
- package/dist/core/AnchorHeading/AnchorHeading.d.ts.map +1 -1
- package/dist/core/AnchorHeading/AnchorHeading.js +1 -1
- package/dist/core/AnchorHeading/AnchorHeading.stories.d.ts +2 -1
- package/dist/core/AnchorHeading/AnchorHeading.stories.d.ts.map +1 -1
- package/dist/core/AnchorHeading/AnchorHeading.stories.js +1 -0
- package/dist/core/AnchorHeading/AnchorHeading.stories.sources.d.ts +2 -0
- package/dist/core/AnchorHeading/AnchorHeading.stories.sources.d.ts.map +1 -1
- package/dist/core/AnchorHeading/AnchorHeading.stories.sources.js +2 -0
- package/dist/core/AnchorHeading/AnchorHeading.web.d.ts +1 -1
- package/dist/core/AnchorHeading/AnchorHeading.web.d.ts.map +1 -1
- package/dist/core/AnchorHeading/AnchorHeading.web.js +7 -4
- package/dist/core/AnchorHeading/slug.d.ts +3 -0
- package/dist/core/AnchorHeading/slug.d.ts.map +1 -1
- package/dist/core/AnchorHeading/slug.js +11 -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/Heading/Heading.d.ts +8 -0
- package/dist/core/Heading/Heading.d.ts.map +1 -0
- package/dist/core/Heading/Heading.js +15 -0
- package/dist/core/Heading/Heading.stories.d.ts +13 -0
- package/dist/core/Heading/Heading.stories.d.ts.map +1 -0
- package/dist/core/Heading/Heading.stories.js +13 -0
- package/dist/core/Heading/Heading.stories.sources.d.ts +8 -0
- package/dist/core/Heading/Heading.stories.sources.d.ts.map +1 -0
- package/dist/core/Heading/Heading.stories.sources.js +8 -0
- package/dist/core/Heading/index.d.ts +2 -0
- package/dist/core/Heading/index.d.ts.map +1 -0
- package/dist/core/Heading/index.js +1 -0
- 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 +14 -12
- 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 +2 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +2 -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/stories/index.d.ts +1 -0
- package/dist/stories/index.d.ts.map +1 -1
- package/dist/stories/index.js +1 -0
- 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 +2 -2
- package/dist/ui/PriceInput/PriceInput.stories.d.ts +22 -6
- package/dist/ui/PriceInput/PriceInput.stories.d.ts.map +1 -1
- package/dist/ui/PriceInput/PriceInput.stories.js +2 -1
- package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts +2 -0
- package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts.map +1 -1
- package/dist/ui/PriceInput/PriceInput.stories.sources.js +3 -1
- package/dist/ui/PriceInput/PriceInput.styles.d.ts +20 -5
- package/dist/ui/PriceInput/PriceInput.styles.d.ts.map +1 -1
- package/dist/ui/PriceInput/PriceInput.styles.js +20 -6
- package/dist/ui/PriceInput/PriceInput.web.d.ts +0 -1
- package/dist/ui/PriceInput/PriceInput.web.d.ts.map +1 -1
- package/dist/ui/PriceInput/PriceInput.web.js +9 -10
- package/dist/ui/PriceInput/cadrePrix.d.ts +43 -0
- package/dist/ui/PriceInput/cadrePrix.d.ts.map +1 -0
- package/dist/ui/PriceInput/cadrePrix.js +9 -0
- 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/PriceInput/useSaisieMontant.d.ts +5 -0
- package/dist/ui/PriceInput/useSaisieMontant.d.ts.map +1 -0
- package/dist/ui/PriceInput/useSaisieMontant.js +19 -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 +12 -12
- 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/Sidebar/SidebarItem.d.ts +8 -2
- package/dist/ui/Sidebar/SidebarItem.d.ts.map +1 -1
- package/dist/ui/Sidebar/SidebarItem.js +5 -2
- 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 +24 -24
- package/dist/ui/PriceInput/PriceInput.css +0 -9
|
@@ -7,6 +7,7 @@ import { A } from '../../core/A';
|
|
|
7
7
|
import { Box } from '../../core/Box';
|
|
8
8
|
import { fondAuSurvol } from '../../core/styleTamagui/fondAuSurvol';
|
|
9
9
|
import { Typography } from '../../core/Typography';
|
|
10
|
+
import { Counter } from '../Counter';
|
|
10
11
|
import { LeadingSlot } from '../Leading';
|
|
11
12
|
import { useStyles } from './Sidebar.styles';
|
|
12
13
|
// Un item mène quelque part ou déclenche quelque chose : dans un cas c'est un lien, dans
|
|
@@ -21,6 +22,8 @@ const IndicateurPageCourante = () => {
|
|
|
21
22
|
const styles = useStyles();
|
|
22
23
|
return (_jsx(Box, { tag: "sidebar-item-indicator", style: styles.sidebarItemSelectedIndicator, children: _jsx(Box, { style: styles.sidebarItemSelectedIndicatorContent }) }));
|
|
23
24
|
};
|
|
25
|
+
// Un compteur à zéro ne compte rien : on ne l'affiche pas.
|
|
26
|
+
const CompteurDItem = ({ counter, counterVariant = 'default' }) => counter != null && counter > 0 ? (_jsx(Box, { mt: "auto", mb: "auto", children: _jsx(Counter, { variant: counterVariant, count: counter }) })) : null;
|
|
24
27
|
const SidebarItemDesktop = (props) => {
|
|
25
28
|
const { title, leading } = props;
|
|
26
29
|
const styles = useStyles();
|
|
@@ -31,7 +34,7 @@ const SidebarItemDesktop = (props) => {
|
|
|
31
34
|
// La ligne courante se survole comme ses voisines : elle est un lien au même titre, et
|
|
32
35
|
// lui réserver une teinte propre n'ajoutait qu'un cas particulier. Son fond de repos
|
|
33
36
|
// étant plus sombre, le survol commun l'éclaircit - la direction que prend Primer.
|
|
34
|
-
backgroundColor: fond, children: [_jsx(LeadingSlot, { contenu: leading, apparence: { size: 'sm' } }), _jsx(Typography, { style: { ...styles.sidebarItemTitleDesktop, ...titleStyleSelected }, children: title })] })] }) }));
|
|
37
|
+
backgroundColor: fond, children: [_jsx(LeadingSlot, { contenu: leading, apparence: { size: 'sm' } }), _jsx(Typography, { style: { ...styles.sidebarItemTitleDesktop, ...titleStyleSelected, flex: 1, textAlign: 'left' }, numberOfLines: 1, children: title }), _jsx(CompteurDItem, { ...props })] })] }) }));
|
|
35
38
|
};
|
|
36
39
|
const SidebarItemMobile = (props) => {
|
|
37
40
|
const { title, leading } = props;
|
|
@@ -49,7 +52,7 @@ const SidebarItemMobile = (props) => {
|
|
|
49
52
|
color: isCurrentPage
|
|
50
53
|
? styles.sidebarItemTitleSelectedMobile.color
|
|
51
54
|
: styles.sidebarItemTitleSelectedMobile.stroke,
|
|
52
|
-
} }), _jsx(Typography, { style: titre, color: { default: couleurDuTitre, hover: couleurAuSurvol }, children: title })] })] }) }));
|
|
55
|
+
} }), _jsx(Typography, { style: { ...titre, flex: 1, textAlign: 'left' }, color: { default: couleurDuTitre, hover: couleurAuSurvol }, numberOfLines: 1, children: title }), _jsx(CompteurDItem, { ...props })] })] }) }));
|
|
53
56
|
};
|
|
54
57
|
export const SidebarItem = (props) => {
|
|
55
58
|
const { isVariant } = useTheme();
|
|
@@ -53,7 +53,7 @@ export const Signature = (props) => {
|
|
|
53
53
|
const styles = useStyles();
|
|
54
54
|
const ref = React.useRef(null);
|
|
55
55
|
const { handleOk, handleEnd, handleClear } = useLectureDifferee(ref, onChange);
|
|
56
|
-
const webviewHeightWithBorders = height + spacingValue('
|
|
56
|
+
const webviewHeightWithBorders = height + spacingValue('4W') + spacingValue('2W') + 3;
|
|
57
57
|
return (_jsxs(Box, { height: webviewHeightWithBorders, width: '100%', children: [_jsx(SignatureHeader, { date: date, dateLabel: dateLabel, clearButtonLabel: clearButtonLabel, onClear: () => ref.current?.clearSignature() }), _jsx(Box, { tag: "signature", height: '100%', onTouchEnd: onEnd, maxH: webviewHeightWithBorders, style: styles.container, children: _jsx(SignatureCanvas, { ref: ref, onOK: handleOk, onEnd: handleEnd, onClear: handleClear, penColor: styles.pen.color, backgroundColor: styles.pen.backgroundColor, dotSize: 3.5, minWidth: 3, maxWidth: 4, onBegin: onBegin, androidHardwareAccelerationDisabled: true, webviewProps: { cacheEnabled: false, androidLayerType: 'software' }, webStyle: feuilleDeStyleCanvas({
|
|
58
58
|
height,
|
|
59
59
|
rayon: spacing('3V'),
|
|
@@ -12,11 +12,11 @@ declare const _default: {
|
|
|
12
12
|
flexDirection: "column";
|
|
13
13
|
};
|
|
14
14
|
pen: {
|
|
15
|
-
color:
|
|
15
|
+
color: import("@alveole/theme").ThemeColor;
|
|
16
16
|
backgroundColor: "#FFFFFF";
|
|
17
17
|
};
|
|
18
18
|
signatureWeb: {
|
|
19
|
-
borderColor:
|
|
19
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
20
20
|
borderWidth: number;
|
|
21
21
|
borderRadius: import("@alveole/theme").Radius;
|
|
22
22
|
};
|
|
@@ -5,11 +5,11 @@ export declare const useStyles: () => {
|
|
|
5
5
|
flexDirection: "column";
|
|
6
6
|
};
|
|
7
7
|
pen: {
|
|
8
|
-
color:
|
|
8
|
+
color: import("@alveole/theme").ThemeColor;
|
|
9
9
|
backgroundColor: "#FFFFFF";
|
|
10
10
|
};
|
|
11
11
|
signatureWeb: {
|
|
12
|
-
borderColor:
|
|
12
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
13
13
|
borderWidth: number;
|
|
14
14
|
borderRadius: import("@alveole/theme").Radius;
|
|
15
15
|
};
|
|
@@ -5,7 +5,7 @@ import { Box } from '../../core/Box';
|
|
|
5
5
|
import { useStyles } from './Skeleton.styles';
|
|
6
6
|
const PULSE_DURATION = 700;
|
|
7
7
|
export const Skeleton = (props) => {
|
|
8
|
-
const { width = '100%', height = 16, borderRadius =
|
|
8
|
+
const { width = '100%', height = 16, borderRadius = 'sm', style, ...rest } = props;
|
|
9
9
|
const styles = useStyles();
|
|
10
10
|
const [opacity] = React.useState(() => new Animated.Value(0.5));
|
|
11
11
|
React.useEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Skeleton/Skeleton.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA,wBAakB;AAElB,eAAO,MAAM,KAAK,mCAAiC,CAAC;AAEpD,eAAO,MAAM,KAAK,mCAA4C,CAAC;AAE/D,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Skeleton.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Skeleton/Skeleton.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA,wBAakB;AAElB,eAAO,MAAM,KAAK,mCAAiC,CAAC;AAEpD,eAAO,MAAM,KAAK,mCAA4C,CAAC;AAE/D,eAAO,MAAM,IAAI,mCAAgE,CAAC;AAElF,eAAO,MAAM,SAAS,mCAAoD,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,UAAU,mCAOtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,mCAY1B,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC"}
|
|
@@ -18,8 +18,8 @@ La forme se règle avec \`width\` (\`100%\` par défaut), \`height\` (16 px par
|
|
|
18
18
|
};
|
|
19
19
|
export const Ligne = () => _jsx(Skeleton, { width: "60%" });
|
|
20
20
|
export const Carre = () => _jsx(Skeleton, { width: 64, height: 64 });
|
|
21
|
-
export const Rond = () => _jsx(Skeleton, { width: 48, height: 48, borderRadius:
|
|
22
|
-
export const Rectangle = () => _jsx(Skeleton, { height: 160, borderRadius:
|
|
21
|
+
export const Rond = () => _jsx(Skeleton, { width: 48, height: 48, borderRadius: "full" });
|
|
22
|
+
export const Rectangle = () => _jsx(Skeleton, { height: 160, borderRadius: "md" });
|
|
23
23
|
/**
|
|
24
24
|
* Des lignes de largeurs décroissantes imitent un paragraphe de texte.
|
|
25
25
|
*/
|
|
@@ -27,5 +27,5 @@ export const Paragraphe = () => (_jsxs(Box, { display: "flex", flexDirection: "c
|
|
|
27
27
|
/**
|
|
28
28
|
* Les formes se composent pour préfigurer un élément de liste : un avatar rond, un titre et un sous-titre.
|
|
29
29
|
*/
|
|
30
|
-
export const ElementDeListe = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap: "2W", width: "100%", children: [0, 1, 2].map(i => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "1W", style: { alignItems: 'center' }, children: [_jsx(Skeleton, { width: 40, height: 40, borderRadius:
|
|
30
|
+
export const ElementDeListe = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap: "2W", width: "100%", children: [0, 1, 2].map(i => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "1W", style: { alignItems: 'center' }, children: [_jsx(Skeleton, { width: 40, height: 40, borderRadius: "full" }), _jsxs(Box, { display: "flex", flexDirection: "column", gap: "1V", flex: 1, children: [_jsx(Skeleton, { width: "40%", height: 18 }), _jsx(Skeleton, { width: "65%", height: 14 })] })] }, i))) }));
|
|
31
31
|
export * as Sources from './Skeleton.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Skeleton/Skeleton.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,cAAiE,CAAC;AAEpF,eAAO,MAAM,KAAK,cAA0E,CAAC;AAE7F,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Skeleton.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Skeleton/Skeleton.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,cAAiE,CAAC;AAEpF,eAAO,MAAM,KAAK,cAA0E,CAAC;AAE7F,eAAO,MAAM,IAAI,cAA+F,CAAC;AAEjH,eAAO,MAAM,SAAS,cAAwF,CAAC;AAE/G,eAAO,MAAM,UAAU,cAAqQ,CAAC;AAE7R,eAAO,MAAM,cAAc,cAAyiB,CAAC;AAErkB,eAAO,MAAM,YAAY;;;;;;;CAOf,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"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// Source: src/ui/Skeleton/Skeleton.stories.tsx
|
|
3
3
|
export const Ligne = () => "export const Ligne = () => <Skeleton width=\"60%\" />;";
|
|
4
4
|
export const Carre = () => "export const Carre = () => <Skeleton width={64} height={64} />;";
|
|
5
|
-
export const Rond = () => "export const Rond = () => <Skeleton width={48} height={48} borderRadius
|
|
6
|
-
export const Rectangle = () => "export const Rectangle = () => <Skeleton height={160} borderRadius
|
|
5
|
+
export const Rond = () => "export const Rond = () => <Skeleton width={48} height={48} borderRadius=\"full\" />;";
|
|
6
|
+
export const Rectangle = () => "export const Rectangle = () => <Skeleton height={160} borderRadius=\"md\" />;";
|
|
7
7
|
export const Paragraphe = () => "export const Paragraphe = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"1V\" width=\"100%\">\n <Skeleton width=\"40%\" height={20} />\n <Skeleton />\n <Skeleton width=\"90%\" />\n <Skeleton width=\"65%\" />\n </Box>\n);";
|
|
8
|
-
export const ElementDeListe = () => "export const ElementDeListe = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"2W\" width=\"100%\">\n {[0, 1, 2].map(i => (\n <Box key={i} display=\"flex\" flexDirection=\"row\" gap=\"1W\" style={{ alignItems: 'center' }}>\n <Skeleton width={40} height={40} borderRadius
|
|
8
|
+
export const ElementDeListe = () => "export const ElementDeListe = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"2W\" width=\"100%\">\n {[0, 1, 2].map(i => (\n <Box key={i} display=\"flex\" flexDirection=\"row\" gap=\"1W\" style={{ alignItems: 'center' }}>\n <Skeleton width={40} height={40} borderRadius=\"full\" />\n <Box display=\"flex\" flexDirection=\"column\" gap=\"1V\" flex={1}>\n <Skeleton width=\"40%\" height={18} />\n <Skeleton width=\"65%\" height={14} />\n </Box>\n </Box>\n ))}\n </Box>\n);";
|
|
9
9
|
export const storySources = {
|
|
10
10
|
Ligne,
|
|
11
11
|
Carre,
|
|
@@ -7,10 +7,10 @@ declare const _default: {
|
|
|
7
7
|
component: ({ style, ...props }: import("./Spinner.shared").SpinnerProps) => import("react").JSX.Element | null;
|
|
8
8
|
styleFn: () => {
|
|
9
9
|
track: {
|
|
10
|
-
color:
|
|
10
|
+
color: import("@alveole/theme").ThemeColor;
|
|
11
11
|
};
|
|
12
12
|
arc: {
|
|
13
|
-
color:
|
|
13
|
+
color: import("@alveole/theme").ThemeColor;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
};
|
|
@@ -20,7 +20,7 @@ La prop \`delay\` permet de retarder l'apparition du spinner pour éviter un fla
|
|
|
20
20
|
component: Spinner,
|
|
21
21
|
styleFn: useStyles,
|
|
22
22
|
};
|
|
23
|
-
export const Sizes = () => (_jsxs(Box, { display: "flex", flexDirection: "row", style: { alignItems: 'center' }, gap:
|
|
23
|
+
export const Sizes = () => (_jsxs(Box, { display: "flex", flexDirection: "row", style: { alignItems: 'center' }, gap: "2W", children: [_jsx(Spinner, { size: "sm" }), _jsx(Spinner, { size: "md" }), _jsx(Spinner, { size: "lg" })] }));
|
|
24
24
|
/**
|
|
25
25
|
* `delay` retarde l'apparition du spinner pour éviter un flash sur les opérations rapides :
|
|
26
26
|
* rien ne s'affiche avant que le délai ne soit écoulé. `'short'` attend 300 ms, `'long'`
|
|
@@ -28,5 +28,5 @@ export const Sizes = () => (_jsxs(Box, { display: "flex", flexDirection: "row",
|
|
|
28
28
|
* millisecondes. C'est cette même prop que `Button` expose sous le nom `loadingDelay`, pour
|
|
29
29
|
* régler le retard de son propre spinner pendant `isLoading`.
|
|
30
30
|
*/
|
|
31
|
-
export const WithDelay = () => (_jsxs(Box, { display: "flex", flexDirection: "row", style: { alignItems: 'center' }, gap:
|
|
31
|
+
export const WithDelay = () => (_jsxs(Box, { display: "flex", flexDirection: "row", style: { alignItems: 'center' }, gap: "2W", children: [_jsx(Spinner, { size: "md", delay: "short" }, "short"), _jsx(Spinner, { size: "md", delay: "long" }, "long")] }));
|
|
32
32
|
export * as Sources from './Spinner.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Spinner/Spinner.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"Spinner.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Spinner/Spinner.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,cAAwO,CAAC;AAE3P,eAAO,MAAM,SAAS,cAAyQ,CAAC;AAEhS,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,CAEtE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/ui/Spinner/Spinner.stories.tsx
|
|
3
|
-
export const Sizes = () => "export const Sizes = () => (\n <Box display=\"flex\" flexDirection=\"row\" style={{ alignItems: 'center' }} gap
|
|
4
|
-
export const WithDelay = () => "export const WithDelay = () => (\n <Box display=\"flex\" flexDirection=\"row\" style={{ alignItems: 'center' }} gap
|
|
3
|
+
export const Sizes = () => "export const Sizes = () => (\n <Box display=\"flex\" flexDirection=\"row\" style={{ alignItems: 'center' }} gap=\"2W\">\n <Spinner size=\"sm\" />\n <Spinner size=\"md\" />\n <Spinner size=\"lg\" />\n </Box>\n);";
|
|
4
|
+
export const WithDelay = () => "export const WithDelay = () => (\n <Box display=\"flex\" flexDirection=\"row\" style={{ alignItems: 'center' }} gap=\"2W\">\n <Spinner size=\"md\" delay=\"short\" key=\"short\" />\n <Spinner size=\"md\" delay=\"long\" key=\"long\" />\n </Box>\n);";
|
|
5
5
|
export const storySources = {
|
|
6
6
|
Sizes,
|
|
7
7
|
WithDelay,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Animated } from 'react-native';
|
|
2
|
+
export interface Rotation extends Animated.AnimatedInterpolation<string> {
|
|
3
|
+
}
|
|
2
4
|
/**
|
|
3
5
|
* L'angle d'un spinner qui tourne sans fin, un tour toutes les 800 ms.
|
|
4
6
|
*
|
|
5
7
|
* Seul le pilote differe : le natif tourne hors du fil JavaScript, le navigateur n'en a pas.
|
|
6
8
|
*/
|
|
7
|
-
export declare const useRotation: (useNativeDriver: boolean) =>
|
|
9
|
+
export declare const useRotation: (useNativeDriver: boolean) => Rotation;
|
|
8
10
|
//# sourceMappingURL=useRotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRotation.d.ts","sourceRoot":"","sources":["../../../src/ui/Spinner/useRotation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAU,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"useRotation.d.ts","sourceRoot":"","sources":["../../../src/ui/Spinner/useRotation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAU,MAAM,cAAc,CAAC;AAIhD,MAAM,WAAW,QAAS,SAAQ,QAAQ,CAAC,qBAAqB,CAAC,MAAM,CAAC;CAAG;AAE3E;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,iBAAiB,OAAO,KAAG,QAYtD,CAAC"}
|
|
@@ -6,13 +6,13 @@ import { SpinnerProps } from './Spinner.shared';
|
|
|
6
6
|
export declare const useSpinner: ({ size, delay }: SpinnerProps, useNativeDriver: boolean) => {
|
|
7
7
|
styles: {
|
|
8
8
|
track: {
|
|
9
|
-
color:
|
|
9
|
+
color: import("@alveole/theme").ThemeColor;
|
|
10
10
|
};
|
|
11
11
|
arc: {
|
|
12
|
-
color:
|
|
12
|
+
color: import("@alveole/theme").ThemeColor;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
spin: import("
|
|
15
|
+
spin: import("./useRotation").Rotation;
|
|
16
16
|
visible: boolean;
|
|
17
17
|
px: number;
|
|
18
18
|
strokeWidth: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAS,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,cAAc,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AASrG,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IACzE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AA4BF,eAAO,MAAM,MAAM;SAlCZ,MAAM;YACH,MAAM;YACN,aAAa;YACb,MAAM;cACJ,MAAM;gBACJ,OAAO;
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAS,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,cAAc,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AASrG,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IACzE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AA4BF,eAAO,MAAM,MAAM;SAlCZ,MAAM;YACH,MAAM;YACN,aAAa;YACb,MAAM;cACJ,MAAM;gBACJ,OAAO;wCA6FnB,CAAC"}
|
package/dist/ui/Switch/Switch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { focusRingProps
|
|
2
|
+
import { focusRingProps } from '@alveole/theme';
|
|
3
3
|
import React, { useId } from 'react';
|
|
4
4
|
import { Platform, Pressable } from 'react-native';
|
|
5
5
|
import { Switch as TamaguiSwitch } from 'tamagui';
|
|
@@ -23,7 +23,6 @@ export const Switch = React.forwardRef(function Switch(props, ref) {
|
|
|
23
23
|
const isControlled = checked !== undefined;
|
|
24
24
|
const [model, setModel] = React.useState(Boolean(checked));
|
|
25
25
|
const value = isControlled ? checked : model;
|
|
26
|
-
const { spacingValue } = useTheme();
|
|
27
26
|
const styles = useStyles();
|
|
28
27
|
const uniqId = useId();
|
|
29
28
|
id = id || `switch--${uniqId}`;
|
|
@@ -35,5 +34,5 @@ export const Switch = React.forwardRef(function Switch(props, ref) {
|
|
|
35
34
|
const { bouton, pouce, libelle } = apparenceDuSwitch(styles, { value, disabled, noPadding, style });
|
|
36
35
|
const Toggle = (_jsx(TamaguiSwitch, { id: id, ref: ref, borderWidth: 1, ...DIMENSIONS_DE_LA_PISTE, checked: value, onCheckedChange: onChange, style: bouton, disabled: disabled, accessibilityLabel: label, accessibilityRole: "switch", accessibilityState: { checked: Boolean(value), disabled: Boolean(disabled) }, ...focusRingProps(), ...switchProps, children: _jsx(TamaguiSwitch.Thumb, { ...animer('quicker'), width: POUCE, height: POUCE, style: pouce }) }));
|
|
37
36
|
const ToggleWithLabel = (_jsxs(_Fragment, { children: [_jsx(SwitchLabel, { id: id, checked: value, disabled: disabled, onChange: onChange, children: _jsxs(Box, { tag: "switch", style: styles.switch, children: [Toggle, !!label && (_jsx(Typography, { htmlFor: id, style: libelle, children: label }))] }) }), (error ?? success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
38
|
-
return (_jsx(Box, { tag: "switch", gap: error || success ?
|
|
37
|
+
return (_jsx(Box, { tag: "switch", gap: error || success ? '1W' : '0V', style: styles.switchContainer, children: !label ? Toggle : ToggleWithLabel }));
|
|
39
38
|
});
|
|
@@ -20,8 +20,8 @@ declare const _default: {
|
|
|
20
20
|
paddingRight: string | number;
|
|
21
21
|
};
|
|
22
22
|
switchButton: {
|
|
23
|
-
borderColor:
|
|
24
|
-
backgroundColor:
|
|
23
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
24
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
25
25
|
cursor: "pointer";
|
|
26
26
|
padding: number;
|
|
27
27
|
minHeight: string | number;
|
|
@@ -29,29 +29,29 @@ declare const _default: {
|
|
|
29
29
|
marginBottom: string;
|
|
30
30
|
};
|
|
31
31
|
switchButtonChecked: {
|
|
32
|
-
backgroundColor:
|
|
32
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
33
33
|
};
|
|
34
34
|
switchButtonDisabled: {
|
|
35
35
|
opacity: 1;
|
|
36
|
-
backgroundColor:
|
|
36
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
37
37
|
cursor: "not-allowed";
|
|
38
38
|
};
|
|
39
39
|
switchThumb: {
|
|
40
40
|
borderWidth: number;
|
|
41
|
-
borderColor:
|
|
42
|
-
backgroundColor:
|
|
41
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
42
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
43
43
|
boxShadow: "none";
|
|
44
44
|
};
|
|
45
45
|
switchThumbChecked: {
|
|
46
|
-
backgroundColor:
|
|
46
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
47
47
|
};
|
|
48
48
|
switchThumbDisabled: {
|
|
49
|
-
backgroundColor:
|
|
49
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
50
50
|
cursor: "not-allowed";
|
|
51
51
|
borderColor: "#FFFFFF";
|
|
52
52
|
};
|
|
53
53
|
switchLabel: {
|
|
54
|
-
color:
|
|
54
|
+
color: import("@alveole/theme").ThemeColor;
|
|
55
55
|
fontSize: 14;
|
|
56
56
|
lineHeight: 20;
|
|
57
57
|
letterSpacing: 0;
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
component: Switch,
|
|
12
12
|
styleFn: useStyles,
|
|
13
13
|
};
|
|
14
|
-
export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap:
|
|
14
|
+
export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(Switch, { label: "Non activ\u00E9" }), _jsx(Switch, { label: "Activ\u00E9", checked: true }), _jsx(Switch, { label: "D\u00E9sactiv\u00E9", disabled: true }), _jsx(Switch, { label: "Activ\u00E9 d\u00E9sactiv\u00E9", checked: true, disabled: true })] }));
|
|
15
15
|
export const Controlled = () => {
|
|
16
16
|
const [value, setValue] = useState(false);
|
|
17
17
|
return _jsx(Switch, { label: value ? 'Activé' : 'Désactivé', checked: value, onCheckedChange: v => setValue(!!v) });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Switch.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA4S,CAAC;AAEjU,eAAO,MAAM,UAAU,cAAgN,CAAC;AAExO,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/ui/Switch/Switch.stories.tsx
|
|
3
|
-
export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap
|
|
3
|
+
export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <Switch label=\"Non activé\" />\n <Switch label=\"Activé\" checked />\n <Switch label=\"Désactivé\" disabled />\n <Switch label=\"Activé désactivé\" checked disabled />\n </Box>\n);";
|
|
4
4
|
export const Controlled = () => "export const Controlled = () => {\n const [value, setValue] = useState(false);\n return <Switch label={value ? 'Activé' : 'Désactivé'} checked={value} onCheckedChange={v => setValue(!!v)} />;\n};";
|
|
5
5
|
export const storySources = {
|
|
6
6
|
Default,
|
|
@@ -7,8 +7,8 @@ export declare const useStyles: () => {
|
|
|
7
7
|
paddingRight: string | number;
|
|
8
8
|
};
|
|
9
9
|
switchButton: {
|
|
10
|
-
borderColor:
|
|
11
|
-
backgroundColor:
|
|
10
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
11
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
12
12
|
cursor: "pointer";
|
|
13
13
|
padding: number;
|
|
14
14
|
minHeight: string | number;
|
|
@@ -16,29 +16,29 @@ export declare const useStyles: () => {
|
|
|
16
16
|
marginBottom: string;
|
|
17
17
|
};
|
|
18
18
|
switchButtonChecked: {
|
|
19
|
-
backgroundColor:
|
|
19
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
20
20
|
};
|
|
21
21
|
switchButtonDisabled: {
|
|
22
22
|
opacity: 1;
|
|
23
|
-
backgroundColor:
|
|
23
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
24
24
|
cursor: "not-allowed";
|
|
25
25
|
};
|
|
26
26
|
switchThumb: {
|
|
27
27
|
borderWidth: number;
|
|
28
|
-
borderColor:
|
|
29
|
-
backgroundColor:
|
|
28
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
29
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
30
30
|
boxShadow: "none";
|
|
31
31
|
};
|
|
32
32
|
switchThumbChecked: {
|
|
33
|
-
backgroundColor:
|
|
33
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
34
34
|
};
|
|
35
35
|
switchThumbDisabled: {
|
|
36
|
-
backgroundColor:
|
|
36
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
37
37
|
cursor: "not-allowed";
|
|
38
38
|
borderColor: "#FFFFFF";
|
|
39
39
|
};
|
|
40
40
|
switchLabel: {
|
|
41
|
-
color:
|
|
41
|
+
color: import("@alveole/theme").ThemeColor;
|
|
42
42
|
fontSize: 14;
|
|
43
43
|
lineHeight: 20;
|
|
44
44
|
letterSpacing: 0;
|
|
@@ -8,10 +8,10 @@ declare const _default: {
|
|
|
8
8
|
component: (props: import("./Tabs").TabsProps) => React.JSX.Element;
|
|
9
9
|
styleFn: () => {
|
|
10
10
|
tabIcon: {
|
|
11
|
-
color:
|
|
11
|
+
color: import("@alveole/theme").ThemeColor;
|
|
12
12
|
};
|
|
13
13
|
tabIconHover: {
|
|
14
|
-
color:
|
|
14
|
+
color: import("@alveole/theme").ThemeColor;
|
|
15
15
|
};
|
|
16
16
|
tabsLabel: {
|
|
17
17
|
fontSize: 14;
|
|
@@ -47,7 +47,7 @@ declare const _default: {
|
|
|
47
47
|
cursor: "pointer";
|
|
48
48
|
};
|
|
49
49
|
tabsTabActive: {
|
|
50
|
-
borderBottomColor:
|
|
50
|
+
borderBottomColor: import("@alveole/theme").ThemeColor;
|
|
51
51
|
borderBottomWidth: number;
|
|
52
52
|
};
|
|
53
53
|
wrapper: {
|
|
@@ -68,7 +68,7 @@ declare const _default: {
|
|
|
68
68
|
display: "flex";
|
|
69
69
|
flexDirection: "row";
|
|
70
70
|
alignItems: "center";
|
|
71
|
-
backgroundColor:
|
|
71
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
72
72
|
};
|
|
73
73
|
container: {
|
|
74
74
|
flex: number;
|
|
@@ -97,7 +97,7 @@ declare const _default: {
|
|
|
97
97
|
borderBottomRightRadius: string | number;
|
|
98
98
|
gap: string | number;
|
|
99
99
|
boxSizing: "border-box";
|
|
100
|
-
borderColor:
|
|
100
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
101
101
|
borderBottomWidth: number;
|
|
102
102
|
backgroundColor: "transparent";
|
|
103
103
|
overflowX: "scroll";
|
|
@@ -122,5 +122,6 @@ declare const _default: {
|
|
|
122
122
|
export default _default;
|
|
123
123
|
export declare const Example: () => React.JSX.Element;
|
|
124
124
|
export declare const Controle: () => React.JSX.Element;
|
|
125
|
+
export declare const OngletUnique: () => React.JSX.Element;
|
|
125
126
|
export * as Sources from './Tabs.stories.sources';
|
|
126
127
|
//# sourceMappingURL=Tabs.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQ1B,wBAQkB;AAElB,eAAO,MAAM,OAAO,yBAuBnB,CAAC;AAIF,eAAO,MAAM,QAAQ,yBAiBpB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQ1B,wBAQkB;AAElB,eAAO,MAAM,OAAO,yBAuBnB,CAAC;AAIF,eAAO,MAAM,QAAQ,yBAiBpB,CAAC;AAGF,eAAO,MAAM,YAAY,yBAKxB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
|
|
@@ -37,6 +37,8 @@ export const Controle = () => {
|
|
|
37
37
|
{ label: 'Onglet 3', value: 'onglet-3', content: _jsx(Typography, { children: "Contenu de onglet 3" }) },
|
|
38
38
|
];
|
|
39
39
|
const [ongletActif, setOngletActif] = React.useState('onglet-1');
|
|
40
|
-
return (_jsxs(Box, { width: '100%', gap:
|
|
40
|
+
return (_jsxs(Box, { width: '100%', gap: "2W", children: [_jsxs(Box, { flexDirection: "row", gap: "1W", children: [_jsx(Button, { title: "Aller \u00E0 l\u2019onglet 1", variant: "secondary", onPress: () => setOngletActif('onglet-1') }), _jsx(Button, { title: "Aller \u00E0 l\u2019onglet 3", variant: "secondary", onPress: () => setOngletActif('onglet-3') })] }), _jsx(Tabs, { value: ongletActif, onChange: index => setOngletActif(onglets[index].value), tabs: onglets })] }));
|
|
41
41
|
};
|
|
42
|
+
// Un onglet seul est desactive : il garde pourtant sa pleine opacite.
|
|
43
|
+
export const OngletUnique = () => (_jsx(Tabs, { defaultValue: "seul", tabs: [{ label: 'Onglet seul', value: 'seul', content: _jsx(Typography, { children: "Contenu de l onglet seul" }) }] }));
|
|
42
44
|
export * as Sources from './Tabs.stories.sources';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export declare const Example: () => string;
|
|
2
2
|
export declare const Controle: () => string;
|
|
3
|
+
export declare const OngletUnique: () => string;
|
|
3
4
|
export declare const storySources: {
|
|
4
5
|
readonly Example: () => string;
|
|
5
6
|
readonly Controle: () => string;
|
|
7
|
+
readonly OngletUnique: () => string;
|
|
6
8
|
};
|
|
7
9
|
export type StorySourceName = keyof typeof storySources;
|
|
8
10
|
//# sourceMappingURL=Tabs.stories.sources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAk1B,CAAC;AAEv2B,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"Tabs.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAk1B,CAAC;AAEv2B,eAAO,MAAM,QAAQ,cAAi5B,CAAC;AAEv6B,eAAO,MAAM,YAAY,cAA8M,CAAC;AAExO,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/ui/Tabs/Tabs.stories.tsx
|
|
3
3
|
export const Example = () => "export const Example = () => {\n const [_activeTab, setActiveTab] = React.useState(0);\n\n return (\n <Box width={'100%'}>\n <Tabs\n defaultValue={'onglet-1'}\n onChange={setActiveTab}\n urlAnchorPrefix=\"tabs-story\"\n tabs={[\n { label: 'Onglet 1', value: 'onglet-1', content: <Typography>Contenu de onglet 1</Typography> },\n { label: 'Onglet 2', counter: 12, value: 'onglet-2', content: <Typography>Contenu de onglet 2</Typography> },\n { label: 'Onglet 3', value: 'onglet-3', content: <Typography>Contenu de onglet 3</Typography> },\n {\n label: 'Onglet 4',\n leading: 'Settings',\n value: 'onglet-4',\n content: <Typography>Contenu de onglet 4</Typography>,\n },\n ]}\n />\n </Box>\n );\n};";
|
|
4
|
-
export const Controle = () => "export const Controle = () => {\n const onglets = [\n { label: 'Onglet 1', value: 'onglet-1', content: <Typography>Contenu de onglet 1</Typography> },\n { label: 'Onglet 2', value: 'onglet-2', content: <Typography>Contenu de onglet 2</Typography> },\n { label: 'Onglet 3', value: 'onglet-3', content: <Typography>Contenu de onglet 3</Typography> },\n ];\n const [ongletActif, setOngletActif] = React.useState('onglet-1');\n\n return (\n <Box width={'100%'} gap
|
|
4
|
+
export const Controle = () => "export const Controle = () => {\n const onglets = [\n { label: 'Onglet 1', value: 'onglet-1', content: <Typography>Contenu de onglet 1</Typography> },\n { label: 'Onglet 2', value: 'onglet-2', content: <Typography>Contenu de onglet 2</Typography> },\n { label: 'Onglet 3', value: 'onglet-3', content: <Typography>Contenu de onglet 3</Typography> },\n ];\n const [ongletActif, setOngletActif] = React.useState('onglet-1');\n\n return (\n <Box width={'100%'} gap=\"2W\">\n <Box flexDirection=\"row\" gap=\"1W\">\n <Button title=\"Aller à l’onglet 1\" variant=\"secondary\" onPress={() => setOngletActif('onglet-1')} />\n <Button title=\"Aller à l’onglet 3\" variant=\"secondary\" onPress={() => setOngletActif('onglet-3')} />\n </Box>\n <Tabs value={ongletActif} onChange={index => setOngletActif(onglets[index].value)} tabs={onglets} />\n </Box>\n );\n};";
|
|
5
|
+
export const OngletUnique = () => "export const OngletUnique = () => (\n <Tabs\n defaultValue=\"seul\"\n tabs={[{ label: 'Onglet seul', value: 'seul', content: <Typography>Contenu de l onglet seul</Typography> }]}\n />\n);";
|
|
5
6
|
export const storySources = {
|
|
6
7
|
Example,
|
|
7
8
|
Controle,
|
|
9
|
+
OngletUnique,
|
|
8
10
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const useStyles: () => {
|
|
2
2
|
tabIcon: {
|
|
3
|
-
color:
|
|
3
|
+
color: import("@alveole/theme").ThemeColor;
|
|
4
4
|
};
|
|
5
5
|
tabIconHover: {
|
|
6
|
-
color:
|
|
6
|
+
color: import("@alveole/theme").ThemeColor;
|
|
7
7
|
};
|
|
8
8
|
tabsLabel: {
|
|
9
9
|
fontSize: 14;
|
|
@@ -39,7 +39,7 @@ export declare const useStyles: () => {
|
|
|
39
39
|
cursor: "pointer";
|
|
40
40
|
};
|
|
41
41
|
tabsTabActive: {
|
|
42
|
-
borderBottomColor:
|
|
42
|
+
borderBottomColor: import("@alveole/theme").ThemeColor;
|
|
43
43
|
borderBottomWidth: number;
|
|
44
44
|
};
|
|
45
45
|
wrapper: {
|
|
@@ -60,7 +60,7 @@ export declare const useStyles: () => {
|
|
|
60
60
|
display: "flex";
|
|
61
61
|
flexDirection: "row";
|
|
62
62
|
alignItems: "center";
|
|
63
|
-
backgroundColor:
|
|
63
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
64
64
|
};
|
|
65
65
|
container: {
|
|
66
66
|
flex: number;
|
|
@@ -89,7 +89,7 @@ export declare const useStyles: () => {
|
|
|
89
89
|
borderBottomRightRadius: string | number;
|
|
90
90
|
gap: string | number;
|
|
91
91
|
boxSizing: "border-box";
|
|
92
|
-
borderColor:
|
|
92
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
93
93
|
borderBottomWidth: number;
|
|
94
94
|
backgroundColor: "transparent";
|
|
95
95
|
overflowX: "scroll";
|
|
@@ -22,20 +22,20 @@ declare const _default: {
|
|
|
22
22
|
alignItems: "center";
|
|
23
23
|
borderRadius: import("@alveole/theme").Radius;
|
|
24
24
|
borderWidth: number;
|
|
25
|
-
borderColor:
|
|
26
|
-
color:
|
|
27
|
-
backgroundColor:
|
|
25
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
26
|
+
color: import("@alveole/theme").ThemeColor;
|
|
27
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
28
28
|
whiteSpace: "nowrap";
|
|
29
29
|
overflow: "hidden";
|
|
30
30
|
textOverflow: "ellipsis";
|
|
31
31
|
maxWidth: string;
|
|
32
32
|
};
|
|
33
33
|
tagSurvole: {
|
|
34
|
-
color:
|
|
34
|
+
color: import("@alveole/theme").ThemeColor;
|
|
35
35
|
};
|
|
36
36
|
tagSelected: {
|
|
37
|
-
borderColor:
|
|
38
|
-
color:
|
|
37
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
38
|
+
color: import("@alveole/theme").ThemeColor;
|
|
39
39
|
};
|
|
40
40
|
tagSm: {
|
|
41
41
|
fontSize: 12;
|
|
@@ -64,7 +64,7 @@ declare const _default: {
|
|
|
64
64
|
marginRight: number;
|
|
65
65
|
};
|
|
66
66
|
croixSurvolee: {
|
|
67
|
-
backgroundColor:
|
|
67
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
68
68
|
};
|
|
69
69
|
croixSm: {
|
|
70
70
|
marginLeft: number;
|
|
@@ -11,9 +11,9 @@ export default {
|
|
|
11
11
|
component: Tag,
|
|
12
12
|
styleFn: useStyles,
|
|
13
13
|
};
|
|
14
|
-
export const Sizes = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap:
|
|
15
|
-
export const Selection = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap:
|
|
16
|
-
export const Fermable = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap:
|
|
17
|
-
export const AvecIcone = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap:
|
|
18
|
-
export const LibelleLong = () => (_jsx(Box, { display: "flex", flexDirection: "row", gap:
|
|
14
|
+
export const Sizes = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", children: "Tag sm" }), _jsx(Tag, { size: "md", children: "Tag md" })] }));
|
|
15
|
+
export const Selection = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap: "2W", children: ['sm', 'md'].map(size => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: size, children: "Descriptive, inerte" }), _jsx(Tag, { size: size, interactive: true, children: "Au repos, dans un groupe" }), _jsx(Tag, { size: size, interactive: true, selected: true, children: "S\u00E9lectionn\u00E9" }), _jsx(Tag, { size: size, selected: true, closable: true, onClose: () => { }, children: "S\u00E9lectionn\u00E9 et fermable" })] }, size))) }));
|
|
16
|
+
export const Fermable = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", closable: true, onClose: () => { }, children: "Fermable sm" }), _jsx(Tag, { size: "md", closable: true, onClose: () => { }, children: "Fermable md" }), _jsx(Tag, { size: "md", closable: true, selected: true, onClose: () => { }, children: "Fermable et s\u00E9lectionn\u00E9" })] }));
|
|
17
|
+
export const AvecIcone = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", leading: "Check", children: "Valid\u00E9" }), _jsx(Tag, { size: "md", leading: "Clock", children: "En attente" }), _jsx(Tag, { size: "md", leading: "Tag", closable: true, onClose: () => { }, children: "Ic\u00F4ne et croix" }), _jsx(Tag, { size: "md", leading: "Tag", closable: true, selected: true, onClose: () => { }, children: "Tout \u00E0 la fois" })] }));
|
|
18
|
+
export const LibelleLong = () => (_jsx(Box, { display: "flex", flexDirection: "row", gap: "3W", style: { maxWidth: 260 }, children: _jsx(Tag, { size: "md", closable: true, onClose: () => { }, children: "Un libell\u00E9 beaucoup trop long pour la place disponible" }) }));
|
|
19
19
|
export * as Sources from './Tag.stories.sources';
|