@una-ui/nuxt-edge 0.65.0-29355522.1d73e77 → 0.66.0-29382449.1049b57
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 +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/combobox/Combobox.vue +1 -0
- package/dist/runtime/components/overlays/Toaster.vue +1 -0
- package/dist/runtime/components/overlays/toast/ToastProvider.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarProvider.vue +7 -2
- package/dist/runtime/types/sidebar.d.ts +5 -0
- package/package.json +6 -6
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -48,6 +48,7 @@ const props = defineProps({
|
|
|
48
48
|
openOnFocus: { type: Boolean, required: false },
|
|
49
49
|
openOnClick: { type: Boolean, required: false },
|
|
50
50
|
ignoreFilter: { type: Boolean, required: false },
|
|
51
|
+
resetModelValueOnClear: { type: Boolean, required: false },
|
|
51
52
|
defaultValue: { type: null, required: false },
|
|
52
53
|
dir: { type: String, required: false },
|
|
53
54
|
disabled: { type: Boolean, required: false },
|
|
@@ -13,6 +13,7 @@ const props = defineProps({
|
|
|
13
13
|
class: { type: null, required: false },
|
|
14
14
|
label: { type: String, required: false },
|
|
15
15
|
duration: { type: Number, required: false },
|
|
16
|
+
disableSwipe: { type: Boolean, required: false },
|
|
16
17
|
swipeDirection: { type: String, required: false },
|
|
17
18
|
swipeThreshold: { type: Number, required: false }
|
|
18
19
|
});
|
|
@@ -3,6 +3,7 @@ import { ToastProvider } from "reka-ui";
|
|
|
3
3
|
const props = defineProps({
|
|
4
4
|
label: { type: String, required: false },
|
|
5
5
|
duration: { type: Number, required: false, default: 5e3 },
|
|
6
|
+
disableSwipe: { type: Boolean, required: false },
|
|
6
7
|
swipeDirection: { type: String, required: false },
|
|
7
8
|
swipeThreshold: { type: Number, required: false }
|
|
8
9
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { useCookie } from "#app";
|
|
2
3
|
import { useEventListener, useMediaQuery, useVModel } from "@vueuse/core";
|
|
3
4
|
import { TooltipProvider } from "reka-ui";
|
|
4
5
|
import { computed, ref } from "vue";
|
|
@@ -13,13 +14,17 @@ const props = defineProps({
|
|
|
13
14
|
const emits = defineEmits(["update:open"]);
|
|
14
15
|
const isMobile = useMediaQuery("(max-width: 768px)");
|
|
15
16
|
const openMobile = ref(false);
|
|
17
|
+
const openCookie = useCookie(SIDEBAR_COOKIE_NAME, {
|
|
18
|
+
maxAge: SIDEBAR_COOKIE_MAX_AGE,
|
|
19
|
+
default: () => props.defaultOpen ?? false
|
|
20
|
+
});
|
|
16
21
|
const open = useVModel(props, "open", emits, {
|
|
17
|
-
defaultValue:
|
|
22
|
+
defaultValue: openCookie.value,
|
|
18
23
|
passive: props.open === void 0
|
|
19
24
|
});
|
|
20
25
|
function setOpen(value) {
|
|
21
26
|
open.value = value;
|
|
22
|
-
|
|
27
|
+
openCookie.value = open.value;
|
|
23
28
|
}
|
|
24
29
|
function setOpenMobile(value) {
|
|
25
30
|
openMobile.value = value;
|
|
@@ -56,6 +56,11 @@ export interface NSidebarProviderProps {
|
|
|
56
56
|
/**
|
|
57
57
|
* Default open state.
|
|
58
58
|
*
|
|
59
|
+
* Sets the initial sidebar state when no persisted value exists.
|
|
60
|
+
*
|
|
61
|
+
* The sidebar state is automatically persisted in a cookie. On subsequent loads,
|
|
62
|
+
* the persisted cookie value takes precedence over this prop.
|
|
63
|
+
*
|
|
59
64
|
* @default true
|
|
60
65
|
*/
|
|
61
66
|
defaultOpen?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@una-ui/nuxt-edge",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.66.0-29382449.1049b57",
|
|
5
5
|
"description": "Nuxt module for @una-ui",
|
|
6
6
|
"author": "Phojie Rengel <phojrengel@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@nuxt/kit": "^3.19.2",
|
|
41
41
|
"@nuxtjs/color-mode": "^3.5.2",
|
|
42
42
|
"@tanstack/vue-table": "^8.21.3",
|
|
43
|
-
"@una-ui/extractor-vue-script": "npm:@una-ui/extractor-vue-script-edge@0.
|
|
44
|
-
"@una-ui/preset": "npm:@una-ui/preset-edge@0.
|
|
43
|
+
"@una-ui/extractor-vue-script": "npm:@una-ui/extractor-vue-script-edge@0.66.0-29382449.1049b57",
|
|
44
|
+
"@una-ui/preset": "npm:@una-ui/preset-edge@0.66.0-29382449.1049b57",
|
|
45
45
|
"@unocss/core": "^66.5.4",
|
|
46
46
|
"@unocss/nuxt": "^66.5.4",
|
|
47
47
|
"@unocss/preset-attributify": "^66.5.4",
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"class-variance-authority": "^0.7.1",
|
|
56
56
|
"clsx": "^2.1.1",
|
|
57
57
|
"ohash": "^1.1.6",
|
|
58
|
-
"reka-ui": "^2.
|
|
59
|
-
"tailwind-merge": "^3.
|
|
58
|
+
"reka-ui": "^2.6.0",
|
|
59
|
+
"tailwind-merge": "^3.4.0",
|
|
60
60
|
"unocss": "^66.5.4",
|
|
61
61
|
"unocss-preset-animations": "^1.3.0",
|
|
62
62
|
"vaul-vue": "^0.4.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@iconify-json/lucide": "^1.2.
|
|
65
|
+
"@iconify-json/lucide": "^1.2.73",
|
|
66
66
|
"@iconify-json/radix-icons": "^1.2.5",
|
|
67
67
|
"@iconify-json/tabler": "^1.2.23",
|
|
68
68
|
"@nuxt/module-builder": "^1.0.2",
|