@trackunit/react-form-components 1.11.33 → 1.12.7

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.
Files changed (28) hide show
  1. package/package.json +7 -7
  2. package/src/components/BaseInput/BaseInput.d.ts +1 -1
  3. package/src/components/ColorField/ColorField.d.ts +1 -1
  4. package/src/components/DateField/DateBaseInput/DateBaseInput.d.ts +1 -1
  5. package/src/components/DropZone/DropZone.d.ts +1 -1
  6. package/src/components/EmailField/EmailBaseInput/EmailBaseInput.d.ts +1 -1
  7. package/src/components/EmailField/EmailField.d.ts +1 -1
  8. package/src/components/NumberField/NumberBaseInput/NumberBaseInput.d.ts +1 -1
  9. package/src/components/PhoneField/PhoneBaseInput/PhoneBaseInput.d.ts +1 -1
  10. package/src/components/Schedule/Schedule.d.ts +1 -1
  11. package/src/components/Schedule/ScheduleParser.d.ts +1 -1
  12. package/src/components/ToggleSwitchOption/ToggleSwitchOption.d.ts +1 -1
  13. package/src/components/UploadInput/UploadInput.d.ts +1 -1
  14. package/src/components/UrlField/UrlBaseInput/UrlBaseInput.d.ts +1 -1
  15. package/src/index.d.ts +23 -12
  16. package/src/components/ActionButton/index.d.ts +0 -2
  17. package/src/components/BaseInput/components/index.d.ts +0 -5
  18. package/src/components/BaseInput/index.d.ts +0 -2
  19. package/src/components/BaseSelect/index.d.ts +0 -8
  20. package/src/components/Checkbox/index.d.ts +0 -1
  21. package/src/components/Label/index.d.ts +0 -2
  22. package/src/components/MultiSelectField/index.d.ts +0 -1
  23. package/src/components/RadioGroup/index.d.ts +0 -3
  24. package/src/components/Search/index.d.ts +0 -1
  25. package/src/components/TextField/index.d.ts +0 -1
  26. package/src/components/TimeRange/index.d.ts +0 -1
  27. package/src/components/ToggleSwitch/index.d.ts +0 -1
  28. package/src/components/ToggleSwitchOption/index.d.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-form-components",
3
- "version": "1.11.33",
3
+ "version": "1.12.7",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -14,12 +14,12 @@
14
14
  "zod": "^3.23.8",
15
15
  "react-hook-form": "7.62.0",
16
16
  "tailwind-merge": "^2.0.0",
17
- "@trackunit/css-class-variance-utilities": "1.10.26",
18
- "@trackunit/react-components": "1.14.33",
19
- "@trackunit/ui-icons": "1.10.26",
20
- "@trackunit/shared-utils": "1.12.26",
21
- "@trackunit/ui-design-tokens": "1.10.27",
22
- "@trackunit/i18n-library-translation": "1.10.28",
17
+ "@trackunit/css-class-variance-utilities": "1.11.6",
18
+ "@trackunit/react-components": "1.15.7",
19
+ "@trackunit/ui-icons": "1.11.6",
20
+ "@trackunit/shared-utils": "1.13.6",
21
+ "@trackunit/ui-design-tokens": "1.11.7",
22
+ "@trackunit/i18n-library-translation": "1.11.6",
23
23
  "string-ts": "^2.0.0",
24
24
  "@js-temporal/polyfill": "^0.5.1",
25
25
  "es-toolkit": "^1.39.10",
@@ -3,7 +3,7 @@ import { MappedOmit } from "@trackunit/shared-utils";
3
3
  import { InputHTMLAttributes, ReactElement, ReactNode, Ref } from "react";
4
4
  import { FormComponentSizes } from "../../types";
5
5
  import { LockedForReasons } from "./InputLockReasonTooltip";
6
- import { BaseInputActionTypes } from "./components";
6
+ import { BaseInputActionTypes } from "./components/GenericActionsRenderer";
7
7
  type FilteredInputProps = MappedOmit<InputHTMLAttributes<HTMLInputElement>, "prefix" | "disabled" | "readOnly">;
