@policystudio/policy-studio-ui-vue 1.1.37 → 1.1.40
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/css/psui_styles.css
CHANGED
|
@@ -4213,24 +4213,32 @@ video {
|
|
|
4213
4213
|
.psui-el-date-card {
|
|
4214
4214
|
display: flex;
|
|
4215
4215
|
flex-direction: column;
|
|
4216
|
-
align-items: center;
|
|
4217
|
-
padding-top: 0.5rem;
|
|
4218
|
-
padding-bottom: 0.5rem;
|
|
4219
4216
|
--bg-opacity: 1;
|
|
4220
4217
|
background-color: #318FAC;
|
|
4221
4218
|
background-color: rgba(49, 143, 172, var(--bg-opacity));
|
|
4222
|
-
|
|
4219
|
+
--text-opacity: 1;
|
|
4220
|
+
color: #E0EFF6;
|
|
4221
|
+
color: rgba(224, 239, 246, var(--text-opacity));
|
|
4223
4222
|
font-size: 14px;
|
|
4224
4223
|
line-height: 130%;
|
|
4225
|
-
|
|
4226
|
-
|
|
4224
|
+
font-weight: 700;
|
|
4225
|
+
text-align: center;
|
|
4226
|
+
overflow: hidden;
|
|
4227
|
+
border-radius: 0.25rem;
|
|
4228
|
+
width: 61px;
|
|
4227
4229
|
}
|
|
4228
4230
|
|
|
4229
|
-
.psui-el-date-card-month
|
|
4230
|
-
|
|
4231
|
+
.psui-el-date-card-month-day,
|
|
4232
|
+
.psui-el-date-card-year {
|
|
4233
|
+
padding-top: 0.25rem;
|
|
4234
|
+
padding-bottom: 0.25rem;
|
|
4231
4235
|
}
|
|
4232
4236
|
|
|
4233
|
-
.psui-el-date-card-
|
|
4237
|
+
.psui-el-date-card-year {
|
|
4238
|
+
--bg-opacity: 1;
|
|
4239
|
+
background-color: #64B5CE;
|
|
4240
|
+
background-color: rgba(100, 181, 206, var(--bg-opacity));
|
|
4241
|
+
width: 100%;
|
|
4234
4242
|
font-weight: 700;
|
|
4235
4243
|
}
|
|
4236
4244
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.psui-el-date-card {
|
|
3
|
-
@apply psui-flex psui-flex-col psui-
|
|
4
|
-
|
|
3
|
+
@apply psui-flex psui-flex-col psui-bg-blue-60 psui-text-blue-20 psui-text-small psui-font-bold psui-text-center psui-overflow-hidden psui-rounded;
|
|
4
|
+
width: 61px;
|
|
5
5
|
|
|
6
|
-
&-month
|
|
7
|
-
|
|
6
|
+
&-month-day,
|
|
7
|
+
&-year {
|
|
8
|
+
@apply psui-py-1;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
&-
|
|
11
|
-
@apply psui-font-bold;
|
|
10
|
+
|
|
11
|
+
&-year {
|
|
12
|
+
@apply psui-bg-blue-50 psui-w-full psui-font-bold;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="psui-el-date-card">
|
|
3
|
-
<span class="psui-el-date-card-month">
|
|
4
|
-
{{
|
|
3
|
+
<span class="psui-el-date-card-month-day">
|
|
4
|
+
{{ getMonthAndDayFromDate }}
|
|
5
5
|
</span>
|
|
6
|
-
<span class="psui-el-date-card-
|
|
7
|
-
{{
|
|
6
|
+
<span class="psui-el-date-card-year">
|
|
7
|
+
{{ getYearFromDate }}
|
|
8
8
|
</span>
|
|
9
9
|
</div>
|
|
10
10
|
</template>
|
|
@@ -19,11 +19,12 @@ export default {
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
computed: {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
getMonthAndDayFromDate() {
|
|
23
|
+
const options = { month: 'short', day: '2-digit' }
|
|
24
|
+
return (new Date(this.date))?.toLocaleString('default', options).replace('.', '')
|
|
24
25
|
},
|
|
25
|
-
|
|
26
|
-
return (new Date(this.date))?.toLocaleString('default', {
|
|
26
|
+
getYearFromDate() {
|
|
27
|
+
return (new Date(this.date))?.toLocaleString('default', { year: 'numeric' })
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
}
|