@apexcura/ui-components 0.0.14-Beta215 → 0.0.14-Beta218

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 CHANGED
@@ -344,9 +344,6 @@ video {
344
344
  .m-\[10px\] {
345
345
  margin: 10px;
346
346
  }
347
- .inline-block {
348
- display: inline-block;
349
- }
350
347
  .flex {
351
348
  display: flex;
352
349
  }
@@ -394,6 +391,14 @@ video {
394
391
  --tw-text-opacity: 1;
395
392
  color: rgb(0 0 0 / var(--tw-text-opacity));
396
393
  }
394
+ .text-gray-500 {
395
+ --tw-text-opacity: 1;
396
+ color: rgb(107 114 128 / var(--tw-text-opacity));
397
+ }
398
+ .text-white {
399
+ --tw-text-opacity: 1;
400
+ color: rgb(255 255 255 / var(--tw-text-opacity));
401
+ }
397
402
  .shadow-\[0px_0px_1px_1px_\#919191\] {
398
403
  --tw-shadow: 0px 0px 1px 1px #919191;
399
404
  --tw-shadow-colored: 0px 0px 1px 1px var(--tw-shadow-color);
package/dist/index.js CHANGED
@@ -384,8 +384,15 @@ var MultipleSelectElement = (props) => {
384
384
  // src/Components/Button.tsx
385
385
  var import_react11 = __toESM(require("react"));
386
386
  var ButtonElement = (props) => {
387
+ const tailwindColorMap = {
388
+ "text-white": "#ffffff",
389
+ "text-gray-500": "#6b7280"
390
+ };
391
+ const getColorFromClass = (className) => {
392
+ return tailwindColorMap[className] || "inherit";
393
+ };
387
394
  const textColorClass = props.className?.match(/text-[\w-]+/g)?.[0];
388
- console.log(textColorClass);
395
+ const fillColor = getColorFromClass(textColorClass);
389
396
  return /* @__PURE__ */ import_react11.default.createElement(
390
397
  "button",
391
398
  {
@@ -400,15 +407,13 @@ var ButtonElement = (props) => {
400
407
  "span",
401
408
  {
402
409
  className: props.iconsClassName,
403
- dangerouslySetInnerHTML: { __html: props.icon || "" },
404
- style: {
405
- display: "inline-block",
406
- color: textColorClass ? textColorClass : "inherit"
407
- }
410
+ dangerouslySetInnerHTML: { __html: props.icon || "" }
408
411
  }
409
- ), /* @__PURE__ */ import_react11.default.createElement("style", null, `.${props.iconsClassName}:hover {
410
- filter: brightness(0) invert(1);
411
- }`)), props.label)
412
+ ), /* @__PURE__ */ import_react11.default.createElement("style", null, `.${props.iconsClassName} path {
413
+ fill: ${fillColor};
414
+ }`, `.${props.iconsClassName}:hover path {
415
+ filter: brightness(0) invert(1);
416
+ }`)), props.label)
412
417
  );
413
418
  };
414
419
 
package/dist/index.mjs CHANGED
@@ -318,8 +318,15 @@ var MultipleSelectElement = (props) => {
318
318
  // src/Components/Button.tsx
319
319
  import React11 from "react";
320
320
  var ButtonElement = (props) => {
321
+ const tailwindColorMap = {
322
+ "text-white": "#ffffff",
323
+ "text-gray-500": "#6b7280"
324
+ };
325
+ const getColorFromClass = (className) => {
326
+ return tailwindColorMap[className] || "inherit";
327
+ };
321
328
  const textColorClass = props.className?.match(/text-[\w-]+/g)?.[0];
322
- console.log(textColorClass);
329
+ const fillColor = getColorFromClass(textColorClass);
323
330
  return /* @__PURE__ */ React11.createElement(
324
331
  "button",
325
332
  {
@@ -334,15 +341,13 @@ var ButtonElement = (props) => {
334
341
  "span",
335
342
  {
336
343
  className: props.iconsClassName,
337
- dangerouslySetInnerHTML: { __html: props.icon || "" },
338
- style: {
339
- display: "inline-block",
340
- color: textColorClass ? textColorClass : "inherit"
341
- }
344
+ dangerouslySetInnerHTML: { __html: props.icon || "" }
342
345
  }
343
- ), /* @__PURE__ */ React11.createElement("style", null, `.${props.iconsClassName}:hover {
344
- filter: brightness(0) invert(1);
345
- }`)), props.label)
346
+ ), /* @__PURE__ */ React11.createElement("style", null, `.${props.iconsClassName} path {
347
+ fill: ${fillColor};
348
+ }`, `.${props.iconsClassName}:hover path {
349
+ filter: brightness(0) invert(1);
350
+ }`)), props.label)
346
351
  );
347
352
  };
348
353
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta215",
3
+ "version": "0.0.14-Beta218",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",