@pocketprep/ui-kit 3.5.23 → 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.
@@ -77,6 +77,7 @@
77
77
  <IconAssignment v-else-if="type === 'assignment'" :title="title" />
78
78
  <IconQuickActions v-else-if="type === 'quickActions'" :title="title" />
79
79
  <IconHighlight v-else-if="type === 'highlight'" :title="title" />
80
+ <IconGridDrag v-else-if="type === 'gridDrag'" :title="title" />
80
81
  </template>
81
82
 
82
83
  <script lang="ts">
@@ -152,6 +153,7 @@ import IconLink from './IconLink.vue'
152
153
  import IconAssignment from './IconAssignment.vue'
153
154
  import IconQuickActions from './IconQuickActions.vue'
154
155
  import IconHighlight from './IconHighlight.vue'
156
+ import IconGridDrag from './IconGridDrag.vue'
155
157
 
156
158
  @Component({
157
159
  name: 'Icon',
@@ -226,6 +228,7 @@ import IconHighlight from './IconHighlight.vue'
226
228
  IconAssignment,
227
229
  IconQuickActions,
228
230
  IconHighlight,
231
+ IconGridDrag,
229
232
  },
230
233
  })
231
234
  export default class Icon extends Vue {
@@ -0,0 +1,20 @@
1
+ <script setup lang="ts">
2
+
3
+ const { title } = defineProps<{
4
+ title: string
5
+ }>()
6
+ </script>
7
+
8
+ <template>
9
+ <!-- eslint-disable -->
10
+ <svg width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg">
11
+ <title>{{ title }}</title>
12
+ <rect x="4.5" width="2.5" height="2.5" rx="1.25" fill="currentColor"/>
13
+ <rect x="4.5" y="4.5" width="2.5" height="2.5" rx="1.25" fill="currentColor"/>
14
+ <rect x="4.5" y="9" width="2.5" height="2.5" rx="1.25" fill="currentColor"/>
15
+ <rect y="9" width="2.5" height="2.5" rx="1.25" fill="currentColor"/>
16
+ <rect width="2.5" height="2.5" rx="1.25" fill="currentColor"/>
17
+ <rect y="4.5" width="2.5" height="2.5" rx="1.25" fill="currentColor"/>
18
+ </svg>
19
+ <!-- eslint-enable -->
20
+ </template>
@@ -68,4 +68,5 @@ export type TIconType =
68
68
  | 'link'
69
69
  | 'assignment'
70
70
  | 'quickActions'
71
- | 'highlight'
71
+ | 'highlight'
72
+ | 'gridDrag'
@@ -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.23",
3
+ "version": "3.5.25",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {