@trackunit/react-date-and-time-components 1.10.54 → 1.10.57

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.54",
3
+ "version": "1.10.57",
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.51",
12
- "@trackunit/date-and-time-utils": "1.7.35",
13
- "@trackunit/react-date-and-time-hooks": "1.7.45",
14
- "@trackunit/css-class-variance-utilities": "1.7.35",
15
- "@trackunit/ui-icons": "1.7.37",
16
- "@trackunit/shared-utils": "1.9.35",
17
- "@trackunit/i18n-library-translation": "1.7.42",
18
- "@trackunit/react-test-setup": "1.4.35",
19
- "@trackunit/react-form-components": "1.8.53",
11
+ "@trackunit/react-components": "1.9.54",
12
+ "@trackunit/date-and-time-utils": "1.7.38",
13
+ "@trackunit/react-date-and-time-hooks": "1.7.48",
14
+ "@trackunit/css-class-variance-utilities": "1.7.38",
15
+ "@trackunit/ui-icons": "1.7.39",
16
+ "@trackunit/shared-utils": "1.9.38",
17
+ "@trackunit/i18n-library-translation": "1.7.45",
18
+ "@trackunit/react-test-setup": "1.4.38",
19
+ "@trackunit/react-form-components": "1.8.56",
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 { Meta, StoryObj } from "@storybook/react-webpack5";
2
- import { DayRangePicker } from "./DayRangePicker";
3
- type Story = StoryObj<typeof DayRangePicker>;
4
- declare const meta: Meta<typeof DayRangePicker>;
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 packageName: () => import("react/jsx-runtime").JSX.Element;
8
- export declare const DefaultSDA: () => import("react/jsx-runtime").JSX.Element;
9
- export declare const VariantWithMax: () => import("react/jsx-runtime").JSX.Element;
10
- export declare const VariantWithDisabledDays: () => import("react/jsx-runtime").JSX.Element;
11
- export declare const VariantWithDisableRange: () => import("react/jsx-runtime").JSX.Element;
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 { Meta, StoryObj } from "@storybook/react-webpack5";
2
- import { DayRangeSelect } from "./DayRangeSelect";
3
- type Story = StoryObj<typeof DayRangeSelect>;
4
- declare const meta: Meta<typeof DayRangeSelect>;
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 packageName: () => import("react/jsx-runtime").JSX.Element;
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 { Meta, StoryObj } from "@storybook/react-webpack5";
2
- import { Timeline } from "./Timeline";
3
- type Story = StoryObj<typeof Timeline>;
4
- declare const meta: Meta<typeof Timeline>;
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 packageName: () => import("react/jsx-runtime").JSX.Element;
19
+ export declare const PackageName: () => ReactElement;
7
20
  export declare const Default: Story;
8
- export declare const Usage: () => import("react/jsx-runtime").JSX.Element;
9
- export declare const CustomHeader: () => import("react/jsx-runtime").JSX.Element;
10
- export declare const CustomTimestamp: () => import("react/jsx-runtime").JSX.Element;
11
- export declare const CustomDot: () => import("react/jsx-runtime").JSX.Element;
12
- export declare const IncorrectUse: () => import("react/jsx-runtime").JSX.Element;
13
- export declare const HoverAndSelectBehavior: () => import("react/jsx-runtime").JSX.Element;
14
- export declare const PaginatedTimeline: () => import("react/jsx-runtime").JSX.Element;
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 { Meta, StoryObj } from "@storybook/react-webpack5";
2
- import { DateTime } from "./DateTime";
3
- type Story = StoryObj<typeof DateTime>;
4
- declare const meta: Meta<typeof DateTime>;
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 packageName: () => import("react/jsx-runtime").JSX.Element;
23
+ export declare const PackageName: () => ReactElement;