@trackunit/react-date-and-time-components 1.10.56 → 1.10.58
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-date-and-time-components",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.58",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"react": "19.0.0",
|
|
11
|
-
"@trackunit/react-components": "1.9.
|
|
12
|
-
"@trackunit/date-and-time-utils": "1.7.
|
|
13
|
-
"@trackunit/react-date-and-time-hooks": "1.7.
|
|
14
|
-
"@trackunit/css-class-variance-utilities": "1.7.
|
|
15
|
-
"@trackunit/ui-icons": "1.7.
|
|
16
|
-
"@trackunit/shared-utils": "1.9.
|
|
17
|
-
"@trackunit/i18n-library-translation": "1.7.
|
|
18
|
-
"@trackunit/react-test-setup": "1.4.
|
|
19
|
-
"@trackunit/react-form-components": "1.8.
|
|
11
|
+
"@trackunit/react-components": "1.9.55",
|
|
12
|
+
"@trackunit/date-and-time-utils": "1.7.39",
|
|
13
|
+
"@trackunit/react-date-and-time-hooks": "1.7.49",
|
|
14
|
+
"@trackunit/css-class-variance-utilities": "1.7.39",
|
|
15
|
+
"@trackunit/ui-icons": "1.7.40",
|
|
16
|
+
"@trackunit/shared-utils": "1.9.39",
|
|
17
|
+
"@trackunit/i18n-library-translation": "1.7.46",
|
|
18
|
+
"@trackunit/react-test-setup": "1.4.39",
|
|
19
|
+
"@trackunit/react-form-components": "1.8.57",
|
|
20
20
|
"string-ts": "^2.0.0",
|
|
21
21
|
"tailwind-merge": "^2.0.0",
|
|
22
22
|
"react-calendar": "^6.0.0"
|
|
@@ -1,11 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { StoryObj } from "@storybook/react-webpack5";
|
|
2
|
+
import { ReactElement } from "react";
|
|
3
|
+
import { DayRangePickerProps } from "./DayRangePicker";
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: ({ onRangeSelect, selectedDays, disabledDays, dataTestId, language, className, timezone, cancelButtonLabel, onClose, }: DayRangePickerProps) => ReactElement;
|
|
8
|
+
tags: string[];
|
|
9
|
+
parameters: {
|
|
10
|
+
docs: {
|
|
11
|
+
source: {
|
|
12
|
+
type: string;
|
|
13
|
+
excludeDecorators: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
18
|
+
onRangeSelect?: ((range: import("@trackunit/date-and-time-utils").DateRange | undefined) => void) | undefined;
|
|
19
|
+
disabledDays?: import("./DayPicker").DisabledDaysMatcher | undefined;
|
|
20
|
+
selectedDays?: import("@trackunit/date-and-time-utils").DateRange | undefined;
|
|
21
|
+
language: string;
|
|
22
|
+
timezone?: import(".").TimeZone | undefined;
|
|
23
|
+
cancelButtonLabel?: string | undefined;
|
|
24
|
+
onClose?: (() => void) | undefined;
|
|
25
|
+
className?: string | undefined;
|
|
26
|
+
dataTestId?: string | undefined;
|
|
27
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
28
|
+
};
|
|
5
29
|
export default meta;
|
|
6
30
|
export declare const Default: Story;
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const DefaultSDA: () =>
|
|
9
|
-
export declare const VariantWithMax: () =>
|
|
10
|
-
export declare const VariantWithDisabledDays: () =>
|
|
11
|
-
export declare const VariantWithDisableRange: () =>
|
|
31
|
+
export declare const PackageName: () => ReactElement;
|
|
32
|
+
export declare const DefaultSDA: () => ReactElement;
|
|
33
|
+
export declare const VariantWithMax: () => ReactElement;
|
|
34
|
+
export declare const VariantWithDisabledDays: () => ReactElement;
|
|
35
|
+
export declare const VariantWithDisableRange: () => ReactElement;
|
|
@@ -1,10 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { StoryObj } from "@storybook/react-webpack5";
|
|
2
|
+
import { DateRange } from "@trackunit/date-and-time-utils";
|
|
3
|
+
import { ReactElement } from "react";
|
|
4
|
+
import { DayRangeSelectProps } from "./DayRangeSelect";
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
declare const meta: {
|
|
7
|
+
title: string;
|
|
8
|
+
component: ({ className, dataTestId, disabled, selectedDateRange, onRangeSelect, allowedDirection, initialDateRangeOptions, showDateRangeSearch, showCustomDateRangeOption, timezone, maxDaysInRange, size, fullWidth, actionButton, }: DayRangeSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
tags: string[];
|
|
10
|
+
parameters: {
|
|
11
|
+
docs: {
|
|
12
|
+
source: {
|
|
13
|
+
type: string;
|
|
14
|
+
excludeDecorators: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
19
|
+
className?: string | undefined;
|
|
20
|
+
dataTestId?: string | undefined;
|
|
21
|
+
disabled?: boolean | undefined;
|
|
22
|
+
selectedDateRange?: (DateRange | import("./types").TemporalPeriod) | undefined;
|
|
23
|
+
initialDateRangeOptions?: Array<import("./types").TemporalPeriod> | undefined;
|
|
24
|
+
onRangeSelect: (params?: import("./types").SelectedDateRange) => void;
|
|
25
|
+
allowedDirection?: import("./types").TemporalDirection | undefined;
|
|
26
|
+
showDateRangeSearch?: boolean | undefined;
|
|
27
|
+
showCustomDateRangeOption?: boolean | undefined;
|
|
28
|
+
timezone?: import("..").TimeZone | undefined;
|
|
29
|
+
maxDaysInRange?: number | undefined;
|
|
30
|
+
size?: import("@trackunit/shared-utils").Size | undefined;
|
|
31
|
+
fullWidth?: boolean | undefined;
|
|
32
|
+
actionButton?: ReactElement | undefined;
|
|
33
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
34
|
+
};
|
|
5
35
|
export default meta;
|
|
6
36
|
export declare const Default: Story;
|
|
7
|
-
export declare const
|
|
37
|
+
export declare const PackageName: () => ReactElement;
|
|
8
38
|
export declare const VariantWithoutCustomDateRangeOptionAndSearch: Story;
|
|
9
39
|
export declare const VariantWithAllowedDirectionSet: Story;
|
|
10
40
|
export declare const VariantWithInitialDateRangeOptionsSet: Story;
|
|
@@ -1,14 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { StoryObjWithOptionalArgs } from "@trackunit/shared-utils";
|
|
2
|
+
import { ReactElement } from "react";
|
|
3
|
+
import { TimelineProps } from "./Timeline";
|
|
4
|
+
type Story = StoryObjWithOptionalArgs<typeof meta, "children">;
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: ({ className, dataTestId, children, dateHeader, customHeader, toggleButton, }: TimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
tags: string[];
|
|
9
|
+
parameters: {
|
|
10
|
+
docs: {
|
|
11
|
+
source: {
|
|
12
|
+
type: string;
|
|
13
|
+
excludeDecorators: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
5
18
|
export default meta;
|
|
6
|
-
export declare const
|
|
19
|
+
export declare const PackageName: () => ReactElement;
|
|
7
20
|
export declare const Default: Story;
|
|
8
|
-
export declare const Usage: () =>
|
|
9
|
-
export declare const CustomHeader: () =>
|
|
10
|
-
export declare const CustomTimestamp: () =>
|
|
11
|
-
export declare const CustomDot: () =>
|
|
12
|
-
export declare const IncorrectUse: () =>
|
|
13
|
-
export declare const HoverAndSelectBehavior: () =>
|
|
14
|
-
export declare const PaginatedTimeline: () =>
|
|
21
|
+
export declare const Usage: () => ReactElement;
|
|
22
|
+
export declare const CustomHeader: () => ReactElement;
|
|
23
|
+
export declare const CustomTimestamp: () => ReactElement;
|
|
24
|
+
export declare const CustomDot: () => ReactElement;
|
|
25
|
+
export declare const IncorrectUse: () => ReactElement;
|
|
26
|
+
export declare const HoverAndSelectBehavior: () => ReactElement;
|
|
27
|
+
export declare const PaginatedTimeline: () => ReactElement;
|
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { StoryObj } from "@storybook/react-webpack5";
|
|
2
|
+
import { ReactElement } from "react";
|
|
3
|
+
import { DateTimeProps } from "./DateTime";
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
tags: string[];
|
|
8
|
+
component: ({ value, format, className, fromNow, withTitle, titleFormat, timezone, dataTestId, subtle, }: DateTimeProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
10
|
+
value: Date | string | number | null | undefined;
|
|
11
|
+
format?: import("@trackunit/date-and-time-utils").TemporalFormat | undefined;
|
|
12
|
+
fromNow?: boolean | undefined;
|
|
13
|
+
withTitle?: boolean | undefined;
|
|
14
|
+
titleFormat?: import("@trackunit/date-and-time-utils").TemporalFormat | undefined;
|
|
15
|
+
timezone?: import("..").TimeZone | undefined;
|
|
16
|
+
subtle?: boolean | undefined;
|
|
17
|
+
className?: string | undefined;
|
|
18
|
+
dataTestId?: string | undefined;
|
|
19
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
20
|
+
};
|
|
5
21
|
export default meta;
|
|
6
22
|
export declare const Default: Story;
|
|
7
|
-
export declare const
|
|
23
|
+
export declare const PackageName: () => ReactElement;
|