@alveole/components 2.0.0-alpha.2 → 2.0.0-alpha.21
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/A/A.d.ts +3 -1
- package/dist/core/A/A.d.ts.map +1 -1
- package/dist/core/A/A.js +6 -3
- 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 +20 -20
- package/dist/core/Box/Box.d.ts.map +1 -1
- package/dist/core/Box/Box.js +13 -7
- package/dist/core/Box/Box.stories.d.ts +21 -17
- 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 +22 -16
- 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.d.ts.map +1 -1
- package/dist/core/Code/Code.js +6 -0
- package/dist/core/Code/Code.stories.d.ts +15 -2
- package/dist/core/Code/Code.stories.d.ts.map +1 -1
- 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 +15 -2
- package/dist/core/Code/Code.styles.d.ts.map +1 -1
- package/dist/core/Code/Code.styles.js +18 -4
- 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/Form/Form.web.d.ts.map +1 -1
- package/dist/core/Form/Form.web.js +4 -1
- package/dist/core/Grid/Grid.stories.d.ts +17 -16
- 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.d.ts.map +1 -1
- package/dist/core/Highlight/Highlight.js +6 -3
- package/dist/core/Highlight/Highlight.stories.d.ts +19 -5
- package/dist/core/Highlight/Highlight.stories.d.ts.map +1 -1
- package/dist/core/Highlight/Highlight.stories.js +1 -1
- package/dist/core/Highlight/Highlight.stories.sources.d.ts.map +1 -1
- package/dist/core/Highlight/Highlight.stories.sources.js +1 -1
- package/dist/core/Highlight/Highlight.styles.d.ts +19 -5
- package/dist/core/Highlight/Highlight.styles.d.ts.map +1 -1
- package/dist/core/Highlight/Highlight.styles.js +15 -2
- 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/Map/useGoogleMap.d.ts +2 -1
- package/dist/core/Map/useGoogleMap.d.ts.map +1 -1
- package/dist/core/Map/useGoogleMap.js +3 -2
- package/dist/core/MarkdownDescription/MarkdownDescription.d.ts.map +1 -1
- package/dist/core/MarkdownDescription/MarkdownDescription.js +5 -11
- package/dist/core/MarkdownDescription/markdownComponents.d.ts +4 -10
- package/dist/core/MarkdownDescription/markdownComponents.d.ts.map +1 -1
- package/dist/core/MarkdownDescription/markdownComponents.js +17 -14
- package/dist/core/MarkdownDescription/markdownNatif.d.ts +13 -0
- package/dist/core/MarkdownDescription/markdownNatif.d.ts.map +1 -0
- package/dist/core/MarkdownDescription/markdownNatif.js +74 -0
- package/dist/core/Metabase/Metabase.stories.d.ts.map +1 -1
- package/dist/core/Metabase/Metabase.stories.js +3 -2
- package/dist/core/Metabase/Metabase.stories.sources.d.ts.map +1 -1
- package/dist/core/Metabase/Metabase.stories.sources.js +1 -1
- package/dist/core/Page/Page.stories.d.ts +5 -0
- package/dist/core/Page/Page.stories.d.ts.map +1 -1
- package/dist/core/Page/Page.stories.js +5 -0
- package/dist/core/Page/Page.stories.sources.d.ts +2 -0
- package/dist/core/Page/Page.stories.sources.d.ts.map +1 -1
- package/dist/core/Page/Page.stories.sources.js +3 -0
- package/dist/core/Page/Page.types.d.ts +1 -0
- package/dist/core/Page/Page.types.d.ts.map +1 -1
- package/dist/core/Page/PageBackground.d.ts +5 -5
- package/dist/core/Page/PageBackground.d.ts.map +1 -1
- package/dist/core/Page/PageBackground.js +8 -5
- package/dist/core/Page/PageBackground.stories.d.ts +25 -0
- package/dist/core/Page/PageBackground.stories.d.ts.map +1 -0
- package/dist/core/Page/PageBackground.stories.js +28 -0
- package/dist/core/Page/PageBackground.stories.sources.d.ts +8 -0
- package/dist/core/Page/PageBackground.stories.sources.d.ts.map +1 -0
- package/dist/core/Page/PageBackground.stories.sources.js +8 -0
- package/dist/core/Page/PageContent.d.ts.map +1 -1
- package/dist/core/Page/PageContent.js +3 -3
- package/dist/core/Page/PageContentDefault.d.ts.map +1 -1
- package/dist/core/Page/PageContentDefault.js +1 -1
- package/dist/core/Page/PageContentScrollable.d.ts +18 -17
- package/dist/core/Page/PageContentScrollable.d.ts.map +1 -1
- package/dist/core/Page/PageContentScrollable.js +1 -1
- package/dist/core/Page/index.d.ts +1 -0
- package/dist/core/Page/index.d.ts.map +1 -1
- package/dist/core/Page/index.js +1 -0
- 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/StorySummary/StorySummary.d.ts +7 -0
- package/dist/core/StorySummary/StorySummary.d.ts.map +1 -0
- package/dist/core/StorySummary/StorySummary.js +9 -0
- package/dist/core/StorySummary/StorySummary.stories.d.ts +13 -0
- package/dist/core/StorySummary/StorySummary.stories.d.ts.map +1 -0
- package/dist/core/StorySummary/StorySummary.stories.js +13 -0
- package/dist/core/StorySummary/StorySummary.stories.sources.d.ts +6 -0
- package/dist/core/StorySummary/StorySummary.stories.sources.d.ts.map +1 -0
- package/dist/core/StorySummary/StorySummary.stories.sources.js +6 -0
- package/dist/core/StorySummary/StorySummary.web.d.ts +4 -0
- package/dist/core/StorySummary/StorySummary.web.d.ts.map +1 -0
- package/dist/core/StorySummary/StorySummary.web.js +11 -0
- package/dist/core/StorySummary/index.d.ts +2 -0
- package/dist/core/StorySummary/index.d.ts.map +1 -0
- package/dist/core/StorySummary/index.js +1 -0
- package/dist/core/StorySummary/styleDuLienBrut.d.ts +9 -0
- package/dist/core/StorySummary/styleDuLienBrut.d.ts.map +1 -0
- package/dist/core/StorySummary/styleDuLienBrut.js +7 -0
- 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.d.ts +5 -5
- package/dist/core/Typography/Typography.d.ts.map +1 -1
- package/dist/core/Typography/Typography.js +16 -4
- package/dist/core/Typography/Typography.stories.d.ts +3 -2
- 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/Typography/couleurDuTexte.d.ts +1 -1
- package/dist/core/Typography/couleurDuTexte.d.ts.map +1 -1
- package/dist/core/UpdateRequired/UpdateRequired.d.ts.map +1 -1
- package/dist/core/UpdateRequired/UpdateRequired.js +4 -1
- package/dist/core/Version/Version.stories.d.ts +1 -1
- package/dist/core/Version/Version.styles.d.ts +1 -1
- package/dist/core/animation/animer.d.ts +9 -0
- package/dist/core/animation/animer.d.ts.map +1 -0
- package/dist/core/animation/animer.js +5 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +3 -0
- package/dist/core/styleTamagui/aplatirStyle.d.ts +2 -0
- package/dist/core/styleTamagui/aplatirStyle.d.ts.map +1 -0
- package/dist/core/styleTamagui/aplatirStyle.js +9 -0
- package/dist/core/styleTamagui/definis.d.ts +4 -0
- package/dist/core/styleTamagui/definis.d.ts.map +1 -0
- package/dist/core/styleTamagui/definis.js +3 -0
- package/dist/core/styleTamagui/flexDuWeb.d.ts +23 -0
- package/dist/core/styleTamagui/flexDuWeb.d.ts.map +1 -0
- package/dist/core/styleTamagui/flexDuWeb.js +20 -0
- package/dist/core/styleTamagui/fondAuSurvol.d.ts +15 -0
- package/dist/core/styleTamagui/fondAuSurvol.d.ts.map +1 -0
- package/dist/core/styleTamagui/fondAuSurvol.js +8 -0
- package/dist/core/styleTamagui/sansEstompage.d.ts +4 -0
- package/dist/core/styleTamagui/sansEstompage.d.ts.map +1 -0
- package/dist/core/styleTamagui/sansEstompage.js +4 -0
- package/dist/core/styleTamagui/soulignement.d.ts +11 -0
- package/dist/core/styleTamagui/soulignement.d.ts.map +1 -0
- package/dist/core/styleTamagui/soulignement.js +5 -0
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.d.ts.map +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/pdfjs/pdf.min.mjs +4 -5
- package/dist/pdfjs/pdf.worker.min.mjs +4 -5
- package/dist/stories/index.d.ts +3 -0
- package/dist/stories/index.d.ts.map +1 -1
- package/dist/stories/index.js +3 -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/Accordion/AccordionItem.d.ts.map +1 -1
- package/dist/ui/Accordion/AccordionItem.js +2 -1
- package/dist/ui/ActionMenu/ActionMenuItem.d.ts.map +1 -1
- package/dist/ui/ActionMenu/ActionMenuItem.js +9 -6
- package/dist/ui/Avatar/Avatar.d.ts.map +1 -1
- package/dist/ui/Avatar/Avatar.js +6 -1
- 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.d.ts.map +1 -1
- package/dist/ui/Badge/Badge.js +3 -2
- package/dist/ui/Badge/Badge.stories.d.ts +28 -24
- package/dist/ui/Badge/Badge.stories.d.ts.map +1 -1
- 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 +28 -24
- package/dist/ui/Badge/Badge.styles.d.ts.map +1 -1
- package/dist/ui/Badge/Badge.styles.js +4 -2
- package/dist/ui/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/ui/BottomSheet/BottomSheet.js +3 -1
- package/dist/ui/BottomSheet/BottomSheet.stories.d.ts +12 -9
- package/dist/ui/BottomSheet/BottomSheet.stories.d.ts.map +1 -1
- package/dist/ui/BottomSheet/BottomSheet.styles.d.ts +12 -9
- package/dist/ui/BottomSheet/BottomSheet.styles.d.ts.map +1 -1
- package/dist/ui/BottomSheet/BottomSheet.styles.js +10 -7
- package/dist/ui/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.js +2 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +8 -7
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- 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 +8 -7
- package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts.map +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.styles.js +1 -4
- 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 +9 -9
- 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/ButtonContent.d.ts.map +1 -1
- package/dist/ui/Button/ButtonContent.js +7 -3
- package/dist/ui/Button/buttonIconStyling.d.ts +4 -20
- package/dist/ui/Button/buttonIconStyling.d.ts.map +1 -1
- package/dist/ui/Button/buttonStyling.d.ts +9 -3
- package/dist/ui/Button/buttonStyling.d.ts.map +1 -1
- package/dist/ui/Button/buttonStyling.js +7 -3
- 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 +11 -3
- 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 +7 -3
- 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 +6 -6
- 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 +19 -18
- package/dist/ui/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/dist/ui/Checkbox/Checkbox.stories.js +3 -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 +13 -12
- package/dist/ui/Checkbox/Checkbox.styles.d.ts.map +1 -1
- package/dist/ui/Checkbox/Checkbox.styles.js +12 -11
- package/dist/ui/Checkbox/CheckboxContainer.d.ts +6 -6
- package/dist/ui/Checkbox/CheckboxContainer.d.ts.map +1 -1
- package/dist/ui/Checkbox/CheckboxContainer.js +4 -8
- package/dist/ui/Checkbox/CheckboxLabel.d.ts +1 -1
- package/dist/ui/Checkbox/CheckboxLabel.d.ts.map +1 -1
- package/dist/ui/Checkbox/CheckboxLabel.js +3 -2
- 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.demo.deployments.js +1 -1
- package/dist/ui/DataTable/DataTable.stories.d.ts +13 -11
- package/dist/ui/DataTable/DataTable.stories.d.ts.map +1 -1
- package/dist/ui/DataTable/DataTable.styles.d.ts +13 -11
- package/dist/ui/DataTable/DataTable.styles.d.ts.map +1 -1
- package/dist/ui/DataTable/DataTable.styles.js +5 -1
- package/dist/ui/DataTable/DataTableCell.js +1 -1
- package/dist/ui/DataTable/DataTableRow.d.ts.map +1 -1
- package/dist/ui/DataTable/DataTableRow.js +4 -2
- package/dist/ui/DataTable/dataTableCellStyle.d.ts +2 -2
- package/dist/ui/DataTable/dataTableCellStyle.js +1 -1
- package/dist/ui/DateInput/DateInput.d.ts +4 -4
- package/dist/ui/DateInput/DateInput.d.ts.map +1 -1
- package/dist/ui/DateInput/DateInput.ios.d.ts +4 -3
- package/dist/ui/DateInput/DateInput.ios.d.ts.map +1 -1
- package/dist/ui/DateInput/DateInput.stories.d.ts +3 -3
- 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/DateInput/DateInput.web.d.ts +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.d.ts +2 -1
- package/dist/ui/DocumentViewer/DocumentViewer.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.js +13 -5
- package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +12 -11
- package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.js +5 -5
- package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.js +4 -4
- package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts +12 -11
- package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.styles.js +3 -0
- package/dist/ui/DocumentViewer/DocumentViewer.types.d.ts +2 -0
- package/dist/ui/DocumentViewer/DocumentViewer.types.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerImage.d.ts +1 -2
- package/dist/ui/DocumentViewer/DocumentViewerImage.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerImage.js +5 -15
- package/dist/ui/DocumentViewer/DocumentViewerPDF.web.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerPDF.web.js +8 -8
- package/dist/ui/DocumentViewer/DocumentViewerToolbar.d.ts +3 -0
- package/dist/ui/DocumentViewer/DocumentViewerToolbar.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerToolbar.js +7 -3
- package/dist/ui/DocumentViewer/chargementDePdfJs.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/chargementDePdfJs.js +3 -1
- package/dist/ui/DocumentViewer/pointeurWeb.d.ts +13 -3
- package/dist/ui/DocumentViewer/pointeurWeb.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/pointeurWeb.js +1 -1
- package/dist/ui/DocumentViewer/usePleinEcran.d.ts +13 -0
- package/dist/ui/DocumentViewer/usePleinEcran.d.ts.map +1 -0
- package/dist/ui/DocumentViewer/usePleinEcran.js +27 -0
- package/dist/ui/DocumentViewer/useZoomMolette.d.ts +24 -0
- package/dist/ui/DocumentViewer/useZoomMolette.d.ts.map +1 -0
- package/dist/ui/DocumentViewer/useZoomMolette.js +55 -0
- 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 +5 -6
- package/dist/ui/EmptyState/EmptyState.stories.d.ts.map +1 -1
- package/dist/ui/EmptyState/EmptyState.stories.js +1 -1
- package/dist/ui/EmptyState/EmptyState.stories.sources.d.ts.map +1 -1
- package/dist/ui/EmptyState/EmptyState.stories.sources.js +1 -1
- package/dist/ui/EmptyState/EmptyState.styles.d.ts +5 -6
- package/dist/ui/EmptyState/EmptyState.styles.d.ts.map +1 -1
- package/dist/ui/EmptyState/EmptyState.styles.js +3 -2
- 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.d.ts +1 -1
- package/dist/ui/FilterDate/FilterDate.d.ts.map +1 -1
- package/dist/ui/FilterDate/FilterDate.js +1 -1
- 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.d.ts.map +1 -1
- package/dist/ui/FormControl/FormControl.stories.js +9 -9
- package/dist/ui/FormControl/FormControl.stories.sources.d.ts.map +1 -1
- package/dist/ui/FormControl/FormControl.stories.sources.js +7 -7
- 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 +3 -2
- package/dist/ui/FormControl/NumberInput.stories.sources.d.ts.map +1 -1
- package/dist/ui/FormControl/NumberInput.stories.sources.js +2 -2
- 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 +2 -1
- package/dist/ui/FormControl/TextInput.d.ts.map +1 -1
- package/dist/ui/FormControl/TextInput.stories.d.ts +19 -18
- package/dist/ui/FormControl/TextInput.stories.d.ts.map +1 -1
- package/dist/ui/FormControl/TextInput.types.d.ts +5 -2
- package/dist/ui/FormControl/TextInput.types.d.ts.map +1 -1
- package/dist/ui/FormControl/TextInputInline.d.ts +3 -2
- package/dist/ui/FormControl/TextInputInline.d.ts.map +1 -1
- package/dist/ui/FormControl/TextInputInline.js +2 -2
- package/dist/ui/FormControl/TextInputMirror.d.ts +3 -2
- package/dist/ui/FormControl/TextInputMirror.d.ts.map +1 -1
- package/dist/ui/FormControl/TextInputModal.d.ts +3 -2
- package/dist/ui/FormControl/TextInputModal.d.ts.map +1 -1
- package/dist/ui/FormControl/TextInputPassword.d.ts +3 -1
- package/dist/ui/FormControl/TextInputPassword.d.ts.map +1 -1
- package/dist/ui/FormControl/TextInputPassword.js +9 -2
- 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 +55 -1
- package/dist/ui/FormControl/textInputStyles.d.ts.map +1 -1
- package/dist/ui/FormControl/textInputStyles.js +3 -1
- package/dist/ui/FormControl/useChoixDeFichier.d.ts.map +1 -1
- package/dist/ui/FormControl/useChoixDeFichier.js +15 -3
- package/dist/ui/FormControl/useTextInputModal.d.ts +4 -3
- package/dist/ui/FormControl/useTextInputModal.d.ts.map +1 -1
- package/dist/ui/Header/Header.d.ts.map +1 -1
- package/dist/ui/Header/Header.js +1 -1
- package/dist/ui/Header/Header.stories.d.ts +6 -33
- package/dist/ui/Header/Header.stories.d.ts.map +1 -1
- package/dist/ui/Header/Header.styles.d.ts +6 -33
- package/dist/ui/Header/Header.styles.d.ts.map +1 -1
- package/dist/ui/Header/Header.styles.js +6 -6
- 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.d.ts.map +1 -1
- package/dist/ui/Link/Link.js +2 -1
- package/dist/ui/Link/Link.stories.d.ts +1 -5
- package/dist/ui/Link/Link.stories.d.ts.map +1 -1
- package/dist/ui/Link/Link.styles.d.ts +1 -5
- package/dist/ui/Link/Link.styles.d.ts.map +1 -1
- package/dist/ui/Link/Link.styles.js +0 -4
- package/dist/ui/ListItem/ListItem.d.ts.map +1 -1
- package/dist/ui/ListItem/ListItem.js +2 -1
- package/dist/ui/ListItem/ListItem.stories.d.ts +10 -7
- package/dist/ui/ListItem/ListItem.stories.d.ts.map +1 -1
- package/dist/ui/ListItem/ListItem.styles.d.ts +10 -7
- package/dist/ui/ListItem/ListItem.styles.d.ts.map +1 -1
- package/dist/ui/ListItem/ListItem.styles.js +8 -2
- 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 +402 -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 +5735 -4162
- 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.d.ts.map +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 +8 -7
- package/dist/ui/ProgressBar/ProgressBar.stories.d.ts.map +1 -1
- package/dist/ui/ProgressBar/ProgressBar.styles.d.ts +8 -7
- package/dist/ui/ProgressBar/ProgressBar.styles.d.ts.map +1 -1
- package/dist/ui/ProgressBar/ProgressBar.styles.js +2 -0
- package/dist/ui/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/ui/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/ui/RadioGroup/RadioGroup.js +1 -1
- package/dist/ui/RadioGroup/RadioGroup.stories.d.ts +10 -12
- package/dist/ui/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
- 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 +9 -11
- package/dist/ui/RadioGroup/RadioGroup.styles.d.ts.map +1 -1
- package/dist/ui/RadioGroup/RadioGroup.styles.js +7 -10
- package/dist/ui/RadioGroup/RadioGroupCard.d.ts.map +1 -1
- package/dist/ui/RadioGroup/RadioGroupCard.js +2 -2
- package/dist/ui/RadioGroup/RadioGroupContext.d.ts +1 -0
- package/dist/ui/RadioGroup/RadioGroupContext.d.ts.map +1 -1
- package/dist/ui/RadioGroup/RadioGroupItem.d.ts.map +1 -1
- package/dist/ui/RadioGroup/RadioGroupItem.js +8 -3
- package/dist/ui/RadioGroup/RadioGroupItem.styles.d.ts +1 -1
- package/dist/ui/RadioGroup/RadioInput.d.ts.map +1 -1
- package/dist/ui/RadioGroup/RadioInput.js +5 -7
- package/dist/ui/RadioGroup/index.d.ts +1 -1
- package/dist/ui/ResourceList/ResourceList.stories.d.ts +4 -2
- package/dist/ui/ResourceList/ResourceList.stories.d.ts.map +1 -1
- package/dist/ui/ResourceList/ResourceList.stories.js +3 -1
- package/dist/ui/ResourceList/ResourceList.stories.sources.d.ts +2 -0
- package/dist/ui/ResourceList/ResourceList.stories.sources.d.ts.map +1 -1
- package/dist/ui/ResourceList/ResourceList.stories.sources.js +4 -1
- 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 -9
- package/dist/ui/Select/Select.stories.d.ts.map +1 -1
- 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 +9 -10
- package/dist/ui/Select/Select.styles.d.ts.map +1 -1
- package/dist/ui/Select/Select.styles.js +1 -2
- package/dist/ui/Select/Select.types.d.ts +2 -0
- package/dist/ui/Select/Select.types.d.ts.map +1 -1
- package/dist/ui/Select/SelectBottomSheet.d.ts.map +1 -1
- package/dist/ui/Select/SelectBottomSheet.js +5 -5
- package/dist/ui/Select/SelectItem.js +1 -1
- package/dist/ui/Select/SelectList.styles.d.ts +14 -22
- package/dist/ui/Select/SelectList.styles.d.ts.map +1 -1
- package/dist/ui/Select/SelectList.styles.js +8 -9
- package/dist/ui/Select/SelectOptionsList.d.ts +1 -0
- package/dist/ui/Select/SelectOptionsList.d.ts.map +1 -1
- 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 +7 -7
- package/dist/ui/Select/selectItemStyle.d.ts.map +1 -1
- package/dist/ui/Select/selectItemStyle.js +7 -3
- package/dist/ui/Select/selectTriggerStyle.d.ts +54 -2
- package/dist/ui/Select/selectTriggerStyle.d.ts.map +1 -1
- package/dist/ui/Select/useDefilementVersSelection.d.ts +3 -2
- package/dist/ui/Select/useDefilementVersSelection.d.ts.map +1 -1
- package/dist/ui/Sidebar/Sidebar.stories.d.ts +20 -27
- 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 -27
- package/dist/ui/Sidebar/Sidebar.styles.d.ts.map +1 -1
- package/dist/ui/Sidebar/Sidebar.styles.js +4 -7
- 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 +16 -9
- package/dist/ui/Signature/Signature.d.ts +1 -1
- package/dist/ui/Signature/Signature.d.ts.map +1 -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 +2 -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 +2 -1
- package/dist/ui/Skeleton/Skeleton.styles.d.ts.map +1 -1
- package/dist/ui/Skeleton/Skeleton.styles.js +2 -0
- 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 +1 -1
- package/dist/ui/Switch/Switch.d.ts.map +1 -1
- package/dist/ui/Switch/Switch.js +15 -11
- package/dist/ui/Switch/Switch.stories.d.ts +12 -11
- package/dist/ui/Switch/Switch.stories.d.ts.map +1 -1
- 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 +11 -10
- package/dist/ui/Switch/Switch.styles.d.ts.map +1 -1
- package/dist/ui/Switch/Switch.styles.js +5 -4
- package/dist/ui/Tabs/Tabs.d.ts +7 -1
- package/dist/ui/Tabs/Tabs.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.js +3 -3
- package/dist/ui/Tabs/Tabs.stories.d.ts +33 -10
- package/dist/ui/Tabs/Tabs.stories.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.stories.js +15 -1
- package/dist/ui/Tabs/Tabs.stories.sources.d.ts +4 -0
- package/dist/ui/Tabs/Tabs.stories.sources.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.stories.sources.js +4 -0
- package/dist/ui/Tabs/Tabs.styles.d.ts +31 -10
- package/dist/ui/Tabs/Tabs.styles.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.styles.js +6 -2
- package/dist/ui/Tabs/TabsTab.js +1 -1
- package/dist/ui/Tabs/useTabsState.d.ts +2 -2
- package/dist/ui/Tabs/useTabsState.d.ts.map +1 -1
- package/dist/ui/Tabs/useTabsState.js +13 -7
- package/dist/ui/Tag/Tag.d.ts.map +1 -1
- package/dist/ui/Tag/Tag.js +14 -2
- package/dist/ui/Tag/Tag.stories.d.ts +15 -7
- package/dist/ui/Tag/Tag.stories.d.ts.map +1 -1
- 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 +15 -7
- package/dist/ui/Tag/Tag.styles.d.ts.map +1 -1
- package/dist/ui/Tag/Tag.styles.js +11 -0
- package/dist/ui/Tag/TagNativeContent.d.ts +11 -0
- package/dist/ui/Tag/TagNativeContent.d.ts.map +1 -0
- package/dist/ui/Tag/TagNativeContent.js +10 -0
- package/dist/ui/Tag/tagStyling.d.ts +2 -2
- package/dist/ui/TextInputArray/TextInputArray.js +1 -1
- package/dist/ui/TextareaInput/TextareaInput.d.ts +3 -2
- package/dist/ui/TextareaInput/TextareaInput.d.ts.map +1 -1
- package/dist/ui/TextareaInput/TextareaInput.stories.d.ts +3 -1
- package/dist/ui/TextareaInput/TextareaInput.stories.d.ts.map +1 -1
- package/dist/ui/TextareaInput/TextareaInput.stories.js +3 -5
- package/dist/ui/TextareaInput/TextareaInput.stories.sources.d.ts +2 -0
- package/dist/ui/TextareaInput/TextareaInput.stories.sources.d.ts.map +1 -1
- package/dist/ui/TextareaInput/TextareaInput.stories.sources.js +3 -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.d.ts +3 -3
- package/dist/ui/Toast/Toast.d.ts.map +1 -1
- package/dist/ui/Toast/Toast.js +5 -7
- package/dist/ui/Toast/Toast.stories.d.ts +32 -22
- package/dist/ui/Toast/Toast.stories.d.ts.map +1 -1
- package/dist/ui/Toast/Toast.stories.js +14 -11
- package/dist/ui/Toast/Toast.stories.sources.d.ts.map +1 -1
- package/dist/ui/Toast/Toast.stories.sources.js +3 -3
- package/dist/ui/Toast/Toast.styles.d.ts +22 -15
- package/dist/ui/Toast/Toast.styles.d.ts.map +1 -1
- package/dist/ui/Toast/Toast.styles.js +6 -3
- package/dist/ui/Toast/ToastContext.d.ts +1 -0
- package/dist/ui/Toast/ToastContext.d.ts.map +1 -1
- package/dist/ui/Toast/ToastContext.js +1 -0
- package/dist/ui/Toast/Toasts.d.ts +2 -1
- package/dist/ui/Toast/Toasts.d.ts.map +1 -1
- package/dist/ui/Toast/Toasts.js +9 -5
- 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.d.ts.map +1 -1
- package/dist/ui/ToolbarTop/ToolbarTop.js +1 -2
- package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts +4 -5
- package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts.map +1 -1
- package/dist/ui/ToolbarTop/ToolbarTop.styles.d.ts +4 -5
- package/dist/ui/ToolbarTop/ToolbarTop.styles.d.ts.map +1 -1
- package/dist/ui/ToolbarTop/ToolbarTop.styles.js +1 -2
- package/dist/ui/ToolbarTop/ToolbarTop.types.d.ts +2 -3
- package/dist/ui/ToolbarTop/ToolbarTop.types.d.ts.map +1 -1
- package/dist/ui/ToolbarTop/toolbarTopStyling.d.ts +7 -6
- package/dist/ui/ToolbarTop/toolbarTopStyling.d.ts.map +1 -1
- package/package.json +44 -42
- package/dist/core/styleTamagui/versStyleTamagui.d.ts +0 -10
- package/dist/core/styleTamagui/versStyleTamagui.d.ts.map +0 -1
- package/dist/core/styleTamagui/versStyleTamagui.js +0 -8
- package/dist/ui/DocumentViewer/useSurvolAvecZoom.d.ts +0 -15
- package/dist/ui/DocumentViewer/useSurvolAvecZoom.d.ts.map +0 -1
- package/dist/ui/DocumentViewer/useSurvolAvecZoom.js +0 -27
- package/dist/ui/PriceInput/PriceInput.css +0 -9
- package/dist/ui/Toast/ToastBridge.d.ts +0 -11
- package/dist/ui/Toast/ToastBridge.d.ts.map +0 -1
- package/dist/ui/Toast/ToastBridge.js +0 -19
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BoxProps } from '../../core/Box';
|
|
3
|
-
export type SignatureProps = Omit<BoxProps, 'children'> & {
|
|
3
|
+
export type SignatureProps = Omit<BoxProps, 'children' | 'onChange'> & {
|
|
4
4
|
height: number;
|
|
5
5
|
date?: string | Date;
|
|
6
6
|
dateLabel?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Signature.d.ts","sourceRoot":"","sources":["../../../src/ui/Signature/Signature.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI/C,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG;
|
|
1
|
+
{"version":3,"file":"Signature.d.ts","sourceRoot":"","sources":["../../../src/ui/Signature/Signature.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI/C,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC,GAAG;IACrE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAwDF,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,sBA0C9C,CAAC"}
|
|
@@ -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(() => {
|
|
@@ -8,6 +8,7 @@ declare const _default: {
|
|
|
8
8
|
styleFn: () => {
|
|
9
9
|
skeleton: {
|
|
10
10
|
overflow: "hidden";
|
|
11
|
+
position: "relative";
|
|
11
12
|
};
|
|
12
13
|
pulse: {
|
|
13
14
|
position: "absolute";
|
|
@@ -15,7 +16,7 @@ declare const _default: {
|
|
|
15
16
|
right: number;
|
|
16
17
|
bottom: number;
|
|
17
18
|
left: number;
|
|
18
|
-
backgroundColor:
|
|
19
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
19
20
|
};
|
|
20
21
|
};
|
|
21
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Skeleton/Skeleton.stories.tsx"],"names":[],"mappings":"
|
|
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,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const useStyles: () => {
|
|
2
2
|
skeleton: {
|
|
3
3
|
overflow: "hidden";
|
|
4
|
+
position: "relative";
|
|
4
5
|
};
|
|
5
6
|
pulse: {
|
|
6
7
|
position: "absolute";
|
|
@@ -8,7 +9,7 @@ export declare const useStyles: () => {
|
|
|
8
9
|
right: number;
|
|
9
10
|
bottom: number;
|
|
10
11
|
left: number;
|
|
11
|
-
backgroundColor:
|
|
12
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
12
13
|
};
|
|
13
14
|
};
|
|
14
15
|
//# sourceMappingURL=Skeleton.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Skeleton/Skeleton.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Skeleton.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Skeleton/Skeleton.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;CAcnB,CAAC"}
|
|
@@ -2,6 +2,8 @@ import { makeStyles } from '@alveole/theme';
|
|
|
2
2
|
export const useStyles = makeStyles(({ color }) => ({
|
|
3
3
|
skeleton: {
|
|
4
4
|
overflow: 'hidden',
|
|
5
|
+
// Le reflet s'y tend en absolu : Tamagui v2 ne rend plus chaque vue relative.
|
|
6
|
+
position: 'relative',
|
|
5
7
|
},
|
|
6
8
|
pulse: {
|
|
7
9
|
position: 'absolute',
|
|
@@ -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;
|
|
@@ -9,7 +9,7 @@ export type SwitchProps = Omit<TamaguiSwitchProps, 'value' | 'onChange'> & {
|
|
|
9
9
|
success?: string;
|
|
10
10
|
noPadding?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export declare const Switch: React.ForwardRefExoticComponent<Omit<TamaguiSwitchProps, "
|
|
12
|
+
export declare const Switch: React.ForwardRefExoticComponent<Omit<TamaguiSwitchProps, "onChange" | "value"> & {
|
|
13
13
|
id?: string;
|
|
14
14
|
label?: string;
|
|
15
15
|
style?: CSSProperties;
|
|
@@ -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;
|
|
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,19 +1,28 @@
|
|
|
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
|
-
import {
|
|
4
|
+
import { Platform, Pressable } from 'react-native';
|
|
5
|
+
import { Switch as TamaguiSwitch } from 'tamagui';
|
|
6
|
+
import { Label } from 'tamagui/unstyled';
|
|
7
|
+
import { animer } from '../../core/animation/animer';
|
|
5
8
|
import { Box } from '../../core/Box';
|
|
6
9
|
import { Typography } from '../../core/Typography';
|
|
7
10
|
import { FormControlCaption } from '../FormControl';
|
|
8
11
|
import { apparenceDuSwitch } from './Switch.apparence';
|
|
9
12
|
import { useStyles } from './Switch.styles';
|
|
13
|
+
const SwitchLabel = ({ id, checked, disabled, onChange, children }) => Platform.OS === 'web' ? (_jsx(Label, { htmlFor: id, width: "100%", children: children })) : (_jsx(Pressable, { accessible: false, disabled: disabled, pointerEvents: "box-only", onPress: () => onChange(!checked), children: children }));
|
|
14
|
+
// La piste du pouce, comme Tamagui v1 la dimensionnait : deux pouces de large, un de haut, plus
|
|
15
|
+
// 4 px pour le padding et la bordure qu'Alveole pose de chaque cote. La v2 ne compte plus ces
|
|
16
|
+
// 4 px, et le pouce debordait de sa piste. La taille de reference etait le token `$true` de la
|
|
17
|
+
// config de l'application, 44 px ; la config v5 de Tamagui v3 ne le fournit plus, Alveole la fixe.
|
|
18
|
+
const POUCE = Math.round(44 * 0.65);
|
|
19
|
+
const DIMENSIONS_DE_LA_PISTE = { width: 2 * POUCE + 4, height: POUCE + 4, minHeight: POUCE + 4 };
|
|
10
20
|
export const Switch = React.forwardRef(function Switch(props, ref) {
|
|
11
21
|
const { checked, style, label, error, success, disabled, noPadding, onCheckedChange, ...switchProps } = props;
|
|
12
22
|
let { id } = props;
|
|
13
23
|
const isControlled = checked !== undefined;
|
|
14
24
|
const [model, setModel] = React.useState(Boolean(checked));
|
|
15
25
|
const value = isControlled ? checked : model;
|
|
16
|
-
const { spacingValue } = useTheme();
|
|
17
26
|
const styles = useStyles();
|
|
18
27
|
const uniqId = useId();
|
|
19
28
|
id = id || `switch--${uniqId}`;
|
|
@@ -23,12 +32,7 @@ export const Switch = React.forwardRef(function Switch(props, ref) {
|
|
|
23
32
|
onCheckedChange?.(newValue);
|
|
24
33
|
};
|
|
25
34
|
const { bouton, pouce, libelle } = apparenceDuSwitch(styles, { value, disabled, noPadding, style });
|
|
26
|
-
const Toggle = (_jsx(TamaguiSwitch, { id: id, ref: ref, borderWidth: 1, checked: value, onCheckedChange: onChange, style: bouton, disabled: disabled, ...focusRingProps(),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
// c'est le gris translucide de Tamagui qui s'affiche. La valeur vient de `focusRing()`,
|
|
30
|
-
// qui peint le meme bleu que la regle : un seul reglage, deux chemins pour l'appliquer.
|
|
31
|
-
focusVisibleStyle: styles.switchButtonFocused, ...switchProps, children: _jsx(TamaguiSwitch.Thumb, { animation: "quicker", style: pouce }) }));
|
|
32
|
-
const ToggleWithLabel = (_jsxs(_Fragment, { children: [_jsx(Label, { unstyled: true, htmlFor: id, width: '100%', 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 })] }));
|
|
33
|
-
return (_jsx(Box, { tag: "switch", gap: error || success ? spacingValue('050') : 0, style: styles.switchContainer, children: !label ? Toggle : ToggleWithLabel }));
|
|
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 }) }));
|
|
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 })] }));
|
|
37
|
+
return (_jsx(Box, { tag: "switch", gap: error || success ? '1W' : '0V', style: styles.switchContainer, children: !label ? Toggle : ToggleWithLabel }));
|
|
34
38
|
});
|
|
@@ -3,7 +3,7 @@ declare const _default: {
|
|
|
3
3
|
tags: "ui"[];
|
|
4
4
|
experimental: false;
|
|
5
5
|
description: string;
|
|
6
|
-
component: import("react").ForwardRefExoticComponent<Omit<import("tamagui").SwitchProps, "
|
|
6
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("tamagui").SwitchProps, "onChange" | "value"> & {
|
|
7
7
|
id?: string;
|
|
8
8
|
label?: string;
|
|
9
9
|
style?: import("react").CSSProperties;
|
|
@@ -13,7 +13,6 @@ declare const _default: {
|
|
|
13
13
|
} & import("react").RefAttributes<import("tamagui").TamaguiElement>>;
|
|
14
14
|
styleFn: () => {
|
|
15
15
|
switchContainer: {};
|
|
16
|
-
switchButtonFocused: import("@alveole/theme").FocusRingStyle;
|
|
17
16
|
switch: {
|
|
18
17
|
display: "flex";
|
|
19
18
|
flexDirection: "row";
|
|
@@ -21,8 +20,8 @@ declare const _default: {
|
|
|
21
20
|
paddingRight: string | number;
|
|
22
21
|
};
|
|
23
22
|
switchButton: {
|
|
24
|
-
borderColor:
|
|
25
|
-
backgroundColor:
|
|
23
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
24
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
26
25
|
cursor: "pointer";
|
|
27
26
|
padding: number;
|
|
28
27
|
minHeight: string | number;
|
|
@@ -30,27 +29,29 @@ declare const _default: {
|
|
|
30
29
|
marginBottom: string;
|
|
31
30
|
};
|
|
32
31
|
switchButtonChecked: {
|
|
33
|
-
backgroundColor:
|
|
32
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
34
33
|
};
|
|
35
34
|
switchButtonDisabled: {
|
|
36
|
-
|
|
35
|
+
opacity: 1;
|
|
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
|
+
boxShadow: "none";
|
|
43
44
|
};
|
|
44
45
|
switchThumbChecked: {
|
|
45
|
-
backgroundColor:
|
|
46
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
46
47
|
};
|
|
47
48
|
switchThumbDisabled: {
|
|
48
|
-
backgroundColor:
|
|
49
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
49
50
|
cursor: "not-allowed";
|
|
50
51
|
borderColor: "#FFFFFF";
|
|
51
52
|
};
|
|
52
53
|
switchLabel: {
|
|
53
|
-
color:
|
|
54
|
+
color: import("@alveole/theme").ThemeColor;
|
|
54
55
|
fontSize: 14;
|
|
55
56
|
lineHeight: 20;
|
|
56
57
|
letterSpacing: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Switch.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAOkB;AAElB,eAAO,MAAM,OAAO,mCAOnB,CAAC;AAEF,eAAO,MAAM,UAAU,mCAGtB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC"}
|
|
@@ -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,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const useStyles: () => {
|
|
2
2
|
switchContainer: {};
|
|
3
|
-
switchButtonFocused: import("@alveole/theme").FocusRingStyle;
|
|
4
3
|
switch: {
|
|
5
4
|
display: "flex";
|
|
6
5
|
flexDirection: "row";
|
|
@@ -8,8 +7,8 @@ export declare const useStyles: () => {
|
|
|
8
7
|
paddingRight: string | number;
|
|
9
8
|
};
|
|
10
9
|
switchButton: {
|
|
11
|
-
borderColor:
|
|
12
|
-
backgroundColor:
|
|
10
|
+
borderColor: import("@alveole/theme").ThemeColor;
|
|
11
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
13
12
|
cursor: "pointer";
|
|
14
13
|
padding: number;
|
|
15
14
|
minHeight: string | number;
|
|
@@ -17,27 +16,29 @@ export declare const useStyles: () => {
|
|
|
17
16
|
marginBottom: string;
|
|
18
17
|
};
|
|
19
18
|
switchButtonChecked: {
|
|
20
|
-
backgroundColor:
|
|
19
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
21
20
|
};
|
|
22
21
|
switchButtonDisabled: {
|
|
23
|
-
|
|
22
|
+
opacity: 1;
|
|
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
|
+
boxShadow: "none";
|
|
30
31
|
};
|
|
31
32
|
switchThumbChecked: {
|
|
32
|
-
backgroundColor:
|
|
33
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
33
34
|
};
|
|
34
35
|
switchThumbDisabled: {
|
|
35
|
-
backgroundColor:
|
|
36
|
+
backgroundColor: import("@alveole/theme").ThemeColor;
|
|
36
37
|
cursor: "not-allowed";
|
|
37
38
|
borderColor: "#FFFFFF";
|
|
38
39
|
};
|
|
39
40
|
switchLabel: {
|
|
40
|
-
color:
|
|
41
|
+
color: import("@alveole/theme").ThemeColor;
|
|
41
42
|
fontSize: 14;
|
|
42
43
|
lineHeight: 20;
|
|
43
44
|
letterSpacing: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDnB,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { makeStyles } from '@alveole/theme';
|
|
2
|
+
import { sansEstompage } from '../../core/styleTamagui/sansEstompage';
|
|
2
3
|
export const useStyles = makeStyles(({ text, color, spacing }) => ({
|
|
3
4
|
switchContainer: {},
|
|
4
|
-
// Voir `Switch.tsx` : Tamagui impose sa propre bague en `!important`, seule sa prop
|
|
5
|
-
// `focusVisibleStyle` peut la remplacer. La valeur vient de la meme source que la regle CSS.
|
|
6
|
-
switchButtonFocused: focusRing('default'),
|
|
7
5
|
switch: {
|
|
8
6
|
display: 'flex',
|
|
9
7
|
flexDirection: 'row',
|
|
@@ -25,11 +23,14 @@ export const useStyles = makeStyles(({ text, color, spacing }) => ({
|
|
|
25
23
|
switchButtonDisabled: {
|
|
26
24
|
backgroundColor: color.background['disabled-grey'],
|
|
27
25
|
cursor: 'not-allowed',
|
|
26
|
+
...sansEstompage,
|
|
28
27
|
},
|
|
29
28
|
switchThumb: {
|
|
30
29
|
borderWidth: 1,
|
|
31
30
|
borderColor: color.border['default-grey'],
|
|
32
31
|
backgroundColor: color.background['default-active'],
|
|
32
|
+
// Tamagui v3 ombre son pouce ; celui d'Alveole est plat.
|
|
33
|
+
boxShadow: 'none',
|
|
33
34
|
},
|
|
34
35
|
switchThumbChecked: {
|
|
35
36
|
backgroundColor: color.primary,
|
package/dist/ui/Tabs/Tabs.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BoxProps } from '../../core/Box';
|
|
3
3
|
import { Leading } from '../Leading';
|
|
4
|
-
export type TabsProps = Omit<BoxProps, 'children'> & {
|
|
4
|
+
export type TabsProps = Omit<BoxProps, 'children' | 'onChange'> & {
|
|
5
5
|
tabs: {
|
|
6
6
|
label: string;
|
|
7
7
|
leading?: Leading;
|
|
@@ -12,6 +12,12 @@ export type TabsProps = Omit<BoxProps, 'children'> & {
|
|
|
12
12
|
renderAction?: () => React.ReactNode;
|
|
13
13
|
}[];
|
|
14
14
|
defaultValue?: string;
|
|
15
|
+
/**
|
|
16
|
+
* L'onglet actif, impose par le parent : `Tabs` devient controle. Un clic sur un onglet appelle
|
|
17
|
+
* toujours `onChange`, au parent de mettre `value` a jour. Absent, `Tabs` garde l'onglet actif
|
|
18
|
+
* pour lui, a partir de `defaultValue`.
|
|
19
|
+
*/
|
|
20
|
+
value?: string;
|
|
15
21
|
onChange?: (index: number) => void;
|
|
16
22
|
/**
|
|
17
23
|
* Active l'Anchor Sync (voir ADR 0022) : au clic, l'onglet actif est ecrit dans l'etat
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAO,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAOrC,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG;
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAO,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAOrC,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC,GAAG;IAChE,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;QACzB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;KACtC,EAAE,CAAC;IACJ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,sBAkEpC,CAAC"}
|
package/dist/ui/Tabs/Tabs.js
CHANGED
|
@@ -9,10 +9,10 @@ import { TabsTab } from './TabsTab';
|
|
|
9
9
|
import { useAnchorSync } from './useAnchorSync';
|
|
10
10
|
import { useTabsState } from './useTabsState';
|
|
11
11
|
export const Tabs = (props) => {
|
|
12
|
-
const { tabs, defaultValue = '', onChange, urlAnchorPrefix, style, ...boxProps } = props;
|
|
12
|
+
const { tabs, defaultValue = '', value, onChange, urlAnchorPrefix, style, ...boxProps } = props;
|
|
13
13
|
const styles = useStyles();
|
|
14
14
|
const initialValue = defaultValue || tabs[0]?.value || '';
|
|
15
|
-
const { currentTab, etatDeLOnglet, setCurrentTab, restoreCurrentTab, setHoverTab, handleOnInteraction } = useTabsState(initialValue, onChange);
|
|
15
|
+
const { currentTab, etatDeLOnglet, setCurrentTab, restoreCurrentTab, setHoverTab, handleOnInteraction } = useTabsState(initialValue, onChange, value);
|
|
16
16
|
const { persist } = useAnchorSync(urlAnchorPrefix, anchor => {
|
|
17
17
|
const tab = tabs.find(t => toSlug(t.label) === anchor);
|
|
18
18
|
if (tab)
|
|
@@ -27,5 +27,5 @@ export const Tabs = (props) => {
|
|
|
27
27
|
const tab = tabs[index];
|
|
28
28
|
if (tab)
|
|
29
29
|
persist(toSlug(tab.label));
|
|
30
|
-
}, orientation: "horizontal", size: "$4", activationMode: "manual", children: [_jsxs(TamaguiTabs.List, {
|
|
30
|
+
}, orientation: "horizontal", size: "$4", activationMode: "manual", children: [_jsxs(TamaguiTabs.List, { loop: false, style: styles.tabsList, ...focusRingProps(), children: [tabs.map(tab => (_jsx(TabsTab, { value: tab.value, label: tab.label, leading: tab.leading, counter: tab.counter, etat: etatDeLOnglet(tab.value), disabled: tabs.length < 2, onHover: setHoverTab, onInteraction: handleOnInteraction }, tab.value))), ongletCourant?.renderAction && _jsx(Box, { ml: 'auto', children: ongletCourant.renderAction() })] }), _jsx(Box, { style: { flex: 1, minHeight: 0 }, children: tabs.map((tab, idx) => (_jsx(TamaguiTabs.Content, { style: styles.tabsContent, value: tab.value, ...focusRingProps(), children: _jsx(TabsContent, { content: ongletCourant?.content, scrollable: ongletCourant?.scrollable }) }, idx))) })] }) }));
|
|
31
31
|
};
|