@deepnoid/ui 0.1.19 → 0.1.21
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/.turbo/turbo-build.log +202 -183
- package/dist/assets/images/cogwheel.d.mts +2 -0
- package/dist/assets/images/cogwheel.d.ts +2 -0
- package/dist/assets/images/cogwheel.js +4 -0
- package/dist/assets/images/cogwheel.mjs +8 -0
- package/dist/assets/images/folder.d.mts +2 -0
- package/dist/assets/images/folder.d.ts +2 -0
- package/dist/assets/images/folder.js +4 -0
- package/dist/assets/images/folder.mjs +8 -0
- package/dist/chunk-2DLKV6TT.mjs +168 -0
- package/dist/{chunk-7TXQPX4O.mjs → chunk-2Y7IBUAZ.mjs} +19 -8
- package/dist/chunk-3BKCODIL.mjs +49 -0
- package/dist/{chunk-A7OXEUCC.mjs → chunk-3IU2RPSM.mjs} +75 -9
- package/dist/{chunk-3TJAGKKY.mjs → chunk-7CFOD7G4.mjs} +11 -9
- package/dist/chunk-7KUFDVGL.mjs +71 -0
- package/dist/chunk-7USF56CT.mjs +8 -0
- package/dist/{chunk-5ANQDLRS.mjs → chunk-DUPQBPI2.mjs} +4 -4
- package/dist/{chunk-K7Z6PVXE.mjs → chunk-EWZAHXN7.mjs} +7 -7
- package/dist/{chunk-BFM3LPBK.mjs → chunk-FBAR75U4.mjs} +4 -4
- package/dist/{chunk-RPDPB4JP.mjs → chunk-HQLSHEK6.mjs} +4 -4
- package/dist/{chunk-DADMVOYI.mjs → chunk-HWL7TPUN.mjs} +1 -1
- package/dist/chunk-IZM66FHP.mjs +8 -0
- package/dist/{chunk-QIDZXCYP.mjs → chunk-JHDYQCEE.mjs} +6 -6
- package/dist/chunk-MBLZYQCN.mjs +1 -0
- package/dist/{chunk-7A5M7DRD.mjs → chunk-MQI5SZWO.mjs} +7 -7
- package/dist/{chunk-3DPVPTHL.mjs → chunk-MV7RSV4D.mjs} +3 -3
- package/dist/chunk-MW7CSRIE.mjs +348 -0
- package/dist/chunk-OV7CZNXU.mjs +135 -0
- package/dist/{chunk-AG7AWQKH.mjs → chunk-Q6BZ76DI.mjs} +4 -4
- package/dist/{chunk-63WXGSTV.mjs → chunk-QHWFHOW2.mjs} +24 -14
- package/dist/{chunk-FONJYZKH.mjs → chunk-SDHQUYFI.mjs} +7 -7
- package/dist/{chunk-UHFJ7ZFM.mjs → chunk-UTC2D6GV.mjs} +6 -6
- package/dist/chunk-XGYQ6D3S.mjs +82 -0
- package/dist/{chunk-UYPVP36M.mjs → chunk-XQGD4ZIX.mjs} +1 -1
- package/dist/cogwheel-U2B3CWEL.png +0 -0
- package/dist/components/avatar/avatar.js +75 -9
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +75 -9
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +75 -9
- package/dist/components/breadcrumb/breadcrumb.mjs +9 -9
- package/dist/components/breadcrumb/index.js +75 -9
- package/dist/components/breadcrumb/index.mjs +9 -9
- package/dist/components/button/button.js +75 -9
- package/dist/components/button/button.mjs +5 -5
- package/dist/components/button/icon-button.js +75 -9
- package/dist/components/button/icon-button.mjs +5 -5
- package/dist/components/button/index.js +75 -9
- package/dist/components/button/index.mjs +9 -9
- package/dist/components/button/text-button.mjs +3 -3
- package/dist/components/checkbox/checkbox.mjs +3 -3
- package/dist/components/checkbox/index.mjs +3 -3
- package/dist/components/chip/chip.js +75 -9
- package/dist/components/chip/chip.mjs +4 -4
- package/dist/components/chip/index.js +75 -9
- package/dist/components/chip/index.mjs +4 -4
- package/dist/components/dateTimePicker/calendar.js +75 -9
- package/dist/components/dateTimePicker/calendar.mjs +4 -4
- package/dist/components/dateTimePicker/dateTimePicker.js +75 -9
- package/dist/components/dateTimePicker/dateTimePicker.mjs +9 -9
- package/dist/components/dateTimePicker/index.js +75 -9
- package/dist/components/dateTimePicker/index.mjs +9 -9
- package/dist/components/dateTimePicker/timePicker.js +75 -9
- package/dist/components/dateTimePicker/timePicker.mjs +7 -7
- package/dist/components/icon/Icon.d.mts +6 -2
- package/dist/components/icon/Icon.d.ts +6 -2
- package/dist/components/icon/Icon.js +75 -9
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +75 -9
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +2 -1
- package/dist/components/icon/template.d.ts +2 -1
- package/dist/components/icon/template.js +75 -9
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +89 -12
- package/dist/components/input/index.mjs +5 -5
- package/dist/components/input/input.js +89 -12
- package/dist/components/input/input.mjs +5 -5
- package/dist/components/list/index.js +75 -9
- package/dist/components/list/index.mjs +8 -8
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.js +75 -9
- package/dist/components/list/listItem.mjs +5 -5
- package/dist/components/modal/index.d.mts +0 -3
- package/dist/components/modal/index.d.ts +0 -3
- package/dist/components/modal/index.js +205 -158
- package/dist/components/modal/index.mjs +11 -9
- package/dist/components/modal/modal.d.mts +43 -105
- package/dist/components/modal/modal.d.ts +43 -105
- package/dist/components/modal/modal.js +206 -164
- package/dist/components/modal/modal.mjs +12 -12
- package/dist/components/pagination/index.js +89 -12
- package/dist/components/pagination/index.mjs +6 -6
- package/dist/components/pagination/pagination.js +89 -12
- package/dist/components/pagination/pagination.mjs +6 -6
- package/dist/components/radio/index.mjs +3 -3
- package/dist/components/radio/radio.mjs +3 -3
- package/dist/components/ripple/index.mjs +3 -3
- package/dist/components/select/index.d.mts +1 -1
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.js +376 -295
- package/dist/components/select/index.mjs +5 -6
- package/dist/components/select/select.d.mts +190 -177
- package/dist/components/select/select.d.ts +190 -177
- package/dist/components/select/select.js +376 -295
- package/dist/components/select/select.mjs +5 -6
- package/dist/components/table/form-table.d.mts +52 -0
- package/dist/components/table/form-table.d.ts +52 -0
- package/dist/components/table/form-table.js +365 -0
- package/dist/components/table/form-table.mjs +9 -0
- package/dist/components/table/index.d.mts +2 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.js +162 -30
- package/dist/components/table/index.mjs +15 -11
- package/dist/components/table/table-body.d.mts +3 -2
- package/dist/components/table/table-body.d.ts +3 -2
- package/dist/components/table/table-body.js +23 -13
- package/dist/components/table/table-body.mjs +4 -4
- package/dist/components/table/table-head.d.mts +2 -2
- package/dist/components/table/table-head.d.ts +2 -2
- package/dist/components/table/table-head.js +2 -2
- package/dist/components/table/table-head.mjs +4 -4
- package/dist/components/table/table.d.mts +2 -1
- package/dist/components/table/table.d.ts +2 -1
- package/dist/components/table/table.js +119 -30
- package/dist/components/table/table.mjs +10 -10
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/toast/index.js +239 -97
- package/dist/components/toast/index.mjs +6 -5
- package/dist/components/toast/toast.d.mts +40 -81
- package/dist/components/toast/toast.d.ts +40 -81
- package/dist/components/toast/toast.js +210 -56
- package/dist/components/toast/toast.mjs +5 -4
- package/dist/components/toast/use-toast.d.mts +6 -10
- package/dist/components/toast/use-toast.d.ts +6 -10
- package/dist/components/toast/use-toast.js +239 -97
- package/dist/components/toast/use-toast.mjs +6 -5
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/components/tree/index.d.mts +2 -0
- package/dist/components/tree/index.d.ts +2 -0
- package/dist/components/tree/index.js +4371 -0
- package/dist/components/tree/index.mjs +15 -0
- package/dist/components/tree/tree.d.mts +20 -0
- package/dist/components/tree/tree.d.ts +20 -0
- package/dist/components/{select/option.js → tree/tree.js} +146 -74
- package/dist/components/tree/tree.mjs +14 -0
- package/dist/folder-RO3QTLGS.svg +9 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +681 -545
- package/dist/index.mjs +71 -62
- package/package.json +1 -1
- package/types/images.d.ts +14 -0
- package/dist/chunk-5OBP42D6.mjs +0 -117
- package/dist/chunk-HDNQOLUJ.mjs +0 -83
- package/dist/chunk-MJT6ZW4C.mjs +0 -255
- package/dist/chunk-P6NVCCBZ.mjs +0 -76
- package/dist/chunk-RXIFDECK.mjs +0 -213
- package/dist/chunk-S3QS5B7F.mjs +0 -61
- package/dist/components/select/option.d.mts +0 -17
- package/dist/components/select/option.d.ts +0 -17
- package/dist/components/select/option.mjs +0 -12
- package/dist/components/select/useSelect.d.mts +0 -31
- package/dist/components/select/useSelect.d.ts +0 -31
- package/dist/components/select/useSelect.js +0 -84
- package/dist/components/select/useSelect.mjs +0 -8
- package/dist/{chunk-D6QI3DJG.mjs → chunk-7H5XPHY6.mjs} +4 -4
- package/dist/{chunk-2UUH2MBF.mjs → chunk-DX3KXNP6.mjs} +0 -0
- package/dist/{chunk-Z2537DF6.mjs → chunk-IL5ENWCR.mjs} +3 -3
- package/dist/{chunk-WFMFC7R6.mjs → chunk-KCOHU7X7.mjs} +4 -4
- package/dist/{chunk-LL6F3WDX.mjs → chunk-P5QCU457.mjs} +3 -3
- package/dist/{chunk-2YMAKIZ6.mjs → chunk-SSMMWMQC.mjs} +3 -3
- package/dist/{chunk-HIVPDIEP.mjs → chunk-UFVQPPPW.mjs} +3 -3
- package/dist/{chunk-QIRL6HY6.mjs → chunk-YIIFWADW.mjs} +4 -4
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
select_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-P6NVCCBZ.mjs";
|
|
6
|
-
import "../../chunk-S3QS5B7F.mjs";
|
|
4
|
+
} from "../../chunk-MW7CSRIE.mjs";
|
|
7
5
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-A7OXEUCC.mjs";
|
|
10
|
-
import "../../chunk-4ZJFD3L3.mjs";
|
|
6
|
+
import "../../chunk-HWL7TPUN.mjs";
|
|
11
7
|
import "../../chunk-E3G5QXSH.mjs";
|
|
8
|
+
import "../../chunk-3IU2RPSM.mjs";
|
|
9
|
+
import "../../chunk-27Y6K5NK.mjs";
|
|
10
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
12
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
13
12
|
export {
|
|
14
13
|
select_default as default
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import * as tailwind_merge from 'tailwind-merge';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ReactNode, FormEvent } from 'react';
|
|
5
|
+
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
6
|
+
|
|
7
|
+
type TableRow = {
|
|
8
|
+
columns: ReactNode[];
|
|
9
|
+
columnClasses?: string[];
|
|
10
|
+
};
|
|
11
|
+
interface FormTableProps {
|
|
12
|
+
rows: TableRow[];
|
|
13
|
+
onSubmit?: (e: FormEvent<HTMLFormElement>) => void;
|
|
14
|
+
footer?: ReactNode;
|
|
15
|
+
classNames?: SlotsToClasses<FormTableSlots>;
|
|
16
|
+
}
|
|
17
|
+
declare const FormTable: react.ForwardRefExoticComponent<FormTableProps & react.RefAttributes<HTMLDivElement | HTMLFormElement>>;
|
|
18
|
+
|
|
19
|
+
declare const formTableStyle: tailwind_variants.TVReturnType<{
|
|
20
|
+
[key: string]: {
|
|
21
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
22
|
+
base?: tailwind_merge.ClassNameValue;
|
|
23
|
+
table?: tailwind_merge.ClassNameValue;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
} | {
|
|
27
|
+
[x: string]: {
|
|
28
|
+
[x: string]: tailwind_merge.ClassNameValue | {
|
|
29
|
+
base?: tailwind_merge.ClassNameValue;
|
|
30
|
+
table?: tailwind_merge.ClassNameValue;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
} | {}, {
|
|
34
|
+
base: string[];
|
|
35
|
+
table: string[];
|
|
36
|
+
}, undefined, {
|
|
37
|
+
[key: string]: {
|
|
38
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
39
|
+
base?: tailwind_merge.ClassNameValue;
|
|
40
|
+
table?: tailwind_merge.ClassNameValue;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
} | {}, {
|
|
44
|
+
base: string[];
|
|
45
|
+
table: string[];
|
|
46
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
47
|
+
base: string[];
|
|
48
|
+
table: string[];
|
|
49
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
50
|
+
type FormTableSlots = keyof ReturnType<typeof formTableStyle>;
|
|
51
|
+
|
|
52
|
+
export { FormTable as default };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import * as tailwind_merge from 'tailwind-merge';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ReactNode, FormEvent } from 'react';
|
|
5
|
+
import { SlotsToClasses } from '../../utils/types.js';
|
|
6
|
+
|
|
7
|
+
type TableRow = {
|
|
8
|
+
columns: ReactNode[];
|
|
9
|
+
columnClasses?: string[];
|
|
10
|
+
};
|
|
11
|
+
interface FormTableProps {
|
|
12
|
+
rows: TableRow[];
|
|
13
|
+
onSubmit?: (e: FormEvent<HTMLFormElement>) => void;
|
|
14
|
+
footer?: ReactNode;
|
|
15
|
+
classNames?: SlotsToClasses<FormTableSlots>;
|
|
16
|
+
}
|
|
17
|
+
declare const FormTable: react.ForwardRefExoticComponent<FormTableProps & react.RefAttributes<HTMLDivElement | HTMLFormElement>>;
|
|
18
|
+
|
|
19
|
+
declare const formTableStyle: tailwind_variants.TVReturnType<{
|
|
20
|
+
[key: string]: {
|
|
21
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
22
|
+
base?: tailwind_merge.ClassNameValue;
|
|
23
|
+
table?: tailwind_merge.ClassNameValue;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
} | {
|
|
27
|
+
[x: string]: {
|
|
28
|
+
[x: string]: tailwind_merge.ClassNameValue | {
|
|
29
|
+
base?: tailwind_merge.ClassNameValue;
|
|
30
|
+
table?: tailwind_merge.ClassNameValue;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
} | {}, {
|
|
34
|
+
base: string[];
|
|
35
|
+
table: string[];
|
|
36
|
+
}, undefined, {
|
|
37
|
+
[key: string]: {
|
|
38
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
39
|
+
base?: tailwind_merge.ClassNameValue;
|
|
40
|
+
table?: tailwind_merge.ClassNameValue;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
} | {}, {
|
|
44
|
+
base: string[];
|
|
45
|
+
table: string[];
|
|
46
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
47
|
+
base: string[];
|
|
48
|
+
table: string[];
|
|
49
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
50
|
+
type FormTableSlots = keyof ReturnType<typeof formTableStyle>;
|
|
51
|
+
|
|
52
|
+
export { FormTable as default };
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
+
};
|
|
12
|
+
var __export = (target, all) => {
|
|
13
|
+
for (var name in all)
|
|
14
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from))
|
|
19
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
+
mod
|
|
31
|
+
));
|
|
32
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
+
|
|
34
|
+
// ../../node_modules/tailwindcss/lib/util/createPlugin.js
|
|
35
|
+
var require_createPlugin = __commonJS({
|
|
36
|
+
"../../node_modules/tailwindcss/lib/util/createPlugin.js"(exports2) {
|
|
37
|
+
"use strict";
|
|
38
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
39
|
+
value: true
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports2, "default", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function() {
|
|
44
|
+
return _default;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
function createPlugin(plugin2, config) {
|
|
48
|
+
return {
|
|
49
|
+
handler: plugin2,
|
|
50
|
+
config
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
createPlugin.withOptions = function(pluginFunction, configFunction = () => ({})) {
|
|
54
|
+
const optionsFunction = function(options) {
|
|
55
|
+
return {
|
|
56
|
+
__options: options,
|
|
57
|
+
handler: pluginFunction(options),
|
|
58
|
+
config: configFunction(options)
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
optionsFunction.__isOptionsFunction = true;
|
|
62
|
+
optionsFunction.__pluginFunction = pluginFunction;
|
|
63
|
+
optionsFunction.__configFunction = configFunction;
|
|
64
|
+
return optionsFunction;
|
|
65
|
+
};
|
|
66
|
+
var _default = createPlugin;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
// ../../node_modules/tailwindcss/lib/public/create-plugin.js
|
|
71
|
+
var require_create_plugin = __commonJS({
|
|
72
|
+
"../../node_modules/tailwindcss/lib/public/create-plugin.js"(exports2) {
|
|
73
|
+
"use strict";
|
|
74
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
75
|
+
value: true
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports2, "default", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function() {
|
|
80
|
+
return _default;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
var _createPlugin = /* @__PURE__ */ _interop_require_default(require_createPlugin());
|
|
84
|
+
function _interop_require_default(obj) {
|
|
85
|
+
return obj && obj.__esModule ? obj : {
|
|
86
|
+
default: obj
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
var _default = _createPlugin.default;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
// ../../node_modules/tailwindcss/plugin.js
|
|
94
|
+
var require_plugin = __commonJS({
|
|
95
|
+
"../../node_modules/tailwindcss/plugin.js"(exports2, module2) {
|
|
96
|
+
"use strict";
|
|
97
|
+
var createPlugin = require_create_plugin();
|
|
98
|
+
module2.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// src/components/table/form-table.tsx
|
|
103
|
+
var form_table_exports = {};
|
|
104
|
+
__export(form_table_exports, {
|
|
105
|
+
default: () => form_table_default
|
|
106
|
+
});
|
|
107
|
+
module.exports = __toCommonJS(form_table_exports);
|
|
108
|
+
var import_react = require("react");
|
|
109
|
+
|
|
110
|
+
// src/utils/tailwind-variants.ts
|
|
111
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
112
|
+
|
|
113
|
+
// ../tailwind-config/src/plugin.ts
|
|
114
|
+
var import_plugin = __toESM(require_plugin());
|
|
115
|
+
|
|
116
|
+
// ../tailwind-config/src/typography/font.ts
|
|
117
|
+
var fontSize = {
|
|
118
|
+
h1: [
|
|
119
|
+
"40px",
|
|
120
|
+
{
|
|
121
|
+
fontWeight: "700"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
h2: [
|
|
125
|
+
"34px",
|
|
126
|
+
{
|
|
127
|
+
fontWeight: "700"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
h3: [
|
|
131
|
+
"28px",
|
|
132
|
+
{
|
|
133
|
+
fontWeight: "700"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
h4: [
|
|
137
|
+
"24px",
|
|
138
|
+
{
|
|
139
|
+
fontWeight: "700"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
h5: [
|
|
143
|
+
"20px",
|
|
144
|
+
{
|
|
145
|
+
fontWeight: "600"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
sm: [
|
|
149
|
+
"12px",
|
|
150
|
+
{
|
|
151
|
+
lineHeight: "18px",
|
|
152
|
+
fontWeight: "400"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
md: [
|
|
156
|
+
"14px",
|
|
157
|
+
{
|
|
158
|
+
lineHeight: "21px",
|
|
159
|
+
fontWeight: "400"
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
lg: [
|
|
163
|
+
"16px",
|
|
164
|
+
{
|
|
165
|
+
lineHeight: "24px",
|
|
166
|
+
fontWeight: "400"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
xl: [
|
|
170
|
+
"18px",
|
|
171
|
+
{
|
|
172
|
+
lineHeight: "27px",
|
|
173
|
+
fontWeight: "400"
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
// ../tailwind-config/src/animation/slide.ts
|
|
179
|
+
var sliceAnimation = {
|
|
180
|
+
slideInFromTop: "slideInFromTop 0.5s ease-out",
|
|
181
|
+
slideInFromBottom: "slideInFromBottom 0.5s ease-out",
|
|
182
|
+
slideInFromLeft: "slideInFromLeft 0.5s ease-out",
|
|
183
|
+
slideInFromRight: "slideInFromRight 0.5s ease-out",
|
|
184
|
+
slideOutToTop: "slideOutToTop 0.5s ease-in",
|
|
185
|
+
slideOutToBottom: "slideOutToBottom 0.5s ease-in",
|
|
186
|
+
slideOutToLeft: "slideOutToLeft 0.5s ease-in",
|
|
187
|
+
slideOutToRight: "slideOutToRight 0.5s ease-in"
|
|
188
|
+
};
|
|
189
|
+
var sliceKeyframe = {
|
|
190
|
+
slideInFromTop: {
|
|
191
|
+
"0%": {
|
|
192
|
+
transform: "translateY(-10px)",
|
|
193
|
+
opacity: "0"
|
|
194
|
+
},
|
|
195
|
+
"100%": {
|
|
196
|
+
transform: "translateY(0)",
|
|
197
|
+
opacity: "1"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
slideInFromBottom: {
|
|
201
|
+
"0%": {
|
|
202
|
+
transform: "translateY(10px)",
|
|
203
|
+
opacity: "0"
|
|
204
|
+
},
|
|
205
|
+
"100%": {
|
|
206
|
+
transform: "translateY(0)",
|
|
207
|
+
opacity: "1"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
slideInFromLeft: {
|
|
211
|
+
"0%": {
|
|
212
|
+
transform: "translateX(-10px)",
|
|
213
|
+
opacity: "0"
|
|
214
|
+
},
|
|
215
|
+
"100%": {
|
|
216
|
+
transform: "translateX(0)",
|
|
217
|
+
opacity: "1"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
slideInFromRight: {
|
|
221
|
+
"0%": {
|
|
222
|
+
transform: "translateX(10px)",
|
|
223
|
+
opacity: "0"
|
|
224
|
+
},
|
|
225
|
+
"100%": {
|
|
226
|
+
transform: "translateX(0)",
|
|
227
|
+
opacity: "1"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
slideOutToTop: {
|
|
231
|
+
"0%": {
|
|
232
|
+
transform: "translateY(0)",
|
|
233
|
+
opacity: "1"
|
|
234
|
+
},
|
|
235
|
+
"100%": {
|
|
236
|
+
transform: "translateY(-10px)",
|
|
237
|
+
opacity: "0"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
slideOutToBottom: {
|
|
241
|
+
"0%": {
|
|
242
|
+
transform: "translateY(0)",
|
|
243
|
+
opacity: "1"
|
|
244
|
+
},
|
|
245
|
+
"100%": {
|
|
246
|
+
transform: "translateY(10px)",
|
|
247
|
+
opacity: "0"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
slideOutToLeft: {
|
|
251
|
+
"0%": {
|
|
252
|
+
transform: "translateX(0)",
|
|
253
|
+
opacity: "1"
|
|
254
|
+
},
|
|
255
|
+
"100%": {
|
|
256
|
+
transform: "translateX(-10px)",
|
|
257
|
+
opacity: "0"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
slideOutToRight: {
|
|
261
|
+
"0%": {
|
|
262
|
+
transform: "translateX(0)",
|
|
263
|
+
opacity: "1"
|
|
264
|
+
},
|
|
265
|
+
"100%": {
|
|
266
|
+
transform: "translateX(10px)",
|
|
267
|
+
opacity: "0"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
// ../tailwind-config/src/animation/index.ts
|
|
273
|
+
var animation = { ...sliceAnimation };
|
|
274
|
+
var keyframes = { ...sliceKeyframe };
|
|
275
|
+
|
|
276
|
+
// ../tailwind-config/src/shadow/index.ts
|
|
277
|
+
var boxShadow = {
|
|
278
|
+
"border-1": "inner 0 0 0 1px inset",
|
|
279
|
+
"border-2": "inner 0 0 0 2px inset",
|
|
280
|
+
"border-3": "inner 0 0 0 3px inset",
|
|
281
|
+
"border-4": "inner 0 0 0 4px inset",
|
|
282
|
+
"border-5": "inner 0 0 0 5px inset",
|
|
283
|
+
"border-6": "inner 0 0 0 6px inset",
|
|
284
|
+
"border-7": "inner 0 0 0 7px inset",
|
|
285
|
+
"border-8": "inner 0 0 0 8px inset",
|
|
286
|
+
"border-9": "inner 0 0 0 9px inset",
|
|
287
|
+
"border-10": "inner 0 0 0 10px inset",
|
|
288
|
+
inner: "inset 0 4px 8px 0 rgba(36, 39, 44, 0.2)",
|
|
289
|
+
drop: "0 20px 40px 0 rgba(36, 39, 44, 0.2)"
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
// ../tailwind-config/src/border/radius.ts
|
|
293
|
+
var borderRadius = {
|
|
294
|
+
sm: "4px",
|
|
295
|
+
md: "6px",
|
|
296
|
+
lg: "8px",
|
|
297
|
+
xl: "10px",
|
|
298
|
+
none: "0",
|
|
299
|
+
full: "9999px"
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
// ../tailwind-config/src/space/gap.ts
|
|
303
|
+
var gap = {
|
|
304
|
+
sm: "4px",
|
|
305
|
+
md: "6px",
|
|
306
|
+
lg: "8px",
|
|
307
|
+
xl: "10px"
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
// src/utils/tailwind-variants.ts
|
|
311
|
+
function typedKeys(obj) {
|
|
312
|
+
return Object.keys(obj);
|
|
313
|
+
}
|
|
314
|
+
var COMMON_SIZE = ["sm", "md", "lg", "xl"];
|
|
315
|
+
var tv = (0, import_tailwind_variants.createTV)({
|
|
316
|
+
twMergeConfig: {
|
|
317
|
+
classGroups: {
|
|
318
|
+
fontSize: [{ text: [...typedKeys(fontSize)] }],
|
|
319
|
+
borderRadius: [{ rounded: [...typedKeys(borderRadius)] }],
|
|
320
|
+
boxShadow: [{ shadow: [...typedKeys(boxShadow)] }],
|
|
321
|
+
padding: [{ p: [...COMMON_SIZE] }],
|
|
322
|
+
gap: [{ gap: [...typedKeys(gap)] }]
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
|
|
327
|
+
// src/components/table/form-table.tsx
|
|
328
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
329
|
+
var DEFAULT_COLUMN_CLASSES = [
|
|
330
|
+
"w-[120px] h-[50px] px-[10px] font-bold text-md text-body-foreground border-r border-neutral-light",
|
|
331
|
+
"px-[10px]"
|
|
332
|
+
];
|
|
333
|
+
var FormTableRow = ({ columns, columnClasses = [] }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tr", { className: "border-neutral-light border-b", children: columns.map((col, index) => {
|
|
334
|
+
var _a;
|
|
335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", { className: (_a = columnClasses[index]) != null ? _a : DEFAULT_COLUMN_CLASSES[index], children: col }, index);
|
|
336
|
+
}) });
|
|
337
|
+
var FormTable = (0, import_react.forwardRef)(
|
|
338
|
+
({ rows, onSubmit, footer, classNames }, ref) => {
|
|
339
|
+
const slots = (0, import_react.useMemo)(() => formTableStyle(), []);
|
|
340
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
341
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tbody", { children: rows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FormTableRow, { ...row }, i)) }) }),
|
|
342
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: footer })
|
|
343
|
+
] });
|
|
344
|
+
if (onSubmit) {
|
|
345
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
346
|
+
"form",
|
|
347
|
+
{
|
|
348
|
+
ref,
|
|
349
|
+
onSubmit,
|
|
350
|
+
className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
|
|
351
|
+
children: content
|
|
352
|
+
}
|
|
353
|
+
);
|
|
354
|
+
}
|
|
355
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: content });
|
|
356
|
+
}
|
|
357
|
+
);
|
|
358
|
+
FormTable.displayName = "FormTable";
|
|
359
|
+
var form_table_default = FormTable;
|
|
360
|
+
var formTableStyle = tv({
|
|
361
|
+
slots: {
|
|
362
|
+
base: ["flex", "flex-col", "gap-[30px]"],
|
|
363
|
+
table: ["w-full", "table-fixed", "border", "border-neutral-light"]
|
|
364
|
+
}
|
|
365
|
+
});
|