@gustavo-valsechi/client 1.4.362 → 1.4.364
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/src/components/types/form/types/select/options/index.js +0 -1
- package/dist/src/components/types/form/types/select/options/index.mjs +0 -1
- package/dist/src/components/types/form/types/select/options/option/index.d.ts +1 -1
- package/dist/src/components/types/form/types/select/options/option/index.js +2 -0
- package/dist/src/components/types/form/types/select/options/option/index.mjs +2 -0
- package/dist/src/components/types/form/types/select/options/option/styles.js +1 -0
- package/dist/src/components/types/form/types/select/options/option/styles.mjs +1 -0
- package/package.json +1 -1
|
@@ -56,7 +56,6 @@ function InputSelectOptions(props) {
|
|
|
56
56
|
const normalize = (text2) => import_lodash.default.deburr(text2 == null ? void 0 : text2.toLowerCase());
|
|
57
57
|
if (import_lodash.default.isString(value)) return import_lodash.default.includes(normalize(value), normalize(filter));
|
|
58
58
|
const text = import_utils.default.format.textIntoElement((0, import_option.default)({ content: value }));
|
|
59
|
-
console.log(text);
|
|
60
59
|
return import_lodash.default.includes(normalize(text), normalize(filter));
|
|
61
60
|
});
|
|
62
61
|
const filtredOptions = {};
|
|
@@ -23,7 +23,6 @@ function InputSelectOptions(props) {
|
|
|
23
23
|
const normalize = (text2) => _.deburr(text2 == null ? void 0 : text2.toLowerCase());
|
|
24
24
|
if (_.isString(value)) return _.includes(normalize(value), normalize(filter));
|
|
25
25
|
const text = Utils.format.textIntoElement(InputSelectOption({ content: value }));
|
|
26
|
-
console.log(text);
|
|
27
26
|
return _.includes(normalize(text), normalize(filter));
|
|
28
27
|
});
|
|
29
28
|
const filtredOptions = {};
|
|
@@ -34,6 +34,7 @@ __export(option_exports, {
|
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(option_exports);
|
|
36
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
+
var import_react = __toESM(require("react"));
|
|
37
38
|
var import_styles = require("./styles");
|
|
38
39
|
var import_lodash = __toESM(require("lodash"));
|
|
39
40
|
function InputSelectOption(props) {
|
|
@@ -48,5 +49,6 @@ function InputSelectOption(props) {
|
|
|
48
49
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "select-option-label-container", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "select-option-label", children: (_h = props.content) == null ? void 0 : _h.label }) })
|
|
49
50
|
] });
|
|
50
51
|
}
|
|
52
|
+
if (!import_react.default.isValidElement(props.content) && !(props.content instanceof HTMLElement)) return "";
|
|
51
53
|
return props.content || "";
|
|
52
54
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import React from "react";
|
|
4
5
|
import { Container } from "./styles";
|
|
5
6
|
import _ from "lodash";
|
|
6
7
|
function InputSelectOption(props) {
|
|
@@ -15,6 +16,7 @@ function InputSelectOption(props) {
|
|
|
15
16
|
/* @__PURE__ */ jsx("div", { className: "select-option-label-container", children: /* @__PURE__ */ jsx("div", { className: "select-option-label", children: (_h = props.content) == null ? void 0 : _h.label }) })
|
|
16
17
|
] });
|
|
17
18
|
}
|
|
19
|
+
if (!React.isValidElement(props.content) && !(props.content instanceof HTMLElement)) return "";
|
|
18
20
|
return props.content || "";
|
|
19
21
|
}
|
|
20
22
|
export {
|