@propelinc/citrus-ui 0.5.0 → 0.5.1-dev.0
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/citrus-ui.common.js +174 -156
- package/dist/citrus-ui.common.js.map +1 -1
- package/dist/citrus-ui.css +1 -1
- package/dist/citrus-ui.umd.js +174 -156
- package/dist/citrus-ui.umd.js.map +1 -1
- package/dist/citrus-ui.umd.min.js +3 -3
- package/dist/citrus-ui.umd.min.js.map +1 -1
- package/dist/fonts/ObjectSans-Medium.f3b9961d.woff2 +0 -0
- package/dist/fonts/ObjectSans-MediumSlanted.168ff5df.woff2 +0 -0
- package/package.json +1 -1
- package/src/assets/fonts/ObjectSans-Medium.woff2 +0 -0
- package/src/assets/fonts/ObjectSans-MediumSlanted.woff2 +0 -0
- package/src/components/CBanner.vue +2 -1
- package/src/components/CListItemAction.vue +2 -1
- package/src/components/CListItemIcon.vue +2 -1
- package/src/components/CModal.vue +5 -1
- package/src/components/CNotification.vue +2 -1
- package/src/components/CSelect.vue +6 -1
- package/src/styles/_core.scss +21 -21
- package/src/styles/_object-sans.scss +1 -1
- package/src/styles/_typography.scss +5 -5
- package/dist/fonts/ObjectSans-Black.314082dd.woff2 +0 -0
- package/dist/fonts/ObjectSans-BlackSlanted.d3163c50.woff2 +0 -0
- package/src/assets/fonts/ObjectSans-Black.woff2 +0 -0
- package/src/assets/fonts/ObjectSans-BlackSlanted.woff2 +0 -0
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script lang="ts">
|
|
11
|
+
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
|
11
12
|
import { Component, Vue, Prop } from 'vue-property-decorator';
|
|
12
13
|
|
|
13
14
|
type Type = 'error' | 'info';
|
|
14
15
|
|
|
15
|
-
@Component({ name: 'CBanner' })
|
|
16
|
+
@Component({ name: 'CBanner', components: { FontAwesomeIcon } })
|
|
16
17
|
export default class CBanner extends Vue {
|
|
17
18
|
@Prop(String) icon?: string;
|
|
18
19
|
@Prop({ type: String, required: true }) message!: string;
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
<script lang="ts">
|
|
10
10
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
11
11
|
import { faChevronRight } from '@fortawesome/pro-light-svg-icons';
|
|
12
|
+
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
|
12
13
|
import { Component, Vue, Prop } from 'vue-property-decorator';
|
|
13
14
|
|
|
14
|
-
@Component({ name: 'CListItemAction' })
|
|
15
|
+
@Component({ name: 'CListItemAction', components: { FontAwesomeIcon } })
|
|
15
16
|
export default class CListItemAction extends Vue {
|
|
16
17
|
@Prop({ type: [String, Array, Object], default: () => faChevronRight }) icon!: IconDefinition;
|
|
17
18
|
}
|
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
|
|
17
17
|
<script lang="ts">
|
|
18
18
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
19
|
+
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
|
19
20
|
import { Component, Vue, Prop } from 'vue-property-decorator';
|
|
20
21
|
|
|
21
|
-
@Component({ name: 'CListItemIcon' })
|
|
22
|
+
@Component({ name: 'CListItemIcon', components: { FontAwesomeIcon } })
|
|
22
23
|
export default class CListItemIcon extends Vue {
|
|
23
24
|
@Prop({ type: [String, Array, Object] }) icon?: IconDefinition;
|
|
24
25
|
@Prop({ type: Boolean, default: true }) fixedSize!: boolean;
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
<script lang="ts">
|
|
47
47
|
import { faSync, faTimes } from '@fortawesome/pro-light-svg-icons';
|
|
48
|
+
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
|
48
49
|
import { Component, Vue, Prop } from 'vue-property-decorator';
|
|
49
50
|
|
|
50
51
|
import CCard from '@/components/CCard.vue';
|
|
@@ -52,7 +53,10 @@ import CCardHeader from '@/components/CCardHeader.vue';
|
|
|
52
53
|
import CCardSection from '@/components/CCardSection.vue';
|
|
53
54
|
import CIconButton from '@/components/CIconButton.vue';
|
|
54
55
|
|
|
55
|
-
@Component({
|
|
56
|
+
@Component({
|
|
57
|
+
name: 'CModal',
|
|
58
|
+
components: { CCard, CCardSection, CCardHeader, CIconButton, FontAwesomeIcon },
|
|
59
|
+
})
|
|
56
60
|
export default class CModal extends Vue {
|
|
57
61
|
faSync = faSync;
|
|
58
62
|
faTimes = faTimes;
|
|
@@ -35,13 +35,14 @@
|
|
|
35
35
|
<script lang="ts">
|
|
36
36
|
import { IconDefinition } from '@fortawesome/fontawesome-common-types';
|
|
37
37
|
import { faTimes } from '@fortawesome/pro-light-svg-icons';
|
|
38
|
+
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
|
38
39
|
import { Component, Vue, Prop } from 'vue-property-decorator';
|
|
39
40
|
import { RawLocation } from 'vue-router';
|
|
40
41
|
|
|
41
42
|
import CButton from '@/components/CButton.vue';
|
|
42
43
|
import CIconButton from '@/components/CIconButton.vue';
|
|
43
44
|
|
|
44
|
-
@Component({ name: 'CNotification', components: { CButton, CIconButton } })
|
|
45
|
+
@Component({ name: 'CNotification', components: { CButton, CIconButton, FontAwesomeIcon } })
|
|
45
46
|
export default class CNotification extends Vue {
|
|
46
47
|
faTimes = faTimes;
|
|
47
48
|
|
|
@@ -43,13 +43,18 @@
|
|
|
43
43
|
|
|
44
44
|
<script lang="ts">
|
|
45
45
|
import { faChevronDown, faSpinner } from '@fortawesome/pro-light-svg-icons';
|
|
46
|
+
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
|
46
47
|
import { Component, Vue, Prop } from 'vue-property-decorator';
|
|
47
48
|
|
|
48
49
|
import FormField from '@/components/helpers/FormField.vue';
|
|
49
50
|
import SelectInput from '@/components/helpers/SelectInput.vue';
|
|
50
51
|
|
|
51
52
|
// @ts-ignore
|
|
52
|
-
@Component({
|
|
53
|
+
@Component({
|
|
54
|
+
name: 'CSelect',
|
|
55
|
+
inheritAttrs: false,
|
|
56
|
+
components: { FormField, SelectInput, FontAwesomeIcon },
|
|
57
|
+
})
|
|
53
58
|
export default class CSelect extends Vue {
|
|
54
59
|
faChevronDown = faChevronDown;
|
|
55
60
|
faSpinner = faSpinner;
|
package/src/styles/_core.scss
CHANGED
|
@@ -57,19 +57,20 @@ $font-weight-bold: 700;
|
|
|
57
57
|
$font-weight-heavy: 800;
|
|
58
58
|
$font-weight-black: 900;
|
|
59
59
|
|
|
60
|
-
$font-size-3x-large:
|
|
61
|
-
$font-size-2x-large:
|
|
62
|
-
$font-size-x-large:
|
|
63
|
-
$font-size-large:
|
|
64
|
-
$font-size-medium:
|
|
60
|
+
$font-size-3x-large: 48px;
|
|
61
|
+
$font-size-2x-large: 35px;
|
|
62
|
+
$font-size-x-large: 26px;
|
|
63
|
+
$font-size-large: 21px;
|
|
64
|
+
$font-size-medium: 15px;
|
|
65
65
|
$font-size-small: 12px;
|
|
66
66
|
|
|
67
67
|
$line-height-balance: 100%;
|
|
68
|
-
$line-height-large-headline:
|
|
68
|
+
$line-height-large-headline: 130%;
|
|
69
69
|
$line-height-headline: 130%;
|
|
70
|
-
$line-height-subheadline:
|
|
70
|
+
$line-height-subheadline: 150%;
|
|
71
71
|
$line-height-body: 150%;
|
|
72
|
-
$line-height-
|
|
72
|
+
$line-height-statement: 100%;
|
|
73
|
+
$line-height-caption: 130%;
|
|
73
74
|
$line-height-overline: 100%;
|
|
74
75
|
|
|
75
76
|
@mixin balance {
|
|
@@ -82,9 +83,8 @@ $line-height-overline: 100%;
|
|
|
82
83
|
@mixin large-headline {
|
|
83
84
|
font-family: $font-family-object-sans !important;
|
|
84
85
|
font-size: $font-size-2x-large !important;
|
|
85
|
-
font-weight: $font-weight-
|
|
86
|
+
font-weight: $font-weight-bold;
|
|
86
87
|
line-height: $line-height-large-headline;
|
|
87
|
-
text-transform: uppercase;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
@mixin large-headline-script {
|
|
@@ -96,24 +96,18 @@ $line-height-overline: 100%;
|
|
|
96
96
|
|
|
97
97
|
@mixin headline {
|
|
98
98
|
font-family: $font-family-object-sans !important;
|
|
99
|
-
font-size: $font-size-
|
|
100
|
-
font-weight: $font-weight-
|
|
99
|
+
font-size: $font-size-large !important;
|
|
100
|
+
font-weight: $font-weight-bold;
|
|
101
101
|
line-height: $line-height-headline;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
@mixin subheadline {
|
|
105
105
|
font-family: $font-family-object-sans !important;
|
|
106
|
-
font-size: $font-size-
|
|
107
|
-
font-weight: $font-weight-
|
|
106
|
+
font-size: $font-size-medium !important;
|
|
107
|
+
font-weight: $font-weight-medium;
|
|
108
108
|
line-height: $line-height-subheadline;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
@mixin title {
|
|
112
|
-
@include body;
|
|
113
|
-
|
|
114
|
-
font-weight: $font-weight-bold;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
111
|
@mixin body() {
|
|
118
112
|
font-family: $font-family-object-sans !important;
|
|
119
113
|
font-size: $font-size-medium !important;
|
|
@@ -121,6 +115,12 @@ $line-height-overline: 100%;
|
|
|
121
115
|
line-height: $line-height-body;
|
|
122
116
|
}
|
|
123
117
|
|
|
118
|
+
@mixin statement() {
|
|
119
|
+
@include body();
|
|
120
|
+
|
|
121
|
+
line-height: $line-height-statement;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
124
|
@mixin caption() {
|
|
125
125
|
font-family: $font-family-object-sans !important;
|
|
126
126
|
font-size: $font-size-small !important;
|
|
@@ -133,7 +133,7 @@ $line-height-overline: 100%;
|
|
|
133
133
|
font-family: $font-family-object-sans !important;
|
|
134
134
|
font-size: $font-size-small !important ;
|
|
135
135
|
font-weight: $font-weight-heavy;
|
|
136
|
-
letter-spacing:
|
|
136
|
+
letter-spacing: 1px !important;
|
|
137
137
|
line-height: $line-height-overline;
|
|
138
138
|
text-transform: uppercase;
|
|
139
139
|
}
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
|
|
19
19
|
@include object-sans($font-weight-thin, 'ObjectSans-Thin', 'ObjectSans-ThinSlanted');
|
|
20
20
|
@include object-sans($font-weight-normal, 'ObjectSans-Regular', 'ObjectSans-Slanted');
|
|
21
|
+
@include object-sans($font-weight-medium, 'ObjectSans-Medium', 'ObjectSans-MediumSlanted');
|
|
21
22
|
@include object-sans($font-weight-bold, 'ObjectSans-Bold', 'ObjectSans-BoldSlanted');
|
|
22
23
|
@include object-sans($font-weight-heavy, 'ObjectSans-Heavy', 'ObjectSans-HeavySlanted');
|
|
23
|
-
@include object-sans($font-weight-black, 'ObjectSans-Black', 'ObjectSans-BlackSlanted');
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|