@deepnoid/ui 0.1.29 → 0.1.30

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 (102) hide show
  1. package/.turbo/turbo-build.log +179 -169
  2. package/dist/chunk-6PN3DGOE.mjs +77 -0
  3. package/dist/{chunk-QJJKJYNR.mjs → chunk-BFOK4HVC.mjs} +2 -2
  4. package/dist/chunk-CEZQCD6Z.mjs +79 -0
  5. package/dist/{chunk-III2QUWF.mjs → chunk-G67WUZO3.mjs} +1 -1
  6. package/dist/{chunk-RCJOJPRS.mjs → chunk-GLMM253Q.mjs} +40 -30
  7. package/dist/{chunk-BB7MFKNQ.mjs → chunk-IBI3OVQI.mjs} +1 -1
  8. package/dist/{chunk-LR3SWRB4.mjs → chunk-IC25OKBJ.mjs} +5 -5
  9. package/dist/{chunk-ECMBAKSJ.mjs → chunk-K7V4VE7R.mjs} +5 -5
  10. package/dist/chunk-MZ76AA76.mjs +1 -0
  11. package/dist/{chunk-X4F7JYBA.mjs → chunk-NFQMXW4Z.mjs} +36 -14
  12. package/dist/{chunk-3KVZDFMV.mjs → chunk-NKH3OF6I.mjs} +3 -3
  13. package/dist/chunk-P7YYNA6L.mjs +67 -0
  14. package/dist/{chunk-KXA73VTJ.mjs → chunk-QM4ZSQYX.mjs} +4 -4
  15. package/dist/components/backdrop/backdrop.mjs +2 -2
  16. package/dist/components/backdrop/index.mjs +2 -2
  17. package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
  18. package/dist/components/breadcrumb/index.mjs +5 -5
  19. package/dist/components/button/button.mjs +2 -2
  20. package/dist/components/button/icon-button.mjs +2 -2
  21. package/dist/components/button/index.mjs +4 -4
  22. package/dist/components/button/text-button.mjs +2 -2
  23. package/dist/components/checkbox/checkbox.mjs +2 -2
  24. package/dist/components/checkbox/index.mjs +2 -2
  25. package/dist/components/chip/chip.mjs +2 -2
  26. package/dist/components/chip/index.mjs +2 -2
  27. package/dist/components/dateTimePicker/calendar.mjs +2 -2
  28. package/dist/components/dateTimePicker/dateTimePicker.mjs +6 -6
  29. package/dist/components/dateTimePicker/index.mjs +6 -6
  30. package/dist/components/dateTimePicker/timePicker.mjs +4 -4
  31. package/dist/components/fileUpload/fileUpload.mjs +6 -6
  32. package/dist/components/fileUpload/index.mjs +6 -6
  33. package/dist/components/input/index.mjs +2 -2
  34. package/dist/components/input/input.mjs +2 -2
  35. package/dist/components/list/index.mjs +3 -3
  36. package/dist/components/list/list.mjs +2 -2
  37. package/dist/components/list/listItem.mjs +2 -2
  38. package/dist/components/modal/index.mjs +6 -6
  39. package/dist/components/modal/modal.mjs +6 -6
  40. package/dist/components/pagination/index.mjs +3 -3
  41. package/dist/components/pagination/pagination.mjs +3 -3
  42. package/dist/components/radio/index.mjs +2 -2
  43. package/dist/components/radio/radio.mjs +2 -2
  44. package/dist/components/select/index.mjs +2 -2
  45. package/dist/components/select/select.mjs +2 -2
  46. package/dist/components/skeleton/index.d.mts +2 -0
  47. package/dist/components/skeleton/index.d.ts +2 -0
  48. package/dist/components/skeleton/index.js +141 -0
  49. package/dist/components/skeleton/index.mjs +10 -0
  50. package/dist/components/skeleton/skeleton.d.mts +14 -0
  51. package/dist/components/skeleton/skeleton.d.ts +14 -0
  52. package/dist/components/skeleton/skeleton.js +135 -0
  53. package/dist/components/skeleton/skeleton.mjs +9 -0
  54. package/dist/components/table/index.js +692 -614
  55. package/dist/components/table/index.mjs +11 -9
  56. package/dist/components/table/table-body.d.mts +6 -4
  57. package/dist/components/table/table-body.d.ts +6 -4
  58. package/dist/components/table/table-body.js +115 -64
  59. package/dist/components/table/table-body.mjs +5 -3
  60. package/dist/components/table/table-head.d.mts +3 -1
  61. package/dist/components/table/table-head.d.ts +3 -1
  62. package/dist/components/table/table-head.js +107 -21
  63. package/dist/components/table/table-head.mjs +5 -3
  64. package/dist/components/table/table.d.mts +1 -0
  65. package/dist/components/table/table.d.ts +1 -0
  66. package/dist/components/table/table.js +683 -605
  67. package/dist/components/table/table.mjs +9 -7
  68. package/dist/components/tabs/index.mjs +2 -2
  69. package/dist/components/tabs/tabs.mjs +2 -2
  70. package/dist/components/toast/index.mjs +3 -3
  71. package/dist/components/toast/toast.mjs +2 -2
  72. package/dist/components/toast/use-toast.mjs +3 -3
  73. package/dist/components/tooltip/index.mjs +2 -2
  74. package/dist/components/tooltip/tooltip.mjs +2 -2
  75. package/dist/components/tree/index.js +33 -11
  76. package/dist/components/tree/index.mjs +2 -2
  77. package/dist/components/tree/tree.d.mts +10 -8
  78. package/dist/components/tree/tree.d.ts +10 -8
  79. package/dist/components/tree/tree.js +33 -11
  80. package/dist/components/tree/tree.mjs +2 -2
  81. package/dist/index.d.mts +1 -0
  82. package/dist/index.d.ts +1 -0
  83. package/dist/index.js +515 -413
  84. package/dist/index.mjs +52 -47
  85. package/package.json +1 -1
  86. package/dist/chunk-26MNALVL.mjs +0 -47
  87. package/dist/chunk-A5KQHWS3.mjs +0 -94
  88. package/dist/{chunk-KLUC2BV6.mjs → chunk-272FMLIL.mjs} +3 -3
  89. package/dist/{chunk-SSMMWMQC.mjs → chunk-2YMAKIZ6.mjs} +3 -3
  90. package/dist/{chunk-6K3E5BVO.mjs → chunk-7TAGGLNY.mjs} +3 -3
  91. package/dist/{chunk-X6D7C7QZ.mjs → chunk-A7RU3FU5.mjs} +3 -3
  92. package/dist/{chunk-YLRYHUTW.mjs → chunk-D6QI3DJG.mjs} +3 -3
  93. package/dist/{chunk-UFVQPPPW.mjs → chunk-HIVPDIEP.mjs} +3 -3
  94. package/dist/{chunk-P5QCU457.mjs → chunk-LL6F3WDX.mjs} +3 -3
  95. package/dist/{chunk-7W2ZI2DD.mjs → chunk-MEY4IL7D.mjs} +3 -3
  96. package/dist/{chunk-33LANVZV.mjs → chunk-QIRL6HY6.mjs} +3 -3
  97. package/dist/{chunk-W45H2ZMW.mjs → chunk-RT3S3VVJ.mjs} +3 -3
  98. package/dist/{chunk-7J3KVOTS.mjs → chunk-UB4YBFOT.mjs} +3 -3
  99. package/dist/{chunk-EHRFXDSN.mjs → chunk-VCVQMPC7.mjs} +3 -3
  100. package/dist/{chunk-2PKM7SLZ.mjs → chunk-WFMFC7R6.mjs} +3 -3
  101. package/dist/{chunk-Y6XQTWB5.mjs → chunk-WLNLVX7Q.mjs} +3 -3
  102. package/dist/{chunk-IL5ENWCR.mjs → chunk-Z2537DF6.mjs} +3 -3
@@ -0,0 +1,141 @@
1
+ "use client";
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/components/skeleton/index.ts
22
+ var skeleton_exports = {};
23
+ __export(skeleton_exports, {
24
+ Skeleton: () => skeleton_default
25
+ });
26
+ module.exports = __toCommonJS(skeleton_exports);
27
+
28
+ // src/components/skeleton/skeleton.tsx
29
+ var import_tailwind_variants = require("tailwind-variants");
30
+
31
+ // src/utils/clsx.ts
32
+ function clsx(...args) {
33
+ var i = 0, tmp, x, str = "";
34
+ while (i < args.length) {
35
+ if (tmp = args[i++]) {
36
+ if (x = toVal(tmp)) {
37
+ str && (str += " ");
38
+ str += x;
39
+ }
40
+ }
41
+ }
42
+ return str;
43
+ }
44
+ function toVal(mix) {
45
+ var k, y, str = "";
46
+ if (typeof mix === "string" || typeof mix === "number") {
47
+ str += mix;
48
+ } else if (typeof mix === "object") {
49
+ if (Array.isArray(mix)) {
50
+ var len = mix.length;
51
+ for (k = 0; k < len; k++) {
52
+ if (mix[k]) {
53
+ if (y = toVal(mix[k])) {
54
+ str && (str += " ");
55
+ str += y;
56
+ }
57
+ }
58
+ }
59
+ } else {
60
+ for (y in mix) {
61
+ if (mix[y]) {
62
+ str && (str += " ");
63
+ str += y;
64
+ }
65
+ }
66
+ }
67
+ }
68
+ return str;
69
+ }
70
+
71
+ // src/components/skeleton/skeleton.tsx
72
+ var import_jsx_runtime = require("react/jsx-runtime");
73
+ var Skeleton = ({ color = "primary", className, speed = "normal", rounded = "md" }) => {
74
+ const speedMap = {
75
+ fast: "0.7s",
76
+ normal: "1.2s",
77
+ slow: "2s"
78
+ };
79
+ const slots = skeletonStyle();
80
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
81
+ "div",
82
+ {
83
+ className: clsx(slots.base({ color, rounded }), className),
84
+ style: {
85
+ "--shimmer-duration": speedMap[speed]
86
+ },
87
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", { children: `@keyframes shimmer {
88
+ 100% {
89
+ transform: translateX(100%);
90
+ }
91
+ }
92
+ .skeleton-shimmer::before {
93
+ animation: shimmer var(--shimmer-duration) infinite linear;
94
+ }
95
+ ` })
96
+ }
97
+ );
98
+ };
99
+ Skeleton.displayName = "Skeleton";
100
+ var skeleton_default = Skeleton;
101
+ var skeletonStyle = (0, import_tailwind_variants.tv)({
102
+ slots: {
103
+ base: [
104
+ "relative",
105
+ "overflow-hidden",
106
+ "w-full",
107
+ "h-[18px]",
108
+ "skeleton-shimmer",
109
+ "before:absolute",
110
+ "before:inset-0",
111
+ "before:-translate-x-full",
112
+ "before:bg-gradient-to-r",
113
+ "before:from-transparent",
114
+ "before:via-white/40",
115
+ "before:to-transparent",
116
+ "before:content-['']"
117
+ ]
118
+ },
119
+ variants: {
120
+ color: {
121
+ primary: { base: "bg-primary-soft" },
122
+ secondary: { base: "bg-secondary-soft" },
123
+ neutral: { base: "bg-neutral-soft" }
124
+ },
125
+ rounded: {
126
+ sm: { base: "rounded-sm" },
127
+ md: { base: "rounded-md" },
128
+ lg: { base: "rounded-lg" },
129
+ xl: { base: "rounded-xl" },
130
+ full: { base: "rounded-full" }
131
+ }
132
+ },
133
+ defaultVariants: {
134
+ color: "primary",
135
+ rounded: "md"
136
+ }
137
+ });
138
+ // Annotate the CommonJS export names for ESM import in node:
139
+ 0 && (module.exports = {
140
+ Skeleton
141
+ });
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import "../../chunk-MZ76AA76.mjs";
3
+ import {
4
+ skeleton_default
5
+ } from "../../chunk-6PN3DGOE.mjs";
6
+ import "../../chunk-27Y6K5NK.mjs";
7
+ import "../../chunk-AC6TWLRT.mjs";
8
+ export {
9
+ skeleton_default as Skeleton
10
+ };
@@ -0,0 +1,14 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface SkeletonProps {
4
+ color?: "primary" | "secondary" | "neutral";
5
+ speed?: "fast" | "normal" | "slow";
6
+ rounded?: "sm" | "md" | "lg" | "xl" | "full";
7
+ className?: string;
8
+ }
9
+ declare const Skeleton: {
10
+ ({ color, className, speed, rounded }: SkeletonProps): react_jsx_runtime.JSX.Element;
11
+ displayName: string;
12
+ };
13
+
14
+ export { Skeleton as default };
@@ -0,0 +1,14 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface SkeletonProps {
4
+ color?: "primary" | "secondary" | "neutral";
5
+ speed?: "fast" | "normal" | "slow";
6
+ rounded?: "sm" | "md" | "lg" | "xl" | "full";
7
+ className?: string;
8
+ }
9
+ declare const Skeleton: {
10
+ ({ color, className, speed, rounded }: SkeletonProps): react_jsx_runtime.JSX.Element;
11
+ displayName: string;
12
+ };
13
+
14
+ export { Skeleton as default };
@@ -0,0 +1,135 @@
1
+ "use client";
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/components/skeleton/skeleton.tsx
22
+ var skeleton_exports = {};
23
+ __export(skeleton_exports, {
24
+ default: () => skeleton_default
25
+ });
26
+ module.exports = __toCommonJS(skeleton_exports);
27
+ var import_tailwind_variants = require("tailwind-variants");
28
+
29
+ // src/utils/clsx.ts
30
+ function clsx(...args) {
31
+ var i = 0, tmp, x, str = "";
32
+ while (i < args.length) {
33
+ if (tmp = args[i++]) {
34
+ if (x = toVal(tmp)) {
35
+ str && (str += " ");
36
+ str += x;
37
+ }
38
+ }
39
+ }
40
+ return str;
41
+ }
42
+ function toVal(mix) {
43
+ var k, y, str = "";
44
+ if (typeof mix === "string" || typeof mix === "number") {
45
+ str += mix;
46
+ } else if (typeof mix === "object") {
47
+ if (Array.isArray(mix)) {
48
+ var len = mix.length;
49
+ for (k = 0; k < len; k++) {
50
+ if (mix[k]) {
51
+ if (y = toVal(mix[k])) {
52
+ str && (str += " ");
53
+ str += y;
54
+ }
55
+ }
56
+ }
57
+ } else {
58
+ for (y in mix) {
59
+ if (mix[y]) {
60
+ str && (str += " ");
61
+ str += y;
62
+ }
63
+ }
64
+ }
65
+ }
66
+ return str;
67
+ }
68
+
69
+ // src/components/skeleton/skeleton.tsx
70
+ var import_jsx_runtime = require("react/jsx-runtime");
71
+ var Skeleton = ({ color = "primary", className, speed = "normal", rounded = "md" }) => {
72
+ const speedMap = {
73
+ fast: "0.7s",
74
+ normal: "1.2s",
75
+ slow: "2s"
76
+ };
77
+ const slots = skeletonStyle();
78
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
79
+ "div",
80
+ {
81
+ className: clsx(slots.base({ color, rounded }), className),
82
+ style: {
83
+ "--shimmer-duration": speedMap[speed]
84
+ },
85
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", { children: `@keyframes shimmer {
86
+ 100% {
87
+ transform: translateX(100%);
88
+ }
89
+ }
90
+ .skeleton-shimmer::before {
91
+ animation: shimmer var(--shimmer-duration) infinite linear;
92
+ }
93
+ ` })
94
+ }
95
+ );
96
+ };
97
+ Skeleton.displayName = "Skeleton";
98
+ var skeleton_default = Skeleton;
99
+ var skeletonStyle = (0, import_tailwind_variants.tv)({
100
+ slots: {
101
+ base: [
102
+ "relative",
103
+ "overflow-hidden",
104
+ "w-full",
105
+ "h-[18px]",
106
+ "skeleton-shimmer",
107
+ "before:absolute",
108
+ "before:inset-0",
109
+ "before:-translate-x-full",
110
+ "before:bg-gradient-to-r",
111
+ "before:from-transparent",
112
+ "before:via-white/40",
113
+ "before:to-transparent",
114
+ "before:content-['']"
115
+ ]
116
+ },
117
+ variants: {
118
+ color: {
119
+ primary: { base: "bg-primary-soft" },
120
+ secondary: { base: "bg-secondary-soft" },
121
+ neutral: { base: "bg-neutral-soft" }
122
+ },
123
+ rounded: {
124
+ sm: { base: "rounded-sm" },
125
+ md: { base: "rounded-md" },
126
+ lg: { base: "rounded-lg" },
127
+ xl: { base: "rounded-xl" },
128
+ full: { base: "rounded-full" }
129
+ }
130
+ },
131
+ defaultVariants: {
132
+ color: "primary",
133
+ rounded: "md"
134
+ }
135
+ });
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ import {
3
+ skeleton_default
4
+ } from "../../chunk-6PN3DGOE.mjs";
5
+ import "../../chunk-27Y6K5NK.mjs";
6
+ import "../../chunk-AC6TWLRT.mjs";
7
+ export {
8
+ skeleton_default as default
9
+ };