@trackunit/react-form-components 0.0.500 → 0.0.502
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 +255 -230
- package/index.esm.js +235 -196
- package/package.json +6 -5
- package/src/components/ActionButton/ActionButton.d.ts +1 -2
- package/src/components/BaseInput/DisabledForReasonsTip.d.ts +1 -2
- package/src/components/Checkbox/CheckIcon.d.ts +1 -2
- package/src/components/Checkbox/IndeterminateIcon.d.ts +1 -2
- package/src/components/DateField/DateField.d.ts +0 -1
- package/src/components/DateInput/DateInput.d.ts +0 -1
- package/src/components/DropZone/DropZone.d.ts +0 -1
- package/src/components/DropZone/DropZoneDefaultLabel.d.ts +1 -2
- package/src/components/FormGroup/FormGroup.d.ts +1 -1
- package/src/components/NumberField/NumberField.d.ts +0 -1
- package/src/components/NumberInput/NumberInput.d.ts +0 -1
- package/src/components/PasswordField/PasswordField.d.ts +0 -1
- package/src/components/PasswordInput/PasswordInput.d.ts +0 -1
- package/src/components/PhoneField/PhoneField.d.ts +0 -1
- package/src/components/PhoneFieldWithController/PhoneFieldWithController.d.ts +0 -1
- package/src/components/PhoneInput/CountryCodeSelect.d.ts +1 -1
- package/src/components/Schedule/Schedule.d.ts +1 -2
- package/src/components/Select/CreatableSelect.d.ts +1 -2
- package/src/components/Select/FieldContainer.d.ts +1 -1
- package/src/components/Select/Select.d.ts +1 -2
- package/src/components/Select/SelectMenuItem/SelectMenuItem.d.ts +2 -2
- package/src/components/Select/TagWithWidth.d.ts +1 -2
- package/src/components/Select/TagsContainer.d.ts +1 -2
- package/src/components/SelectField/CreatableSelectField.d.ts +6 -7
- package/src/components/SelectField/FormFieldSelectAdapter.d.ts +0 -1
- package/src/components/SelectField/SelectField.d.ts +6 -7
- package/src/components/TextField/TextLenghtIndicator.d.ts +1 -2
- package/src/components/TextInput/TextInput.d.ts +0 -1
- package/src/components/TimeRange/TimeRange.d.ts +1 -1
- package/src/components/TimeRangeField/TimeRangeField.d.ts +1 -2
- package/src/components/UploadField/UploadField.d.ts +0 -1
- package/src/components/UploadInput/UploadInput.d.ts +0 -1
- package/src/components/UrlField/UrlField.d.ts +0 -1
- package/src/components/UrlInput/UrlInput.d.ts +0 -1
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-form-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.502",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@trackunit/react-components": "*",
|
|
11
11
|
"@trackunit/ui-icons": "*",
|
|
12
|
-
"react": "
|
|
12
|
+
"react": "18.3.1",
|
|
13
13
|
"uuid": "^9.0.1",
|
|
14
14
|
"react-use": "^17.4.0",
|
|
15
15
|
"date-fns": "^2.30.0",
|
|
16
16
|
"react-select": "^5.8.0",
|
|
17
17
|
"libphonenumber-js": "1.10.36",
|
|
18
18
|
"@trackunit/shared-utils": "*",
|
|
19
|
-
"@testing-library/react": "
|
|
19
|
+
"@testing-library/react": "15.0.6",
|
|
20
20
|
"jest-fetch-mock": "^3.0.3",
|
|
21
21
|
"@trackunit/css-class-variance-utilities": "*",
|
|
22
22
|
"@trackunit/i18n-library-translation": "*",
|
|
@@ -25,5 +25,6 @@
|
|
|
25
25
|
"tailwind-merge": "^2.0.0"
|
|
26
26
|
},
|
|
27
27
|
"module": "./index.esm.js",
|
|
28
|
-
"main": "./index.cjs.js"
|
|
29
|
-
|
|
28
|
+
"main": "./index.cjs.js",
|
|
29
|
+
"types": "./index.esm.d.ts"
|
|
30
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ButtonCommonProps, CommonProps } from "@trackunit/react-components";
|
|
3
2
|
type ActionType = "PHONE_NUMBER" | "WEB_ADDRESS" | "EMAIL" | "COPY";
|
|
4
3
|
type FieldSize = "small" | "medium";
|
|
@@ -43,5 +42,5 @@ type ActionButtonProps = CopyActionButtonProps | GenericActionButtonProps;
|
|
|
43
42
|
* @param {ActionButtonProps} props - The props for the ActionButton component
|
|
44
43
|
* @returns {JSX.Element} ActionButton component
|
|
45
44
|
*/
|
|
46
|
-
export declare const ActionButton: ({ type, value, dataTestId, iconSize, disabled, className }: ActionButtonProps) => JSX.Element;
|
|
45
|
+
export declare const ActionButton: ({ type, value, dataTestId, iconSize, disabled, className }: ActionButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
47
46
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type DisabledKind = "locked" | "disabled";
|
|
3
2
|
export type DisabledForReasons = {
|
|
4
3
|
kind: DisabledKind;
|
|
@@ -12,5 +11,5 @@ export type DisabledForReasons = {
|
|
|
12
11
|
* @param {DisabledForReasons} props - The reasons for the disabled state.
|
|
13
12
|
* @param {DisabledKind} kind - The kind of disabled state. If locked, the input can sometimes be edited. If disabled, the input cannot be edited.
|
|
14
13
|
*/
|
|
15
|
-
export declare const DisabledForReasonsTip: ({ reasons, kind }: DisabledForReasons) => JSX.Element;
|
|
14
|
+
export declare const DisabledForReasonsTip: ({ reasons, kind }: DisabledForReasons) => import("react/jsx-runtime").JSX.Element;
|
|
16
15
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CommonProps } from "@trackunit/react-components";
|
|
3
2
|
interface CheckIconProps extends CommonProps {
|
|
4
3
|
}
|
|
@@ -8,5 +7,5 @@ interface CheckIconProps extends CommonProps {
|
|
|
8
7
|
* @param {CheckIconProps} props - The props for the CheckIcon component
|
|
9
8
|
* @returns {JSX.Element} CheckIcon component
|
|
10
9
|
*/
|
|
11
|
-
export declare const CheckIcon: ({ className, dataTestId }: CheckIconProps) => JSX.Element;
|
|
10
|
+
export declare const CheckIcon: ({ className, dataTestId }: CheckIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* The IndeterminateIcon component is used by the checkbox to display the Indeterminate state.
|
|
4
3
|
*
|
|
@@ -7,4 +6,4 @@
|
|
|
7
6
|
*/
|
|
8
7
|
export declare const IndeterminateIcon: ({ className }: {
|
|
9
8
|
className?: string;
|
|
10
|
-
}) => JSX.Element;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CommonProps, Size } from "@trackunit/react-components";
|
|
3
2
|
import { BaseInputProps } from "../BaseInput";
|
|
4
3
|
type BaseInputExposedProps = Omit<BaseInputProps, "type" | "suffix" | "prefix" | "addonAfter" | "addonBefore" | "actions" | "placeholder" | "fieldSize" | "size" | "nonInteractive">;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
*
|
|
4
3
|
* Default UX-intuitive label for the DropZone - can be overwritten by the label prop
|
|
5
4
|
*/
|
|
6
|
-
export declare const DropZoneDefaultLabel: () => JSX.Element;
|
|
5
|
+
export declare const DropZoneDefaultLabel: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -37,4 +37,4 @@ export interface FormGroupProps extends CommonProps {
|
|
|
37
37
|
* @param {FormGroupProps} props - The props for the FormGroup component
|
|
38
38
|
* @returns {JSX.Element} FormGroup component
|
|
39
39
|
*/
|
|
40
|
-
export declare const FormGroup: ({ isInvalid, helpText, helpAddon, tip, className, dataTestId, label, htmlFor, children, required, }: FormGroupProps) => JSX.Element;
|
|
40
|
+
export declare const FormGroup: ({ isInvalid, helpText, helpAddon, tip, className, dataTestId, label, htmlFor, children, required, }: FormGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,5 +22,5 @@ interface CountryCodeSelectProps extends CommonProps {
|
|
|
22
22
|
* @param {CountryCodeSelectProps} props - The props for the CountryCodeSelect component
|
|
23
23
|
* @returns {JSX.Element} CountryCodeSelect component
|
|
24
24
|
*/
|
|
25
|
-
export declare const CountryCodeSelect: ({ excludedCountries, countryCode, isInvalid, onChange, disabled, readOnly, dataTestId, placeholder, onBlur, isClearable, }: CountryCodeSelectProps) => JSX.Element;
|
|
25
|
+
export declare const CountryCodeSelect: ({ excludedCountries, countryCode, isInvalid, onChange, disabled, readOnly, dataTestId, placeholder, onBlur, isClearable, }: CountryCodeSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CommonProps } from "@trackunit/react-components";
|
|
3
2
|
import { TimeRangeInput } from "../TimeRange";
|
|
4
3
|
export interface ScheduleItem {
|
|
@@ -50,4 +49,4 @@ export interface ScheduleProps extends CommonProps {
|
|
|
50
49
|
* @param {ScheduleProps} props - The props for the Schedule component
|
|
51
50
|
* @returns {JSX.Element} Schedule component
|
|
52
51
|
*/
|
|
53
|
-
export declare const Schedule: ({ className, dataTestId, schedule, onChange, invalidKeys }: ScheduleProps) => JSX.Element;
|
|
52
|
+
export declare const Schedule: ({ className, dataTestId, schedule, onChange, invalidKeys }: ScheduleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { GroupBase } from "react-select";
|
|
3
2
|
import { SelectProps } from "./useSelect";
|
|
4
3
|
export interface CreatableSelectOption<TValue extends string | number> {
|
|
@@ -17,6 +16,6 @@ export type CreatableSelectProps = {
|
|
|
17
16
|
* @returns {JSX.Element} CreatableSelect component
|
|
18
17
|
*/
|
|
19
18
|
export declare const CreatableSelect: {
|
|
20
|
-
<Option, IsAsync extends boolean = false, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: SelectProps<Option, IsAsync, IsMulti, Group> & CreatableSelectProps): JSX.Element;
|
|
19
|
+
<Option, IsAsync extends boolean = false, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: SelectProps<Option, IsAsync, IsMulti, Group> & CreatableSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
21
20
|
displayName: string;
|
|
22
21
|
};
|
|
@@ -17,4 +17,4 @@ export interface SelectContainerProps {
|
|
|
17
17
|
* @param {SelectContainerProps} props - The props for the SelectContainer component
|
|
18
18
|
* @returns {JSX.Element} SelectContainer component
|
|
19
19
|
*/
|
|
20
|
-
export declare const SelectContainer: ({ children, label, hideLabel, id, hasError, error, description, info, dataTestId, isDisabled, }: SelectContainerProps) => JSX.Element;
|
|
20
|
+
export declare const SelectContainer: ({ children, label, hideLabel, id, hasError, error, description, info, dataTestId, isDisabled, }: SelectContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { GroupBase } from "react-select";
|
|
3
2
|
import { SelectProps } from "./useSelect";
|
|
4
3
|
export interface SelectOption<TValue extends string> {
|
|
@@ -13,6 +12,6 @@ export interface SelectOption<TValue extends string> {
|
|
|
13
12
|
* @returns {JSX.Element} Select component
|
|
14
13
|
*/
|
|
15
14
|
export declare const Select: {
|
|
16
|
-
<Option, IsAsync extends boolean = false, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: SelectProps<Option, IsAsync, IsMulti, Group>): JSX.Element;
|
|
15
|
+
<Option, IsAsync extends boolean = false, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: SelectProps<Option, IsAsync, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
17
16
|
displayName: string;
|
|
18
17
|
};
|
|
@@ -38,12 +38,12 @@ export interface SingleSelectMenuItemProps extends SelectMenuItemProps {
|
|
|
38
38
|
* @param {SelectMenuItemProps} props - The props for the SingleSelectMenuItem
|
|
39
39
|
* @returns {JSX.Element} SingleSelectMenuItem
|
|
40
40
|
*/
|
|
41
|
-
export declare const SingleSelectMenuItem: ({ label, icon, onClick, selected, dataTestId, focused, disabled, }: SingleSelectMenuItemProps) => JSX.Element;
|
|
41
|
+
export declare const SingleSelectMenuItem: ({ label, icon, onClick, selected, dataTestId, focused, disabled, }: SingleSelectMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
42
|
/**
|
|
43
43
|
* A multi select menu item is a basic wrapper around Menu item designed to be used as a multi value render in Select list
|
|
44
44
|
*
|
|
45
45
|
* @param {SelectMenuItemProps} props - The props for the MultiSelectMenuItem
|
|
46
46
|
* @returns {JSX.Element} multi select menu item
|
|
47
47
|
*/
|
|
48
|
-
export declare const MultiSelectMenuItem: ({ label, onClick, selected, dataTestId, focused, disabled, }: SelectMenuItemProps) => JSX.Element;
|
|
48
|
+
export declare const MultiSelectMenuItem: ({ label, onClick, selected, dataTestId, focused, disabled, }: SelectMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
49
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TagProps } from "@trackunit/react-components";
|
|
3
2
|
type TagsPropsNoRef = Omit<TagProps, "ref">;
|
|
4
3
|
interface TagWithWidthProps extends TagsPropsNoRef {
|
|
@@ -13,5 +12,5 @@ interface TagWithWidthProps extends TagsPropsNoRef {
|
|
|
13
12
|
* @param {TagProps} props - The props for the tag component
|
|
14
13
|
* @returns {JSX.Element} TagWithWidth component
|
|
15
14
|
*/
|
|
16
|
-
export declare const TagWithWidth: ({ onWidthKnown, children, ...rest }: TagWithWidthProps) => JSX.Element;
|
|
15
|
+
export declare const TagWithWidth: ({ onWidthKnown, children, ...rest }: TagWithWidthProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
16
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface TagsContainerItem {
|
|
3
2
|
/**
|
|
4
3
|
* A text value to be passed to tags inside container
|
|
@@ -45,5 +44,5 @@ interface TagsContainerProps {
|
|
|
45
44
|
* @param {TagsContainerProps} props - The props for the TagContainer
|
|
46
45
|
* @returns {JSX.Element} TagsContainer
|
|
47
46
|
*/
|
|
48
|
-
export declare const TagsContainer: ({ items, width, itemsGap, postFix, disabled }: TagsContainerProps) => JSX.Element;
|
|
47
|
+
export declare const TagsContainer: ({ items, width, itemsGap, postFix, disabled }: TagsContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
48
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CreatableSelectProps } from "../Select/CreatableSelect";
|
|
3
2
|
import { BaseOptionType } from "./FormFieldSelectAdapter";
|
|
4
3
|
/**
|
|
@@ -12,13 +11,13 @@ import { BaseOptionType } from "./FormFieldSelectAdapter";
|
|
|
12
11
|
* @returns {JSX.Element} CreatableSelectField component
|
|
13
12
|
*/
|
|
14
13
|
export declare const CreatableSelectField: import("react").ForwardRefExoticComponent<import("dist/libs/react/components/src").CommonProps & {
|
|
15
|
-
label: import("react").ReactNode;
|
|
16
|
-
tip?: import("react").ReactNode;
|
|
17
|
-
helpText?: string | null | undefined;
|
|
18
|
-
helpAddon?: import("react").ReactNode;
|
|
14
|
+
label: string | import("react").ReactNode;
|
|
15
|
+
tip?: string | import("react").ReactNode;
|
|
16
|
+
helpText?: (string | null) | undefined;
|
|
17
|
+
helpAddon?: string | import("react").ReactNode;
|
|
19
18
|
isInvalid?: boolean | undefined;
|
|
20
19
|
} & import("dist/libs/shared/utils/src").MappedOmit<import("../Select/useSelect").SelectProps<BaseOptionType, false, false, import("react-select").GroupBase<BaseOptionType>>, "label" | "onBlur" | "onChange" | "options" | "value" | "defaultValue"> & {
|
|
21
|
-
onBlur?: (
|
|
20
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
22
21
|
options: BaseOptionType[];
|
|
23
22
|
value?: string | number | undefined;
|
|
24
23
|
defaultValue?: string | number | undefined;
|
|
@@ -27,5 +26,5 @@ export declare const CreatableSelectField: import("react").ForwardRefExoticCompo
|
|
|
27
26
|
value?: string | number | undefined;
|
|
28
27
|
};
|
|
29
28
|
}) => void) | undefined;
|
|
30
|
-
errorMessage?: string
|
|
29
|
+
errorMessage?: string;
|
|
31
30
|
} & CreatableSelectProps & import("react").RefAttributes<HTMLSelectElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { BaseOptionType } from "./FormFieldSelectAdapter";
|
|
3
2
|
/**
|
|
4
3
|
* The SelectField component is a Select component wrapped in the FromGroup component.
|
|
@@ -11,13 +10,13 @@ import { BaseOptionType } from "./FormFieldSelectAdapter";
|
|
|
11
10
|
* @returns {JSX.Element} SelectField component
|
|
12
11
|
*/
|
|
13
12
|
export declare const SelectField: import("react").ForwardRefExoticComponent<import("dist/libs/react/components/src").CommonProps & {
|
|
14
|
-
label: import("react").ReactNode;
|
|
15
|
-
tip?: import("react").ReactNode;
|
|
16
|
-
helpText?: string | null | undefined;
|
|
17
|
-
helpAddon?: import("react").ReactNode;
|
|
13
|
+
label: string | import("react").ReactNode;
|
|
14
|
+
tip?: string | import("react").ReactNode;
|
|
15
|
+
helpText?: (string | null) | undefined;
|
|
16
|
+
helpAddon?: string | import("react").ReactNode;
|
|
18
17
|
isInvalid?: boolean | undefined;
|
|
19
18
|
} & import("dist/libs/shared/utils/src").MappedOmit<import("../Select/useSelect").SelectProps<BaseOptionType, false, false, import("react-select").GroupBase<BaseOptionType>>, "label" | "onBlur" | "onChange" | "options" | "value" | "defaultValue"> & {
|
|
20
|
-
onBlur?: (
|
|
19
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
21
20
|
options: BaseOptionType[];
|
|
22
21
|
value?: string | number | undefined;
|
|
23
22
|
defaultValue?: string | number | undefined;
|
|
@@ -26,5 +25,5 @@ export declare const SelectField: import("react").ForwardRefExoticComponent<impo
|
|
|
26
25
|
value?: string | number | undefined;
|
|
27
26
|
};
|
|
28
27
|
}) => void) | undefined;
|
|
29
|
-
errorMessage?: string
|
|
28
|
+
errorMessage?: string;
|
|
30
29
|
} & import("react").RefAttributes<HTMLSelectElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface TextLengthIndicatorProps {
|
|
3
2
|
/**
|
|
4
3
|
* The current length of the content of the input
|
|
@@ -16,4 +15,4 @@ export interface TextLengthIndicatorProps {
|
|
|
16
15
|
* @param {TextLengthIndicatorProps} props - The props for the TextLengthIndicator component
|
|
17
16
|
* @returns {JSX.Element} TextLengthIndicator component
|
|
18
17
|
*/
|
|
19
|
-
export declare const TextLengthIndicator: ({ length, maxLength }: TextLengthIndicatorProps) => JSX.Element;
|
|
18
|
+
export declare const TextLengthIndicator: ({ length, maxLength }: TextLengthIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -49,4 +49,4 @@ export interface TimeRangeProps extends CommonProps {
|
|
|
49
49
|
* @param {TimeRangeProps} props - The props for the TimeRange component
|
|
50
50
|
* @returns {JSX.Element} TimeRange component
|
|
51
51
|
*/
|
|
52
|
-
export declare const TimeRange: ({ id, className, dataTestId, children, range, onChange, disabled, isInvalid, }: TimeRangeProps) => JSX.Element;
|
|
52
|
+
export declare const TimeRange: ({ id, className, dataTestId, children, range, onChange, disabled, isInvalid, }: TimeRangeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormGroupProps } from "../FormGroup/FormGroup";
|
|
3
2
|
import { TimeRangeProps } from "../TimeRange/TimeRange";
|
|
4
3
|
type FormGroupExposedProps = Pick<FormGroupProps, "label" | "tip" | "helpText" | "helpAddon">;
|
|
@@ -14,5 +13,5 @@ export interface TimeRangeFieldProps extends TimeRangeProps, FormGroupExposedPro
|
|
|
14
13
|
* @param {TimeRangeFieldProps} props - The props for the TimeRangeField component
|
|
15
14
|
* @returns {JSX.Element} TimeRangeField component
|
|
16
15
|
*/
|
|
17
|
-
export declare const TimeRangeField: ({ className, dataTestId, onChange, isInvalid, errorMessage, label, tip, children, helpText, id, ...rest }: TimeRangeFieldProps) => JSX.Element;
|
|
16
|
+
export declare const TimeRangeField: ({ className, dataTestId, onChange, isInvalid, errorMessage, label, tip, children, helpText, id, ...rest }: TimeRangeFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CommonProps } from "@trackunit/react-components";
|
|
3
2
|
import { BaseInputProps } from "../BaseInput";
|
|
4
3
|
type BaseInputExposedProps = Omit<BaseInputProps, "type" | "suffix" | "prefix" | "addonAfter" | "addonBefore" | "actions" | "placeholder">;
|
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