@nhealth/nutils 0.0.2 → 0.0.3

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
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=4.0.0"
6
6
  },
7
- "version": "0.0.2",
7
+ "version": "0.0.3",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -35,8 +35,7 @@
35
35
  </template>
36
36
 
37
37
  <script setup>
38
- import { computed } from "vue";
39
- import { useComponentRouter } from "#imports";
38
+ import { computed, useComponentRouter } from "#imports";
40
39
  const props = defineProps({
41
40
  orientation: { type: String, required: false, default: "horizontal" },
42
41
  items: { type: Array, required: false },
@@ -114,7 +114,7 @@
114
114
  </template>
115
115
 
116
116
  <script setup>
117
- import { computed } from "vue";
117
+ import { computed, useConfirmModalState, useConfirmModalActions } from "#imports";
118
118
  const state = useConfirmModalState();
119
119
  const actions = useConfirmModalActions();
120
120
  const opts = computed(() => {
@@ -12,7 +12,7 @@
12
12
  </template>
13
13
 
14
14
  <script setup>
15
- import { computed } from "vue";
15
+ import { computed } from "#imports";
16
16
  const props = defineProps({
17
17
  status: { type: String, required: false, default: "offline" }
18
18
  });
@@ -37,7 +37,7 @@
37
37
  </template>
38
38
 
39
39
  <script setup>
40
- import { computed } from "vue";
40
+ import { computed } from "#imports";
41
41
  const props = defineProps({
42
42
  label: { type: String, required: true },
43
43
  value: { type: [Number, String], required: true },
@@ -9,7 +9,7 @@
9
9
  </template>
10
10
 
11
11
  <script setup>
12
- import { computed } from "vue";
12
+ import { computed } from "#imports";
13
13
  const props = defineProps({
14
14
  label: { type: String, required: true },
15
15
  count: { type: Number, required: false },
@@ -1,3 +1,4 @@
1
+ import { type Ref } from '#imports';
1
2
  import type { InternalRequest, ConfirmModalOptions } from './useConfirmModal.js';
2
3
  type ConfirmModalState = {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ import { useState } from "#imports";
1
2
  export function useConfirmModalState() {
2
3
  return useState("confirmModal", () => ({
3
4
  open: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nhealth/nutils",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Shared Nuxt.js v4 module with components, composables, and utilities",
5
5
  "type": "module",
6
6
  "exports": {