-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: namespace properties to avoid key conflicts (#136)
* fix: namespace properties to avoid key conflicts * chore: rename things, remove logging * fix: downgrade to sass 6 * fix: import issues, just duplicate some code * fix: remove lib import * Update package.json
- Loading branch information
Showing
22 changed files
with
1,200 additions
and
952 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
File renamed without changes.
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 |
---|---|---|
@@ -1 +1 @@ | ||
export { default } from "./WorkflowTaskForm" | ||
export { default } from "./WorkflowTaskResultsForm"; |
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
2 changes: 1 addition & 1 deletion
2
src/Features/Editor/Properties/PropertiesModal/PropertiesModal.tsx
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
22 changes: 22 additions & 0 deletions
22
src/Features/Editor/Properties/PropertiesModal/WorkflowEditButton/EditButton.js
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,22 @@ | ||
import React from "react"; | ||
|
||
const SvgComponent = (props) => ( | ||
<svg viewBox="0 0 26 26" {...props}> | ||
<title>{"edit"}</title> | ||
<g id="Symbols" stroke="none" strokeWidth={1} fill="none" fillRule="evenodd"> | ||
<g id="Editor-/-task-card" transform="translate(-190.000000, 13.000000)"> | ||
<g id="edit" transform="translate(191.000000, -12.000000)"> | ||
<circle id="Oval" stroke="#0072C3" fill="#FFFFFF" cx={12} cy={12} r={12} /> | ||
<g id="Actions-/-Formatting-/-edit-/-24" transform="translate(4.000000, 4.000000)" fill="#000000"> | ||
<path | ||
d="M1,13.5 L15,13.5 L15,14.5 L1,14.5 L1,13.5 Z M12.705,4.5 C12.892777,4.31243174 12.9982867,4.05790925 12.9982867,3.7925 C12.9982867,3.52709075 12.892777,3.27256826 12.705,3.085 L10.915,1.295 C10.7274317,1.10722296 10.4729092,1.00171334 10.2075,1.00171334 C9.94209075,1.00171334 9.68756826,1.10722296 9.5,1.295 L2,8.795 L2,12 L5.205,12 L12.705,4.5 Z M10.205,2 L12,3.795 L10.5,5.295 L8.705,3.5 L10.205,2 Z M3,11 L3,9.205 L8,4.205 L9.795,6 L4.795,11 L3,11 Z" | ||
id="Fill" | ||
/> | ||
</g> | ||
</g> | ||
</g> | ||
</g> | ||
</svg> | ||
); | ||
|
||
export default SvgComponent; |
27 changes: 27 additions & 0 deletions
27
src/Features/Editor/Properties/PropertiesModal/WorkflowEditButton/WorkflowEditButton.js
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,27 @@ | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
import cx from "classnames"; | ||
import EditButton from "./EditButton"; | ||
import { isAccessibleKeyboardEvent } from "@boomerang-io/utils"; | ||
import styles from "./WorkflowEditButton.module.scss"; | ||
|
||
WorkflowEditButton.propTypes = { | ||
alt: PropTypes.string, | ||
className: PropTypes.string, | ||
onClick: PropTypes.func, | ||
}; | ||
|
||
export default function WorkflowEditButton({ alt = "Workflow edit button", className, onClick, ...rest }) { | ||
return ( | ||
<EditButton | ||
alt={alt} | ||
className={cx(styles.editButton, className)} | ||
onClick={onClick} | ||
onKeyDown={(e) => isAccessibleKeyboardEvent(e) && onClick(e)} | ||
role="button" | ||
tabIndex="0" | ||
style={{ willChange: "auto" }} | ||
{...rest} | ||
/> | ||
); | ||
} |
11 changes: 11 additions & 0 deletions
11
...tures/Editor/Properties/PropertiesModal/WorkflowEditButton/WorkflowEditButton.module.scss
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,11 @@ | ||
@import "Styles/mixins"; | ||
|
||
.editButton { | ||
cursor: pointer; | ||
height: 1.75rem; | ||
width: 1.75rem; | ||
|
||
&:focus { | ||
@include focus-outline(var(--cds-interactive-01), 0rem); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
src/Features/Editor/Properties/PropertiesModal/WorkflowEditButton/index.js
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 @@ | ||
export { default } from "./WorkflowEditButton"; |
17 changes: 17 additions & 0 deletions
17
src/Features/Editor/Properties/WorkflowCloseButton/CloseButton.js
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,17 @@ | ||
import React from "react"; | ||
|
||
const CloseButton = (props) => ( | ||
<svg width="26px" height="26px" viewBox="0 0 26 26" {...props}> | ||
<title>{"close-button"}</title> | ||
<g id="30-editor" stroke="none" strokeWidth={1} fill="none" fillRule="evenodd"> | ||
<g id="close-button" transform="translate(1.000000, 1.000000)"> | ||
<circle id="Oval" stroke="#0072C3" fill="#FFFFFF" cx={12} cy={12} r={12} /> | ||
<g id="Actions-/-Navigation-/-close-/-24" transform="translate(4.000000, 4.000000)" fill="#000000"> | ||
<polygon id="Fill" points="12 4.7 11.3 4 8 7.3 4.7 4 4 4.7 7.3 8 4 11.3 4.7 12 8 8.7 11.3 12 12 11.3 8.7 8" /> | ||
</g> | ||
</g> | ||
</g> | ||
</svg> | ||
); | ||
|
||
export default CloseButton; |
26 changes: 26 additions & 0 deletions
26
src/Features/Editor/Properties/WorkflowCloseButton/WorkflowCloseButton.js
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,26 @@ | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
import cx from "classnames"; | ||
import CloseButton from "./CloseButton"; | ||
import { isAccessibleKeyboardEvent } from "@boomerang-io/utils"; | ||
import styles from "./WorkflowCloseButton.module.scss"; | ||
|
||
WorkflowCloseButton.propTypes = { | ||
alt: PropTypes.string, | ||
className: PropTypes.string, | ||
onClick: PropTypes.func.isRequired, | ||
}; | ||
|
||
export default function WorkflowCloseButton({ alt = "Workflow close button", className, onClick, ...rest }) { | ||
return ( | ||
<CloseButton | ||
alt={alt} | ||
className={cx(styles.closeButton, className)} | ||
onClick={onClick} | ||
onKeyDown={(e) => isAccessibleKeyboardEvent(e) && onClick(e)} | ||
role="button" | ||
tabIndex={0} | ||
{...rest} | ||
/> | ||
); | ||
} |
11 changes: 11 additions & 0 deletions
11
src/Features/Editor/Properties/WorkflowCloseButton/WorkflowCloseButton.module.scss
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,11 @@ | ||
@import "Styles/mixins"; | ||
|
||
.closeButton { | ||
cursor: pointer; | ||
height: 1.75rem; | ||
width: 1.75rem; | ||
|
||
&:focus { | ||
@include focus-outline(var(--cds-interactive-01), 0rem); | ||
} | ||
} |
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 @@ | ||
export { default } from "./WorkflowCloseButton"; |
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
Oops, something went wrong.