@rocket.chat/fuselage 0.6.3-dev.418 → 0.6.3-dev.419
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/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/SelectFiltered.d.ts +2 -2
- package/dist/components/Select/SelectFiltered.d.ts.map +1 -1
- package/dist/fuselage.development.js +10 -10
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +1 -1
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAMZ,cAAc,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAoB,GAAG,EAAsB,MAAM,QAAQ,CAAC;AAKnE,oBAAY,aAAa,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;AAEnE,oBAAY,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,UAAU,CAAC,GAAG;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACpD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,KAAK,4GAEjB,CAAC;AAMF,eAAO,MAAM,KAAK,4GAYjB,CAAC;AAiBF,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAMZ,cAAc,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAoB,GAAG,EAAsB,MAAM,QAAQ,CAAC;AAKnE,oBAAY,aAAa,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;AAEnE,oBAAY,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,UAAU,CAAC,GAAG;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACpD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,KAAK,4GAEjB,CAAC;AAMF,eAAO,MAAM,KAAK,4GAYjB,CAAC;AAiBF,eAAO,MAAM,MAAM,sHAmJlB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentProps
|
|
1
|
+
import React, { ComponentProps } from 'react';
|
|
2
2
|
import { Select } from '.';
|
|
3
3
|
export declare type SelectFilteredProps = Omit<ComponentProps<typeof Select>, 'onChange'>;
|
|
4
|
-
export declare const SelectFiltered:
|
|
4
|
+
export declare const SelectFiltered: React.ForwardRefExoticComponent<Pick<SelectFilteredProps, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
|
|
5
5
|
//# sourceMappingURL=SelectFiltered.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectFiltered.d.ts","sourceRoot":"","sources":["../../../src/components/Select/SelectFiltered.tsx"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"SelectFiltered.d.ts","sourceRoot":"","sources":["../../../src/components/Select/SelectFiltered.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EACZ,cAAc,EAIf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAG3B,oBAAY,mBAAmB,GAAG,IAAI,CACpC,cAAc,CAAC,OAAO,MAAM,CAAC,EAC7B,UAAU,CACX,CAAC;AAEF,eAAO,MAAM,cAAc,8HAmC1B,CAAC"}
|
|
@@ -15070,13 +15070,11 @@ var useDidUpdate = function (func, deps) {
|
|
|
15070
15070
|
};
|
|
15071
15071
|
var Select = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_a, ref) {
|
|
15072
15072
|
var value = _a.value, filter = _a.filter, error = _a.error, disabled = _a.disabled, _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.anchor, Anchor = _c === void 0 ? Focus : _c, _d = _a.onChange, onChange = _d === void 0 ? function () { } : _d, _e = _a.getValue, getValue = _e === void 0 ? function (_a) {
|
|
15073
|
-
var _b = __read(
|
|
15073
|
+
var _b = _a === void 0 ? [] : _a, _c = __read(_b, 1), value = _c[0];
|
|
15074
15074
|
return value;
|
|
15075
|
-
} : _e, _f = _a.getLabel, getLabel = _f === void 0 ? function (
|
|
15076
|
-
|
|
15077
|
-
|
|
15078
|
-
}
|
|
15079
|
-
return '';
|
|
15075
|
+
} : _e, _f = _a.getLabel, getLabel = _f === void 0 ? function (_a) {
|
|
15076
|
+
var _b = _a === void 0 ? ['', ''] : _a, _c = __read(_b, 2), _ = _c[0], label = _c[1];
|
|
15077
|
+
return label;
|
|
15080
15078
|
} : _f, _g = _a.placeholder, placeholder = _g === void 0 ? '' : _g, _h = _a.renderOptions, _Options = _h === void 0 ? _Options__WEBPACK_IMPORTED_MODULE_4__.Options : _h, props = __rest(_a, ["value", "filter", "error", "disabled", "options", "anchor", "onChange", "getValue", "getLabel", "placeholder", "renderOptions"]);
|
|
15081
15079
|
var _j = __read((0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(value), 2), internalValue = _j[0], setInternalValue = _j[1];
|
|
15082
15080
|
var currentValue = value !== undefined ? value : internalValue;
|
|
@@ -15197,15 +15195,17 @@ var __read = (undefined && undefined.__read) || function (o, n) {
|
|
|
15197
15195
|
|
|
15198
15196
|
|
|
15199
15197
|
|
|
15200
|
-
var SelectFiltered = function (_a) {
|
|
15198
|
+
var SelectFiltered = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_a, ref) {
|
|
15201
15199
|
var options = _a.options, placeholder = _a.placeholder, props = __rest(_a, ["options", "placeholder"]);
|
|
15202
15200
|
var _b = __read((0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(''), 2), filter = _b[0], setFilter = _b[1];
|
|
15203
15201
|
var anchor = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_a, ref) {
|
|
15204
15202
|
var children = _a.children, filter = _a.filter, props = __rest(_a, ["children", "filter"]);
|
|
15205
|
-
return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_3__.InputBox.Input, __assign({ mi: 'x4', flexGrow: 1, className: 'rcx-select__focus', ref: ref, placeholder: placeholder, value: filter, onChange: (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function (e) {
|
|
15203
|
+
return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_InputBox__WEBPACK_IMPORTED_MODULE_3__.InputBox.Input, __assign({ mi: 'x4', flexGrow: 1, className: 'rcx-select__focus', ref: ref, placeholder: placeholder, value: filter, onChange: (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function (e) {
|
|
15204
|
+
return setFilter(e.currentTarget.value);
|
|
15205
|
+
}) }, props, { "rcx-input-box--undecorated": true })));
|
|
15206
15206
|
}), []);
|
|
15207
|
-
return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(___WEBPACK_IMPORTED_MODULE_2__.Select, __assign({ placeholder: null, filter: filter, options: options }, props, { anchor: anchor })));
|
|
15208
|
-
};
|
|
15207
|
+
return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(___WEBPACK_IMPORTED_MODULE_2__.Select, __assign({ ref: ref, placeholder: null, filter: filter, options: options }, props, { anchor: anchor })));
|
|
15208
|
+
});
|
|
15209
15209
|
|
|
15210
15210
|
|
|
15211
15211
|
/***/ }),
|