@trackunit/react-date-and-time-components 0.0.76 → 0.0.79

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/index.cjs.js CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var jsxRuntime = require('react/jsx-runtime');
6
4
  var i18nLibraryTranslation = require('@trackunit/i18n-library-translation');
7
5
  var dateAndTimeUtils = require('@trackunit/date-and-time-utils');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-date-and-time-components",
3
- "version": "0.0.76",
3
+ "version": "0.0.79",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -12,5 +12,6 @@
12
12
  "date-fns": "^2.30.0"
13
13
  },
14
14
  "module": "./index.esm.js",
15
- "main": "./index.cjs.js"
16
- }
15
+ "main": "./index.cjs.js",
16
+ "types": "./index.esm.d.ts"
17
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Matcher } from "react-day-picker";
3
2
  import { CommonProps } from "@trackunit/react-components";
4
3
  export interface DayPickerProps extends CommonProps {
@@ -29,4 +28,4 @@ export interface DayPickerProps extends CommonProps {
29
28
  * @param {DayPickerProps} props - The props for the DayPicker component
30
29
  * @returns {JSX.Element} DayPicker component
31
30
  */
32
- export declare const DayPicker: ({ onDaySelect, disabledDays, selectedDays, language, className, dataTestId, max, }: DayPickerProps) => JSX.Element;
31
+ export declare const DayPicker: ({ onDaySelect, disabledDays, selectedDays, language, className, dataTestId, max, }: DayPickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CommonProps } from "@trackunit/react-components";
3
2
  import { DateRange, Matcher } from "react-day-picker";
4
3
  import { TimeZone } from "./index";
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { DayRangePicker } from "./DayRangePicker";
4
3
  type Story = StoryObj<typeof DayRangePicker>;
5
4
  declare const meta: Meta<typeof DayRangePicker>;
6
5
  export default meta;
7
6
  export declare const Default: Story;
8
- export declare const packageName: () => JSX.Element;
9
- export declare const DefaultSDA: () => JSX.Element;
10
- export declare const VariantWithMax: () => JSX.Element;
11
- export declare const VariantWithDisabledDays: () => JSX.Element;
12
- export declare const VariantWithQuickButtons: () => JSX.Element;
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 VariantWithQuickButtons: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ButtonVariant, CommonProps, PopoverPlacement, Size } from "@trackunit/react-components";
3
2
  import { Matcher } from "react-day-picker";
4
3
  import { IDateRange, ShowQuickOption } from "./DayRangePicker";
@@ -42,4 +41,4 @@ export interface DayRangePickerPopoverProps extends CommonProps {
42
41
  * @param props.max The maximum amount of days that can be selected
43
42
  * @param props.disabled disabling popover button
44
43
  */
45
- export declare const DayRangePickerPopover: ({ interval, showQuickOptions, disabledDays, className, dataTestId, onRangeSelect, variant, size, placement, timezone, fullwidth, bindTo, buttonContent, max, disabled, }: DayRangePickerPopoverProps) => JSX.Element;
44
+ export declare const DayRangePickerPopover: ({ interval, showQuickOptions, disabledDays, className, dataTestId, onRangeSelect, variant, size, placement, timezone, fullwidth, bindTo, buttonContent, max, disabled, }: DayRangePickerPopoverProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,10 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { DayRangePickerPopover } from "./DayRangePickerPopover";
4
3
  type Story = StoryObj<typeof DayRangePickerPopover>;
5
4
  declare const meta: Meta<typeof DayRangePickerPopover>;
6
5
  export default meta;
7
6
  export declare const Default: Story;
8
- export declare const packageName: () => JSX.Element;
9
- export declare const VariantWithMax: () => JSX.Element;
10
- export declare const VariantWithDisabledDays: () => JSX.Element;
11
- export declare const VariantWithQuickButtons: () => JSX.Element;
7
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
8
+ export declare const VariantWithMax: () => import("react/jsx-runtime").JSX.Element;
9
+ export declare const VariantWithDisabledDays: () => import("react/jsx-runtime").JSX.Element;
10
+ export declare const VariantWithQuickButtons: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TemporalFormat } from "@trackunit/date-and-time-utils";
3
2
  import { TimeZone } from "../DayPicker";
4
3
  export interface DateTimeProps {
@@ -27,4 +26,4 @@ export declare const MS_PER_HOUR: number;
27
26
  * @param props.subtle boolean
28
27
  * @param props.calendar boolean | object
29
28
  */
30
- export declare const DateTime: ({ value, format, className, fromNow, withTitle, titleFormat, timezone, subtle, calendar, }: DateTimeProps) => JSX.Element;
29
+ export declare const DateTime: ({ value, format, className, fromNow, withTitle, titleFormat, timezone, subtle, calendar, }: DateTimeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { Meta, StoryObj } from "@storybook/react";
3
2
  import { DateTime } from "./DateTime";
4
3
  type Story = StoryObj<typeof DateTime>;
5
4
  declare const meta: Meta<typeof DateTime>;
6
5
  export default meta;
7
- export declare const packageName: () => JSX.Element;
6
+ export declare const packageName: () => import("react/jsx-runtime").JSX.Element;
8
7
  export declare const Default: Story;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface RelativeDateTimeProps {
3
2
  value: Date | string | number | null | undefined;
4
3
  }
@@ -8,4 +7,4 @@ export interface RelativeDateTimeProps {
8
7
  * @param { RelativeDateTimeProps } props - The properties for the DateTimeHumanized component.
9
8
  * @param props.value Date | string | number | null | undefined
10
9
  */
11
- export declare const DateTimeHumanized: ({ value }: RelativeDateTimeProps) => JSX.Element;
10
+ export declare const DateTimeHumanized: ({ value }: RelativeDateTimeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { NamespaceTransProps, TransForLibs, TranslationResource } from "@trackunit/i18n-library-translation";
3
2
  import defaultTranslations from "./locales/en/translation.json";
4
3
  /** A type for all available translation keys in this library */
@@ -27,7 +26,7 @@ export type TranslationFunction = TransForLibs<TranslationKeys>;
27
26
  /**
28
27
  * Trans for this specific library.
29
28
  */
30
- export declare const Trans: (props: NamespaceTransProps<TranslationKeys>) => JSX.Element;
29
+ export declare const Trans: (props: NamespaceTransProps<TranslationKeys>) => import("react/jsx-runtime").JSX.Element;
31
30
  /**
32
31
  * Registers the translations for this library
33
32
  */
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} Wochen"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} tygodni(e)"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} semanas"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} недель"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} (de) săptămâni"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} semanas"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} veckor"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}}週間"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} สัปดาห์"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} uger"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} týdny/týdnů"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} weken"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} semaines"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} viikkoa"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} hét"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} settimane"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;
@@ -17,4 +17,4 @@ var translation = {
17
17
  "shared.timePeriods.weeks_plural": "{{count}} uker"
18
18
  };
19
19
 
20
- exports["default"] = translation;
20
+ exports.default = translation;