@rocket.chat/fuselage-forms 1.5.0 → 2.0.0-rc.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.
- package/README.md +126 -57
- package/dist/cjs/Field/Field.js +18 -3
- package/dist/cjs/Field/Field.js.map +1 -1
- package/dist/cjs/Field/FieldContext.js +35 -30
- package/dist/cjs/Field/FieldContext.js.map +1 -1
- package/dist/cjs/Field/FieldDescription.js +14 -2
- package/dist/cjs/Field/FieldDescription.js.map +1 -1
- package/dist/cjs/Field/FieldError.js +14 -2
- package/dist/cjs/Field/FieldError.js.map +1 -1
- package/dist/cjs/Field/FieldHint.js +14 -2
- package/dist/cjs/Field/FieldHint.js.map +1 -1
- package/dist/cjs/Field/FieldProvider.js.map +1 -1
- package/dist/cjs/Field/Label/FieldLabel.js +9 -6
- package/dist/cjs/Field/Label/FieldLabel.js.map +1 -1
- package/dist/cjs/Field/Label/HiddenLabel.js +16 -2
- package/dist/cjs/Field/Label/HiddenLabel.js.map +1 -1
- package/dist/cjs/Field/Label/LabelFor.js +16 -2
- package/dist/cjs/Field/Label/LabelFor.js.map +1 -1
- package/dist/cjs/Field/Label/ReferencedLabel.js +16 -2
- package/dist/cjs/Field/Label/ReferencedLabel.js.map +1 -1
- package/dist/cjs/Field/Label/index.js +7 -4
- package/dist/cjs/Field/Label/index.js.map +1 -1
- package/dist/cjs/Field/index.js +8 -5
- package/dist/cjs/Field/index.js.map +1 -1
- package/dist/cjs/Inputs/WrappedInputComponents.js +5 -1
- package/dist/cjs/Inputs/WrappedInputComponents.js.map +1 -1
- package/dist/cjs/Inputs/withLabelHelpers.js +13 -9
- package/dist/cjs/Inputs/withLabelHelpers.js.map +1 -1
- package/dist/esm/Field/Field.d.ts.map +1 -1
- package/dist/esm/Field/Field.js +17 -10
- package/dist/esm/Field/Field.js.map +1 -1
- package/dist/esm/Field/FieldContext.d.ts +7 -20
- package/dist/esm/Field/FieldContext.d.ts.map +1 -1
- package/dist/esm/Field/FieldContext.js +60 -65
- package/dist/esm/Field/FieldContext.js.map +1 -1
- package/dist/esm/Field/FieldDescription.d.ts.map +1 -1
- package/dist/esm/Field/FieldDescription.js +19 -9
- package/dist/esm/Field/FieldDescription.js.map +1 -1
- package/dist/esm/Field/FieldError.d.ts.map +1 -1
- package/dist/esm/Field/FieldError.js +19 -9
- package/dist/esm/Field/FieldError.js.map +1 -1
- package/dist/esm/Field/FieldHint.d.ts.map +1 -1
- package/dist/esm/Field/FieldHint.js +19 -9
- package/dist/esm/Field/FieldHint.js.map +1 -1
- package/dist/esm/Field/FieldProvider.d.ts.map +1 -1
- package/dist/esm/Field/FieldProvider.js +15 -17
- package/dist/esm/Field/FieldProvider.js.map +1 -1
- package/dist/esm/Field/Label/FieldLabel.d.ts.map +1 -1
- package/dist/esm/Field/Label/FieldLabel.js +10 -15
- package/dist/esm/Field/Label/FieldLabel.js.map +1 -1
- package/dist/esm/Field/Label/HiddenLabel.d.ts +1 -1
- package/dist/esm/Field/Label/HiddenLabel.d.ts.map +1 -1
- package/dist/esm/Field/Label/HiddenLabel.js +21 -9
- package/dist/esm/Field/Label/HiddenLabel.js.map +1 -1
- package/dist/esm/Field/Label/LabelFor.d.ts +1 -1
- package/dist/esm/Field/Label/LabelFor.d.ts.map +1 -1
- package/dist/esm/Field/Label/LabelFor.js +21 -9
- package/dist/esm/Field/Label/LabelFor.js.map +1 -1
- package/dist/esm/Field/Label/ReferencedLabel.d.ts +1 -1
- package/dist/esm/Field/Label/ReferencedLabel.d.ts.map +1 -1
- package/dist/esm/Field/Label/ReferencedLabel.js +21 -9
- package/dist/esm/Field/Label/ReferencedLabel.js.map +1 -1
- package/dist/esm/Field/Label/index.d.ts +1 -1
- package/dist/esm/Field/Label/index.d.ts.map +1 -1
- package/dist/esm/Field/Label/index.js +4 -14
- package/dist/esm/Field/Label/index.js.map +1 -1
- package/dist/esm/Field/index.d.ts +3 -3
- package/dist/esm/Field/index.d.ts.map +1 -1
- package/dist/esm/Field/index.js +8 -37
- package/dist/esm/Field/index.js.map +1 -1
- package/dist/esm/Inputs/WrappedInputComponents.d.ts +29 -14
- package/dist/esm/Inputs/WrappedInputComponents.d.ts.map +1 -1
- package/dist/esm/Inputs/WrappedInputComponents.js +21 -20
- package/dist/esm/Inputs/WrappedInputComponents.js.map +1 -1
- package/dist/esm/Inputs/index.js +1 -17
- package/dist/esm/Inputs/index.js.map +1 -1
- package/dist/esm/Inputs/withLabelHelpers.d.ts +1 -1
- package/dist/esm/Inputs/withLabelHelpers.d.ts.map +1 -1
- package/dist/esm/Inputs/withLabelHelpers.js +23 -24
- package/dist/esm/Inputs/withLabelHelpers.js.map +1 -1
- package/dist/esm/index.js +2 -18
- package/dist/esm/index.js.map +1 -1
- package/package.json +41 -49
- package/dist/cjs/Field/Field.d.ts +0 -8
- package/dist/cjs/Field/Field.d.ts.map +0 -1
- package/dist/cjs/Field/FieldContext.d.ts +0 -40
- package/dist/cjs/Field/FieldContext.d.ts.map +0 -1
- package/dist/cjs/Field/FieldDescription.d.ts +0 -8
- package/dist/cjs/Field/FieldDescription.d.ts.map +0 -1
- package/dist/cjs/Field/FieldError.d.ts +0 -8
- package/dist/cjs/Field/FieldError.d.ts.map +0 -1
- package/dist/cjs/Field/FieldHint.d.ts +0 -8
- package/dist/cjs/Field/FieldHint.d.ts.map +0 -1
- package/dist/cjs/Field/FieldProvider.d.ts +0 -7
- package/dist/cjs/Field/FieldProvider.d.ts.map +0 -1
- package/dist/cjs/Field/Label/FieldLabel.d.ts +0 -6
- package/dist/cjs/Field/Label/FieldLabel.d.ts.map +0 -1
- package/dist/cjs/Field/Label/HiddenLabel.d.ts +0 -6
- package/dist/cjs/Field/Label/HiddenLabel.d.ts.map +0 -1
- package/dist/cjs/Field/Label/LabelFor.d.ts +0 -6
- package/dist/cjs/Field/Label/LabelFor.d.ts.map +0 -1
- package/dist/cjs/Field/Label/ReferencedLabel.d.ts +0 -6
- package/dist/cjs/Field/Label/ReferencedLabel.d.ts.map +0 -1
- package/dist/cjs/Field/Label/index.d.ts +0 -5
- package/dist/cjs/Field/Label/index.d.ts.map +0 -1
- package/dist/cjs/Field/index.d.ts +0 -9
- package/dist/cjs/Field/index.d.ts.map +0 -1
- package/dist/cjs/Inputs/WrappedInputComponents.d.ts +0 -112
- package/dist/cjs/Inputs/WrappedInputComponents.d.ts.map +0 -1
- package/dist/cjs/Inputs/index.d.ts +0 -2
- package/dist/cjs/Inputs/index.d.ts.map +0 -1
- package/dist/cjs/Inputs/withLabelHelpers.d.ts +0 -32
- package/dist/cjs/Inputs/withLabelHelpers.d.ts.map +0 -1
- package/dist/cjs/index.d.ts +0 -3
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/esm/tsdoc-metadata.json +0 -11
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
15
|
const fuselage_1 = require("@rocket.chat/fuselage");
|
|
16
|
+
const fuselage_hooks_1 = require("@rocket.chat/fuselage-hooks");
|
|
5
17
|
const FieldContext_1 = require("../FieldContext");
|
|
6
|
-
const LabelFor = (
|
|
18
|
+
const LabelFor = (_a) => {
|
|
19
|
+
var { children, ref } = _a, props = __rest(_a, ["children", "ref"]);
|
|
7
20
|
const [labelRef, id] = (0, FieldContext_1.useFieldLabel)();
|
|
8
|
-
|
|
21
|
+
const mergedRef = (0, fuselage_hooks_1.useMergedRefs)(ref, labelRef);
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, Object.assign({}, props, { ref: mergedRef, id: id, is: 'span', children: children })));
|
|
9
23
|
};
|
|
10
24
|
exports.default = LabelFor;
|
|
11
25
|
//# sourceMappingURL=LabelFor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabelFor.js","sourceRoot":"","sources":["../../../../src/Field/Label/LabelFor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LabelFor.js","sourceRoot":"","sources":["../../../../src/Field/Label/LabelFor.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,oDAA0E;AAC1E,gEAA4D;AAG5D,kDAAgD;AAIhD,MAAM,QAAQ,GAAG,CAAC,EAA0C,EAAE,EAAE;QAA9C,EAAE,QAAQ,EAAE,GAAG,OAA2B,EAAtB,KAAK,cAAzB,mBAA2B,CAAF;IAC1C,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,IAAA,4BAAa,GAAE,CAAC;IACvC,MAAM,SAAS,GAAG,IAAA,8BAAa,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC/C,OAAO,CACN,uBAAC,qBAAmB,oBAAK,KAAK,IAAE,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,MAAM,YAC/D,QAAQ,IACY,CACtB,CAAC;AACH,CAAC,CAAC;kBAEa,QAAQ"}
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
15
|
const fuselage_1 = require("@rocket.chat/fuselage");
|
|
16
|
+
const fuselage_hooks_1 = require("@rocket.chat/fuselage-hooks");
|
|
5
17
|
const FieldContext_1 = require("../FieldContext");
|
|
6
|
-
const ReferencedLabel = (
|
|
18
|
+
const ReferencedLabel = (_a) => {
|
|
19
|
+
var { children, ref } = _a, props = __rest(_a, ["children", "ref"]);
|
|
7
20
|
const [labelRef, id] = (0, FieldContext_1.useFieldLabel)();
|
|
8
|
-
|
|
21
|
+
const mergedRef = (0, fuselage_hooks_1.useMergedRefs)(ref, labelRef);
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, Object.assign({}, props, { ref: mergedRef, htmlFor: id, children: children })));
|
|
9
23
|
};
|
|
10
24
|
exports.default = ReferencedLabel;
|
|
11
25
|
//# sourceMappingURL=ReferencedLabel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReferencedLabel.js","sourceRoot":"","sources":["../../../../src/Field/Label/ReferencedLabel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ReferencedLabel.js","sourceRoot":"","sources":["../../../../src/Field/Label/ReferencedLabel.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,oDAA0E;AAC1E,gEAA4D;AAG5D,kDAAgD;AAIhD,MAAM,eAAe,GAAG,CAAC,EAAiD,EAAE,EAAE;QAArD,EAAE,QAAQ,EAAE,GAAG,OAAkC,EAA7B,KAAK,cAAzB,mBAA2B,CAAF;IACjD,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,IAAA,4BAAa,GAAE,CAAC;IACvC,MAAM,SAAS,GAAG,IAAA,8BAAa,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAE/C,OAAO,CACN,uBAAC,qBAAmB,oBAAK,KAAK,IAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,YACzD,QAAQ,IACY,CACtB,CAAC;AACH,CAAC,CAAC;kBAEa,eAAe"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.FieldLabel = exports.ReferencedLabel = exports.HiddenLabel = exports.LabelFor = void 0;
|
|
4
7
|
var LabelFor_1 = require("./LabelFor");
|
|
5
|
-
Object.defineProperty(exports, "LabelFor", { enumerable: true, get: function () { return LabelFor_1.default; } });
|
|
8
|
+
Object.defineProperty(exports, "LabelFor", { enumerable: true, get: function () { return __importDefault(LabelFor_1).default; } });
|
|
6
9
|
var HiddenLabel_1 = require("./HiddenLabel");
|
|
7
|
-
Object.defineProperty(exports, "HiddenLabel", { enumerable: true, get: function () { return HiddenLabel_1.default; } });
|
|
10
|
+
Object.defineProperty(exports, "HiddenLabel", { enumerable: true, get: function () { return __importDefault(HiddenLabel_1).default; } });
|
|
8
11
|
var ReferencedLabel_1 = require("./ReferencedLabel");
|
|
9
|
-
Object.defineProperty(exports, "ReferencedLabel", { enumerable: true, get: function () { return ReferencedLabel_1.default; } });
|
|
12
|
+
Object.defineProperty(exports, "ReferencedLabel", { enumerable: true, get: function () { return __importDefault(ReferencedLabel_1).default; } });
|
|
10
13
|
var FieldLabel_1 = require("./FieldLabel");
|
|
11
|
-
Object.defineProperty(exports, "FieldLabel", { enumerable: true, get: function () { return FieldLabel_1.default; } });
|
|
14
|
+
Object.defineProperty(exports, "FieldLabel", { enumerable: true, get: function () { return __importDefault(FieldLabel_1).default; } });
|
|
12
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Field/Label/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Field/Label/index.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAqE;AAA5D,qHAAA,OAAO,OAAY;AAC5B,6CAA8E;AAArE,2HAAA,OAAO,OAAe;AAC/B,qDAA0F;AAAjF,mIAAA,OAAO,OAAmB;AACnC,2CAA2E;AAAlE,yHAAA,OAAO,OAAc"}
|
package/dist/cjs/Field/index.js
CHANGED
|
@@ -13,18 +13,21 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
16
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
20
|
exports.FieldLabelInfo = exports.FieldLink = exports.FieldRow = exports.FieldGroup = exports.FieldHint = exports.FieldError = exports.FieldDescription = exports.FieldProvider = exports.Field = void 0;
|
|
18
21
|
var Field_1 = require("./Field");
|
|
19
|
-
Object.defineProperty(exports, "Field", { enumerable: true, get: function () { return Field_1.default; } });
|
|
22
|
+
Object.defineProperty(exports, "Field", { enumerable: true, get: function () { return __importDefault(Field_1).default; } });
|
|
20
23
|
var FieldProvider_1 = require("./FieldProvider");
|
|
21
|
-
Object.defineProperty(exports, "FieldProvider", { enumerable: true, get: function () { return FieldProvider_1.default; } });
|
|
24
|
+
Object.defineProperty(exports, "FieldProvider", { enumerable: true, get: function () { return __importDefault(FieldProvider_1).default; } });
|
|
22
25
|
var FieldDescription_1 = require("./FieldDescription");
|
|
23
|
-
Object.defineProperty(exports, "FieldDescription", { enumerable: true, get: function () { return FieldDescription_1.default; } });
|
|
26
|
+
Object.defineProperty(exports, "FieldDescription", { enumerable: true, get: function () { return __importDefault(FieldDescription_1).default; } });
|
|
24
27
|
var FieldError_1 = require("./FieldError");
|
|
25
|
-
Object.defineProperty(exports, "FieldError", { enumerable: true, get: function () { return FieldError_1.default; } });
|
|
28
|
+
Object.defineProperty(exports, "FieldError", { enumerable: true, get: function () { return __importDefault(FieldError_1).default; } });
|
|
26
29
|
var FieldHint_1 = require("./FieldHint");
|
|
27
|
-
Object.defineProperty(exports, "FieldHint", { enumerable: true, get: function () { return FieldHint_1.default; } });
|
|
30
|
+
Object.defineProperty(exports, "FieldHint", { enumerable: true, get: function () { return __importDefault(FieldHint_1).default; } });
|
|
28
31
|
__exportStar(require("./FieldContext"), exports);
|
|
29
32
|
__exportStar(require("./Label"), exports);
|
|
30
33
|
var fuselage_1 = require("@rocket.chat/fuselage");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Field/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Field/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,iCAA4D;AAAnD,+GAAA,OAAO,OAAS;AACzB,iDAAoF;AAA3E,+HAAA,OAAO,OAAiB;AACjC,uDAA6F;AAApF,qIAAA,OAAO,OAAoB;AACpC,2CAA2E;AAAlE,yHAAA,OAAO,OAAc;AAC9B,yCAAwE;AAA/D,uHAAA,OAAO,OAAa;AAE7B,iDAA+B;AAE/B,0CAAwB;AAExB,kDAAwF;AAA/E,sGAAA,UAAU,OAAA;AAAE,oGAAA,QAAQ,OAAA;AAAE,qGAAA,SAAS,OAAA;AAAE,0GAAA,cAAc,OAAA"}
|
|
@@ -15,7 +15,11 @@ exports.UrlInput = (0, withLabelHelpers_1.withLabelId)(fuselage_1.UrlInput);
|
|
|
15
15
|
// with aria-labelledby
|
|
16
16
|
exports.Select = (0, withLabelHelpers_1.withAriaLabelledBy)(fuselage_1.Select);
|
|
17
17
|
// with aria-labelledby + id for aria-controls
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use `MultiSelectFiltered` instead, or `SelectFiltered` from
|
|
20
|
+
* `@rocket.chat/fuselage` for single selection.
|
|
21
|
+
*/
|
|
22
|
+
exports.AutoComplete = (0, withLabelHelpers_1.withAriaLabelledByAndId)(fuselage_1.AutoComplete);
|
|
19
23
|
exports.MultiSelect = (0, withLabelHelpers_1.withAriaLabelledByAndId)(fuselage_1.MultiSelect);
|
|
20
24
|
exports.MultiSelectFiltered = (0, withLabelHelpers_1.withAriaLabelledByAndId)(fuselage_1.MultiSelectFiltered);
|
|
21
25
|
exports.Slider = (0, withLabelHelpers_1.withAriaLabelledBy)(fuselage_1.Slider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WrappedInputComponents.js","sourceRoot":"","sources":["../../../src/Inputs/WrappedInputComponents.ts"],"names":[],"mappings":";;;AAAA,oDAgB+B;AAE/B,
|
|
1
|
+
{"version":3,"file":"WrappedInputComponents.js","sourceRoot":"","sources":["../../../src/Inputs/WrappedInputComponents.ts"],"names":[],"mappings":";;;AAAA,oDAgB+B;AAE/B,yDAAuH;AAEvH,uFAAuF;AAEvF,UAAU;AACG,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,WAAW,GAAG,IAAA,8BAAW,EAAC,sBAAoB,CAAC,CAAC;AAChD,QAAA,QAAQ,GAAG,IAAA,8BAAW,EAAC,mBAAiB,CAAC,CAAC;AAEvD,uBAAuB;AACV,QAAA,MAAM,GAAG,IAAA,qCAAkB,EAAC,iBAAe,CAAC,CAAC;AAE1D,8CAA8C;AAC9C;;;GAGG;AACU,QAAA,YAAY,GAAG,IAAA,0CAAuB,EAAC,uBAA0B,CAAiC,CAAC;AACnG,QAAA,WAAW,GAAG,IAAA,0CAAuB,EAAC,sBAAoB,CAAC,CAAC;AAC5D,QAAA,mBAAmB,GAAG,IAAA,0CAAuB,EAAC,8BAA4B,CAAC,CAAC;AAC5E,QAAA,MAAM,GAAG,IAAA,qCAAkB,EAAC,iBAAe,CAA2B,CAAC;AAEpF,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"}
|
|
@@ -6,41 +6,45 @@ exports.withAriaLabelledByAndId = withAriaLabelledByAndId;
|
|
|
6
6
|
exports.withVisuallyHiddenLabel = withVisuallyHiddenLabel;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
// Disabled this flag since we need to wrap multiple components
|
|
9
|
-
/*
|
|
9
|
+
/* oxlint-disable react/no-multi-comp */
|
|
10
10
|
const fuselage_hooks_1 = require("@rocket.chat/fuselage-hooks");
|
|
11
11
|
const react_aria_1 = require("react-aria");
|
|
12
12
|
const FieldContext_1 = require("../Field/FieldContext");
|
|
13
13
|
function withLabelId(Component) {
|
|
14
|
+
var _a, _b;
|
|
14
15
|
function WrappedComponent(props) {
|
|
15
16
|
const labelProps = (0, FieldContext_1.useFieldReferencedByInput)();
|
|
16
|
-
return (0, jsx_runtime_1.jsx)(Component, {
|
|
17
|
+
return (0, jsx_runtime_1.jsx)(Component, Object.assign({}, props, labelProps));
|
|
17
18
|
}
|
|
18
|
-
WrappedComponent.displayName = `withLabelId(${Component.displayName
|
|
19
|
+
WrappedComponent.displayName = `withLabelId(${(_b = (_a = Component.displayName) !== null && _a !== void 0 ? _a : Component.name) !== null && _b !== void 0 ? _b : 'InputComponent'})`;
|
|
19
20
|
return WrappedComponent;
|
|
20
21
|
}
|
|
21
22
|
function withAriaLabelledBy(Component) {
|
|
23
|
+
var _a, _b;
|
|
22
24
|
function WrappedComponent(props) {
|
|
23
25
|
const labelProps = (0, FieldContext_1.useFieldReferencedByLabel)();
|
|
24
|
-
return (0, jsx_runtime_1.jsx)(Component, {
|
|
26
|
+
return (0, jsx_runtime_1.jsx)(Component, Object.assign({}, props, labelProps));
|
|
25
27
|
}
|
|
26
|
-
WrappedComponent.displayName = `withAriaLabelledBy(${Component.displayName
|
|
28
|
+
WrappedComponent.displayName = `withAriaLabelledBy(${(_b = (_a = Component.displayName) !== null && _a !== void 0 ? _a : Component.name) !== null && _b !== void 0 ? _b : 'InputComponent'})`;
|
|
27
29
|
return WrappedComponent;
|
|
28
30
|
}
|
|
29
31
|
function withAriaLabelledByAndId(Component) {
|
|
32
|
+
var _a, _b;
|
|
30
33
|
function WrappedComponent(props) {
|
|
31
34
|
const labelProps = (0, FieldContext_1.useFieldReferencedByLabelWithId)();
|
|
32
|
-
return (0, jsx_runtime_1.jsx)(Component, {
|
|
35
|
+
return (0, jsx_runtime_1.jsx)(Component, Object.assign({}, props, labelProps));
|
|
33
36
|
}
|
|
34
|
-
WrappedComponent.displayName = `withAriaLabelledByAndId(${Component.displayName
|
|
37
|
+
WrappedComponent.displayName = `withAriaLabelledByAndId(${(_b = (_a = Component.displayName) !== null && _a !== void 0 ? _a : Component.name) !== null && _b !== void 0 ? _b : 'InputComponent'})`;
|
|
35
38
|
return WrappedComponent;
|
|
36
39
|
}
|
|
37
40
|
function withVisuallyHiddenLabel(Component) {
|
|
41
|
+
var _a, _b;
|
|
38
42
|
function WrappedComponent(props) {
|
|
39
43
|
const [label, labelProps, labelRef] = (0, FieldContext_1.useFieldWrappedByInputLabel)();
|
|
40
44
|
const mergedRef = (0, fuselage_hooks_1.useMergedRefs)(props.ref, labelRef);
|
|
41
|
-
return (
|
|
45
|
+
return (0, jsx_runtime_1.jsx)(Component, Object.assign({}, props, labelProps, { ref: mergedRef, labelChildren: (0, jsx_runtime_1.jsx)(react_aria_1.VisuallyHidden, { children: label }) }));
|
|
42
46
|
}
|
|
43
|
-
WrappedComponent.displayName = `withVisuallyHiddenLabel(${Component.displayName
|
|
47
|
+
WrappedComponent.displayName = `withVisuallyHiddenLabel(${(_b = (_a = Component.displayName) !== null && _a !== void 0 ? _a : Component.name) !== null && _b !== void 0 ? _b : 'InputComponent'})`;
|
|
44
48
|
return WrappedComponent;
|
|
45
49
|
}
|
|
46
50
|
//# sourceMappingURL=withLabelHelpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withLabelHelpers.js","sourceRoot":"","sources":["../../../src/Inputs/withLabelHelpers.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"withLabelHelpers.js","sourceRoot":"","sources":["../../../src/Inputs/withLabelHelpers.tsx"],"names":[],"mappings":";;QAkES,WAAW;QAAE,kBAAkB;QAAE,uBAAuB;QAAE,uBAAuB;;AAlE1F,+DAA+D;AAC/D,wCAAwC;AACxC,gEAA4D;AAE5D,2CAA4C;AAE5C,wDAK+B;AAI/B,SAAS,WAAW,CAAe,SAAoE;;IACtG,SAAS,gBAAgB,CAAC,KAAmC;QAC5D,MAAM,UAAU,GAAG,IAAA,wCAAyB,GAAE,CAAC;QAC/C,OAAO,uBAAC,SAAS,oBAAK,KAAK,EAAM,UAAU,EAAI,CAAC;IACjD,C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AAI,CAAC;IAC1H,CAAC;IAED,gBAAgB,CAAC,WAAW,GAAG,2BAA2B,YAAA,SAAS,CAAC,WAAW,mCAAI,SAAS,CAAC,IAAI,mCAAI,gBAAgB,GAAG,CAAC;IAEzH,OAAO,gBAAgB,CAAC;AACzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/Field/Field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,MAAM,MAAM,UAAU,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/Field/Field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,MAAM,MAAM,UAAU,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC;AAEzF,iBAAS,KAAK,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,+BAMhD;eAEc,KAAK"}
|
package/dist/esm/Field/Field.js
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
4
11
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return ((
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { Field as FieldComponent } from '@rocket.chat/fuselage';
|
|
14
|
+
import FieldProvider from './FieldProvider';
|
|
15
|
+
function Field(_a) {
|
|
16
|
+
var { children } = _a, props = __rest(_a, ["children"]);
|
|
17
|
+
return (_jsx(FieldProvider, { children: _jsx(FieldComponent, Object.assign({}, props, { children: children })) }));
|
|
11
18
|
}
|
|
12
|
-
|
|
19
|
+
export default Field;
|
|
13
20
|
//# sourceMappingURL=Field.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../src/Field/Field.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../src/Field/Field.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGhE,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,SAAS,KAAK,CAAC,EAAkC;QAAlC,EAAE,QAAQ,OAAwB,EAAnB,KAAK,cAApB,YAAsB,CAAF;IAClC,OAAO,CACN,KAAC,aAAa,cACb,KAAC,cAAc,oBAAK,KAAK,cAAG,QAAQ,IAAkB,GACvC,CAChB,CAAC;AACH,CAAC;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -8,7 +8,7 @@ export type FieldContextValue = {
|
|
|
8
8
|
fieldType: FieldType;
|
|
9
9
|
setFieldType: (fieldType: FieldType) => void;
|
|
10
10
|
emitAction: () => void;
|
|
11
|
-
onAction: (cb: () => void) => void;
|
|
11
|
+
onAction: (cb: () => void) => () => void;
|
|
12
12
|
};
|
|
13
13
|
export declare const FieldContext: import("react").Context<FieldContextValue>;
|
|
14
14
|
export type LabelTypes = 'hint' | 'description' | 'error' | 'placeholder';
|
|
@@ -16,25 +16,12 @@ export type FieldType = 'wrappedByLabel' | 'referencedByLabel' | 'referencedByIn
|
|
|
16
16
|
export declare const useFieldLabel: () => [RefCallback<HTMLElement>, string];
|
|
17
17
|
export declare const useFieldFieldType: () => FieldType;
|
|
18
18
|
export declare const useFieldDescriptorId: (type: LabelTypes) => string;
|
|
19
|
-
export declare const useFieldReferencedByInput: () => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
'aria-describedby': string;
|
|
23
|
-
};
|
|
24
|
-
export declare const useFieldReferencedByLabel: () => {
|
|
25
|
-
'aria-invalid': "true" | "false";
|
|
26
|
-
'aria-labelledby': string;
|
|
27
|
-
'aria-describedby': string;
|
|
28
|
-
};
|
|
29
|
-
export declare const useFieldReferencedByLabelWithId: () => {
|
|
30
|
-
'aria-invalid': "true" | "false";
|
|
31
|
-
id: string;
|
|
32
|
-
'aria-labelledby': string;
|
|
33
|
-
'aria-describedby': string;
|
|
34
|
-
};
|
|
19
|
+
export declare const useFieldReferencedByInput: () => {};
|
|
20
|
+
export declare const useFieldReferencedByLabel: () => {};
|
|
21
|
+
export declare const useFieldReferencedByLabelWithId: () => {};
|
|
35
22
|
export declare const useFieldWrappedByInputLabel: () => [ReactNode, {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
'aria-describedby'?: string;
|
|
24
|
+
'id'?: string;
|
|
25
|
+
'aria-invalid'?: 'true' | 'false';
|
|
39
26
|
}, RefCallback<HTMLElement>];
|
|
40
27
|
//# sourceMappingURL=FieldContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldContext.d.ts","sourceRoot":"","sources":["../../../src/Field/FieldContext.ts"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B,UAmB3C,CAAC;AAGF,eAAO,MAAM,2BAA2B,QAAO,CAC9C,SAAS,EACT;IACC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAClC,EACD,WAAW,CAAC,WAAW,CAAC,CAsCxB,CAAC"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.FieldContext = (0, react_1.createContext)({
|
|
7
|
-
setDescriptor: () => { },
|
|
8
|
-
setLabel: () => { },
|
|
1
|
+
import { useSafeRefCallback } from '@rocket.chat/fuselage-hooks';
|
|
2
|
+
import { createContext, useCallback, useContext, useEffect, useMemo } from 'react';
|
|
3
|
+
export const FieldContext = createContext({
|
|
4
|
+
setDescriptor: () => undefined,
|
|
5
|
+
setLabel: () => undefined,
|
|
9
6
|
descriptors: new Set(),
|
|
10
7
|
label: null,
|
|
11
8
|
id: '',
|
|
12
9
|
fieldType: 'referencedByLabel',
|
|
13
|
-
setFieldType: () =>
|
|
14
|
-
emitAction: () =>
|
|
15
|
-
onAction: () =>
|
|
10
|
+
setFieldType: () => undefined,
|
|
11
|
+
emitAction: () => undefined,
|
|
12
|
+
onAction: () => () => undefined,
|
|
16
13
|
});
|
|
17
14
|
const getTextFromNode = (node) => {
|
|
18
15
|
if (!node.textContent) {
|
|
@@ -25,34 +22,36 @@ const getTextFromNode = (node) => {
|
|
|
25
22
|
}
|
|
26
23
|
return text.join(' ');
|
|
27
24
|
};
|
|
28
|
-
const useFieldLabel = () => {
|
|
29
|
-
const { setLabel, id, emitAction } =
|
|
30
|
-
const setLabelRef =
|
|
25
|
+
export const useFieldLabel = () => {
|
|
26
|
+
const { setLabel, id, emitAction } = useContext(FieldContext);
|
|
27
|
+
const setLabelRef = useSafeRefCallback(useCallback((node) => {
|
|
31
28
|
if (!node) {
|
|
32
29
|
return;
|
|
33
30
|
}
|
|
34
31
|
setLabel(getTextFromNode(node));
|
|
32
|
+
const observer = new MutationObserver(() => setLabel(getTextFromNode(node)));
|
|
33
|
+
observer.observe(node, { childList: true, characterData: true, subtree: true });
|
|
35
34
|
const onClick = () => emitAction();
|
|
36
35
|
node.addEventListener('click', onClick);
|
|
37
|
-
return () =>
|
|
36
|
+
return () => {
|
|
37
|
+
observer.disconnect();
|
|
38
|
+
node.removeEventListener('click', onClick);
|
|
39
|
+
};
|
|
38
40
|
}, [setLabel, emitAction]));
|
|
39
41
|
return [setLabelRef, `${id}-label`];
|
|
40
42
|
};
|
|
41
|
-
|
|
42
|
-
const
|
|
43
|
-
const { fieldType } = (0, react_1.useContext)(exports.FieldContext);
|
|
43
|
+
export const useFieldFieldType = () => {
|
|
44
|
+
const { fieldType } = useContext(FieldContext);
|
|
44
45
|
return fieldType;
|
|
45
46
|
};
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
(0, react_1.useEffect)(() => {
|
|
47
|
+
export const useFieldDescriptorId = (type) => {
|
|
48
|
+
const { setDescriptor, id } = useContext(FieldContext);
|
|
49
|
+
useEffect(() => {
|
|
50
50
|
setDescriptor(type);
|
|
51
51
|
return () => setDescriptor(type, true);
|
|
52
52
|
}, [type, setDescriptor]);
|
|
53
53
|
return `${id}-${type}`;
|
|
54
54
|
};
|
|
55
|
-
exports.useFieldDescriptorId = useFieldDescriptorId;
|
|
56
55
|
const describedByOrder = ['description', 'error', 'hint'];
|
|
57
56
|
const getDescribedBy = (descriptors, id) => {
|
|
58
57
|
return describedByOrder
|
|
@@ -62,8 +61,9 @@ const getDescribedBy = (descriptors, id) => {
|
|
|
62
61
|
.filter(Boolean)
|
|
63
62
|
.join(' ');
|
|
64
63
|
};
|
|
65
|
-
const getInputId = (id
|
|
66
|
-
|
|
64
|
+
const getInputId = (id) => `${id}-label`;
|
|
65
|
+
const getLabelledBy = (id, descriptors) => {
|
|
66
|
+
return `${getInputId(id)}${descriptors.has('placeholder') ? ` ${id}-placeholder` : ''}`;
|
|
67
67
|
};
|
|
68
68
|
const getAriaInvalid = (descriptors) => {
|
|
69
69
|
if (descriptors.has('error')) {
|
|
@@ -72,69 +72,64 @@ const getAriaInvalid = (descriptors) => {
|
|
|
72
72
|
return { 'aria-invalid': 'false' };
|
|
73
73
|
};
|
|
74
74
|
// Input has id and label is htmlFor
|
|
75
|
-
const useFieldReferencedByInput = () => {
|
|
76
|
-
const { id, descriptors, setFieldType } =
|
|
77
|
-
|
|
75
|
+
export const useFieldReferencedByInput = () => {
|
|
76
|
+
const { id, descriptors, setFieldType } = useContext(FieldContext);
|
|
77
|
+
useEffect(() => {
|
|
78
78
|
setFieldType('referencedByInput');
|
|
79
79
|
}, [setFieldType]);
|
|
80
|
-
return
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
return useMemo(() => {
|
|
81
|
+
if (!id) {
|
|
82
|
+
return {};
|
|
83
|
+
}
|
|
84
|
+
return Object.assign({ 'id': getInputId(id), 'aria-describedby': getDescribedBy(descriptors, id) }, getAriaInvalid(descriptors));
|
|
85
|
+
}, [descriptors, id]);
|
|
85
86
|
};
|
|
86
|
-
exports.useFieldReferencedByInput = useFieldReferencedByInput;
|
|
87
87
|
// label has id and input is aria-labelledby
|
|
88
|
-
const useFieldReferencedByLabel = () => {
|
|
89
|
-
const { id, descriptors, setFieldType } =
|
|
90
|
-
|
|
88
|
+
export const useFieldReferencedByLabel = () => {
|
|
89
|
+
const { id, descriptors, setFieldType } = useContext(FieldContext);
|
|
90
|
+
useEffect(() => {
|
|
91
91
|
setFieldType('referencedByLabel');
|
|
92
92
|
}, [setFieldType]);
|
|
93
|
-
return
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
93
|
+
return useMemo(() => {
|
|
94
|
+
if (!id) {
|
|
95
|
+
return {};
|
|
96
|
+
}
|
|
97
|
+
return Object.assign({ 'aria-labelledby': getLabelledBy(id, descriptors), 'aria-describedby': getDescribedBy(descriptors, id) }, getAriaInvalid(descriptors));
|
|
98
|
+
}, [descriptors, id]);
|
|
98
99
|
};
|
|
99
|
-
exports.useFieldReferencedByLabel = useFieldReferencedByLabel;
|
|
100
100
|
// label has id and input is aria-labelledby + has id for aria-controls
|
|
101
|
-
const useFieldReferencedByLabelWithId = () => {
|
|
102
|
-
const { id, descriptors, setFieldType } =
|
|
103
|
-
|
|
101
|
+
export const useFieldReferencedByLabelWithId = () => {
|
|
102
|
+
const { id, descriptors, setFieldType } = useContext(FieldContext);
|
|
103
|
+
useEffect(() => {
|
|
104
104
|
setFieldType('referencedByLabel');
|
|
105
105
|
}, [setFieldType]);
|
|
106
|
-
return
|
|
107
|
-
id
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
106
|
+
return useMemo(() => {
|
|
107
|
+
if (!id) {
|
|
108
|
+
return {};
|
|
109
|
+
}
|
|
110
|
+
return Object.assign({ id, 'aria-labelledby': getLabelledBy(id, descriptors), 'aria-describedby': getDescribedBy(descriptors, id) }, getAriaInvalid(descriptors));
|
|
111
|
+
}, [descriptors, id]);
|
|
112
112
|
};
|
|
113
|
-
exports.useFieldReferencedByLabelWithId = useFieldReferencedByLabelWithId;
|
|
114
113
|
// label is rendered visually hidden inside the inputs wrapper label
|
|
115
|
-
const useFieldWrappedByInputLabel = () => {
|
|
116
|
-
const { id, label, descriptors, setFieldType, onAction } =
|
|
117
|
-
|
|
114
|
+
export const useFieldWrappedByInputLabel = () => {
|
|
115
|
+
const { id, label, descriptors, setFieldType, onAction } = useContext(FieldContext);
|
|
116
|
+
useEffect(() => {
|
|
118
117
|
setFieldType('wrappedByLabel');
|
|
119
118
|
}, [setFieldType]);
|
|
120
|
-
const refCallback =
|
|
119
|
+
const refCallback = useSafeRefCallback(useCallback((node) => {
|
|
121
120
|
if (!node) {
|
|
122
121
|
return;
|
|
123
122
|
}
|
|
124
|
-
onAction(() => {
|
|
123
|
+
return onAction(() => {
|
|
125
124
|
node.focus();
|
|
126
125
|
node.click();
|
|
127
126
|
});
|
|
128
127
|
}, [onAction]));
|
|
129
|
-
return
|
|
128
|
+
return useMemo(() => [
|
|
130
129
|
label,
|
|
131
|
-
|
|
132
|
-
'aria-describedby': getDescribedBy(descriptors, id),
|
|
133
|
-
'id': getInputId(id, descriptors),
|
|
134
|
-
...getAriaInvalid(descriptors),
|
|
135
|
-
},
|
|
130
|
+
id
|
|
131
|
+
? Object.assign({ 'aria-describedby': getDescribedBy(descriptors, id), 'id': getInputId(id) }, getAriaInvalid(descriptors)) : {},
|
|
136
132
|
refCallback,
|
|
137
133
|
], [label, descriptors, id, refCallback]);
|
|
138
134
|
};
|
|
139
|
-
exports.useFieldWrappedByInputLabel = useFieldWrappedByInputLabel;
|
|
140
135
|
//# sourceMappingURL=FieldContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldContext.js","sourceRoot":"","sources":["../../../src/Field/FieldContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FieldContext.js","sourceRoot":"","sources":["../../../src/Field/FieldContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAcnF,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAoB;IAC5D,aAAa,EAAE,GAAG,EAAE,CAAC,SAAS;IAC9B,QAAQ,EAAE,GAAG,EAAE,CAAC,SAAS;IACzB,WAAW,EAAE,IAAI,GAAG,EAAE;IACtB,KAAK,EAAE,IAAI;IACX,EAAE,EAAE,EAAE;IACN,SAAS,EAAE,mBAAmB;IAC9B,YAAY,EAAE,GAAG,EAAE,CAAC,SAAS;IAC7B,UAAU,EAAE,GAAG,EAAE,CAAC,SAAS;IAC3B,QAAQ,EAAE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E,SAAS,CAAA;CAAE,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"FieldDescription.d.ts","sourceRoot":"","sources":["../../../src/Field/FieldDescription.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAIvD,MAAM,MAAM,qBAAqB,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,cAAc,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE/G,QAAA,MAAM,gBAAgB,2BAA4B,qBAAqB,gCAQtE,CAAC;eAEa,gBAAgB"}
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
9
11
|
};
|
|
10
|
-
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { FieldDescription as FieldDescriptionComponent } from '@rocket.chat/fuselage';
|
|
14
|
+
import { useFieldDescriptorId } from './FieldContext';
|
|
15
|
+
const FieldDescription = (_a) => {
|
|
16
|
+
var { children } = _a, props = __rest(_a, ["children"]);
|
|
17
|
+
const id = useFieldDescriptorId('description');
|
|
18
|
+
return (_jsx(FieldDescriptionComponent, Object.assign({}, props, { id: id, children: children })));
|
|
19
|
+
};
|
|
20
|
+
export default FieldDescription;
|
|
11
21
|
//# sourceMappingURL=FieldDescription.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldDescription.js","sourceRoot":"","sources":["../../../src/Field/FieldDescription.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FieldDescription.js","sourceRoot":"","sources":["../../../src/Field/FieldDescription.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,gBAAgB,IAAI,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAGtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAItD,MAAM,gBAAgB,GAAG,CAAC,EAA6C,EAAE,EAAE;QAAjD,EAAE,QAAQ,OAAmC,EAA9B,KAAK,cAApB,YAAsB,CAAF;IAC7C,MAAM,EAAE,GAAG,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAE/C,OAAO,CACN,KAAC,yBAAyB,oBAAK,KAAK,IAAE,EAAE,EAAE,EAAE,YAC1C,QAAQ,IACkB,CAC5B,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldError.d.ts","sourceRoot":"","sources":["../../../src/Field/FieldError.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAIvD,MAAM,MAAM,eAAe,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"FieldError.d.ts","sourceRoot":"","sources":["../../../src/Field/FieldError.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAIvD,MAAM,MAAM,eAAe,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,cAAc,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEnG,QAAA,MAAM,UAAU,2BAA4B,eAAe,gCAO1D,CAAC;eAEa,UAAU"}
|