@policystudio/policy-studio-ui-vue 1.1.34 → 1.1.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.34",
3
+ "version": "1.1.37",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -1,28 +1,30 @@
1
1
  @layer components {
2
- .psui-el-testimonial {
3
- @apply psui-relative psui-bg-white psui-flex psui-flex-col psui-rounded-lg w-full;
4
- padding: 56px 42px 40px 32px;
2
+ .psui-el-testimonial {
3
+ @apply psui-relative psui-bg-white psui-shadow-elevation-5 psui-flex psui-flex-col psui-rounded-lg w-full;
4
+ padding: 56px 42px 40px 32px;
5
5
 
6
- &-icon {
7
- @apply psui-absolute psui-bg-blue-60 psui-rounded-sm psui-flex psui-items-center;
8
- top:-15px;
9
- right:16px;
10
- }
6
+ &-icon {
7
+ @apply psui-absolute psui-bg-blue-60 psui-rounded-sm psui-flex psui-items-center;
8
+ top: -15px;
9
+ right: 16px;
10
+ }
11
+
12
+ &-description {
13
+ @apply psui-text-p psui-text-blue-80 psui-italic;
14
+ margin-bottom: 33px;
15
+ }
11
16
 
12
- &-description {
13
- @apply psui-text-blue-80 psui-italic psui-text-p;
14
- margin-bottom: 33px;
15
- }
17
+ &-info {
18
+ @apply psui-flex psui-flex-col psui-mt-auto;
16
19
 
17
- &-info {
18
- @apply psui-flex psui-flex-col psui-mt-auto;
19
- &-user {
20
- @apply psui-mb-1 psui-text-blue-80 psui-text-small psui-font-bold;
21
- }
20
+ &-user {
21
+ @apply psui-mb-1 psui-text-blue-80 psui-text-small psui-font-bold;
22
+ }
22
23
 
23
- &-position,&-jurisdiction {
24
- @apply psui-text-gray-50 psui-text-small;
25
- }
26
- }
24
+ &-position,
25
+ &-jurisdiction {
26
+ @apply psui-text-gray-50 psui-text-small;
27
+ }
27
28
  }
29
+ }
28
30
  }
@@ -1,19 +1,20 @@
1
1
  <template>
2
- <div class="psui-el-testimonial">
3
- <div class="psui-el-testimonial-icon">
4
- <PsIcon
5
- icon="format_quote"
6
- size="35"
7
- color="psui-text-white"
8
- />
9
- </div>
10
- <p class="psui-el-testimonial-description">{{description}}</p>
11
- <div class="psui-el-testimonial-info">
12
- <span class="psui-el-testimonial-info-user" >{{user}}</span>
13
- <span class="psui-el-testimonial-info-position">{{position}}</span>
14
- <span class="psui-el-testimonial-info-jurisdiction">{{jurisdiction}}</span>
15
- </div>
2
+ <div class="psui-el-testimonial">
3
+ <div class="psui-el-testimonial-icon">
4
+ <PsIcon
5
+ icon="format_quote"
6
+ size="40"
7
+ color="psui-text-white"
8
+ display="flex"
9
+ />
16
10
  </div>
11
+ <p class="psui-el-testimonial-description">{{description}}</p>
12
+ <div class="psui-el-testimonial-info">
13
+ <span class="psui-el-testimonial-info-user" >{{user}}</span>
14
+ <span class="psui-el-testimonial-info-position">{{position}}</span>
15
+ <span class="psui-el-testimonial-info-jurisdiction">{{jurisdiction}}</span>
16
+ </div>
17
+ </div>
17
18
  </template>
18
19
 
19
20
  <script>
@@ -173,7 +173,7 @@
173
173
  :style="`background-color:${getBackgroundColor(item.background_color)};`"
174
174
  v-for="column of columnGroup.columns"
175
175
  :key="indexColumn + '-' + columnGroup.key + '-' + column.key"
176
-
176
+ :data-test-id="column.key"
177
177
  >
178
178
  <div
179
179
  v-if="layout != 'comparison'"
@@ -212,7 +212,7 @@
212
212
  </PsTooltip>
213
213
 
214
214
  <p v-if="formatFunction && !item.is_disabled">
215
- {{ formatFunction(column.key, item.data[column.key], item.data) }}
215
+ {{ formatFunction(column.key, item.data[column.key], item.data, item.study_id) }}
216
216
  </p>
217
217
 
218
218
  <p
@@ -119,6 +119,13 @@ module.exports = {
119
119
  '-1': '-1rem',
120
120
  }
121
121
  },
122
+ screens: {
123
+ 'sm': '640px',
124
+ 'md': '768px',
125
+ 'lg': '1024px',
126
+ 'xl': '1280px',
127
+ '2xl': '1536px',
128
+ }
122
129
  },
123
130
  variants: {
124
131
  boxShadow: ['active'],