@pocketprep/ui-kit 3.4.65 → 3.4.66
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/dist/@pocketprep/ui-kit.js +583 -565
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +5 -5
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/lib/components/Messaging/InfoMessage.vue +41 -0
- package/lib/index.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { dark as vDark } from '@/directives'
|
|
3
|
+
defineProps<{
|
|
4
|
+
isDarkMode?: boolean
|
|
5
|
+
}>()
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<div v-dark="isDarkMode" class="info-message">
|
|
10
|
+
<div v-dark="isDarkMode" class="info-message__content">
|
|
11
|
+
<slot></slot>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<style lang="scss" scoped>
|
|
17
|
+
@import '../../styles/breakpoints';
|
|
18
|
+
@import '../../styles/colors';
|
|
19
|
+
|
|
20
|
+
.info-message {
|
|
21
|
+
padding: 11px 16px;
|
|
22
|
+
background-color: $barely-blue;
|
|
23
|
+
border: 1px solid rgba($brand-blue, 0.4);
|
|
24
|
+
border-radius: 6px;
|
|
25
|
+
|
|
26
|
+
&__content {
|
|
27
|
+
font-size: 15px;
|
|
28
|
+
line-height: 20px;
|
|
29
|
+
color: $brand-black;
|
|
30
|
+
|
|
31
|
+
&--dark {
|
|
32
|
+
color: $white;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&--dark {
|
|
37
|
+
background-color: rgba($brand-blue, 0.2);
|
|
38
|
+
border-color: rgba($baby-blue, 0.4);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
</style>
|
package/lib/index.ts
CHANGED
|
@@ -53,6 +53,7 @@ import PremiumPill from './components/Bundles/PremiumPill.vue'
|
|
|
53
53
|
import Toast from './components/Toasts/Toast.vue'
|
|
54
54
|
import EmptyState from './components/EmptyStates/EmptyState.vue'
|
|
55
55
|
import Tag from './components/Tags/Tag.vue'
|
|
56
|
+
import InfoMessage from './components/Messaging/InfoMessage.vue'
|
|
56
57
|
|
|
57
58
|
export * as directives from './directives'
|
|
58
59
|
export * as utils from './utils'
|
|
@@ -111,6 +112,7 @@ const components = {
|
|
|
111
112
|
Toast,
|
|
112
113
|
EmptyState,
|
|
113
114
|
Tag,
|
|
115
|
+
InfoMessage,
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
export default components
|