@pocketprep/ui-kit 3.5.24 → 3.5.25

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.
@@ -13,7 +13,13 @@
13
13
  >
14
14
  <IconClose title="close" />
15
15
  </div>
16
- <div v-if="hasHeadSlot" class="uikit-modal__head">
16
+ <div
17
+ v-if="hasHeadSlot"
18
+ class="uikit-modal__head"
19
+ :class="{
20
+ 'uikit-modal__head--no-border-bottom': removeHeadBorderBottom
21
+ }"
22
+ >
17
23
  <slot name="head" />
18
24
  </div>
19
25
  <slot />
@@ -37,6 +43,7 @@ export default class Modal extends Vue {
37
43
  @Prop({ default: false }) showCloseButton!: boolean
38
44
  @Prop({ default: () => ({}) }) customCloseStyles?: { [key: string]: string }
39
45
  @Prop({ default: false }) isDarkMode!: boolean
46
+ @Prop({ default: false }) removeHeadBorderBottom!: boolean
40
47
 
41
48
  get hasHeadSlot () {
42
49
  // See https://github.com/vuejs/core/issues/7002
@@ -76,6 +83,10 @@ export default class Modal extends Vue {
76
83
  align-items: center;
77
84
  border-bottom: 1px solid rgba($pewter, 0.3);
78
85
 
86
+ &--no-border-bottom {
87
+ border-bottom: none;
88
+ }
89
+
79
90
  @include breakpoint(brown-bear) {
80
91
  padding: 0 16px;
81
92
  }
@@ -21,6 +21,7 @@
21
21
  :show-close-button="showCloseButton"
22
22
  :custom-close-styles="customCloseStyles"
23
23
  :is-dark-mode="isDarkMode"
24
+ :remove-head-border-bottom="removeHeadBorderBottom"
24
25
  @close="emitClose"
25
26
  >
26
27
  <template #head>
@@ -50,6 +51,7 @@ export default class ModalContainer extends Vue {
50
51
  @Prop({ default: () => ({}) }) customCloseStyles?: { [key: string]: unknown }
51
52
  @Prop({ default: false }) isDarkMode!: boolean
52
53
  @Prop({ default: true }) trapFocus!: boolean
54
+ @Prop({ default: false }) removeHeadBorderBottom!: boolean
53
55
 
54
56
  focusListener: Parameters<typeof addEventListener>[1] | null = null
55
57
  savedYPosition = 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.5.24",
3
+ "version": "3.5.25",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {