@jameskabz/nextcraft-ui 0.6.5 → 0.6.7

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.
Files changed (145) hide show
  1. package/dist/components/craft-alert.cjs +1 -1
  2. package/dist/components/craft-alert.js +1 -1
  3. package/dist/components/craft-badge.cjs +1 -1
  4. package/dist/components/craft-badge.js +1 -1
  5. package/dist/components/craft-button.cjs +1 -1
  6. package/dist/components/craft-button.js +1 -1
  7. package/dist/components/craft-card.cjs +1 -1
  8. package/dist/components/craft-card.js +1 -1
  9. package/dist/components/craft-checkbox.cjs +1 -1
  10. package/dist/components/craft-checkbox.js +1 -1
  11. package/dist/components/craft-command-palette.cjs +3 -3
  12. package/dist/components/craft-command-palette.js +3 -3
  13. package/dist/components/craft-confirm-dialog.cjs +3 -3
  14. package/dist/components/craft-confirm-dialog.js +3 -3
  15. package/dist/components/craft-create-edit-drawer.cjs +4 -4
  16. package/dist/components/craft-create-edit-drawer.js +4 -4
  17. package/dist/components/craft-currency-input.cjs +1 -1
  18. package/dist/components/craft-currency-input.js +1 -1
  19. package/dist/components/craft-data-table.cjs +2 -2
  20. package/dist/components/craft-data-table.js +2 -2
  21. package/dist/components/craft-date-picker.cjs +1 -1
  22. package/dist/components/craft-date-picker.js +1 -1
  23. package/dist/components/craft-drawer.cjs +1 -1
  24. package/dist/components/craft-drawer.js +1 -1
  25. package/dist/components/craft-dropdown-menu.cjs +2 -2
  26. package/dist/components/craft-dropdown-menu.js +2 -2
  27. package/dist/components/craft-empty-state.cjs +1 -1
  28. package/dist/components/craft-empty-state.js +1 -1
  29. package/dist/components/craft-error-state.cjs +2 -2
  30. package/dist/components/craft-error-state.js +2 -2
  31. package/dist/components/craft-filter-bar.cjs +2 -2
  32. package/dist/components/craft-filter-bar.js +2 -2
  33. package/dist/components/craft-form-builder.cjs +5 -5
  34. package/dist/components/craft-form-builder.js +5 -5
  35. package/dist/components/craft-form-field.cjs +9 -9
  36. package/dist/components/craft-form-field.js +9 -9
  37. package/dist/components/craft-form.cjs +4 -4
  38. package/dist/components/craft-form.js +4 -4
  39. package/dist/components/craft-icon.cjs +1 -1
  40. package/dist/components/craft-icon.js +1 -1
  41. package/dist/components/craft-input.cjs +1 -1
  42. package/dist/components/craft-input.js +1 -1
  43. package/dist/components/craft-link.cjs +1 -1
  44. package/dist/components/craft-link.js +1 -1
  45. package/dist/components/craft-loading-state.cjs +1 -1
  46. package/dist/components/craft-loading-state.js +1 -1
  47. package/dist/components/craft-modal.cjs +1 -1
  48. package/dist/components/craft-modal.js +1 -1
  49. package/dist/components/craft-number-input.cjs +1 -1
  50. package/dist/components/craft-number-input.js +1 -1
  51. package/dist/components/craft-pagination.cjs +1 -1
  52. package/dist/components/craft-pagination.js +1 -1
  53. package/dist/components/craft-popover.cjs +1 -1
  54. package/dist/components/craft-popover.js +1 -1
  55. package/dist/components/craft-select.cjs +1 -1
  56. package/dist/components/craft-select.js +1 -1
  57. package/dist/components/craft-skeleton.cjs +1 -1
  58. package/dist/components/craft-skeleton.js +1 -1
  59. package/dist/components/craft-stat-card.cjs +2 -2
  60. package/dist/components/craft-stat-card.js +2 -2
  61. package/dist/components/craft-submit-button.cjs +1 -1
  62. package/dist/components/craft-submit-button.js +1 -1
  63. package/dist/components/craft-switch.cjs +1 -1
  64. package/dist/components/craft-switch.js +1 -1
  65. package/dist/components/craft-table-toolbar.cjs +2 -2
  66. package/dist/components/craft-table-toolbar.js +2 -2
  67. package/dist/components/craft-tabs.cjs +1 -1
  68. package/dist/components/craft-tabs.js +1 -1
  69. package/dist/components/craft-textarea.cjs +1 -1
  70. package/dist/components/craft-textarea.js +1 -1
  71. package/dist/components/craft-toast.cjs +1 -1
  72. package/dist/components/craft-toast.js +1 -1
  73. package/dist/components/craft-tooltip.cjs +1 -1
  74. package/dist/components/craft-tooltip.js +1 -1
  75. package/dist/components/glass-card.cjs +1 -1
  76. package/dist/components/glass-card.js +1 -1
  77. package/dist/components/layout/app-shell.cjs +1 -1
  78. package/dist/components/layout/app-shell.js +1 -1
  79. package/dist/components/layout/app-template.cjs +1 -1
  80. package/dist/components/layout/app-template.js +1 -1
  81. package/dist/components/layout/auth-layout.cjs +1 -1
  82. package/dist/components/layout/auth-layout.js +1 -1
  83. package/dist/components/layout/breadcrumbs.cjs +1 -1
  84. package/dist/components/layout/breadcrumbs.js +1 -1
  85. package/dist/components/layout/container.cjs +1 -1
  86. package/dist/components/layout/container.js +1 -1
  87. package/dist/components/layout/grid.cjs +1 -1
  88. package/dist/components/layout/grid.js +1 -1
  89. package/dist/components/layout/page-header.cjs +1 -1
  90. package/dist/components/layout/page-header.js +1 -1
  91. package/dist/components/layout/sidebar.cjs +1 -1
  92. package/dist/components/layout/sidebar.js +1 -1
  93. package/dist/components/layout/top-nav.cjs +1 -1
  94. package/dist/components/layout/top-nav.js +1 -1
  95. package/dist/components/theme-switcher.cjs +1 -1
  96. package/dist/components/theme-switcher.js +1 -1
  97. package/package.json +3 -27
  98. package/dist/components/forms/types.cjs +0 -17
  99. package/dist/components/forms/types.cjs.map +0 -1
  100. package/dist/components/forms/types.d.cts +0 -7
  101. package/dist/components/forms/types.d.ts +0 -7
  102. package/dist/components/forms/types.js +0 -1
  103. package/dist/components/forms/types.js.map +0 -1
  104. package/dist/components/layout/types.cjs +0 -29
  105. package/dist/components/layout/types.cjs.map +0 -1
  106. package/dist/components/layout/types.d.cts +0 -12
  107. package/dist/components/layout/types.d.ts +0 -12
  108. package/dist/components/layout/types.js +0 -5
  109. package/dist/components/layout/types.js.map +0 -1
  110. package/dist/components/table/types.cjs +0 -17
  111. package/dist/components/table/types.cjs.map +0 -1
  112. package/dist/components/table/types.d.cts +0 -7
  113. package/dist/components/table/types.d.ts +0 -7
  114. package/dist/components/table/types.js +0 -1
  115. package/dist/components/table/types.js.map +0 -1
  116. package/dist/craft/components.cjs +0 -123
  117. package/dist/craft/components.cjs.map +0 -1
  118. package/dist/craft/components.d.cts +0 -36
  119. package/dist/craft/components.d.ts +0 -36
  120. package/dist/craft/components.js +0 -67
  121. package/dist/craft/components.js.map +0 -1
  122. package/dist/craft/forms.cjs +0 -35
  123. package/dist/craft/forms.cjs.map +0 -1
  124. package/dist/craft/forms.d.cts +0 -7
  125. package/dist/craft/forms.d.ts +0 -7
  126. package/dist/craft/forms.js +0 -9
  127. package/dist/craft/forms.js.map +0 -1
  128. package/dist/craft/layout.cjs +0 -56
  129. package/dist/craft/layout.cjs.map +0 -1
  130. package/dist/craft/layout.d.cts +0 -12
  131. package/dist/craft/layout.d.ts +0 -12
  132. package/dist/craft/layout.js +0 -23
  133. package/dist/craft/layout.js.map +0 -1
  134. package/dist/craft/table.cjs +0 -38
  135. package/dist/craft/table.cjs.map +0 -1
  136. package/dist/craft/table.d.cts +0 -7
  137. package/dist/craft/table.d.ts +0 -7
  138. package/dist/craft/table.js +0 -11
  139. package/dist/craft/table.js.map +0 -1
  140. package/dist/craft/theme.cjs +0 -34
  141. package/dist/craft/theme.cjs.map +0 -1
  142. package/dist/craft/theme.d.cts +0 -4
  143. package/dist/craft/theme.d.ts +0 -4
  144. package/dist/craft/theme.js +0 -8
  145. package/dist/craft/theme.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { cn } from "@/utils/cn";
