@axzydev/axzy_ui_system 1.1.1 → 1.2.0

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
@@ -391,7 +391,6 @@ var badgeSizes = {
391
391
  };
392
392
 
393
393
  // src/theme/theme.ts
394
- import colors from "tailwindcss/colors";
395
394
  var palette = {
396
395
  blue: {
397
396
  50: "#eff6ff",
@@ -432,11 +431,71 @@ var palette = {
432
431
  900: "#0f172a",
433
432
  950: "#020617"
434
433
  },
435
- success: colors.emerald,
436
- danger: colors.rose,
437
- warning: colors.amber,
438
- purple: colors.violet,
439
- info: colors.sky
434
+ success: {
435
+ 50: "#ecfdf5",
436
+ 100: "#d1fae5",
437
+ 200: "#a7f3d0",
438
+ 300: "#6ee7b7",
439
+ 400: "#34d399",
440
+ 500: "#10b981",
441
+ 600: "#059669",
442
+ 700: "#047857",
443
+ 800: "#065f46",
444
+ 900: "#064e3b",
445
+ 950: "#022c22"
446
+ },
447
+ danger: {
448
+ 50: "#fff1f2",
449
+ 100: "#ffe4e6",
450
+ 200: "#fecdd3",
451
+ 300: "#fda4af",
452
+ 400: "#fb7185",
453
+ 500: "#f43f5e",
454
+ 600: "#e11d48",
455
+ 700: "#be123c",
456
+ 800: "#9f1239",
457
+ 900: "#881337",
458
+ 950: "#4c0519"
459
+ },
460
+ warning: {
461
+ 50: "#fffbeb",
462
+ 100: "#fef3c7",
463
+ 200: "#fde68a",
464
+ 300: "#fcd34d",
465
+ 400: "#fbbf24",
466
+ 500: "#f59e0b",
467
+ 600: "#d97706",
468
+ 700: "#b45309",
469
+ 800: "#92400e",
470
+ 900: "#78350f",
471
+ 950: "#451a03"
472
+ },
473
+ purple: {
474
+ 50: "#f5f3ff",
475
+ 100: "#ede9fe",
476
+ 200: "#ddd6fe",
477
+ 300: "#c4b5fd",
478
+ 400: "#a78bfa",
479
+ 500: "#8b5cf6",
480
+ 600: "#7c3aed",
481
+ 700: "#6d28d9",
482
+ 800: "#5b21b6",
483
+ 900: "#4c1d95",
484
+ 950: "#2e1065"
485
+ },
486
+ info: {
487
+ 50: "#f0f9ff",
488
+ 100: "#e0f2fe",
489
+ 200: "#bae6fd",
490
+ 300: "#7dd3fc",
491
+ 400: "#38bdf8",
492
+ 500: "#0ea5e9",
493
+ 600: "#0284c7",
494
+ 700: "#0369a1",
495
+ 800: "#075985",
496
+ 900: "#0c4a6e",
497
+ 950: "#082f49"
498
+ }
440
499
  };
441
500
  var createColorVar = (name) => ({
442
501
  50: `var(--color-${name}-50)`,
@@ -876,7 +935,7 @@ var buttonVariants = {
876
935
  outlined: "bg-transparent border-2",
877
936
  raised: "border-transparent shadow-md",
878
937
  rounded: "border-transparent shadow-sm rounded-full",
879
- text: "bg-transparent border-transparent shadow-none hover:bg-opacity-10",
938
+ text: "bg-transparent border-transparent shadow-none hover:bg-black/5 dark:hover:bg-white/10",
880
939
  "raised-text": "bg-white border border-gray-200 shadow-sm hover:shadow-md",
881
940
  "icon-only": "p-2 aspect-square flex items-center justify-center border-transparent shadow-sm",
882
941
  link: "bg-transparent border-transparent shadow-none hover:underline px-0"
@@ -4908,8 +4967,8 @@ function ITThemeProvider({
4908
4967
  };
4909
4968
  });
4910
4969
  };
4911
- const applyPreset = (colors2) => {
4912
- setPaletteState(colors2);
4970
+ const applyPreset = (colors) => {
4971
+ setPaletteState(colors);
4913
4972
  };
4914
4973
  const resetTheme = () => {
4915
4974
  const basePalette = {
@@ -5335,7 +5394,7 @@ function ITDialog({
5335
5394
  const content = /* @__PURE__ */ jsx22(
5336
5395
  "div",
5337
5396
  {
5338
- className: `fixed inset-0 flex ${fullScreen ? "items-stretch" : "items-center justify-center"} bg-black bg-opacity-50 z-[9999]`,
5397
+ className: `fixed inset-0 flex ${fullScreen ? "items-stretch" : "items-center justify-center"} bg-black/50 z-[9999]`,
5339
5398
  children: /* @__PURE__ */ jsx22(
5340
5399
  "div",
5341
5400
  {
@@ -6390,7 +6449,7 @@ function ITNavbar({
6390
6449
  logo && /* @__PURE__ */ jsx32("div", { className: "h-8 w-auto object-contain transition-transform hover:scale-105", children: logo }),
6391
6450
  logoText && /* @__PURE__ */ jsx32(ITText, { as: "span", className: "text-lg font-bold tracking-wide", style: { color: "var(--sidebar-active-color, #ffffff)" }, children: logoText })
6392
6451
  ] }),
6393
- /* @__PURE__ */ jsx32("nav", { className: "flex-1 px-4 py-6 overflow-y-auto custom-scrollbar", children: /* @__PURE__ */ jsx32("ul", { className: "space-y-1.5", children: navigationItems.map((item) => /* @__PURE__ */ jsxs24("li", { children: [
6452
+ /* @__PURE__ */ jsx32("nav", { className: "flex-1 px-4 py-6 overflow-y-auto custom-scrollbar", children: /* @__PURE__ */ jsx32("ul", { className: "flex flex-col gap-1.5", children: navigationItems.map((item) => /* @__PURE__ */ jsxs24("li", { children: [
6394
6453
  /* @__PURE__ */ jsxs24(
6395
6454
  "div",
6396
6455
  {
@@ -7907,7 +7966,7 @@ function ITSidebar({
7907
7966
  !isSidebarCollapsed && item.subitems && item.subitems.length > 0 && /* @__PURE__ */ jsx51("div", { className: `overflow-hidden transition-all duration-400 ease-[cubic-bezier(0.2,0,0,1)] ${expandedItems.has(item.id) ? "max-h-[500px] opacity-100 mt-1" : "max-h-0 opacity-0"}`, children: /* @__PURE__ */ jsx51(
7908
7967
  "ul",
7909
7968
  {
7910
- className: "ml-5 space-y-0.5 py-1",
7969
+ className: "ml-5 flex flex-col gap-0.5 py-1",
7911
7970
  style: {
7912
7971
  borderLeft: subitemConnector === "|" ? "1px solid var(--sidebar-border, #e2e8f0)" : "none"
7913
7972
  },