@apexcura/ui-components 0.0.14-Beta214 → 0.0.14-Beta217
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.css +0 -3
- package/dist/index.js +7 -8
- package/dist/index.mjs +7 -8
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -385,6 +385,7 @@ var MultipleSelectElement = (props) => {
|
|
|
385
385
|
var import_react11 = __toESM(require("react"));
|
|
386
386
|
var ButtonElement = (props) => {
|
|
387
387
|
const textColorClass = props.className?.match(/text-[\w-]+/g)?.[0];
|
|
388
|
+
console.log(textColorClass);
|
|
388
389
|
return /* @__PURE__ */ import_react11.default.createElement(
|
|
389
390
|
"button",
|
|
390
391
|
{
|
|
@@ -399,15 +400,13 @@ var ButtonElement = (props) => {
|
|
|
399
400
|
"span",
|
|
400
401
|
{
|
|
401
402
|
className: props.iconsClassName,
|
|
402
|
-
dangerouslySetInnerHTML: { __html: props.icon || "" }
|
|
403
|
-
style: {
|
|
404
|
-
display: "inline-block",
|
|
405
|
-
color: textColorClass ? textColorClass : "inherit"
|
|
406
|
-
}
|
|
403
|
+
dangerouslySetInnerHTML: { __html: props.icon || "" }
|
|
407
404
|
}
|
|
408
|
-
), /* @__PURE__ */ import_react11.default.createElement("style", null, `.${props.iconsClassName}
|
|
409
|
-
|
|
410
|
-
|
|
405
|
+
), /* @__PURE__ */ import_react11.default.createElement("style", null, `.${props.iconsClassName} path {
|
|
406
|
+
fill: ${textColorClass};
|
|
407
|
+
}`, `.${props.iconsClassName}:hover path {
|
|
408
|
+
filter: brightness(0) invert(1);
|
|
409
|
+
}`)), props.label)
|
|
411
410
|
);
|
|
412
411
|
};
|
|
413
412
|
|
package/dist/index.mjs
CHANGED
|
@@ -319,6 +319,7 @@ var MultipleSelectElement = (props) => {
|
|
|
319
319
|
import React11 from "react";
|
|
320
320
|
var ButtonElement = (props) => {
|
|
321
321
|
const textColorClass = props.className?.match(/text-[\w-]+/g)?.[0];
|
|
322
|
+
console.log(textColorClass);
|
|
322
323
|
return /* @__PURE__ */ React11.createElement(
|
|
323
324
|
"button",
|
|
324
325
|
{
|
|
@@ -333,15 +334,13 @@ var ButtonElement = (props) => {
|
|
|
333
334
|
"span",
|
|
334
335
|
{
|
|
335
336
|
className: props.iconsClassName,
|
|
336
|
-
dangerouslySetInnerHTML: { __html: props.icon || "" }
|
|
337
|
-
style: {
|
|
338
|
-
display: "inline-block",
|
|
339
|
-
color: textColorClass ? textColorClass : "inherit"
|
|
340
|
-
}
|
|
337
|
+
dangerouslySetInnerHTML: { __html: props.icon || "" }
|
|
341
338
|
}
|
|
342
|
-
), /* @__PURE__ */ React11.createElement("style", null, `.${props.iconsClassName}
|
|
343
|
-
|
|
344
|
-
|
|
339
|
+
), /* @__PURE__ */ React11.createElement("style", null, `.${props.iconsClassName} path {
|
|
340
|
+
fill: ${textColorClass};
|
|
341
|
+
}`, `.${props.iconsClassName}:hover path {
|
|
342
|
+
filter: brightness(0) invert(1);
|
|
343
|
+
}`)), props.label)
|
|
345
344
|
);
|
|
346
345
|
};
|
|
347
346
|
|