@esic-lab/data-core-ui 0.0.48 → 0.0.49

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 CHANGED
@@ -611,7 +611,7 @@ function Switch({ label, checked, onChange, disabled }) {
611
611
  "aria-disabled": disabled,
612
612
  className: `
613
613
  w-13 h-7 flex items-center rounded-full p-1 transition-colors duration-300
614
- ${checked ? "bg-blue-500" : "bg-gray-300"}
614
+ ${checked ? "bg-primary-500" : "bg-gray-300"}
615
615
  ${disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"}
616
616
  `,
617
617
  children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
@@ -4148,7 +4148,7 @@ function ProfileSelect({
4148
4148
  (u) => u.name.toLowerCase().includes(normalizedSearch)
4149
4149
  ) : userNotAssign;
4150
4150
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { ref: containerRef, className: "relative body-1", children: [
4151
- mode === "icon" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("button", { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4151
+ mode === "icon" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4152
4152
  import_icons_react14.IconUsers,
4153
4153
  {
4154
4154
  size: 40,
@@ -4156,7 +4156,7 @@ function ProfileSelect({
4156
4156
  onClick: () => setIsShowSelect(!isShowSelect)
4157
4157
  }
4158
4158
  ) }) : mode === "showAssign" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4159
- "button",
4159
+ "div",
4160
4160
  {
4161
4161
  className: `w-full h-[40px] flex -space-x-2 p-2 cursor-pointer ${className}`,
4162
4162
  onClick: () => setIsShowSelect(!isShowSelect),
@@ -4462,25 +4462,36 @@ var import_antd22 = require("antd");
4462
4462
  var import_jsx_runtime44 = require("react/jsx-runtime");
4463
4463
  function TabProject({ tabOption, now, onChange }) {
4464
4464
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4465
- import_antd22.Tabs,
4465
+ import_antd22.ConfigProvider,
4466
4466
  {
4467
- activeKey: now,
4468
- items: tabOption.map((item, i) => {
4469
- return {
4470
- key: item.key,
4471
- label: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4472
- "button",
4473
- {
4474
- className: "tab-label flex gap-2 items-center body-1",
4475
- onClick: () => onChange(item.key),
4476
- children: [
4477
- item.icon,
4478
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { children: item.label })
4479
- ]
4480
- }
4481
- )
4482
- };
4483
- })
4467
+ theme: {
4468
+ token: {
4469
+ colorPrimary: "#4e61f6"
4470
+ // active underline + active text (default parts)
4471
+ },
4472
+ components: {
4473
+ Tabs: {
4474
+ inkBarColor: "#4e61f6",
4475
+ itemActiveColor: "#4e61f6",
4476
+ itemSelectedColor: "#4e61f6",
4477
+ itemHoverColor: "#8895f9"
4478
+ }
4479
+ }
4480
+ },
4481
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4482
+ import_antd22.Tabs,
4483
+ {
4484
+ activeKey: now,
4485
+ onChange,
4486
+ items: tabOption.map((item) => ({
4487
+ key: item.key,
4488
+ label: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { className: "tab-label flex gap-2 items-center body-1", children: [
4489
+ item.icon,
4490
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { children: item.label })
4491
+ ] })
4492
+ }))
4493
+ }
4494
+ )
4484
4495
  }
4485
4496
  );
4486
4497
  }
package/dist/index.mjs CHANGED
@@ -550,7 +550,7 @@ function Switch({ label, checked, onChange, disabled }) {
550
550
  "aria-disabled": disabled,
551
551
  className: `
552
552
  w-13 h-7 flex items-center rounded-full p-1 transition-colors duration-300
553
- ${checked ? "bg-blue-500" : "bg-gray-300"}
553
+ ${checked ? "bg-primary-500" : "bg-gray-300"}
554
554
  ${disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"}
555
555
  `,
556
556
  children: /* @__PURE__ */ jsx10(
@@ -4093,7 +4093,7 @@ function ProfileSelect({
4093
4093
  (u) => u.name.toLowerCase().includes(normalizedSearch)
4094
4094
  ) : userNotAssign;
4095
4095
  return /* @__PURE__ */ jsxs36("div", { ref: containerRef, className: "relative body-1", children: [
4096
- mode === "icon" ? /* @__PURE__ */ jsx42("button", { children: /* @__PURE__ */ jsx42(
4096
+ mode === "icon" ? /* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsx42(
4097
4097
  IconUsers,
4098
4098
  {
4099
4099
  size: 40,
@@ -4101,7 +4101,7 @@ function ProfileSelect({
4101
4101
  onClick: () => setIsShowSelect(!isShowSelect)
4102
4102
  }
4103
4103
  ) }) : mode === "showAssign" ? /* @__PURE__ */ jsxs36(
4104
- "button",
4104
+ "div",
4105
4105
  {
4106
4106
  className: `w-full h-[40px] flex -space-x-2 p-2 cursor-pointer ${className}`,
4107
4107
  onClick: () => setIsShowSelect(!isShowSelect),
@@ -4403,29 +4403,40 @@ var QRCodeGenerator = ({
4403
4403
  };
4404
4404
 
4405
4405
  // src/TabPropject/TabProject/TabProject.tsx
4406
- import { Tabs } from "antd";
4406
+ import { ConfigProvider as ConfigProvider18, Tabs } from "antd";
4407
4407
  import { jsx as jsx44, jsxs as jsxs38 } from "react/jsx-runtime";
4408
4408
  function TabProject({ tabOption, now, onChange }) {
4409
4409
  return /* @__PURE__ */ jsx44(
4410
- Tabs,
4410
+ ConfigProvider18,
4411
4411
  {
4412
- activeKey: now,
4413
- items: tabOption.map((item, i) => {
4414
- return {
4415
- key: item.key,
4416
- label: /* @__PURE__ */ jsxs38(
4417
- "button",
4418
- {
4419
- className: "tab-label flex gap-2 items-center body-1",
4420
- onClick: () => onChange(item.key),
4421
- children: [
4422
- item.icon,
4423
- /* @__PURE__ */ jsx44("span", { children: item.label })
4424
- ]
4425
- }
4426
- )
4427
- };
4428
- })
4412
+ theme: {
4413
+ token: {
4414
+ colorPrimary: "#4e61f6"
4415
+ // active underline + active text (default parts)
4416
+ },
4417
+ components: {
4418
+ Tabs: {
4419
+ inkBarColor: "#4e61f6",
4420
+ itemActiveColor: "#4e61f6",
4421
+ itemSelectedColor: "#4e61f6",
4422
+ itemHoverColor: "#8895f9"
4423
+ }
4424
+ }
4425
+ },
4426
+ children: /* @__PURE__ */ jsx44(
4427
+ Tabs,
4428
+ {
4429
+ activeKey: now,
4430
+ onChange,
4431
+ items: tabOption.map((item) => ({
4432
+ key: item.key,
4433
+ label: /* @__PURE__ */ jsxs38("span", { className: "tab-label flex gap-2 items-center body-1", children: [
4434
+ item.icon,
4435
+ /* @__PURE__ */ jsx44("span", { children: item.label })
4436
+ ] })
4437
+ }))
4438
+ }
4439
+ )
4429
4440
  }
4430
4441
  );
4431
4442
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esic-lab/data-core-ui",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",