@esic-lab/data-core-ui 0.0.50 → 0.0.52

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
@@ -1790,9 +1790,6 @@
1790
1790
  font-weight: 400;
1791
1791
  line-height: 16px;
1792
1792
  }
1793
- .custom-select .ant-select-selection-item {
1794
- color: #fff !important;
1795
- }
1796
1793
  :where(.css-dev-only-do-not-override-1jxkvwz).ant-color-picker-trigger {
1797
1794
  justify-content: left !important;
1798
1795
  }
package/dist/index.js CHANGED
@@ -2594,17 +2594,6 @@ function SelectFieldGroup({
2594
2594
 
2595
2595
  // src/Select/SelectFieldStatus/SelectFieldStatus.tsx
2596
2596
  var import_antd9 = require("antd");
2597
-
2598
- // src/Select/SelectFieldStatus/StatusMockup.ts
2599
- var status = [
2600
- { value: "1", label: "\u0E40\u0E1B\u0E34\u0E14", color: "var(--color-gray-500)" },
2601
- { value: "2", label: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23", color: "var(--color-yellow-400)" },
2602
- { value: "3", label: "\u0E23\u0E2D\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A", color: "var(--color-red-400)" },
2603
- { value: "4", label: "\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19", color: "var(--color-green-400)" },
2604
- { value: "5", label: "\u0E16\u0E39\u0E01\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01", color: "var(--color-gray-300)" }
2605
- ];
2606
-
2607
- // src/Select/SelectFieldStatus/SelectFieldStatus.tsx
2608
2597
  var import_icons = require("@ant-design/icons");
2609
2598
  var import_jsx_runtime29 = require("react/jsx-runtime");
2610
2599
  function SelectFieldStatus({
@@ -2618,7 +2607,7 @@ function SelectFieldStatus({
2618
2607
  options,
2619
2608
  className
2620
2609
  }) {
2621
- const selectedItem = status.find((s) => s.value === value);
2610
+ const selectedItem = options?.find((s) => s.value === value);
2622
2611
  return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2623
2612
  import_antd9.ConfigProvider,
2624
2613
  {
@@ -2648,7 +2637,7 @@ function SelectFieldStatus({
2648
2637
  suffixIcon: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_icons.DownOutlined, { style: { color: value ? "#fff" : "#D9D9D9" } }),
2649
2638
  value: value ? value : void 0,
2650
2639
  onChange,
2651
- className: `body-3 custom-select flex justify-center w-full ${className ?? ""}`,
2640
+ className: `body-3 custom-select flex justify-center w-full ${className ?? ""} `,
2652
2641
  placeholder,
2653
2642
  optionFilterProp: "label",
2654
2643
  filterOption: (input, option) => (option?.label ?? "").toString().toLowerCase().includes(input.toLowerCase()),
@@ -2666,7 +2655,7 @@ function SelectFieldStatus({
2666
2655
  var import_antd10 = require("antd");
2667
2656
 
2668
2657
  // src/Select/SelectFieldStatusReport/StatusReportMockup.ts
2669
- var status2 = [
2658
+ var status = [
2670
2659
  { value: "1", label: "\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19", color: "var(--color-green-400)" },
2671
2660
  { value: "2", label: "\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19", color: "var(--color-red-500)" }
2672
2661
  ];
@@ -2685,7 +2674,7 @@ function SelectFieldStatusReport({
2685
2674
  className,
2686
2675
  options
2687
2676
  }) {
2688
- const selectedItem = status2.find((s) => s.value === value);
2677
+ const selectedItem = status.find((s) => s.value === value);
2689
2678
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2690
2679
  import_antd10.ConfigProvider,
2691
2680
  {
package/dist/index.mjs CHANGED
@@ -2533,17 +2533,6 @@ function SelectFieldGroup({
2533
2533
 
2534
2534
  // src/Select/SelectFieldStatus/SelectFieldStatus.tsx
2535
2535
  import { Select as Select3, ConfigProvider as ConfigProvider9 } from "antd";
2536
-
2537
- // src/Select/SelectFieldStatus/StatusMockup.ts
2538
- var status = [
2539
- { value: "1", label: "\u0E40\u0E1B\u0E34\u0E14", color: "var(--color-gray-500)" },
2540
- { value: "2", label: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23", color: "var(--color-yellow-400)" },
2541
- { value: "3", label: "\u0E23\u0E2D\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A", color: "var(--color-red-400)" },
2542
- { value: "4", label: "\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19", color: "var(--color-green-400)" },
2543
- { value: "5", label: "\u0E16\u0E39\u0E01\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01", color: "var(--color-gray-300)" }
2544
- ];
2545
-
2546
- // src/Select/SelectFieldStatus/SelectFieldStatus.tsx
2547
2536
  import { DownOutlined } from "@ant-design/icons";
2548
2537
  import { jsx as jsx29, jsxs as jsxs25 } from "react/jsx-runtime";
2549
2538
  function SelectFieldStatus({
@@ -2557,7 +2546,7 @@ function SelectFieldStatus({
2557
2546
  options,
2558
2547
  className
2559
2548
  }) {
2560
- const selectedItem = status.find((s) => s.value === value);
2549
+ const selectedItem = options?.find((s) => s.value === value);
2561
2550
  return /* @__PURE__ */ jsx29(
2562
2551
  ConfigProvider9,
2563
2552
  {
@@ -2587,7 +2576,7 @@ function SelectFieldStatus({
2587
2576
  suffixIcon: /* @__PURE__ */ jsx29(DownOutlined, { style: { color: value ? "#fff" : "#D9D9D9" } }),
2588
2577
  value: value ? value : void 0,
2589
2578
  onChange,
2590
- className: `body-3 custom-select flex justify-center w-full ${className ?? ""}`,
2579
+ className: `body-3 custom-select flex justify-center w-full ${className ?? ""} `,
2591
2580
  placeholder,
2592
2581
  optionFilterProp: "label",
2593
2582
  filterOption: (input, option) => (option?.label ?? "").toString().toLowerCase().includes(input.toLowerCase()),
@@ -2605,7 +2594,7 @@ function SelectFieldStatus({
2605
2594
  import { Select as Select4, ConfigProvider as ConfigProvider10 } from "antd";
2606
2595
 
2607
2596
  // src/Select/SelectFieldStatusReport/StatusReportMockup.ts
2608
- var status2 = [
2597
+ var status = [
2609
2598
  { value: "1", label: "\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19", color: "var(--color-green-400)" },
2610
2599
  { value: "2", label: "\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19", color: "var(--color-red-500)" }
2611
2600
  ];
@@ -2624,7 +2613,7 @@ function SelectFieldStatusReport({
2624
2613
  className,
2625
2614
  options
2626
2615
  }) {
2627
- const selectedItem = status2.find((s) => s.value === value);
2616
+ const selectedItem = status.find((s) => s.value === value);
2628
2617
  return /* @__PURE__ */ jsx30(
2629
2618
  ConfigProvider10,
2630
2619
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esic-lab/data-core-ui",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",