@deepnoid/ui 0.1.26 → 0.1.28

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 (118) hide show
  1. package/.turbo/turbo-build.log +170 -166
  2. package/dist/{chunk-MSAULFDB.mjs → chunk-272FMLIL.mjs} +17 -17
  3. package/dist/{chunk-3IU2RPSM.mjs → chunk-2SDYFOZL.mjs} +46 -35
  4. package/dist/{chunk-HWL7TPUN.mjs → chunk-2TKEWFGH.mjs} +1 -1
  5. package/dist/chunk-4OSN2OE2.mjs +178 -0
  6. package/dist/chunk-6TIIBU7J.mjs +35 -0
  7. package/dist/{chunk-Q72LZAPG.mjs → chunk-A7RU3FU5.mjs} +1 -1
  8. package/dist/{chunk-P5PJTJLY.mjs → chunk-BEQ3KZGS.mjs} +19 -19
  9. package/dist/{chunk-IRAHS4WS.mjs → chunk-G67WUZO3.mjs} +1 -1
  10. package/dist/{chunk-YBDA3WQP.mjs → chunk-IBI3OVQI.mjs} +1 -1
  11. package/dist/{chunk-BQUZRVYW.mjs → chunk-JTZUXVOU.mjs} +1 -1
  12. package/dist/{chunk-6OMHIMIA.mjs → chunk-JV7VLO2L.mjs} +2 -2
  13. package/dist/{chunk-B3DFSXGC.mjs → chunk-K7VUN5BS.mjs} +2 -2
  14. package/dist/{chunk-DLQFMOBN.mjs → chunk-KYJTZPXY.mjs} +1 -1
  15. package/dist/{chunk-OUAKGMDW.mjs → chunk-MEY4IL7D.mjs} +1 -1
  16. package/dist/{chunk-SCFTSNCK.mjs → chunk-NHVIKP4H.mjs} +6 -6
  17. package/dist/{chunk-PMMTMYRI.mjs → chunk-QIEKOGY7.mjs} +1 -1
  18. package/dist/{chunk-QY7LYAXT.mjs → chunk-RT3S3VVJ.mjs} +2 -2
  19. package/dist/{chunk-IVK24VIL.mjs → chunk-SO7BGWM7.mjs} +2 -2
  20. package/dist/{chunk-XQGD4ZIX.mjs → chunk-SP3JVQY3.mjs} +1 -1
  21. package/dist/{chunk-EAK5DVWA.mjs → chunk-UNH3BCGN.mjs} +8 -1
  22. package/dist/{chunk-6HX3PPL6.mjs → chunk-WLNLVX7Q.mjs} +1 -1
  23. package/dist/components/avatar/avatar.js +46 -35
  24. package/dist/components/avatar/avatar.mjs +2 -2
  25. package/dist/components/avatar/index.js +46 -35
  26. package/dist/components/avatar/index.mjs +2 -2
  27. package/dist/components/breadcrumb/breadcrumb.js +46 -35
  28. package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
  29. package/dist/components/breadcrumb/index.js +46 -35
  30. package/dist/components/breadcrumb/index.mjs +5 -5
  31. package/dist/components/button/button.js +46 -35
  32. package/dist/components/button/button.mjs +3 -3
  33. package/dist/components/button/icon-button.js +46 -35
  34. package/dist/components/button/icon-button.mjs +3 -3
  35. package/dist/components/button/index.js +46 -35
  36. package/dist/components/button/index.mjs +4 -4
  37. package/dist/components/chip/chip.js +46 -35
  38. package/dist/components/chip/chip.mjs +3 -3
  39. package/dist/components/chip/index.js +46 -35
  40. package/dist/components/chip/index.mjs +3 -3
  41. package/dist/components/dateTimePicker/calendar.js +46 -35
  42. package/dist/components/dateTimePicker/calendar.mjs +3 -3
  43. package/dist/components/dateTimePicker/dateTimePicker.js +46 -35
  44. package/dist/components/dateTimePicker/dateTimePicker.mjs +9 -9
  45. package/dist/components/dateTimePicker/index.js +46 -35
  46. package/dist/components/dateTimePicker/index.mjs +9 -9
  47. package/dist/components/dateTimePicker/timePicker.js +46 -35
  48. package/dist/components/dateTimePicker/timePicker.mjs +5 -5
  49. package/dist/components/icon/Icon.d.mts +9 -5
  50. package/dist/components/icon/Icon.d.ts +9 -5
  51. package/dist/components/icon/Icon.js +46 -35
  52. package/dist/components/icon/Icon.mjs +2 -2
  53. package/dist/components/icon/index.js +46 -35
  54. package/dist/components/icon/index.mjs +2 -2
  55. package/dist/components/icon/template.d.mts +3 -2
  56. package/dist/components/icon/template.d.ts +3 -2
  57. package/dist/components/icon/template.js +46 -35
  58. package/dist/components/icon/template.mjs +1 -1
  59. package/dist/components/input/index.js +64 -53
  60. package/dist/components/input/index.mjs +3 -3
  61. package/dist/components/input/input.d.mts +44 -44
  62. package/dist/components/input/input.d.ts +44 -44
  63. package/dist/components/input/input.js +64 -53
  64. package/dist/components/input/input.mjs +3 -3
  65. package/dist/components/list/index.js +46 -35
  66. package/dist/components/list/index.mjs +4 -4
  67. package/dist/components/list/listItem.js +46 -35
  68. package/dist/components/list/listItem.mjs +4 -4
  69. package/dist/components/modal/index.js +46 -35
  70. package/dist/components/modal/index.mjs +5 -5
  71. package/dist/components/modal/modal.js +46 -35
  72. package/dist/components/modal/modal.mjs +5 -5
  73. package/dist/components/pagination/index.js +64 -53
  74. package/dist/components/pagination/index.mjs +4 -4
  75. package/dist/components/pagination/pagination.js +64 -53
  76. package/dist/components/pagination/pagination.mjs +4 -4
  77. package/dist/components/select/index.js +62 -51
  78. package/dist/components/select/index.mjs +3 -3
  79. package/dist/components/select/select.d.mts +38 -38
  80. package/dist/components/select/select.d.ts +38 -38
  81. package/dist/components/select/select.js +62 -51
  82. package/dist/components/select/select.mjs +3 -3
  83. package/dist/components/table/definition-table.d.mts +51 -0
  84. package/dist/components/table/definition-table.d.ts +51 -0
  85. package/dist/components/table/definition-table.js +351 -0
  86. package/dist/components/table/definition-table.mjs +9 -0
  87. package/dist/components/table/form-table.d.mts +1 -1
  88. package/dist/components/table/form-table.d.ts +1 -1
  89. package/dist/components/table/form-table.mjs +43 -3
  90. package/dist/components/table/index.d.mts +1 -1
  91. package/dist/components/table/index.d.ts +1 -1
  92. package/dist/components/table/index.js +86 -82
  93. package/dist/components/table/index.mjs +9 -9
  94. package/dist/components/table/table-head.js +8 -1
  95. package/dist/components/table/table-head.mjs +1 -1
  96. package/dist/components/table/table.js +72 -54
  97. package/dist/components/table/table.mjs +6 -6
  98. package/dist/components/toast/index.js +46 -35
  99. package/dist/components/toast/index.mjs +4 -4
  100. package/dist/components/toast/toast.js +46 -35
  101. package/dist/components/toast/toast.mjs +3 -3
  102. package/dist/components/toast/use-toast.js +46 -35
  103. package/dist/components/toast/use-toast.mjs +4 -4
  104. package/dist/components/tree/index.d.mts +1 -0
  105. package/dist/components/tree/index.d.ts +1 -0
  106. package/dist/components/tree/index.js +170 -84
  107. package/dist/components/tree/index.mjs +3 -3
  108. package/dist/components/tree/tree.d.mts +17 -10
  109. package/dist/components/tree/tree.d.ts +17 -10
  110. package/dist/components/tree/tree.js +175 -84
  111. package/dist/components/tree/tree.mjs +5 -3
  112. package/dist/index.d.mts +1 -1
  113. package/dist/index.d.ts +1 -1
  114. package/dist/index.js +226 -147
  115. package/dist/index.mjs +31 -31
  116. package/package.json +1 -1
  117. package/dist/chunk-ICZTNO4V.mjs +0 -49
  118. package/dist/chunk-TEQ723QO.mjs +0 -102
@@ -863,22 +863,61 @@ var template = {
863
863
  }
864
864
  );
865
865
  },
866
- // ----------------------------------- old ---------------------------------
867
- // ** Status **
868
- plus: ({ className, fill }) => {
866
+ plus: ({ className }) => {
867
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
868
+ "svg",
869
+ {
870
+ xmlns: "http://www.w3.org/2000/svg",
871
+ width: "18",
872
+ height: "18",
873
+ viewBox: "0 0 18 18",
874
+ fill: "none",
875
+ className,
876
+ children: [
877
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4.5 9H13.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
878
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9 13.5V4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
879
+ ]
880
+ }
881
+ );
882
+ },
883
+ minus: ({ className }) => {
869
884
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
870
885
  "svg",
871
886
  {
872
- width: "24",
873
- height: "24",
874
- viewBox: "0 0 24 24",
887
+ xmlns: "http://www.w3.org/2000/svg",
888
+ width: "18",
889
+ height: "18",
890
+ viewBox: "0 0 18 18",
875
891
  fill: "none",
892
+ className,
893
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4.5 9H13.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
894
+ }
895
+ );
896
+ },
897
+ pencil: ({ className }) => {
898
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
899
+ "svg",
900
+ {
876
901
  xmlns: "http://www.w3.org/2000/svg",
902
+ width: "18",
903
+ height: "18",
904
+ viewBox: "0 0 18 18",
905
+ fill: "none",
877
906
  className,
878
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 4.5V19.5M19.5 12H4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
907
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
908
+ "path",
909
+ {
910
+ d: "M12.6465 3.36525L13.9117 2.09925C14.1755 1.83549 14.5332 1.68732 14.9062 1.68732C15.2793 1.68732 15.637 1.83549 15.9008 2.09925C16.1645 2.36301 16.3127 2.72074 16.3127 3.09375C16.3127 3.46676 16.1645 3.82449 15.9008 4.08825L7.9365 12.0525C7.53999 12.4488 7.05102 12.74 6.51375 12.9L4.5 13.5L5.1 11.4863C5.25996 10.949 5.55123 10.46 5.9475 10.0635L12.6465 3.36525ZM12.6465 3.36525L14.625 5.34375M13.5 10.5V14.0625C13.5 14.5101 13.3222 14.9393 13.0057 15.2557C12.6893 15.5722 12.2601 15.75 11.8125 15.75H3.9375C3.48995 15.75 3.06072 15.5722 2.74426 15.2557C2.42779 14.9393 2.25 14.5101 2.25 14.0625V6.1875C2.25 5.73995 2.42779 5.31073 2.74426 4.99426C3.06072 4.67779 3.48995 4.5 3.9375 4.5H7.5",
911
+ stroke: "currentColor",
912
+ strokeLinecap: "round",
913
+ strokeLinejoin: "round"
914
+ }
915
+ )
879
916
  }
880
917
  );
881
918
  },
919
+ // ----------------------------------- old ---------------------------------
920
+ // ** Status **
882
921
  check: ({ className, fill }) => {
883
922
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
884
923
  "svg",
@@ -2525,34 +2564,6 @@ var template = {
2525
2564
  }
2526
2565
  );
2527
2566
  },
2528
- pencil: ({ className, fill }) => {
2529
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2530
- "svg",
2531
- {
2532
- width: "24",
2533
- height: "24",
2534
- viewBox: "0 0 24 24",
2535
- fill: "none",
2536
- xmlns: "http://www.w3.org/2000/svg",
2537
- className,
2538
- children: fill ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2539
- "path",
2540
- {
2541
- d: "M21.7313 2.26918C21.239 1.77699 20.5714 1.50049 19.8753 1.50049C19.1791 1.50049 18.5115 1.77699 18.0193 2.26918L16.8623 3.42618L20.5743 7.13818L21.7313 5.98118C22.2234 5.48891 22.4999 4.8213 22.4999 4.12518C22.4999 3.42906 22.2234 2.76145 21.7313 2.26918ZM19.5133 8.19918L15.8013 4.48718L3.65125 16.6372C3.03411 17.254 2.58043 18.015 2.33125 18.8512L1.53125 21.5362C1.49263 21.6657 1.48975 21.8033 1.52292 21.9344C1.55608 22.0655 1.62407 22.1852 1.71967 22.2808C1.81527 22.3764 1.93494 22.4443 2.06601 22.4775C2.19709 22.5107 2.33469 22.5078 2.46425 22.4692L5.14925 21.6692C5.98548 21.42 6.74642 20.9663 7.36325 20.3492L19.5133 8.19918Z",
2542
- fill: "currentColor"
2543
- }
2544
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2545
- "path",
2546
- {
2547
- d: "M16.862 4.487L18.549 2.799C18.9007 2.44733 19.3777 2.24976 19.875 2.24976C20.3723 2.24976 20.8493 2.44733 21.201 2.799C21.5527 3.15068 21.7502 3.62766 21.7502 4.125C21.7502 4.62235 21.5527 5.09933 21.201 5.451L6.832 19.82C6.30332 20.3484 5.65137 20.7367 4.935 20.95L2.25 21.75L3.05 19.065C3.26328 18.3486 3.65163 17.6967 4.18 17.168L16.863 4.487H16.862ZM16.862 4.487L19.5 7.125",
2548
- stroke: "currentColor",
2549
- strokeLinecap: "round",
2550
- strokeLinejoin: "round"
2551
- }
2552
- )
2553
- }
2554
- );
2555
- },
2556
2567
  "pencil-square": ({ className, fill }) => {
2557
2568
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2558
2569
  "svg",
@@ -4363,8 +4374,8 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
4363
4374
  const {
4364
4375
  label,
4365
4376
  options,
4366
- helperText,
4367
- errorText,
4377
+ helperMessage,
4378
+ errorMessage,
4368
4379
  classNames,
4369
4380
  defaultSelectedOptions = [],
4370
4381
  onChange,
@@ -4492,8 +4503,8 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
4492
4503
  ]
4493
4504
  }
