nexaas-ui-components 1.0.30 → 1.0.32
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 +19 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +19 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -99,7 +99,7 @@ var variants = {
|
|
|
99
99
|
text: "bg-gradient-to-b from-[#FF4D8B] to-[#DA3063] text-white shadow-[0_2px_6px_0_rgba(218,48,99,0.25)] hover:from-[#ff4d84] hover:to-[#df4573] active:from-[#ae264f] active:to-[#ae264f] disabled:opacity-50 disabled:shadow-none active:shadow-none disabled:hover:from-[#FF4D8B] disabled:hover:to-[#DA3063]"
|
|
100
100
|
},
|
|
101
101
|
secondary: {
|
|
102
|
-
text: "shadow-button bg-surface border-[0.5px] border-neutral-
|
|
102
|
+
text: "shadow-button bg-surface border-[0.5px] border-neutral-300 text-neutral-500 hover:bg-neutral-100 hover:text-neutral-600 active:text-neutral-600 active:shadow-none disabled:text-neutral-400 disabled:opacity-50"
|
|
103
103
|
},
|
|
104
104
|
icon: {
|
|
105
105
|
text: "shadow-button gap-1 bg-white border-[0.5px] border-neutral-300 text-neutral-500 hover:bg-[#f5f5f5] hover:text-neutral-600 active:bg-neutral-100 active:text-neutral-600 disabled:text-neutral-400 disabled:border-[0.5px] disabled:border-disabled disabled:bg-white disabled:opacity-50 active:shadow-none"
|
|
@@ -129,7 +129,7 @@ var variants = {
|
|
|
129
129
|
text: "bg-white text-rose-500 hover:shadow-button hover:text-rose-600 active:bg-rose-500 active:text-white disabled:text-neutral-400 disabled:border-disabled disabled:bg-white disabled:opacity-50 active:shadow-none"
|
|
130
130
|
},
|
|
131
131
|
dangerLight: {
|
|
132
|
-
text: "active:shadow-none shadow-red-sm text-
|
|
132
|
+
text: "active:shadow-none shadow-red-sm text-danger-500 font-bold bg-white border-[0.5px] border-danger-500 hover:bg-dangerous-100 active:bg-danger-500 active:text-white disabled:opacity-50 disabled:bg-white disabled:text-danger-500"
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
135
|
var paddingConfig = {
|
|
@@ -198,7 +198,14 @@ var Button = ({
|
|
|
198
198
|
"flex-row items-center": hotkeyPosition === "left" || hotkeyPosition === "right"
|
|
199
199
|
}),
|
|
200
200
|
children: [
|
|
201
|
-
hotkey && (hotkeyPosition === "top" || hotkeyPosition === "left") && /* @__PURE__ */ jsxRuntime.jsx(
|
|
201
|
+
hotkey && (hotkeyPosition === "top" || hotkeyPosition === "left") && /* @__PURE__ */ jsxRuntime.jsx(
|
|
202
|
+
"span",
|
|
203
|
+
{
|
|
204
|
+
style: { color: "var(--label)" },
|
|
205
|
+
className: "text-p-sm font-normal",
|
|
206
|
+
children: hotkeyLabel
|
|
207
|
+
}
|
|
208
|
+
),
|
|
202
209
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
203
210
|
"button",
|
|
204
211
|
{
|
|
@@ -223,6 +230,10 @@ var Button = ({
|
|
|
223
230
|
}
|
|
224
231
|
),
|
|
225
232
|
props.children,
|
|
233
|
+
hotkey && hotkeyPosition === "inside" && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: " font-normal", children: [
|
|
234
|
+
"- ",
|
|
235
|
+
hotkeyLabel
|
|
236
|
+
] }),
|
|
226
237
|
props.dropdown && /* @__PURE__ */ jsxRuntime.jsx("i", { className: "uil uil-angle-down text-[18px]" })
|
|
227
238
|
] })
|
|
228
239
|
}
|
|
@@ -2824,7 +2835,7 @@ var SelectField = ({
|
|
|
2824
2835
|
] }) });
|
|
2825
2836
|
};
|
|
2826
2837
|
const IconOption = (props) => {
|
|
2827
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Option, { ...props, children: optionStyle ? optionStyle(props == null ? void 0 : props.data) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2838
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Option, { ...props, children: optionStyle ? optionStyle(props == null ? void 0 : props.data, props.isSelected) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2828
2839
|
"div",
|
|
2829
2840
|
{
|
|
2830
2841
|
style: {
|
|
@@ -2867,15 +2878,15 @@ var SelectField = ({
|
|
|
2867
2878
|
}
|
|
2868
2879
|
};
|
|
2869
2880
|
const NoOptionsMessage = (props) => {
|
|
2870
|
-
var _a2;
|
|
2881
|
+
var _a2, _b;
|
|
2871
2882
|
if (props.selectProps.inputValue.length == 0 && debounce2 > 0 || debounce2 > 0 && props.selectProps.inputValue.length < debounce2) {
|
|
2872
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "
|
|
2883
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-2 text-dark-blue-300", children: [
|
|
2873
2884
|
"Digite ",
|
|
2874
2885
|
debounce2,
|
|
2875
2886
|
" ou mais caracteres para pesquisar"
|
|
2876
2887
|
] });
|
|
2877
|
-
} else if (props.selectProps.inputValue.length > 0 && ((_a2 = props == null ? void 0 : props.options) == null ? void 0 : _a2.length) == 0) {
|
|
2878
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "
|
|
2888
|
+
} else if ((props.selectProps.inputValue.length > 0 && isSearchable || !isSearchable || isSearchable && ((_a2 = props == null ? void 0 : props.options) == null ? void 0 : _a2.length) == 0) && ((_b = props == null ? void 0 : props.options) == null ? void 0 : _b.length) == 0) {
|
|
2889
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-2 text-dark-blue-300", children: emptyMessage || "Sem opc\u0327o\u0303es disponi\u0301veis" });
|
|
2879
2890
|
}
|
|
2880
2891
|
};
|
|
2881
2892
|
const DropdownIndicatorCustom = (props) => {
|