Skip to content

Commit 919bb8a

Browse files
committed
chore: wip
1 parent 8803c54 commit 919bb8a

File tree

11 files changed

+13
-20
lines changed

11 files changed

+13
-20
lines changed

bun.lockb

-456 Bytes
Binary file not shown.

storage/framework/core/components/auth/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
"dependencies": {
3737
"@stacksjs/ui": "workspace:*",
3838
"highlight.js": "^11.10.0",
39-
"vue": "^3.4.38",
40-
"vue-sonner": "^1.1.4"
39+
"vue": "^3.4.38"
4140
},
4241
"devDependencies": {
4342
"@microsoft/api-extractor": "^7.47.7",

storage/framework/core/components/calendar/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
"dependencies": {
3737
"@stacksjs/ui": "workspace:*",
3838
"highlight.js": "^11.10.0",
39-
"vue": "^3.4.38",
40-
"vue-sonner": "^1.1.4"
39+
"vue": "^3.4.38"
4140
},
4241
"devDependencies": {
4342
"@microsoft/api-extractor": "^7.47.7",

storage/framework/core/components/calendar/src/components/Toast.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ const pointerStartRef = ref<{ x: number; y: number } | null>(null)
5959
const coords = computed(() => props.position.split('-'))
6060
const y = computed(() => coords.value[0])
6161
const x = computed(() => coords.value[1])
62-
const isStringOfTitle = typeof props.toast.title !== 'string'
63-
const isStringOfDescription = typeof props.toast.description !== 'string'
62+
const isStringOfTitle = computed(() => typeof props.toast.title !== 'string')
63+
const isStringOfDescription = computed(() => typeof props.toast.description !== 'string')
6464
6565
const toastsHeightBefore = computed(() => {
6666
return props.heights.reduce((prev, curr, reducerIndex) => {
@@ -110,8 +110,6 @@ function deleteToast() {
110110
// Save the offset for the exit swipe animation
111111
removed.value = true
112112
offsetBeforeRemove.value = offset.value
113-
const newHeights = props.heights.filter((height) => height.toastId !== props.toast.id)
114-
emit('update:heights', newHeights)
115113
116114
setTimeout(() => {
117115
emit('removeToast', props.toast)

storage/framework/core/components/calendar/src/components/Toaster.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ const isFocusWithinRef = ref(false)
9090
const hotkeyLabel = props.hotkey.join('+').replace(/Key/g, '').replace(/Digit/g, '')
9191
9292
function removeToast(toast: ToastT) {
93+
heights.value = heights.value.filter(({ toastId }) => toastId !== toast.id)
9394
toasts.value = toasts.value.filter(({ id }) => id !== toast.id)
9495
}
9596

storage/framework/core/components/dropdown/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
"dependencies": {
3737
"@stacksjs/ui": "workspace:*",
3838
"highlight.js": "^11.10.0",
39-
"vue": "^3.4.38",
40-
"vue-sonner": "^1.1.4"
39+
"vue": "^3.4.38"
4140
},
4241
"devDependencies": {
4342
"@microsoft/api-extractor": "^7.47.7",

storage/framework/core/components/dropdown/src/components/Toast.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ const pointerStartRef = ref<{ x: number; y: number } | null>(null)
5959
const coords = computed(() => props.position.split('-'))
6060
const y = computed(() => coords.value[0])
6161
const x = computed(() => coords.value[1])
62-
const isStringOfTitle = typeof props.toast.title !== 'string'
63-
const isStringOfDescription = typeof props.toast.description !== 'string'
62+
const isStringOfTitle = computed(() => typeof props.toast.title !== 'string')
63+
const isStringOfDescription = computed(() => typeof props.toast.description !== 'string')
6464
6565
const toastsHeightBefore = computed(() => {
6666
return props.heights.reduce((prev, curr, reducerIndex) => {
@@ -110,8 +110,6 @@ function deleteToast() {
110110
// Save the offset for the exit swipe animation
111111
removed.value = true
112112
offsetBeforeRemove.value = offset.value
113-
const newHeights = props.heights.filter((height) => height.toastId !== props.toast.id)
114-
emit('update:heights', newHeights)
115113
116114
setTimeout(() => {
117115
emit('removeToast', props.toast)

storage/framework/core/components/dropdown/src/components/Toaster.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ const isFocusWithinRef = ref(false)
9090
const hotkeyLabel = props.hotkey.join('+').replace(/Key/g, '').replace(/Digit/g, '')
9191
9292
function removeToast(toast: ToastT) {
93+
heights.value = heights.value.filter(({ toastId }) => toastId !== toast.id)
9394
toasts.value = toasts.value.filter(({ id }) => id !== toast.id)
9495
}
9596

storage/framework/core/components/notification/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
"dependencies": {
3737
"@stacksjs/ui": "workspace:*",
3838
"highlight.js": "^11.10.0",
39-
"vue": "^3.4.38",
40-
"vue-sonner": "^1.1.4"
39+
"vue": "^3.4.38"
4140
},
4241
"devDependencies": {
4342
"@microsoft/api-extractor": "^7.47.7",

storage/framework/core/components/notification/src/components/Toast.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ const pointerStartRef = ref<{ x: number; y: number } | null>(null)
5959
const coords = computed(() => props.position.split('-'))
6060
const y = computed(() => coords.value[0])
6161
const x = computed(() => coords.value[1])
62-
const isStringOfTitle = typeof props.toast.title !== 'string'
63-
const isStringOfDescription = typeof props.toast.description !== 'string'
62+
const isStringOfTitle = computed(() => typeof props.toast.title !== 'string')
63+
const isStringOfDescription = computed(() => typeof props.toast.description !== 'string')
6464
6565
const toastsHeightBefore = computed(() => {
6666
return props.heights.reduce((prev, curr, reducerIndex) => {
@@ -112,8 +112,6 @@ function deleteToast() {
112112
// Save the offset for the exit swipe animation
113113
removed.value = true
114114
offsetBeforeRemove.value = offset.value
115-
const newHeights = props.heights.filter((height) => height.toastId !== props.toast.id)
116-
emit('update:heights', newHeights)
117115
118116
setTimeout(() => {
119117
emit('removeToast', props.toast)

0 commit comments

Comments
 (0)