@pocketprep/ui-kit 3.4.24 → 3.4.26

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.
@@ -1,13 +1,13 @@
1
1
  <template>
2
- <div class="filter">
2
+ <div class="uikit-filter">
3
3
  <Link
4
4
  v-dark="isDarkMode"
5
5
  :has-icon="true"
6
6
  :aria-expanded="showFilterDropdown ? 'true' : 'false'"
7
- class="filter__link"
7
+ class="uikit-filter__link"
8
8
  :class="{
9
- 'filter__link--open': showFilterDropdown,
10
- 'filter__link--responsive': responsiveButton,
9
+ 'uikit-filter__link--open': showFilterDropdown,
10
+ 'uikit-filter__link--responsive': responsiveButton,
11
11
  }"
12
12
  role="button"
13
13
  type="tertiary"
@@ -17,12 +17,12 @@
17
17
  >
18
18
  <Icon
19
19
  type="filter"
20
- class="filter__icon"
20
+ class="uikit-filter__icon"
21
21
  />
22
22
  <span
23
- class="filter__text"
23
+ class="uikit-filter__text"
24
24
  :class="{
25
- 'filter__text--responsive': responsiveButton,
25
+ 'uikit-filter__text--responsive': responsiveButton,
26
26
  }"
27
27
  >
28
28
  {{ filterLabel }}
@@ -31,10 +31,10 @@
31
31
  <div
32
32
  v-if="showFilterDropdown"
33
33
  v-dark="isDarkMode"
34
- class="filter__dropdown"
34
+ class="uikit-filter__dropdown"
35
35
  :class="{
36
- [`filter__dropdown--${align}`]: true,
37
- [`filter__dropdown--${size}`]: true
36
+ [`uikit-filter__dropdown--${align}`]: true,
37
+ [`uikit-filter__dropdown--${size}`]: true
38
38
  }"
39
39
  >
40
40
  <slot name="filterOptions">
@@ -103,7 +103,7 @@ export default class FilterDropdown extends Vue {
103
103
  clickListener (e: MouseEvent) {
104
104
  if (this.showFilterDropdown) {
105
105
  const targetEl = e.target as HTMLElement
106
- if (!targetEl?.closest('.filter')
106
+ if (!targetEl?.closest('.uikit-filter')
107
107
  && this.showFilterDropdown !== 'checkbox'
108
108
  && document.body.contains(targetEl)
109
109
  ) {
@@ -155,7 +155,7 @@ export default class FilterDropdown extends Vue {
155
155
  @import '../../styles/colors';
156
156
  @import '../../styles/breakpoints';
157
157
 
158
- .filter {
158
+ .uikit-filter {
159
159
  position: relative;
160
160
  z-index: 2;
161
161
 
@@ -199,13 +199,13 @@ export default class FilterDropdown extends Vue {
199
199
  z-index: 1;
200
200
  box-sizing: border-box;
201
201
  background: $white;
202
- box-shadow: 0 6px 22px 0 rgba($brand-black, 0.1);
202
+ box-shadow: 0 6px 22px 0 rgba($brand-black, 0.2);
203
203
  max-height: 305px;
204
204
  overflow: auto;
205
205
 
206
206
  &--dark {
207
207
  background: $brand-black;
208
- box-shadow: 0 1px 6px 0 rgba($jet, 0.3);
208
+ box-shadow: 0 6px 22px 0 rgba($jet, 0.6);
209
209
  }
210
210
 
211
211
  &--left {
@@ -56,14 +56,14 @@ export default class Modal extends Vue {
56
56
 
57
57
  .uikit-modal {
58
58
  border-radius: 12px;
59
- box-shadow: 0 2px 30px 0 rgba($brand-black, 0.1);
59
+ box-shadow: 0 1px 40px 0 rgba($brand-black, 0.5);
60
60
  z-index: 10001;
61
61
  background-color: $white;
62
62
 
63
63
  &--dark {
64
64
  background-color: $moonlit-ocean;
65
65
  color: $white;
66
- box-shadow: 0 1px 6px 0 rgba($jet, 0.3);
66
+ box-shadow: 0 1px 40px 0 $jet;
67
67
  }
68
68
 
69
69
  &__head {
@@ -3,9 +3,13 @@
3
3
  v-dark="isDarkMode"
4
4
  class="uikit-tag"
5
5
  :class="{
6
- 'uikit-tag--small': isSmallTag,
6
+ 'uikit-tag--small': size === 'small',
7
+ 'uikit-tag--medium': size === 'medium',
7
8
  'uikit-tag--beta': isBetaTag,
8
9
  'uikit-tag--learning': isLearningTag,
10
+ 'uikit-tag--active': isActiveTag,
11
+ 'uikit-tag--pending': isPendingTag,
12
+ 'uikit-tag--archived': isArchivedTag,
9
13
  }"
10
14
  >
11
15
  <slot name="tagMessage" />
@@ -24,7 +28,10 @@ import { dark } from '../../directives'
24
28
  export default class Tag extends Vue {
25
29
  @Prop({ default: false }) isBetaTag!: boolean
26
30
  @Prop({ default: false }) isLearningTag!: boolean
27
- @Prop({ default: false }) isSmallTag!: boolean
31
+ @Prop({ default: false }) isActiveTag!: boolean
32
+ @Prop({ default: false }) isPendingTag!: boolean
33
+ @Prop({ default: false }) isArchivedTag!: boolean
34
+ @Prop({ default: 'large' }) size!: 'small' | 'medium' | 'large'
28
35
  @Prop({ default: false }) isDarkMode!: boolean
29
36
  }
30
37
  </script>
@@ -55,6 +62,13 @@ export default class Tag extends Vue {
55
62
  border: 1px solid $banana-bread;
56
63
  }
57
64
 
65
+ &--medium {
66
+ font-size: 12px;
67
+ height: 17px;
68
+ line-height: 16px;
69
+ padding: 0 3px;
70
+ }
71
+
58
72
  &--small {
59
73
  font-size: 12px;
60
74
  height: 16px;
@@ -81,5 +95,23 @@ export default class Tag extends Vue {
81
95
  background-color: $orchid;
82
96
  }
83
97
  }
98
+
99
+ &--active {
100
+ border: none;
101
+ background: $meadow;
102
+ color: $scifi-takeout
103
+ }
104
+
105
+ &--pending {
106
+ border: none;
107
+ background: $buttermilk;
108
+ color: $flat-brown
109
+ }
110
+
111
+ &--archived {
112
+ border: none;
113
+ background: $fog;
114
+ color: $pickled-bluewood
115
+ }
84
116
  }
85
117
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.4.24",
3
+ "version": "3.4.26",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {