@propelinc/citrus-ui 0.5.0 → 0.5.1-dev.1
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 +201 -183
- package/dist/citrus-ui.common.js.map +1 -1
- package/dist/citrus-ui.css +1 -1
- package/dist/citrus-ui.umd.js +201 -183
- 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/components/helpers/FormField.vue +2 -1
- package/src/styles/_core.scss +39 -36
- package/src/styles/_object-sans.scss +1 -1
- package/src/styles/_typography.scss +4 -14
- package/src/styles/variables.scss +48 -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,83 +57,86 @@ $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
|
+
$line-height-large-headline-script: 85%;
|
|
69
70
|
$line-height-headline: 130%;
|
|
70
|
-
$line-height-subheadline:
|
|
71
|
+
$line-height-subheadline: 150%;
|
|
71
72
|
$line-height-body: 150%;
|
|
72
|
-
$line-height-
|
|
73
|
+
$line-height-statement: 100%;
|
|
74
|
+
$line-height-caption: 130%;
|
|
73
75
|
$line-height-overline: 100%;
|
|
74
76
|
|
|
77
|
+
$letter-spacing-overline: 0.5px;
|
|
78
|
+
|
|
75
79
|
@mixin balance {
|
|
76
|
-
font-family: $font-family-object-sans
|
|
77
|
-
font-size: $font-size-2x-large
|
|
80
|
+
font-family: $font-family-object-sans;
|
|
81
|
+
font-size: $font-size-2x-large;
|
|
78
82
|
font-weight: $font-weight-thin;
|
|
79
83
|
line-height: $line-height-balance;
|
|
80
84
|
}
|
|
81
85
|
|
|
82
86
|
@mixin large-headline {
|
|
83
|
-
font-family: $font-family-object-sans
|
|
84
|
-
font-size: $font-size-
|
|
85
|
-
font-weight: $font-weight-
|
|
87
|
+
font-family: $font-family-object-sans;
|
|
88
|
+
font-size: $font-size-x-large;
|
|
89
|
+
font-weight: $font-weight-bold;
|
|
86
90
|
line-height: $line-height-large-headline;
|
|
87
|
-
text-transform: uppercase;
|
|
88
91
|
}
|
|
89
92
|
|
|
90
93
|
@mixin large-headline-script {
|
|
91
94
|
font-family: $font-family-blitz !important;
|
|
92
|
-
font-size: $font-size-
|
|
95
|
+
font-size: $font-size-2x-large !important;
|
|
93
96
|
font-weight: $font-weight-normal;
|
|
94
|
-
line-height: $line-height-large-headline;
|
|
97
|
+
line-height: $line-height-large-headline-script;
|
|
95
98
|
}
|
|
96
99
|
|
|
97
100
|
@mixin headline {
|
|
98
|
-
font-family: $font-family-object-sans
|
|
99
|
-
font-size: $font-size-
|
|
100
|
-
font-weight: $font-weight-
|
|
101
|
+
font-family: $font-family-object-sans;
|
|
102
|
+
font-size: $font-size-large;
|
|
103
|
+
font-weight: $font-weight-bold;
|
|
101
104
|
line-height: $line-height-headline;
|
|
102
105
|
}
|
|
103
106
|
|
|
104
107
|
@mixin subheadline {
|
|
105
|
-
font-family: $font-family-object-sans
|
|
106
|
-
font-size: $font-size-
|
|
107
|
-
font-weight: $font-weight-
|
|
108
|
+
font-family: $font-family-object-sans;
|
|
109
|
+
font-size: $font-size-medium;
|
|
110
|
+
font-weight: $font-weight-medium;
|
|
108
111
|
line-height: $line-height-subheadline;
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
@mixin title {
|
|
112
|
-
@include body;
|
|
113
|
-
|
|
114
|
-
font-weight: $font-weight-bold;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
114
|
@mixin body() {
|
|
118
|
-
font-family: $font-family-object-sans
|
|
119
|
-
font-size: $font-size-medium
|
|
115
|
+
font-family: $font-family-object-sans;
|
|
116
|
+
font-size: $font-size-medium;
|
|
120
117
|
font-weight: $font-weight-normal;
|
|
121
118
|
line-height: $line-height-body;
|
|
122
119
|
}
|
|
123
120
|
|
|
121
|
+
@mixin statement() {
|
|
122
|
+
@include body();
|
|
123
|
+
|
|
124
|
+
line-height: $line-height-statement;
|
|
125
|
+
}
|
|
126
|
+
|
|
124
127
|
@mixin caption() {
|
|
125
|
-
font-family: $font-family-object-sans
|
|
126
|
-
font-size: $font-size-small
|
|
128
|
+
font-family: $font-family-object-sans;
|
|
129
|
+
font-size: $font-size-small;
|
|
127
130
|
font-weight: $font-weight-normal;
|
|
128
|
-
letter-spacing: 0
|
|
131
|
+
letter-spacing: 0;
|
|
129
132
|
line-height: $line-height-caption;
|
|
130
133
|
}
|
|
131
134
|
|
|
132
135
|
@mixin overline() {
|
|
133
|
-
font-family: $font-family-object-sans
|
|
134
|
-
font-size: $font-size-small
|
|
136
|
+
font-family: $font-family-object-sans;
|
|
137
|
+
font-size: $font-size-small ;
|
|
135
138
|
font-weight: $font-weight-heavy;
|
|
136
|
-
letter-spacing:
|
|
139
|
+
letter-spacing: $letter-spacing-overline;
|
|
137
140
|
line-height: $line-height-overline;
|
|
138
141
|
text-transform: uppercase;
|
|
139
142
|
}
|
|
@@ -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');
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
@import "./core.scss";
|
|
2
2
|
|
|
3
3
|
.providers.providers-theme {
|
|
4
|
-
@include body;
|
|
5
|
-
|
|
6
4
|
.balance {
|
|
7
5
|
@include balance;
|
|
8
6
|
}
|
|
@@ -22,22 +20,14 @@
|
|
|
22
20
|
.subheadline {
|
|
23
21
|
@include subheadline;
|
|
24
22
|
}
|
|
25
|
-
|
|
26
|
-
.title {
|
|
27
|
-
@include title;
|
|
28
|
-
}
|
|
29
|
-
|
|
23
|
+
|
|
30
24
|
p,
|
|
31
25
|
.body {
|
|
32
26
|
@include body;
|
|
33
27
|
}
|
|
34
|
-
|
|
35
|
-
.
|
|
36
|
-
@include
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.overline {
|
|
40
|
-
@include overline;
|
|
28
|
+
|
|
29
|
+
.statement {
|
|
30
|
+
@include statement;
|
|
41
31
|
}
|
|
42
32
|
|
|
43
33
|
.font-family-blitz {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// ****************************************************************************
|
|
13
13
|
// GLOBAL OVERRIDES
|
|
14
14
|
// ****************************************************************************
|
|
15
|
-
$font-size-root:
|
|
15
|
+
$font-size-root: 15px;
|
|
16
16
|
|
|
17
17
|
$body-font-family: $font-family-object-sans;
|
|
18
18
|
$heading-font-family: $font-family-object-sans;
|
|
@@ -20,9 +20,51 @@ $heading-font-family: $font-family-object-sans;
|
|
|
20
20
|
$font-weights: (
|
|
21
21
|
"thin": $font-weight-thin,
|
|
22
22
|
"normal": $font-weight-normal,
|
|
23
|
+
"medium": $font-weight-medium,
|
|
23
24
|
"bold": $font-weight-bold,
|
|
24
25
|
"heavy": $font-weight-heavy,
|
|
25
|
-
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
$body: (
|
|
29
|
+
"size": $font-size-medium,
|
|
30
|
+
"weight": $font-weight-normal,
|
|
31
|
+
"line-height": $line-height-body,
|
|
32
|
+
"letter-spacing": normal
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
$headings: (
|
|
36
|
+
"h1": (
|
|
37
|
+
"size": $font-size-x-large,
|
|
38
|
+
"weight": $font-weight-bold,
|
|
39
|
+
"line-height": $line-height-large-headline,
|
|
40
|
+
"letter-spacing": normal
|
|
41
|
+
),
|
|
42
|
+
"h2": (
|
|
43
|
+
"size": $font-size-large,
|
|
44
|
+
"weight": $font-weight-bold,
|
|
45
|
+
"line-height": $line-height-headline,
|
|
46
|
+
"letter-spacing": normal
|
|
47
|
+
),
|
|
48
|
+
"h3": (
|
|
49
|
+
"size": $font-size-medium,
|
|
50
|
+
"weight": $font-weight-medium,
|
|
51
|
+
"line-height": $line-height-subheadline,
|
|
52
|
+
"letter-spacing": normal
|
|
53
|
+
),
|
|
54
|
+
"body-1": $body,
|
|
55
|
+
"body-2": $body,
|
|
56
|
+
"caption": (
|
|
57
|
+
"size": $font-size-small,
|
|
58
|
+
"weight": $font-weight-normal,
|
|
59
|
+
"line-height": $line-height-caption,
|
|
60
|
+
"letter-spacing": normal
|
|
61
|
+
),
|
|
62
|
+
"overline": (
|
|
63
|
+
"size": $font-size-small,
|
|
64
|
+
"weight": $font-weight-heavy,
|
|
65
|
+
"line-height": $line-height-overline,
|
|
66
|
+
"letter-spacing": $letter-spacing-overline,
|
|
67
|
+
)
|
|
26
68
|
);
|
|
27
69
|
|
|
28
70
|
$border-radius-root: 8px;
|
|
@@ -53,6 +95,7 @@ $expansion-panel-active-header-min-height: 0;
|
|
|
53
95
|
$snackbar-left: 16px;
|
|
54
96
|
$snackbar-right: 16px;
|
|
55
97
|
$snackbar-top: 24px;
|
|
98
|
+
$snackbar-content-font-size: $font-size-medium;
|
|
56
99
|
$snackbar-content-padding: 12px 16px;
|
|
57
100
|
|
|
58
101
|
// ****************************************************************************
|
|
@@ -66,8 +109,8 @@ $btn-font-sizes: (
|
|
|
66
109
|
'large': $font-size-large
|
|
67
110
|
);
|
|
68
111
|
$btn-sizes: (
|
|
69
|
-
'default':
|
|
70
|
-
'large':
|
|
112
|
+
'default': 36,
|
|
113
|
+
'large': 58
|
|
71
114
|
);
|
|
72
115
|
|
|
73
116
|
// ****************************************************************************
|
|
@@ -116,6 +159,6 @@ $text-field-enclosed-details-padding: 0 16px;
|
|
|
116
159
|
// MODALS
|
|
117
160
|
// ****************************************************************************
|
|
118
161
|
$dialog-card-title-font-size: $font-size-large;
|
|
119
|
-
$dialog-card-title-font-weight: $font-weight-
|
|
162
|
+
$dialog-card-title-font-weight: $font-weight-bold;
|
|
120
163
|
$dialog-card-title-letter-spacing: normal;
|
|
121
164
|
$dialog-card-text-padding: 0 24px 16px;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|