@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
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LucideIconProps } from '@alveole/components';
|
|
2
|
+
import React, { CSSProperties } from 'react';
|
|
3
|
+
import { TamaguiElement, RadioGroupItemProps as TamaguiRadioGroupCardProps } from 'tamagui';
|
|
4
|
+
export type RadioGroupCardElement = TamaguiElement;
|
|
5
|
+
export type RadioGroupCardProps = Pick<TamaguiRadioGroupCardProps, 'value'> & {
|
|
6
|
+
label: string;
|
|
7
|
+
icon?: LucideIconProps['name'];
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
separator?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const RadioGroupCard: (props: RadioGroupCardProps) => React.JSX.Element;
|
|
12
|
+
//# sourceMappingURL=RadioGroupCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroupCard.d.ts","sourceRoot":"","sources":["../../../src/ui/RadioGroup/RadioGroupCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,eAAe,EAAc,MAAM,qBAAqB,CAAC;AACnF,OAAO,KAAK,EAAE,EAAE,aAAa,EAAS,MAAM,OAAO,CAAC;AACpD,OAAO,EAAS,cAAc,EAAE,mBAAmB,IAAI,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAKnG,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC;AAEnD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,0BAA0B,EAAE,OAAO,CAAC,GAAG;IAC5E,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,sBA2BxD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, LucideIcon, Typography } from '@alveole/components';
|
|
3
|
+
import React, { useId } from 'react';
|
|
4
|
+
import { Label } from 'tamagui';
|
|
5
|
+
import { useStyles } from './RadioGroup.styles';
|
|
6
|
+
import { useRadioGroup } from './RadioGroupContext';
|
|
7
|
+
import { RadioInput } from './RadioInput';
|
|
8
|
+
export const RadioGroupCard = (props) => {
|
|
9
|
+
const { label, style, icon, value, separator = true } = props;
|
|
10
|
+
const rid = useId();
|
|
11
|
+
const id = React.useMemo(() => `radiogroup-${value}-${rid}`, [value, rid]);
|
|
12
|
+
const styles = useStyles();
|
|
13
|
+
useRadioGroup();
|
|
14
|
+
return (_jsx(Box, { tag: "radio-group-card", style: styles.card, children: _jsx(Label, { unstyled: true, htmlFor: id, display: "flex", flexDirection: "row", width: '100%', children: _jsx(Box, { style: { ...styles.itemCard, ...style }, hoverStyle: styles.itemCardHover, children: _jsxs(Box, { style: styles.radioGroupCardContent, children: [_jsx(RadioInput, { value: value, id: id, size: "sm" }), icon && (_jsx(Box, { display: "flex", flexDirection: "row", gap: '050', style: styles.itemCardIcon, children: _jsx(LucideIcon, { size: "sm", name: icon }) })), _jsx(Box, { style: { ...styles.radioGroupCardLabelContainer, ...(separator ? styles.itemCardSeparator : {}) }, children: _jsx(Typography, { style: styles.radioGroupCardLabel, children: label }) })] }) }) }) }));
|
|
15
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type RadioGroupCtx = {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (v: string) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const RadioGroupContext: React.Context<RadioGroupCtx>;
|
|
7
|
+
export declare const useRadioGroup: () => RadioGroupCtx;
|
|
8
|
+
//# sourceMappingURL=RadioGroupContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroupContext.d.ts","sourceRoot":"","sources":["../../../src/ui/RadioGroup/RadioGroupContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,iBAAiB,8BAAyC,CAAC;AACxE,eAAO,MAAM,aAAa,qBAA4C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TamaguiElement, RadioGroupItemProps as TamaguiRadioGroupItemProps } from 'tamagui';
|
|
3
|
+
export type RadioGroupItemElement = TamaguiElement;
|
|
4
|
+
export type RadioGroupItemProps = Pick<TamaguiRadioGroupItemProps, 'value'> & {
|
|
5
|
+
children?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const RadioGroupItem: (props: RadioGroupItemProps) => React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=RadioGroupItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroupItem.d.ts","sourceRoot":"","sources":["../../../src/ui/RadioGroup/RadioGroupItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAgB,MAAM,OAAO,CAAC;AACrC,OAAO,EAAS,cAAc,EAAE,mBAAmB,IAAI,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAInG,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC;AAEnD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,0BAA0B,EAAE,OAAO,CAAC,GAAG;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,sBAoBxD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Typography } from '@alveole/components';
|
|
3
|
+
import React, { useId } from 'react';
|
|
4
|
+
import { Label } from 'tamagui';
|
|
5
|
+
import { useStyles } from './RadioGroupItem.styles';
|
|
6
|
+
import { RadioInput } from './RadioInput';
|
|
7
|
+
export const RadioGroupItem = (props) => {
|
|
8
|
+
const { children, value } = props;
|
|
9
|
+
const rid = useId();
|
|
10
|
+
const id = React.useMemo(() => `radiogroup-${value}-${rid}`, [value, rid]);
|
|
11
|
+
const styles = useStyles();
|
|
12
|
+
return (_jsx(Box, { tag: "radio-group-item", style: styles.item, children: _jsxs(Label, { unstyled: true, htmlFor: id, style: styles.labelContainer, children: [_jsx(Box, { children: _jsx(RadioInput, { value: value, id: id, size: "md" }) }), _jsx(Box, { children: _jsx(Typography, { style: styles.itemLabel, children: children }) })] }) }));
|
|
13
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const useStyles: () => {
|
|
2
|
+
item: {
|
|
3
|
+
display: "flex";
|
|
4
|
+
flexDirection: "row";
|
|
5
|
+
width: "100%";
|
|
6
|
+
};
|
|
7
|
+
labelContainer: {
|
|
8
|
+
display: "flex";
|
|
9
|
+
flexDirection: "row";
|
|
10
|
+
alignItems: "center";
|
|
11
|
+
width: "100%";
|
|
12
|
+
gap: import("@alveole/theme").Spacing;
|
|
13
|
+
};
|
|
14
|
+
itemLabel: {
|
|
15
|
+
fontSize: 14;
|
|
16
|
+
lineHeight: 20;
|
|
17
|
+
letterSpacing: 0;
|
|
18
|
+
fontFamily: string;
|
|
19
|
+
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
20
|
+
cursor: "pointer";
|
|
21
|
+
color: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=RadioGroupItem.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroupItem.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/RadioGroup/RadioGroupItem.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;CAkBnB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { makeStyles } from '@alveole/theme';
|
|
2
|
+
export const useStyles = makeStyles(({ text, color, spacing }) => ({
|
|
3
|
+
item: {
|
|
4
|
+
display: 'flex',
|
|
5
|
+
flexDirection: 'row',
|
|
6
|
+
width: '100%',
|
|
7
|
+
},
|
|
8
|
+
labelContainer: {
|
|
9
|
+
display: 'flex',
|
|
10
|
+
flexDirection: 'row',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
width: '100%',
|
|
13
|
+
gap: spacing('050'),
|
|
14
|
+
},
|
|
15
|
+
itemLabel: {
|
|
16
|
+
cursor: 'pointer',
|
|
17
|
+
color: color.text['default-grey'],
|
|
18
|
+
...text['Corps de texte'].SM.Regular,
|
|
19
|
+
},
|
|
20
|
+
}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioInput.d.ts","sourceRoot":"","sources":["../../../src/ui/RadioGroup/RadioInput.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,gCAwBhD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { RadioGroup as TamaguiRadioGroup } from 'tamagui';
|
|
3
|
+
import { useStyles } from './RadioGroup.styles';
|
|
4
|
+
import { useRadioGroup } from './RadioGroupContext';
|
|
5
|
+
export const RadioInput = (props) => {
|
|
6
|
+
const { value, id, size = 'md' } = props;
|
|
7
|
+
const { value: selectedValue, onChange } = useRadioGroup();
|
|
8
|
+
const isSelected = selectedValue === value;
|
|
9
|
+
const styles = useStyles();
|
|
10
|
+
const itemStyles = { ...styles.itemContainer, ...(size === 'sm' ? styles.itemContainerSm : styles.itemContainerMd) };
|
|
11
|
+
const indicatorStyle = { ...styles.itemContainer, ...(isSelected ? styles.itemContainerActive : {}) };
|
|
12
|
+
return (_jsx(TamaguiRadioGroup.Item, { value: value, id: id, style: itemStyles, focusStyle: styles.itemContainerActive, hoverStyle: indicatorStyle, pressStyle: styles.itemContainerActive, onPress: () => onChange?.(value), children: _jsx(TamaguiRadioGroup.Indicator, { style: styles.itemIndicator }) }));
|
|
13
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { RadioGroupElement, RadioGroupProps } from './RadioGroup';
|
|
2
|
+
export { RadioGroupCardProps } from './RadioGroupCard';
|
|
3
|
+
export { RadioGroupCtx } from './RadioGroupContext';
|
|
4
|
+
export { RadioGroupItemProps } from './RadioGroupItem';
|
|
5
|
+
export declare const RadioGroup: import("react").ForwardRefExoticComponent<Omit<import("tamagui").RadioGroupProps, "direction" | "value" | "onValueChange"> & import("..").FormControlCaptionProps & {
|
|
6
|
+
label: string;
|
|
7
|
+
labelRight?: React.ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
} & import("..").FormControlHintProps & {
|
|
10
|
+
label?: string;
|
|
11
|
+
value?: import("tamagui").RadioGroupProps["value"];
|
|
12
|
+
onChange?: import("tamagui").RadioGroupProps["onValueChange"];
|
|
13
|
+
variant?: "default" | "card";
|
|
14
|
+
} & import("react").RefAttributes<import("tamagui").TamaguiElement>> & {
|
|
15
|
+
Item: (props: import("./RadioGroupItem").RadioGroupItemProps) => import("react").JSX.Element;
|
|
16
|
+
Card: (props: import("./RadioGroupCard").RadioGroupCardProps) => import("react").JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/RadioGroup/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,eAAO,MAAM,UAAU;;;;;;;;;;;;CAGrB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RadioGroup as RadioGroupComponent } from './RadioGroup';
|
|
2
|
+
import { RadioGroupCard } from './RadioGroupCard';
|
|
3
|
+
import { RadioGroupItem } from './RadioGroupItem';
|
|
4
|
+
export const RadioGroup = Object.assign(RadioGroupComponent, {
|
|
5
|
+
Item: RadioGroupItem,
|
|
6
|
+
Card: RadioGroupCard,
|
|
7
|
+
});
|
|
@@ -16,7 +16,7 @@ declare const _default: {
|
|
|
16
16
|
paddingBottom: import("@alveole/theme").Spacing;
|
|
17
17
|
};
|
|
18
18
|
enteteTitle: {
|
|
19
|
-
color:
|
|
19
|
+
color: string;
|
|
20
20
|
fontSize: 14;
|
|
21
21
|
lineHeight: 20;
|
|
22
22
|
letterSpacing: 0;
|
|
@@ -31,7 +31,7 @@ declare const _default: {
|
|
|
31
31
|
};
|
|
32
32
|
withBorder: {
|
|
33
33
|
borderWidth: number;
|
|
34
|
-
borderColor:
|
|
34
|
+
borderColor: string;
|
|
35
35
|
borderLeftWidth: number;
|
|
36
36
|
borderRightWidth: number;
|
|
37
37
|
};
|
|
@@ -9,7 +9,7 @@ export declare const useStyles: () => {
|
|
|
9
9
|
paddingBottom: import("@alveole/theme").Spacing;
|
|
10
10
|
};
|
|
11
11
|
enteteTitle: {
|
|
12
|
-
color:
|
|
12
|
+
color: string;
|
|
13
13
|
fontSize: 14;
|
|
14
14
|
lineHeight: 20;
|
|
15
15
|
letterSpacing: 0;
|
|
@@ -24,7 +24,7 @@ export declare const useStyles: () => {
|
|
|
24
24
|
};
|
|
25
25
|
withBorder: {
|
|
26
26
|
borderWidth: number;
|
|
27
|
-
borderColor:
|
|
27
|
+
borderColor: string;
|
|
28
28
|
borderLeftWidth: number;
|
|
29
29
|
borderRightWidth: number;
|
|
30
30
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Picker, PickerProps } from '@react-native-picker/picker';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { SelectOption } from './Select';
|
|
4
|
+
export type NativePickerProps = Omit<PickerProps, 'value' | 'onValueChange' | 'enabled'> & {
|
|
5
|
+
value: string | null;
|
|
6
|
+
options: SelectOption[];
|
|
7
|
+
onChange?: (value: string | null) => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const NativePicker: React.ForwardRefExoticComponent<Omit<PickerProps<import("@react-native-picker/picker/typings/Picker").ItemValue>, "enabled" | "value" | "onValueChange"> & {
|
|
11
|
+
value: string | null;
|
|
12
|
+
options: SelectOption[];
|
|
13
|
+
onChange?: (value: string | null) => void;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
} & React.RefAttributes<Picker<string | number | object>>>;
|
|
16
|
+
//# sourceMappingURL=NativePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativePicker.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/NativePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,eAAe,GAAG,SAAS,CAAC,GAAG;IACzF,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,YAAY;WANhB,MAAM,GAAG,IAAI;aACX,YAAY,EAAE;eACZ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI;eAC9B,OAAO;0DAwCnB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Picker } from '@react-native-picker/picker';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export const NativePicker = React.forwardRef(function NativePicker(props, ref) {
|
|
5
|
+
const { value, options, onChange, disabled, style, ...pickerProps } = props;
|
|
6
|
+
const pickerStylesProps = { themeVariant: 'light', style: style };
|
|
7
|
+
const [model, setModel] = React.useState(value);
|
|
8
|
+
const handleChange = (newValue) => {
|
|
9
|
+
const stringValue = newValue ? String(newValue).trim() : undefined;
|
|
10
|
+
if (stringValue === '' || stringValue == null) {
|
|
11
|
+
setModel(null);
|
|
12
|
+
onChange?.(null);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
onChange?.(stringValue);
|
|
16
|
+
setModel(stringValue);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
return (_jsxs(Picker, { ref: ref, selectedValue: model ?? '', onValueChange: handleChange, enabled: !disabled, "aria-disabled": disabled, ...pickerProps, ...pickerStylesProps, children: [props.placeholder && _jsx(Picker.Item, { label: props.placeholder, value: '' }, 'select-item--undefined'), options.map((opt) => (_jsx(Picker.Item, { label: opt.label, value: opt.value }, opt.value)))] }));
|
|
20
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FormControlCaptionProps, FormControlHintProps, FormControlLabelProps } from '@alveole/components';
|
|
2
|
+
import { Picker, PickerProps } from '@react-native-picker/picker';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export type SelectOption = {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
};
|
|
8
|
+
export type SelectProps = Partial<Pick<PickerProps, 'onBlur' | 'onFocus'>> & FormControlLabelProps & FormControlHintProps & FormControlCaptionProps & {
|
|
9
|
+
value: string | null;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
options: SelectOption[];
|
|
12
|
+
onChange?: (value: string | null) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const Select: React.ForwardRefExoticComponent<Partial<Pick<PickerProps<import("@react-native-picker/picker/typings/Picker").ItemValue>, "onFocus" | "onBlur">> & {
|
|
15
|
+
label: string;
|
|
16
|
+
labelRight?: React.ReactNode;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
} & FormControlCaptionProps & FormControlHintProps & {
|
|
19
|
+
value: string | null;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
options: SelectOption[];
|
|
22
|
+
onChange?: (value: string | null) => void;
|
|
23
|
+
} & React.RefAttributes<Picker<string | number | object>>>;
|
|
24
|
+
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,uBAAuB,EAEvB,oBAAoB,EAEpB,qBAAqB,EAGtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,YAAY,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAC,GACxE,qBAAqB,GACrB,oBAAoB,GACpB,uBAAuB,GAAG;IACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEJ,eAAO,MAAM,MAAM;;;;;WANR,MAAM,GAAG,IAAI;kBACN,MAAM;aACX,YAAY,EAAE;eACZ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI;0DAkE3C,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, FormControl, FormControlCaption, FormControlHint, FormControlLabel, InputHeading, LucideIcon, } from '@alveole/components';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Platform } from 'react-native';
|
|
5
|
+
import { useStyles } from './Select.styles';
|
|
6
|
+
import { SelectInput } from './SelectInput';
|
|
7
|
+
export const Select = React.forwardRef(function Select(props, ref) {
|
|
8
|
+
const { value, label, labelRight, hint, error, success, disabled, options, placeholder, onChange, onBlur, onFocus } = props;
|
|
9
|
+
const styles = useStyles();
|
|
10
|
+
const [focus, setFocus] = React.useState(false);
|
|
11
|
+
const handleFocus = (e) => {
|
|
12
|
+
if (!disabled)
|
|
13
|
+
setFocus(true);
|
|
14
|
+
onFocus?.(e);
|
|
15
|
+
};
|
|
16
|
+
const handleBlur = (e) => {
|
|
17
|
+
if (!disabled)
|
|
18
|
+
setFocus(false);
|
|
19
|
+
onBlur?.(e);
|
|
20
|
+
};
|
|
21
|
+
return (_jsxs(FormControl, { style: styles.pickerContainer, children: [_jsxs(InputHeading, { children: [label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(Box, { tag: "form-control-text-input", style: styles.inputContainer, children: _jsxs(Box, { tag: "form-control-text-input-inner", style: {
|
|
22
|
+
...styles.inputInner,
|
|
23
|
+
...(disabled ? styles.inputDisabled : {}),
|
|
24
|
+
...(focus ? styles.inputFocused : {}),
|
|
25
|
+
...(error ? styles.inputError : {}),
|
|
26
|
+
...(success ? styles.inputSuccess : {}),
|
|
27
|
+
}, children: [_jsx(SelectInput, { ref: ref, value: value, placeholder: placeholder, options: options, onChange: onChange, disabled: disabled, onFocus: handleFocus, onBlur: handleBlur, style: styles.picker }), Platform.OS === 'web' && (_jsx(LucideIcon, { style: { ...styles.indicator, ...(focus ? styles.indicatorFocus : {}) }, size: "sm", name: "ChevronDown" }))] }) }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
|
|
28
|
+
});
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: "ui"[];
|
|
4
|
+
experimental: false;
|
|
5
|
+
description: string;
|
|
6
|
+
component: import("react").ForwardRefExoticComponent<Partial<Pick<import("@react-native-picker/picker").PickerProps<import("@react-native-picker/picker/typings/Picker").ItemValue>, "onFocus" | "onBlur">> & {
|
|
7
|
+
label: string;
|
|
8
|
+
labelRight?: React.ReactNode;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
} & import("..").FormControlCaptionProps & import("..").FormControlHintProps & {
|
|
11
|
+
value: string | null;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
options: import("./Select").SelectOption[];
|
|
14
|
+
onChange?: (value: string | null) => void;
|
|
15
|
+
} & import("react").RefAttributes<import("@react-native-picker/picker").Picker<string | number | object>>>;
|
|
16
|
+
styleFn: () => {
|
|
17
|
+
pickerContainer: {};
|
|
18
|
+
picker: {
|
|
19
|
+
width: "100%";
|
|
20
|
+
borderWidth: number;
|
|
21
|
+
backgroundColor: "transparent";
|
|
22
|
+
appearance: "none";
|
|
23
|
+
fontSize: 16;
|
|
24
|
+
lineHeight: 24;
|
|
25
|
+
letterSpacing: 0;
|
|
26
|
+
fontFamily: string;
|
|
27
|
+
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
28
|
+
flex: number;
|
|
29
|
+
outline: string;
|
|
30
|
+
padding: number;
|
|
31
|
+
paddingTop: import("@alveole/theme").Spacing;
|
|
32
|
+
paddingBottom: import("@alveole/theme").Spacing;
|
|
33
|
+
paddingLeft: import("@alveole/theme").Spacing;
|
|
34
|
+
paddingRight: import("@alveole/theme").Spacing;
|
|
35
|
+
color: string;
|
|
36
|
+
};
|
|
37
|
+
inputContainer: {
|
|
38
|
+
width: "100%";
|
|
39
|
+
padding: number;
|
|
40
|
+
};
|
|
41
|
+
inputInner: {
|
|
42
|
+
display: "flex";
|
|
43
|
+
flexDirection: "row";
|
|
44
|
+
gap: import("@alveole/theme").Spacing;
|
|
45
|
+
padding: number;
|
|
46
|
+
borderRadius: number;
|
|
47
|
+
borderWidth: number;
|
|
48
|
+
borderColor: string | undefined;
|
|
49
|
+
backgroundColor: "#FFFFFF";
|
|
50
|
+
overflow: "hidden";
|
|
51
|
+
width: "100%";
|
|
52
|
+
};
|
|
53
|
+
inputError: {
|
|
54
|
+
borderColor: string;
|
|
55
|
+
};
|
|
56
|
+
inputSuccess: {
|
|
57
|
+
borderColor: string;
|
|
58
|
+
};
|
|
59
|
+
inputDisabled: {
|
|
60
|
+
borderColor: string;
|
|
61
|
+
};
|
|
62
|
+
inputFocused: {
|
|
63
|
+
outlineStyle: "solid";
|
|
64
|
+
outlineWidth: number;
|
|
65
|
+
outlineColor: string;
|
|
66
|
+
outlineOffset: number;
|
|
67
|
+
};
|
|
68
|
+
indicator: {
|
|
69
|
+
position: "absolute";
|
|
70
|
+
right: import("@alveole/theme").Spacing;
|
|
71
|
+
top: import("@alveole/theme").Spacing;
|
|
72
|
+
};
|
|
73
|
+
indicatorFocus: {};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export default _default;
|
|
77
|
+
export declare const Default: () => import("react").JSX.Element;
|
|
78
|
+
export declare const States: () => import("react").JSX.Element;
|
|
79
|
+
export * as Sources from './Select.stories.sources';
|
|
80
|
+
//# sourceMappingURL=Select.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/Select.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAOkB;AAQlB,eAAO,MAAM,OAAO,mCAOnB,CAAC;AAEF,eAAO,MAAM,MAAM,mCAOlB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { Box } from '../../core';
|
|
4
|
+
import { Select } from './Select';
|
|
5
|
+
import { useStyles } from './Select.styles';
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Select',
|
|
8
|
+
tags: ['ui'],
|
|
9
|
+
experimental: false,
|
|
10
|
+
description: "Sélecteur mono-valeur natif avec label, hint et états d'erreur/succès.",
|
|
11
|
+
component: Select,
|
|
12
|
+
styleFn: useStyles,
|
|
13
|
+
};
|
|
14
|
+
const OPTIONS = [
|
|
15
|
+
{ label: 'Option A', value: 'a' },
|
|
16
|
+
{ label: 'Option B', value: 'b' },
|
|
17
|
+
{ label: 'Option C', value: 'c' },
|
|
18
|
+
];
|
|
19
|
+
export const Default = () => {
|
|
20
|
+
const [value, setValue] = useState(null);
|
|
21
|
+
return (_jsx(Box, { display: "flex", flexDirection: "column", gap: 24, children: _jsx(Select, { label: "S\u00E9lection", placeholder: "Choisir...", options: OPTIONS, value: value, onChange: setValue }) }));
|
|
22
|
+
};
|
|
23
|
+
export const States = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 24, children: [_jsx(Select, { label: "Avec valeur", options: OPTIONS, value: "b" }), _jsx(Select, { label: "Erreur", options: OPTIONS, value: null, error: "Ce champ est requis" }), _jsx(Select, { label: "Succ\u00E8s", options: OPTIONS, value: "a", success: "Valide" }), _jsx(Select, { label: "D\u00E9sactiv\u00E9", options: OPTIONS, value: "a", disabled: true })] }));
|
|
24
|
+
export * as Sources from './Select.stories.sources';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const Default: () => string;
|
|
2
|
+
export declare const States: () => string;
|
|
3
|
+
export declare const storySources: {
|
|
4
|
+
readonly Default: () => string;
|
|
5
|
+
readonly States: () => string;
|
|
6
|
+
};
|
|
7
|
+
export type StorySourceName = keyof typeof storySources;
|
|
8
|
+
//# sourceMappingURL=Select.stories.sources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/Select.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA0T,CAAC;AAE/U,eAAO,MAAM,MAAM,cAAib,CAAC;AAErc,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file is generated. Do not edit manually.
|
|
2
|
+
// Source: src/ui/Select/Select.stories.tsx
|
|
3
|
+
export const Default = () => "export const Default = () => {\n const [value, setValue] = useState<string | null>(null);\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <Select label=\"Sélection\" placeholder=\"Choisir...\" options={OPTIONS} value={value} onChange={setValue} />\n </Box>\n );\n};";
|
|
4
|
+
export const States = () => "export const States = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <Select label=\"Avec valeur\" options={OPTIONS} value=\"b\" />\n <Select label=\"Erreur\" options={OPTIONS} value={null} error=\"Ce champ est requis\" />\n <Select label=\"Succès\" options={OPTIONS} value=\"a\" success=\"Valide\" />\n <Select label=\"Désactivé\" options={OPTIONS} value=\"a\" disabled />\n </Box>\n);";
|
|
5
|
+
export const storySources = {
|
|
6
|
+
Default,
|
|
7
|
+
States,
|
|
8
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export declare const useStyles: () => {
|
|
2
|
+
pickerContainer: {};
|
|
3
|
+
picker: {
|
|
4
|
+
width: "100%";
|
|
5
|
+
borderWidth: number;
|
|
6
|
+
backgroundColor: "transparent";
|
|
7
|
+
appearance: "none";
|
|
8
|
+
fontSize: 16;
|
|
9
|
+
lineHeight: 24;
|
|
10
|
+
letterSpacing: 0;
|
|
11
|
+
fontFamily: string;
|
|
12
|
+
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
13
|
+
flex: number;
|
|
14
|
+
outline: string;
|
|
15
|
+
padding: number;
|
|
16
|
+
paddingTop: import("@alveole/theme").Spacing;
|
|
17
|
+
paddingBottom: import("@alveole/theme").Spacing;
|
|
18
|
+
paddingLeft: import("@alveole/theme").Spacing;
|
|
19
|
+
paddingRight: import("@alveole/theme").Spacing;
|
|
20
|
+
color: string;
|
|
21
|
+
};
|
|
22
|
+
inputContainer: {
|
|
23
|
+
width: "100%";
|
|
24
|
+
padding: number;
|
|
25
|
+
};
|
|
26
|
+
inputInner: {
|
|
27
|
+
display: "flex";
|
|
28
|
+
flexDirection: "row";
|
|
29
|
+
gap: import("@alveole/theme").Spacing;
|
|
30
|
+
padding: number;
|
|
31
|
+
borderRadius: number;
|
|
32
|
+
borderWidth: number;
|
|
33
|
+
borderColor: string | undefined;
|
|
34
|
+
backgroundColor: "#FFFFFF";
|
|
35
|
+
overflow: "hidden";
|
|
36
|
+
width: "100%";
|
|
37
|
+
};
|
|
38
|
+
inputError: {
|
|
39
|
+
borderColor: string;
|
|
40
|
+
};
|
|
41
|
+
inputSuccess: {
|
|
42
|
+
borderColor: string;
|
|
43
|
+
};
|
|
44
|
+
inputDisabled: {
|
|
45
|
+
borderColor: string;
|
|
46
|
+
};
|
|
47
|
+
inputFocused: {
|
|
48
|
+
outlineStyle: "solid";
|
|
49
|
+
outlineWidth: number;
|
|
50
|
+
outlineColor: string;
|
|
51
|
+
outlineOffset: number;
|
|
52
|
+
};
|
|
53
|
+
indicator: {
|
|
54
|
+
position: "absolute";
|
|
55
|
+
right: import("@alveole/theme").Spacing;
|
|
56
|
+
top: import("@alveole/theme").Spacing;
|
|
57
|
+
};
|
|
58
|
+
indicatorFocus: {};
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=Select.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/Select.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDnB,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { makeStyles } from '@alveole/theme';
|
|
2
|
+
import { Platform } from 'react-native';
|
|
3
|
+
export const useStyles = makeStyles(({ text, color, spacing }) => ({
|
|
4
|
+
pickerContainer: {},
|
|
5
|
+
picker: {
|
|
6
|
+
flex: 1,
|
|
7
|
+
outline: 'none',
|
|
8
|
+
padding: 0,
|
|
9
|
+
paddingTop: spacing('050'),
|
|
10
|
+
paddingBottom: spacing('050'),
|
|
11
|
+
paddingLeft: spacing('100'),
|
|
12
|
+
paddingRight: spacing('100'),
|
|
13
|
+
color: color.text['default-grey'],
|
|
14
|
+
...text['Corps de texte'].MD.Regular,
|
|
15
|
+
width: '100%',
|
|
16
|
+
borderWidth: 0,
|
|
17
|
+
backgroundColor: 'transparent',
|
|
18
|
+
appearance: 'none',
|
|
19
|
+
},
|
|
20
|
+
inputContainer: {
|
|
21
|
+
width: '100%',
|
|
22
|
+
padding: 0,
|
|
23
|
+
},
|
|
24
|
+
inputInner: {
|
|
25
|
+
display: 'flex',
|
|
26
|
+
flexDirection: 'row',
|
|
27
|
+
gap: spacing('050'),
|
|
28
|
+
padding: 0,
|
|
29
|
+
borderRadius: 8,
|
|
30
|
+
borderWidth: Platform.OS === 'ios' ? 0 : 1,
|
|
31
|
+
borderColor: Platform.OS === 'ios' ? undefined : color.border['default-grey'],
|
|
32
|
+
backgroundColor: '#FFFFFF',
|
|
33
|
+
overflow: 'hidden',
|
|
34
|
+
width: '100%',
|
|
35
|
+
},
|
|
36
|
+
inputError: {
|
|
37
|
+
borderColor: color.border['plain-error'],
|
|
38
|
+
},
|
|
39
|
+
inputSuccess: {
|
|
40
|
+
borderColor: color.border['plain-success'],
|
|
41
|
+
},
|
|
42
|
+
inputDisabled: {
|
|
43
|
+
borderColor: color.border['disabled-grey'],
|
|
44
|
+
},
|
|
45
|
+
inputFocused: {
|
|
46
|
+
outlineStyle: 'solid',
|
|
47
|
+
outlineWidth: 2,
|
|
48
|
+
outlineColor: color.system.focus,
|
|
49
|
+
outlineOffset: 2,
|
|
50
|
+
},
|
|
51
|
+
indicator: {
|
|
52
|
+
position: 'absolute',
|
|
53
|
+
right: spacing('100'),
|
|
54
|
+
top: spacing('075'),
|
|
55
|
+
},
|
|
56
|
+
indicatorFocus: {},
|
|
57
|
+
}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Picker } from '@react-native-picker/picker';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { NativePickerProps } from './NativePicker';
|
|
4
|
+
export type SelectInputProps = NativePickerProps;
|
|
5
|
+
export declare const SelectInput: React.ForwardRefExoticComponent<Omit<import("@react-native-picker/picker").PickerProps<import("@react-native-picker/picker/typings/Picker").ItemValue>, "enabled" | "value" | "onValueChange"> & {
|
|
6
|
+
value: string | null;
|
|
7
|
+
options: import("./Select").SelectOption[];
|
|
8
|
+
onChange?: (value: string | null) => void;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
} & React.RefAttributes<Picker<string | number | object>>>;
|
|
11
|
+
//# sourceMappingURL=SelectInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/SelectInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAgB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEjE,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAEjD,eAAO,MAAM,WAAW;;;;;0DAIvB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Picker } from '@react-native-picker/picker';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const SelectInput: React.ForwardRefExoticComponent<Omit<import("@react-native-picker/picker").PickerProps<import("@react-native-picker/picker/typings/Picker").ItemValue>, "enabled" | "value" | "onValueChange"> & {
|
|
4
|
+
value: string | null;
|
|
5
|
+
options: import("@alveole/components").SelectOption[];
|
|
6
|
+
onChange?: (value: string | null) => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
} & React.RefAttributes<Picker<string | number | object>>>;
|
|
9
|
+
//# sourceMappingURL=SelectInput.ios.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectInput.ios.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/SelectInput.ios.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,KAAgC,MAAM,OAAO,CAAC;AAMrD,eAAO,MAAM,WAAW;;;;;0DAmEvB,CAAC"}
|