@apexcura/ui-components 0.0.14-Beta219 → 0.0.14-Beta220

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
@@ -391,14 +391,6 @@ video {
391
391
  --tw-text-opacity: 1;
392
392
  color: rgb(0 0 0 / var(--tw-text-opacity));
393
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
- }
402
394
  .shadow-\[0px_0px_1px_1px_\#919191\] {
403
395
  --tw-shadow: 0px 0px 1px 1px #919191;
404
396
  --tw-shadow-colored: 0px 0px 1px 1px var(--tw-shadow-color);
package/dist/index.js CHANGED
@@ -384,17 +384,8 @@ var MultipleSelectElement = (props) => {
384
384
  // src/Components/Button.tsx
385
385
  var import_react11 = __toESM(require("react"));
386
386
  var ButtonElement = (props) => {
387
- const [fillColor, setFillColor] = (0, import_react11.useState)("");
388
- const tailwindColorMap = {
389
- "text-white": "#ffffff",
390
- "text-gray-500": "#6b7280"
391
- };
392
- const getColorFromClass = (className) => {
393
- return tailwindColorMap[className] || "inherit";
394
- };
395
387
  const textColorClass = props.className?.match(/text-[\w-]+/g)?.[0];
396
- setFillColor(getColorFromClass(textColorClass));
397
- console.log(fillColor);
388
+ console.log(textColorClass);
398
389
  return /* @__PURE__ */ import_react11.default.createElement(
399
390
  "button",
400
391
  {
@@ -405,17 +396,19 @@ var ButtonElement = (props) => {
405
396
  cursor: props.loading ? "no-drop" : "pointer"
406
397
  }
407
398
  },
408
- /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("span", { className: props.iconsClassName, style: { position: "relative" } }, /* @__PURE__ */ import_react11.default.createElement(
399
+ props.icon && JSON.parse(props.icon),
400
+ /* @__PURE__ */ import_react11.default.createElement("span", { className: props.iconsClassName, style: { position: "relative" } }, /* @__PURE__ */ import_react11.default.createElement(
409
401
  "span",
410
402
  {
411
403
  className: props.iconsClassName,
412
404
  dangerouslySetInnerHTML: { __html: props.icon || "" }
413
405
  }
414
406
  ), /* @__PURE__ */ import_react11.default.createElement("style", null, `.${props.iconsClassName} path {
415
- fill: ${fillColor};
407
+ fill: ${textColorClass};
416
408
  }`, `.${props.iconsClassName}:hover path {
417
409
  filter: brightness(0) invert(1);
418
- }`)), props.label)
410
+ }`)),
411
+ props.label
419
412
  );
420
413
  };
421
414
 
package/dist/index.mjs CHANGED
@@ -316,19 +316,10 @@ var MultipleSelectElement = (props) => {
316
316
  };
317
317
 
318
318
  // src/Components/Button.tsx
319
- import React11, { useState as useState4 } from "react";
319
+ import React11 from "react";
320
320
  var ButtonElement = (props) => {
321
- const [fillColor, setFillColor] = useState4("");
322
- const tailwindColorMap = {
323
- "text-white": "#ffffff",
324
- "text-gray-500": "#6b7280"
325
- };
326
- const getColorFromClass = (className) => {
327
- return tailwindColorMap[className] || "inherit";
328
- };
329
321
  const textColorClass = props.className?.match(/text-[\w-]+/g)?.[0];
330
- setFillColor(getColorFromClass(textColorClass));
331
- console.log(fillColor);
322
+ console.log(textColorClass);
332
323
  return /* @__PURE__ */ React11.createElement(
333
324
  "button",
334
325
  {
@@ -339,27 +330,29 @@ var ButtonElement = (props) => {
339
330
  cursor: props.loading ? "no-drop" : "pointer"
340
331
  }
341
332
  },
342
- /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement("span", { className: props.iconsClassName, style: { position: "relative" } }, /* @__PURE__ */ React11.createElement(
333
+ props.icon && JSON.parse(props.icon),
334
+ /* @__PURE__ */ React11.createElement("span", { className: props.iconsClassName, style: { position: "relative" } }, /* @__PURE__ */ React11.createElement(
343
335
  "span",
344
336
  {
345
337
  className: props.iconsClassName,
346
338
  dangerouslySetInnerHTML: { __html: props.icon || "" }
347
339
  }
348
340
  ), /* @__PURE__ */ React11.createElement("style", null, `.${props.iconsClassName} path {
349
- fill: ${fillColor};
341
+ fill: ${textColorClass};
350
342
  }`, `.${props.iconsClassName}:hover path {
351
343
  filter: brightness(0) invert(1);
352
- }`)), props.label)
344
+ }`)),
345
+ props.label
353
346
  );
354
347
  };
355
348
 
356
349
  // src/Components/AddMoreTable.tsx
357
- import React12, { useEffect, useState as useState5 } from "react";
350
+ import React12, { useEffect, useState as useState4 } from "react";
358
351
  import { Table, Button } from "antd";
359
352
  import { PlusOutlined, DeleteOutlined } from "@ant-design/icons";
360
353
  var AddMoreTable = (props) => {
361
354
  const { thead, tbody } = props;
362
- const [rows, setRows] = useState5(tbody || []);
355
+ const [rows, setRows] = useState4(tbody || []);
363
356
  const onHandleRows = () => {
364
357
  const newId = rows.length > 0 ? rows[rows.length - 1].id + 1 : 1;
365
358
  let newRow = {
@@ -568,7 +561,7 @@ var Navbar = (props) => {
568
561
  };
569
562
 
570
563
  // src/Components/TableElement.tsx
571
- import React20, { useState as useState6, useEffect as useEffect2 } from "react";
564
+ import React20, { useState as useState5, useEffect as useEffect2 } from "react";
572
565
  import { Table as Table2 } from "antd";
573
566
 
574
567
  // src/Components/Model.tsx
@@ -670,9 +663,9 @@ var ModelElement = (props) => {
670
663
  import { EyeOutlined } from "@ant-design/icons";
671
664
  var TableElement = (props) => {
672
665
  const { thead, tbody } = props;
673
- const [selectedRecord, setSelectedRecord] = useState6({});
674
- const [model, setModel] = useState6(false);
675
- const [dataSource, setDataSource] = useState6([]);
666
+ const [selectedRecord, setSelectedRecord] = useState5({});
667
+ const [model, setModel] = useState5(false);
668
+ const [dataSource, setDataSource] = useState5([]);
676
669
  console.log(props.value);
677
670
  const defaultVal = props.value;
678
671
  useEffect2(() => {
@@ -813,14 +806,14 @@ var TableElement = (props) => {
813
806
  };
814
807
 
815
808
  // src/Components/DatePicker.tsx
816
- import React21, { useState as useState7 } from "react";
809
+ import React21, { useState as useState6 } from "react";
817
810
  import { DatePicker } from "antd";
818
811
  import dayjs from "dayjs";
819
812
  import customParseFormat from "dayjs/plugin/customParseFormat.js";
820
813
  import moment2 from "moment";
821
814
  dayjs.extend(customParseFormat);
822
815
  var DatePickerElement = (props) => {
823
- const [dateState, setDateState] = useState7("");
816
+ const [dateState, setDateState] = useState6("");
824
817
  const handleChange = (date, dateString) => {
825
818
  if (date) {
826
819
  const formattedDate = dateString;
@@ -905,10 +898,10 @@ var SingleCheckbox = (props) => {
905
898
  };
906
899
 
907
900
  // src/Components/DropDownGroup.tsx
908
- import React25, { useState as useState8 } from "react";
901
+ import React25, { useState as useState7 } from "react";
909
902
  import { Select as Select4 } from "antd";
910
903
  var DropDownGroup = (props) => {
911
- const [selectedValue, setSelectedValue] = useState8({
904
+ const [selectedValue, setSelectedValue] = useState7({
912
905
  firstValue: {},
913
906
  secondValue: {},
914
907
  temp: ""
@@ -960,12 +953,12 @@ var DropDownGroup = (props) => {
960
953
  };
961
954
 
962
955
  // src/Components/FilesUpload.tsx
963
- import React26, { useState as useState9 } from "react";
956
+ import React26, { useState as useState8 } from "react";
964
957
  import { Upload } from "antd";
965
958
  import { InboxOutlined } from "@ant-design/icons";
966
959
  var FileUpload = (props) => {
967
960
  const { Dragger } = Upload;
968
- const [files, setFiles] = useState9([]);
961
+ const [files, setFiles] = useState8([]);
969
962
  const handleChange = ({ fileList }) => {
970
963
  setFiles(fileList);
971
964
  if (props.onChange) {
@@ -1019,9 +1012,9 @@ var onChange = (checked) => {
1019
1012
  var SwitchElement = () => /* @__PURE__ */ React28.createElement(Switch, { defaultChecked: true, onChange });
1020
1013
 
1021
1014
  // src/Components/Upload.tsx
1022
- import React29, { useState as useState10 } from "react";
1015
+ import React29, { useState as useState9 } from "react";
1023
1016
  var Upload2 = (props) => {
1024
- const [file, setFile] = useState10();
1017
+ const [file, setFile] = useState9();
1025
1018
  const handleFileChange = (e) => {
1026
1019
  setFile(e.target.files[0]);
1027
1020
  if (props.onChange) {
@@ -1047,11 +1040,11 @@ var Upload2 = (props) => {
1047
1040
  };
1048
1041
 
1049
1042
  // src/Components/OtpElement.tsx
1050
- import React30, { useState as useState11, useRef, useEffect as useEffect3 } from "react";
1043
+ import React30, { useState as useState10, useRef, useEffect as useEffect3 } from "react";
1051
1044
  import { Input as Input3 } from "antd";
1052
1045
  var OtpElement = (props) => {
1053
1046
  const length = props.length;
1054
- const [otp, setOtp] = useState11(Array(length).fill(""));
1047
+ const [otp, setOtp] = useState10(Array(length).fill(""));
1055
1048
  const inputRefs = useRef([]);
1056
1049
  const handleChange = (e, index) => {
1057
1050
  const value = e.target.value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta219",
3
+ "version": "0.0.14-Beta220",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",