nexaas-ui-components 1.0.77 → 1.0.78
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/index.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -501,7 +501,7 @@ var Input = ({
|
|
|
501
501
|
const hasError = fieldValidationMessages.some((item) => item !== void 0);
|
|
502
502
|
const [showPassword, setShowPassword] = React5__namespace.default.useState(false);
|
|
503
503
|
const styles = {
|
|
504
|
-
input: `text-p-md pl-2 peer text-paragraph bg-surface shadow-input border border-[0.5px] rounded-lg outline-none block pb-[10px] h-[46px] w-full disabled:bg-
|
|
504
|
+
input: `text-p-md pl-2 peer text-paragraph bg-surface shadow-input border border-[0.5px] rounded-lg outline-none block pb-[10px] h-[46px] w-full disabled:bg-[var(--input-bg-disabled)] disabled:border-[var(--input-border-disabled)] disabled:text-disabled disabled:cursor-not-allowed focus-visible:ring-[1.5px] focus-visible:ring-blue-500 focus-visible:ring-offset-[2px] focus-visible:rounded-[2px] ${label ? "pt-[22px]" : "pt-[10px]"}
|
|
505
505
|
${!hasError ? "border-neutral-300" : ""}`,
|
|
506
506
|
icon: `absolute bg-neutral-100 h-[44px] top-[1px] left-[1.5px] w-[38px] rounded-l-lg text-[20px] ${hasError ? "text-dangerous-500" : "text-label peer-focus:text-blue-500"} peer-focus:border-blue-500`,
|
|
507
507
|
rightIcon: "absolute h-[44px] top-[1px] right-[1.5px] w-[38px] text-[22px]",
|
|
@@ -1703,6 +1703,7 @@ var FilterOptions = ({
|
|
|
1703
1703
|
subFilters = [],
|
|
1704
1704
|
emptyMessage,
|
|
1705
1705
|
initialMessage,
|
|
1706
|
+
initialMessageClassName,
|
|
1706
1707
|
applyOnClick = false,
|
|
1707
1708
|
showFilter = false,
|
|
1708
1709
|
renderOption,
|
|
@@ -1991,7 +1992,7 @@ var FilterOptions = ({
|
|
|
1991
1992
|
"Carregando"
|
|
1992
1993
|
] }),
|
|
1993
1994
|
(data == null ? void 0 : data.length) === 0 && (filter == null ? void 0 : filter.length) > 0 && !loading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "py-4", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-label text-p-md", children: emptyMessage }) }),
|
|
1994
|
-
initialMessage && (data == null ? void 0 : data.length) === 0 && (filter == null ? void 0 : filter.length) === 0 && !loading && (options == null ? void 0 : options.length) === 0 && !(currentValue == null ? void 0 : currentValue.id) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "py-4", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-label text-p-md", children: initialMessage }) }),
|
|
1995
|
+
initialMessage && (data == null ? void 0 : data.length) === 0 && (filter == null ? void 0 : filter.length) === 0 && !loading && (options == null ? void 0 : options.length) === 0 && !(currentValue == null ? void 0 : currentValue.id) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx9__default.default("py-4", initialMessageClassName), children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-label text-p-md", children: initialMessage }) }),
|
|
1995
1996
|
initialMessage && currentValue && (currentValue == null ? void 0 : currentValue.id) && (filter == null ? void 0 : filter.length) === 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "py-2", children: isMulti ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: currentValue == null ? void 0 : currentValue.map((option) => {
|
|
1996
1997
|
let isSelected = isMulti ? currentValue && (currentValue == null ? void 0 : currentValue.length) > 0 && (currentValue == null ? void 0 : currentValue.some(
|
|
1997
1998
|
(e) => e.id === option.id
|
|
@@ -3257,20 +3258,21 @@ var customStyles2 = {
|
|
|
3257
3258
|
}),
|
|
3258
3259
|
placeholder: (provided, state) => ({
|
|
3259
3260
|
...provided,
|
|
3260
|
-
paddingLeft: state.selectProps.hasIcon ? "34px" : "0px"
|
|
3261
|
+
paddingLeft: state.selectProps.hasIcon ? "34px" : "0px",
|
|
3262
|
+
color: state.isDisabled ? "var(--input-placeholder-disabled)" : "var(--label)"
|
|
3261
3263
|
}),
|
|
3262
3264
|
control: (provided, state) => ({
|
|
3263
3265
|
...provided,
|
|
3264
3266
|
cursor: "pointer",
|
|
3265
|
-
border: state.selectProps.hasError ? "1px solid var(--dangerous-700)" : state.menuIsOpen ? "1px solid var(--blue-700)" : "1px solid var(--neutral-300)",
|
|
3267
|
+
border: state.isDisabled ? "0.5px solid var(--input-border-disabled)" : state.selectProps.hasError ? "1px solid var(--dangerous-700)" : state.menuIsOpen ? "1px solid var(--blue-700)" : "1px solid var(--neutral-300)",
|
|
3266
3268
|
boxShadow: state.isFocused ? "0 0 0 2px var(--surface), 0 0 0 3.5px var(--blue-500)" : "none",
|
|
3267
3269
|
outline: "none",
|
|
3268
3270
|
borderRadius: state.isFocused ? "2px" : "0.5rem",
|
|
3269
3271
|
placeholder: " ",
|
|
3270
3272
|
height: "46px",
|
|
3271
|
-
backgroundColor: state.isDisabled ? "var(--
|
|
3273
|
+
backgroundColor: state.isDisabled ? "var(--input-bg-disabled)" : "var(--surface)",
|
|
3272
3274
|
":hover": {
|
|
3273
|
-
border: state.selectProps.hasError ? "1px solid var(--dangerous-700)" : state.menuIsOpen ? "1px solid var(--blue-700)" : "1px solid var(--neutral-300)"
|
|
3275
|
+
border: state.isDisabled ? "0.5px solid var(--input-border-disabled)" : state.selectProps.hasError ? "1px solid var(--dangerous-700)" : state.menuIsOpen ? "1px solid var(--blue-700)" : "1px solid var(--neutral-300)"
|
|
3274
3276
|
}
|
|
3275
3277
|
}),
|
|
3276
3278
|
multiValue: (provided) => ({
|