@trackunit/react-date-and-time-components 0.0.75 → 0.0.78
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 +0 -2
- package/package.json +4 -3
- package/src/DayPicker/DayPicker.d.ts +1 -2
- package/src/DayPicker/DayRangePicker.d.ts +0 -1
- package/src/DayPicker/DayRangePicker.stories.d.ts +5 -6
- package/src/DayPicker/DayRangePickerPopover.d.ts +1 -2
- package/src/DayPicker/DayRangePickerPopover.stories.d.ts +4 -5
- package/src/dateTime/DateTime.d.ts +1 -2
- package/src/dateTime/DateTime.stories.d.ts +1 -2
- package/src/dateTime/DateTimeHumanized.d.ts +1 -2
- package/src/translation.d.ts +1 -2
- package/translation.cjs.js +1 -1
- package/translation.cjs10.js +1 -1
- package/translation.cjs11.js +1 -1
- package/translation.cjs12.js +1 -1
- package/translation.cjs13.js +1 -1
- package/translation.cjs14.js +1 -1
- package/translation.cjs15.js +1 -1
- package/translation.cjs16.js +1 -1
- package/translation.cjs17.js +1 -1
- package/translation.cjs2.js +1 -1
- package/translation.cjs3.js +1 -1
- package/translation.cjs4.js +1 -1
- package/translation.cjs5.js +1 -1
- package/translation.cjs6.js +1 -1
- package/translation.cjs7.js +1 -1
- package/translation.cjs8.js +1 -1
- package/translation.cjs9.js +1 -1
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.
|
|
3
|
+
"version": "0.0.78",
|
|
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,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;
|
package/src/translation.d.ts
CHANGED
|
@@ -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
|
*/
|
package/translation.cjs.js
CHANGED
package/translation.cjs10.js
CHANGED
package/translation.cjs11.js
CHANGED
package/translation.cjs12.js
CHANGED
package/translation.cjs13.js
CHANGED
package/translation.cjs14.js
CHANGED
package/translation.cjs15.js
CHANGED
package/translation.cjs16.js
CHANGED
package/translation.cjs17.js
CHANGED
package/translation.cjs2.js
CHANGED
package/translation.cjs3.js
CHANGED
package/translation.cjs4.js
CHANGED
package/translation.cjs5.js
CHANGED
package/translation.cjs6.js
CHANGED
package/translation.cjs7.js
CHANGED
package/translation.cjs8.js
CHANGED
package/translation.cjs9.js
CHANGED