@mantine/dates
Advanced tools
Comparing version 7.12.2 to 7.13.0
@@ -57,3 +57,3 @@ import { BoxProps, ElementProps, Factory, StylesApiProps } from '@mantine/core'; | ||
columnsToScroll?: number; | ||
/** aria-label attributes for controls on different levels */ | ||
/** Aria-label attributes for controls on different levels */ | ||
ariaLabels?: CalendarAriaLabels; | ||
@@ -60,0 +60,0 @@ /** Called when next decade button is clicked */ |
@@ -14,5 +14,5 @@ import { BoxProps, ElementProps, Factory, MantineSize, StylesApiProps } from '@mantine/core'; | ||
previousIcon?: React.ReactNode; | ||
/** aria-label for next button */ | ||
/** Aria-label for next button */ | ||
nextLabel?: string; | ||
/** aria-label for previous button */ | ||
/** Aria-label for previous button */ | ||
previousLabel?: string; | ||
@@ -42,3 +42,3 @@ /** Called when next button is clicked */ | ||
label: React.ReactNode; | ||
/** aria-label for level control */ | ||
/** Aria-label for level control */ | ||
levelControlAriaLabel?: string; | ||
@@ -45,0 +45,0 @@ } |
@@ -6,3 +6,3 @@ import { BoxProps, ElementProps, Factory, StylesApiProps } from '@mantine/core'; | ||
export interface DecadeLevelBaseSettings extends YearsListSettings { | ||
/** dayjs label format to display decade label or a function that returns decade label based on date value, defaults to "YYYY" */ | ||
/** Dayjs label format to display decade label or a function that returns decade label based on date value, defaults to "YYYY" */ | ||
decadeLabelFormat?: string | ((startOfDecade: Date, endOfDecade: Date) => React.ReactNode); | ||
@@ -18,3 +18,3 @@ } | ||
decade: Date; | ||
/** aria-label for change level control */ | ||
/** Aria-label for change level control */ | ||
levelControlAriaLabel?: string; | ||
@@ -21,0 +21,0 @@ } |
@@ -18,7 +18,7 @@ import { BoxProps, ElementProps, Factory, MantineSize, StylesApiProps } from '@mantine/core'; | ||
__getDayRef?: (rowIndex: number, cellIndex: number, node: HTMLButtonElement) => void; | ||
/** dayjs locale, defaults to value defined in DatesProvider */ | ||
/** Dayjs locale, defaults to value defined in DatesProvider */ | ||
locale?: string; | ||
/** number 0-6, 0 – Sunday, 6 – Saturday, defaults to 1 – Monday */ | ||
/** Number 0-6, 0 – Sunday, 6 – Saturday, defaults to 1 – Monday */ | ||
firstDayOfWeek?: DayOfWeek; | ||
/** dayjs format for weekdays names, defaults to "dd" */ | ||
/** Dayjs format for weekdays names, defaults to "dd" */ | ||
weekdayFormat?: string | ((date: Date) => React.ReactNode); | ||
@@ -25,0 +25,0 @@ /** Indices of weekend days, 0-6, where 0 is Sunday and 6 is Saturday, defaults to value defined in DatesProvider */ |
@@ -6,3 +6,3 @@ import { BoxProps, ElementProps, Factory, StylesApiProps } from '@mantine/core'; | ||
export interface MonthLevelBaseSettings extends MonthSettings { | ||
/** dayjs label format to display month label or a function that returns month label based on month value, defaults to "MMMM YYYY" */ | ||
/** Dayjs label format to display month label or a function that returns month label based on month value, defaults to "MMMM YYYY" */ | ||
monthLabelFormat?: string | ((month: Date) => React.ReactNode); | ||
@@ -18,3 +18,3 @@ } | ||
month: Date; | ||
/** aria-label for change level control */ | ||
/** Aria-label for change level control */ | ||
levelControlAriaLabel?: string; | ||
@@ -21,0 +21,0 @@ /** Determines whether days should be static, static days can be used to display month if it is not expected that user will interact with the component in any way */ |
@@ -6,3 +6,3 @@ import { BoxProps, ElementProps, Factory, MantineSize, StylesApiProps } from '@mantine/core'; | ||
export interface MonthsListSettings extends ControlsGroupSettings { | ||
/** dayjs format for months list */ | ||
/** Dayjs format for months list */ | ||
monthsListFormat?: string; | ||
@@ -9,0 +9,0 @@ /** Adds props to month picker control based on date */ |
@@ -11,7 +11,7 @@ import { BoxProps, ElementProps, Factory, MantineSize, StylesApiProps } from '@mantine/core'; | ||
size?: MantineSize; | ||
/** dayjs locale, defaults to value defined in DatesProvider */ | ||
/** Dayjs locale, defaults to value defined in DatesProvider */ | ||
locale?: string; | ||
/** number 0-6, 0 – Sunday, 6 – Saturday, defaults to 1 – Monday */ | ||
/** Number 0-6, 0 – Sunday, 6 – Saturday, defaults to 1 – Monday */ | ||
firstDayOfWeek?: DayOfWeek; | ||
/** dayjs format to get weekday name, defaults to "dd" */ | ||
/** Dayjs format to get weekday name, defaults to "dd" */ | ||
weekdayFormat?: string | ((date: Date) => React.ReactNode); | ||
@@ -18,0 +18,0 @@ /** Choose cell type that will be used to render weekdays, defaults to th */ |
@@ -6,3 +6,3 @@ import { BoxProps, ElementProps, Factory, StylesApiProps } from '@mantine/core'; | ||
export interface YearLevelBaseSettings extends MonthsListSettings { | ||
/** dayjs label format to display year label or a function that returns year label based on year value, defaults to "YYYY" */ | ||
/** Dayjs label format to display year label or a function that returns year label based on year value, defaults to "YYYY" */ | ||
yearLabelFormat?: string | ((year: Date) => React.ReactNode); | ||
@@ -18,3 +18,3 @@ } | ||
year: Date; | ||
/** aria-label for change level control */ | ||
/** Aria-label for change level control */ | ||
levelControlAriaLabel?: string; | ||
@@ -21,0 +21,0 @@ } |
@@ -10,3 +10,3 @@ import { BoxProps, ElementProps, Factory, MantineSize, StylesApiProps } from '@mantine/core'; | ||
__stopPropagation?: boolean; | ||
/** dayjs format for years list, `'YYYY'` by default */ | ||
/** Dayjs format for years list, `'YYYY'` by default */ | ||
yearsListFormat?: string; | ||
@@ -13,0 +13,0 @@ /** Adds props to year picker control based on date */ |
@@ -15,4 +15,4 @@ import type { ControlKeydownPayload } from './GeneralTypes'; | ||
maxDate?: Date; | ||
/** dayjs locale, defaults to value defined in DatesProvider */ | ||
/** Dayjs locale, defaults to value defined in DatesProvider */ | ||
locale?: string; | ||
} |
{ | ||
"name": "@mantine/dates", | ||
"version": "7.12.2", | ||
"version": "7.13.0", | ||
"description": "Calendars, date and time pickers based on Mantine components", | ||
@@ -48,4 +48,4 @@ "homepage": "https://mantine.dev/dates/getting-started/", | ||
"peerDependencies": { | ||
"@mantine/core": "7.12.2", | ||
"@mantine/hooks": "7.12.2", | ||
"@mantine/core": "7.13.0", | ||
"@mantine/hooks": "7.13.0", | ||
"dayjs": ">=1.0.0", | ||
@@ -61,5 +61,5 @@ "react": "^18.2.0", | ||
"@mantine-tests/dates": "1.0.0", | ||
"@mantine/core": "7.12.2", | ||
"@mantine/hooks": "7.12.2" | ||
"@mantine/core": "7.13.0", | ||
"@mantine/hooks": "7.13.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package