-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: #1612 refactor components to use tanstack query for data fetching (
- Loading branch information
Showing
122 changed files
with
5,385 additions
and
4,982 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,34 @@ | ||
@use 'sass:map'; | ||
@use '@bcgov-nr/nr-theme/design-tokens/light-theme.scss' as lightTheme; | ||
@use "sass:map"; | ||
@use "@bcgov-nr/nr-theme/design-tokens/light-theme.scss" as lightTheme; | ||
|
||
.p-card .p-card-header { | ||
display: flex; | ||
padding: 1.5rem; | ||
align-items: center; | ||
.custom-card-container { | ||
.p-card { | ||
.p-card-header { | ||
display: flex; | ||
padding: 1.5rem; | ||
align-items: center; | ||
|
||
svg { | ||
color: map.get(lightTheme.$light-theme, 'support-success'); | ||
margin-bottom: 0.1rem; | ||
} | ||
|
||
p { | ||
margin: 0; | ||
padding: 0 0 0 1rem; | ||
display: inline-flex; | ||
margin-bottom: 0; | ||
color: map.get(lightTheme.$light-theme, 'text-primary'); | ||
font-size: 0.875rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 1.125rem; /* 128.571% */ | ||
letter-spacing: 0.01rem; | ||
} | ||
} | ||
svg { | ||
color: map.get(lightTheme.$light-theme, "support-success"); | ||
margin-bottom: 0.1rem; | ||
} | ||
|
||
.p-card .p-card-content { | ||
display: flex; | ||
padding: 0; | ||
margin: 0; | ||
|
||
div { | ||
display: flex; | ||
flex-direction: column; | ||
align-self: center; | ||
} | ||
|
||
label { | ||
color: map.get(lightTheme.$light-theme, 'text-primary'); | ||
margin: 0 0 0.75rem; | ||
} | ||
p { | ||
margin: 0; | ||
padding: 0 0 0 1rem; | ||
display: inline-flex; | ||
margin-bottom: 0; | ||
color: map.get(lightTheme.$light-theme, "text-primary"); | ||
font-size: 0.875rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 1.125rem; /* 128.571% */ | ||
letter-spacing: 0.01rem; | ||
} | ||
} | ||
|
||
span { | ||
margin: 0; | ||
font-size: 0.875rem; | ||
line-height: 1.25rem; | ||
letter-spacing: 0.01rem; | ||
.custom-carbon-icon-misuse { | ||
fill: var(--support-error); | ||
} | ||
} | ||
} |
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,61 +1,64 @@ | ||
@use 'sass:map'; | ||
@use '@bcgov-nr/nr-theme/design-tokens/light-theme.scss' as lightTheme; | ||
@use '@bcgov-nr/nr-theme/design-tokens/dark-theme.scss' as darkTheme; | ||
@use '@bcgov-nr/nr-theme/design-tokens/light-notifications.scss' as lightNotifications; | ||
@use "sass:map"; | ||
@use "@bcgov-nr/nr-theme/design-tokens/light-theme.scss" as lightTheme; | ||
@use "@bcgov-nr/nr-theme/design-tokens/dark-theme.scss" as darkTheme; | ||
|
||
@use "@bcgov-nr/nr-theme/design-tokens/light-notifications.scss" as | ||
lightNotifications; | ||
// need to use type family first, and then use stylesheet, so the body type tokens can get the font path correctly | ||
@use '@bcgov-nr/nr-theme/design-tokens/type-family.scss'; | ||
@use '@bcgov-nr/nr-theme/style-sheets/primevue-components-overrides.scss'; | ||
@use "@bcgov-nr/nr-theme/design-tokens/type-family.scss"; | ||
@use "@bcgov-nr/nr-theme/style-sheets/primevue-components-overrides.scss"; | ||
|
||
// Header | ||
$header-height: 3rem; | ||
$header-width: 100vw; | ||
|
||
// Card | ||
$card-width: 38rem; | ||
$card-margin-top: 2rem; | ||
|
||
//darkTheme | ||
$dark-text-primary: map.get(darkTheme.$dark-theme, 'text-primary'); | ||
$text-on-color: map.get(darkTheme.$dark-theme, 'text-on-color'); | ||
$dark-text-primary: map.get(darkTheme.$dark-theme, "text-primary"); | ||
$text-on-color: map.get(darkTheme.$dark-theme, "text-on-color"); | ||
|
||
//lightTheme | ||
$light-layer-selected-01: map.get(lightTheme.$light-theme, 'layer-selected-01'); | ||
$light-layer-hover-01: map.get(lightTheme.$light-theme, 'layer-hover-01'); | ||
$light-layer-selected-01: map.get(lightTheme.$light-theme, "layer-selected-01"); | ||
$light-layer-hover-01: map.get(lightTheme.$light-theme, "layer-hover-01"); | ||
$light-layer-selected-hover-01: map.get( | ||
lightTheme.$light-theme, | ||
'layer-selected-hover-01' | ||
"layer-selected-hover-01" | ||
); | ||
$light-link-primary: map.get(lightTheme.$light-theme, 'link-primary'); | ||
$light-link-primary: map.get(lightTheme.$light-theme, "link-primary"); | ||
$light-link-primary-hover: map.get( | ||
lightTheme.$light-theme, | ||
'link-primary-hover' | ||
"link-primary-hover" | ||
); | ||
$light-background-inverse: map.get( | ||
lightTheme.$light-theme, | ||
"background-inverse" | ||
); | ||
$light-background-inverse: map.get(lightTheme.$light-theme, 'background-inverse'); | ||
|
||
//border | ||
$light-border-interactive: map.get( | ||
lightTheme.$light-theme, | ||
'border-interactive' | ||
"border-interactive" | ||
); | ||
$light-border-subtle-00: map.get(lightTheme.$light-theme, 'border-subtle-00'); | ||
$light-border-strong-01: map.get(lightTheme.$light-theme, 'border-strong-01'); | ||
$light-border-subtle-00: map.get(lightTheme.$light-theme, "border-subtle-00"); | ||
$light-border-strong-01: map.get(lightTheme.$light-theme, "border-strong-01"); | ||
|
||
//text | ||
$light-text-primary: map.get(lightTheme.$light-theme, 'text-primary'); | ||
$light-text-secondary: map.get(lightTheme.$light-theme, 'text-secondary'); | ||
$light-text-error: map.get(lightTheme.$light-theme, 'text-error'); | ||
$light-text-primary: map.get(lightTheme.$light-theme, "text-primary"); | ||
$light-text-secondary: map.get(lightTheme.$light-theme, "text-secondary"); | ||
$light-text-error: map.get(lightTheme.$light-theme, "text-error"); | ||
|
||
$light-background-brand: map.get(lightTheme.$light-theme, 'background-brand'); | ||
$light-interactive: map.get(lightTheme.$light-theme, 'interactive'); | ||
$light-background-brand: map.get(lightTheme.$light-theme, "background-brand"); | ||
$light-interactive: map.get(lightTheme.$light-theme, "interactive"); | ||
|
||
//background | ||
$light-layer-one: map.get(lightTheme.$light-theme, 'layer-01'); | ||
$light-layer-two: map.get(lightTheme.$light-theme, 'layer-02'); | ||
$light-layer-one: map.get(lightTheme.$light-theme, "layer-01"); | ||
$light-layer-two: map.get(lightTheme.$light-theme, "layer-02"); | ||
|
||
//support | ||
$light-support-error: map.get(lightTheme.$light-theme, 'support-error'); | ||
$light-support-success: map.get(lightTheme.$light-theme, 'support-success'); | ||
$light-support-error: map.get(lightTheme.$light-theme, "support-error"); | ||
$light-support-success: map.get(lightTheme.$light-theme, "support-success"); | ||
|
||
//icon | ||
$light-icon-primary: map.get(lightTheme.$light-theme, 'icon-primary'); | ||
$light-icon-on-color: map.get(lightTheme.$light-theme, 'icon-on-color'); | ||
$light-icon-primary: map.get(lightTheme.$light-theme, "icon-primary"); | ||
$light-icon-on-color: map.get(lightTheme.$light-theme, "icon-on-color"); |
Oops, something went wrong.