@bcrs-shared-components/staff-payment 1.1.4 → 2.0.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.
Files changed (2) hide show
  1. package/StaffPayment.vue +28 -36
  2. package/package.json +2 -2
package/StaffPayment.vue CHANGED
@@ -1,15 +1,15 @@
1
1
  <template>
2
- <v-card flat id="staff-payment-container" class="mt-4 py-8 pr-6 rounded-0">
2
+ <div id="staff-payment-container">
3
3
  <v-row no-gutters>
4
- <v-col cols="3" class="pl-5" v-if="displaySideLabel">
5
- <label class="side-label" :class="{'error-text': invalidSection}">Payment</label>
4
+ <v-col v-if="displaySideLabel" cols="12" sm="3" class="pr-4 pb-4">
5
+ <label class="title-label" :class="{'error-text': invalidSection}">Payment</label>
6
6
  </v-col>
7
7
 
8
- <v-col :cols="displaySideLabel ? 9 : 12" class="pl-2">
9
- <v-radio-group class="payment-group" v-model="paymentOption" hide-details>
8
+ <v-col cols="12" :sm="displaySideLabel ? 9 : 12">
9
+ <v-radio-group class="payment-group" v-model="paymentOption">
10
10
  <!-- Cash or Cheque radio button and form -->
11
- <v-radio id="fas-radio" label="Cash or Cheque" :value="StaffPaymentOptions.FAS" />
12
- <v-form class="ml-8" ref="fasForm" v-model="fasFormValid">
11
+ <v-radio id="fas-radio" class="mb-0" label="Cash or Cheque" :value="StaffPaymentOptions.FAS" />
12
+ <v-form class="mt-4 ml-8" ref="fasForm" v-model="fasFormValid">
13
13
  <v-text-field
14
14
  filled
15
15
  id="routing-slip-number-textfield"
@@ -23,8 +23,8 @@
23
23
  </v-form>
24
24
 
25
25
  <!-- BC Online radio button and form -->
26
- <v-radio id="bcol-radio" label="BC Online" :value="StaffPaymentOptions.BCOL" />
27
- <v-form class="ml-8" ref="bcolForm" v-model="bcolFormValid">
26
+ <v-radio id="bcol-radio" class="mb-0 pt-2" label="BC Online" :value="StaffPaymentOptions.BCOL" />
27
+ <v-form class="mt-4 ml-8" ref="bcolForm" v-model="bcolFormValid">
28
28
  <v-text-field
29
29
  filled
30
30
  id="bcol-account-number-textfield"
@@ -57,15 +57,15 @@
57
57
  </v-form>
58
58
 
59
59
  <!-- No Fee radio button -->
60
- <v-radio id="no-fee-radio" label="No Fee" :value="StaffPaymentOptions.NO_FEE" />
60
+ <v-radio id="no-fee-radio" class="mb-0 pt-2" label="No Fee" :value="StaffPaymentOptions.NO_FEE" />
61
61
 
62
62
  <template v-if="displayPriorityCheckbox">
63
- <v-divider class="mt-5"></v-divider>
63
+ <v-divider class="mt-6"></v-divider>
64
64
 
65
65
  <!-- Priority checkbox -->
66
66
  <v-checkbox
67
- class="mt-2"
68
67
  id="priority-checkbox"
68
+ class="priority-checkbox mt-6 pt-0"
69
69
  label="Priority (add $100.00)"
70
70
  hide-details
71
71
  :input-value="staffPaymentData.isPriority"
@@ -76,7 +76,7 @@
76
76
  </v-radio-group>
77
77
  </v-col>
78
78
  </v-row>
79
- </v-card>
79
+ </div>
80
80
  </template>
81
81
 
82
82
  <script lang="ts">
@@ -264,36 +264,28 @@ export default class StaffPayment extends Vue {
264
264
  @import '@/assets/styles/theme.scss';
265
265
 
266
266
  #staff-payment-container {
267
- margin-top: 1rem;
268
- padding-bottom: 0.5rem;
269
- padding-top: 1rem;
270
267
  line-height: 1.2rem;
271
- font-size: 1rem;
268
+ font-size: $px-16;
272
269
  }
273
270
 
274
- .payment-group {
275
- margin-top: 0;
276
- padding-top: 0;
277
- width: 100%;
271
+ .title-label {
272
+ font-weight: bold;
273
+ color: $gray9;
278
274
  }
279
275
 
280
- // radio buttons
281
- ::v-deep .v-input--selection-controls__input >.v-icon {
282
- color: $gray7 !important;
283
- }
284
-
285
- // radio labels and checkbox labels
286
- ::v-deep .v-input--selection-controls__input + .v-label {
287
- color: $gray7 !important;
276
+ .payment-container {
277
+ > label:first-child {
278
+ font-weight: 700;
279
+ margin-bottom: 2rem;
280
+ }
288
281
  }
289
282
 
290
- // text field labels
291
- ::v-deep .v-text-field__slot .theme--light.v-label {
292
- color: $gray7 !important;
293
- }
283
+ .payment-group {
284
+ margin-top: 0;
285
+ padding-top: 0;
294
286
 
295
- // text input
296
- ::v-deep .v-text-field__slot input {
297
- color: $gray9 !important;
287
+ ::v-deep > .v-input__control {
288
+ margin-bottom: -12px;
289
+ }
298
290
  }
299
291
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcrs-shared-components/staff-payment",
3
- "version": "1.1.4",
3
+ "version": "2.0.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -10,5 +10,5 @@
10
10
  "@bcrs-shared-components/interfaces": "^1.0.32",
11
11
  "vue-property-decorator": "^8.4.0"
12
12
  },
13
- "gitHead": "c6b5073d1508693aa68d2e9f88e04114444fcec9"
13
+ "gitHead": "c62142d5ab461ea2e0680bc6cafaf67e7d56a690"
14
14
  }