Skip to content

Commit

Permalink
chore: deps updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-solanki committed Apr 19, 2023
1 parent d46ada8 commit 88d3817
Show file tree
Hide file tree
Showing 12 changed files with 899 additions and 456 deletions.
10 changes: 5 additions & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@
"devDependencies": {
"@iconify-json/bx": "^1.1.6",
"@iconify-json/fluent-emoji": "^1.1.13",
"@iconify-json/logos": "^1.1.24",
"@iconify-json/logos": "^1.1.25",
"@unocss/preset-icons": "^0.51.4",
"@unocss/preset-uno": "0.51.4",
"@unocss/preset-web-fonts": "^0.51.4",
"@vee-validate/zod": "^4.8.4",
"@vee-validate/zod": "^4.8.6",
"markdown-it": "^13.0.1",
"markdown-it-container": "^3.0.0",
"postcss-prefix-selector": "^1.16.0",
"unocss": "^0.51.4",
"vitepress": "1.0.0-alpha.65",
"vitepress": "1.0.0-alpha.72",
"zod": "3.21.4"
},
"dependencies": {
"@anu-vue/preset-theme-default": "workspace:*",
"@vueuse/core": "10.0.0-beta.2",
"@vueuse/core": "10.0.2",
"anu-vue": "workspace:*",
"vee-validate": "^4.8.4",
"vee-validate": "^4.8.6",
"vue": "^3.2.47"
}
}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@antfu/eslint-config": "^0.38.4",
"@antfu/eslint-config": "^0.38.5",
"@antfu/ni": "^0.21.3",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"@vue-macros/volar": "^0.9.5",
"bumpp": "^9.1.0",
"concurrently": "^8.0.1",
Expand All @@ -36,21 +36,21 @@
"eslint-plugin-jsonc": "^2.7.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-unicorn": "^46.0.0",
"eslint-plugin-vue": "^9.10.0",
"eslint-plugin-vue": "^9.11.0",
"fast-glob": "^3.2.12",
"fs-extra": "^11.1.1",
"globby": "^13.1.4",
"jiti": "^1.18.2",
"pathe": "^1.1.0",
"pnpm": "^7.32.0",
"pnpm": "^7.32.1",
"rimraf": "^5.0.0",
"semver": "^7.4.0",
"semver": "^7.5.0",
"taze": "^0.9.1",
"tsx": "^3.12.6",
"typescript": "^5.0.4",
"unbuild": "^1.2.0",
"unbuild": "^1.2.1",
"unplugin-vue-macros": "^2.0.0",
"vue-component-meta": "^1.2.0"
},
"packageManager": "pnpm@8.2.0"
"packageManager": "pnpm@8.3.0"
}
10 changes: 5 additions & 5 deletions packages/anu-nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@
"@anu-vue/preset-theme-default": "workspace:*",
"@floating-ui/dom": "^1.2.6",
"@iconify-json/bx": "latest",
"@nuxt/kit": "^3.4.0",
"@nuxt/kit": "^3.4.1",
"anu-vue": "workspace:*"
},
"devDependencies": {
"@nuxt/devtools": "0.4.0",
"@nuxt/devtools-ui-kit": "0.4.0",
"@nuxt/devtools": "0.4.1",
"@nuxt/devtools-ui-kit": "0.4.1",
"@nuxt/module-builder": "^0.3.0",
"@nuxt/schema": "^3.4.0",
"@nuxt/schema": "^3.4.1",
"@unocss/nuxt": "^0.51.4",
"nuxt": "^3.4.0"
"nuxt": "^3.4.1"
}
}
3 changes: 3 additions & 0 deletions packages/anu-vue/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ declare global {
const createGlobalState: typeof import('@vueuse/core')['createGlobalState']
const createInjectionState: typeof import('@vueuse/core')['createInjectionState']
const createReactiveFn: typeof import('@vueuse/core')['createReactiveFn']
const createReusableTemplate: typeof import('@vueuse/core')['createReusableTemplate']
const createSharedComposable: typeof import('@vueuse/core')['createSharedComposable']
const createTemplatePromise: typeof import('@vueuse/core')['createTemplatePromise']
const createUnrefFn: typeof import('@vueuse/core')['createUnrefFn']
const customRef: typeof import('vue')['customRef']
const debouncedRef: typeof import('@vueuse/core')['debouncedRef']
Expand Down Expand Up @@ -99,6 +101,7 @@ declare global {
const unrefElement: typeof import('@vueuse/core')['unrefElement']
const until: typeof import('@vueuse/core')['until']
const useActiveElement: typeof import('@vueuse/core')['useActiveElement']
const useAnimate: typeof import('@vueuse/core')['useAnimate']
const useArrayDifference: typeof import('@vueuse/core')['useArrayDifference']
const useArrayEvery: typeof import('@vueuse/core')['useArrayEvery']
const useArrayFilter: typeof import('@vueuse/core')['useArrayFilter']
Expand Down
10 changes: 5 additions & 5 deletions packages/anu-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@
"@vitejs/plugin-vue-jsx": "^3.0.1",
"@vitest/browser": "file:vitest-browser-0.30.1.tgz",
"@vue/test-utils": "^2.3.2",
"@vueuse/core": "10.0.0-beta.2",
"@vueuse/core": "10.0.2",
"jsdom": "^21.1.1",
"markdown-it": "^13.0.1",
"sass": "^1.62.0",
"typescript": "^5.0.4",
"unocss": "^0.51.4",
"unplugin-auto-import": "^0.15.2",
"unplugin-auto-import": "^0.15.3",
"unplugin-vue-components": "^0.24.1",
"unplugin-vue-define-options": "^1.3.3",
"vite": "^4.2.1",
"vite-plugin-dts": "^1.7.3",
"vite": "^4.2.2",
"vite-plugin-dts": "^2.3.0",
"vitest": "^0.30.1",
"vue-router": "^4.1.6",
"vue-tsc": "^1.2.0",
"webdriverio": "^8.8.1"
"webdriverio": "^8.8.4"
},
"peerDependencies": {
"@unocss/reset": "^0.41.1",
Expand Down
12 changes: 6 additions & 6 deletions packages/anu-vue/src/composables/useCheckbox.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { MaybeComputedRef } from '@vueuse/core'
import type { MaybeRefOrGetter } from '@vueuse/core'
import type { ExtractPropTypes, PropType } from 'vue'

export type CheckboxModelValue = null | string | number | boolean | unknown[]
Expand Down Expand Up @@ -45,12 +45,12 @@ export const useCheckboxProps = {
export type UseCheckboxProps = ExtractPropTypes<typeof useCheckboxProps>

export function useCheckbox<Name extends string>(
modelValue: MaybeComputedRef<CheckboxModelValue>,
modelValue: MaybeRefOrGetter<CheckboxModelValue>,
emit: (event: Name, ...args: any[]) => void,
checkedValue: MaybeComputedRef<CheckboxModelValue> = true,
uncheckedValue: MaybeComputedRef<CheckboxModelValue> = false,
indeterminateValue: MaybeComputedRef<CheckboxModelValue> = null,
cycleIndeterminate: MaybeComputedRef<boolean> = false,
checkedValue: MaybeRefOrGetter<CheckboxModelValue> = true,
uncheckedValue: MaybeRefOrGetter<CheckboxModelValue> = false,
indeterminateValue: MaybeRefOrGetter<CheckboxModelValue> = null,
cycleIndeterminate: MaybeRefOrGetter<boolean> = false,
) {
const handleModelValueChange = () => {
const _cycleIndeterminate = resolveUnref(cycleIndeterminate)
Expand Down
4 changes: 2 additions & 2 deletions packages/anu-vue/src/composables/useGroupModel.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { MaybeComputedRef } from '@vueuse/core'
import type { MaybeRefOrGetter } from '@vueuse/core'
import type { ComputedRef, Ref } from 'vue'
import { computed, ref, toRaw, unref, watch } from 'vue'

// TODO: Improve typings

export interface ComposableParams<T> {
multi?: MaybeComputedRef<boolean>
multi?: MaybeRefOrGetter<boolean>
options: T[] | number
}

Expand Down
4 changes: 2 additions & 2 deletions packages/anu-vue/src/composables/useIndeterminateCheckbox.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { MaybeComputedRef } from '@vueuse/core'
import type { MaybeRefOrGetter } from '@vueuse/core'
import type { Ref } from 'vue'

export function useIndeterminateCheckbox<T>(selected: Ref<T[]>, options: MaybeComputedRef<T[]>) {
export function useIndeterminateCheckbox<T>(selected: Ref<T[]>, options: MaybeRefOrGetter<T[]>) {
const _options = resolveRef(options)

const vModel = computed({
Expand Down
7 changes: 3 additions & 4 deletions packages/anu-vue/src/composables/useSort.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { MaybeRef } from '@vueuse/core'
import { isNumber } from '@vueuse/core'
import type { ComputedRef, Ref } from 'vue'
import { computed, unref } from 'vue'
import { isEmpty, isObject } from '@/utils/helpers'
import { isEmpty, isNumeric, isObject } from '@/utils/helpers'

export type CustomSort = ((a: unknown, b: unknown) => number)

Expand All @@ -23,8 +22,8 @@ export function useSort<T>(data: MaybeRef<T[]>, sortBy: MaybeRef<typeSortBy> | u
}

const sortValues = (a: unknown, b: unknown): number => {
if (isNumber(a) && isNumber(b))
return a - b
if (isNumeric(a) && isNumeric(b))
return (a as number) - (b as number)

if (isDate(a) && isDate(b)) {
// @ts-expect-error Date.parse can't take Date object as argument
Expand Down
4 changes: 2 additions & 2 deletions packages/anu-vue/src/composables/useTypographyColor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { MaybeComputedRef } from '@vueuse/core'
import type { MaybeRefOrGetter } from '@vueuse/core'
import { resolveUnref } from '@vueuse/core'
import type { ColorProp } from './useProps'
import { colord } from '@/utils/colord'
Expand Down Expand Up @@ -39,7 +39,7 @@ function calculateColor(_isThemeColor: boolean, _color: ColorProp | null, _varia
}
}

export function useTypographyColor(color: MaybeComputedRef<ColorProp | null>, variant: MaybeComputedRef<string>) {
export function useTypographyColor(color: MaybeRefOrGetter<ColorProp | null>, variant: MaybeRefOrGetter<string>) {
const typographyClasses = ref<string[]>([])
const typographyStyles = ref<string[]>([])

Expand Down
2 changes: 1 addition & 1 deletion packages/preset-theme-default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@
"rollup-plugin-scss": "^4.0.0",
"sass": "^1.62.0"
}
}
}
Loading

0 comments on commit 88d3817

Please sign in to comment.