@rocket.chat/fuselage-forms 1.3.0 → 1.5.0

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 (78) hide show
  1. package/dist/cjs/Field/Field.d.ts +2 -2
  2. package/dist/cjs/Field/Field.d.ts.map +1 -1
  3. package/dist/cjs/Field/FieldContext.d.ts +1 -2
  4. package/dist/cjs/Field/FieldContext.d.ts.map +1 -1
  5. package/dist/cjs/Field/FieldContext.js +4 -0
  6. package/dist/cjs/Field/FieldContext.js.map +1 -1
  7. package/dist/cjs/Field/FieldDescription.d.ts +2 -2
  8. package/dist/cjs/Field/FieldDescription.d.ts.map +1 -1
  9. package/dist/cjs/Field/FieldError.d.ts +2 -2
  10. package/dist/cjs/Field/FieldError.d.ts.map +1 -1
  11. package/dist/cjs/Field/FieldHint.d.ts +2 -2
  12. package/dist/cjs/Field/FieldHint.d.ts.map +1 -1
  13. package/dist/cjs/Field/FieldProvider.d.ts +2 -2
  14. package/dist/cjs/Field/FieldProvider.d.ts.map +1 -1
  15. package/dist/cjs/Field/Label/FieldLabel.d.ts +2 -2
  16. package/dist/cjs/Field/Label/FieldLabel.d.ts.map +1 -1
  17. package/dist/cjs/Field/Label/FieldLabel.js +1 -0
  18. package/dist/cjs/Field/Label/FieldLabel.js.map +1 -1
  19. package/dist/cjs/Field/Label/HiddenLabel.d.ts +2 -2
  20. package/dist/cjs/Field/Label/HiddenLabel.d.ts.map +1 -1
  21. package/dist/cjs/Field/Label/LabelFor.d.ts +2 -2
  22. package/dist/cjs/Field/Label/LabelFor.d.ts.map +1 -1
  23. package/dist/cjs/Field/Label/ReferencedLabel.d.ts +2 -2
  24. package/dist/cjs/Field/Label/ReferencedLabel.d.ts.map +1 -1
  25. package/dist/cjs/Field/Label/index.d.ts +4 -4
  26. package/dist/cjs/Field/Label/index.d.ts.map +1 -1
  27. package/dist/cjs/Field/Label/index.js.map +1 -1
  28. package/dist/cjs/Field/index.d.ts +5 -5
  29. package/dist/cjs/Field/index.d.ts.map +1 -1
  30. package/dist/cjs/Field/index.js.map +1 -1
  31. package/dist/cjs/Inputs/WrappedInputComponents.d.ts +108 -76
  32. package/dist/cjs/Inputs/WrappedInputComponents.d.ts.map +1 -1
  33. package/dist/cjs/Inputs/WrappedInputComponents.js +7 -3
  34. package/dist/cjs/Inputs/WrappedInputComponents.js.map +1 -1
  35. package/dist/cjs/Inputs/withLabelHelpers.d.ts +17 -5
  36. package/dist/cjs/Inputs/withLabelHelpers.d.ts.map +1 -1
  37. package/dist/cjs/Inputs/withLabelHelpers.js +14 -13
  38. package/dist/cjs/Inputs/withLabelHelpers.js.map +1 -1
  39. package/dist/esm/Field/Field.d.ts +2 -2
  40. package/dist/esm/Field/Field.d.ts.map +1 -1
  41. package/dist/esm/Field/FieldContext.d.ts +1 -2
  42. package/dist/esm/Field/FieldContext.d.ts.map +1 -1
  43. package/dist/esm/Field/FieldContext.js +4 -0
  44. package/dist/esm/Field/FieldContext.js.map +1 -1
  45. package/dist/esm/Field/FieldDescription.d.ts +2 -2
  46. package/dist/esm/Field/FieldDescription.d.ts.map +1 -1
  47. package/dist/esm/Field/FieldError.d.ts +2 -2
  48. package/dist/esm/Field/FieldError.d.ts.map +1 -1
  49. package/dist/esm/Field/FieldHint.d.ts +2 -2
  50. package/dist/esm/Field/FieldHint.d.ts.map +1 -1
  51. package/dist/esm/Field/FieldProvider.d.ts +2 -2
  52. package/dist/esm/Field/FieldProvider.d.ts.map +1 -1
  53. package/dist/esm/Field/Label/FieldLabel.d.ts +2 -2
  54. package/dist/esm/Field/Label/FieldLabel.d.ts.map +1 -1
  55. package/dist/esm/Field/Label/FieldLabel.js +1 -0
  56. package/dist/esm/Field/Label/FieldLabel.js.map +1 -1
  57. package/dist/esm/Field/Label/HiddenLabel.d.ts +2 -2
  58. package/dist/esm/Field/Label/HiddenLabel.d.ts.map +1 -1
  59. package/dist/esm/Field/Label/LabelFor.d.ts +2 -2
  60. package/dist/esm/Field/Label/LabelFor.d.ts.map +1 -1
  61. package/dist/esm/Field/Label/ReferencedLabel.d.ts +2 -2
  62. package/dist/esm/Field/Label/ReferencedLabel.d.ts.map +1 -1
  63. package/dist/esm/Field/Label/index.d.ts +4 -4
  64. package/dist/esm/Field/Label/index.d.ts.map +1 -1
  65. package/dist/esm/Field/Label/index.js.map +1 -1
  66. package/dist/esm/Field/index.d.ts +5 -5
  67. package/dist/esm/Field/index.d.ts.map +1 -1
  68. package/dist/esm/Field/index.js.map +1 -1
  69. package/dist/esm/Inputs/WrappedInputComponents.d.ts +108 -76
  70. package/dist/esm/Inputs/WrappedInputComponents.d.ts.map +1 -1
  71. package/dist/esm/Inputs/WrappedInputComponents.js +7 -3
  72. package/dist/esm/Inputs/WrappedInputComponents.js.map +1 -1
  73. package/dist/esm/Inputs/withLabelHelpers.d.ts +17 -5
  74. package/dist/esm/Inputs/withLabelHelpers.d.ts.map +1 -1
  75. package/dist/esm/Inputs/withLabelHelpers.js +14 -13
  76. package/dist/esm/Inputs/withLabelHelpers.js.map +1 -1
  77. package/dist/esm/tsdoc-metadata.json +11 -0
  78. package/package.json +22 -20
