@alveole/components 0.43.2 → 1.0.0
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/Alert/Alert.d.ts +11 -0
- package/dist/core/Alert/Alert.d.ts.map +1 -0
- package/dist/core/Alert/Alert.js +4 -0
- package/dist/core/Alert/Alert.web.d.ts +5 -0
- package/dist/core/Alert/Alert.web.d.ts.map +1 -0
- package/dist/core/Alert/Alert.web.js +7 -0
- package/dist/core/Alert/index.d.ts +2 -0
- package/dist/core/Alert/index.d.ts.map +1 -0
- package/dist/core/Alert/index.js +1 -0
- package/dist/core/Form/Form.d.ts +2 -5
- package/dist/core/Form/Form.d.ts.map +1 -1
- package/dist/core/Form/Form.js +3 -24
- package/dist/core/Form/Form.stories.d.ts +0 -7
- package/dist/core/Form/Form.stories.d.ts.map +1 -1
- package/dist/core/Form/Form.stories.js +2 -3
- package/dist/core/Form/Form.stories.sources.d.ts +0 -2
- package/dist/core/Form/Form.stories.sources.d.ts.map +1 -1
- package/dist/core/Form/Form.stories.sources.js +0 -2
- package/dist/core/Form/Form.styles.d.ts +0 -6
- package/dist/core/Form/Form.styles.d.ts.map +1 -1
- package/dist/core/Form/Form.styles.js +0 -6
- package/dist/core/Image/Image.d.ts.map +1 -1
- package/dist/core/Image/Image.js +1 -5
- package/dist/core/Map/Map.web.d.ts.map +1 -1
- package/dist/core/Map/Map.web.js +41 -41
- package/dist/core/Page/Page.d.ts +2 -0
- package/dist/core/Page/Page.d.ts.map +1 -1
- package/dist/core/Page/Page.stories.d.ts +5 -2
- package/dist/core/Page/Page.stories.d.ts.map +1 -1
- package/dist/core/Page/Page.stories.js +13 -14
- package/dist/core/Page/Page.stories.sources.d.ts +10 -4
- package/dist/core/Page/Page.stories.sources.d.ts.map +1 -1
- package/dist/core/Page/Page.stories.sources.js +10 -4
- package/dist/core/Page/PageContentScrollable.d.ts +1 -0
- package/dist/core/Page/PageContentScrollable.d.ts.map +1 -1
- package/dist/core/Page/PageContentScrollable.js +2 -2
- package/dist/core/Page/PageHead.web.d.ts.map +1 -1
- package/dist/core/Page/PageHead.web.js +5 -2
- package/dist/core/Page/PageMetaContext.d.ts +12 -0
- package/dist/core/Page/PageMetaContext.d.ts.map +1 -0
- package/dist/core/Page/PageMetaContext.js +5 -0
- package/dist/core/Page/index.d.ts +2 -0
- package/dist/core/Page/index.d.ts.map +1 -1
- package/dist/core/Page/index.js +2 -0
- package/dist/core/PdfViewer/PdfViewer.js +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/generated/version.d.ts +1 -1
- package/dist/generated/version.d.ts.map +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/globals.d.ts +2 -0
- package/dist/globals.d.ts.map +1 -0
- package/dist/globals.js +1 -0
- package/dist/pdfjs/pdf.min.mjs +8 -1
- package/dist/pdfjs/pdf.worker.min.mjs +8 -1
- package/dist/stories/index.d.ts +24 -0
- package/dist/stories/index.d.ts.map +1 -1
- package/dist/stories/index.js +24 -0
- package/dist/ui/Accordion/Accordion.d.ts +19 -0
- package/dist/ui/Accordion/Accordion.d.ts.map +1 -0
- package/dist/ui/Accordion/Accordion.js +10 -0
- package/dist/ui/Accordion/Accordion.stories.d.ts +103 -0
- package/dist/ui/Accordion/Accordion.stories.d.ts.map +1 -0
- package/dist/ui/Accordion/Accordion.stories.js +15 -0
- package/dist/ui/Accordion/Accordion.stories.sources.d.ts +6 -0
- package/dist/ui/Accordion/Accordion.stories.sources.d.ts.map +1 -0
- package/dist/ui/Accordion/Accordion.stories.sources.js +6 -0
- package/dist/ui/Accordion/Accordion.styles.d.ts +90 -0
- package/dist/ui/Accordion/Accordion.styles.d.ts.map +1 -0
- package/dist/ui/Accordion/Accordion.styles.js +86 -0
- package/dist/ui/Accordion/AccordionItem.d.ts +14 -0
- package/dist/ui/Accordion/AccordionItem.d.ts.map +1 -0
- package/dist/ui/Accordion/AccordionItem.js +19 -0
- package/dist/ui/Accordion/index.d.ts +4 -0
- package/dist/ui/Accordion/index.d.ts.map +1 -0
- package/dist/ui/Accordion/index.js +5 -0
- package/dist/ui/ActionMenu/ActionMenu.stories.js +1 -1
- package/dist/ui/ActionMenu/ActionMenu.stories.sources.d.ts.map +1 -1
- package/dist/ui/ActionMenu/ActionMenu.stories.sources.js +1 -1
- package/dist/ui/Autocomplete/Autocomplete.d.ts +41 -0
- package/dist/ui/Autocomplete/Autocomplete.d.ts.map +1 -0
- package/dist/ui/Autocomplete/Autocomplete.js +131 -0
- package/dist/ui/Autocomplete/Autocomplete.stories.d.ts +224 -0
- package/dist/ui/Autocomplete/Autocomplete.stories.d.ts.map +1 -0
- package/dist/ui/Autocomplete/Autocomplete.stories.js +56 -0
- package/dist/ui/Autocomplete/Autocomplete.stories.sources.d.ts +14 -0
- package/dist/ui/Autocomplete/Autocomplete.stories.sources.d.ts.map +1 -0
- package/dist/ui/Autocomplete/Autocomplete.stories.sources.js +14 -0
- package/dist/ui/Autocomplete/Autocomplete.styles.d.ts +208 -0
- package/dist/ui/Autocomplete/Autocomplete.styles.d.ts.map +1 -0
- package/dist/ui/Autocomplete/Autocomplete.styles.js +173 -0
- package/dist/ui/Autocomplete/Autocomplete.web.d.ts +28 -0
- package/dist/ui/Autocomplete/Autocomplete.web.d.ts.map +1 -0
- package/dist/ui/Autocomplete/Autocomplete.web.js +112 -0
- package/dist/ui/Autocomplete/AutocompleteChip.d.ts +8 -0
- package/dist/ui/Autocomplete/AutocompleteChip.d.ts.map +1 -0
- package/dist/ui/Autocomplete/AutocompleteChip.js +12 -0
- package/dist/ui/Autocomplete/index.d.ts +3 -0
- package/dist/ui/Autocomplete/index.d.ts.map +1 -0
- package/dist/ui/Autocomplete/index.js +2 -0
- package/dist/ui/AutocompleteAddress/AutocompleteAddress.d.ts +28 -0
- package/dist/ui/AutocompleteAddress/AutocompleteAddress.d.ts.map +1 -0
- package/dist/ui/AutocompleteAddress/AutocompleteAddress.js +20 -0
- package/dist/ui/AutocompleteAddress/AutocompleteAddress.stories.d.ts +13 -0
- package/dist/ui/AutocompleteAddress/AutocompleteAddress.stories.d.ts.map +1 -0
- package/dist/ui/AutocompleteAddress/AutocompleteAddress.stories.js +30 -0
- package/dist/ui/AutocompleteAddress/AutocompleteAddress.stories.sources.d.ts +6 -0
- package/dist/ui/AutocompleteAddress/AutocompleteAddress.stories.sources.d.ts.map +1 -0
- package/dist/ui/AutocompleteAddress/AutocompleteAddress.stories.sources.js +6 -0
- package/dist/ui/AutocompleteAddress/index.d.ts +2 -0
- package/dist/ui/AutocompleteAddress/index.d.ts.map +1 -0
- package/dist/ui/AutocompleteAddress/index.js +1 -0
- 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.js +1 -1
- package/dist/ui/Badge/Badge.stories.d.ts +14 -12
- package/dist/ui/Badge/Badge.stories.d.ts.map +1 -1
- package/dist/ui/Badge/Badge.styles.d.ts +14 -12
- package/dist/ui/Badge/Badge.styles.d.ts.map +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -3
- package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts +3 -3
- package/dist/ui/Button/Button.stories.d.ts +56 -57
- package/dist/ui/Button/Button.stories.d.ts.map +1 -1
- package/dist/ui/Button/Button.styles.d.ts +56 -57
- package/dist/ui/Button/Button.styles.d.ts.map +1 -1
- package/dist/ui/Button/Button.styles.js +0 -1
- package/dist/ui/Button/ButtonIcon.d.ts.map +1 -1
- package/dist/ui/Button/ButtonIcon.js +2 -5
- package/dist/ui/Card/Card.stories.d.ts +3 -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 +19 -0
- package/dist/ui/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/ui/Checkbox/Checkbox.js +17 -0
- package/dist/ui/Checkbox/Checkbox.stories.d.ts +93 -0
- package/dist/ui/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/dist/ui/Checkbox/Checkbox.stories.js +15 -0
- package/dist/ui/Checkbox/Checkbox.stories.sources.d.ts +8 -0
- package/dist/ui/Checkbox/Checkbox.stories.sources.d.ts.map +1 -0
- package/dist/ui/Checkbox/Checkbox.stories.sources.js +8 -0
- package/dist/ui/Checkbox/Checkbox.styles.d.ts +70 -0
- package/dist/ui/Checkbox/Checkbox.styles.d.ts.map +1 -0
- package/dist/ui/Checkbox/Checkbox.styles.js +62 -0
- package/dist/ui/Checkbox/CheckboxContainer.d.ts +22 -0
- package/dist/ui/Checkbox/CheckboxContainer.d.ts.map +1 -0
- package/dist/ui/Checkbox/CheckboxContainer.js +21 -0
- package/dist/ui/Checkbox/CheckboxIndicator.d.ts +7 -0
- package/dist/ui/Checkbox/CheckboxIndicator.d.ts.map +1 -0
- package/dist/ui/Checkbox/CheckboxIndicator.js +15 -0
- package/dist/ui/Checkbox/CheckboxLabel.d.ts +9 -0
- package/dist/ui/Checkbox/CheckboxLabel.d.ts.map +1 -0
- package/dist/ui/Checkbox/CheckboxLabel.js +15 -0
- package/dist/ui/Checkbox/index.d.ts +5 -0
- package/dist/ui/Checkbox/index.d.ts.map +1 -0
- package/dist/ui/Checkbox/index.js +4 -0
- package/dist/ui/Counter/Counter.d.ts +6 -0
- package/dist/ui/Counter/Counter.d.ts.map +1 -0
- package/dist/ui/Counter/Counter.js +11 -0
- package/dist/ui/Counter/Counter.stories.d.ts +29 -0
- package/dist/ui/Counter/Counter.stories.d.ts.map +1 -0
- package/dist/ui/Counter/Counter.stories.js +15 -0
- package/dist/ui/Counter/Counter.stories.sources.d.ts +6 -0
- package/dist/ui/Counter/Counter.stories.sources.d.ts.map +1 -0
- package/dist/ui/Counter/Counter.stories.sources.js +6 -0
- package/dist/ui/Counter/Counter.styles.d.ts +18 -0
- package/dist/ui/Counter/Counter.styles.d.ts.map +1 -0
- package/dist/ui/Counter/Counter.styles.js +14 -0
- package/dist/ui/Counter/index.d.ts +2 -0
- package/dist/ui/Counter/index.d.ts.map +1 -0
- package/dist/ui/Counter/index.js +1 -0
- package/dist/ui/Divider/Divider.stories.d.ts +1 -1
- package/dist/ui/Divider/Divider.styles.d.ts +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.js +1 -3
- package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +10 -10
- package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts +10 -10
- package/dist/ui/DocumentViewer/DocumentViewerPDF.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerPDF.js +4 -7
- package/dist/ui/DragAndDropFile/DragAndDropFile.d.ts +9 -0
- package/dist/ui/DragAndDropFile/DragAndDropFile.d.ts.map +1 -0
- package/dist/ui/DragAndDropFile/DragAndDropFile.js +50 -0
- package/dist/ui/DragAndDropFile/DragAndDropFile.stories.d.ts +102 -0
- package/dist/ui/DragAndDropFile/DragAndDropFile.stories.d.ts.map +1 -0
- package/dist/ui/DragAndDropFile/DragAndDropFile.stories.js +17 -0
- package/dist/ui/DragAndDropFile/DragAndDropFile.stories.sources.d.ts +10 -0
- package/dist/ui/DragAndDropFile/DragAndDropFile.stories.sources.d.ts.map +1 -0
- package/dist/ui/DragAndDropFile/DragAndDropFile.stories.sources.js +10 -0
- package/dist/ui/DragAndDropFile/DragAndDropFile.styles.d.ts +89 -0
- package/dist/ui/DragAndDropFile/DragAndDropFile.styles.d.ts.map +1 -0
- package/dist/ui/DragAndDropFile/DragAndDropFile.styles.js +89 -0
- package/dist/ui/DragAndDropFile/DragAndDropFile.web.d.ts +4 -0
- package/dist/ui/DragAndDropFile/DragAndDropFile.web.d.ts.map +1 -0
- package/dist/ui/DragAndDropFile/DragAndDropFile.web.js +175 -0
- package/dist/ui/DragAndDropFile/index.d.ts +2 -0
- package/dist/ui/DragAndDropFile/index.d.ts.map +1 -0
- package/dist/ui/DragAndDropFile/index.js +1 -0
- package/dist/ui/EmailField/EmailField.d.ts +20 -0
- package/dist/ui/EmailField/EmailField.d.ts.map +1 -0
- package/dist/ui/EmailField/EmailField.js +8 -0
- package/dist/ui/EmailField/EmailField.stories.d.ts +25 -0
- package/dist/ui/EmailField/EmailField.stories.d.ts.map +1 -0
- package/dist/ui/EmailField/EmailField.stories.js +13 -0
- package/dist/ui/EmailField/EmailField.stories.sources.d.ts +6 -0
- package/dist/ui/EmailField/EmailField.stories.sources.d.ts.map +1 -0
- package/dist/ui/EmailField/EmailField.stories.sources.js +6 -0
- package/dist/ui/EmailField/index.d.ts +2 -0
- package/dist/ui/EmailField/index.d.ts.map +1 -0
- package/dist/ui/EmailField/index.js +1 -0
- package/dist/ui/EmailInput/EmailInput.d.ts +16 -0
- package/dist/ui/EmailInput/EmailInput.d.ts.map +1 -0
- package/dist/ui/EmailInput/EmailInput.js +10 -0
- package/dist/ui/EmailInput/EmailInput.stories.d.ts +21 -0
- package/dist/ui/EmailInput/EmailInput.stories.d.ts.map +1 -0
- package/dist/ui/EmailInput/EmailInput.stories.js +13 -0
- package/dist/ui/EmailInput/EmailInput.stories.sources.d.ts +6 -0
- package/dist/ui/EmailInput/EmailInput.stories.sources.d.ts.map +1 -0
- package/dist/ui/EmailInput/EmailInput.stories.sources.js +6 -0
- package/dist/ui/EmailInput/index.d.ts +2 -0
- package/dist/ui/EmailInput/index.d.ts.map +1 -0
- package/dist/ui/EmailInput/index.js +1 -0
- package/dist/ui/EmptyState/EmptyState.stories.d.ts +4 -4
- package/dist/ui/EmptyState/EmptyState.styles.d.ts +4 -4
- package/dist/ui/FileField/FileField.d.ts +5 -0
- package/dist/ui/FileField/FileField.d.ts.map +1 -0
- package/dist/ui/FileField/FileField.js +27 -0
- package/dist/ui/FileField/FileField.stories.d.ts +15 -0
- package/dist/ui/FileField/FileField.stories.d.ts.map +1 -0
- package/dist/ui/FileField/FileField.stories.js +15 -0
- package/dist/ui/FileField/FileField.stories.sources.d.ts +8 -0
- package/dist/ui/FileField/FileField.stories.sources.d.ts.map +1 -0
- package/dist/ui/FileField/FileField.stories.sources.js +8 -0
- package/dist/ui/FileField/FileField.styles.d.ts +4 -0
- package/dist/ui/FileField/FileField.styles.d.ts.map +1 -0
- package/dist/ui/FileField/FileField.styles.js +4 -0
- package/dist/ui/FileField/index.d.ts +2 -0
- package/dist/ui/FileField/index.d.ts.map +1 -0
- package/dist/ui/FileField/index.js +1 -0
- package/dist/ui/FormControl/FormControl.stories.d.ts +17 -17
- package/dist/ui/FormControl/FormControl.stories.js +3 -3
- package/dist/ui/FormControl/FormControl.stories.sources.d.ts.map +1 -1
- package/dist/ui/FormControl/FormControl.stories.sources.js +3 -3
- package/dist/ui/FormControl/FormControl.styles.d.ts +17 -17
- package/dist/ui/FormControl/FormControlFileInput.d.ts.map +1 -1
- package/dist/ui/FormControl/FormControlFileInput.styles.d.ts +6 -6
- package/dist/ui/FormControl/TextInput.d.ts.map +1 -1
- package/dist/ui/Header/Header.stories.d.ts +10 -6
- package/dist/ui/Header/Header.stories.d.ts.map +1 -1
- package/dist/ui/Header/Header.styles.d.ts +10 -6
- package/dist/ui/Header/Header.styles.d.ts.map +1 -1
- package/dist/ui/Header/Header.styles.js +1 -0
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.d.ts +9 -0
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.d.ts.map +1 -0
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.js +13 -0
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.d.ts +23 -0
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.d.ts.map +1 -0
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.js +16 -0
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.d.ts +8 -0
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.d.ts.map +1 -0
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.js +8 -0
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.styles.d.ts +12 -0
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.styles.d.ts.map +1 -0
- package/dist/ui/InputButtonAdornment/InputButtonAdornment.styles.js +12 -0
- package/dist/ui/InputButtonAdornment/index.d.ts +2 -0
- package/dist/ui/InputButtonAdornment/index.d.ts.map +1 -0
- package/dist/ui/InputButtonAdornment/index.js +1 -0
- package/dist/ui/ListItem/ListItem.stories.d.ts +7 -7
- package/dist/ui/ListItem/ListItem.styles.d.ts +7 -7
- package/dist/ui/LucideIcon/LucideIcon.d.ts +3 -1
- package/dist/ui/LucideIcon/LucideIcon.d.ts.map +1 -1
- package/dist/ui/LucideIcon/LucideIcon.js +24 -4
- package/dist/ui/LucideIcon/LucideIcon.props.d.ts +8560 -9
- package/dist/ui/LucideIcon/LucideIcon.props.d.ts.map +1 -1
- package/dist/ui/LucideIcon/LucideIcon.props.js +1 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.d.ts +4280 -4
- package/dist/ui/LucideIcon/LucideIcon.stories.d.ts.map +1 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.js +2 -0
- package/dist/ui/LucideIcon/LucideIcon.stories.sources.d.ts +2 -0
- package/dist/ui/LucideIcon/LucideIcon.stories.sources.d.ts.map +1 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.sources.js +2 -0
- package/dist/ui/NumberField/NumberField.d.ts +14 -0
- package/dist/ui/NumberField/NumberField.d.ts.map +1 -0
- package/dist/ui/NumberField/NumberField.js +13 -0
- package/dist/ui/NumberField/NumberField.stories.d.ts +14 -0
- package/dist/ui/NumberField/NumberField.stories.d.ts.map +1 -0
- package/dist/ui/NumberField/NumberField.stories.js +18 -0
- package/dist/ui/NumberField/NumberField.stories.sources.d.ts +6 -0
- package/dist/ui/NumberField/NumberField.stories.sources.d.ts.map +1 -0
- package/dist/ui/NumberField/NumberField.stories.sources.js +6 -0
- package/dist/ui/NumberField/NumberField.styles.d.ts +4 -0
- package/dist/ui/NumberField/NumberField.styles.d.ts.map +1 -0
- package/dist/ui/NumberField/NumberField.styles.js +4 -0
- package/dist/ui/NumberField/NumberField.web.d.ts +4 -0
- package/dist/ui/NumberField/NumberField.web.d.ts.map +1 -0
- package/dist/ui/NumberField/NumberField.web.js +10 -0
- package/dist/ui/NumberField/NumberFieldControlButton.d.ts +8 -0
- package/dist/ui/NumberField/NumberFieldControlButton.d.ts.map +1 -0
- package/dist/ui/NumberField/NumberFieldControlButton.js +6 -0
- package/dist/ui/NumberField/index.d.ts +2 -0
- package/dist/ui/NumberField/index.d.ts.map +1 -0
- package/dist/ui/NumberField/index.js +1 -0
- package/dist/ui/OtpField/OtpField.d.ts +15 -0
- package/dist/ui/OtpField/OtpField.d.ts.map +1 -0
- package/dist/ui/OtpField/OtpField.js +18 -0
- package/dist/ui/OtpField/OtpField.stories.d.ts +57 -0
- package/dist/ui/OtpField/OtpField.stories.d.ts.map +1 -0
- package/dist/ui/OtpField/OtpField.stories.js +14 -0
- package/dist/ui/OtpField/OtpField.stories.sources.d.ts +6 -0
- package/dist/ui/OtpField/OtpField.stories.sources.d.ts.map +1 -0
- package/dist/ui/OtpField/OtpField.stories.sources.js +6 -0
- package/dist/ui/OtpField/OtpField.styles.d.ts +39 -0
- package/dist/ui/OtpField/OtpField.styles.d.ts.map +1 -0
- package/dist/ui/OtpField/OtpField.styles.js +35 -0
- package/dist/ui/OtpField/index.d.ts +2 -0
- package/dist/ui/OtpField/index.d.ts.map +1 -0
- package/dist/ui/OtpField/index.js +1 -0
- package/dist/ui/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/ui/PageHeader/PageHeader.js +1 -1
- package/dist/ui/PageHeader/PageHeader.stories.d.ts +1 -1
- package/dist/ui/PageHeader/PageHeader.stories.js +1 -1
- package/dist/ui/PageHeader/PageHeader.styles.d.ts +1 -1
- package/dist/ui/PasswordField/PasswordField.d.ts +20 -0
- package/dist/ui/PasswordField/PasswordField.d.ts.map +1 -0
- package/dist/ui/PasswordField/PasswordField.js +10 -0
- package/dist/ui/PasswordField/PasswordField.stories.d.ts +33 -0
- package/dist/ui/PasswordField/PasswordField.stories.d.ts.map +1 -0
- package/dist/ui/PasswordField/PasswordField.stories.js +14 -0
- package/dist/ui/PasswordField/PasswordField.stories.sources.d.ts +6 -0
- package/dist/ui/PasswordField/PasswordField.stories.sources.d.ts.map +1 -0
- package/dist/ui/PasswordField/PasswordField.stories.sources.js +6 -0
- package/dist/ui/PasswordField/PasswordField.styles.d.ts +10 -0
- package/dist/ui/PasswordField/PasswordField.styles.d.ts.map +1 -0
- package/dist/ui/PasswordField/PasswordField.styles.js +10 -0
- package/dist/ui/PasswordField/index.d.ts +2 -0
- package/dist/ui/PasswordField/index.d.ts.map +1 -0
- package/dist/ui/PasswordField/index.js +1 -0
- package/dist/ui/PhoneField/PhoneField.d.ts +20 -0
- package/dist/ui/PhoneField/PhoneField.d.ts.map +1 -0
- package/dist/ui/PhoneField/PhoneField.js +8 -0
- package/dist/ui/PhoneField/PhoneField.stories.d.ts +25 -0
- package/dist/ui/PhoneField/PhoneField.stories.d.ts.map +1 -0
- package/dist/ui/PhoneField/PhoneField.stories.js +13 -0
- package/dist/ui/PhoneField/PhoneField.stories.sources.d.ts +6 -0
- package/dist/ui/PhoneField/PhoneField.stories.sources.d.ts.map +1 -0
- package/dist/ui/PhoneField/PhoneField.stories.sources.js +6 -0
- package/dist/ui/PhoneField/index.d.ts +2 -0
- package/dist/ui/PhoneField/index.d.ts.map +1 -0
- package/dist/ui/PhoneField/index.js +1 -0
- package/dist/ui/PhoneInput/PhoneInput.d.ts +16 -0
- package/dist/ui/PhoneInput/PhoneInput.d.ts.map +1 -0
- package/dist/ui/PhoneInput/PhoneInput.js +7 -0
- package/dist/ui/PhoneInput/PhoneInput.stories.d.ts +21 -0
- package/dist/ui/PhoneInput/PhoneInput.stories.d.ts.map +1 -0
- package/dist/ui/PhoneInput/PhoneInput.stories.js +13 -0
- package/dist/ui/PhoneInput/PhoneInput.stories.sources.d.ts +6 -0
- package/dist/ui/PhoneInput/PhoneInput.stories.sources.d.ts.map +1 -0
- package/dist/ui/PhoneInput/PhoneInput.stories.sources.js +6 -0
- package/dist/ui/PhoneInput/index.d.ts +2 -0
- package/dist/ui/PhoneInput/index.d.ts.map +1 -0
- package/dist/ui/PhoneInput/index.js +1 -0
- 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.css +9 -0
- package/dist/ui/PriceInput/PriceInput.d.ts +14 -0
- package/dist/ui/PriceInput/PriceInput.d.ts.map +1 -0
- package/dist/ui/PriceInput/PriceInput.js +16 -0
- package/dist/ui/PriceInput/PriceInput.stories.d.ts +51 -0
- package/dist/ui/PriceInput/PriceInput.stories.d.ts.map +1 -0
- package/dist/ui/PriceInput/PriceInput.stories.js +19 -0
- package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts +6 -0
- package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts.map +1 -0
- package/dist/ui/PriceInput/PriceInput.stories.sources.js +6 -0
- package/dist/ui/PriceInput/PriceInput.styles.d.ts +36 -0
- package/dist/ui/PriceInput/PriceInput.styles.d.ts.map +1 -0
- package/dist/ui/PriceInput/PriceInput.styles.js +32 -0
- package/dist/ui/PriceInput/PriceInput.web.d.ts +8 -0
- package/dist/ui/PriceInput/PriceInput.web.d.ts.map +1 -0
- package/dist/ui/PriceInput/PriceInput.web.js +21 -0
- package/dist/ui/PriceInput/index.d.ts +2 -0
- package/dist/ui/PriceInput/index.d.ts.map +1 -0
- package/dist/ui/PriceInput/index.js +1 -0
- package/dist/ui/ProgressBar/ProgressBar.stories.d.ts +7 -7
- package/dist/ui/ProgressBar/ProgressBar.styles.d.ts +7 -7
- package/dist/ui/ProgressBar/ProgressBarDeterminate.js +1 -1
- package/dist/ui/ProgressBar/ProgressBarIndeterminate.js +1 -1
- package/dist/ui/ProgressBar/ProgressBarLoop.js +1 -1
- package/dist/ui/RadioGroup/RadioGroup.d.ts +21 -0
- package/dist/ui/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/dist/ui/RadioGroup/RadioGroup.js +11 -0
- package/dist/ui/RadioGroup/RadioGroup.stories.d.ts +164 -0
- package/dist/ui/RadioGroup/RadioGroup.stories.d.ts.map +1 -0
- package/dist/ui/RadioGroup/RadioGroup.stories.js +23 -0
- package/dist/ui/RadioGroup/RadioGroup.stories.sources.d.ts +10 -0
- package/dist/ui/RadioGroup/RadioGroup.stories.sources.d.ts.map +1 -0
- package/dist/ui/RadioGroup/RadioGroup.stories.sources.js +10 -0
- package/dist/ui/RadioGroup/RadioGroup.styles.d.ts +140 -0
- package/dist/ui/RadioGroup/RadioGroup.styles.d.ts.map +1 -0
- package/dist/ui/RadioGroup/RadioGroup.styles.js +129 -0
- package/dist/ui/RadioGroup/RadioGroupCard.d.ts +12 -0
- package/dist/ui/RadioGroup/RadioGroupCard.d.ts.map +1 -0
- package/dist/ui/RadioGroup/RadioGroupCard.js +15 -0
- package/dist/ui/RadioGroup/RadioGroupContext.d.ts +8 -0
- package/dist/ui/RadioGroup/RadioGroupContext.d.ts.map +1 -0
- package/dist/ui/RadioGroup/RadioGroupContext.js +3 -0
- package/dist/ui/RadioGroup/RadioGroupItem.d.ts +8 -0
- package/dist/ui/RadioGroup/RadioGroupItem.d.ts.map +1 -0
- package/dist/ui/RadioGroup/RadioGroupItem.js +13 -0
- package/dist/ui/RadioGroup/RadioGroupItem.styles.d.ts +24 -0
- package/dist/ui/RadioGroup/RadioGroupItem.styles.d.ts.map +1 -0
- package/dist/ui/RadioGroup/RadioGroupItem.styles.js +20 -0
- package/dist/ui/RadioGroup/RadioInput.d.ts +7 -0
- package/dist/ui/RadioGroup/RadioInput.d.ts.map +1 -0
- package/dist/ui/RadioGroup/RadioInput.js +13 -0
- package/dist/ui/RadioGroup/index.d.ts +18 -0
- package/dist/ui/RadioGroup/index.d.ts.map +1 -0
- package/dist/ui/RadioGroup/index.js +7 -0
- package/dist/ui/ResourceList/ResourceList.stories.d.ts +2 -2
- package/dist/ui/ResourceList/ResourceList.styles.d.ts +2 -2
- package/dist/ui/Select/NativePicker.d.ts +16 -0
- package/dist/ui/Select/NativePicker.d.ts.map +1 -0
- package/dist/ui/Select/NativePicker.js +20 -0
- package/dist/ui/Select/Select.d.ts +24 -0
- package/dist/ui/Select/Select.d.ts.map +1 -0
- package/dist/ui/Select/Select.js +28 -0
- package/dist/ui/Select/Select.stories.d.ts +80 -0
- package/dist/ui/Select/Select.stories.d.ts.map +1 -0
- package/dist/ui/Select/Select.stories.js +24 -0
- package/dist/ui/Select/Select.stories.sources.d.ts +8 -0
- package/dist/ui/Select/Select.stories.sources.d.ts.map +1 -0
- package/dist/ui/Select/Select.stories.sources.js +8 -0
- package/dist/ui/Select/Select.styles.d.ts +60 -0
- package/dist/ui/Select/Select.styles.d.ts.map +1 -0
- package/dist/ui/Select/Select.styles.js +57 -0
- package/dist/ui/Select/SelectInput.d.ts +11 -0
- package/dist/ui/Select/SelectInput.d.ts.map +1 -0
- package/dist/ui/Select/SelectInput.ios.d.ts +9 -0
- package/dist/ui/Select/SelectInput.ios.d.ts.map +1 -0
- package/dist/ui/Select/SelectInput.ios.js +28 -0
- package/dist/ui/Select/SelectInput.js +6 -0
- package/dist/ui/Select/index.d.ts +7 -0
- package/dist/ui/Select/index.d.ts.map +1 -0
- package/dist/ui/Select/index.js +3 -0
- package/dist/ui/SelectMultiple/SelectMultiple.d.ts +14 -0
- package/dist/ui/SelectMultiple/SelectMultiple.d.ts.map +1 -0
- package/dist/ui/SelectMultiple/SelectMultiple.js +6 -0
- package/dist/ui/SelectMultiple/SelectMultiple.stories.d.ts +77 -0
- package/dist/ui/SelectMultiple/SelectMultiple.stories.d.ts.map +1 -0
- package/dist/ui/SelectMultiple/SelectMultiple.stories.js +25 -0
- package/dist/ui/SelectMultiple/SelectMultiple.stories.sources.d.ts +8 -0
- package/dist/ui/SelectMultiple/SelectMultiple.stories.sources.d.ts.map +1 -0
- package/dist/ui/SelectMultiple/SelectMultiple.stories.sources.js +8 -0
- package/dist/ui/SelectMultiple/SelectMultiple.styles.d.ts +66 -0
- package/dist/ui/SelectMultiple/SelectMultiple.styles.d.ts.map +1 -0
- package/dist/ui/SelectMultiple/SelectMultiple.styles.js +66 -0
- package/dist/ui/SelectMultiple/SelectMultiple.web.d.ts +14 -0
- package/dist/ui/SelectMultiple/SelectMultiple.web.d.ts.map +1 -0
- package/dist/ui/SelectMultiple/SelectMultiple.web.js +49 -0
- package/dist/ui/SelectMultiple/index.d.ts +3 -0
- package/dist/ui/SelectMultiple/index.d.ts.map +1 -0
- package/dist/ui/SelectMultiple/index.js +1 -0
- package/dist/ui/Sidebar/Sidebar.stories.d.ts +19 -19
- package/dist/ui/Sidebar/Sidebar.styles.d.ts +19 -19
- package/dist/ui/Signature/Signature.stories.d.ts +2 -2
- package/dist/ui/Signature/Signature.styles.d.ts +2 -2
- package/dist/ui/Signature/Signature.web.d.ts.map +1 -1
- package/dist/ui/Signature/Signature.web.js +5 -2
- package/dist/ui/Switch/Switch.d.ts +20 -0
- package/dist/ui/Switch/Switch.d.ts.map +1 -0
- package/dist/ui/Switch/Switch.js +42 -0
- package/dist/ui/Switch/Switch.stories.d.ts +73 -0
- package/dist/ui/Switch/Switch.stories.d.ts.map +1 -0
- package/dist/ui/Switch/Switch.stories.js +19 -0
- package/dist/ui/Switch/Switch.stories.sources.d.ts +8 -0
- package/dist/ui/Switch/Switch.stories.sources.d.ts.map +1 -0
- package/dist/ui/Switch/Switch.stories.sources.js +8 -0
- package/dist/ui/Switch/Switch.styles.d.ts +55 -0
- package/dist/ui/Switch/Switch.styles.d.ts.map +1 -0
- package/dist/ui/Switch/Switch.styles.js +51 -0
- package/dist/ui/Switch/index.d.ts +2 -0
- package/dist/ui/Switch/index.d.ts.map +1 -0
- package/dist/ui/Switch/index.js +1 -0
- package/dist/ui/Tabs/Tabs.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.js +2 -2
- package/dist/ui/Tabs/Tabs.stories.d.ts +5 -17
- package/dist/ui/Tabs/Tabs.stories.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.styles.d.ts +5 -17
- package/dist/ui/Tabs/Tabs.styles.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.styles.js +0 -8
- package/dist/ui/Tag/Tag.stories.d.ts +4 -4
- package/dist/ui/Tag/Tag.styles.d.ts +4 -4
- package/dist/ui/TextField/TextField.d.ts +22 -0
- package/dist/ui/TextField/TextField.d.ts.map +1 -0
- package/dist/ui/TextField/TextField.js +14 -0
- package/dist/ui/TextField/TextField.stories.d.ts +29 -0
- package/dist/ui/TextField/TextField.stories.d.ts.map +1 -0
- package/dist/ui/TextField/TextField.stories.js +15 -0
- package/dist/ui/TextField/TextField.stories.sources.d.ts +8 -0
- package/dist/ui/TextField/TextField.stories.sources.d.ts.map +1 -0
- package/dist/ui/TextField/TextField.stories.sources.js +8 -0
- package/dist/ui/TextField/TextField.styles.d.ts +4 -0
- package/dist/ui/TextField/TextField.styles.d.ts.map +1 -0
- package/dist/ui/TextField/TextField.styles.js +4 -0
- package/dist/ui/TextField/index.d.ts +2 -0
- package/dist/ui/TextField/index.d.ts.map +1 -0
- package/dist/ui/TextField/index.js +1 -0
- package/dist/ui/TextInputArray/TextInputArray.d.ts +21 -0
- package/dist/ui/TextInputArray/TextInputArray.d.ts.map +1 -0
- package/dist/ui/TextInputArray/TextInputArray.js +53 -0
- package/dist/ui/TextInputArray/TextInputArray.stories.d.ts +13 -0
- package/dist/ui/TextInputArray/TextInputArray.stories.d.ts.map +1 -0
- package/dist/ui/TextInputArray/TextInputArray.stories.js +24 -0
- package/dist/ui/TextInputArray/TextInputArray.stories.sources.d.ts +8 -0
- package/dist/ui/TextInputArray/TextInputArray.stories.sources.d.ts.map +1 -0
- package/dist/ui/TextInputArray/TextInputArray.stories.sources.js +8 -0
- package/dist/ui/TextInputArray/index.d.ts +2 -0
- package/dist/ui/TextInputArray/index.d.ts.map +1 -0
- package/dist/ui/TextInputArray/index.js +1 -0
- package/dist/ui/TextareaField/TextareaField.d.ts +22 -0
- package/dist/ui/TextareaField/TextareaField.d.ts.map +1 -0
- package/dist/ui/TextareaField/TextareaField.js +8 -0
- package/dist/ui/TextareaField/TextareaField.stories.d.ts +26 -0
- package/dist/ui/TextareaField/TextareaField.stories.d.ts.map +1 -0
- package/dist/ui/TextareaField/TextareaField.stories.js +13 -0
- package/dist/ui/TextareaField/TextareaField.stories.sources.d.ts +6 -0
- package/dist/ui/TextareaField/TextareaField.stories.sources.d.ts.map +1 -0
- package/dist/ui/TextareaField/TextareaField.stories.sources.js +6 -0
- package/dist/ui/TextareaField/index.d.ts +2 -0
- package/dist/ui/TextareaField/index.d.ts.map +1 -0
- package/dist/ui/TextareaField/index.js +1 -0
- package/dist/ui/TextareaInput/TextareaInput.d.ts +25 -0
- package/dist/ui/TextareaInput/TextareaInput.d.ts.map +1 -0
- package/dist/ui/TextareaInput/TextareaInput.js +7 -0
- package/dist/ui/TextareaInput/TextareaInput.stories.d.ts +29 -0
- package/dist/ui/TextareaInput/TextareaInput.stories.d.ts.map +1 -0
- package/dist/ui/TextareaInput/TextareaInput.stories.js +13 -0
- package/dist/ui/TextareaInput/TextareaInput.stories.sources.d.ts +6 -0
- package/dist/ui/TextareaInput/TextareaInput.stories.sources.d.ts.map +1 -0
- package/dist/ui/TextareaInput/TextareaInput.stories.sources.js +6 -0
- package/dist/ui/TextareaInput/index.d.ts +2 -0
- package/dist/ui/TextareaInput/index.d.ts.map +1 -0
- package/dist/ui/TextareaInput/index.js +1 -0
- package/dist/ui/Toast/Toast.d.ts +13 -2
- package/dist/ui/Toast/Toast.d.ts.map +1 -1
- package/dist/ui/Toast/Toast.js +6 -35
- package/dist/ui/Toast/Toast.stories.d.ts +39 -21
- package/dist/ui/Toast/Toast.stories.d.ts.map +1 -1
- package/dist/ui/Toast/Toast.stories.js +12 -3
- package/dist/ui/Toast/Toast.stories.sources.d.ts +16 -0
- package/dist/ui/Toast/Toast.stories.sources.d.ts.map +1 -1
- package/dist/ui/Toast/Toast.stories.sources.js +17 -1
- package/dist/ui/Toast/Toast.styles.d.ts +31 -21
- package/dist/ui/Toast/Toast.styles.d.ts.map +1 -1
- package/dist/ui/Toast/Toast.styles.js +29 -19
- package/dist/ui/Toast/ToastContext.d.ts +1 -1
- package/dist/ui/Toast/ToastContext.d.ts.map +1 -1
- package/dist/ui/Toast/ToastType.d.ts +11 -0
- package/dist/ui/Toast/ToastType.d.ts.map +1 -0
- package/dist/ui/Toast/ToastType.js +46 -0
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts +4 -4
- 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/index.d.ts +24 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +24 -0
- package/package.json +37 -26
|
@@ -8,14 +8,14 @@ declare const _default: {
|
|
|
8
8
|
component: typeof Toast;
|
|
9
9
|
styleFn: () => {
|
|
10
10
|
container: {
|
|
11
|
-
backgroundColor:
|
|
11
|
+
backgroundColor: string;
|
|
12
12
|
width: number;
|
|
13
|
-
padding: import("@alveole/theme").Spacing;
|
|
14
13
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
15
14
|
display: "flex";
|
|
16
15
|
flexDirection: "row";
|
|
17
16
|
gap: import("@alveole/theme").Spacing;
|
|
18
|
-
|
|
17
|
+
overflow: "hidden";
|
|
18
|
+
padding: number;
|
|
19
19
|
} | {
|
|
20
20
|
shadowColor: import("@alveole/theme").Color;
|
|
21
21
|
shadowOffset: {
|
|
@@ -25,63 +25,73 @@ declare const _default: {
|
|
|
25
25
|
shadowOpacity: number;
|
|
26
26
|
shadowRadius: number;
|
|
27
27
|
elevation: number;
|
|
28
|
-
backgroundColor:
|
|
28
|
+
backgroundColor: string;
|
|
29
29
|
width: number;
|
|
30
|
-
padding: import("@alveole/theme").Spacing;
|
|
31
30
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
32
31
|
display: "flex";
|
|
33
32
|
flexDirection: "row";
|
|
34
33
|
gap: import("@alveole/theme").Spacing;
|
|
35
|
-
|
|
34
|
+
overflow: "hidden";
|
|
35
|
+
padding: number;
|
|
36
36
|
} | {
|
|
37
37
|
boxShadow: string;
|
|
38
|
-
backgroundColor:
|
|
38
|
+
backgroundColor: string;
|
|
39
39
|
width: number;
|
|
40
|
-
padding: import("@alveole/theme").Spacing;
|
|
41
40
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
42
41
|
display: "flex";
|
|
43
42
|
flexDirection: "row";
|
|
44
43
|
gap: import("@alveole/theme").Spacing;
|
|
45
|
-
|
|
44
|
+
overflow: "hidden";
|
|
45
|
+
padding: number;
|
|
46
46
|
};
|
|
47
47
|
contenu: {
|
|
48
48
|
display: "flex";
|
|
49
49
|
flex: number;
|
|
50
50
|
flexDirection: "column";
|
|
51
51
|
gap: import("@alveole/theme").Spacing;
|
|
52
|
+
padding: import("@alveole/theme").Spacing;
|
|
52
53
|
};
|
|
53
54
|
titleContainer: {
|
|
54
55
|
display: "flex";
|
|
55
56
|
flexDirection: "row";
|
|
56
57
|
alignItems: "center";
|
|
57
58
|
justifyContent: "space-between";
|
|
58
|
-
minHeight: import("@alveole/theme").Spacing;
|
|
59
59
|
};
|
|
60
60
|
title: {
|
|
61
|
-
color:
|
|
61
|
+
color: string;
|
|
62
62
|
fontSize: 14;
|
|
63
63
|
lineHeight: 20;
|
|
64
64
|
letterSpacing: 0;
|
|
65
65
|
fontFamily: string;
|
|
66
66
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
iconBlock: {
|
|
69
|
+
display: "flex";
|
|
70
|
+
alignSelf: "stretch";
|
|
71
|
+
justifyContent: "flex-start";
|
|
72
|
+
alignItems: "center";
|
|
73
|
+
paddingLeft: import("@alveole/theme").Spacing;
|
|
74
|
+
paddingRight: import("@alveole/theme").Spacing;
|
|
69
75
|
paddingTop: import("@alveole/theme").Spacing;
|
|
76
|
+
paddingBottom: import("@alveole/theme").Spacing;
|
|
77
|
+
};
|
|
78
|
+
iconBlockDefault: {
|
|
79
|
+
backgroundColor: string;
|
|
70
80
|
};
|
|
71
|
-
|
|
72
|
-
|
|
81
|
+
iconBlockInfo: {
|
|
82
|
+
backgroundColor: string;
|
|
73
83
|
};
|
|
74
|
-
|
|
75
|
-
|
|
84
|
+
iconBlockSuccess: {
|
|
85
|
+
backgroundColor: string;
|
|
76
86
|
};
|
|
77
|
-
|
|
78
|
-
|
|
87
|
+
iconBlockError: {
|
|
88
|
+
backgroundColor: string;
|
|
79
89
|
};
|
|
80
|
-
|
|
81
|
-
|
|
90
|
+
iconBlockWarning: {
|
|
91
|
+
backgroundColor: string;
|
|
82
92
|
};
|
|
83
93
|
message: {
|
|
84
|
-
color:
|
|
94
|
+
color: string;
|
|
85
95
|
fontSize: 14;
|
|
86
96
|
lineHeight: 20;
|
|
87
97
|
letterSpacing: 0;
|
|
@@ -92,5 +102,13 @@ declare const _default: {
|
|
|
92
102
|
};
|
|
93
103
|
export default _default;
|
|
94
104
|
export declare const All: () => import("react").JSX.Element;
|
|
105
|
+
export declare const PreviewInfo: () => import("react").JSX.Element;
|
|
106
|
+
export declare const PreviewSuccess: () => import("react").JSX.Element;
|
|
107
|
+
export declare const PreviewError: () => import("react").JSX.Element;
|
|
108
|
+
export declare const PreviewDefault: () => import("react").JSX.Element;
|
|
109
|
+
export declare const PreviewWarning: () => import("react").JSX.Element;
|
|
110
|
+
export declare const PreviewInfoSansDescription: () => import("react").JSX.Element;
|
|
111
|
+
export declare const PreviewSuccessSansDescription: () => import("react").JSX.Element;
|
|
112
|
+
export declare const ToastsTypes: () => import("react").JSX.Element;
|
|
95
113
|
export * as Sources from './Toast.stories.sources';
|
|
96
114
|
//# sourceMappingURL=Toast.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toast.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"Toast.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toast.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAa,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAM3C,wBAQkB;AAElB,eAAO,MAAM,GAAG,mCAwDf,CAAC;AAEF,eAAO,MAAM,WAAW,mCAEvB,CAAC;AAEF,eAAO,MAAM,cAAc,mCAE1B,CAAC;AAEF,eAAO,MAAM,YAAY,mCAExB,CAAC;AAEF,eAAO,MAAM,cAAc,mCAE1B,CAAC;AAEF,eAAO,MAAM,cAAc,mCAE1B,CAAC;AAEF,eAAO,MAAM,0BAA0B,mCAA2E,CAAC;AAEnH,eAAO,MAAM,6BAA6B,mCAEzC,CAAC;AAEF,eAAO,MAAM,WAAW,mCAOvB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from '@alveole/components';
|
|
3
3
|
import { Box, Highlight, Typography } from '../../core';
|
|
4
|
-
import { Toast } from './Toast';
|
|
4
|
+
import { Toast, ToastView } from './Toast';
|
|
5
5
|
import { useStyles } from './Toast.styles';
|
|
6
6
|
import { defaultDuration } from './ToastBridge';
|
|
7
|
+
import { ToastType } from './ToastType';
|
|
7
8
|
import { useToast } from './index';
|
|
8
9
|
export default {
|
|
9
10
|
title: 'Toast',
|
|
@@ -16,7 +17,6 @@ export default {
|
|
|
16
17
|
};
|
|
17
18
|
export const All = () => {
|
|
18
19
|
const toast = useToast();
|
|
19
|
-
defaultDuration;
|
|
20
20
|
const defaultToast = () => toast.present('Default', 'Message');
|
|
21
21
|
const successToast = () => toast.present('Success', 'Message', { variant: 'success' });
|
|
22
22
|
const errorToast = () => toast.present('Error', 'Message beaucoup plus long', { variant: 'error' });
|
|
@@ -24,10 +24,11 @@ export const All = () => {
|
|
|
24
24
|
const infoToastMultiLine = () => toast.present('Information', 'Message beaucoup plus long avec retour à la ligne.\nDeuxième ligne', {
|
|
25
25
|
variant: 'info',
|
|
26
26
|
});
|
|
27
|
+
const warningToast = () => toast.present('Attention', 'Message', { variant: 'warning' });
|
|
27
28
|
const withoutMessageToast = () => toast.present('Sans message');
|
|
28
29
|
const withoutMessageToastError = () => toast.present('Sans message', undefined, { variant: 'error' });
|
|
29
30
|
const withCustomIcon = () => toast.present('Avec icon custom', undefined, { icon: 'Worm' });
|
|
30
|
-
return (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 8, children: [_jsxs(Box, { display: "flex", flexDirection: "row", gap: 4, flexWrap: "wrap", children: [_jsx(Button, { title: "Default toast", variant: "secondary", onPress: defaultToast }), _jsx(Button, { title: "Success toast", variant: "secondary", onPress: successToast }), _jsx(Button, { title: "Error toast", variant: "secondary", onPress: errorToast }), _jsx(Button, { title: "Info toast", variant: "secondary", onPress: infoToast }), _jsx(Button, { title: "Message long", variant: "secondary", onPress: infoToastMultiLine }), _jsx(Button, { title: "Without message toast", variant: "secondary", onPress: withoutMessageToast }), _jsx(Button, { title: "Without message toast error", variant: "secondary", onPress: withoutMessageToastError }), _jsx(Button, { title: "WithCustomIcon", variant: "secondary", onPress: withCustomIcon })] }), _jsxs(Box, { display: "flex", flexDirection: "column", gap: 4, children: [_jsx(Typography, { children: `Le fichier _layout.tsx doit inclure la balise <Toasts> pour fonctionner` }), _jsx(Highlight, { language: "tsx", children: `
|
|
31
|
+
return (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 8, children: [_jsxs(Box, { display: "flex", flexDirection: "row", gap: 4, flexWrap: "wrap", children: [_jsx(Button, { title: "Default toast", variant: "secondary", onPress: defaultToast }), _jsx(Button, { title: "Success toast", variant: "secondary", onPress: successToast }), _jsx(Button, { title: "Error toast", variant: "secondary", onPress: errorToast }), _jsx(Button, { title: "Info toast", variant: "secondary", onPress: infoToast }), _jsx(Button, { title: "Warning toast", variant: "secondary", onPress: warningToast }), _jsx(Button, { title: "Message long", variant: "secondary", onPress: infoToastMultiLine }), _jsx(Button, { title: "Without message toast", variant: "secondary", onPress: withoutMessageToast }), _jsx(Button, { title: "Without message toast error", variant: "secondary", onPress: withoutMessageToastError }), _jsx(Button, { title: "WithCustomIcon", variant: "secondary", onPress: withCustomIcon })] }), _jsxs(Box, { display: "flex", flexDirection: "column", gap: 4, children: [_jsx(Typography, { children: `Le fichier _layout.tsx doit inclure la balise <Toasts> pour fonctionner` }), _jsx(Highlight, { language: "tsx", children: `
|
|
31
32
|
import { Toasts } from '@alveole/components';
|
|
32
33
|
import { ThemeProvider } from '@alveole/theme';
|
|
33
34
|
import { Stack } from 'expo-router';
|
|
@@ -48,4 +49,12 @@ export const All = () => {
|
|
|
48
49
|
}
|
|
49
50
|
` })] })] }));
|
|
50
51
|
};
|
|
52
|
+
export const PreviewInfo = () => (_jsx(ToastView, { variant: "info", title: "Information", message: "Description additionnelle du toast." }));
|
|
53
|
+
export const PreviewSuccess = () => (_jsx(ToastView, { variant: "success", title: "Succ\u00E8s", message: "Description additionnelle du toast." }));
|
|
54
|
+
export const PreviewError = () => (_jsx(ToastView, { variant: "error", title: "Erreur", message: "Description additionnelle du toast." }));
|
|
55
|
+
export const PreviewDefault = () => (_jsx(ToastView, { variant: "default", title: "Default", message: "Description additionnelle du toast." }));
|
|
56
|
+
export const PreviewWarning = () => (_jsx(ToastView, { variant: "warning", title: "Attention", message: "Description additionnelle du toast." }));
|
|
57
|
+
export const PreviewInfoSansDescription = () => _jsx(ToastView, { variant: "info", title: "Message seul sans description" });
|
|
58
|
+
export const PreviewSuccessSansDescription = () => (_jsx(ToastView, { variant: "success", title: "Message seul sans description" }));
|
|
59
|
+
export const ToastsTypes = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 8, children: [_jsx(ToastType, { variant: "info" }), _jsx(ToastType, { variant: "success" }), _jsx(ToastType, { variant: "error" }), _jsx(ToastType, { variant: "warning" })] }));
|
|
51
60
|
export * as Sources from './Toast.stories.sources';
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
export declare const All: () => string;
|
|
2
|
+
export declare const PreviewInfo: () => string;
|
|
3
|
+
export declare const PreviewSuccess: () => string;
|
|
4
|
+
export declare const PreviewError: () => string;
|
|
5
|
+
export declare const PreviewDefault: () => string;
|
|
6
|
+
export declare const PreviewWarning: () => string;
|
|
7
|
+
export declare const PreviewInfoSansDescription: () => string;
|
|
8
|
+
export declare const PreviewSuccessSansDescription: () => string;
|
|
9
|
+
export declare const ToastsTypes: () => string;
|
|
2
10
|
export declare const storySources: {
|
|
3
11
|
readonly All: () => string;
|
|
12
|
+
readonly PreviewInfo: () => string;
|
|
13
|
+
readonly PreviewSuccess: () => string;
|
|
14
|
+
readonly PreviewError: () => string;
|
|
15
|
+
readonly PreviewDefault: () => string;
|
|
16
|
+
readonly PreviewWarning: () => string;
|
|
17
|
+
readonly PreviewInfoSansDescription: () => string;
|
|
18
|
+
readonly PreviewSuccessSansDescription: () => string;
|
|
19
|
+
readonly ToastsTypes: () => string;
|
|
4
20
|
};
|
|
5
21
|
export type StorySourceName = keyof typeof storySources;
|
|
6
22
|
//# sourceMappingURL=Toast.stories.sources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toast.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,cAA+
|
|
1
|
+
{"version":3,"file":"Toast.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toast.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,cAA+9F,CAAC;AAEh/F,eAAO,MAAM,WAAW,cAAyJ,CAAC;AAElL,eAAO,MAAM,cAAc,cAA0J,CAAC;AAEtL,eAAO,MAAM,YAAY,cAAsJ,CAAC;AAEhL,eAAO,MAAM,cAAc,cAA2J,CAAC;AAEvL,eAAO,MAAM,cAAc,cAA6J,CAAC;AAEzL,eAAO,MAAM,0BAA0B,cAAkI,CAAC;AAE1K,eAAO,MAAM,6BAA6B,cAAgJ,CAAC;AAE3L,eAAO,MAAM,WAAW,cAA0Q,CAAC;AAEnS,eAAO,MAAM,YAAY;;;;;;;;;;CAUf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/ui/Toast/Toast.stories.tsx
|
|
3
|
-
export const All = () => "export const All = () => {\n const toast = useToast();\n\n
|
|
3
|
+
export const All = () => "export const All = () => {\n const toast = useToast();\n\n const defaultToast = () => toast.present('Default', 'Message');\n const successToast = () => toast.present('Success', 'Message', { variant: 'success' });\n const errorToast = () => toast.present('Error', 'Message beaucoup plus long', { variant: 'error' });\n const infoToast = () => toast.present('Information', 'Message', { variant: 'info' });\n const infoToastMultiLine = () =>\n toast.present('Information', 'Message beaucoup plus long avec retour à la ligne.\\nDeuxième ligne', {\n variant: 'info',\n });\n const warningToast = () => toast.present('Attention', 'Message', { variant: 'warning' });\n const withoutMessageToast = () => toast.present('Sans message');\n const withoutMessageToastError = () => toast.present('Sans message', undefined, { variant: 'error' });\n const withCustomIcon = () => toast.present('Avec icon custom', undefined, { icon: 'Worm' });\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap={8}>\n <Box display=\"flex\" flexDirection=\"row\" gap={4} flexWrap=\"wrap\">\n <Button title=\"Default toast\" variant=\"secondary\" onPress={defaultToast} />\n <Button title=\"Success toast\" variant=\"secondary\" onPress={successToast} />\n <Button title=\"Error toast\" variant=\"secondary\" onPress={errorToast} />\n <Button title=\"Info toast\" variant=\"secondary\" onPress={infoToast} />\n <Button title=\"Warning toast\" variant=\"secondary\" onPress={warningToast} />\n <Button title=\"Message long\" variant=\"secondary\" onPress={infoToastMultiLine} />\n <Button title=\"Without message toast\" variant=\"secondary\" onPress={withoutMessageToast} />\n <Button title=\"Without message toast error\" variant=\"secondary\" onPress={withoutMessageToastError} />\n <Button title=\"WithCustomIcon\" variant=\"secondary\" onPress={withCustomIcon} />\n </Box>\n <Box display=\"flex\" flexDirection=\"column\" gap={4}>\n <Typography>{`Le fichier _layout.tsx doit inclure la balise <Toasts> pour fonctionner`}</Typography>\n <Highlight language=\"tsx\">\n {`\n import { Toasts } from '@alveole/components';\n import { ThemeProvider } from '@alveole/theme';\n import { Stack } from 'expo-router';\n import React from 'react';\n import { TamaguiProvider } from 'tamagui';\n import { tamaguiConfig } from '../tamagui.config';\n\n export default function RootLayout() {\n return (\n <TamaguiProvider config={tamaguiConfig} defaultTheme=\"light\">\n <ThemeProvider loader={false}>\n <Toasts>\n <Stack screenOptions={{ headerShown: false }} />\n </Toasts>\n </ThemeProvider>\n </TamaguiProvider>\n );\n }\n `}\n </Highlight>\n </Box>\n </Box>\n );\n};";
|
|
4
|
+
export const PreviewInfo = () => "export const PreviewInfo = () => (\n <ToastView variant=\"info\" title=\"Information\" message=\"Description additionnelle du toast.\" />\n);";
|
|
5
|
+
export const PreviewSuccess = () => "export const PreviewSuccess = () => (\n <ToastView variant=\"success\" title=\"Succès\" message=\"Description additionnelle du toast.\" />\n);";
|
|
6
|
+
export const PreviewError = () => "export const PreviewError = () => (\n <ToastView variant=\"error\" title=\"Erreur\" message=\"Description additionnelle du toast.\" />\n);";
|
|
7
|
+
export const PreviewDefault = () => "export const PreviewDefault = () => (\n <ToastView variant=\"default\" title=\"Default\" message=\"Description additionnelle du toast.\" />\n);";
|
|
8
|
+
export const PreviewWarning = () => "export const PreviewWarning = () => (\n <ToastView variant=\"warning\" title=\"Attention\" message=\"Description additionnelle du toast.\" />\n);";
|
|
9
|
+
export const PreviewInfoSansDescription = () => "export const PreviewInfoSansDescription = () => <ToastView variant=\"info\" title=\"Message seul sans description\" />;";
|
|
10
|
+
export const PreviewSuccessSansDescription = () => "export const PreviewSuccessSansDescription = () => (\n <ToastView variant=\"success\" title=\"Message seul sans description\" />\n);";
|
|
11
|
+
export const ToastsTypes = () => "export const ToastsTypes = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap={8}>\n <ToastType variant=\"info\" />\n <ToastType variant=\"success\" />\n <ToastType variant=\"error\" />\n <ToastType variant=\"warning\" />\n </Box>\n);";
|
|
4
12
|
export const storySources = {
|
|
5
13
|
All,
|
|
14
|
+
PreviewInfo,
|
|
15
|
+
PreviewSuccess,
|
|
16
|
+
PreviewError,
|
|
17
|
+
PreviewDefault,
|
|
18
|
+
PreviewWarning,
|
|
19
|
+
PreviewInfoSansDescription,
|
|
20
|
+
PreviewSuccessSansDescription,
|
|
21
|
+
ToastsTypes,
|
|
6
22
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const useStyles: () => {
|
|
2
2
|
container: {
|
|
3
|
-
backgroundColor:
|
|
3
|
+
backgroundColor: string;
|
|
4
4
|
width: number;
|
|
5
|
-
padding: import("@alveole/theme").Spacing;
|
|
6
5
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
7
6
|
display: "flex";
|
|
8
7
|
flexDirection: "row";
|
|
9
8
|
gap: import("@alveole/theme").Spacing;
|
|
10
|
-
|
|
9
|
+
overflow: "hidden";
|
|
10
|
+
padding: number;
|
|
11
11
|
} | {
|
|
12
12
|
shadowColor: import("@alveole/theme").Color;
|
|
13
13
|
shadowOffset: {
|
|
@@ -17,63 +17,73 @@ export declare const useStyles: () => {
|
|
|
17
17
|
shadowOpacity: number;
|
|
18
18
|
shadowRadius: number;
|
|
19
19
|
elevation: number;
|
|
20
|
-
backgroundColor:
|
|
20
|
+
backgroundColor: string;
|
|
21
21
|
width: number;
|
|
22
|
-
padding: import("@alveole/theme").Spacing;
|
|
23
22
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
24
23
|
display: "flex";
|
|
25
24
|
flexDirection: "row";
|
|
26
25
|
gap: import("@alveole/theme").Spacing;
|
|
27
|
-
|
|
26
|
+
overflow: "hidden";
|
|
27
|
+
padding: number;
|
|
28
28
|
} | {
|
|
29
29
|
boxShadow: string;
|
|
30
|
-
backgroundColor:
|
|
30
|
+
backgroundColor: string;
|
|
31
31
|
width: number;
|
|
32
|
-
padding: import("@alveole/theme").Spacing;
|
|
33
32
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
34
33
|
display: "flex";
|
|
35
34
|
flexDirection: "row";
|
|
36
35
|
gap: import("@alveole/theme").Spacing;
|
|
37
|
-
|
|
36
|
+
overflow: "hidden";
|
|
37
|
+
padding: number;
|
|
38
38
|
};
|
|
39
39
|
contenu: {
|
|
40
40
|
display: "flex";
|
|
41
41
|
flex: number;
|
|
42
42
|
flexDirection: "column";
|
|
43
43
|
gap: import("@alveole/theme").Spacing;
|
|
44
|
+
padding: import("@alveole/theme").Spacing;
|
|
44
45
|
};
|
|
45
46
|
titleContainer: {
|
|
46
47
|
display: "flex";
|
|
47
48
|
flexDirection: "row";
|
|
48
49
|
alignItems: "center";
|
|
49
50
|
justifyContent: "space-between";
|
|
50
|
-
minHeight: import("@alveole/theme").Spacing;
|
|
51
51
|
};
|
|
52
52
|
title: {
|
|
53
|
-
color:
|
|
53
|
+
color: string;
|
|
54
54
|
fontSize: 14;
|
|
55
55
|
lineHeight: 20;
|
|
56
56
|
letterSpacing: 0;
|
|
57
57
|
fontFamily: string;
|
|
58
58
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
59
59
|
};
|
|
60
|
-
|
|
60
|
+
iconBlock: {
|
|
61
|
+
display: "flex";
|
|
62
|
+
alignSelf: "stretch";
|
|
63
|
+
justifyContent: "flex-start";
|
|
64
|
+
alignItems: "center";
|
|
65
|
+
paddingLeft: import("@alveole/theme").Spacing;
|
|
66
|
+
paddingRight: import("@alveole/theme").Spacing;
|
|
61
67
|
paddingTop: import("@alveole/theme").Spacing;
|
|
68
|
+
paddingBottom: import("@alveole/theme").Spacing;
|
|
69
|
+
};
|
|
70
|
+
iconBlockDefault: {
|
|
71
|
+
backgroundColor: string;
|
|
62
72
|
};
|
|
63
|
-
|
|
64
|
-
|
|
73
|
+
iconBlockInfo: {
|
|
74
|
+
backgroundColor: string;
|
|
65
75
|
};
|
|
66
|
-
|
|
67
|
-
|
|
76
|
+
iconBlockSuccess: {
|
|
77
|
+
backgroundColor: string;
|
|
68
78
|
};
|
|
69
|
-
|
|
70
|
-
|
|
79
|
+
iconBlockError: {
|
|
80
|
+
backgroundColor: string;
|
|
71
81
|
};
|
|
72
|
-
|
|
73
|
-
|
|
82
|
+
iconBlockWarning: {
|
|
83
|
+
backgroundColor: string;
|
|
74
84
|
};
|
|
75
85
|
message: {
|
|
76
|
-
color:
|
|
86
|
+
color: string;
|
|
77
87
|
fontSize: 14;
|
|
78
88
|
lineHeight: 20;
|
|
79
89
|
letterSpacing: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toast.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Toast.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toast.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoEnB,CAAC"}
|
|
@@ -2,53 +2,63 @@ import { makeStyles } from '@alveole/theme';
|
|
|
2
2
|
export const useStyles = makeStyles(({ text, color, radius, spacing, shadows }) => ({
|
|
3
3
|
// Container
|
|
4
4
|
container: {
|
|
5
|
-
backgroundColor: '
|
|
5
|
+
backgroundColor: color.light.background['default-grey'],
|
|
6
6
|
width: 384,
|
|
7
|
-
padding: spacing('100'),
|
|
8
7
|
borderRadius: radius('sm'),
|
|
9
8
|
display: 'flex',
|
|
10
9
|
flexDirection: 'row',
|
|
11
|
-
gap: spacing('
|
|
12
|
-
|
|
10
|
+
gap: spacing('1W'),
|
|
11
|
+
overflow: 'hidden',
|
|
12
|
+
padding: 0,
|
|
13
13
|
...shadows(3),
|
|
14
14
|
},
|
|
15
15
|
contenu: {
|
|
16
16
|
display: 'flex',
|
|
17
17
|
flex: 1,
|
|
18
18
|
flexDirection: 'column',
|
|
19
|
-
gap: spacing('
|
|
19
|
+
gap: spacing('1W'),
|
|
20
|
+
padding: spacing('100'),
|
|
20
21
|
},
|
|
21
22
|
titleContainer: {
|
|
22
23
|
display: 'flex',
|
|
23
24
|
flexDirection: 'row',
|
|
24
25
|
alignItems: 'center',
|
|
25
26
|
justifyContent: 'space-between',
|
|
26
|
-
minHeight: spacing('150'),
|
|
27
27
|
},
|
|
28
28
|
// Titre
|
|
29
29
|
title: {
|
|
30
30
|
...text['Corps de texte'].SM.Bold,
|
|
31
|
-
color: color.text['
|
|
31
|
+
color: color.light.text['default-grey'],
|
|
32
|
+
},
|
|
33
|
+
// Bloc icône (panel coloré pleine hauteur)
|
|
34
|
+
iconBlock: {
|
|
35
|
+
display: 'flex',
|
|
36
|
+
alignSelf: 'stretch',
|
|
37
|
+
justifyContent: 'flex-start',
|
|
38
|
+
alignItems: 'center',
|
|
39
|
+
paddingLeft: spacing('3V'),
|
|
40
|
+
paddingRight: spacing('3V'),
|
|
41
|
+
paddingTop: spacing('2W'),
|
|
42
|
+
paddingBottom: spacing('2W'),
|
|
32
43
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
paddingTop: spacing('025'),
|
|
44
|
+
iconBlockDefault: {
|
|
45
|
+
backgroundColor: color.light.background['flat-info'],
|
|
36
46
|
},
|
|
37
|
-
|
|
38
|
-
|
|
47
|
+
iconBlockInfo: {
|
|
48
|
+
backgroundColor: color.light.background['flat-info'],
|
|
39
49
|
},
|
|
40
|
-
|
|
41
|
-
|
|
50
|
+
iconBlockSuccess: {
|
|
51
|
+
backgroundColor: color.light.background['flat-success'],
|
|
42
52
|
},
|
|
43
|
-
|
|
44
|
-
|
|
53
|
+
iconBlockError: {
|
|
54
|
+
backgroundColor: color.light.background['flat-error'],
|
|
45
55
|
},
|
|
46
|
-
|
|
47
|
-
|
|
56
|
+
iconBlockWarning: {
|
|
57
|
+
backgroundColor: color.light.background['flat-warning'],
|
|
48
58
|
},
|
|
49
59
|
// Message
|
|
50
60
|
message: {
|
|
51
61
|
...text['Corps de texte'].SM.Regular,
|
|
52
|
-
color: color.text['default-grey'],
|
|
62
|
+
color: color.light.text['default-grey'],
|
|
53
63
|
},
|
|
54
64
|
}));
|
|
@@ -3,7 +3,7 @@ import { LucideIconProps } from '../LucideIcon';
|
|
|
3
3
|
export type ToastAPIOptions = {
|
|
4
4
|
icon?: LucideIconProps['name'];
|
|
5
5
|
duration?: number;
|
|
6
|
-
variant?: 'default' | 'success' | 'error' | 'info';
|
|
6
|
+
variant?: 'default' | 'success' | 'error' | 'info' | 'warning';
|
|
7
7
|
};
|
|
8
8
|
export type ToastAPI = {
|
|
9
9
|
present: (title: string, message?: string, opts?: ToastAPIOptions) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToastContext.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/ToastContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ToastContext.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/ToastContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;CAChE,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,eAAe,KAAK,IAAI,CAAC;CAC5E,CAAC;AAEF,eAAO,MAAM,YAAY,gCAA6C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LucideIconProps } from '../LucideIcon';
|
|
3
|
+
import type { ToastAPIOptions } from './ToastContext';
|
|
4
|
+
type ToastVariant = NonNullable<ToastAPIOptions['variant']>;
|
|
5
|
+
export type ToastTypeProps = {
|
|
6
|
+
variant: ToastVariant;
|
|
7
|
+
icon?: LucideIconProps['name'];
|
|
8
|
+
};
|
|
9
|
+
export declare function ToastType({ variant, icon }: ToastTypeProps): React.JSX.Element | null;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=ToastType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastType.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/ToastType.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,KAAK,YAAY,GAAG,WAAW,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,YAAY,CAAC;IACtB,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;CAChC,CAAC;AAEF,wBAAgB,SAAS,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,cAAc,4BA8C1D"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Box } from '../../core';
|
|
4
|
+
import { LucideIcon } from '../LucideIcon';
|
|
5
|
+
import { useStyles } from './Toast.styles';
|
|
6
|
+
export function ToastType({ variant, icon }) {
|
|
7
|
+
const styles = useStyles();
|
|
8
|
+
const iconBlockStyle = React.useMemo(() => {
|
|
9
|
+
switch (variant) {
|
|
10
|
+
case 'default':
|
|
11
|
+
return styles.iconBlockDefault;
|
|
12
|
+
case 'success':
|
|
13
|
+
return styles.iconBlockSuccess;
|
|
14
|
+
case 'error':
|
|
15
|
+
return styles.iconBlockError;
|
|
16
|
+
case 'info':
|
|
17
|
+
return styles.iconBlockInfo;
|
|
18
|
+
case 'warning':
|
|
19
|
+
return styles.iconBlockWarning;
|
|
20
|
+
default:
|
|
21
|
+
((_) => { })(variant);
|
|
22
|
+
}
|
|
23
|
+
}, [styles, variant]);
|
|
24
|
+
const iconName = React.useMemo(() => {
|
|
25
|
+
if (icon)
|
|
26
|
+
return icon;
|
|
27
|
+
switch (variant) {
|
|
28
|
+
case 'default':
|
|
29
|
+
return null;
|
|
30
|
+
case 'success':
|
|
31
|
+
return 'CircleCheck';
|
|
32
|
+
case 'error':
|
|
33
|
+
return 'OctagonAlert';
|
|
34
|
+
case 'info':
|
|
35
|
+
return 'Info';
|
|
36
|
+
case 'warning':
|
|
37
|
+
return 'TriangleAlert';
|
|
38
|
+
default:
|
|
39
|
+
((_) => { })(variant);
|
|
40
|
+
}
|
|
41
|
+
return null;
|
|
42
|
+
}, [icon, variant]);
|
|
43
|
+
if (!iconName)
|
|
44
|
+
return null;
|
|
45
|
+
return (_jsx(Box, { style: [styles.iconBlock, iconBlockStyle], children: _jsx(LucideIcon, { color: "#FFFFFF", name: iconName, size: "sm" }) }));
|
|
46
|
+
}
|
|
@@ -7,8 +7,8 @@ declare const _default: {
|
|
|
7
7
|
component: any;
|
|
8
8
|
styleFn: () => {
|
|
9
9
|
tabBarStyle: {
|
|
10
|
-
backgroundColor:
|
|
11
|
-
borderColor:
|
|
10
|
+
backgroundColor: string;
|
|
11
|
+
borderColor: string;
|
|
12
12
|
};
|
|
13
13
|
tabBarLabelStyle: {
|
|
14
14
|
readonly fontSize: 12;
|
|
@@ -22,10 +22,10 @@ declare const _default: {
|
|
|
22
22
|
margin: number;
|
|
23
23
|
};
|
|
24
24
|
tabBarActiveTintColor: {
|
|
25
|
-
color:
|
|
25
|
+
color: string;
|
|
26
26
|
};
|
|
27
27
|
tabBarInactiveTintColor: {
|
|
28
|
-
color:
|
|
28
|
+
color: string;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const useStyles: () => {
|
|
2
2
|
tabBarStyle: {
|
|
3
|
-
backgroundColor:
|
|
4
|
-
borderColor:
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
borderColor: string;
|
|
5
5
|
};
|
|
6
6
|
tabBarLabelStyle: {
|
|
7
7
|
readonly fontSize: 12;
|
|
@@ -15,10 +15,10 @@ export declare const useStyles: () => {
|
|
|
15
15
|
margin: number;
|
|
16
16
|
};
|
|
17
17
|
tabBarActiveTintColor: {
|
|
18
|
-
color:
|
|
18
|
+
color: string;
|
|
19
19
|
};
|
|
20
20
|
tabBarInactiveTintColor: {
|
|
21
|
-
color:
|
|
21
|
+
color: string;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
//# sourceMappingURL=ToolbarBottomNav.styles.d.ts.map
|
|
@@ -37,7 +37,7 @@ declare const _default: {
|
|
|
37
37
|
borderRightWidth: number;
|
|
38
38
|
borderTopWidth: number;
|
|
39
39
|
borderStyle: "solid";
|
|
40
|
-
borderColor:
|
|
40
|
+
borderColor: string;
|
|
41
41
|
};
|
|
42
42
|
toolbarNavigation: {
|
|
43
43
|
display: "flex";
|
|
@@ -63,7 +63,7 @@ declare const _default: {
|
|
|
63
63
|
justifyContent: "center";
|
|
64
64
|
};
|
|
65
65
|
toolbarInformationTitleText: {
|
|
66
|
-
color:
|
|
66
|
+
color: string;
|
|
67
67
|
fontSize: 14;
|
|
68
68
|
lineHeight: 20;
|
|
69
69
|
letterSpacing: 0;
|
|
@@ -78,7 +78,7 @@ declare const _default: {
|
|
|
78
78
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
79
79
|
};
|
|
80
80
|
toolbarInformationTitleSubText: {
|
|
81
|
-
color:
|
|
81
|
+
color: string;
|
|
82
82
|
fontSize: 12;
|
|
83
83
|
lineHeight: 20;
|
|
84
84
|
letterSpacing: 0;
|
|
@@ -29,7 +29,7 @@ export declare const useStyles: () => {
|
|
|
29
29
|
borderRightWidth: number;
|
|
30
30
|
borderTopWidth: number;
|
|
31
31
|
borderStyle: "solid";
|
|
32
|
-
borderColor:
|
|
32
|
+
borderColor: string;
|
|
33
33
|
};
|
|
34
34
|
toolbarNavigation: {
|
|
35
35
|
display: "flex";
|
|
@@ -55,7 +55,7 @@ export declare const useStyles: () => {
|
|
|
55
55
|
justifyContent: "center";
|
|
56
56
|
};
|
|
57
57
|
toolbarInformationTitleText: {
|
|
58
|
-
color:
|
|
58
|
+
color: string;
|
|
59
59
|
fontSize: 14;
|
|
60
60
|
lineHeight: 20;
|
|
61
61
|
letterSpacing: 0;
|
|
@@ -70,7 +70,7 @@ export declare const useStyles: () => {
|
|
|
70
70
|
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
71
71
|
};
|
|
72
72
|
toolbarInformationTitleSubText: {
|
|
73
|
-
color:
|
|
73
|
+
color: string;
|
|
74
74
|
fontSize: 12;
|
|
75
75
|
lineHeight: 20;
|
|
76
76
|
letterSpacing: 0;
|