@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
|
@@ -12,7 +12,59 @@ export type SelectTriggerState = Omit<FieldBorderState, 'focus'> & {
|
|
|
12
12
|
* L'etat de bordure vient en dernier : rien ne doit le recouvrir.
|
|
13
13
|
*/
|
|
14
14
|
export declare const selectTriggerStyle: (styles: SelectStyles, { open, multiple, ...state }: SelectTriggerState) => {
|
|
15
|
+
borderWidth: number;
|
|
15
16
|
borderColor: string;
|
|
17
|
+
outlineWidth?: number | undefined;
|
|
18
|
+
outlineStyle?: "solid" | undefined;
|
|
19
|
+
outlineColor?: string | undefined;
|
|
20
|
+
outlineOffset?: number | undefined;
|
|
21
|
+
paddingTop?: string | number | undefined;
|
|
22
|
+
paddingBottom?: string | number | undefined;
|
|
23
|
+
display: "flex";
|
|
24
|
+
flexDirection: "row";
|
|
25
|
+
alignItems: "center";
|
|
26
|
+
gap: string | number;
|
|
27
|
+
paddingLeft: number;
|
|
28
|
+
paddingRight: number;
|
|
29
|
+
minHeight: number;
|
|
30
|
+
borderRadius: import("@alveole/theme").Radius;
|
|
31
|
+
borderStyle: "solid";
|
|
32
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
33
|
+
width: "100%";
|
|
34
|
+
} | {
|
|
35
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
36
|
+
paddingTop?: string | number | undefined;
|
|
37
|
+
paddingBottom?: string | number | undefined;
|
|
38
|
+
display: "flex";
|
|
39
|
+
flexDirection: "row";
|
|
40
|
+
alignItems: "center";
|
|
41
|
+
gap: string | number;
|
|
42
|
+
paddingLeft: number;
|
|
43
|
+
paddingRight: number;
|
|
44
|
+
minHeight: number;
|
|
45
|
+
borderRadius: import("@alveole/theme").Radius;
|
|
46
|
+
borderWidth: number;
|
|
47
|
+
borderStyle: "solid";
|
|
48
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
49
|
+
width: "100%";
|
|
50
|
+
} | {
|
|
51
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
52
|
+
paddingTop?: string | number | undefined;
|
|
53
|
+
paddingBottom?: string | number | undefined;
|
|
54
|
+
display: "flex";
|
|
55
|
+
flexDirection: "row";
|
|
56
|
+
alignItems: "center";
|
|
57
|
+
gap: string | number;
|
|
58
|
+
paddingLeft: number;
|
|
59
|
+
paddingRight: number;
|
|
60
|
+
minHeight: number;
|
|
61
|
+
borderRadius: import("@alveole/theme").Radius;
|
|
62
|
+
borderWidth: number;
|
|
63
|
+
borderStyle: "solid";
|
|
64
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
65
|
+
width: "100%";
|
|
66
|
+
} | {
|
|
67
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
16
68
|
paddingTop?: string | number | undefined;
|
|
17
69
|
paddingBottom?: string | number | undefined;
|
|
18
70
|
display: "flex";
|
|
@@ -25,7 +77,7 @@ export declare const selectTriggerStyle: (styles: SelectStyles, { open, multiple
|
|
|
25
77
|
borderRadius: import("@alveole/theme").Radius;
|
|
26
78
|
borderWidth: number;
|
|
27
79
|
borderStyle: "solid";
|
|
28
|
-
backgroundColor:
|
|
80
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
29
81
|
width: "100%";
|
|
30
82
|
};
|
|
31
83
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectTriggerStyle.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/selectTriggerStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAEjD,iEAAiE;AACjE,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzG;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAQ,YAAY,EAAE,8BAA8B,kBAAkB
|
|
1
|
+
{"version":3,"file":"selectTriggerStyle.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/selectTriggerStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAEjD,iEAAiE;AACjE,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzG;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAQ,YAAY,EAAE,8BAA8B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvG,CAAC"}
|
|
@@ -17,13 +17,13 @@ declare const _default: {
|
|
|
17
17
|
sidebarItemSelectedIndicatorContent: {
|
|
18
18
|
width: "100%";
|
|
19
19
|
minHeight: string | number;
|
|
20
|
-
backgroundColor:
|
|
20
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
21
21
|
margin: string;
|
|
22
22
|
borderRadius: string | number;
|
|
23
23
|
};
|
|
24
24
|
sidebarItemTitleSelectedDesktop: {
|
|
25
|
-
color:
|
|
26
|
-
stroke:
|
|
25
|
+
color: import("@alveole/theme").ThemeColor;
|
|
26
|
+
stroke: import("@alveole/theme").ThemeColor;
|
|
27
27
|
fontSize: 14;
|
|
28
28
|
lineHeight: 20;
|
|
29
29
|
letterSpacing: 0;
|
|
@@ -31,8 +31,8 @@ declare const _default: {
|
|
|
31
31
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
32
32
|
};
|
|
33
33
|
sidebarItemTitleSelectedMobile: {
|
|
34
|
-
color:
|
|
35
|
-
stroke:
|
|
34
|
+
color: import("@alveole/theme").ThemeColor;
|
|
35
|
+
stroke: import("@alveole/theme").ThemeColor;
|
|
36
36
|
fontSize: 16;
|
|
37
37
|
lineHeight: 24;
|
|
38
38
|
letterSpacing: 0;
|
|
@@ -40,8 +40,8 @@ declare const _default: {
|
|
|
40
40
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
41
41
|
};
|
|
42
42
|
sidebarItemTitleDesktop: {
|
|
43
|
-
color:
|
|
44
|
-
stroke:
|
|
43
|
+
color: import("@alveole/theme").ThemeColor;
|
|
44
|
+
stroke: import("@alveole/theme").ThemeColor;
|
|
45
45
|
fontSize: 14;
|
|
46
46
|
lineHeight: 20;
|
|
47
47
|
letterSpacing: 0;
|
|
@@ -49,8 +49,8 @@ declare const _default: {
|
|
|
49
49
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
50
50
|
};
|
|
51
51
|
sidebarItemTitleMobile: {
|
|
52
|
-
color:
|
|
53
|
-
stroke:
|
|
52
|
+
color: import("@alveole/theme").ThemeColor;
|
|
53
|
+
stroke: import("@alveole/theme").ThemeColor;
|
|
54
54
|
fontSize: 16;
|
|
55
55
|
lineHeight: 24;
|
|
56
56
|
letterSpacing: 0;
|
|
@@ -58,7 +58,7 @@ declare const _default: {
|
|
|
58
58
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
59
59
|
};
|
|
60
60
|
sidebarItemTitleCurrentHoverMobile: {
|
|
61
|
-
color:
|
|
61
|
+
color: import("@alveole/theme").ThemeColor;
|
|
62
62
|
fontSize: 16;
|
|
63
63
|
lineHeight: 24;
|
|
64
64
|
letterSpacing: 0;
|
|
@@ -66,11 +66,11 @@ declare const _default: {
|
|
|
66
66
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
67
67
|
};
|
|
68
68
|
sidebarItemSelectedDesktop: {
|
|
69
|
-
backgroundColor:
|
|
69
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
70
70
|
};
|
|
71
71
|
sidebarItemSelectedMobile: {
|
|
72
72
|
borderRadius: import("@alveole/theme").Radius;
|
|
73
|
-
backgroundColor:
|
|
73
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
74
74
|
};
|
|
75
75
|
sidebarItemContainerDesktop: {
|
|
76
76
|
paddingLeft: string | number;
|
|
@@ -105,8 +105,8 @@ declare const _default: {
|
|
|
105
105
|
paddingLeft: string | number;
|
|
106
106
|
paddingRight: string | number;
|
|
107
107
|
width: "100%";
|
|
108
|
-
color:
|
|
109
|
-
stroke:
|
|
108
|
+
color: import("@alveole/theme").ThemeColor;
|
|
109
|
+
stroke: import("@alveole/theme").ThemeColor;
|
|
110
110
|
};
|
|
111
111
|
sidebarItemMobile: {
|
|
112
112
|
display: "flex";
|
|
@@ -118,17 +118,17 @@ declare const _default: {
|
|
|
118
118
|
paddingTop: string | number;
|
|
119
119
|
paddingBottom: string | number;
|
|
120
120
|
width: "100%";
|
|
121
|
-
color:
|
|
122
|
-
stroke:
|
|
121
|
+
color: import("@alveole/theme").ThemeColor;
|
|
122
|
+
stroke: import("@alveole/theme").ThemeColor;
|
|
123
123
|
};
|
|
124
124
|
sidebarItemHover: {
|
|
125
|
-
backgroundColor:
|
|
125
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
126
126
|
};
|
|
127
127
|
groupDesktop: {
|
|
128
128
|
marginTop: string | number;
|
|
129
129
|
};
|
|
130
130
|
groupTitleDesktop: {
|
|
131
|
-
color:
|
|
131
|
+
color: import("@alveole/theme").ThemeColor;
|
|
132
132
|
paddingLeft: number;
|
|
133
133
|
paddingTop: string | number;
|
|
134
134
|
paddingBottom: string | number;
|
|
@@ -139,7 +139,7 @@ declare const _default: {
|
|
|
139
139
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
140
140
|
};
|
|
141
141
|
groupTitleMobile: {
|
|
142
|
-
color:
|
|
142
|
+
color: import("@alveole/theme").ThemeColor;
|
|
143
143
|
paddingLeft: string | number;
|
|
144
144
|
paddingRight: string | number;
|
|
145
145
|
paddingTop: string | number;
|
|
@@ -153,7 +153,7 @@ declare const _default: {
|
|
|
153
153
|
sidebar: {
|
|
154
154
|
backgroundColor: "#FFFFFF";
|
|
155
155
|
borderRightWidth: number;
|
|
156
|
-
borderColor:
|
|
156
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
157
157
|
display: "flex";
|
|
158
158
|
flexDirection: "column";
|
|
159
159
|
alignItems: "flex-start";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Sidebar/Sidebar.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,wBAYkB;AAElB,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"Sidebar.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Sidebar/Sidebar.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,wBAYkB;AAElB,eAAO,MAAM,YAAY,mCAuBxB,CAAC;AAaF,eAAO,MAAM,kBAAkB,mCA6D9B,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,2BAA2B,CAAC"}
|
|
@@ -23,7 +23,7 @@ export default {
|
|
|
23
23
|
};
|
|
24
24
|
export const ExampleUsage = () => {
|
|
25
25
|
const controller = useSidebar();
|
|
26
|
-
return (_jsxs(Sidebar, { controller: controller, logo: _jsx(Typography, { fontSize: 16, style: { fontWeight: '700' }, children: "Mon Application" }), footer: _jsx(SidebarItem, { pressable: true, leading: "LogOut", title: "Se d\u00E9connecter", onPress: console.log }), children: [_jsx(SidebarItem, { pressable: true, title: "Item 1", onPress: console.log }), _jsx(SidebarItem, { pressable: true, title: "Item 2", counter: 3, onPress: console.log }), _jsxs(SidebarGroup, { title: "Groupe", children: [_jsx(SidebarItem, { pressable: true, title: "Item group 1", onPress: console.log }), _jsx(SidebarItem, { pressable: true, title: "Item group 2", onPress: console.log })] })] }));
|
|
26
|
+
return (_jsxs(Sidebar, { controller: controller, logo: _jsx(Typography, { fontSize: 16, style: { fontWeight: '700' }, children: "Mon Application" }), footer: _jsx(SidebarItem, { pressable: true, leading: "LogOut", title: "Se d\u00E9connecter", onPress: console.log }), children: [_jsx(SidebarItem, { pressable: true, title: "Item 1", onPress: console.log }), _jsx(SidebarItem, { pressable: true, title: "Item 2", counter: 3, onPress: console.log }), _jsx(SidebarItem, { pressable: true, title: "Item 3", counter: 5, counterVariant: "primary", onPress: console.log }), _jsxs(SidebarGroup, { title: "Groupe", children: [_jsx(SidebarItem, { pressable: true, title: "Item group 1", onPress: console.log }), _jsx(SidebarItem, { pressable: true, title: "Item group 2", onPress: console.log })] })] }));
|
|
27
27
|
};
|
|
28
28
|
// Faute de logo publie pour Alveole, une forme generee tient lieu de logo.
|
|
29
29
|
const organisations = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Sidebar/Sidebar.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"Sidebar.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Sidebar/Sidebar.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,cAAg5B,CAAC;AAE16B,eAAO,MAAM,kBAAkB,cAA2/D,CAAC;AAE3hE,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/Sidebar/Sidebar.stories.tsx
|
|
3
|
-
export const ExampleUsage = () => "export const ExampleUsage = () => {\n const controller = useSidebar();\n\n return (\n <Sidebar\n controller={controller}\n logo={\n <Typography fontSize={16} style={{ fontWeight: '700' }}>\n Mon Application\n </Typography>\n }\n footer={<SidebarItem pressable leading=\"LogOut\" title=\"Se déconnecter\" onPress={console.log} />}\n >\n <SidebarItem pressable title=\"Item 1\" onPress={console.log} />\n <SidebarItem pressable title=\"Item 2\" counter={3} onPress={console.log} />\n\n <SidebarGroup title=\"Groupe\">\n <SidebarItem pressable title=\"Item group 1\" onPress={console.log} />\n <SidebarItem pressable title=\"Item group 2\" onPress={console.log} />\n </SidebarGroup>\n </Sidebar>\n );\n};";
|
|
3
|
+
export const ExampleUsage = () => "export const ExampleUsage = () => {\n const controller = useSidebar();\n\n return (\n <Sidebar\n controller={controller}\n logo={\n <Typography fontSize={16} style={{ fontWeight: '700' }}>\n Mon Application\n </Typography>\n }\n footer={<SidebarItem pressable leading=\"LogOut\" title=\"Se déconnecter\" onPress={console.log} />}\n >\n <SidebarItem pressable title=\"Item 1\" onPress={console.log} />\n <SidebarItem pressable title=\"Item 2\" counter={3} onPress={console.log} />\n <SidebarItem pressable title=\"Item 3\" counter={5} counterVariant=\"primary\" onPress={console.log} />\n\n <SidebarGroup title=\"Groupe\">\n <SidebarItem pressable title=\"Item group 1\" onPress={console.log} />\n <SidebarItem pressable title=\"Item group 2\" onPress={console.log} />\n </SidebarGroup>\n </Sidebar>\n );\n};";
|
|
4
4
|
export const AvecHeaderEtFooter = () => "export const AvecHeaderEtFooter = () => {\n const [orga, setOrga] = useState('Alveole');\n\n const logo = (\n <ActionMenu\n placement=\"bottom-start\"\n renderTrigger={() => (\n <Button\n variant=\"tertiary\"\n size=\"md\"\n contentAlign=\"start\"\n title={orga}\n leading={<LogoDOrganisation nom={orga} />}\n trailing=\"ChevronDown\"\n />\n )}\n >\n {organisations.map(({ nom }) => (\n <ActionMenu.Item\n key={nom}\n title={nom}\n leading={<LogoDOrganisation nom={nom} />}\n selected={nom === orga}\n onPress={() => setOrga(nom)}\n />\n ))}\n </ActionMenu>\n );\n\n const footer = (\n <ActionMenu\n placement=\"top-start\"\n renderTrigger={() => (\n <Button\n variant=\"tertiary\"\n size=\"lg\"\n contentAlign=\"start\"\n title=\"Clément Prod'homme\"\n leading={<Avatar size=\"sm\" src=\"https://www.loremfaces.net/96/id/1.jpg\" fallbackText=\"Clément Prod'homme\" />}\n />\n )}\n >\n <ActionMenu.Item title=\"Mon profil\" leading=\"User\" />\n <ActionMenu.Item title=\"Paramètres\" leading=\"Settings\" />\n <ActionMenu.Item title=\"Aide\" leading=\"HelpCircle\" />\n <ActionMenu.Item title=\"Se déconnecter\" leading=\"LogOut\" />\n </ActionMenu>\n );\n\n return (\n <Sidebar logo={logo} footer={footer}>\n <SidebarItem pressable leading=\"LayoutDashboard\" title=\"Tableau de bord\" onPress={console.log} />\n <SidebarItem pressable leading=\"Users\" title=\"Utilisateurs\" onPress={console.log} />\n <SidebarItem pressable leading=\"FileText\" title=\"Rapports\" onPress={console.log} />\n\n <SidebarDivider />\n\n <SidebarItem pressable leading=\"Settings\" title=\"Configuration\" onPress={console.log} />\n <SidebarItem pressable leading=\"Bell\" title=\"Notifications\" onPress={console.log} />\n </Sidebar>\n );\n};";
|
|
5
5
|
export const storySources = {
|
|
6
6
|
ExampleUsage,
|
|
@@ -8,13 +8,13 @@ export declare const useStyles: () => {
|
|
|
8
8
|
sidebarItemSelectedIndicatorContent: {
|
|
9
9
|
width: "100%";
|
|
10
10
|
minHeight: string | number;
|
|
11
|
-
backgroundColor:
|
|
11
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
12
12
|
margin: string;
|
|
13
13
|
borderRadius: string | number;
|
|
14
14
|
};
|
|
15
15
|
sidebarItemTitleSelectedDesktop: {
|
|
16
|
-
color:
|
|
17
|
-
stroke:
|
|
16
|
+
color: import("@alveole/theme").ThemeColor;
|
|
17
|
+
stroke: import("@alveole/theme").ThemeColor;
|
|
18
18
|
fontSize: 14;
|
|
19
19
|
lineHeight: 20;
|
|
20
20
|
letterSpacing: 0;
|
|
@@ -22,8 +22,8 @@ export declare const useStyles: () => {
|
|
|
22
22
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
23
23
|
};
|
|
24
24
|
sidebarItemTitleSelectedMobile: {
|
|
25
|
-
color:
|
|
26
|
-
stroke:
|
|
25
|
+
color: import("@alveole/theme").ThemeColor;
|
|
26
|
+
stroke: import("@alveole/theme").ThemeColor;
|
|
27
27
|
fontSize: 16;
|
|
28
28
|
lineHeight: 24;
|
|
29
29
|
letterSpacing: 0;
|
|
@@ -31,8 +31,8 @@ export declare const useStyles: () => {
|
|
|
31
31
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
32
32
|
};
|
|
33
33
|
sidebarItemTitleDesktop: {
|
|
34
|
-
color:
|
|
35
|
-
stroke:
|
|
34
|
+
color: import("@alveole/theme").ThemeColor;
|
|
35
|
+
stroke: import("@alveole/theme").ThemeColor;
|
|
36
36
|
fontSize: 14;
|
|
37
37
|
lineHeight: 20;
|
|
38
38
|
letterSpacing: 0;
|
|
@@ -40,8 +40,8 @@ export declare const useStyles: () => {
|
|
|
40
40
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
41
41
|
};
|
|
42
42
|
sidebarItemTitleMobile: {
|
|
43
|
-
color:
|
|
44
|
-
stroke:
|
|
43
|
+
color: import("@alveole/theme").ThemeColor;
|
|
44
|
+
stroke: import("@alveole/theme").ThemeColor;
|
|
45
45
|
fontSize: 16;
|
|
46
46
|
lineHeight: 24;
|
|
47
47
|
letterSpacing: 0;
|
|
@@ -49,7 +49,7 @@ export declare const useStyles: () => {
|
|
|
49
49
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
50
50
|
};
|
|
51
51
|
sidebarItemTitleCurrentHoverMobile: {
|
|
52
|
-
color:
|
|
52
|
+
color: import("@alveole/theme").ThemeColor;
|
|
53
53
|
fontSize: 16;
|
|
54
54
|
lineHeight: 24;
|
|
55
55
|
letterSpacing: 0;
|
|
@@ -57,11 +57,11 @@ export declare const useStyles: () => {
|
|
|
57
57
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
58
58
|
};
|
|
59
59
|
sidebarItemSelectedDesktop: {
|
|
60
|
-
backgroundColor:
|
|
60
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
61
61
|
};
|
|
62
62
|
sidebarItemSelectedMobile: {
|
|
63
63
|
borderRadius: import("@alveole/theme").Radius;
|
|
64
|
-
backgroundColor:
|
|
64
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
65
65
|
};
|
|
66
66
|
sidebarItemContainerDesktop: {
|
|
67
67
|
paddingLeft: string | number;
|
|
@@ -96,8 +96,8 @@ export declare const useStyles: () => {
|
|
|
96
96
|
paddingLeft: string | number;
|
|
97
97
|
paddingRight: string | number;
|
|
98
98
|
width: "100%";
|
|
99
|
-
color:
|
|
100
|
-
stroke:
|
|
99
|
+
color: import("@alveole/theme").ThemeColor;
|
|
100
|
+
stroke: import("@alveole/theme").ThemeColor;
|
|
101
101
|
};
|
|
102
102
|
sidebarItemMobile: {
|
|
103
103
|
display: "flex";
|
|
@@ -109,17 +109,17 @@ export declare const useStyles: () => {
|
|
|
109
109
|
paddingTop: string | number;
|
|
110
110
|
paddingBottom: string | number;
|
|
111
111
|
width: "100%";
|
|
112
|
-
color:
|
|
113
|
-
stroke:
|
|
112
|
+
color: import("@alveole/theme").ThemeColor;
|
|
113
|
+
stroke: import("@alveole/theme").ThemeColor;
|
|
114
114
|
};
|
|
115
115
|
sidebarItemHover: {
|
|
116
|
-
backgroundColor:
|
|
116
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
117
117
|
};
|
|
118
118
|
groupDesktop: {
|
|
119
119
|
marginTop: string | number;
|
|
120
120
|
};
|
|
121
121
|
groupTitleDesktop: {
|
|
122
|
-
color:
|
|
122
|
+
color: import("@alveole/theme").ThemeColor;
|
|
123
123
|
paddingLeft: number;
|
|
124
124
|
paddingTop: string | number;
|
|
125
125
|
paddingBottom: string | number;
|
|
@@ -130,7 +130,7 @@ export declare const useStyles: () => {
|
|
|
130
130
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
131
131
|
};
|
|
132
132
|
groupTitleMobile: {
|
|
133
|
-
color:
|
|
133
|
+
color: import("@alveole/theme").ThemeColor;
|
|
134
134
|
paddingLeft: string | number;
|
|
135
135
|
paddingRight: string | number;
|
|
136
136
|
paddingTop: string | number;
|
|
@@ -144,7 +144,7 @@ export declare const useStyles: () => {
|
|
|
144
144
|
sidebar: {
|
|
145
145
|
backgroundColor: "#FFFFFF";
|
|
146
146
|
borderRightWidth: number;
|
|
147
|
-
borderColor:
|
|
147
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
148
148
|
display: "flex";
|
|
149
149
|
flexDirection: "column";
|
|
150
150
|
alignItems: "flex-start";
|
|
@@ -3,7 +3,7 @@ import { makeStyles } from '@alveole/theme';
|
|
|
3
3
|
// aligne au pixel. L'item y arrive par trois retraits emboîtés : la marge de son conteneur,
|
|
4
4
|
// le padding de ce conteneur, puis celui de la pastille qui porte le texte. Le titre n'en a
|
|
5
5
|
// qu'un seul, d'où cette somme explicite : sans elle les deux dérivent au premier réglage.
|
|
6
|
-
const retraitDuContenu = (spacingValue) => spacingValue('
|
|
6
|
+
const retraitDuContenu = (spacingValue) => spacingValue('3V') + spacingValue('1W') + spacingValue('1W');
|
|
7
7
|
const coque = ({ color, spacing, spacingValue, isVariant }) => ({
|
|
8
8
|
sidebar: {
|
|
9
9
|
backgroundColor: '#FFFFFF',
|
|
@@ -18,7 +18,7 @@ const coque = ({ color, spacing, spacingValue, isVariant }) => ({
|
|
|
18
18
|
headerContent: {
|
|
19
19
|
display: 'flex',
|
|
20
20
|
flexDirection: 'row',
|
|
21
|
-
padding: spacingValue('
|
|
21
|
+
padding: spacingValue('1W'),
|
|
22
22
|
},
|
|
23
23
|
logo: {
|
|
24
24
|
marginLeft: isVariant('mobile') || isVariant('tablet') ? spacing('3W') : 0,
|
|
@@ -166,7 +166,7 @@ const titreDeLItem = ({ text, color }) => ({
|
|
|
166
166
|
const indicateur = ({ color, spacing, spacingValue }) => ({
|
|
167
167
|
sidebarItemSelectedIndicator: {
|
|
168
168
|
height: '100%',
|
|
169
|
-
width: spacingValue('
|
|
169
|
+
width: spacingValue('1V'),
|
|
170
170
|
position: 'absolute',
|
|
171
171
|
left: 0,
|
|
172
172
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarHeader.d.ts","sourceRoot":"","sources":["../../../src/ui/Sidebar/SidebarHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC;
|
|
1
|
+
{"version":3,"file":"SidebarHeader.d.ts","sourceRoot":"","sources":["../../../src/ui/Sidebar/SidebarHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC;AA+CF,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,sBAKtD,CAAC"}
|
|
@@ -20,7 +20,10 @@ const SidebarHeaderMobile = (props) => {
|
|
|
20
20
|
const { controller } = props;
|
|
21
21
|
const styles = useStyles();
|
|
22
22
|
const { top } = useSafeAreaInsets();
|
|
23
|
-
return (_jsxs(Box, { tag: "sidebar-header", style: styles.header, children: [_jsxs(Box, { style:
|
|
23
|
+
return (_jsxs(Box, { tag: "sidebar-header", style: styles.header, children: [_jsxs(Box, { style: [
|
|
24
|
+
styles.headerContent,
|
|
25
|
+
{ paddingTop: (Platform.OS === 'android' ? top : 0) + styles.headerContent.padding },
|
|
26
|
+
], children: [_jsx(Box, { flex: 1 }), _jsx(ButtonIcon, { icon: "X", variant: "tertiary", accessibilityLabel: "Fermer le menu", onPress: () => controller?.setOpen(false) })] }), _jsx(Divider, {})] }));
|
|
24
27
|
};
|
|
25
28
|
export const SidebarHeader = (props) => {
|
|
26
29
|
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;
|