-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from arnaugiralt/feat/LITE-28149-port-cdialog
LITE-28149: port cDialog
- Loading branch information
Showing
21 changed files
with
1,953 additions
and
279 deletions.
There are no files selected for viewing
292 changes: 292 additions & 0 deletions
292
connect_ext_ppr/static/deployment-details.272e874bc9496204df16.js
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
152 changes: 0 additions & 152 deletions
152
connect_ext_ppr/static/deployment-details.fd79f0eb4033ee6594f2.js
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
16 changes: 8 additions & 8 deletions
16
..._ppr/static/index.8c80d20d7477ccc20d0c.js → ..._ppr/static/index.f0239835f73a360467d7.js
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
280 changes: 195 additions & 85 deletions
280
...pr/static/vendors.7e5afe9e4e5d6999e52c.js → ...pr/static/vendors.c37f1993399243c8d2a4.js
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,206 @@ | ||
<template lang="pug"> | ||
.c-alert-holder | ||
.c-alert(:class="classSettings",) | ||
.c-alert__icon | ||
c-icon(:icon="icon") | ||
|
||
.c-alert__text | ||
slot(name="message") {{ message }} | ||
|
||
.c-alert__actions(v-if="this.$slots.actions",) | ||
slot(name="actions") | ||
|
||
</template> | ||
|
||
<script> | ||
import { | ||
googleInfoBaseline, | ||
} from '@cloudblueconnect/material-svg/baseline'; | ||
import { | ||
flip, | ||
includes, | ||
} from 'ramda'; | ||
import cIcon from '~components/cIcon.vue'; | ||
import { | ||
isString, | ||
pathTo, | ||
} from '~utils'; | ||
const typeAlert = [ | ||
'info', | ||
'error', | ||
'success', | ||
'warning', | ||
'default', | ||
]; | ||
export default { | ||
components: { | ||
cIcon, | ||
}, | ||
props: { | ||
message: String, | ||
icon: { | ||
type: Object, | ||
default: () => (googleInfoBaseline), | ||
}, | ||
dense: Boolean, | ||
alignTop: Boolean, | ||
fluid: Boolean, | ||
grid: Boolean, | ||
type: { | ||
type: String, | ||
validator: flip(includes)(typeAlert), | ||
default: 'default', | ||
}, | ||
}, | ||
computed: { | ||
classSettings() { | ||
return { | ||
'c-alert_align-top': this.alignTop, | ||
'c-alert_fluid': this.fluid, | ||
'c-alert_dense': this.dense, | ||
'c-alert_grid': this.grid, | ||
[`c-alert_${this.type}`]: true, | ||
}; | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="stylus"> | ||
@import '~styles/common.styl'; | ||
.c-alert { | ||
align-items: center; | ||
box-sizing: border-box; | ||
display: inline-flex; | ||
min-height: 64px; | ||
min-width: 240px; | ||
max-width: 600px; | ||
padding: 16px; | ||
border-radius: 2px; | ||
background-color: rgba(#bdbdbd, 0.15); | ||
color: #bdbdbd; | ||
} | ||
.c-alert_align-top { | ||
align-items: flex-start; | ||
} | ||
.c-alert_dense { | ||
min-height: 56px; | ||
padding-top: 12px; | ||
padding-bottom: 12px; | ||
} | ||
.c-alert_fluid { | ||
display: flex; | ||
max-width: none; | ||
} | ||
// NOTE: this should go later than .c-alert_fluid to work properly ! | ||
.c-alert_grid { | ||
display: grid; | ||
grid-template-columns: 32px auto; | ||
grid-template-rows: auto; | ||
grid-template-areas: "icon text" "x actions"; | ||
} | ||
.c-alert_error { | ||
background-color: rgba(#FF6A6A, 0.2); | ||
color: #FF6A6A; | ||
} | ||
.c-alert_info { | ||
background-color: _rgba(var(--theme_accent_rgb), 0.15); | ||
color: var(--theme_accent); | ||
} | ||
.c-alert_success { | ||
background-color: rgba(#0bb071, 0.15); | ||
color: #0bb071; | ||
} | ||
.c-alert_warning { | ||
background-color: rgba(#F2C94C, 0.15); | ||
color: #F2C94C; | ||
} | ||
.c-alert__icon { | ||
flex: 0 0 auto; | ||
margin-right: 12px; | ||
display: flex; | ||
> .c-icon, | ||
> .v-icon { | ||
color: currentColor; | ||
} | ||
.c-alert_align-top & { | ||
margin-top: -2px; | ||
} | ||
.c-alert_grid & { | ||
grid-area: icon; | ||
} | ||
} | ||
.c-alert__text { | ||
flex: 1 1 auto; | ||
font-size: 14px; | ||
line-height: 20px; | ||
text-align: left; | ||
color: #212121; | ||
&:first-letter { | ||
text-transform: uppercase; | ||
} | ||
.c-alert_grid & { | ||
grid-area: text; | ||
} | ||
} | ||
.c-alert__actions { | ||
flex: 0 0 auto; | ||
margin-right: -4px; | ||
margin-left: 24px; | ||
button { | ||
margin: -2px 0; | ||
& + & { | ||
margin-left: 16px; | ||
} | ||
} | ||
.c-alert_dense & { | ||
margin-right: -8px; | ||
button { | ||
margin-top: -4px; | ||
margin-bottom: -4px; | ||
} | ||
} | ||
.c-alert_grid & { | ||
grid-area: actions; | ||
margin-left: 0; | ||
} | ||
} | ||
</style> |
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.