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 Sep 3, 2024
1 parent 797d581 commit 0b24903
Show file tree
Hide file tree
Showing 12 changed files with 193 additions and 671 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
]
},
"devDependencies": {
"@antfu/eslint-config": "^2.24.1",
"@antfu/eslint-config": "^3.0.0",
"@commitlint/cli": "^19.4.1",
"@commitlint/config-conventional": "^19.4.1",
"@commitlint/cz-commitlint": "^19.4.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/lib/components/MazCardSpotlight.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ function animateBlob({ clientX, clientY }: { clientX: number, clientY: number })
[
{
transform: `translate(${clientX - rec.left - rec.width / 2}px,${
clientY - rec.top - rec.height / 2
}px)`,
clientY - rec.top - rec.height / 2
}px)`,
},
],
{
Expand Down
6 changes: 2 additions & 4 deletions packages/lib/components/MazLoadingBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ const colorCSVariables = computed(() => ({
left: 0;
bottom: 0;
will-change: left, right;
animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395)
infinite;
animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}
&::after {
Expand All @@ -60,8 +59,7 @@ const colorCSVariables = computed(() => ({
left: 0;
bottom: 0;
will-change: left, right;
animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1)
infinite;
animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
animation-delay: 1.15s;
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/lib/components/MazPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ onBeforeMount(() => {
}
if (hasTime.value && !(props.format.includes('h') || props.format.includes('H'))) {
console.error(
`[maz-ui](MazPicker) When you use the time picker, you must provided a format with time - Ex: "YYYY-MM-DD HH:mm"`,
`[maz-ui](MazPicker) When you use the time picker, you must provided a format with time - Ex: "YYYY-MM-DD HH:mm"`,
)
}
if (props.format.includes('h') && !(props.format.includes('a') || props.format.includes('A'))) {
Expand Down Expand Up @@ -447,7 +447,7 @@ function addEventToTriggerCustomElement(selector: string) {
}
else {
throw new Error(
`[maz-ui](MazPicker) impossible to find custom element with selector "${selector}"`,
`[maz-ui](MazPicker) impossible to find custom element with selector "${selector}"`,
)
}
}
Expand Down
12 changes: 6 additions & 6 deletions packages/lib/components/MazPicker/MazPickerCalendarSwitcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ const calendarDate2 = computed(() => dayjs(props.calendarDate))
const monthLabel = computed(() => {
return props.double
? `${capitalize(
date(calendarDate2.value.format(), props.locale, { month: 'long' }),
)} - ${capitalize(
date(calendarDate2.value.add(1, 'month').format(), props.locale, {
month: 'long',
}),
)}`
date(calendarDate2.value.format(), props.locale, { month: 'long' }),
)} - ${capitalize(
date(calendarDate2.value.add(1, 'month').format(), props.locale, {
month: 'long',
}),
)}`
: capitalize(date(calendarDate2.value.format(), props.locale, { month: 'long' }))
})
Expand Down
72 changes: 36 additions & 36 deletions packages/lib/components/MazPicker/MazPickerHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@ const transitionName = ref<'maz-slidevnext' | 'maz-slidevprev'>('maz-slidevnext'
const year = computed(() => {
if (props.modelValue && typeof props.modelValue === 'object') {
return `${
props.modelValue.start
? date(props.modelValue.start, props.locale, {
year: 'numeric',
timeZone: props.formatterOptions.timeZone,
})
: '...'
} - ${
props.modelValue.end
? date(props.modelValue.end, props.locale, {
year: 'numeric',
timeZone: props.formatterOptions.timeZone,
})
: '...'
}`
props.modelValue.start
? date(props.modelValue.start, props.locale, {
year: 'numeric',
timeZone: props.formatterOptions.timeZone,
})
: '...'
} - ${
props.modelValue.end
? date(props.modelValue.end, props.locale, {
year: 'numeric',
timeZone: props.formatterOptions.timeZone,
})
: '...'
}`
}
else if (typeof props.modelValue === 'string') {
return date(props.modelValue, props.locale, {
Expand All @@ -70,28 +70,28 @@ const dateString = computed(() => {
) {
const dateOption = props.noShortcuts && !props.double ? 'short' : 'long'
return `${
props.modelValue.start
? capitalize(
date(props.modelValue.start, props.locale, {
weekday: dateOption,
month: dateOption,
day: 'numeric',
timeZone: props.formatterOptions.timeZone,
}),
)
: '...'
} - ${
props.modelValue.end
? capitalize(
date(props.modelValue.end, props.locale, {
weekday: dateOption,
month: dateOption,
day: 'numeric',
timeZone: props.formatterOptions.timeZone,
}),
)
: '...'
}`
props.modelValue.start
? capitalize(
date(props.modelValue.start, props.locale, {
weekday: dateOption,
month: dateOption,
day: 'numeric',
timeZone: props.formatterOptions.timeZone,
}),
)
: '...'
} - ${
props.modelValue.end
? capitalize(
date(props.modelValue.end, props.locale, {
weekday: dateOption,
month: dateOption,
day: 'numeric',
timeZone: props.formatterOptions.timeZone,
}),
)
: '...'
}`
}
else if (typeof props.modelValue === 'string') {
return capitalize(
Expand Down
16 changes: 8 additions & 8 deletions packages/lib/components/MazPicker/MazPickerMonthSwitcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ const months = computed<
return props.double
? {
label: `${capitalize(
date(monthDate.format(), props.locale, {
month: 'short',
}),
)} - ${capitalize(
date(monthDate.add(1, 'month').format(), props.locale, {
month: 'short',
}),
)}`,
date(monthDate.format(), props.locale, {
month: 'short',
}),
)} - ${capitalize(
date(monthDate.add(1, 'month').format(), props.locale, {
month: 'short',
}),
)}`,
date: monthDate,
}
: {
Expand Down
4 changes: 2 additions & 2 deletions packages/lib/components/MazPicker/MazPickerTime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ watch(
if (MazPickerTime.value) {
const item = MazPickerTime.value.querySelector(
`.m-picker-time__column .m-btn`,
`.m-picker-time__column .m-btn`,
) as HTMLButtonElement
const itemHeight = item?.offsetHeight
const timePickerHeight = MazPickerTime.value?.offsetHeight
Expand Down Expand Up @@ -246,7 +246,7 @@ async function scrollColumn(identifier: ColumnIdentifier, hasSmoothEffect = true
| undefined
const selectedButton = MazPickerTime.value.querySelector(
`.m-picker-time__column__${identifier} .--is-selected`,
`.m-picker-time__column__${identifier} .--is-selected`,
) as HTMLButtonElement | undefined
if (dividerHeight.value && column && selectedButton && MazPickerTime.value) {
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/components/MazTabsBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function getTabStyle(index: number, disabled: boolean): StyleValue {
onBeforeMount(() => {
if (currentTab.value < 1 || currentTab.value > normalizedItems.value.length) {
console.error(
`[maz-ui](MazTabsBar) The model-value should be between 1 and ${normalizedItems.value.length}`,
`[maz-ui](MazTabsBar) The model-value should be between 1 and ${normalizedItems.value.length}`,
)
}
})
Expand Down
5 changes: 2 additions & 3 deletions packages/lib/css/maz-ui-variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@
--maz-border-width: 0.063rem;
--maz-border-color: hsl(220deg 13.04% 90.98%);
--maz-border-radius: 0.7rem;
--maz-font-family: system-ui, -apple-system, blinkmacsystemfont, 'Segoe UI',
roboto, oxygen, ubuntu, cantarell, 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
--maz-font-family: system-ui, -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, oxygen, ubuntu, cantarell,
'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async function useNextInstance(currentInstance: HTMLElement, nextInstance: HTMLE
function nextPreviousImage(which: 'next' | 'previous'): void {
const currentInstance: HTMLElement | null = document.querySelector(
`.m-fullscreen-img-instance.${props.openInstanceClass}`,
`.m-fullscreen-img-instance.${props.openInstanceClass}`,
)
if (currentInstance) {
Expand Down
Loading

0 comments on commit 0b24903

Please sign in to comment.