@mantine/dates 4.2.8 → 4.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/Month/Month.js +8 -4
- package/cjs/components/Month/Month.js.map +1 -1
- package/cjs/components/Month/get-day-props/get-day-props.js +3 -2
- package/cjs/components/Month/get-day-props/get-day-props.js.map +1 -1
- package/cjs/components/Month/get-day-props/is-weekend/is-weekend.js +2 -3
- package/cjs/components/Month/get-day-props/is-weekend/is-weekend.js.map +1 -1
- package/cjs/components/TimeInput/TimeInput.js +14 -4
- package/cjs/components/TimeInput/TimeInput.js.map +1 -1
- package/cjs/components/TimeInput/TimeInput.styles.js +1 -0
- package/cjs/components/TimeInput/TimeInput.styles.js.map +1 -1
- package/cjs/components/TimeInputBase/AmPmInput/AmPmInput.js +21 -5
- package/cjs/components/TimeInputBase/AmPmInput/AmPmInput.js.map +1 -1
- package/cjs/components/TimeInputBase/TimeInputBase.styles.js +7 -2
- package/cjs/components/TimeInputBase/TimeInputBase.styles.js.map +1 -1
- package/cjs/components/TimeInputBase/create-amPm-handler/create-amPm-handler.js +3 -3
- package/cjs/components/TimeInputBase/create-amPm-handler/create-amPm-handler.js.map +1 -1
- package/cjs/components/TimeInputBase/get-date/get-date.js +2 -2
- package/cjs/components/TimeInputBase/get-date/get-date.js.map +1 -1
- package/cjs/components/TimeInputBase/get-time-values/get-time-value.js +2 -2
- package/cjs/components/TimeInputBase/get-time-values/get-time-value.js.map +1 -1
- package/esm/components/Month/Month.js +8 -4
- package/esm/components/Month/Month.js.map +1 -1
- package/esm/components/Month/get-day-props/get-day-props.js +3 -2
- package/esm/components/Month/get-day-props/get-day-props.js.map +1 -1
- package/esm/components/Month/get-day-props/is-weekend/is-weekend.js +2 -3
- package/esm/components/Month/get-day-props/is-weekend/is-weekend.js.map +1 -1
- package/esm/components/TimeInput/TimeInput.js +14 -4
- package/esm/components/TimeInput/TimeInput.js.map +1 -1
- package/esm/components/TimeInput/TimeInput.styles.js +1 -0
- package/esm/components/TimeInput/TimeInput.styles.js.map +1 -1
- package/esm/components/TimeInputBase/AmPmInput/AmPmInput.js +21 -5
- package/esm/components/TimeInputBase/AmPmInput/AmPmInput.js.map +1 -1
- package/esm/components/TimeInputBase/TimeInputBase.styles.js +7 -2
- package/esm/components/TimeInputBase/TimeInputBase.styles.js.map +1 -1
- package/esm/components/TimeInputBase/create-amPm-handler/create-amPm-handler.js +3 -3
- package/esm/components/TimeInputBase/create-amPm-handler/create-amPm-handler.js.map +1 -1
- package/esm/components/TimeInputBase/get-date/get-date.js +2 -2
- package/esm/components/TimeInputBase/get-date/get-date.js.map +1 -1
- package/esm/components/TimeInputBase/get-time-values/get-time-value.js +2 -2
- package/esm/components/TimeInputBase/get-time-values/get-time-value.js.map +1 -1
- package/lib/components/Month/Month.d.ts +2 -0
- package/lib/components/Month/Month.d.ts.map +1 -1
- package/lib/components/Month/get-day-props/get-day-props.d.ts +3 -1
- package/lib/components/Month/get-day-props/get-day-props.d.ts.map +1 -1
- package/lib/components/Month/get-day-props/is-weekend/is-weekend.d.ts +1 -1
- package/lib/components/Month/get-day-props/is-weekend/is-weekend.d.ts.map +1 -1
- package/lib/components/TimeInput/TimeInput.d.ts +4 -0
- package/lib/components/TimeInput/TimeInput.d.ts.map +1 -1
- package/lib/components/TimeInput/TimeInput.styles.d.ts +2 -2
- package/lib/components/TimeInput/TimeInput.styles.d.ts.map +1 -1
- package/lib/components/TimeInputBase/AmPmInput/AmPmInput.d.ts +4 -0
- package/lib/components/TimeInputBase/AmPmInput/AmPmInput.d.ts.map +1 -1
- package/lib/components/TimeInputBase/TimeInputBase.styles.d.ts +2 -2
- package/lib/components/TimeInputBase/TimeInputBase.styles.d.ts.map +1 -1
- package/lib/components/TimeInputBase/create-amPm-handler/create-amPm-handler.d.ts +3 -1
- package/lib/components/TimeInputBase/create-amPm-handler/create-amPm-handler.d.ts.map +1 -1
- package/lib/components/TimeInputBase/get-date/get-date.d.ts +1 -1
- package/lib/components/TimeInputBase/get-date/get-date.d.ts.map +1 -1
- package/lib/components/TimeInputBase/get-time-values/get-time-value.d.ts +1 -1
- package/lib/components/TimeInputBase/get-time-values/get-time-value.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -2,8 +2,8 @@ import { MantineSize } from '@mantine/core';
|
|
|
2
2
|
export interface TimeInputStylesParams {
|
|
3
3
|
size: MantineSize;
|
|
4
4
|
}
|
|
5
|
-
declare const _default: (params: TimeInputStylesParams, options?: import("@mantine/core").UseStylesOptions<"disabled" | "controls" | "timeInput">) => {
|
|
6
|
-
classes: Record<"disabled" | "controls" | "timeInput", string>;
|
|
5
|
+
declare const _default: (params: TimeInputStylesParams, options?: import("@mantine/core").UseStylesOptions<"disabled" | "controls" | "timeInput" | "amPmInput">) => {
|
|
6
|
+
classes: Record<"disabled" | "controls" | "timeInput" | "amPmInput", string>;
|
|
7
7
|
cx: (...args: any) => string;
|
|
8
8
|
theme: import("@mantine/core").MantineTheme;
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeInput.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TimeInput/TimeInput.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,WAAW,EAAE,MAAM,eAAe,CAAC;AAEvE,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,WAAW,CAAC;CACnB;;;;;;AAED,
|
|
1
|
+
{"version":3,"file":"TimeInput.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TimeInput/TimeInput.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,WAAW,EAAE,MAAM,eAAe,CAAC;AAEvE,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,WAAW,CAAC;CACnB;;;;;;AAED,wBAeI"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MantineSize } from '@mantine/core';
|
|
3
3
|
interface AmPmSelectProps extends Omit<React.ComponentPropsWithoutRef<'input'>, 'onChange' | 'size'> {
|
|
4
|
+
/** Label for 'am' */
|
|
5
|
+
amLabel?: string;
|
|
6
|
+
/** Label for 'pm' */
|
|
7
|
+
pmLabel?: string;
|
|
4
8
|
/** Called with onChange event */
|
|
5
9
|
onChange(value: string, triggerShift: boolean): void;
|
|
6
10
|
/** Colon text size */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmPmInput.d.ts","sourceRoot":"","sources":["../../../../src/components/TimeInputBase/AmPmInput/AmPmInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,UAAU,eACR,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC1E,iCAAiC;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,GAAG,IAAI,CAAC;IAErD,sBAAsB;IACtB,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"AmPmInput.d.ts","sourceRoot":"","sources":["../../../../src/components/TimeInputBase/AmPmInput/AmPmInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,UAAU,eACR,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC1E,qBAAqB;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,qBAAqB;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,iCAAiC;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,GAAG,IAAI,CAAC;IAErD,sBAAsB;IACtB,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,0FAkErB,CAAC"}
|
|
@@ -10,8 +10,8 @@ interface TimeInputBaseStyles {
|
|
|
10
10
|
size: MantineSize;
|
|
11
11
|
hasValue: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare const _default: (params: TimeInputBaseStyles, options?: import("@mantine/core").UseStylesOptions<"timeInput">) => {
|
|
14
|
-
classes: Record<"timeInput", string>;
|
|
13
|
+
declare const _default: (params: TimeInputBaseStyles, options?: import("@mantine/core").UseStylesOptions<"timeInput" | "amPmInput">) => {
|
|
14
|
+
classes: Record<"timeInput" | "amPmInput", string>;
|
|
15
15
|
cx: (...args: any) => string;
|
|
16
16
|
theme: import("@mantine/core").MantineTheme;
|
|
17
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeInputBase.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TimeInputBase/TimeInputBase.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,WAAW,EAAE,MAAM,eAAe,CAAC;AAE1D,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,UAAU,mBAAmB;IAC3B,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACnB;;;;;;AAED,
|
|
1
|
+
{"version":3,"file":"TimeInputBase.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TimeInputBase/TimeInputBase.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,WAAW,EAAE,MAAM,eAAe,CAAC;AAE1D,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,UAAU,mBAAmB;IAC3B,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACnB;;;;;;AAED,wBAiCI"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface CreateAmPmHandler {
|
|
3
|
+
amLabel: string;
|
|
4
|
+
pmLabel: string;
|
|
3
5
|
onChange(value: string): void;
|
|
4
6
|
nextRef?: React.RefObject<HTMLInputElement>;
|
|
5
7
|
}
|
|
6
|
-
export declare function createAmPmHandler({ onChange, nextRef }: CreateAmPmHandler): (value: string, triggerShift: boolean) => void;
|
|
8
|
+
export declare function createAmPmHandler({ amLabel, pmLabel, onChange, nextRef }: CreateAmPmHandler): (value: string, triggerShift: boolean) => void;
|
|
7
9
|
export {};
|
|
8
10
|
//# sourceMappingURL=create-amPm-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-amPm-handler.d.ts","sourceRoot":"","sources":["../../../../src/components/TimeInputBase/create-amPm-handler/create-amPm-handler.tsx"],"names":[],"mappings":";AAAA,UAAU,iBAAiB;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;CAC7C;
|
|
1
|
+
{"version":3,"file":"create-amPm-handler.d.ts","sourceRoot":"","sources":["../../../../src/components/TimeInputBase/create-amPm-handler/create-amPm-handler.tsx"],"names":[],"mappings":";AAAA,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;CAC7C;AAED,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,iBAAiB,WAC3E,MAAM,gBAAgB,OAAO,UAiB7C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function getDate(hours: string, minutes: string, seconds: string, format: '12' | '24', amPm?: string): Date;
|
|
1
|
+
export declare function getDate(hours: string, minutes: string, seconds: string, format: '12' | '24', pmLabel: string, amPm?: string): Date;
|
|
2
2
|
//# sourceMappingURL=get-date.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-date.d.ts","sourceRoot":"","sources":["../../../../src/components/TimeInputBase/get-date/get-date.ts"],"names":[],"mappings":"AAEA,wBAAgB,OAAO,CACrB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,IAAI,GAAG,IAAI,EACnB,IAAI,CAAC,EAAE,MAAM,QAwBd"}
|
|
1
|
+
{"version":3,"file":"get-date.d.ts","sourceRoot":"","sources":["../../../../src/components/TimeInputBase/get-date/get-date.ts"],"names":[],"mappings":"AAEA,wBAAgB,OAAO,CACrB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,IAAI,GAAG,IAAI,EACnB,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM,QAwBd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-time-value.d.ts","sourceRoot":"","sources":["../../../../src/components/TimeInputBase/get-time-values/get-time-value.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GAAG,IAAI;;;;;
|
|
1
|
+
{"version":3,"file":"get-time-value.d.ts","sourceRoot":"","sources":["../../../../src/components/TimeInputBase/get-time-values/get-time-value.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GAAG,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;;;;;EAqB/F"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine/dates",
|
|
3
3
|
"description": "Calendars, date and time pickers based on Mantine components",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.9",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"picker"
|
|
24
24
|
],
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@mantine/core": "4.2.
|
|
27
|
-
"@mantine/hooks": "4.2.
|
|
26
|
+
"@mantine/core": "4.2.9",
|
|
27
|
+
"@mantine/hooks": "4.2.9",
|
|
28
28
|
"dayjs": "^1.10.5",
|
|
29
29
|
"react": ">=16.8.0"
|
|
30
30
|
},
|