cja-phoenix 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cja-phoenix.es.js +2808 -3294
- package/dist/style.css +1 -1
- package/dist/types/components/composite/CjaMenuBar.vue.d.ts +42 -0
- package/dist/types/components/composite/FunnelLayout.vue.d.ts +35 -0
- package/dist/types/components/composite/FunnelSubmit.vue.d.ts +2 -2
- package/dist/types/components/composite/FunnelSummary.vue.d.ts +14 -9
- package/dist/types/components/composite/FunnelTitle.vue.d.ts +1 -1
- package/dist/types/components/composite/JourneyMacroSteps.vue.d.ts +16 -0
- package/dist/types/components/composite/ProductDetails.vue.d.ts +4 -4
- package/dist/types/components/composite/ResultsLayout.vue.d.ts +11 -0
- package/dist/types/components/forms/CheckboxInput.vue.d.ts +8 -5
- package/dist/types/components/forms/FileInput.vue.d.ts +7 -4
- package/dist/types/components/forms/InputToggle.vue.d.ts +11 -7
- package/dist/types/components/forms/NumberInput.vue.d.ts +6 -3
- package/dist/types/components/forms/PhoneInput.vue.d.ts +18 -16
- package/dist/types/components/forms/RadioInput.vue.d.ts +41 -0
- package/dist/types/components/forms/SelectInput.vue.d.ts +18 -17
- package/dist/types/components/forms/SelectionTiles.vue.d.ts +7 -4
- package/dist/types/components/forms/TextInput.vue.d.ts +20 -18
- package/dist/types/components/forms/TileCheckboxInput.vue.d.ts +1 -1
- package/dist/types/components/forms/structure/InputContainer.vue.d.ts +2 -2
- package/dist/types/components/forms/structure/InputError.vue.d.ts +1 -1
- package/dist/types/components/forms/structure/InputTitle.vue.d.ts +1 -1
- package/dist/types/components/index.d.ts +10 -3
- package/dist/types/components/structural/CjaButton.vue.d.ts +8 -5
- package/dist/types/components/structural/CollapseContainer.vue.d.ts +3 -3
- package/dist/types/components/structural/ContentTabs.vue.d.ts +1 -1
- package/dist/types/components/structural/FixedContainer.vue.d.ts +63 -0
- package/dist/types/components/structural/GridContainer.vue.d.ts +9 -6
- package/dist/types/components/structural/GridItem.vue.d.ts +8 -8
- package/dist/types/components/structural/InfoMessage.vue.d.ts +30 -0
- package/dist/types/components/structural/LoadingSpinner.vue.d.ts +1 -1
- package/dist/types/components/structural/Modal.vue.d.ts +3 -3
- package/dist/types/components/structural/Scaffold.vue.d.ts +2 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stories/Modal.story.vue.d.ts +1 -1
- package/dist/types/types/MacroStep.d.ts +5 -0
- package/dist/types/types/index.d.ts +5 -0
- package/package.json +4 -4
- package/src/assets/iconia/demo.html +57 -1
- package/src/assets/iconia/fonts/CGG-icomoon.eot +0 -0
- package/src/assets/iconia/fonts/CGG-icomoon.svg +4 -0
- package/src/assets/iconia/fonts/CGG-icomoon.ttf +0 -0
- package/src/assets/iconia/fonts/CGG-icomoon.woff +0 -0
- package/src/assets/iconia/selection.json +1 -1
- package/src/assets/iconia/style.css +17 -5
- package/src/assets/iconia/style.scss +25 -5
- package/src/assets/iconia/variables.scss +4 -0
- package/src/components/composite/CjaMenuBar.vue +166 -0
- package/src/components/composite/FunnelLayout.vue +194 -0
- package/src/components/composite/FunnelSubmit.vue +20 -11
- package/src/components/composite/FunnelSummary.vue +16 -10
- package/src/components/composite/JourneyMacroSteps.vue +73 -0
- package/src/components/composite/ProductDetails.vue +4 -2
- package/src/components/composite/ResultsLayout.vue +49 -0
- package/src/components/forms/InputToggle.vue +6 -1
- package/src/components/forms/PhoneInput.vue +15 -6
- package/src/components/forms/RadioInput.vue +90 -0
- package/src/components/forms/SelectInput.vue +17 -7
- package/src/components/forms/SelectionTiles.vue +18 -5
- package/src/components/index.ts +16 -2
- package/src/components/structural/CjaButton.vue +14 -9
- package/src/components/structural/CollapseContainer.vue +35 -32
- package/src/components/structural/FixedContainer.vue +87 -0
- package/src/components/structural/InfoMessage.vue +97 -0
- package/src/index.ts +1 -0
- package/src/types/MacroStep.ts +5 -0
- package/src/types/index.ts +6 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="info-message"
|
|
4
|
+
:class="[
|
|
5
|
+
`color-${color}`,
|
|
6
|
+
{ 'has-icon': $slots.icon, 'has-toggle': toggle },
|
|
7
|
+
]"
|
|
8
|
+
>
|
|
9
|
+
<div class="icon-container" v-if="$slots.icon">
|
|
10
|
+
<slot name="icon"></slot>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="text-container">
|
|
13
|
+
<h4 v-if="title">{{ title }}</h4>
|
|
14
|
+
<p v-if="description" v-html="description"></p>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="btn-container" v-if="toggle">
|
|
17
|
+
<button class="m-cgg-icon--cross2" @click="$emit('btn:close')"></button>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script lang="ts" setup>
|
|
23
|
+
defineProps<{
|
|
24
|
+
title?: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
toggle?: boolean;
|
|
27
|
+
color: "blue" | "green";
|
|
28
|
+
}>();
|
|
29
|
+
|
|
30
|
+
defineEmits(["btn:close"]);
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<style lang="scss" scoped>
|
|
34
|
+
.info-message {
|
|
35
|
+
display: grid;
|
|
36
|
+
grid-template-columns: 1fr;
|
|
37
|
+
gap: 16px;
|
|
38
|
+
padding: 16px 24px;
|
|
39
|
+
border: 2px solid #000;
|
|
40
|
+
border-radius: 16px;
|
|
41
|
+
|
|
42
|
+
&.has-icon {
|
|
43
|
+
grid-template-columns: auto 1fr;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.has-toggle {
|
|
47
|
+
grid-template-columns: 1fr 18px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.has-icon.has-toggle {
|
|
51
|
+
grid-template-columns: auto 1fr 18px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.color-green {
|
|
55
|
+
background-color: #f8faf5;
|
|
56
|
+
border-color: #c4dab1;
|
|
57
|
+
color: #56924b;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.color-blue {
|
|
61
|
+
background-color: #f4f9fc;
|
|
62
|
+
border-color: #076b9c;
|
|
63
|
+
color: #076b9c;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.text-container {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
gap: 15px;
|
|
70
|
+
|
|
71
|
+
h4 {
|
|
72
|
+
font-weight: 700;
|
|
73
|
+
font-size: 16px;
|
|
74
|
+
line-height: 20px;
|
|
75
|
+
margin: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
p {
|
|
79
|
+
font-size: 13px;
|
|
80
|
+
line-height: 17px;
|
|
81
|
+
margin: 0;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.btn-container {
|
|
86
|
+
button {
|
|
87
|
+
padding: 0;
|
|
88
|
+
border: none;
|
|
89
|
+
font-size: 18px;
|
|
90
|
+
line-height: 18px;
|
|
91
|
+
color: inherit;
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
background: none;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
</style>
|
package/src/index.ts
CHANGED