Skip to content

Commit

Permalink
chore(deps): upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisMazel committed Oct 2, 2024
1 parent 88b8603 commit b6f7124
Show file tree
Hide file tree
Showing 8 changed files with 2,082 additions and 2,356 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
]
},
"devDependencies": {
"@antfu/eslint-config": "^3.7.1",
"@antfu/eslint-config": "^3.7.3",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@commitlint/cz-commitlint": "^19.5.0",
"@types/node": "^22.6.1",
"@types/node": "^22.7.4",
"changelogen": "^0.5.7",
"commitizen": "^4.3.0",
"commitizen": "^4.3.1",
"cross-env": "^7.0.3",
"eslint": "9.11.1",
"eslint-plugin-sonarjs": "^1.0.4",
Expand Down
6 changes: 3 additions & 3 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
"devDependencies": {
"@types/postcss-import": "^14.0.3",
"@types/postcss-url": "^10.0.4",
"@types/react": "^18.3.9",
"@types/react": "^18.3.11",
"@vercel/og": "^0.6.3",
"postcss-import": "^16.1.0",
"postcss-url": "^10.1.3",
"react": "^18.3.1",
"tailwindcss": "^3.4.13",
"vitepress": "1.3.4",
"vue": "^3.5.8"
"vue": "^3.5.10"
},
"dependencies": {
"chart.js": "^4.4.4",
"chartjs-plugin-datalabels": "^2.2.0",
"dayjs": "^1.11.13",
"dropzone": "^5.9.3",
"libphonenumber-js": "^1.11.9",
"libphonenumber-js": "^1.11.10",
"maz-ui": "workspace:*",
"vitepress-plugin-google-analytics": "^1.0.2"
}
Expand Down
44 changes: 24 additions & 20 deletions packages/lib/components/MazDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,28 @@ import {
} from 'vue'
import MazBackdrop, { type Props as MazBackdropProps } from './MazBackdrop.vue'
const props = withDefaults(defineProps<Props>(), {
export interface InternalProps {
/** @model Modal's model value */
modelValue?: boolean
/** Title of the modal in header */
title?: string
/** Remove the close button in header */
noClose?: boolean
/** Modal's width */
width?: string
/** Modal's max-width */
maxWidth?: string
/** Modal's max-height */
maxHeight?: string
/** Modal's content becomes scrollable - warning: a overflow is applied */
scrollable?: boolean
/** Persistent dialog (not closable by clicking outside and remove close button) */
persistent?: boolean
}
export type Props = InternalProps & MazBackdropProps
const props = withDefaults(defineProps<Props & MazBackdropProps>(), {
title: undefined,
noClose: false,
width: '500px',
Expand All @@ -21,6 +42,7 @@ const props = withDefaults(defineProps<Props>(), {
scrollable: false,
persistent: false,
})
defineEmits<{
/** emitted when modal is open */
'open': [value: void]
Expand All @@ -29,28 +51,10 @@ defineEmits<{
/** emitted when modal is open or close */
'update:model-value': [value: boolean]
}>()
const MazBtn = defineAsyncComponent(() => import('./MazBtn.vue'))
const XIcon = defineAsyncComponent(() => import('./../icons/x-mark.svg'))
export interface Props extends MazBackdropProps {
/** @model Modal's model value */
modelValue?: boolean
/** Title of the modal in header */
title?: string
/** Remove the close button in header */
noClose?: boolean
/** Modal's width */
width?: string
/** Modal's max-width */
maxWidth?: string
/** Modal's max-height */
maxHeight?: string
/** Modal's content becomes scrollable - warning: a overflow is applied */
scrollable?: boolean
/** Persistent dialog (not closable by clicking outside and remove close button) */
persistent?: boolean
}
const attrs = useAttrs()
const backdrop = ref<ComponentPublicInstance<typeof MazBackdrop>>()
Expand Down
20 changes: 7 additions & 13 deletions packages/lib/components/MazDialogPromise.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
<script lang="ts">
/* eslint-disable import/first */
export {
type DialogCustomButton,
type DialogData,
type DialogState,
useMazDialogPromise,
} from './MazDialogPromise/useMazDialogPromise'
export type { Color, Size } from './types'
export { useMazDialogPromise } from './MazDialogPromise/useMazDialogPromise'
export type { ActionButton, DialogButton, DialogCustomButton, DialogData, DialogState, PromiseButton } from './MazDialogPromise/useMazDialogPromise'
</script>

<script lang="ts" setup>
Expand All @@ -20,12 +15,9 @@ import type {
import { computed, defineAsyncComponent, ref } from 'vue'
import MazDialog, { type Props as MazDialogProps } from './MazDialog.vue'
import {
defaultData,
useMazDialogPromise,
} from './MazDialogPromise/useMazDialogPromise'
import { defaultData, useMazDialogPromise } from './MazDialogPromise/useMazDialogPromise'
export type Props = MazDialogProps & DialogData & {
export interface MazDialogPromiseProps {
/** Dialog Data - @type DialogData */
data?: DialogData
/** Message to display */
Expand All @@ -36,7 +28,9 @@ export type Props = MazDialogProps & DialogData & {
buttons?: DialogCustomButton[]
}
const props = withDefaults(defineProps<Props>(), {
export type Props = MazDialogPromiseProps & MazDialogProps & DialogData
const props = withDefaults(defineProps<MazDialogPromiseProps & MazDialogProps & DialogData>(), {
data: undefined,
buttons: undefined,
})
Expand Down
18 changes: 9 additions & 9 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,16 @@
"@mazui/cli": "workspace:*"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"@babel/preset-typescript": "^7.24.7",
"@babel/core": "^7.25.7",
"@babel/preset-env": "^7.25.7",
"@babel/preset-typescript": "^7.25.7",
"@nuxt/kit": "^3.13.2",
"@nuxt/schema": "^3.13.2",
"@types/dropzone": "^5.7.8",
"@types/google.maps": "^3.58.1",
"@vitejs/plugin-vue": "^5.1.4",
"@vitest/coverage-v8": "^2.1.1",
"@vue/compiler-sfc": "^3.5.8",
"@vue/compiler-sfc": "^3.5.10",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.5.1",
"autoprefixer": "^10.4.20",
Expand All @@ -172,7 +172,7 @@
"fs": "0.0.2",
"jsdom": "^25.0.1",
"json-templater": "^1.2.0",
"libphonenumber-js": "^1.11.9",
"libphonenumber-js": "^1.11.10",
"minimist": "^1.2.8",
"nuxt": "^3.13.2",
"onchange": "^7.1.0",
Expand All @@ -185,7 +185,7 @@
"postcss-url": "^10.1.3",
"replace-in-file": "^8.2.0",
"rimraf": "^6.0.1",
"sass": "^1.79.3",
"sass": "^1.79.4",
"semver": "^7.6.3",
"sirv": "^2.0.4",
"stylelint": "^16.9.0",
Expand All @@ -197,14 +197,14 @@
"unplugin-auto-import": "^0.18.3",
"unplugin-vue-components": "^0.27.4",
"valibot": "^0.42.1",
"vite": "^5.4.7",
"vite-plugin-css-injected-by-js": "^3.5.1",
"vite": "^5.4.8",
"vite-plugin-css-injected-by-js": "^3.5.2",
"vite-plugin-lib-inject-css": "^2.1.1",
"vite-plugin-static-copy": "^1.0.6",
"vite-svg-loader": "^5.1.0",
"vitest": "^2.1.1",
"vitest-canvas-mock": "^0.3.3",
"vue": "^3.5.8",
"vue": "^3.5.10",
"vue-chartjs": "^5.3.1",
"vue-loader": "^17.4.2",
"vue-router": "^4.4.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"maz-ui": "workspace:*"
},
"devDependencies": {
"@nuxt/devtools": "^1.5.1",
"@nuxt/devtools": "^1.5.2",
"@nuxt/eslint-config": "^0.5.7",
"@nuxt/module-builder": "^0.8.4",
"@nuxt/schema": "^3.13.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"*.{vue,css,scss,postcss,pcss}": "stylelint --fix"
},
"devDependencies": {
"@nuxt/devtools": "^1.5.1",
"@nuxt/devtools": "^1.5.2",
"@nuxtjs/tailwindcss": "^6.12.1",
"autoprefixer": "^10.4.20",
"nuxt": "^3.13.2",
Expand All @@ -32,7 +32,7 @@
"stylelint-config-tailwindcss": "^0.0.7",
"tailwindcss": "^3.4.13",
"vite-svg-loader": "^5.1.0",
"vue": "^3.5.8",
"vue": "^3.5.10",
"vue-router": "^4.4.5"
},
"dependencies": {
Expand Down
Loading

0 comments on commit b6f7124

Please sign in to comment.