@resee-movies/nuxt-ux 0.3.1 → 0.4.0

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@resee-movies/nuxt-ux",
3
3
  "configKey": "ux",
4
- "version": "0.3.1",
4
+ "version": "0.4.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.0"
@@ -145,5 +145,5 @@ const altText = computed(() => {
145
145
  </script>
146
146
 
147
147
  <style scoped>
148
- @reference "tailwindcss";.image{background-color:#fff;overflow:clip;position:relative;width:-moz-max-content;width:max-content;@variant dark{background-color:#000}}.image.bordered{border:2px solid var(--color-global-background-accent)}.image.beveled{border-bottom-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl)}.image.raised{box-shadow:var(--shadow-heavy)}.image.glass:after{background-image:linear-gradient(110deg,transparent 25%,hsla(0,0%,100%,.15) 80%,transparent);content:var(--zero-width-space);inset:0;position:absolute}.image .icon{color:var(--color-global-background-accent);left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%)}
148
+ @reference "tailwindcss";.image{background-color:#fff;overflow:clip;position:relative;width:-moz-fit-content;width:fit-content;@variant dark{background-color:#000}}.image.bordered{border:2px solid var(--color-global-background-accent)}.image.beveled{border-bottom-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl)}.image.raised{box-shadow:var(--shadow-heavy)}.image.glass:after{background-image:linear-gradient(110deg,transparent 25%,hsla(0,0%,100%,.15) 80%,transparent);content:var(--zero-width-space);inset:0;position:absolute}.image .icon{color:var(--color-global-background-accent);left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%)}
149
149
  </style>
@@ -1,8 +1,12 @@
1
1
  <template>
2
2
  <PrimeMessage :severity="props.severity" class="message" :pt="passthroughProps">
3
- <slot>
4
- {{ props.text }}
5
- </slot>
3
+ <template #icon>
4
+ <Icon :name="props.icon" :size="props.iconSize" />
5
+ </template>
6
+
7
+ <template #default>
8
+ <slot>{{ props.text }}</slot>
9
+ </template>
6
10
  </PrimeMessage>
7
11
  </template>
8
12
 
@@ -12,12 +16,15 @@ import { computed } from "vue";
12
16
 
13
17
  <script setup>
14
18
  import PrimeMessage from "primevue/message";
19
+ import Icon from "./Icon.vue";
15
20
  const props = defineProps({
16
21
  severity: { type: String, required: false },
17
22
  text: { type: String, required: false },
18
23
  class: { type: String, required: false },
19
24
  style: { type: String, required: false },
20
- accented: { type: Boolean, required: false }
25
+ accented: { type: Boolean, required: false },
26
+ icon: { type: String, required: false },
27
+ iconSize: { type: String, required: false }
21
28
  });
22
29
  const passthroughProps = computed(() => {
23
30
  return {
@@ -1,10 +1,13 @@
1
1
  import type { StatusLevel } from '../types/index.js';
2
+ import type { IconProps } from './Icon.vue.js';
2
3
  export interface MessageProps {
3
4
  severity?: StatusLevel;
4
5
  text?: string;
5
6
  class?: string;
6
7
  style?: string;
7
8
  accented?: boolean;
9
+ icon?: IconProps['name'];
10
+ iconSize?: IconProps['size'];
8
11
  }
9
12
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<MessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MessageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
10
13
  default?: (props: {}) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resee-movies/nuxt-ux",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "The next-gen user experience library for ReSee Movies - currently in development. ",
5
5
  "repository": {
6
6
  "url": "https://github.com/ReSee-Movies/nuxt-ux.git"