@alveole/components 0.43.3 → 1.0.1
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 +6 -2
- package/dist/core/Page/Page.stories.d.ts.map +1 -1
- package/dist/core/Page/Page.stories.js +28 -14
- package/dist/core/Page/Page.stories.sources.d.ts +12 -4
- package/dist/core/Page/Page.stories.sources.d.ts.map +1 -1
- package/dist/core/Page/Page.stories.sources.js +12 -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 +25 -0
- package/dist/core/Page/PageMetaContext.d.ts.map +1 -0
- package/dist/core/Page/PageMetaContext.js +18 -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 +3 -3
- package/dist/ui/Avatar/Avatar.styles.d.ts +3 -3
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/Badge.stories.d.ts +15 -13
- package/dist/ui/Badge/Badge.stories.d.ts.map +1 -1
- package/dist/ui/Badge/Badge.styles.d.ts +15 -13
- 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 +68 -69
- package/dist/ui/Button/Button.stories.d.ts.map +1 -1
- package/dist/ui/Button/Button.styles.d.ts +68 -69
- 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 +3 -3
- 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 +16 -16
- package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts +16 -16
- 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 +5 -5
- package/dist/ui/EmptyState/EmptyState.styles.d.ts +5 -5
- 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 +8 -8
- package/dist/ui/ListItem/ListItem.styles.d.ts +8 -8
- 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 +291 -8
- package/dist/ui/LucideIcon/LucideIcon.props.d.ts.map +1 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.d.ts +146 -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 +9 -9
- package/dist/ui/Popover/Popover.styles.d.ts +9 -9
- 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 +13 -13
- package/dist/ui/ProgressBar/ProgressBar.styles.d.ts +13 -13
- 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 +3 -3
- package/dist/ui/ResourceList/ResourceList.styles.d.ts +3 -3
- 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 +21 -21
- package/dist/ui/Sidebar/Sidebar.styles.d.ts +21 -21
- package/dist/ui/Signature/Signature.stories.d.ts +3 -3
- package/dist/ui/Signature/Signature.styles.d.ts +3 -3
- 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 +6 -18
- package/dist/ui/Tabs/Tabs.stories.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.styles.d.ts +6 -18
- 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 +5 -5
- package/dist/ui/Tag/Tag.styles.d.ts +5 -5
- 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 +42 -24
- 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 +34 -24
- 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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextFieldProps } from '../TextField';
|
|
3
|
+
export type TextareaInputProps = TextFieldProps & {
|
|
4
|
+
numberOfLines?: number;
|
|
5
|
+
onModalSubmit?: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const TextareaInput: React.ForwardRefExoticComponent<Omit<import("react-native").TextInputProps, "style"> & {
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
startAdornment?: React.ReactNode;
|
|
10
|
+
endAdornment?: React.ReactNode;
|
|
11
|
+
openModal?: boolean;
|
|
12
|
+
modalSubmitLabel?: string;
|
|
13
|
+
onModalSubmit?: () => void;
|
|
14
|
+
} & {
|
|
15
|
+
label: string;
|
|
16
|
+
labelRight?: React.ReactNode;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
} & import("@alveole/components").FormControlCaptionProps & import("@alveole/components").FormControlHintProps & {
|
|
19
|
+
type?: "text" | "hidden";
|
|
20
|
+
onChange?: import("@alveole/components").TextInputProps["onChangeText"];
|
|
21
|
+
} & {
|
|
22
|
+
numberOfLines?: number;
|
|
23
|
+
onModalSubmit?: () => void;
|
|
24
|
+
} & React.RefAttributes<import("react-native").TextInput>>;
|
|
25
|
+
//# sourceMappingURL=TextareaInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextareaInput.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAa,cAAc,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;oBAJR,MAAM;oBACN,MAAM,IAAI;0DAoB3B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { TextInput } from '@alveole/components';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export const TextareaInput = React.forwardRef(function TextareaInput(props, ref) {
|
|
5
|
+
const { numberOfLines = 5, multiline = true, onModalSubmit, onFocus, openModal, modalSubmitLabel, ...rest } = props;
|
|
6
|
+
return (_jsx(TextInput, { ref: ref, multiline: multiline, numberOfLines: numberOfLines, ...rest, openModal: openModal ?? true, modalSubmitLabel: modalSubmitLabel ?? 'Valider', onModalSubmit: onModalSubmit, onFocus: onFocus }));
|
|
7
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: "ui"[];
|
|
4
|
+
experimental: false;
|
|
5
|
+
description: string;
|
|
6
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("react-native").TextInputProps, "style"> & {
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
startAdornment?: React.ReactNode;
|
|
9
|
+
endAdornment?: React.ReactNode;
|
|
10
|
+
openModal?: boolean;
|
|
11
|
+
modalSubmitLabel?: string;
|
|
12
|
+
onModalSubmit?: () => void;
|
|
13
|
+
} & {
|
|
14
|
+
label: string;
|
|
15
|
+
labelRight?: React.ReactNode;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
} & import("..").FormControlCaptionProps & import("..").FormControlHintProps & {
|
|
18
|
+
type?: "text" | "hidden";
|
|
19
|
+
onChange?: import("..").TextInputProps["onChangeText"];
|
|
20
|
+
} & {
|
|
21
|
+
numberOfLines?: number;
|
|
22
|
+
onModalSubmit?: () => void;
|
|
23
|
+
} & import("react").RefAttributes<import("react-native").TextInput>>;
|
|
24
|
+
styleFn: () => {};
|
|
25
|
+
};
|
|
26
|
+
export default _default;
|
|
27
|
+
export declare const Default: () => import("react").JSX.Element;
|
|
28
|
+
export * as Sources from './TextareaInput.stories.sources';
|
|
29
|
+
//# sourceMappingURL=TextareaInput.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextareaInput.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAOkB;AAElB,eAAO,MAAM,OAAO,mCAMnB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box } from '../../core';
|
|
3
|
+
import { TextareaInput } from './TextareaInput';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'TextareaInput',
|
|
6
|
+
tags: ['ui'],
|
|
7
|
+
experimental: false,
|
|
8
|
+
description: 'Input multiline. Étend TextField avec multiline activé par défaut.',
|
|
9
|
+
component: TextareaInput,
|
|
10
|
+
styleFn: () => ({}),
|
|
11
|
+
};
|
|
12
|
+
export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 24, children: [_jsx(TextareaInput, { label: "Message", placeholder: "Votre message...", numberOfLines: 4 }), _jsx(TextareaInput, { label: "Avec valeur", value: "Contenu du message", numberOfLines: 4 }), _jsx(TextareaInput, { label: "D\u00E9sactiv\u00E9", placeholder: "D\u00E9sactiv\u00E9", disabled: true, numberOfLines: 4 })] }));
|
|
13
|
+
export * as Sources from './TextareaInput.stories.sources';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextareaInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA2Y,CAAC;AAEha,eAAO,MAAM,YAAY;;CAEf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file is generated. Do not edit manually.
|
|
2
|
+
// Source: src/ui/TextareaInput/TextareaInput.stories.tsx
|
|
3
|
+
export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <TextareaInput label=\"Message\" placeholder=\"Votre message...\" numberOfLines={4} />\n <TextareaInput label=\"Avec valeur\" value=\"Contenu du message\" numberOfLines={4} />\n <TextareaInput label=\"Désactivé\" placeholder=\"Désactivé\" disabled numberOfLines={4} />\n </Box>\n);";
|
|
4
|
+
export const storySources = {
|
|
5
|
+
Default,
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TextareaInput';
|
package/dist/ui/Toast/Toast.d.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { BoxProps } from '../../core';
|
|
2
|
+
import { LucideIconProps } from '../LucideIcon';
|
|
3
|
+
import type { ToastAPIOptions } from './ToastContext';
|
|
4
|
+
type ToastVariant = NonNullable<ToastAPIOptions['variant']>;
|
|
5
|
+
export type ToastViewProps = {
|
|
6
|
+
title: string;
|
|
7
|
+
message?: string;
|
|
8
|
+
variant?: ToastVariant;
|
|
9
|
+
icon?: LucideIconProps['name'];
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
};
|
|
12
|
+
export declare function ToastView({ title, message, variant, icon, onClose }: ToastViewProps): import("react").JSX.Element;
|
|
3
13
|
export type ToastProps = Omit<BoxProps, 'children'>;
|
|
4
|
-
export declare function Toast():
|
|
14
|
+
export declare function Toast(): import("react").JSX.Element | null;
|
|
15
|
+
export {};
|
|
5
16
|
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toast.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toast.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,QAAQ,EAAc,MAAM,YAAY,CAAC;AACvD,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,KAAK,YAAY,GAAG,WAAW,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAmB,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,cAAc,+BAqB/F;AAED,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AAEpD,wBAAgB,KAAK,uCAyBpB"}
|
package/dist/ui/Toast/Toast.js
CHANGED
|
@@ -1,48 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Toast as TamaguiToast, useToastController, useToastState } from '@tamagui/toast';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import { Pressable } from 'react-native';
|
|
5
4
|
import { Box, Typography } from '../../core';
|
|
6
5
|
import { LucideIcon } from '../LucideIcon';
|
|
7
6
|
import { useStyles } from './Toast.styles';
|
|
7
|
+
import { ToastType } from './ToastType';
|
|
8
|
+
export function ToastView({ title, message, variant = 'default', icon, onClose }) {
|
|
9
|
+
const styles = useStyles();
|
|
10
|
+
return (_jsxs(Box, { style: styles.container, children: [_jsx(ToastType, { variant: variant, icon: icon }), _jsxs(Box, { style: styles.contenu, children: [_jsxs(Box, { style: styles.titleContainer, children: [_jsx(Typography, { style: styles.title, children: title }), _jsx(Pressable, { onPress: onClose, children: _jsx(LucideIcon, { name: "X", size: "md" }) })] }), message && (_jsx(Box, { children: _jsx(Typography, { style: styles.message, children: message }) }))] })] }));
|
|
11
|
+
}
|
|
8
12
|
export function Toast() {
|
|
9
13
|
const toast = useToastState();
|
|
10
14
|
const controller = useToastController();
|
|
11
15
|
const styles = useStyles();
|
|
12
|
-
const variant = toast?.customData?.variant ?? 'default';
|
|
13
|
-
const icon = toast?.customData?.icon;
|
|
14
|
-
const iconColor = React.useMemo(() => {
|
|
15
|
-
switch (variant) {
|
|
16
|
-
case 'default':
|
|
17
|
-
return styles.iconDefault.color;
|
|
18
|
-
case 'success':
|
|
19
|
-
return styles.iconSuccess.color;
|
|
20
|
-
case 'error':
|
|
21
|
-
return styles.iconError.color;
|
|
22
|
-
case 'info':
|
|
23
|
-
return styles.iconInfo.color;
|
|
24
|
-
default:
|
|
25
|
-
((_) => { })(variant);
|
|
26
|
-
}
|
|
27
|
-
}, [styles, variant]);
|
|
28
|
-
const iconName = React.useMemo(() => {
|
|
29
|
-
if (icon)
|
|
30
|
-
return icon;
|
|
31
|
-
switch (variant) {
|
|
32
|
-
case 'default':
|
|
33
|
-
return null;
|
|
34
|
-
case 'success':
|
|
35
|
-
return 'BadgeCheck';
|
|
36
|
-
case 'error':
|
|
37
|
-
return 'BadgeX';
|
|
38
|
-
case 'info':
|
|
39
|
-
return 'BadgeInfo';
|
|
40
|
-
default:
|
|
41
|
-
((_) => { })(variant);
|
|
42
|
-
}
|
|
43
|
-
return null;
|
|
44
|
-
}, [icon, variant]);
|
|
45
16
|
if (!toast)
|
|
46
17
|
return null;
|
|
47
|
-
return (
|
|
18
|
+
return (_jsx(TamaguiToast, { duration: toast.duration, enterStyle: { opacity: 0, y: 10, scale: 0.98 }, exitStyle: { opacity: 0, y: 10, scale: 0.98 }, viewportName: "app-toasts", style: styles.container, children: _jsx(ToastView, { title: toast.title, message: toast.message, variant: toast.customData?.variant ?? 'default', icon: toast.customData?.icon, onClose: () => controller.hide() }) }, toast.id));
|
|
48
19
|
}
|
|
@@ -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
|
-
|
|
14
|
-
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
13
|
+
borderRadius: import("@alveole/theme").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
|
-
|
|
31
|
-
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
30
|
+
borderRadius: import("@alveole/theme").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
|
-
|
|
41
|
-
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
40
|
+
borderRadius: import("@alveole/theme").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
|
-
|
|
6
|
-
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
5
|
+
borderRadius: import("@alveole/theme").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
|
-
|
|
23
|
-
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
22
|
+
borderRadius: import("@alveole/theme").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
|
-
|
|
33
|
-
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
32
|
+
borderRadius: import("@alveole/theme").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"}
|