forked from italia/design-comuni-plone-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: otp code in volto-form-block for bcc email fields (#652)
* feat: otp code in volto-form-block for bcc email fields * fix: widget otp * chore: updated volto-form-block * chore: updated volto-form-block * chore: updated volto-form-block
- Loading branch information
1 parent
81a5a9e
commit c2a9a8c
Showing
15 changed files
with
144 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,7 +205,6 @@ const PersonaDocumenti = ({ content }) => { | |
/> | ||
</RichTextSection> | ||
)} | ||
|
||
</> | ||
); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
src/customizations/volto-form-block/components/Widget/Button.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/** | ||
* customizations: | ||
* used design-react-kit button | ||
* | ||
* | ||
* Button component. | ||
* This is a wrapper for Buttons, to eventually customize Button component if you don't like to use semantic-ui, for example. | ||
* @module components/Widget/OTPWidget | ||
*/ | ||
|
||
import { Button as DesignButton } from 'design-react-kit'; | ||
|
||
const Button = (props) => { | ||
let _props = { ...props }; | ||
if (props.primary) { | ||
_props.color = 'primary'; | ||
delete _props.primary; | ||
} | ||
if (props.secondary) { | ||
_props.color = 'secondary'; | ||
delete _props.secondary; | ||
} | ||
if (props.basic) { | ||
_props.outline = true; | ||
delete _props.basic; | ||
} | ||
if (props.size) { | ||
switch (props.size) { | ||
case 'mini': | ||
case 'tiny': | ||
case 'small': | ||
_props.size = 'xs'; | ||
break; | ||
case 'medium': | ||
case 'large': | ||
_props.size = 'sm'; | ||
break; | ||
case 'big': | ||
case 'huge': | ||
case 'massive': | ||
_props.size = 'lg'; | ||
break; | ||
default: | ||
break; | ||
} | ||
} | ||
return <DesignButton {..._props} />; | ||
}; | ||
|
||
export default Button; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ | |
} | ||
} | ||
} | ||
|
||
&.image img { | ||
object-fit: contain; | ||
object-position: center; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
&:focus { | ||
border: 1px solid; | ||
} | ||
|
||
figure { | ||
a { | ||
display: block; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters