@hostlink/nuxt-light 1.1.3 → 1.1.4

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/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.1.3"
4
+ "version": "1.1.4"
5
5
  }
@@ -0,0 +1,40 @@
1
+ <script setup lang="ts">
2
+ import { computed } from "vue"
3
+
4
+ export interface LSmallBoxProps {
5
+ title: string;
6
+ subtitle: string;
7
+ icon: string;
8
+ color: 'red' | 'pink' | 'purple' | 'deep-purple' | 'indigo' | 'blue' | 'light-blue' | 'cyan' | 'teal' | 'green' | 'light-green' | 'lime' | 'yellow' | 'amber' | 'orange' | 'deep-orange' | 'brown' | 'grey' | 'blue-grey'
9
+ }
10
+
11
+ const props = withDefaults(defineProps<LSmallBoxProps>(), {
12
+ title: '',
13
+ subtitle: '',
14
+ icon: 'local_offer',
15
+ color: 'indigo'
16
+ });
17
+
18
+ const item_class = computed(() => {
19
+ return ["bg-" + props.color + "-4"]
20
+
21
+ })
22
+
23
+ const section_class = computed(() => {
24
+ return ["text-white", "bg-" + props.color]
25
+ })
26
+
27
+
28
+ </script>
29
+
30
+ <template>
31
+ <q-item :class="item_class" class="no-wrap q-pa-none text-white">
32
+ <q-item-section class="q-pa-lg q-mr-none text-white" :class="section_class" side>
33
+ <q-icon :name="icon" size="2rem" />
34
+ </q-item-section>
35
+ <q-item-section class="q-pa-md q-ml-none">
36
+ <q-item-label class="text-h6 text-white">{{ title }}</q-item-label>
37
+ <q-item-label caption class="text-white">{{ subtitle }}</q-item-label>
38
+ </q-item-section>
39
+ </q-item>
40
+ </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",