8
8
  export interface BaseInputProps extends FilteredInputProps, CommonProps {
9
9
  /**
@@ -1,5 +1,5 @@
1
1
  import { MappedOmit } from "@trackunit/shared-utils";
2
- import { BaseInputProps } from "../BaseInput";
2
+ import { BaseInputProps } from "../BaseInput/BaseInput";
3
3
  import { FormGroupProps } from "../FormGroup/FormGroup";
4
4
  type FormGroupExposedProps = Pick<FormGroupProps, "label" | "tip" | "helpText" | "helpAddon">;
5
5
  type ColorFieldBaseInputProps = MappedOmit<BaseInputProps, "prefix" | "suffix" | "addonBefore" | "addonAfter" | "actions" | "genericAction">;
@@ -1,4 +1,4 @@
1
- import { BaseInputProps } from "../../BaseInput";
1
+ import { BaseInputProps } from "../../BaseInput/BaseInput";
2
2
  type BaseInputExposedProps = Omit<BaseInputProps, "defaultValue" | "min" | "max" | "value">;
3
3
  export interface DateBaseInputProps extends BaseInputExposedProps {
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  import { CommonProps, Size } from "@trackunit/react-components";
2
2
  import { ReactElement, ReactNode } from "react";
3
- import { BaseInputProps } from "../BaseInput";
3
+ import { BaseInputProps } from "../BaseInput/BaseInput";
4
4
  type BaseInputExposedProps = Omit<BaseInputProps, "type" | "suffix" | "prefix" | "addonAfter" | "addonBefore" | "actions" | "placeholder" | "fieldSize" | "size">;
5
5
  export interface DropZoneProps extends BaseInputExposedProps, CommonProps {
6
6
  /**
@@ -1,4 +1,4 @@
1
- import { BaseInputProps } from "../../BaseInput";
1
+ import { BaseInputProps } from "../../BaseInput/BaseInput";
2
2
  type BaseInputExposedProps = Omit<BaseInputProps, "type">;
3
3
  export interface EmailBaseInputProps extends BaseInputExposedProps {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { BaseInputProps } from "../BaseInput";
1
+ import { BaseInputProps } from "../BaseInput/BaseInput";
2
2
  import { FormGroupProps } from "../FormGroup/FormGroup";
3
3
  type FormGroupExposedProps = Pick<FormGroupProps, "label" | "tip" | "helpText" | "helpAddon">;
4
4
  export interface EmailFieldProps extends FormGroupExposedProps, BaseInputProps {
@@ -1,4 +1,4 @@
1
- import { BaseInputProps } from "../../BaseInput";
1
+ import { BaseInputProps } from "../../BaseInput/BaseInput";
2
2
  type BaseInputExposedProps = Omit<BaseInputProps, "type">;
3
3
  export interface NumberBaseInputProps extends BaseInputExposedProps {
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import { ReactElement, ReactNode } from "react";
2
- import { BaseInputProps } from "../../BaseInput";
2
+ import { BaseInputProps } from "../../BaseInput/BaseInput";
3
3
  type BaseInputExposedProps = Omit<BaseInputProps, "actions">;
4
4
  export interface PhoneBaseInputProps extends BaseInputExposedProps {
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { CommonProps } from "@trackunit/react-components";
2
- import { TimeRangeInput } from "../TimeRange";
2
+ import { TimeRangeInput } from "../TimeRange/TimeRange";
3
3
  export interface ScheduleItem {
4
4
  /**
5
5
  * The key for the schedule item.
@@ -1,4 +1,4 @@
1
- import { TimeRangeInput } from "../TimeRange";
1
+ import { TimeRangeInput } from "../TimeRange/TimeRange";
2
2
  export declare const weekDay: {
3
3
  readonly Monday: "monday";
4
4
  readonly Tuesday: "tuesday";
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from "react";
2
- import { ToggleSwitchProps } from "../ToggleSwitch";
2
+ import { ToggleSwitchProps } from "../ToggleSwitch/ToggleSwitch";
3
3
  export interface ToggleSwitchOptionProps extends ToggleSwitchProps {
4
4
  /**
5
5
  * The label of the toggle.
@@ -1,5 +1,5 @@
1
1
  import { CommonProps } from "@trackunit/react-components";
2
- import { BaseInputProps } from "../BaseInput";
2
+ import { BaseInputProps } from "../BaseInput/BaseInput";
3
3
  type BaseInputExposedProps = Omit<BaseInputProps, "type" | "suffix" | "prefix" | "addonAfter" | "addonBefore" | "actions" | "placeholder">;
4
4
  export interface UploadInputProps extends BaseInputExposedProps, CommonProps {
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from "react";
2
- import { BaseInputProps } from "../../BaseInput";
2
+ import { BaseInputProps } from "../../BaseInput/BaseInput";
3
3
  type BaseInputExposedProps = Omit<BaseInputProps, "type">;
4
4
  export interface UrlBaseInputProps extends BaseInputExposedProps {
5
5
  /**
package/src/index.d.ts CHANGED
@@ -3,10 +3,18 @@ export * from "./components/NumberField/NumberBaseInput/NumberBaseInput";
3
3
  export * from "./components/PhoneField/PhoneBaseInput/PhoneBaseInput";
4
4
  export * from "./components/TextAreaField/TextArea/TextAreaBaseInput";
5
5
  export * from "./components/TextField/TextBaseInput/TextBaseInput";
6
- export * from "./components/ActionButton";
7
- export * from "./components/BaseInput";
8
- export * from "./components/BaseSelect";
9
- export * from "./components/Checkbox";
6
+ export { default as ValueType } from "react-select";
7
+ export * from "./components/ActionButton/ActionButton";
8
+ export * from "./components/ActionButton/ActionButton.variants";
9
+ export * from "./components/BaseInput/BaseInput";
10
+ export * from "./components/BaseInput/BaseInput.variants";
11
+ export * from "./components/BaseSelect/BaseSelect";
12
+ export * from "./components/BaseSelect/BaseSelect.variants";
13
+ export * from "./components/BaseSelect/CreatableSelect";
14
+ export * from "./components/BaseSelect/useCreatableSelect";
15
+ export * from "./components/BaseSelect/useCustomComponents";
16
+ export * from "./components/BaseSelect/useSelect";
17
+ export * from "./components/Checkbox/Checkbox";
10
18
  export * from "./components/CheckboxField/CheckboxField";
11
19
  export * from "./components/ColorField/ColorField";
12
20
  export * from "./components/DateField/DateField";
@@ -14,8 +22,9 @@ export * from "./components/DropZone/DropZone";
14
22
  export * from "./components/DropZone/DropZoneDefaultLabel";
15
23
  export * from "./components/EmailField/EmailField";
16
24
  export * from "./components/FormGroup/FormGroup";
17
- export * from "./components/Label";
18
- export * from "./components/MultiSelectField";
25
+ export * from "./components/Label/Label";
26
+ export * from "./components/Label/Label.variants";
27
+ export * from "./components/MultiSelectField/MultiSelectField";
19
28
  export * from "./components/NumberField/NumberField";
20
29
  export * from "./components/OptionCard/OptionCard";
21
30
  export * from "./components/PasswordField/PasswordBaseInput/PasswordBaseInput";
@@ -24,19 +33,21 @@ export * from "./components/PhoneField/PhoneBaseInput/PhoneInputValidationUtils"
24
33
  export * from "./components/PhoneField/PhoneBaseInput/PhoneNumberUtilities";
25
34
  export * from "./components/PhoneField/PhoneField";
26
35
  export * from "./components/PhoneFieldWithController/PhoneFieldWithController";
27
- export * from "./components/RadioGroup";
36
+ export * from "./components/RadioGroup/RadioGroup";
37
+ export * from "./components/RadioGroup/RadioGroup.variants";
38
+ export * from "./components/RadioGroup/RadioItem";
28
39
  export * from "./components/Schedule/Schedule";
29
40
  export * from "./components/Schedule/ScheduleParser";
30
- export * from "./components/Search";
41
+ export * from "./components/Search/Search";
31
42
  export * from "./components/SelectField/CreatableSelectField";
32
43
  export * from "./components/SelectField/FormFieldSelectAdapter";
33
44
  export * from "./components/SelectField/SelectField";
34
45
  export * from "./components/TextAreaField/TextAreaField";
35
- export * from "./components/TextField";
36
- export * from "./components/TimeRange";
46
+ export * from "./components/TextField/TextField";
47
+ export * from "./components/TimeRange/TimeRange";
37
48
  export * from "./components/TimeRangeField/TimeRangeField";
38
- export * from "./components/ToggleSwitch";
39
- export * from "./components/ToggleSwitchOption";
49
+ export * from "./components/ToggleSwitch/ToggleSwitch";
50
+ export * from "./components/ToggleSwitchOption/ToggleSwitchOption";
40
51
  export * from "./components/UploadField/UploadField";
41
52
  export * from "./components/UploadInput/UploadInput";
42
53
  export * from "./components/UrlField/UrlField";
@@ -1,2 +0,0 @@
1
- export * from "./ActionButton";
2
- export * from "./ActionButton.variants";
@@ -1,5 +0,0 @@
1
- export * from "./AddonRenderer";
2
- export * from "./GenericActionsRenderer";
3
- export * from "./LockReasonRenderer";
4
- export * from "./PrefixRenderer";
5
- export * from "./SuffixRenderer";
@@ -1,2 +0,0 @@
1
- export * from "./BaseInput";
2
- export * from "./BaseInput.variants";
@@ -1,8 +0,0 @@
1
- import ValueType from "react-select";
2
- export * from "./BaseSelect";
3
- export * from "./BaseSelect.variants";
4
- export * from "./CreatableSelect";
5
- export * from "./useCreatableSelect";
6
- export * from "./useCustomComponents";
7
- export * from "./useSelect";
8
- export { ValueType };
@@ -1 +0,0 @@
1
- export * from "./Checkbox";
@@ -1,2 +0,0 @@
1
- export * from "./Label";
2
- export * from "./Label.variants";
@@ -1 +0,0 @@
1
- export * from "./MultiSelectField";
@@ -1,3 +0,0 @@
1
- export * from "./RadioGroup";
2
- export * from "./RadioGroup.variants";
3
- export * from "./RadioItem";
@@ -1 +0,0 @@
1
- export * from "./Search";
@@ -1 +0,0 @@
1
- export * from "./TextField";
@@ -1 +0,0 @@
1
- export * from "./TimeRange";
@@ -1 +0,0 @@
1
- export * from "./ToggleSwitch";
@@ -1 +0,0 @@
1
- export * from "./ToggleSwitchOption";