@@ -1,80 +1,112 @@
1
1
  import { AutoComplete as AutoCompleteComponent, Slider as SliderComponent } from '@rocket.chat/fuselage';
2
- export declare const TextInput: import("react").ForwardRefExoticComponent<Omit<Omit<import("@rocket.chat/fuselage").InputBoxProps, "type"> & {
3
- addon?: import("react").ReactNode;
4
- error?: string;
5
- } & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
6
- export declare const EmailInput: import("react").ForwardRefExoticComponent<Omit<Omit<import("@rocket.chat/fuselage").InputBoxProps, "type"> & {
7
- addon?: import("react").ReactNode;
8
- error?: string;
9
- } & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
10
- export declare const PasswordInput: import("react").ForwardRefExoticComponent<Omit<import("@rocket.chat/fuselage").PasswordInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
11
- export declare const SearchInput: import("react").ForwardRefExoticComponent<Omit<Omit<import("@rocket.chat/fuselage").InputBoxProps, "type"> & {
12
- addon?: import("react").ReactNode;
13
- error?: string;
14
- } & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
15
- export declare const TextAreaInput: import("react").ForwardRefExoticComponent<Omit<Omit<import("@rocket.chat/fuselage").InputBoxProps, "type"> & {
16
- addon?: import("react").ReactNode;
17
- error?: string;
18
- } & import("react").RefAttributes<HTMLTextAreaElement>, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
19
- export declare const TelephoneInput: import("react").ForwardRefExoticComponent<Omit<Omit<import("@rocket.chat/fuselage").InputBoxProps, "type"> & {
20
- addon?: import("react").ReactNode;
21
- input?: import("react").ReactNode;
22
- error?: string;
23
- } & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
24
- export declare const NumberInput: import("react").ForwardRefExoticComponent<Omit<import("@rocket.chat/fuselage").NumberInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
25
- export declare const UrlInput: import("react").ForwardRefExoticComponent<Omit<import("@rocket.chat/fuselage").UrlInputProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
26
- export declare const Select: import("react").ForwardRefExoticComponent<Omit<Omit<import("react-aria").AriaSelectProps<object>, "value" | "children" | "onChange"> & {
27
- error?: string;
28
- placeholder?: string;
29
- value?: import("react").Key | null | undefined;
30
- onChange?: ((key: import("react").Key) => any) | undefined;
31
- options: (readonly [value: string, label: string, selected?: boolean | undefined])[];
32
- small?: boolean;
33
- } & Omit<import("react").AllHTMLAttributes<HTMLElement>, "value" | "onChange"> & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
2
+ export declare const TextInput: {
3
+ (props: import("@rocket.chat/fuselage").TextInputProps & import("react").RefAttributes<any>): import("react").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export declare const EmailInput: {
7
+ (props: import("@rocket.chat/fuselage").EmailInputProps & import("react").RefAttributes<HTMLInputElement>): import("react").JSX.Element;
8
+ displayName: string;
9
+ };
10
+ export declare const PasswordInput: {
11
+ (props: import("@rocket.chat/fuselage").PasswordInputProps & import("react").RefAttributes<HTMLInputElement>): import("react").JSX.Element;
12
+ displayName: string;
13
+ };
14
+ export declare const SearchInput: {
15
+ (props: import("@rocket.chat/fuselage").SearchInputProps & import("react").RefAttributes<HTMLInputElement>): import("react").JSX.Element;
16
+ displayName: string;
17
+ };
18
+ export declare const TextAreaInput: {
19
+ (props: import("@rocket.chat/fuselage").TextAreaInputProps & import("react").RefAttributes<HTMLTextAreaElement>): import("react").JSX.Element;
20
+ displayName: string;
21
+ };
22
+ export declare const NumberInput: {
23
+ (props: import("@rocket.chat/fuselage").NumberInputProps & import("react").RefAttributes<HTMLInputElement>): import("react").JSX.Element;
24
+ displayName: string;
25
+ };
26
+ export declare const UrlInput: {
27
+ (props: import("@rocket.chat/fuselage").UrlInputProps & import("react").RefAttributes<HTMLInputElement>): import("react").JSX.Element;
28
+ displayName: string;
29
+ };
30
+ export declare const Select: {
31
+ (props: Omit<import("react-aria").AriaSelectProps<unknown>, "children" | "value" | "onChange"> & import("react").RefAttributes<HTMLElement> & {
32
+ error?: string;
33
+ placeholder?: string;
34
+ value?: import("react").Key | null | undefined;
35
+ onChange?: ((key: import("react").Key) => any) | undefined;
36
+ options: import("@rocket.chat/fuselage").SelectOption[];
37
+ small?: boolean;
38
+ } & Omit<import("react").AllHTMLAttributes<HTMLElement>, "value" | "onChange">): import("react").JSX.Element;
39
+ displayName: string;
40
+ };
34
41
  export declare const AutoComplete: typeof AutoCompleteComponent;
35
- export declare const MultiSelect: import("react").ForwardRefExoticComponent<Omit<Omit<import("@rocket.chat/fuselage").BoxProps, "value" | "onChange"> & {
36
- value?: import("@rocket.chat/fuselage").SelectOption[0][];
37
- error?: string;
38
- options: import("@rocket.chat/fuselage").SelectOption[];
39
- onChange: (params: import("@rocket.chat/fuselage").SelectOption[0][]) => void;
40
- getLabel?: (params: import("@rocket.chat/fuselage").SelectOption) => import("@rocket.chat/fuselage").SelectOption[1];
41
- getValue?: (params: import("@rocket.chat/fuselage").SelectOption) => import("@rocket.chat/fuselage").SelectOption[0];
42
- customEmpty?: string;
43
- anchor?: import("react").ElementType<import("@rocket.chat/fuselage/dist/components/MultiSelect/MultiSelectAnchorParams").MultiSelectAnchorParams> | ((params: import("@rocket.chat/fuselage/dist/components/MultiSelect/MultiSelectAnchorParams").MultiSelectAnchorParams) => import("react").ReactNode);
44
- renderOptions?: import("react").ElementType;
45
- renderItem?: import("react").ElementType;
46
- renderSelected?: import("react").ElementType;
47
- addonIcon?: import("@rocket.chat/fuselage").IconProps["name"];
48
- setFilter?: (filter: string) => void;
49
- } & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
50
- export declare const MultiSelectFiltered: import("react").ForwardRefExoticComponent<Omit<Omit<import("@rocket.chat/fuselage").BoxProps, "value" | "onChange"> & {
51
- value?: import("@rocket.chat/fuselage").SelectOption[0][];
52
- error?: string;
53
- options: import("@rocket.chat/fuselage").SelectOption[];
54
- onChange: (params: import("@rocket.chat/fuselage").SelectOption[0][]) => void;
55
- getLabel?: (params: import("@rocket.chat/fuselage").SelectOption) => import("@rocket.chat/fuselage").SelectOption[1];
56
- getValue?: (params: import("@rocket.chat/fuselage").SelectOption) => import("@rocket.chat/fuselage").SelectOption[0];
57
- customEmpty?: string;
58
- anchor?: import("react").ElementType<import("@rocket.chat/fuselage/dist/components/MultiSelect/MultiSelectAnchorParams").MultiSelectAnchorParams> | ((params: import("@rocket.chat/fuselage/dist/components/MultiSelect/MultiSelectAnchorParams").MultiSelectAnchorParams) => import("react").ReactNode);
59
- renderOptions?: import("react").ElementType;
60
- renderItem?: import("react").ElementType;
61
- renderSelected?: import("react").ElementType;
62
- addonIcon?: import("@rocket.chat/fuselage").IconProps["name"];
63
- setFilter?: (filter: string) => void;
64
- } & {
65
- filter?: string;
66
- setFilter?: import("react").Dispatch<import("react").SetStateAction<string>>;
67
- addonIcon?: import("@rocket.chat/fuselage").IconProps["name"];
68
- } & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
42
+ export declare const MultiSelect: {
43
+ (props: Omit<import("@rocket.chat/fuselage").BoxProps, "ref" | "value" | "onChange"> & import("react").RefAttributes<HTMLInputElement> & {
44
+ value?: import("@rocket.chat/fuselage").SelectOption[0][];
45
+ error?: string;
46
+ options: import("@rocket.chat/fuselage").SelectOption[];
47
+ onChange: (params: import("@rocket.chat/fuselage").SelectOption[0][]) => void;
48
+ getLabel?: (params: import("@rocket.chat/fuselage").SelectOption) => import("@rocket.chat/fuselage").SelectOption[1];
49
+ getValue?: (params: import("@rocket.chat/fuselage").SelectOption) => import("@rocket.chat/fuselage").SelectOption[0];
50
+ customEmpty?: string;
51
+ anchor?: import("react").ElementType<import("@rocket.chat/fuselage").MultiSelectAnchorParams>;
52
+ renderOptions?: import("react").ElementType;
53
+ renderItem?: import("react").ElementType;
54
+ renderSelected?: import("react").ElementType<{
55
+ value: import("@rocket.chat/fuselage").SelectOption[0];
56
+ label: import("@rocket.chat/fuselage").SelectOption[1];
57
+ onMouseDown: import("react").MouseEventHandler;
58
+ children: import("react").ReactNode;
59
+ }>;
60
+ addonIcon?: import("@rocket.chat/fuselage").IconProps["name"];
61
+ setFilter?: (filter: string) => void;
62
+ }): import("react").JSX.Element;
63
+ displayName: string;
64
+ };
65
+ export declare const MultiSelectFiltered: {
66
+ (props: Omit<import("@rocket.chat/fuselage").BoxProps, "ref" | "value" | "onChange"> & import("react").RefAttributes<HTMLInputElement> & {
67
+ value?: import("@rocket.chat/fuselage").SelectOption[0][];
68
+ error?: string;
69
+ options: import("@rocket.chat/fuselage").SelectOption[];
70
+ onChange: (params: import("@rocket.chat/fuselage").SelectOption[0][]) => void;
71
+ getLabel?: (params: import("@rocket.chat/fuselage").SelectOption) => import("@rocket.chat/fuselage").SelectOption[1];
72
+ getValue?: (params: import("@rocket.chat/fuselage").SelectOption) => import("@rocket.chat/fuselage").SelectOption[0];
73
+ customEmpty?: string;
74
+ anchor?: import("react").ElementType<import("@rocket.chat/fuselage").MultiSelectAnchorParams>;
75
+ renderOptions?: import("react").ElementType;
76
+ renderItem?: import("react").ElementType;
77
+ renderSelected?: import("react").ElementType<{
78
+ value: import("@rocket.chat/fuselage").SelectOption[0];
79
+ label: import("@rocket.chat/fuselage").SelectOption[1];
80
+ onMouseDown: import("react").MouseEventHandler;
81
+ children: import("react").ReactNode;
82
+ }>;
83
+ addonIcon?: import("@rocket.chat/fuselage").IconProps["name"];
84
+ setFilter?: (filter: string) => void;
85
+ } & {
86
+ filter?: string;
87
+ setFilter?: import("react").Dispatch<import("react").SetStateAction<string>>;
88
+ addonIcon?: import("@rocket.chat/fuselage").IconProps["name"];
89
+ }): import("react").JSX.Element;
90
+ displayName: string;
91
+ };
69
92
  export declare const Slider: typeof SliderComponent;
70
- export declare const CheckBox: import("react").ForwardRefExoticComponent<Omit<import("@rocket.chat/fuselage").BoxProps & {
71
- indeterminate?: boolean;
72
- labelChildren?: import("react").ReactNode;
73
- } & import("react").AllHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
74
- export declare const ToggleSwitch: import("react").ForwardRefExoticComponent<Omit<import("@rocket.chat/fuselage").BoxProps & import("react").AllHTMLAttributes<HTMLInputElement> & {
75
- labelChildren?: import("react").ReactNode;
76
- } & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
77
- export declare const RadioButton: import("react").ForwardRefExoticComponent<Omit<import("@rocket.chat/fuselage").BoxProps & import("react").AllHTMLAttributes<HTMLInputElement> & {
78
- labelChildren?: import("react").ReactNode;
79
- } & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
93
+ export declare const CheckBox: {
94
+ (props: Omit<import("@rocket.chat/fuselage").BoxProps, "ref"> & import("react").RefAttributes<HTMLInputElement> & {
95
+ indeterminate?: boolean;
96
+ labelChildren?: import("react").ReactNode;
97
+ } & import("react").AllHTMLAttributes<HTMLInputElement>): import("react").JSX.Element;
98
+ displayName: string;
99
+ };
100
+ export declare const ToggleSwitch: {
101
+ (props: Omit<import("@rocket.chat/fuselage").BoxProps, "ref"> & import("react").RefAttributes<HTMLInputElement> & import("react").AllHTMLAttributes<HTMLInputElement> & {
102
+ labelChildren?: import("react").ReactNode;
103
+ }): import("react").JSX.Element;
104
+ displayName: string;
105
+ };
106
+ export declare const RadioButton: {
107
+ (props: Omit<import("@rocket.chat/fuselage").BoxProps, "ref"> & import("react").RefAttributes<HTMLInputElement> & import("react").AllHTMLAttributes<HTMLInputElement> & {
108
+ labelChildren?: import("react").ReactNode;
109
+ }): import("react").JSX.Element;
110
+ displayName: string;
111
+ };
80
112
  //# sourceMappingURL=WrappedInputComponents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WrappedInputComponents.d.ts","sourceRoot":"","sources":["../../../src/Inputs/WrappedInputComponents.ts"],"names":[],"mappings":"AAAA,OAAO,EAaL,YAAY,IAAI,qBAAqB,EAGrC,MAAM,IAAI,eAAe,EAC1B,MAAM,uBAAuB,CAAC;AAY/B,eAAO,MAAM,SAAS;;;8GAAkC,CAAC;AACzD,eAAO,MAAM,UAAU;;;oGAAmC,CAAC;AAC3D,eAAO,MAAM,aAAa,gNAAsC,CAAC;AACjE,eAAO,MAAM,WAAW;;;8GAAoC,CAAC;AAC7D,eAAO,MAAM,aAAa;;;oHAAiC,CAAC;AAC5D,eAAO,MAAM,cAAc;;;;8GAAuC,CAAC;AACnE,eAAO,MAAM,WAAW,8MAAoC,CAAC;AAC7D,eAAO,MAAM,QAAQ,iMAAiC,CAAC;AAGvD,eA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AAM,WAAW;;;;;CAAgD,CAAC"}
@@ -1,21 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RadioButton = exports.ToggleSwitch = exports.CheckBox = exports.Slider = exports.MultiSelectFiltered = exports.MultiSelect = exports.AutoComplete = exports.Select = exports.UrlInput = exports.NumberInput = exports.TelephoneInput = exports.TextAreaInput = exports.SearchInput = exports.PasswordInput = exports.EmailInput = exports.TextInput = void 0;
3
+ exports.RadioButton = exports.ToggleSwitch = exports.CheckBox = exports.Slider = exports.MultiSelectFiltered = exports.MultiSelect = exports.AutoComplete = exports.Select = exports.UrlInput = exports.NumberInput = exports.TextAreaInput = exports.SearchInput = exports.PasswordInput = exports.EmailInput = exports.TextInput = void 0;
4
4
  const fuselage_1 = require("@rocket.chat/fuselage");
5
5
  const withLabelHelpers_1 = require("./withLabelHelpers");
6
+ // TODO: Some inputs are still not supported due to requiring a different a11y approach
7
+ // with id
6
8
  exports.TextInput = (0, withLabelHelpers_1.withLabelId)(fuselage_1.TextInput);
7
9
  exports.EmailInput = (0, withLabelHelpers_1.withLabelId)(fuselage_1.EmailInput);
8
10
  exports.PasswordInput = (0, withLabelHelpers_1.withLabelId)(fuselage_1.PasswordInput);
9
11
  exports.SearchInput = (0, withLabelHelpers_1.withLabelId)(fuselage_1.SearchInput);
10
12
  exports.TextAreaInput = (0, withLabelHelpers_1.withLabelId)(fuselage_1.TextAreaInput);
11
- exports.TelephoneInput = (0, withLabelHelpers_1.withLabelId)(fuselage_1.TelephoneInput);
12
13
  exports.NumberInput = (0, withLabelHelpers_1.withLabelId)(fuselage_1.NumberInput);
13
14
  exports.UrlInput = (0, withLabelHelpers_1.withLabelId)(fuselage_1.UrlInput);
15
+ // with aria-labelledby
14
16
  exports.Select = (0, withLabelHelpers_1.withAriaLabelledBy)(fuselage_1.Select);
15
- exports.AutoComplete = (0, withLabelHelpers_1.withAriaLabelledByAndId)(fuselage_1.AutoComplete);
17
+ // with aria-labelledby + id for aria-controls
18
+ exports.AutoComplete = (0, withLabelHelpers_1.withAriaLabelledByAndId)((fuselage_1.AutoComplete));
16
19
  exports.MultiSelect = (0, withLabelHelpers_1.withAriaLabelledByAndId)(fuselage_1.MultiSelect);
17
20
  exports.MultiSelectFiltered = (0, withLabelHelpers_1.withAriaLabelledByAndId)(fuselage_1.MultiSelectFiltered);
18
21
  exports.Slider = (0, withLabelHelpers_1.withAriaLabelledBy)(fuselage_1.Slider);
22
+ // with visually hidden label
19
23
  exports.CheckBox = (0, withLabelHelpers_1.withVisuallyHiddenLabel)(fuselage_1.CheckBox);
20
24
  exports.ToggleSwitch = (0, withLabelHelpers_1.withVisuallyHiddenLabel)(fuselage_1.ToggleSwitch);
21
25
  exports.RadioButton = (0, withLabelHelpers_1.withVisuallyHiddenLabel)(fuselage_1.RadioButton);
@@ -1 +1 @@
1
- {"version":3,"file":"WrappedInputComponents.js","sourceRoot":"","sources":["../../../src/Inputs/WrappedInputComponents.ts"],"names":[],"mappings":";;;AAAA,oDAiB+B;AAE/B,yDAK4B;AAKf,QAAA,SAAS,GAAG,IAAA,8BAAW,EAAC,oBAAkB,CAAC,CAAC;AAC5C,QAAA,UAAU,GAAG,IAAA,8BAAW,EAAC,qBAAmB,CAAC,CAAC;AAC9C,QAAA,aAAa,GAAG,IAAA,8BAAW,EAAC,wBAAsB,CAAC,CAAC;AACpD,QAAA,WAAW,GAAG,IAAA,8BAAW,EAAC,sBAAoB,CAAC,CAAC;AAChD,QAAA,aAAa,GAAG,IAAA,8BAAW,EAAC,wBAAiB,CAAC,CAAC;AAC/C,QAAA,cAAc,GAAG,IAAA,8BAAW,EAAC,yBAAuB,CAAC,CAAC;AACtD,QAAA,WAAW,GAAG,IAAA,8BAAW,EAAC,sBAAoB,CAAC,CAAC;AAChD,QAAA,QAAQ,GAAG,IAAA,8BAAW,EAAC,mBAAiB,CAAC,CAAC;AAG1C,QAAA,MAAM,GAAG,IAAA,qCAAkB,EAAC,iBAAe,CAAC,CAAC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;AACrB,QAAA,WAAW,GAAG,IAAA,0CAAuB,EAAC,sBAAoB,CAAC,CAAC;AAC5D,QAAA,mBAAmB,GAAG,IAAA,0CAAuB,EACxD,8BAA4B,CAC7B,CAAC;AACW,QAAA,MAAM,GAAG,IAAA,qCAAkB,EACtC,iBAAe,CACU,CAAC;AAE5B,6BAA6B;AAChB,QAAA,QAAQ,GAAG,IAAA,0CAAuB,EAAC,mBAAiB,CAAC,CAAC;AACtD,QAAA,YAAY,GAAG,IAAA,0CAAuB,EAAC,uBAAqB,CAAC,CAAC;AAC9D,QAAA,WAAW,GAAG,IAAA,0CAAuB,EAAC,sBAAoB,CAAC,CAAC"}
@@ -1,20 +1,32 @@
1
- import type { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
1
+ import type { ReactNode, ComponentType, RefAttributes } from 'react';
2
2
  type WithLabelId = {
3
3
  id?: string;
4
4
  };
5
- declare function withLabelId<TProps, TRef>(Component: ForwardRefExoticComponent<TProps & WithLabelId & RefAttributes<TRef>>): ForwardRefExoticComponent<import("react").PropsWithoutRef<TProps> & RefAttributes<TRef>>;
5
+ declare function withLabelId<TProps, TRef>(Component: ComponentType<TProps & WithLabelId & RefAttributes<TRef>>): {
6
+ (props: TProps & RefAttributes<TRef>): import("react").JSX.Element;
7
+ displayName: string;
8
+ };
6
9
  type WithLabelledBy = {
7
10
  'aria-labelledby'?: string;
8
11
  };
9
- declare function withAriaLabelledBy<TProps, TRef>(Component: ForwardRefExoticComponent<TProps & WithLabelledBy & RefAttributes<TRef>>): ForwardRefExoticComponent<import("react").PropsWithoutRef<TProps> & RefAttributes<TRef>>;
12
+ declare function withAriaLabelledBy<TProps, TRef>(Component: ComponentType<TProps & WithLabelledBy & RefAttributes<TRef>>): {
13
+ (props: TProps & RefAttributes<TRef>): import("react").JSX.Element;
14
+ displayName: string;
15
+ };
10
16
  type WithLabelledByAndId = {
11
17
  'aria-labelledby'?: string;
12
18
  'id'?: string;
13
19
  };
14
- declare function withAriaLabelledByAndId<TProps, TRef>(Component: ForwardRefExoticComponent<TProps & WithLabelledByAndId & RefAttributes<TRef>>): ForwardRefExoticComponent<import("react").PropsWithoutRef<TProps> & RefAttributes<TRef>>;
20
+ declare function withAriaLabelledByAndId<TProps, TRef>(Component: ComponentType<TProps & WithLabelledByAndId & RefAttributes<TRef>>): {
21
+ (props: TProps & RefAttributes<TRef>): import("react").JSX.Element;
22
+ displayName: string;
23
+ };
15
24
  type WithChildrenLabel = {
16
25
  labelChildren: ReactNode;
17
26
  };
18
- declare function withVisuallyHiddenLabel<TProps, TRef>(Component: ForwardRefExoticComponent<TProps & WithChildrenLabel & RefAttributes<TRef>>): ForwardRefExoticComponent<import("react").PropsWithoutRef<TProps> & RefAttributes<TRef>>;
27
+ declare function withVisuallyHiddenLabel<TProps, TRef>(Component: ComponentType<TProps & WithChildrenLabel & RefAttributes<TRef>>): {
28
+ (props: TProps & RefAttributes<TRef>): import("react").JSX.Element;
29
+ displayName: string;
30
+ };
19
31
  export { withLabelId, withAriaLabelledBy, withAriaLabelledByAndId, withVisuallyHiddenLabel, };
20
32
  //# sourceMappingURL=withLabelHelpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withLabelHelpers.d.ts","sourceRoot":"","sources":["../../../src/Inputs/withLabelHelpers.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,SAAS,EACT,yBAAyB,EAEzB,aAAa,EACd,MAAM,OAAO,CAAC;AAWf,KAAK,WAAW,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnC,iBAAS,WAAW,CAAC,MAAM,EAAE,IAAI,EAC/B,SAAS,EAAE,yBAAyB,CAClC,MAAM,GAAG,WAAW,GAAG,aAAa,CAAC,IAAI,CAAC,CAC3C,4FAgBF;AAED,KAAK,cAAc,GAAG;IAAE,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAErD,iBAAS,kBAAkB,CAAC,MAAM,EAAE,IAAI,EACtC,S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AAG,aAAa,CAAC,IAAI,CAAC,CAAC;YAEtC,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC;;EAQ9D;AAED,KAAK,mBAAmB,GAAG;IAAE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzE,iBAAS,uBAAuB,CAAC,MAAM,EAAE,IAAI,EAC3C,SAAS,EAAE,aAAa,CAAC,MAAM,GAAG,mBAAmB,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;YAE3C,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC;;EAQ9D;AAED,KAAK,iBAAiB,GAAG;IAAE,aAAa,EAAE,SAAS,CAAA;CAAE,CAAC;AAEtD,iBAAS,uBAAuB,CAAC,MAAM,EAAE,IAAI,EAC3C,SAAS,EAAE,aAAa,CAAC,MAAM,GAAG,iBAAiB,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;YAEzC,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC;;EAgB9D;AAED,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,GACxB,CAAC"}
@@ -5,40 +5,41 @@ exports.withAriaLabelledBy = withAriaLabelledBy;
5
5
  exports.withAriaLabelledByAndId = withAriaLabelledByAndId;
6
6
  exports.withVisuallyHiddenLabel = withVisuallyHiddenLabel;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
+ // Disabled this flag since we need to wrap multiple components
9
+ /* eslint-disable react/no-multi-comp */
8
10
  const fuselage_hooks_1 = require("@rocket.chat/fuselage-hooks");
9
- const react_1 = require("react");
10
11
  const react_aria_1 = require("react-aria");
11
12
  const FieldContext_1 = require("../Field/FieldContext");
12
13
  function withLabelId(Component) {
13
- const WrappedComponent = (0, react_1.forwardRef)(function (props, ref) {
14
+ function WrappedComponent(props) {
14
15
  const labelProps = (0, FieldContext_1.useFieldReferencedByInput)();
15
- return ((0, jsx_runtime_1.jsx)(Component, { ...props, ...labelProps, ref: ref }));
16
- });
16
+ return (0, jsx_runtime_1.jsx)(Component, { ...props, ...labelProps });
17
+ }
17
18
  WrappedComponent.displayName = `withLabelId(${Component.displayName ?? Component.name ?? 'InputComponent'})`;
18
19
  return WrappedComponent;
19
20
  }
20
21
  function withAriaLabelledBy(Component) {
21
- const WrappedComponent = (0, react_1.forwardRef)(function (props, ref) {
22
+ function WrappedComponent(props) {
22
23
  const labelProps = (0, FieldContext_1.useFieldReferencedByLabel)();
23
- return ((0, jsx_runtime_1.jsx)(Component, { ...props, ...labelProps, ref: ref }));
24
- });
24
+ return (0, jsx_runtime_1.jsx)(Component, { ...props, ...labelProps });
25
+ }
25
26
  WrappedComponent.displayName = `withAriaLabelledBy(${Component.displayName ?? Component.name ?? 'InputComponent'})`;
26
27
  return WrappedComponent;
27
28
  }
28
29
  function withAriaLabelledByAndId(Component) {
29
- const WrappedComponent = (0, react_1.forwardRef)(function (props, ref) {
30
+ function WrappedComponent(props) {
30
31
  const labelProps = (0, FieldContext_1.useFieldReferencedByLabelWithId)();
31
- return ((0, jsx_runtime_1.jsx)(Component, { ...props, ...labelProps, ref: ref }));
32
- });
32
+ return (0, jsx_runtime_1.jsx)(Component, { ...props, ...labelProps });
33
+ }
33
34
  WrappedComponent.displayName = `withAriaLabelledByAndId(${Component.displayName ?? Component.name ?? 'InputComponent'})`;
34
35
  return WrappedComponent;
35
36
  }
36
37
  function withVisuallyHiddenLabel(Component) {
37
- const WrappedComponent = (0, react_1.forwardRef)(function (props, ref) {
38
+ function WrappedComponent(props) {
38
39
  const [label, labelProps, labelRef] = (0, FieldContext_1.useFieldWrappedByInputLabel)();
39
- const mergedRef = (0, fuselage_hooks_1.useMergedRefs)(ref, labelRef);
40
+ const mergedRef = (0, fuselage_hooks_1.useMergedRefs)(props.ref, labelRef);
40
41
  return ((0, jsx_runtime_1.jsx)(Component, { ...props, ...labelProps, ref: mergedRef, labelChildren: (0, jsx_runtime_1.jsx)(react_aria_1.VisuallyHidden, { children: label }) }));
41
- });
42
+ }
42
43
  WrappedComponent.displayName = `withVisuallyHiddenLabel(${Component.displayName ?? Component.name ?? 'InputComponent'})`;
43
44
  return WrappedComponent;
44
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"withLabelHelpers.js","sourceRoot":"","sources":["../../../src/Inputs/withLabelHelpers.tsx"],"names":[],"mappings":";;AAkHE,kCAAW;AACX,gDAAkB;AAClB,0DAAuB;AACvB,0DAAuB;;AAnHzB,gEAA4D;AAO5D,iCAAmC;AACnC,2CAA4C;AAE5C,wDAK+B;AAI/B,SAAS,WAAW,CAClB,SAEC;IAED,MAAM,gBAAgB,GAAG,IAAA,kBAAU,EAAe,UAAU,KAAK,EAAE,GAAG;QACpE,MAAM,UAAU,GAAG,IAAA,wCAAyB,GAAE,CAAC;QAC/C,OAAO,CACL,uBAAC,SAAS,OACH,KAA8B,KAC/B,UAAU,EACd,GAAG,EAAE,GAAG,GACR,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,gBAAgB,CAAC,WAAW,GAAG,eAAe,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,IAAI,gBAAgB,GAAG,CAAC;IAE7G,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAID,SAAS,kBAAkB,CACzB,SAEC;IAED,MAAM,gBAAgB,GAAG,IAAA,kBAAU,EAAe,UAAU,KAAK,EAAE,GAAG;QACpE,MAAM,UAAU,GAAG,IAAA,wCAAyB,GAAE,CAAC;QAC/C,OAAO,CACL,uBAAC,SAAS,OACH,KAAiC,KAClC,UAAU,EACd,GAAG,EAAE,GAAG,GACR,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,gBAAgB,CAAC,WAAW,GAAG,sBAAsB,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,IAAI,gBAAgB,GAAG,CAAC;IAEpH,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAID,SAAS,uBAAuB,CAC9B,SAEC;IAED,MAAM,gBA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CACL,uBAAC,SAAS,OACJ,KAAK,KACL,UAAU,EACd,GAAG,EAAE,SAAS,EACd,aAAa,EAAE,uBAAC,2BAAc,cAAE,KAAK,GAAkB,GACvD,CACH,CAAC;IACJ,CAAC;IAED,gBAAgB,CAAC,WAAW,GAAG,2BAA2B,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,IAAI,gBAAgB,GAAG,CAAC;IAEzH,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.58.7"
9
+ }
10
+ ]
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocket.chat/fuselage-forms",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "description": "A set of component wrappers to provide ease of use and accessibility out-of-box.",
5
5
  "homepage": "https://github.com/RocketChat/fuselage#readme",
6
6
  "bugs": {
@@ -26,41 +26,43 @@
26
26
  ".:build:clean": "rimraf dist",
27
27
  ".:build:cjs": "tsc -p tsconfig.cjs.json",
28
28
  ".:build:esm": "tsc -p tsconfig.esm.json",
29
+ ".:build:api": "api-extractor run --local",
29
30
  "storybook": "storybook dev -p 6006 --no-version-updates",
30
- "build": "run .:build:clean && run .:build:esm && run .:build:cjs",
31
+ "build": "run .:build:clean && run .:build:esm && run .:build:cjs && run .:build:api",
31
32
  "clean": "rimraf dist",
32
- "docs": "cross-env NODE_ENV=production storybook build -o ../../static/fuselage-forms",
33
+ "docs": "NODE_ENV=production storybook build -o ../../static/fuselage-forms",
33
34
  "lint": "lint",
34
35
  "lint-and-fix": "lint-and-fix",
35
36
  "test": "jest --runInBand"
36
37
  },
37
38
  "devDependencies": {
38
- "@rocket.chat/fuselage": "^0.78.0",
39
- "@rocket.chat/fuselage-hooks": "^0.41.0",
39
+ "@microsoft/api-extractor": "~7.58.7",
40
+ "@rocket.chat/fuselage": "^0.82.0",
41
+ "@rocket.chat/fuselage-hooks": "^0.43.0",
40
42
  "@rocket.chat/fuselage-tokens": "^0.33.2",
41
- "@rocket.chat/storybook-dark-mode": "^4.1.0",
42
- "@storybook/addon-docs": "~9.1.17",
43
+ "@rocket.chat/storybook-dark-mode": "^4.2.1",
44
+ "@storybook/addon-docs": "~9.1.20",
43
45
  "@storybook/addon-webpack5-compiler-swc": "~4.0.3",
44
- "@storybook/react-webpack5": "~9.1.17",
46
+ "@storybook/react-webpack5": "~9.1.20",
47
+ "@testing-library/dom": "~10.4.1",
45
48
  "@testing-library/jest-dom": "~6.9.1",
46
49
  "@testing-library/react": "~16.3.2",
47
50
  "@testing-library/user-event": "~14.6.1",
48
51
  "@types/jest": "~30.0.0",
49
52
  "@types/jest-axe": "~3.5.9",
50
- "@types/react": "~18.3.27",
51
- "@types/react-dom": "~18.3.7",
52
- "cross-env": "^10.1.0",
53
- "eslint": "~9.39.2",
54
- "jest": "~30.3.0",
53
+ "@types/react": "~19.2.17",
54
+ "@types/react-dom": "~19.2.3",
55
+ "eslint": "~9.39.4",
56
+ "jest": "~30.4.2",
55
57
  "jest-axe": "~10.0.0",
56
- "jest-environment-jsdom": "~30.3.0",
58
+ "jest-environment-jsdom": "~30.4.1",
57
59
  "lint-all": "^0.31.25",
58
60
  "prettier": "~3.6.2",
59
- "react": "~18.3.1",
60
- "react-dom": "~18.3.1",
61
- "rimraf": "~6.0.1",
62
- "storybook": "~9.1.19",
63
- "ts-jest": "~29.4.6",
61
+ "react": "~19.2.7",
62
+ "react-dom": "~19.2.7",
63
+ "rimraf": "~6.1.3",
64
+ "storybook": "~9.1.20",
65
+ "ts-jest": "~29.4.11",
64
66
  "typescript": "~5.9.3",
65
67
  "webpack": "~5.105.4"
66
68
  },
@@ -77,7 +79,7 @@
77
79
  "access": "public"
78
80
  },
79
81
  "dependencies": {
80
- "@rocket.chat/emitter": "^0.32.0",
82
+ "@rocket.chat/emitter": "^0.33.0",
81
83
  "react-aria": "~3.37.0"
82
84
  }
83
85
  }