@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
|
@@ -19,7 +19,7 @@ declare const _default: {
|
|
|
19
19
|
progressed: {
|
|
20
20
|
height: "100%";
|
|
21
21
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
22
|
-
backgroundColor:
|
|
22
|
+
backgroundColor: string;
|
|
23
23
|
};
|
|
24
24
|
progressedAbsolute: {
|
|
25
25
|
position: "absolute";
|
|
@@ -27,12 +27,12 @@ declare const _default: {
|
|
|
27
27
|
bottom: number;
|
|
28
28
|
left: number;
|
|
29
29
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
30
|
-
backgroundColor:
|
|
30
|
+
backgroundColor: string;
|
|
31
31
|
};
|
|
32
32
|
remaining: {
|
|
33
33
|
height: "100%";
|
|
34
34
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
35
|
-
backgroundColor:
|
|
35
|
+
backgroundColor: string;
|
|
36
36
|
};
|
|
37
37
|
remainingAbsolute: {
|
|
38
38
|
position: "absolute";
|
|
@@ -40,10 +40,10 @@ declare const _default: {
|
|
|
40
40
|
bottom: number;
|
|
41
41
|
right: number;
|
|
42
42
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
43
|
-
backgroundColor:
|
|
43
|
+
backgroundColor: string;
|
|
44
44
|
};
|
|
45
45
|
progress: {
|
|
46
|
-
backgroundColor:
|
|
46
|
+
backgroundColor: string;
|
|
47
47
|
width: "100%";
|
|
48
48
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
49
49
|
overflow: "hidden";
|
|
@@ -54,10 +54,10 @@ declare const _default: {
|
|
|
54
54
|
bottom: number;
|
|
55
55
|
width: "100%";
|
|
56
56
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
57
|
-
backgroundColor:
|
|
57
|
+
backgroundColor: string;
|
|
58
58
|
};
|
|
59
59
|
indicator: {
|
|
60
|
-
color:
|
|
60
|
+
color: string;
|
|
61
61
|
marginTop: import("@alveole/theme").Spacing;
|
|
62
62
|
marginLeft: string;
|
|
63
63
|
marginRight: string;
|
|
@@ -12,7 +12,7 @@ export declare const useStyles: () => {
|
|
|
12
12
|
progressed: {
|
|
13
13
|
height: "100%";
|
|
14
14
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
15
|
-
backgroundColor:
|
|
15
|
+
backgroundColor: string;
|
|
16
16
|
};
|
|
17
17
|
progressedAbsolute: {
|
|
18
18
|
position: "absolute";
|
|
@@ -20,12 +20,12 @@ export declare const useStyles: () => {
|
|
|
20
20
|
bottom: number;
|
|
21
21
|
left: number;
|
|
22
22
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
23
|
-
backgroundColor:
|
|
23
|
+
backgroundColor: string;
|
|
24
24
|
};
|
|
25
25
|
remaining: {
|
|
26
26
|
height: "100%";
|
|
27
27
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
28
|
-
backgroundColor:
|
|
28
|
+
backgroundColor: string;
|
|
29
29
|
};
|
|
30
30
|
remainingAbsolute: {
|
|
31
31
|
position: "absolute";
|
|
@@ -33,10 +33,10 @@ export declare const useStyles: () => {
|
|
|
33
33
|
bottom: number;
|
|
34
34
|
right: number;
|
|
35
35
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
36
|
-
backgroundColor:
|
|
36
|
+
backgroundColor: string;
|
|
37
37
|
};
|
|
38
38
|
progress: {
|
|
39
|
-
backgroundColor:
|
|
39
|
+
backgroundColor: string;
|
|
40
40
|
width: "100%";
|
|
41
41
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
42
42
|
overflow: "hidden";
|
|
@@ -47,10 +47,10 @@ export declare const useStyles: () => {
|
|
|
47
47
|
bottom: number;
|
|
48
48
|
width: "100%";
|
|
49
49
|
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
50
|
-
backgroundColor:
|
|
50
|
+
backgroundColor: string;
|
|
51
51
|
};
|
|
52
52
|
indicator: {
|
|
53
|
-
color:
|
|
53
|
+
color: string;
|
|
54
54
|
marginTop: import("@alveole/theme").Spacing;
|
|
55
55
|
marginLeft: string;
|
|
56
56
|
marginRight: string;
|
|
@@ -8,7 +8,7 @@ import { useStyles } from './ProgressBar.styles';
|
|
|
8
8
|
export const ProgressBarDeterminate = (props) => {
|
|
9
9
|
const { clamped, indicator, indicatorPrecision = 3, style, onLayout, ...boxProps } = props;
|
|
10
10
|
const styles = useStyles();
|
|
11
|
-
const animatedProgress = React.
|
|
11
|
+
const [animatedProgress] = React.useState(() => new Animated.Value(clamped));
|
|
12
12
|
const remaining = React.useMemo(() => Animated.subtract(1, animatedProgress), [animatedProgress]);
|
|
13
13
|
const animatedGap = React.useMemo(() => animatedProgress.interpolate({
|
|
14
14
|
inputRange: [0, 0.0001, 0.9999, 1],
|
|
@@ -6,7 +6,7 @@ import { PROGRESS_BAR_HEIGHT, PROGRESS_DURATION } from './ProgressBar.constants'
|
|
|
6
6
|
import { useStyles } from './ProgressBar.styles';
|
|
7
7
|
export const ProgressBarIndeterminate = (props) => {
|
|
8
8
|
const { style, ...boxProps } = props;
|
|
9
|
-
const progress = React.
|
|
9
|
+
const [progress] = React.useState(() => new Animated.Value(0));
|
|
10
10
|
const styles = useStyles();
|
|
11
11
|
const translateRange = React.useMemo(() => progress.interpolate({
|
|
12
12
|
inputRange: [0, 1],
|
|
@@ -6,7 +6,7 @@ import { PROGRESS_BAR_GAP, PROGRESS_BAR_HEIGHT, PROGRESS_DURATION } from './Prog
|
|
|
6
6
|
import { useStyles } from './ProgressBar.styles';
|
|
7
7
|
export const ProgressBarLoop = (props) => {
|
|
8
8
|
const { style, onLayout, ...boxProps } = props;
|
|
9
|
-
const progress = React.
|
|
9
|
+
const [progress] = React.useState(() => new Animated.Value(0));
|
|
10
10
|
const styles = useStyles();
|
|
11
11
|
const [width, setWidth] = React.useState(0);
|
|
12
12
|
const loopProgressWidth = React.useMemo(() => Math.max(width - PROGRESS_BAR_GAP, 0), [width]);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FormControlCaptionProps, FormControlHintProps, FormControlLabelProps } from '@alveole/components';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TamaguiElement, RadioGroupProps as TamaguiRadioGroupProps } from 'tamagui';
|
|
4
|
+
export type RadioGroupElement = TamaguiElement;
|
|
5
|
+
export type RadioGroupProps = Omit<TamaguiRadioGroupProps, 'value' | 'onValueChange' | 'direction'> & FormControlCaptionProps & FormControlLabelProps & FormControlHintProps & {
|
|
6
|
+
label?: string;
|
|
7
|
+
value?: TamaguiRadioGroupProps['value'];
|
|
8
|
+
onChange?: TamaguiRadioGroupProps['onValueChange'];
|
|
9
|
+
variant?: 'default' | 'card';
|
|
10
|
+
};
|
|
11
|
+
export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<TamaguiRadioGroupProps, "direction" | "value" | "onValueChange"> & FormControlCaptionProps & {
|
|
12
|
+
label: string;
|
|
13
|
+
labelRight?: React.ReactNode;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
} & FormControlHintProps & {
|
|
16
|
+
label?: string;
|
|
17
|
+
value?: TamaguiRadioGroupProps["value"];
|
|
18
|
+
onChange?: TamaguiRadioGroupProps["onValueChange"];
|
|
19
|
+
variant?: "default" | "card";
|
|
20
|
+
} & React.RefAttributes<TamaguiElement>>;
|
|
21
|
+
//# sourceMappingURL=RadioGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/ui/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,uBAAuB,EAEvB,oBAAoB,EAEpB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAmC,eAAe,IAAI,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAIrH,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAE/C,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,sBAAsB,EAAE,OAAO,GAAG,eAAe,GAAG,WAAW,CAAC,GACjG,uBAAuB,GACvB,qBAAqB,GACrB,oBAAoB,GAAG;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,sBAAsB,CAAC,eAAe,CAAC,CAAC;IACnD,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAC9B,CAAC;AAEJ,eAAO,MAAM,UAAU;;;;;YANX,MAAM;YACN,sBAAsB,CAAC,OAAO,CAAC;eAC5B,sBAAsB,CAAC,eAAe,CAAC;cACxC,SAAS,GAAG,MAAM;wCAuD9B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, FormControlCaption, FormControlHint, FormControlLabel, } from '@alveole/components';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { RadioGroup as TamaguiRadioGroup } from 'tamagui';
|
|
5
|
+
import { useStyles } from './RadioGroup.styles';
|
|
6
|
+
import { RadioGroupContext } from './RadioGroupContext';
|
|
7
|
+
export const RadioGroup = React.forwardRef(function RadioGroup(props, ref) {
|
|
8
|
+
const { children, value, label, labelRight, hint, error, success, disabled, onChange, variant = 'default', ...groupProps } = props;
|
|
9
|
+
const styles = useStyles();
|
|
10
|
+
return (_jsx(RadioGroupContext.Provider, { value: { value, onChange }, children: _jsxs(Box, { tag: "radio-group", style: styles.container, children: [_jsxs(Box, { tag: "radio-group-heading", children: [label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(Box, { width: '100%', children: _jsx(TamaguiRadioGroup, { orientation: "vertical", ref: ref, value: value, onValueChange: onChange, style: [styles.group, variant === 'card' ? styles.groupCard : styles.groupItem], width: "100%", ...groupProps, minWidth: '100%', children: children }) }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }) }));
|
|
11
|
+
});
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: "ui"[];
|
|
4
|
+
experimental: false;
|
|
5
|
+
description: string;
|
|
6
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("tamagui").RadioGroupProps, "direction" | "value" | "onValueChange"> & import("..").FormControlCaptionProps & {
|
|
7
|
+
label: string;
|
|
8
|
+
labelRight?: React.ReactNode;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
} & import("..").FormControlHintProps & {
|
|
11
|
+
label?: string;
|
|
12
|
+
value?: import("tamagui").RadioGroupProps["value"];
|
|
13
|
+
onChange?: import("tamagui").RadioGroupProps["onValueChange"];
|
|
14
|
+
variant?: "default" | "card";
|
|
15
|
+
} & import("react").RefAttributes<import("tamagui").TamaguiElement>> & {
|
|
16
|
+
Item: (props: import("./RadioGroupItem").RadioGroupItemProps) => import("react").JSX.Element;
|
|
17
|
+
Card: (props: import("./RadioGroupCard").RadioGroupCardProps) => import("react").JSX.Element;
|
|
18
|
+
};
|
|
19
|
+
styleFn: () => {
|
|
20
|
+
container: {
|
|
21
|
+
width: "100%";
|
|
22
|
+
display: "flex";
|
|
23
|
+
flexDirection: "column";
|
|
24
|
+
alignItems: "flex-start";
|
|
25
|
+
gap: import("@alveole/theme").Spacing;
|
|
26
|
+
};
|
|
27
|
+
group: {
|
|
28
|
+
display: "flex";
|
|
29
|
+
alignItems: "flex-start";
|
|
30
|
+
width: "100%";
|
|
31
|
+
flexDirection: "column";
|
|
32
|
+
};
|
|
33
|
+
groupCard: {
|
|
34
|
+
borderColor: string;
|
|
35
|
+
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
36
|
+
borderWidth: number;
|
|
37
|
+
overflow: "hidden";
|
|
38
|
+
};
|
|
39
|
+
groupItem: {
|
|
40
|
+
gap: import("@alveole/theme").Spacing;
|
|
41
|
+
};
|
|
42
|
+
label: {
|
|
43
|
+
fontSize: 14;
|
|
44
|
+
lineHeight: 20;
|
|
45
|
+
letterSpacing: 0;
|
|
46
|
+
fontFamily: string;
|
|
47
|
+
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
48
|
+
color: string;
|
|
49
|
+
};
|
|
50
|
+
card: {
|
|
51
|
+
display: "flex";
|
|
52
|
+
flexDirection: "row";
|
|
53
|
+
width: "100%";
|
|
54
|
+
};
|
|
55
|
+
itemCard: {
|
|
56
|
+
padding: number;
|
|
57
|
+
width: "100%";
|
|
58
|
+
height: undefined;
|
|
59
|
+
display: "flex";
|
|
60
|
+
flexDirection: "row";
|
|
61
|
+
alignItems: "center";
|
|
62
|
+
cursor: "pointer";
|
|
63
|
+
transitionDuration: "0.1s";
|
|
64
|
+
transitionTimingFunction: "ease-in-out";
|
|
65
|
+
};
|
|
66
|
+
itemCardHover: {
|
|
67
|
+
backgroundColor: string;
|
|
68
|
+
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
69
|
+
boxShadow: undefined;
|
|
70
|
+
};
|
|
71
|
+
itemCardContent: {
|
|
72
|
+
display: "flex";
|
|
73
|
+
flex: number;
|
|
74
|
+
height: "100%";
|
|
75
|
+
flexDirection: "row";
|
|
76
|
+
justifyContent: "flex-start";
|
|
77
|
+
alignItems: "center";
|
|
78
|
+
paddingLeft: import("@alveole/theme").Spacing;
|
|
79
|
+
paddingRight: import("@alveole/theme").Spacing;
|
|
80
|
+
paddingTop: import("@alveole/theme").Spacing;
|
|
81
|
+
paddingBottom: import("@alveole/theme").Spacing;
|
|
82
|
+
gap: import("@alveole/theme").Spacing;
|
|
83
|
+
};
|
|
84
|
+
itemContainer: {
|
|
85
|
+
backgroundColor: "#FFFFFF";
|
|
86
|
+
borderColor: string;
|
|
87
|
+
};
|
|
88
|
+
itemContainerSm: {
|
|
89
|
+
height: import("@alveole/theme").Spacing;
|
|
90
|
+
width: import("@alveole/theme").Spacing;
|
|
91
|
+
};
|
|
92
|
+
itemContainerMd: {
|
|
93
|
+
height: import("@alveole/theme").Spacing;
|
|
94
|
+
width: import("@alveole/theme").Spacing;
|
|
95
|
+
};
|
|
96
|
+
itemCardContainer: {
|
|
97
|
+
height: import("@alveole/theme").Spacing;
|
|
98
|
+
width: import("@alveole/theme").Spacing;
|
|
99
|
+
backgroundColor: "#FFFFFF";
|
|
100
|
+
};
|
|
101
|
+
itemContainerActive: {
|
|
102
|
+
borderColor: string;
|
|
103
|
+
};
|
|
104
|
+
itemIndicator: {
|
|
105
|
+
backgroundColor: string;
|
|
106
|
+
height: number;
|
|
107
|
+
width: number;
|
|
108
|
+
};
|
|
109
|
+
itemCardLabel: {
|
|
110
|
+
textAlign: "center";
|
|
111
|
+
fontSize: 14;
|
|
112
|
+
lineHeight: 20;
|
|
113
|
+
letterSpacing: 0;
|
|
114
|
+
fontFamily: string;
|
|
115
|
+
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
116
|
+
cursor: "pointer";
|
|
117
|
+
color: string;
|
|
118
|
+
};
|
|
119
|
+
itemCardIcon: {
|
|
120
|
+
display: "flex";
|
|
121
|
+
justifyContent: "center";
|
|
122
|
+
alignItems: "center";
|
|
123
|
+
color: string;
|
|
124
|
+
};
|
|
125
|
+
radioGroupCardContent: {
|
|
126
|
+
display: "flex";
|
|
127
|
+
flexDirection: "row";
|
|
128
|
+
flex: number;
|
|
129
|
+
alignItems: "center";
|
|
130
|
+
justifyContent: "flex-start";
|
|
131
|
+
height: "100%";
|
|
132
|
+
paddingLeft: import("@alveole/theme").Spacing;
|
|
133
|
+
paddingRight: import("@alveole/theme").Spacing;
|
|
134
|
+
gap: import("@alveole/theme").Spacing;
|
|
135
|
+
};
|
|
136
|
+
radioGroupCardLabelContainer: {
|
|
137
|
+
paddingTop: import("@alveole/theme").Spacing;
|
|
138
|
+
paddingBottom: import("@alveole/theme").Spacing;
|
|
139
|
+
display: "flex";
|
|
140
|
+
flexDirection: "row";
|
|
141
|
+
width: "100%";
|
|
142
|
+
alignItems: "center";
|
|
143
|
+
gap: import("@alveole/theme").Spacing;
|
|
144
|
+
flex: number;
|
|
145
|
+
};
|
|
146
|
+
itemCardSeparator: {
|
|
147
|
+
borderTopWidth: number;
|
|
148
|
+
borderTopColor: string;
|
|
149
|
+
};
|
|
150
|
+
radioGroupCardLabel: {
|
|
151
|
+
fontSize: 14;
|
|
152
|
+
lineHeight: 20;
|
|
153
|
+
letterSpacing: 0;
|
|
154
|
+
fontFamily: string;
|
|
155
|
+
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
export default _default;
|
|
160
|
+
export declare const Default: () => import("react").JSX.Element;
|
|
161
|
+
export declare const Cards: () => import("react").JSX.Element;
|
|
162
|
+
export declare const WithError: () => import("react").JSX.Element;
|
|
163
|
+
export * as Sources from './RadioGroup.stories.sources';
|
|
164
|
+
//# sourceMappingURL=RadioGroup.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/RadioGroup/RadioGroup.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAOkB;AAElB,eAAO,MAAM,OAAO,mCASnB,CAAC;AAEF,eAAO,MAAM,KAAK,mCAQjB,CAAC;AAEF,eAAO,MAAM,SAAS,mCAOrB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { Box } from '../../core';
|
|
4
|
+
import { RadioGroup } from './index';
|
|
5
|
+
import { useStyles } from './RadioGroup.styles';
|
|
6
|
+
export default {
|
|
7
|
+
title: 'RadioGroup',
|
|
8
|
+
tags: ['ui'],
|
|
9
|
+
experimental: false,
|
|
10
|
+
description: 'Groupe de boutons radio avec variantes liste et card.',
|
|
11
|
+
component: RadioGroup,
|
|
12
|
+
styleFn: useStyles,
|
|
13
|
+
};
|
|
14
|
+
export const Default = () => {
|
|
15
|
+
const [value, setValue] = useState('a');
|
|
16
|
+
return (_jsxs(RadioGroup, { value: value, onChange: setValue, label: "Choix", children: [_jsx(RadioGroup.Item, { value: "a", children: "Option A" }), _jsx(RadioGroup.Item, { value: "b", children: "Option B" }), _jsx(RadioGroup.Item, { value: "c", children: "Option C" })] }));
|
|
17
|
+
};
|
|
18
|
+
export const Cards = () => {
|
|
19
|
+
const [value, setValue] = useState('oui');
|
|
20
|
+
return (_jsxs(RadioGroup, { value: value, onChange: setValue, label: "Confirmez-vous ?", children: [_jsx(RadioGroup.Card, { value: "oui", label: "Oui", icon: "Check" }), _jsx(RadioGroup.Card, { value: "non", label: "Non", icon: "X" })] }));
|
|
21
|
+
};
|
|
22
|
+
export const WithError = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap: 24, children: _jsxs(RadioGroup, { value: "a", label: "Avec erreur", error: "Veuillez faire un choix", children: [_jsx(RadioGroup.Item, { value: "a", children: "Option A" }), _jsx(RadioGroup.Item, { value: "b", children: "Option B" })] }) }));
|
|
23
|
+
export * as Sources from './RadioGroup.stories.sources';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const Default: () => string;
|
|
2
|
+
export declare const Cards: () => string;
|
|
3
|
+
export declare const WithError: () => string;
|
|
4
|
+
export declare const storySources: {
|
|
5
|
+
readonly Default: () => string;
|
|
6
|
+
readonly Cards: () => string;
|
|
7
|
+
readonly WithError: () => string;
|
|
8
|
+
};
|
|
9
|
+
export type StorySourceName = keyof typeof storySources;
|
|
10
|
+
//# sourceMappingURL=RadioGroup.stories.sources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/RadioGroup/RadioGroup.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA+X,CAAC;AAEpZ,eAAO,MAAM,KAAK,cAAqV,CAAC;AAExW,eAAO,MAAM,SAAS,cAA4V,CAAC;AAEnX,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file is generated. Do not edit manually.
|
|
2
|
+
// Source: src/ui/RadioGroup/RadioGroup.stories.tsx
|
|
3
|
+
export const Default = () => "export const Default = () => {\n const [value, setValue] = useState('a');\n return (\n <RadioGroup value={value} onChange={setValue} label=\"Choix\">\n <RadioGroup.Item value=\"a\">Option A</RadioGroup.Item>\n <RadioGroup.Item value=\"b\">Option B</RadioGroup.Item>\n <RadioGroup.Item value=\"c\">Option C</RadioGroup.Item>\n </RadioGroup>\n );\n};";
|
|
4
|
+
export const Cards = () => "export const Cards = () => {\n const [value, setValue] = useState('oui');\n return (\n <RadioGroup value={value} onChange={setValue} label=\"Confirmez-vous ?\">\n <RadioGroup.Card value=\"oui\" label=\"Oui\" icon=\"Check\" />\n <RadioGroup.Card value=\"non\" label=\"Non\" icon=\"X\" />\n </RadioGroup>\n );\n};";
|
|
5
|
+
export const WithError = () => "export const WithError = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <RadioGroup value=\"a\" label=\"Avec erreur\" error=\"Veuillez faire un choix\">\n <RadioGroup.Item value=\"a\">Option A</RadioGroup.Item>\n <RadioGroup.Item value=\"b\">Option B</RadioGroup.Item>\n </RadioGroup>\n </Box>\n);";
|
|
6
|
+
export const storySources = {
|
|
7
|
+
Default,
|
|
8
|
+
Cards,
|
|
9
|
+
WithError,
|
|
10
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
export declare const useStyles: () => {
|
|
2
|
+
container: {
|
|
3
|
+
width: "100%";
|
|
4
|
+
display: "flex";
|
|
5
|
+
flexDirection: "column";
|
|
6
|
+
alignItems: "flex-start";
|
|
7
|
+
gap: import("@alveole/theme").Spacing;
|
|
8
|
+
};
|
|
9
|
+
group: {
|
|
10
|
+
display: "flex";
|
|
11
|
+
alignItems: "flex-start";
|
|
12
|
+
width: "100%";
|
|
13
|
+
flexDirection: "column";
|
|
14
|
+
};
|
|
15
|
+
groupCard: {
|
|
16
|
+
borderColor: string;
|
|
17
|
+
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
18
|
+
borderWidth: number;
|
|
19
|
+
overflow: "hidden";
|
|
20
|
+
};
|
|
21
|
+
groupItem: {
|
|
22
|
+
gap: import("@alveole/theme").Spacing;
|
|
23
|
+
};
|
|
24
|
+
label: {
|
|
25
|
+
fontSize: 14;
|
|
26
|
+
lineHeight: 20;
|
|
27
|
+
letterSpacing: 0;
|
|
28
|
+
fontFamily: string;
|
|
29
|
+
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
30
|
+
color: string;
|
|
31
|
+
};
|
|
32
|
+
card: {
|
|
33
|
+
display: "flex";
|
|
34
|
+
flexDirection: "row";
|
|
35
|
+
width: "100%";
|
|
36
|
+
};
|
|
37
|
+
itemCard: {
|
|
38
|
+
padding: number;
|
|
39
|
+
width: "100%";
|
|
40
|
+
height: undefined;
|
|
41
|
+
display: "flex";
|
|
42
|
+
flexDirection: "row";
|
|
43
|
+
alignItems: "center";
|
|
44
|
+
cursor: "pointer";
|
|
45
|
+
transitionDuration: "0.1s";
|
|
46
|
+
transitionTimingFunction: "ease-in-out";
|
|
47
|
+
};
|
|
48
|
+
itemCardHover: {
|
|
49
|
+
backgroundColor: string;
|
|
50
|
+
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
51
|
+
boxShadow: undefined;
|
|
52
|
+
};
|
|
53
|
+
itemCardContent: {
|
|
54
|
+
display: "flex";
|
|
55
|
+
flex: number;
|
|
56
|
+
height: "100%";
|
|
57
|
+
flexDirection: "row";
|
|
58
|
+
justifyContent: "flex-start";
|
|
59
|
+
alignItems: "center";
|
|
60
|
+
paddingLeft: import("@alveole/theme").Spacing;
|
|
61
|
+
paddingRight: import("@alveole/theme").Spacing;
|
|
62
|
+
paddingTop: import("@alveole/theme").Spacing;
|
|
63
|
+
paddingBottom: import("@alveole/theme").Spacing;
|
|
64
|
+
gap: import("@alveole/theme").Spacing;
|
|
65
|
+
};
|
|
66
|
+
itemContainer: {
|
|
67
|
+
backgroundColor: "#FFFFFF";
|
|
68
|
+
borderColor: string;
|
|
69
|
+
};
|
|
70
|
+
itemContainerSm: {
|
|
71
|
+
height: import("@alveole/theme").Spacing;
|
|
72
|
+
width: import("@alveole/theme").Spacing;
|
|
73
|
+
};
|
|
74
|
+
itemContainerMd: {
|
|
75
|
+
height: import("@alveole/theme").Spacing;
|
|
76
|
+
width: import("@alveole/theme").Spacing;
|
|
77
|
+
};
|
|
78
|
+
itemCardContainer: {
|
|
79
|
+
height: import("@alveole/theme").Spacing;
|
|
80
|
+
width: import("@alveole/theme").Spacing;
|
|
81
|
+
backgroundColor: "#FFFFFF";
|
|
82
|
+
};
|
|
83
|
+
itemContainerActive: {
|
|
84
|
+
borderColor: string;
|
|
85
|
+
};
|
|
86
|
+
itemIndicator: {
|
|
87
|
+
backgroundColor: string;
|
|
88
|
+
height: number;
|
|
89
|
+
width: number;
|
|
90
|
+
};
|
|
91
|
+
itemCardLabel: {
|
|
92
|
+
textAlign: "center";
|
|
93
|
+
fontSize: 14;
|
|
94
|
+
lineHeight: 20;
|
|
95
|
+
letterSpacing: 0;
|
|
96
|
+
fontFamily: string;
|
|
97
|
+
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
98
|
+
cursor: "pointer";
|
|
99
|
+
color: string;
|
|
100
|
+
};
|
|
101
|
+
itemCardIcon: {
|
|
102
|
+
display: "flex";
|
|
103
|
+
justifyContent: "center";
|
|
104
|
+
alignItems: "center";
|
|
105
|
+
color: string;
|
|
106
|
+
};
|
|
107
|
+
radioGroupCardContent: {
|
|
108
|
+
display: "flex";
|
|
109
|
+
flexDirection: "row";
|
|
110
|
+
flex: number;
|
|
111
|
+
alignItems: "center";
|
|
112
|
+
justifyContent: "flex-start";
|
|
113
|
+
height: "100%";
|
|
114
|
+
paddingLeft: import("@alveole/theme").Spacing;
|
|
115
|
+
paddingRight: import("@alveole/theme").Spacing;
|
|
116
|
+
gap: import("@alveole/theme").Spacing;
|
|
117
|
+
};
|
|
118
|
+
radioGroupCardLabelContainer: {
|
|
119
|
+
paddingTop: import("@alveole/theme").Spacing;
|
|
120
|
+
paddingBottom: import("@alveole/theme").Spacing;
|
|
121
|
+
display: "flex";
|
|
122
|
+
flexDirection: "row";
|
|
123
|
+
width: "100%";
|
|
124
|
+
alignItems: "center";
|
|
125
|
+
gap: import("@alveole/theme").Spacing;
|
|
126
|
+
flex: number;
|
|
127
|
+
};
|
|
128
|
+
itemCardSeparator: {
|
|
129
|
+
borderTopWidth: number;
|
|
130
|
+
borderTopColor: string;
|
|
131
|
+
};
|
|
132
|
+
radioGroupCardLabel: {
|
|
133
|
+
fontSize: 14;
|
|
134
|
+
lineHeight: 20;
|
|
135
|
+
letterSpacing: 0;
|
|
136
|
+
fontFamily: string;
|
|
137
|
+
fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
//# sourceMappingURL=RadioGroup.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/RadioGroup/RadioGroup.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8HnB,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { makeStyles } from '@alveole/theme';
|
|
2
|
+
import { Platform } from 'react-native';
|
|
3
|
+
export const useStyles = makeStyles(({ text, color, spacing, radius }) => ({
|
|
4
|
+
container: {
|
|
5
|
+
width: '100%',
|
|
6
|
+
display: 'flex',
|
|
7
|
+
flexDirection: 'column',
|
|
8
|
+
alignItems: 'flex-start',
|
|
9
|
+
gap: spacing('025'),
|
|
10
|
+
},
|
|
11
|
+
group: {
|
|
12
|
+
display: 'flex',
|
|
13
|
+
alignItems: 'flex-start',
|
|
14
|
+
width: '100%',
|
|
15
|
+
flexDirection: 'column',
|
|
16
|
+
},
|
|
17
|
+
groupCard: {
|
|
18
|
+
borderColor: color.border['default-grey'],
|
|
19
|
+
borderRadius: radius('md'),
|
|
20
|
+
borderWidth: 1,
|
|
21
|
+
overflow: 'hidden',
|
|
22
|
+
},
|
|
23
|
+
groupItem: {
|
|
24
|
+
gap: spacing('100'),
|
|
25
|
+
},
|
|
26
|
+
label: {
|
|
27
|
+
color: color.text['title-grey'],
|
|
28
|
+
...text['Corps de texte'].SM.Bold,
|
|
29
|
+
},
|
|
30
|
+
card: {
|
|
31
|
+
display: 'flex',
|
|
32
|
+
flexDirection: 'row',
|
|
33
|
+
width: '100%',
|
|
34
|
+
},
|
|
35
|
+
itemCard: {
|
|
36
|
+
padding: 0,
|
|
37
|
+
width: '100%',
|
|
38
|
+
height: undefined,
|
|
39
|
+
display: 'flex',
|
|
40
|
+
flexDirection: 'row',
|
|
41
|
+
alignItems: 'center',
|
|
42
|
+
cursor: 'pointer',
|
|
43
|
+
transitionDuration: '0.1s',
|
|
44
|
+
transitionTimingFunction: 'ease-in-out',
|
|
45
|
+
},
|
|
46
|
+
itemCardHover: {
|
|
47
|
+
backgroundColor: color.background['default-hover'],
|
|
48
|
+
borderRadius: radius('md'),
|
|
49
|
+
boxShadow: undefined,
|
|
50
|
+
},
|
|
51
|
+
itemCardContent: {
|
|
52
|
+
display: 'flex',
|
|
53
|
+
flex: 1,
|
|
54
|
+
height: '100%',
|
|
55
|
+
flexDirection: 'row',
|
|
56
|
+
justifyContent: 'flex-start',
|
|
57
|
+
alignItems: 'center',
|
|
58
|
+
paddingLeft: spacing('100'),
|
|
59
|
+
paddingRight: spacing('100'),
|
|
60
|
+
paddingTop: spacing('075'),
|
|
61
|
+
paddingBottom: spacing('075'),
|
|
62
|
+
gap: spacing('075'),
|
|
63
|
+
},
|
|
64
|
+
itemContainer: {
|
|
65
|
+
backgroundColor: '#FFFFFF',
|
|
66
|
+
borderColor: color.light.border['action-high-primary'],
|
|
67
|
+
},
|
|
68
|
+
itemContainerSm: {
|
|
69
|
+
height: spacing('100'),
|
|
70
|
+
width: spacing('100'),
|
|
71
|
+
},
|
|
72
|
+
itemContainerMd: {
|
|
73
|
+
height: spacing('150'),
|
|
74
|
+
width: spacing('150'),
|
|
75
|
+
},
|
|
76
|
+
itemCardContainer: {
|
|
77
|
+
height: spacing('100'),
|
|
78
|
+
width: spacing('100'),
|
|
79
|
+
backgroundColor: '#FFFFFF',
|
|
80
|
+
},
|
|
81
|
+
itemContainerActive: {
|
|
82
|
+
borderColor: color.light.border['action-high-primary'],
|
|
83
|
+
},
|
|
84
|
+
itemIndicator: {
|
|
85
|
+
backgroundColor: color.light.background['action-high-primary'],
|
|
86
|
+
height: 8,
|
|
87
|
+
width: 8,
|
|
88
|
+
},
|
|
89
|
+
itemCardLabel: {
|
|
90
|
+
cursor: 'pointer',
|
|
91
|
+
color: color.text['default-grey'],
|
|
92
|
+
...text['Corps de texte'].SM.Bold,
|
|
93
|
+
textAlign: 'center',
|
|
94
|
+
},
|
|
95
|
+
itemCardIcon: {
|
|
96
|
+
display: 'flex',
|
|
97
|
+
justifyContent: 'center',
|
|
98
|
+
alignItems: 'center',
|
|
99
|
+
color: color.text.mention,
|
|
100
|
+
},
|
|
101
|
+
radioGroupCardContent: {
|
|
102
|
+
display: 'flex',
|
|
103
|
+
flexDirection: 'row',
|
|
104
|
+
flex: 1,
|
|
105
|
+
alignItems: 'center',
|
|
106
|
+
justifyContent: 'flex-start',
|
|
107
|
+
height: '100%',
|
|
108
|
+
paddingLeft: spacing('100'),
|
|
109
|
+
paddingRight: spacing('100'),
|
|
110
|
+
gap: spacing('075'),
|
|
111
|
+
},
|
|
112
|
+
radioGroupCardLabelContainer: {
|
|
113
|
+
paddingTop: spacing('075'),
|
|
114
|
+
paddingBottom: spacing('075'),
|
|
115
|
+
display: 'flex',
|
|
116
|
+
flexDirection: 'row',
|
|
117
|
+
width: '100%',
|
|
118
|
+
alignItems: 'center',
|
|
119
|
+
gap: spacing('050'),
|
|
120
|
+
flex: 1,
|
|
121
|
+
},
|
|
122
|
+
itemCardSeparator: {
|
|
123
|
+
borderTopWidth: Platform.OS === 'ios' ? 3 : 1,
|
|
124
|
+
borderTopColor: color.light.border['default-grey'],
|
|
125
|
+
},
|
|
126
|
+
radioGroupCardLabel: {
|
|
127
|
+
...text['Corps de texte'].SM.Regular,
|
|
128
|
+
},
|
|
129
|
+
}));
|