@apexcura/ui-components 0.0.14-Beta224 → 0.0.14-Beta226
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.js +6 -7
- package/dist/index.mjs +6 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -384,18 +384,17 @@ var MultipleSelectElement = (props) => {
|
|
|
384
384
|
// src/Components/Button.tsx
|
|
385
385
|
var import_react11 = __toESM(require("react"));
|
|
386
386
|
var ButtonElement = (props) => {
|
|
387
|
-
const textColorClass = props.className?.match(/text-[\w-]+/g)?.[0] === "text-white"
|
|
387
|
+
const textColorClass = props.className?.match(/text-[\w-]+/g)?.[0] === "text-white";
|
|
388
388
|
return /* @__PURE__ */ import_react11.default.createElement(
|
|
389
389
|
"button",
|
|
390
390
|
{
|
|
391
391
|
onClick: props.onClick,
|
|
392
|
-
className:
|
|
392
|
+
className: props.className ? props.className : "",
|
|
393
393
|
disabled: props.loading,
|
|
394
394
|
style: {
|
|
395
395
|
cursor: props.loading ? "no-drop" : "pointer"
|
|
396
396
|
}
|
|
397
397
|
},
|
|
398
|
-
props.icon && JSON.parse(props.icon),
|
|
399
398
|
/* @__PURE__ */ import_react11.default.createElement("span", { className: props.iconsClassName, style: { position: "relative" } }, /* @__PURE__ */ import_react11.default.createElement(
|
|
400
399
|
"span",
|
|
401
400
|
{
|
|
@@ -403,10 +402,10 @@ var ButtonElement = (props) => {
|
|
|
403
402
|
dangerouslySetInnerHTML: { __html: props.icon || "" }
|
|
404
403
|
}
|
|
405
404
|
), /* @__PURE__ */ import_react11.default.createElement("style", null, textColorClass && `.${props.iconsClassName} path {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
405
|
+
filter: brightness(0) invert(1);
|
|
406
|
+
}`, `.${props.iconsClassName}:hover path {
|
|
407
|
+
filter: brightness(0) invert(1);
|
|
408
|
+
}`)),
|
|
410
409
|
props.label
|
|
411
410
|
);
|
|
412
411
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -318,18 +318,17 @@ var MultipleSelectElement = (props) => {
|
|
|
318
318
|
// src/Components/Button.tsx
|
|
319
319
|
import React11 from "react";
|
|
320
320
|
var ButtonElement = (props) => {
|
|
321
|
-
const textColorClass = props.className?.match(/text-[\w-]+/g)?.[0] === "text-white"
|
|
321
|
+
const textColorClass = props.className?.match(/text-[\w-]+/g)?.[0] === "text-white";
|
|
322
322
|
return /* @__PURE__ */ React11.createElement(
|
|
323
323
|
"button",
|
|
324
324
|
{
|
|
325
325
|
onClick: props.onClick,
|
|
326
|
-
className:
|
|
326
|
+
className: props.className ? props.className : "",
|
|
327
327
|
disabled: props.loading,
|
|
328
328
|
style: {
|
|
329
329
|
cursor: props.loading ? "no-drop" : "pointer"
|
|
330
330
|
}
|
|
331
331
|
},
|
|
332
|
-
props.icon && JSON.parse(props.icon),
|
|
333
332
|
/* @__PURE__ */ React11.createElement("span", { className: props.iconsClassName, style: { position: "relative" } }, /* @__PURE__ */ React11.createElement(
|
|
334
333
|
"span",
|
|
335
334
|
{
|
|
@@ -337,10 +336,10 @@ var ButtonElement = (props) => {
|
|
|
337
336
|
dangerouslySetInnerHTML: { __html: props.icon || "" }
|
|
338
337
|
}
|
|
339
338
|
), /* @__PURE__ */ React11.createElement("style", null, textColorClass && `.${props.iconsClassName} path {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
339
|
+
filter: brightness(0) invert(1);
|
|
340
|
+
}`, `.${props.iconsClassName}:hover path {
|
|
341
|
+
filter: brightness(0) invert(1);
|
|
342
|
+
}`)),
|
|
344
343
|
props.label
|
|
345
344
|
);
|
|
346
345
|
};
|