3
+ import { cn } from "../utils/cn";
4
4
  function getPageNumbers(pageIndex, pageCount, maxButtons = 5) {
5
5
  if (pageCount <= maxButtons) {
6
6
  return Array.from({ length: pageCount }, (_, i) => i);
@@ -34,7 +34,7 @@ __export(craft_popover_exports, {
34
34
  module.exports = __toCommonJS(craft_popover_exports);
35
35
  var import_jsx_runtime = require("react/jsx-runtime");
36
36
  var React = __toESM(require("react"), 1);
37
- var import_cn = require("@/utils/cn");
37
+ var import_cn = require("../utils/cn");
38
38
  const alignClasses = {
39
39
  start: "left-0",
40
40
  center: "left-1/2 -translate-x-1/2",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
- import { cn } from "@/utils/cn";
4
+ import { cn } from "../utils/cn";
5
5
  const alignClasses = {
6
6
  start: "left-0",
7
7
  center: "left-1/2 -translate-x-1/2",
@@ -33,7 +33,7 @@ __export(craft_select_exports, {
33
33
  module.exports = __toCommonJS(craft_select_exports);
34
34
  var import_jsx_runtime = require("react/jsx-runtime");
35
35
  var React = __toESM(require("react"), 1);
36
- var import_cn = require("@/utils/cn");
36
+ var import_cn = require("../utils/cn");
37
37
  const CraftSelect = React.forwardRef(
38
38
  ({ className, tone, children, ...props }, ref) => {
39
39
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative w-full", "data-nc-theme": tone, children: [
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import { cn } from "@/utils/cn";
3
+ import { cn } from "../utils/cn";
4
4
  const CraftSelect = React.forwardRef(
5
5
  ({ className, tone, children, ...props }, ref) => {
6
6
  return /* @__PURE__ */ jsxs("div", { className: "relative w-full", "data-nc-theme": tone, children: [
@@ -22,7 +22,7 @@ __export(craft_skeleton_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(craft_skeleton_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_cn = require("@/utils/cn");
25
+ var import_cn = require("../utils/cn");
26
26
  function CraftSkeleton({ className, tone, ...props }) {
27
27
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
28
28
  "div",
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { cn } from "@/utils/cn";
2
+ import { cn } from "../utils/cn";
3
3
  function CraftSkeleton({ className, tone, ...props }) {
4
4
  return /* @__PURE__ */ jsx(
5
5
  "div",
@@ -22,8 +22,8 @@ __export(craft_stat_card_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(craft_stat_card_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_cn = require("@/utils/cn");
26
- var import_craft_card = require("@/components/craft-card");
25
+ var import_cn = require("../utils/cn");
26
+ var import_craft_card = require("../components/craft-card");
27
27
  const trendClasses = {
28
28
  up: "text-emerald-300",
29
29
  down: "text-rose-300",
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { cn } from "@/utils/cn";
3
- import { CraftCard } from "@/components/craft-card";
2
+ import { cn } from "../utils/cn";
3
+ import { CraftCard } from "../components/craft-card";
4
4
  const trendClasses = {
5
5
  up: "text-emerald-300",
6
6
  down: "text-rose-300",
@@ -24,7 +24,7 @@ __export(craft_submit_button_exports, {
24
24
  module.exports = __toCommonJS(craft_submit_button_exports);
25
25
  var import_jsx_runtime = require("react/jsx-runtime");
26
26
  var import_react_hook_form = require("react-hook-form");
27
- var import_cn = require("@/utils/cn");
27
+ var import_cn = require("../utils/cn");
28
28
  function CraftSubmitButton({
29
29
  className,
30
30
  tone,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useFormContext } from "react-hook-form";
4
- import { cn } from "@/utils/cn";
4
+ import { cn } from "../utils/cn";
5
5
  function CraftSubmitButton({
6
6
  className,
7
7
  tone,
@@ -33,7 +33,7 @@ __export(craft_switch_exports, {
33
33
  module.exports = __toCommonJS(craft_switch_exports);
34
34
  var import_jsx_runtime = require("react/jsx-runtime");
35
35
  var React = __toESM(require("react"), 1);
36
- var import_cn = require("@/utils/cn");
36
+ var import_cn = require("../utils/cn");
37
37
  const CraftSwitch = React.forwardRef(
38
38
  ({ className, tone, label, ...props }, ref) => {
39
39
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import { cn } from "@/utils/cn";
3
+ import { cn } from "../utils/cn";
4
4
  const CraftSwitch = React.forwardRef(
5
5
  ({ className, tone, label, ...props }, ref) => {
6
6
  return /* @__PURE__ */ jsxs(
@@ -22,8 +22,8 @@ __export(craft_table_toolbar_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(craft_table_toolbar_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_cn = require("@/utils/cn");
26
- var import_craft_input = require("@/components/craft-input");
25
+ var import_cn = require("../utils/cn");
26
+ var import_craft_input = require("../components/craft-input");
27
27
  function CraftTableToolbar({
28
28
  title,
29
29
  description,
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { cn } from "@/utils/cn";
3
- import { CraftInput } from "@/components/craft-input";
2
+ import { cn } from "../utils/cn";
3
+ import { CraftInput } from "../components/craft-input";
4
4
  function CraftTableToolbar({
5
5
  title,
6
6
  description,
@@ -34,7 +34,7 @@ __export(craft_tabs_exports, {
34
34
  module.exports = __toCommonJS(craft_tabs_exports);
35
35
  var import_jsx_runtime = require("react/jsx-runtime");
36
36
  var React = __toESM(require("react"), 1);
37
- var import_cn = require("@/utils/cn");
37
+ var import_cn = require("../utils/cn");
38
38
  function CraftTabs({
39
39
  value,
40
40
  defaultValue,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
- import { cn } from "@/utils/cn";
4
+ import { cn } from "../utils/cn";
5
5
  function CraftTabs({
6
6
  value,
7
7
  defaultValue,
@@ -33,7 +33,7 @@ __export(craft_textarea_exports, {
33
33
  module.exports = __toCommonJS(craft_textarea_exports);
34
34
  var import_jsx_runtime = require("react/jsx-runtime");
35
35
  var React = __toESM(require("react"), 1);
36
- var import_cn = require("@/utils/cn");
36
+ var import_cn = require("../utils/cn");
37
37
  const CraftTextarea = React.forwardRef(
38
38
  ({ className, tone, rows = 4, ...props }, ref) => {
39
39
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "relative w-full", "data-nc-theme": tone, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import { cn } from "@/utils/cn";
3
+ import { cn } from "../utils/cn";
4
4
  const CraftTextarea = React.forwardRef(
5
5
  ({ className, tone, rows = 4, ...props }, ref) => {
6
6
  return /* @__PURE__ */ jsx("div", { className: "relative w-full", "data-nc-theme": tone, children: /* @__PURE__ */ jsx(
@@ -35,7 +35,7 @@ __export(craft_toast_exports, {
35
35
  module.exports = __toCommonJS(craft_toast_exports);
36
36
  var import_jsx_runtime = require("react/jsx-runtime");
37
37
  var React = __toESM(require("react"), 1);
38
- var import_cn = require("@/utils/cn");
38
+ var import_cn = require("../utils/cn");
39
39
  const variantClasses = {
40
40
  info: "border-[color:rgb(var(--nc-accent-1)/0.4)]",
41
41
  success: "border-emerald-400/40",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
- import { cn } from "@/utils/cn";
4
+ import { cn } from "../utils/cn";
5
5
  const variantClasses = {
6
6
  info: "border-[color:rgb(var(--nc-accent-1)/0.4)]",
7
7
  success: "border-emerald-400/40",
@@ -34,7 +34,7 @@ __export(craft_tooltip_exports, {
34
34
  module.exports = __toCommonJS(craft_tooltip_exports);
35
35
  var import_jsx_runtime = require("react/jsx-runtime");
36
36
  var React = __toESM(require("react"), 1);
37
- var import_cn = require("@/utils/cn");
37
+ var import_cn = require("../utils/cn");
38
38
  function CraftTooltip({ content, tone, children, side = "top" }) {
39
39
  const [open, setOpen] = React.useState(false);
40
40
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
- import { cn } from "@/utils/cn";
4
+ import { cn } from "../utils/cn";
5
5
  function CraftTooltip({ content, tone, children, side = "top" }) {
6
6
  const [open, setOpen] = React.useState(false);
7
7
  return /* @__PURE__ */ jsxs(
@@ -22,7 +22,7 @@ __export(glass_card_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(glass_card_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_cn = require("@/utils/cn");
25
+ var import_cn = require("../utils/cn");
26
26
  const intensityClasses = {
27
27
  subtle: "backdrop-blur-md bg-opacity-50",
28
28
  medium: "backdrop-blur-xl bg-opacity-70",
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { cn } from "@/utils/cn";
2
+ import { cn } from "../utils/cn";
3
3
  const intensityClasses = {
4
4
  subtle: "backdrop-blur-md bg-opacity-50",
5
5
  medium: "backdrop-blur-xl bg-opacity-70",
@@ -22,7 +22,7 @@ __export(app_shell_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(app_shell_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_cn = require("@/utils/cn");
25
+ var import_cn = require("../../utils/cn");
26
26
  function AppShell({ className, sidebar, topNav, children, ...props }) {
27
27
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
28
28
  "div",
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { cn } from "@/utils/cn";
2
+ import { cn } from "../../utils/cn";
3
3
  function AppShell({ className, sidebar, topNav, children, ...props }) {
4
4
  return /* @__PURE__ */ jsxs(
5
5
  "div",
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(app_template_exports);
35
35
  var import_jsx_runtime = require("react/jsx-runtime");
36
36
  var React = __toESM(require("react"), 1);
37
37
  var import_app_shell = require("./app-shell");
38
- var import_craft_icon = require("@/components/craft-icon");
38
+ var import_craft_icon = require("../../components/craft-icon");
39
39
  var import_breadcrumbs = require("./breadcrumbs");
40
40
  var import_sidebar = require("./sidebar");
41
41
  var import_top_nav = require("./top-nav");
@@ -2,7 +2,7 @@
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
4
  import { AppShell } from "./app-shell";
5
- import { CraftIcon } from "@/components/craft-icon";
5
+ import { CraftIcon } from "../../components/craft-icon";
6
6
  import { Breadcrumbs } from "./breadcrumbs";
7
7
  import { Sidebar } from "./sidebar";
8
8
  import { TopNav } from "./top-nav";
@@ -22,7 +22,7 @@ __export(auth_layout_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(auth_layout_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_cn = require("@/utils/cn");
25
+ var import_cn = require("../../utils/cn");
26
26
  function AuthLayout({
27
27
  className,
28
28
  title,
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { cn } from "@/utils/cn";
2
+ import { cn } from "../../utils/cn";
3
3
  function AuthLayout({
4
4
  className,
5
5
  title,
@@ -22,7 +22,7 @@ __export(breadcrumbs_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(breadcrumbs_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_cn = require("@/utils/cn");
25
+ var import_cn = require("../../utils/cn");
26
26
  function Breadcrumbs({ className, items, ...props }) {
27
27
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("nav", { className: (0, import_cn.cn)("flex items-center text-sm text-[rgb(var(--nc-fg-muted))]", className), ...props, children: items.map((item, index) => {
28
28
  const content = item.href ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { href: item.href, className: "transition hover:text-[rgb(var(--nc-fg))]", children: item.label }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-[rgb(var(--nc-fg))]", children: item.label });
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { cn } from "@/utils/cn";
2
+ import { cn } from "../../utils/cn";
3
3
  function Breadcrumbs({ className, items, ...props }) {
4
4
  return /* @__PURE__ */ jsx("nav", { className: cn("flex items-center text-sm text-[rgb(var(--nc-fg-muted))]", className), ...props, children: items.map((item, index) => {
5
5
  const content = item.href ? /* @__PURE__ */ jsx("a", { href: item.href, className: "transition hover:text-[rgb(var(--nc-fg))]", children: item.label }) : /* @__PURE__ */ jsx("span", { className: "text-[rgb(var(--nc-fg))]", children: item.label });
@@ -22,7 +22,7 @@ __export(container_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(container_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_cn = require("@/utils/cn");
25
+ var import_cn = require("../../utils/cn");
26
26
  const sizeClasses = {
27
27
  sm: "max-w-3xl",
28
28
  md: "max-w-5xl",
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { cn } from "@/utils/cn";
2
+ import { cn } from "../../utils/cn";
3
3
  const sizeClasses = {
4
4
  sm: "max-w-3xl",
5
5
  md: "max-w-5xl",
@@ -22,7 +22,7 @@ __export(grid_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(grid_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_cn = require("@/utils/cn");
25
+ var import_cn = require("../../utils/cn");
26
26
  const colClasses = {
27
27
  1: "grid-cols-1",
28
28
  2: "grid-cols-1 md:grid-cols-2",
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { cn } from "@/utils/cn";
2
+ import { cn } from "../../utils/cn";
3
3
  const colClasses = {
4
4
  1: "grid-cols-1",
5
5
  2: "grid-cols-1 md:grid-cols-2",
@@ -22,7 +22,7 @@ __export(page_header_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(page_header_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_cn = require("@/utils/cn");
25
+ var import_cn = require("../../utils/cn");
26
26
  function PageHeader({
27
27
  className,
28
28
  title,
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { cn } from "@/utils/cn";
2
+ import { cn } from "../../utils/cn";
3
3
  function PageHeader({
4
4
  className,
5
5
  title,
@@ -22,7 +22,7 @@ __export(sidebar_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(sidebar_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_cn = require("@/utils/cn");
25
+ var import_cn = require("../../utils/cn");
26
26
  function Sidebar({ className, title, items, footer, ...props }) {
27
27
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
28
28
  "aside",
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { cn } from "@/utils/cn";
2
+ import { cn } from "../../utils/cn";
3
3
  function Sidebar({ className, title, items, footer, ...props }) {
4
4
  return /* @__PURE__ */ jsxs(
5
5
  "aside",
@@ -22,7 +22,7 @@ __export(top_nav_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(top_nav_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_cn = require("@/utils/cn");
25
+ var import_cn = require("../../utils/cn");
26
26
  function TopNav({ className, title, actions, breadcrumb, ...props }) {
27
27
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
28
28
  "header",
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { cn } from "@/utils/cn";
2
+ import { cn } from "../../utils/cn";
3
3
  function TopNav({ className, title, actions, breadcrumb, ...props }) {
4
4
  return /* @__PURE__ */ jsxs(
5
5
  "header",
@@ -23,7 +23,7 @@ __export(theme_switcher_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(theme_switcher_exports);
25
25
  var import_jsx_runtime = require("react/jsx-runtime");
26
- var import_cn = require("@/utils/cn");
26
+ var import_cn = require("../utils/cn");
27
27
  var import_theme_context = require("@/theme/theme-context");
28
28
  const MODE_OPTIONS = ["system", "light", "dark"];
29
29
  function ThemeSwitcher({ className, showLabels = true, ...props }) {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { cn } from "@/utils/cn";
3
+ import { cn } from "../utils/cn";
4
4
  import { THEME_NAMES, useTheme } from "@/theme/theme-context";
5
5
  const MODE_OPTIONS = ["system", "light", "dark"];
6
6
  function ThemeSwitcher({ className, showLabels = true, ...props }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jameskabz/nextcraft-ui",
3
- "version": "0.6.5",
3
+ "version": "0.6.7",
4
4
  "description": "Next.js + Tailwind UI components with a bold, crafted aesthetic.",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -27,31 +27,6 @@
27
27
  "import": "./dist/index.js",
28
28
  "require": "./dist/index.cjs"
29
29
  },
30
- "./components": {
31
- "types": "./dist/craft/components.d.ts",
32
- "import": "./dist/craft/components.js",
33
- "require": "./dist/craft/components.cjs"
34
- },
35
- "./layout": {
36
- "types": "./dist/craft/layout.d.ts",
37
- "import": "./dist/craft/layout.js",
38
- "require": "./dist/craft/layout.cjs"
39
- },
40
- "./forms": {
41
- "types": "./dist/craft/forms.d.ts",
42
- "import": "./dist/craft/forms.js",
43
- "require": "./dist/craft/forms.cjs"
44
- },
45
- "./theme": {
46
- "types": "./dist/craft/theme.d.ts",
47
- "import": "./dist/craft/theme.js",
48
- "require": "./dist/craft/theme.cjs"
49
- },
50
- "./table": {
51
- "types": "./dist/craft/table.d.ts",
52
- "import": "./dist/craft/table.js",
53
- "require": "./dist/craft/table.cjs"
54
- },
55
30
  "./styles.css": "./dist/styles.css"
56
31
  },
57
32
  "sideEffects": [
@@ -62,7 +37,7 @@
62
37
  },
63
38
  "scripts": {
64
39
  "dev": "next dev",
65
- "build": "tsup && npm run build:css",
40
+ "build": "tsup && tsc-alias -p tsconfig.lib.json --outDir dist && npm run build:css",
66
41
  "build:css": "tailwindcss -i ./src/app/globals.css -o ./dist/styles.css",
67
42
  "lint": "eslint .",
68
43
  "typecheck": "tsc -p tsconfig.lib.json --noEmit",
@@ -97,6 +72,7 @@
97
72
  "react-dom": "19.2.3",
98
73
  "react-hook-form": "^7.71.1",
99
74
  "tailwindcss": "^4",
75
+ "tsc-alias": "^1.8.8",
100
76
  "tsup": "^8.5.0",
101
77
  "typescript": "^5"
102
78
  }
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
- var types_exports = {};
16
- module.exports = __toCommonJS(types_exports);
17
- //# sourceMappingURL=types.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/forms/types.ts"],"sourcesContent":["export type { CraftFormProps } from \"@/components/craft-form\";\nexport type {\n CraftFormBuilderProps,\n CraftFormBuilderField,\n} from \"@/components/craft-form-builder\";\nexport type {\n CraftFormFieldProps,\n CraftFormFieldOption,\n CraftFormFieldType,\n} from \"@/components/craft-form-field\";\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1,7 +0,0 @@
1
- export { CraftFormProps } from '../craft-form.cjs';
2
- export { CraftFormBuilderField, CraftFormBuilderProps } from '../craft-form-builder.cjs';
3
- export { CraftFormFieldOption, CraftFormFieldProps, CraftFormFieldType } from '../craft-form-field.cjs';
4
- import 'react/jsx-runtime';
5
- import 'react';
6
- import 'react-hook-form';
7
- import '../../theme-context-EVI9PfKv.cjs';
@@ -1,7 +0,0 @@
1
- export { CraftFormProps } from '../craft-form.js';
2
- export { CraftFormBuilderField, CraftFormBuilderProps } from '../craft-form-builder.js';
3
- export { CraftFormFieldOption, CraftFormFieldProps, CraftFormFieldType } from '../craft-form-field.js';
4
- import 'react/jsx-runtime';
5
- import 'react';
6
- import 'react-hook-form';
7
- import '../../theme-context-EVI9PfKv.js';
@@ -1 +0,0 @@
1
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var types_exports = {};
20
- __export(types_exports, {
21
- layoutConfigSchema: () => import_layout_config.layoutConfigSchema
22
- });
23
- module.exports = __toCommonJS(types_exports);
24
- var import_layout_config = require("./layout-config");
25
- // Annotate the CommonJS export names for ESM import in node:
26
- 0 && (module.exports = {
27
- layoutConfigSchema
28
- });
29
- //# sourceMappingURL=types.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/layout/types.ts"],"sourcesContent":["export type {\n LayoutConfig,\n LayoutSidebarItem,\n LayoutBreadcrumbItem,\n LayoutIconName,\n} from \"./layout-config\";\nexport { layoutConfigSchema } from \"./layout-config\";\n\nexport type { BreadcrumbItem, BreadcrumbsProps } from \"./breadcrumbs\";\nexport type { SidebarItem, SidebarProps } from \"./sidebar\";\nexport type { TopNavProps } from \"./top-nav\";\nexport type { AppShellProps } from \"./app-shell\";\nexport type { AppTemplateProps } from \"./app-template\";\nexport type { PageHeaderProps } from \"./page-header\";\nexport type { AuthLayoutProps } from \"./auth-layout\";\nexport type { ContainerProps } from \"./container\";\nexport type { GridProps } from \"./grid\";\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,2BAAmC;","names":[]}
@@ -1,12 +0,0 @@
1
- export { LayoutBreadcrumbItem, LayoutConfig, LayoutIconName, LayoutSidebarItem, layoutConfigSchema } from './layout-config.cjs';
2
- export { BreadcrumbItem, BreadcrumbsProps } from './breadcrumbs.cjs';
3
- export { SidebarItem, SidebarProps } from './sidebar.cjs';
4
- export { TopNavProps } from './top-nav.cjs';
5
- export { AppShellProps } from './app-shell.cjs';
6
- export { AppTemplateProps } from './app-template.cjs';
7
- export { PageHeaderProps } from './page-header.cjs';
8
- export { AuthLayoutProps } from './auth-layout.cjs';
9
- export { ContainerProps } from './container.cjs';
10
- export { GridProps } from './grid.cjs';
11
- import 'react/jsx-runtime';
12
- import 'react';
@@ -1,12 +0,0 @@
1
- export { LayoutBreadcrumbItem, LayoutConfig, LayoutIconName, LayoutSidebarItem, layoutConfigSchema } from './layout-config.js';
2
- export { BreadcrumbItem, BreadcrumbsProps } from './breadcrumbs.js';
3
- export { SidebarItem, SidebarProps } from './sidebar.js';
4
- export { TopNavProps } from './top-nav.js';
5
- export { AppShellProps } from './app-shell.js';
6
- export { AppTemplateProps } from './app-template.js';
7
- export { PageHeaderProps } from './page-header.js';
8
- export { AuthLayoutProps } from './auth-layout.js';
9
- export { ContainerProps } from './container.js';
10
- export { GridProps } from './grid.js';
11
- import 'react/jsx-runtime';
12
- import 'react';
@@ -1,5 +0,0 @@
1
- import { layoutConfigSchema } from "./layout-config";
2
- export {
3
- layoutConfigSchema
4
- };
5
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/layout/types.ts"],"sourcesContent":["export type {\n LayoutConfig,\n LayoutSidebarItem,\n LayoutBreadcrumbItem,\n LayoutIconName,\n} from \"./layout-config\";\nexport { layoutConfigSchema } from \"./layout-config\";\n\nexport type { BreadcrumbItem, BreadcrumbsProps } from \"./breadcrumbs\";\nexport type { SidebarItem, SidebarProps } from \"./sidebar\";\nexport type { TopNavProps } from \"./top-nav\";\nexport type { AppShellProps } from \"./app-shell\";\nexport type { AppTemplateProps } from \"./app-template\";\nexport type { PageHeaderProps } from \"./page-header\";\nexport type { AuthLayoutProps } from \"./auth-layout\";\nexport type { ContainerProps } from \"./container\";\nexport type { GridProps } from \"./grid\";\n"],"mappings":"AAMA,SAAS,0BAA0B;","names":[]}