4494
4505
  ),
4495
- helperText && !errorText && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: slots.helperText({ class: classNames == null ? void 0 : classNames.helperText }), children: helperText }),
4496
- errorText && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: clsx("error", slots.errorText({ class: classNames == null ? void 0 : classNames.errorText })), children: errorText })
4506
+ helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: slots.helperMessage({ class: classNames == null ? void 0 : classNames.helperMessage }), children: helperMessage }),
4507
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
4497
4508
  ] })
4498
4509
  ]
4499
4510
  }
@@ -4565,8 +4576,8 @@ var select = tv({
4565
4576
  ],
4566
4577
  optionsWrapper: ["border", "rounded", "bg-white", "shadow", "overflow-auto"],
4567
4578
  option: ["flex", "justify-between", "items-center", "cursor-pointer"],
4568
- helperText: ["text-neutral-main"],
4569
- errorText: ["text-danger-main"],
4579
+ helperMessage: ["text-neutral-main"],
4580
+ errorMessage: ["text-danger-main"],
4570
4581
  readonly: ["pointer-events-none", "!bg-trans-soft"]
4571
4582
  },
4572
4583
  variants: {
@@ -4589,8 +4600,8 @@ var select = tv({
4589
4600
  selectWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[4px]"],
4590
4601
  select: ["text-sm"],
4591
4602
  option: ["px-[4px]", "py-[3px]", "text-sm"],
4592
- helperText: ["text-sm"],
4593
- errorText: ["text-sm"]
4603
+ helperMessage: ["text-sm"],
4604
+ errorMessage: ["text-sm"]
4594
4605
  },
4595
4606
  md: {
4596
4607
  base: ["text-md", "gap-[6px]", "rounded-md"],
@@ -4599,8 +4610,8 @@ var select = tv({
4599
4610
  selectWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-[6px]"],
4600
4611
  select: ["text-md"],
4601
4612
  option: ["px-[6px]", "py-[5.5px]", "text-md"],
4602
- helperText: ["text-sm"],
4603
- errorText: ["text-sm"]
4613
+ helperMessage: ["text-sm"],
4614
+ errorMessage: ["text-sm"]
4604
4615
  },
4605
4616
  lg: {
4606
4617
  base: ["text-lg", "gap-[8px]"],
@@ -4609,8 +4620,8 @@ var select = tv({
4609
4620
  selectWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-[8px]"],
4610
4621
  select: ["text-lg"],
4611
4622
  option: ["px-[8px]", "py-[8px]", "text-lg"],
4612
- helperText: ["text-md"],
4613
- errorText: ["text-md"]
4623
+ helperMessage: ["text-md"],
4624
+ errorMessage: ["text-md"]
4614
4625
  },
4615
4626
  xl: {
4616
4627
  base: ["text-xl", "gap-[10px]"],
@@ -4619,8 +4630,8 @@ var select = tv({
4619
4630
  selectWrapper: ["w-[240px]", "h-[50px]", "rounded-lg", "px-[10px]"],
4620
4631
  select: ["text-xl"],
4621
4632
  option: ["px-[10px]", "py-[11.5px]"],
4622
- helperText: ["text-md"],
4623
- errorText: ["text-md"]
4633
+ helperMessage: ["text-md"],
4634
+ errorMessage: ["text-md"]
4624
4635
  }
4625
4636
  },
4626
4637
  direction: {
@@ -4650,8 +4661,8 @@ var select = tv({
4650
4661
  "group-has-[p.error]/select:text-danger-light",
4651
4662
  "group-has-[p.error]/select:placeholder:text-danger-light"
4652
4663
  ],
4653
- helperText: ["!text-neutral-light"],
4654
- errorText: ["!text-danger-light"]
4664
+ helperMessage: ["!text-neutral-light"],
4665
+ errorMessage: ["!text-danger-light"]
4655
4666
  }
4656
4667
  },
4657
4668
  isSelected: {
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  select_default
4
- } from "../../chunk-MSAULFDB.mjs";
4
+ } from "../../chunk-272FMLIL.mjs";
5
5
  import "../../chunk-ZYIIXWVY.mjs";
6
- import "../../chunk-HWL7TPUN.mjs";
7
- import "../../chunk-3IU2RPSM.mjs";
6
+ import "../../chunk-2TKEWFGH.mjs";
7
+ import "../../chunk-2SDYFOZL.mjs";
8
8
  import "../../chunk-4ZJFD3L3.mjs";
9
9
  import "../../chunk-27Y6K5NK.mjs";
10
10
  import "../../chunk-E3G5QXSH.mjs";
@@ -0,0 +1,51 @@
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 } from 'react';
5
+ import { SlotsToClasses } from '../../utils/types.mjs';
6
+
7
+ type TableRow = {
8
+ columns: ReactNode[];
9
+ columnClasses?: string[];
10
+ };
11
+ interface DefinitionTableProps {
12
+ rows: TableRow[];
13
+ footer?: ReactNode;
14
+ classNames?: SlotsToClasses<DefinitionTableSlots>;
15
+ }
16
+ declare const DefinitionTable: react.ForwardRefExoticComponent<DefinitionTableProps & react.RefAttributes<HTMLDivElement>>;
17
+
18
+ declare const DefinitionTableStyle: tailwind_variants.TVReturnType<{
19
+ [key: string]: {
20
+ [key: string]: tailwind_merge.ClassNameValue | {
21
+ base?: tailwind_merge.ClassNameValue;
22
+ table?: tailwind_merge.ClassNameValue;
23
+ };
24
+ };
25
+ } | {
26
+ [x: string]: {
27
+ [x: string]: tailwind_merge.ClassNameValue | {
28
+ base?: tailwind_merge.ClassNameValue;
29
+ table?: tailwind_merge.ClassNameValue;
30
+ };
31
+ };
32
+ } | {}, {
33
+ base: string[];
34
+ table: string[];
35
+ }, undefined, {
36
+ [key: string]: {
37
+ [key: string]: tailwind_merge.ClassNameValue | {
38
+ base?: tailwind_merge.ClassNameValue;
39
+ table?: tailwind_merge.ClassNameValue;
40
+ };
41
+ };
42
+ } | {}, {
43
+ base: string[];
44
+ table: string[];
45
+ }, tailwind_variants.TVReturnType<unknown, {
46
+ base: string[];
47
+ table: string[];
48
+ }, undefined, unknown, unknown, undefined>>;
49
+ type DefinitionTableSlots = keyof ReturnType<typeof DefinitionTableStyle>;
50
+
51
+ export { DefinitionTable as default };
@@ -0,0 +1,51 @@
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 } from 'react';
5
+ import { SlotsToClasses } from '../../utils/types.js';
6
+
7
+ type TableRow = {
8
+ columns: ReactNode[];
9
+ columnClasses?: string[];
10
+ };
11
+ interface DefinitionTableProps {
12
+ rows: TableRow[];
13
+ footer?: ReactNode;
14
+ classNames?: SlotsToClasses<DefinitionTableSlots>;
15
+ }
16
+ declare const DefinitionTable: react.ForwardRefExoticComponent<DefinitionTableProps & react.RefAttributes<HTMLDivElement>>;
17
+
18
+ declare const DefinitionTableStyle: tailwind_variants.TVReturnType<{
19
+ [key: string]: {
20
+ [key: string]: tailwind_merge.ClassNameValue | {
21
+ base?: tailwind_merge.ClassNameValue;
22
+ table?: tailwind_merge.ClassNameValue;
23
+ };
24
+ };
25
+ } | {
26
+ [x: string]: {
27
+ [x: string]: tailwind_merge.ClassNameValue | {
28
+ base?: tailwind_merge.ClassNameValue;
29
+ table?: tailwind_merge.ClassNameValue;
30
+ };
31
+ };
32
+ } | {}, {
33
+ base: string[];
34
+ table: string[];
35
+ }, undefined, {
36
+ [key: string]: {
37
+ [key: string]: tailwind_merge.ClassNameValue | {
38
+ base?: tailwind_merge.ClassNameValue;
39
+ table?: tailwind_merge.ClassNameValue;
40
+ };
41
+ };
42
+ } | {}, {
43
+ base: string[];
44
+ table: string[];
45
+ }, tailwind_variants.TVReturnType<unknown, {
46
+ base: string[];
47
+ table: string[];
48
+ }, undefined, unknown, unknown, undefined>>;
49
+ type DefinitionTableSlots = keyof ReturnType<typeof DefinitionTableStyle>;
50
+
51
+ export { DefinitionTable as default };
@@ -0,0 +1,351 @@
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/definition-table.tsx
103
+ var definition_table_exports = {};
104
+ __export(definition_table_exports, {
105
+ default: () => definition_table_default
106
+ });
107
+ module.exports = __toCommonJS(definition_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/definition-table.tsx
328
+ var import_jsx_runtime = require("react/jsx-runtime");
329
+ var DEFAULT_COLUMN_CLASSES = [
330
+ "w-[120px] px-[10px] py-[9.5px] font-bold text-md text-body-foreground border-r border-neutral-light",
331
+ "px-[10px] py-[9.5px]"
332
+ ];
333
+ var DefinitionTableRow = ({ columns, columnClasses = [] }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tr", { className: "border-neutral-light min-h-[50px] 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 DefinitionTable = (0, import_react.forwardRef)(({ rows, footer, classNames }, ref) => {
338
+ const slots = (0, import_react.useMemo)(() => DefinitionTableStyle(), []);
339
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
340
+ /* @__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)(DefinitionTableRow, { ...row }, i)) }) }),
341
+ footer && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: footer })
342
+ ] });
343
+ });
344
+ DefinitionTable.displayName = "DefinitionTable";
345
+ var definition_table_default = DefinitionTable;
346
+ var DefinitionTableStyle = tv({
347
+ slots: {
348
+ base: ["flex", "flex-col", "gap-[30px]"],
349
+ table: ["w-full", "table-fixed", "border", "border-neutral-light"]
350
+ }
351
+ });
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ import {
3
+ definition_table_default
4
+ } from "../../chunk-6TIIBU7J.mjs";
5
+ import "../../chunk-4ZJFD3L3.mjs";
6
+ import "../../chunk-AC6TWLRT.mjs";
7
+ export {
8
+ definition_table_default as default
9
+ };
@@ -14,7 +14,7 @@ interface FormTableProps {
14
14
  footer?: ReactNode;
15
15
  classNames?: SlotsToClasses<FormTableSlots>;
16
16
  }
17
- declare const FormTable: react.ForwardRefExoticComponent<FormTableProps & react.RefAttributes<HTMLDivElement | HTMLFormElement>>;
17
+ declare const FormTable: react.ForwardRefExoticComponent<FormTableProps & react.RefAttributes<HTMLFormElement | HTMLDivElement>>;
18
18
 
19
19
  declare const formTableStyle: tailwind_variants.TVReturnType<{
20
20
  [key: string]: {
@@ -14,7 +14,7 @@ interface FormTableProps {
14
14
  footer?: ReactNode;
15
15
  classNames?: SlotsToClasses<FormTableSlots>;
16
16
  }
17
- declare const FormTable: react.ForwardRefExoticComponent<FormTableProps & react.RefAttributes<HTMLDivElement | HTMLFormElement>>;
17
+ declare const FormTable: react.ForwardRefExoticComponent<FormTableProps & react.RefAttributes<HTMLFormElement | HTMLDivElement>>;
18
18
 
19
19
  declare const formTableStyle: tailwind_variants.TVReturnType<{
20
20
  [key: string]: {