cja-phoenix 0.2.13 → 0.2.15
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 +80 -79
- package/dist/style.css +1 -1
- package/dist/types/components/forms/RadioInput.vue.d.ts +2 -0
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/components/structural/CollapseContainer.vue.d.ts +19 -5
- package/package.json +1 -1
- package/src/assets/iconia/demo.html +29 -1
- package/src/assets/iconia/fonts/CGG-icomoon.eot +0 -0
- package/src/assets/iconia/fonts/CGG-icomoon.svg +2 -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 +11 -5
- package/src/assets/iconia/style.scss +15 -5
- package/src/assets/iconia/variables.scss +2 -0
- package/src/components/forms/RadioInput.vue +10 -3
- package/src/components/forms/{InputToggle.vue → ToggleInput.vue} +4 -9
- package/src/components/index.ts +2 -2
- package/src/components/structural/CollapseContainer.vue +13 -8
- /package/dist/types/components/forms/{InputToggle.vue.d.ts → ToggleInput.vue.d.ts} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: 'CGG-icomoon';
|
|
3
|
-
src: url('fonts/CGG-icomoon.eot?
|
|
4
|
-
src: url('fonts/CGG-icomoon.eot?
|
|
5
|
-
url('fonts/CGG-icomoon.ttf?
|
|
6
|
-
url('fonts/CGG-icomoon.woff?
|
|
7
|
-
url('fonts/CGG-icomoon.svg?
|
|
3
|
+
src: url('fonts/CGG-icomoon.eot?581rb2');
|
|
4
|
+
src: url('fonts/CGG-icomoon.eot?581rb2#iefix') format('embedded-opentype'),
|
|
5
|
+
url('fonts/CGG-icomoon.ttf?581rb2') format('truetype'),
|
|
6
|
+
url('fonts/CGG-icomoon.woff?581rb2') format('woff'),
|
|
7
|
+
url('fonts/CGG-icomoon.svg?581rb2#CGG-icomoon') format('svg');
|
|
8
8
|
font-weight: normal;
|
|
9
9
|
font-style: normal;
|
|
10
10
|
font-display: block;
|
|
@@ -25,6 +25,12 @@
|
|
|
25
25
|
-moz-osx-font-smoothing: grayscale;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
.m-cgg-icon--filters:before {
|
|
29
|
+
content: "\ea31";
|
|
30
|
+
}
|
|
31
|
+
.m-cgg-icon--search:before {
|
|
32
|
+
content: "\ea32";
|
|
33
|
+
}
|
|
28
34
|
.m-cgg-icon--macro-step-contact:before {
|
|
29
35
|
content: "\ea24";
|
|
30
36
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
@font-face {
|
|
4
4
|
font-family: '#{$icomoon-font-family}';
|
|
5
|
-
src: url('#{$icomoon-font-path}/#{$icomoon-font-family}.eot?
|
|
6
|
-
src: url('#{$icomoon-font-path}/#{$icomoon-font-family}.eot?
|
|
7
|
-
url('#{$icomoon-font-path}/#{$icomoon-font-family}.ttf?
|
|
8
|
-
url('#{$icomoon-font-path}/#{$icomoon-font-family}.woff?
|
|
9
|
-
url('#{$icomoon-font-path}/#{$icomoon-font-family}.svg?
|
|
5
|
+
src: url('#{$icomoon-font-path}/#{$icomoon-font-family}.eot?581rb2');
|
|
6
|
+
src: url('#{$icomoon-font-path}/#{$icomoon-font-family}.eot?581rb2#iefix') format('embedded-opentype'),
|
|
7
|
+
url('#{$icomoon-font-path}/#{$icomoon-font-family}.ttf?581rb2') format('truetype'),
|
|
8
|
+
url('#{$icomoon-font-path}/#{$icomoon-font-family}.woff?581rb2') format('woff'),
|
|
9
|
+
url('#{$icomoon-font-path}/#{$icomoon-font-family}.svg?581rb2##{$icomoon-font-family}') format('svg');
|
|
10
10
|
font-weight: normal;
|
|
11
11
|
font-style: normal;
|
|
12
12
|
font-display: block;
|
|
@@ -27,6 +27,16 @@
|
|
|
27
27
|
-moz-osx-font-smoothing: grayscale;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
.m-cgg-icon--filters {
|
|
31
|
+
&:before {
|
|
32
|
+
content: $m-cgg-icon--filters;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.m-cgg-icon--search {
|
|
36
|
+
&:before {
|
|
37
|
+
content: $m-cgg-icon--search;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
30
40
|
.m-cgg-icon--macro-step-contact {
|
|
31
41
|
&:before {
|
|
32
42
|
content: $m-cgg-icon--macro-step-contact;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
$icomoon-font-family: "CGG-icomoon" !default;
|
|
2
2
|
$icomoon-font-path: "fonts" !default;
|
|
3
3
|
|
|
4
|
+
$m-cgg-icon--filters: "\ea31";
|
|
5
|
+
$m-cgg-icon--search: "\ea32";
|
|
4
6
|
$m-cgg-icon--macro-step-contact: "\ea24";
|
|
5
7
|
$m-cgg-icon--macro-step-checkout: "\ea2e";
|
|
6
8
|
$m-cgg-icon--macro-step-results: "\ea2f";
|
|
@@ -9,7 +9,11 @@
|
|
|
9
9
|
@change="handleChange"
|
|
10
10
|
/>
|
|
11
11
|
<div class="radio-icon"></div>
|
|
12
|
-
<div
|
|
12
|
+
<div
|
|
13
|
+
class="text-container"
|
|
14
|
+
:class="[`size-${size}`]"
|
|
15
|
+
v-html="label"
|
|
16
|
+
></div>
|
|
13
17
|
</label>
|
|
14
18
|
</div>
|
|
15
19
|
|
|
@@ -26,6 +30,7 @@ const props = withDefaults(
|
|
|
26
30
|
value: any;
|
|
27
31
|
label: string;
|
|
28
32
|
modelValue?: any;
|
|
33
|
+
size?: "sm" | "md" | "lg";
|
|
29
34
|
error?: string;
|
|
30
35
|
errorDisplay?: boolean;
|
|
31
36
|
}>(),
|
|
@@ -44,6 +49,8 @@ const emit = defineEmits(["update:modelValue"]);
|
|
|
44
49
|
</script>
|
|
45
50
|
|
|
46
51
|
<style lang="scss" scoped>
|
|
52
|
+
@import "../../assets/forms.scss";
|
|
53
|
+
|
|
47
54
|
.input-container-radio {
|
|
48
55
|
label {
|
|
49
56
|
display: flex;
|
|
@@ -71,8 +78,8 @@ const emit = defineEmits(["update:modelValue"]);
|
|
|
71
78
|
}
|
|
72
79
|
|
|
73
80
|
.text-container {
|
|
74
|
-
|
|
75
|
-
|
|
81
|
+
@include input-title;
|
|
82
|
+
|
|
76
83
|
user-select: none;
|
|
77
84
|
|
|
78
85
|
a {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<script lang="ts" setup>
|
|
19
19
|
import { InputHTMLAttributes } from "vue";
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
withDefaults(
|
|
22
22
|
defineProps<{
|
|
23
23
|
size?: "sm" | "md" | "lg";
|
|
24
24
|
disabled?: InputHTMLAttributes["disabled"];
|
|
@@ -30,13 +30,13 @@ const props = withDefaults(
|
|
|
30
30
|
errorDisplay?: boolean;
|
|
31
31
|
}>(),
|
|
32
32
|
{
|
|
33
|
-
size: "
|
|
33
|
+
size: "md",
|
|
34
34
|
disabled: false,
|
|
35
35
|
errorDisplay: true,
|
|
36
36
|
}
|
|
37
37
|
);
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
defineEmits(["update:modelValue"]);
|
|
40
40
|
</script>
|
|
41
41
|
|
|
42
42
|
<style lang="scss" scoped>
|
|
@@ -47,17 +47,12 @@ const emit = defineEmits(["update:modelValue"]);
|
|
|
47
47
|
flex-direction: row;
|
|
48
48
|
align-items: center;
|
|
49
49
|
gap: 10px;
|
|
50
|
+
@include input-title;
|
|
50
51
|
|
|
51
52
|
&.full-width {
|
|
52
53
|
justify-content: space-between;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
.label {
|
|
56
|
-
@include input-title;
|
|
57
|
-
|
|
58
|
-
font-weight: 700;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
56
|
.toggler {
|
|
62
57
|
position: relative;
|
|
63
58
|
width: 36px;
|
package/src/components/index.ts
CHANGED
|
@@ -17,7 +17,7 @@ import TileCheckboxInput from "./forms/TileCheckboxInput.vue";
|
|
|
17
17
|
import SelectInput from "./forms/SelectInput.vue";
|
|
18
18
|
import FileInput from "./forms/FileInput.vue";
|
|
19
19
|
import NumberInput from "./forms/NumberInput.vue";
|
|
20
|
-
import
|
|
20
|
+
import ToggleInput from "./forms/ToggleInput.vue";
|
|
21
21
|
import SelectionTiles from "./forms/SelectionTiles.vue";
|
|
22
22
|
|
|
23
23
|
import JourneyMacroSteps from "./composite/JourneyMacroSteps.vue";
|
|
@@ -47,7 +47,7 @@ export {
|
|
|
47
47
|
LoadingSpinner,
|
|
48
48
|
Scaffold,
|
|
49
49
|
ProductDetails,
|
|
50
|
-
|
|
50
|
+
ToggleInput,
|
|
51
51
|
FileInput,
|
|
52
52
|
ContentTabs,
|
|
53
53
|
CollapseContainer,
|
|
@@ -24,14 +24,19 @@
|
|
|
24
24
|
<script lang="ts" setup>
|
|
25
25
|
import { ref } from "vue";
|
|
26
26
|
|
|
27
|
-
const props =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
const props = withDefaults(
|
|
28
|
+
defineProps<{
|
|
29
|
+
active?: boolean;
|
|
30
|
+
scrollToContent?: {
|
|
31
|
+
element: HTMLElement;
|
|
32
|
+
};
|
|
33
|
+
}>(),
|
|
34
|
+
{
|
|
35
|
+
active: false,
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
const active = ref(props.active);
|
|
35
40
|
const contentContainer = ref();
|
|
36
41
|
const contentWrapper = ref();
|
|
37
42
|
const containerHeight = ref();
|
|
File without changes
|