@propelinc/citrus-ui 0.3.8 → 0.3.10

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": "@propelinc/citrus-ui",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/propelinc/citrus-ui"
@@ -19,7 +19,7 @@
19
19
  rounded
20
20
  :block="block"
21
21
  :elevation="0"
22
- :large="large"
22
+ :x-large="large"
23
23
  :ripple="false"
24
24
  :to="to"
25
25
  :text="tertiary"
@@ -1,5 +1,13 @@
1
1
  <template>
2
- <v-card flat class="card" :class="{ 'card--divided': divided }" :color="color">
2
+ <v-card
3
+ flat
4
+ :ripple="false"
5
+ class="card"
6
+ :class="{ 'card--divided': divided }"
7
+ :to="to"
8
+ :href="href"
9
+ :color="color"
10
+ >
3
11
  <c-card-header v-if="title">
4
12
  {{ title }}
5
13
  </c-card-header>
@@ -10,6 +18,7 @@
10
18
 
11
19
  <script lang="ts">
12
20
  import { Component, Vue, Prop } from 'vue-property-decorator';
21
+ import { RawLocation } from 'vue-router';
13
22
 
14
23
  import CCardHeader from '@/components/CCardHeader.vue';
15
24
 
@@ -20,6 +29,8 @@ export default class CCard extends Vue {
20
29
  @Prop({ type: Boolean, default: false }) divided!: boolean;
21
30
  /** Sets background color */
22
31
  @Prop(String) color?: string;
32
+ @Prop([Object, String]) to?: RawLocation;
33
+ @Prop(String) href?: string;
23
34
  }
24
35
  </script>
25
36
 
@@ -16,7 +16,6 @@
16
16
  :value="value"
17
17
  :rules="rules"
18
18
  validate-on-blur
19
- :hide-details="rules.length === 0"
20
19
  v-on="$listeners"
21
20
  >
22
21
  <template #append>
@@ -32,6 +31,9 @@
32
31
  </button>
33
32
  </slot>
34
33
  </template>
34
+ <template #message>
35
+ <slot name="message" />
36
+ </template>
35
37
  </v-text-field>
36
38
  </form-field>
37
39
  </template>