-
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.
Merge branch 'main' into dependabot/npm_and_yarn/query-connector/cros…
…s-spawn-7.0.6
- Loading branch information
Showing
15 changed files
with
158 additions
and
586 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 was deleted.
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
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
43 changes: 43 additions & 0 deletions
43
...nnector/src/app/query/components/customizeQuery/vanityCheckbox/CustomizeQueryCheckbox.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import classNames from "classnames"; | ||
import Checkbox, { | ||
CheckboxProps, | ||
} from "../../../designSystem/checkbox/Checkbox"; | ||
import styles from "./checkbox.module.css"; | ||
|
||
type VanityCheckboxProps = CheckboxProps & { | ||
isHeader?: boolean; | ||
isMinusState?: boolean; | ||
}; | ||
/** | ||
* Vanity component wrapper around the checkbox component for the query customization | ||
* checkboxes | ||
* @param root0 - params | ||
* @param root0.id - ID for checkbox | ||
* @param root0.checked - whether the checkbox is checked | ||
* @param root0.onChange - handler for when the checkbox is clicked | ||
* @param root0.isHeader - whether the checkbox is in the header | ||
* @param root0.isMinusState - whether to display the minus checkbox state | ||
* @returns A checkbox for the customize query page | ||
*/ | ||
const CustomizeQueryCheckbox: React.FC<VanityCheckboxProps> = ({ | ||
id, | ||
checked, | ||
onChange, | ||
isHeader, | ||
isMinusState, | ||
}) => { | ||
return ( | ||
<Checkbox | ||
id={id} | ||
checked={checked} | ||
onChange={onChange} | ||
className={classNames( | ||
styles.vanity, | ||
isHeader ? styles.vanityHeader : "", | ||
isMinusState ? styles.isMinusCheckboxState : "", | ||
)} | ||
/> | ||
); | ||
}; | ||
|
||
export default CustomizeQueryCheckbox; |
1 change: 1 addition & 0 deletions
1
...nector/src/app/query/components/customizeQuery/vanityCheckbox/bodyCheckmark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions
35
query-connector/src/app/query/components/customizeQuery/vanityCheckbox/checkbox.module.css
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,35 @@ | ||
.vanity { | ||
background: inherit; | ||
margin: 0.5rem; | ||
} | ||
|
||
.vanity label { | ||
margin-top: 0; | ||
padding-left: 0; | ||
} | ||
|
||
.vanity label::before { | ||
width: 2.25rem; | ||
height: 2.25rem; | ||
background-color: #fff; | ||
box-shadow: 0 0 0 1px #a9aeb1 !important; | ||
border-radius: 0.25rem; | ||
margin: 0; | ||
padding: 0 !important; | ||
position: relative !important; | ||
} | ||
|
||
.vanity input:checked + label::before { | ||
background-color: #fff !important; | ||
background-image: url("bodyCheckmark.svg") !important; | ||
background-size: cover !important; | ||
} | ||
|
||
.vanityHeader input:checked + label::before { | ||
background-image: url("headerCheckmark.svg") !important; | ||
} | ||
|
||
.isMinusCheckboxState input + label::before { | ||
background-image: url("minus.svg") !important; | ||
background-size: cover !important; | ||
} |
1 change: 1 addition & 0 deletions
1
...ctor/src/app/query/components/customizeQuery/vanityCheckbox/headerCheckmark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
query-connector/src/app/query/components/customizeQuery/vanityCheckbox/minus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.