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.
Files changed (68) hide show
  1. package/dist/cja-phoenix.es.js +2808 -3294
  2. package/dist/style.css +1 -1
  3. package/dist/types/components/composite/CjaMenuBar.vue.d.ts +42 -0
  4. package/dist/types/components/composite/FunnelLayout.vue.d.ts +35 -0
  5. package/dist/types/components/composite/FunnelSubmit.vue.d.ts +2 -2
  6. package/dist/types/components/composite/FunnelSummary.vue.d.ts +14 -9
  7. package/dist/types/components/composite/FunnelTitle.vue.d.ts +1 -1
  8. package/dist/types/components/composite/JourneyMacroSteps.vue.d.ts +16 -0
  9. package/dist/types/components/composite/ProductDetails.vue.d.ts +4 -4
  10. package/dist/types/components/composite/ResultsLayout.vue.d.ts +11 -0
  11. package/dist/types/components/forms/CheckboxInput.vue.d.ts +8 -5
  12. package/dist/types/components/forms/FileInput.vue.d.ts +7 -4
  13. package/dist/types/components/forms/InputToggle.vue.d.ts +11 -7
  14. package/dist/types/components/forms/NumberInput.vue.d.ts +6 -3
  15. package/dist/types/components/forms/PhoneInput.vue.d.ts +18 -16
  16. package/dist/types/components/forms/RadioInput.vue.d.ts +41 -0
  17. package/dist/types/components/forms/SelectInput.vue.d.ts +18 -17
  18. package/dist/types/components/forms/SelectionTiles.vue.d.ts +7 -4
  19. package/dist/types/components/forms/TextInput.vue.d.ts +20 -18
  20. package/dist/types/components/forms/TileCheckboxInput.vue.d.ts +1 -1
  21. package/dist/types/components/forms/structure/InputContainer.vue.d.ts +2 -2
  22. package/dist/types/components/forms/structure/InputError.vue.d.ts +1 -1
  23. package/dist/types/components/forms/structure/InputTitle.vue.d.ts +1 -1
  24. package/dist/types/components/index.d.ts +10 -3
  25. package/dist/types/components/structural/CjaButton.vue.d.ts +8 -5
  26. package/dist/types/components/structural/CollapseContainer.vue.d.ts +3 -3
  27. package/dist/types/components/structural/ContentTabs.vue.d.ts +1 -1
  28. package/dist/types/components/structural/FixedContainer.vue.d.ts +63 -0
  29. package/dist/types/components/structural/GridContainer.vue.d.ts +9 -6
  30. package/dist/types/components/structural/GridItem.vue.d.ts +8 -8
  31. package/dist/types/components/structural/InfoMessage.vue.d.ts +30 -0
  32. package/dist/types/components/structural/LoadingSpinner.vue.d.ts +1 -1
  33. package/dist/types/components/structural/Modal.vue.d.ts +3 -3
  34. package/dist/types/components/structural/Scaffold.vue.d.ts +2 -2
  35. package/dist/types/index.d.ts +1 -0
  36. package/dist/types/stories/Modal.story.vue.d.ts +1 -1
  37. package/dist/types/types/MacroStep.d.ts +5 -0
  38. package/dist/types/types/index.d.ts +5 -0
  39. package/package.json +4 -4
  40. package/src/assets/iconia/demo.html +57 -1
  41. package/src/assets/iconia/fonts/CGG-icomoon.eot +0 -0
  42. package/src/assets/iconia/fonts/CGG-icomoon.svg +4 -0
  43. package/src/assets/iconia/fonts/CGG-icomoon.ttf +0 -0
  44. package/src/assets/iconia/fonts/CGG-icomoon.woff +0 -0
  45. package/src/assets/iconia/selection.json +1 -1
  46. package/src/assets/iconia/style.css +17 -5
  47. package/src/assets/iconia/style.scss +25 -5
  48. package/src/assets/iconia/variables.scss +4 -0
  49. package/src/components/composite/CjaMenuBar.vue +166 -0
  50. package/src/components/composite/FunnelLayout.vue +194 -0
  51. package/src/components/composite/FunnelSubmit.vue +20 -11
  52. package/src/components/composite/FunnelSummary.vue +16 -10
  53. package/src/components/composite/JourneyMacroSteps.vue +73 -0
  54. package/src/components/composite/ProductDetails.vue +4 -2
  55. package/src/components/composite/ResultsLayout.vue +49 -0
  56. package/src/components/forms/InputToggle.vue +6 -1
  57. package/src/components/forms/PhoneInput.vue +15 -6
  58. package/src/components/forms/RadioInput.vue +90 -0
  59. package/src/components/forms/SelectInput.vue +17 -7
  60. package/src/components/forms/SelectionTiles.vue +18 -5
  61. package/src/components/index.ts +16 -2
  62. package/src/components/structural/CjaButton.vue +14 -9
  63. package/src/components/structural/CollapseContainer.vue +35 -32
  64. package/src/components/structural/FixedContainer.vue +87 -0
  65. package/src/components/structural/InfoMessage.vue +97 -0
  66. package/src/index.ts +1 -0
  67. package/src/types/MacroStep.ts +5 -0
  68. 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
@@ -18,6 +18,7 @@ import "./assets/iconia/style.scss";
18
18
 
19
19
  export default { install };
20
20
 
21
+ export * from "./types";
21
22
  export * from "./components";
22
23
  export * from "./constants";
23
24
  export * from "./utils";
@@ -0,0 +1,5 @@
1
+ export interface MacroStep {
2
+ label: string;
3
+ icon: string;
4
+ status: "past" | "current" | "future";
5
+ }
@@ -0,0 +1,6 @@
1
+ import { MacroStep } from "./MacroStep";
2
+ import { Tab } from "./Tab";
3
+ import { SelectOption } from "./SelectOption";
4
+ import { TileOption } from "./TileOption";
5
+
6
+ export type { MacroStep, Tab, SelectOption, TileOption };