@deepnoid/ui 0.1.219 → 0.1.221

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 (83) hide show
  1. package/.turbo/turbo-build.log +205 -205
  2. package/dist/{chunk-Q22PRT24.mjs → chunk-44FMPRHV.mjs} +20 -16
  3. package/dist/{chunk-A5YU7ZB5.mjs → chunk-54FDYAUN.mjs} +6 -6
  4. package/dist/{chunk-AOS4SCXB.mjs → chunk-5UCNLY2A.mjs} +1 -1
  5. package/dist/{chunk-FPHVFN6F.mjs → chunk-6CTMLHLK.mjs} +1 -1
  6. package/dist/{chunk-LYNIPIBI.mjs → chunk-74MC7B4K.mjs} +2 -2
  7. package/dist/{chunk-HYLTIUH3.mjs → chunk-FZYZSMSS.mjs} +1 -1
  8. package/dist/{chunk-2PNSKMWG.mjs → chunk-I4LNWIIV.mjs} +1 -1
  9. package/dist/{chunk-7ODWIPFY.mjs → chunk-Q5MFMWG7.mjs} +1 -1
  10. package/dist/{chunk-KEBKZ5KW.mjs → chunk-QECR6VMW.mjs} +2 -2
  11. package/dist/{chunk-EHCMZC7V.mjs → chunk-QPEZ7SFU.mjs} +1 -1
  12. package/dist/{chunk-NQYSF5SG.mjs → chunk-SNXIHIQG.mjs} +7 -7
  13. package/dist/{chunk-5TDQTKOE.mjs → chunk-VSVBYQF4.mjs} +4 -4
  14. package/dist/components/backdrop/backdrop.mjs +2 -2
  15. package/dist/components/backdrop/index.mjs +2 -2
  16. package/dist/components/breadcrumb/breadcrumb.mjs +4 -4
  17. package/dist/components/breadcrumb/index.mjs +4 -4
  18. package/dist/components/button/button.mjs +1 -1
  19. package/dist/components/button/icon-button.mjs +1 -1
  20. package/dist/components/button/index.mjs +5 -5
  21. package/dist/components/button/text-button.mjs +2 -2
  22. package/dist/components/charts/areaChart.mjs +1 -1
  23. package/dist/components/charts/index.mjs +4 -4
  24. package/dist/components/checkbox/checkbox.mjs +2 -2
  25. package/dist/components/checkbox/index.mjs +2 -2
  26. package/dist/components/chip/chip.mjs +1 -1
  27. package/dist/components/chip/index.mjs +1 -1
  28. package/dist/components/drawer/drawer.mjs +2 -2
  29. package/dist/components/drawer/index.mjs +2 -2
  30. package/dist/components/fileUpload/fileUpload.mjs +6 -6
  31. package/dist/components/fileUpload/index.mjs +6 -6
  32. package/dist/components/input/index.mjs +3 -3
  33. package/dist/components/input/input.mjs +3 -3
  34. package/dist/components/list/index.mjs +2 -2
  35. package/dist/components/list/listItem.mjs +2 -2
  36. package/dist/components/modal/GlobalModalProvider.mjs +6 -6
  37. package/dist/components/modal/index.mjs +7 -7
  38. package/dist/components/modal/modal.mjs +5 -5
  39. package/dist/components/modal/useGlobalModal.mjs +7 -7
  40. package/dist/components/pagination/index.mjs +4 -4
  41. package/dist/components/pagination/pagination.mjs +4 -4
  42. package/dist/components/picker/datePicker.mjs +6 -6
  43. package/dist/components/picker/index.mjs +8 -8
  44. package/dist/components/picker/timePicker/Panel.mjs +4 -4
  45. package/dist/components/picker/timePicker/index.mjs +6 -6
  46. package/dist/components/progress/index.mjs +2 -2
  47. package/dist/components/progress/progress.mjs +2 -2
  48. package/dist/components/radio/index.mjs +2 -2
  49. package/dist/components/radio/radio.mjs +2 -2
  50. package/dist/components/select/index.mjs +4 -4
  51. package/dist/components/select/select.mjs +4 -4
  52. package/dist/components/starRating/index.mjs +1 -1
  53. package/dist/components/starRating/starRating.mjs +1 -1
  54. package/dist/components/table/definition-table.mjs +2 -2
  55. package/dist/components/table/index.mjs +8 -8
  56. package/dist/components/table/table-body.mjs +7 -7
  57. package/dist/components/table/table-head.mjs +7 -7
  58. package/dist/components/table/table.mjs +7 -7
  59. package/dist/components/textarea/index.js +17 -13
  60. package/dist/components/textarea/index.mjs +2 -2
  61. package/dist/components/textarea/textarea.js +18 -13
  62. package/dist/components/textarea/textarea.mjs +3 -2
  63. package/dist/components/timePicker/calendar.mjs +1 -1
  64. package/dist/components/toast/index.mjs +4 -4
  65. package/dist/components/toast/toast.mjs +3 -3
  66. package/dist/components/toast/use-toast.mjs +4 -4
  67. package/dist/components/tree/index.mjs +2 -2
  68. package/dist/components/tree/tree.mjs +2 -2
  69. package/dist/index.js +17 -13
  70. package/dist/index.mjs +66 -66
  71. package/package.json +1 -1
  72. package/dist/{chunk-OEIEALIP.mjs → chunk-3DCUMRYP.mjs} +3 -3
  73. package/dist/{chunk-2NUDDLY4.mjs → chunk-3HANNN76.mjs} +3 -3
  74. package/dist/{chunk-IH3BJRTV.mjs → chunk-4X35QQTI.mjs} +3 -3
  75. package/dist/{chunk-KH63CD55.mjs → chunk-ACZ3DQVT.mjs} +3 -3
  76. package/dist/{chunk-LL2AJFUA.mjs → chunk-APQE3TRN.mjs} +3 -3
  77. package/dist/{chunk-DS5CGU2X.mjs → chunk-BH3I4LIZ.mjs} +3 -3
  78. package/dist/{chunk-PP76VNOE.mjs → chunk-G4G6YXZH.mjs} +3 -3
  79. package/dist/{chunk-RNMD44IQ.mjs → chunk-H6ZQDMYU.mjs} +3 -3
  80. package/dist/{chunk-JDPLDAWR.mjs → chunk-JI3WAAZV.mjs} +3 -3
  81. package/dist/{chunk-4LUASWAN.mjs → chunk-NDNIAALB.mjs} +3 -3
  82. package/dist/{chunk-CIV3TYSL.mjs → chunk-US5NY7UP.mjs} +3 -3
  83. package/dist/{chunk-45Y7ANPK.mjs → chunk-ZFC5O2V3.mjs} +3 -3
@@ -94,17 +94,20 @@ var import_jsx_runtime = require("react/jsx-runtime");
94
94
  var Textarea = (0, import_react.forwardRef)((originalProps, ref) => {
95
95
  var _a, _b;
96
96
  const [props, variantProps] = mapPropsVariants(originalProps, textareaStyle.variantKeys);
97
- const { classNames, label, helperMessage, errorMessage, ...textareaProps } = props;
97
+ const { classNames, label, helperMessage, errorMessage, rows = 3, ...textareaProps } = props;
98
98
  const [length, setLength] = (0, import_react.useState)(((_b = (_a = originalProps.value) == null ? void 0 : _a.toString()) != null ? _b : "").length);
99
99
  const innerRef = (0, import_react.useRef)(null);
100
100
  (0, import_react.useImperativeHandle)(ref, () => innerRef.current);
101
101
  const autoResize = (0, import_react.useCallback)(() => {
102
102
  const el = innerRef.current;
103
- if (el) {
104
- el.style.height = "auto";
105
- el.style.height = el.scrollHeight + "px";
106
- }
107
- }, []);
103
+ if (!el) return;
104
+ el.style.height = "auto";
105
+ const computed = window.getComputedStyle(el);
106
+ const lineHeight = parseFloat(computed.lineHeight);
107
+ const minRows = el.rows || rows || 1;
108
+ const minHeight = lineHeight * minRows;
109
+ el.style.height = Math.max(el.scrollHeight, minHeight) + "px";
110
+ }, [rows]);
108
111
  const handleChange = (0, import_react.useCallback)(
109
112
  (e) => {
110
113
  var _a2;
@@ -140,13 +143,14 @@ var Textarea = (0, import_react.forwardRef)((originalProps, ref) => {
140
143
  {
141
144
  ref: innerRef,
142
145
  ...textareaProps,
146
+ rows,
143
147
  readOnly: props.readOnly,
144
148
  onChange: handleChange,
145
149
  className: slots.textarea({ class: classNames == null ? void 0 : classNames.textarea })
146
150
  }
147
151
  ),
148
152
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex justify-between", children: [
149
- helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
153
+ helperMessage && errorMessage === void 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
150
154
  "p",
151
155
  {
152
156
  className: clsx(
@@ -156,7 +160,8 @@ var Textarea = (0, import_react.forwardRef)((originalProps, ref) => {
156
160
  children: helperMessage
157
161
  }
158
162
  ),
159
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage }),
163
+ errorMessage && errorMessage.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage }),
164
+ errorMessage === "" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: clsx("error", "sr-only"), "aria-hidden": "true" }),
160
165
  textareaProps.maxLength !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
161
166
  "p",
162
167
  {
@@ -191,7 +196,6 @@ var textareaStyle = (0, import_tailwind_variants.tv)({
191
196
  wrapper: ["flex", "flex-col"],
192
197
  textarea: [
193
198
  "w-full",
194
- "h-full",
195
199
  "bg-transparent",
196
200
  "text-neutral-main",
197
201
  "placeholder:!text-neutral-main",
@@ -259,7 +263,7 @@ var textareaStyle = (0, import_tailwind_variants.tv)({
259
263
  base: ["text-sm", "gap-[4px]"],
260
264
  label: ["text-sm"],
261
265
  wrapper: ["gap-[4px]"],
262
- textarea: ["w-[240px]", "h-[24px]", "rounded-sm", "p-[8px]", "gap-[4px]"],
266
+ textarea: ["w-[240px]", "rounded-sm", "p-[8px]"],
263
267
  helperMessage: ["text-sm"],
264
268
  errorMessage: ["text-sm"]
265
269
  },
@@ -267,7 +271,7 @@ var textareaStyle = (0, import_tailwind_variants.tv)({
267
271
  base: ["text-md", "gap-[6px]"],
268
272
  label: ["text-md"],
269
273
  wrapper: ["gap-[6px]"],
270
- textarea: ["w-[240px]", "h-[32px]", "rounded-md", "p-[8px]", "gap-[6px]"],
274
+ textarea: ["w-[240px]", "rounded-md", "p-[8px]"],
271
275
  helperMessage: ["text-sm"],
272
276
  errorMessage: ["text-sm"]
273
277
  },
@@ -275,7 +279,7 @@ var textareaStyle = (0, import_tailwind_variants.tv)({
275
279
  base: ["text-lg", "gap-[8px]"],
276
280
  label: ["text-lg"],
277
281
  wrapper: ["gap-[8px]"],
278
- textarea: ["w-[240px]", "h-[40px]", "rounded-lg", "p-[10px]", "gap-[8px]"],
282
+ textarea: ["w-[240px]", "rounded-lg", "p-[10px]"],
279
283
  helperMessage: ["text-md"],
280
284
  errorMessage: ["text-md"]
281
285
  },
@@ -283,7 +287,7 @@ var textareaStyle = (0, import_tailwind_variants.tv)({
283
287
  base: ["text-xl", "gap-[10px]"],
284
288
  label: ["text-xl"],
285
289
  wrapper: ["gap-[10px]"],
286
- textarea: ["w-[240px]", "h-[50px]", "rounded-lg", "p-[10px]", "gap-[10px]"],
290
+ textarea: ["w-[240px]", "rounded-lg", "p-[10px]"],
287
291
  helperMessage: ["text-md"],
288
292
  errorMessage: ["text-md"]
289
293
  }
@@ -2,9 +2,9 @@
2
2
  import "../../chunk-RRAZM5D3.mjs";
3
3
  import {
4
4
  textarea_default
5
- } from "../../chunk-Q22PRT24.mjs";
6
- import "../../chunk-E3G5QXSH.mjs";
5
+ } from "../../chunk-44FMPRHV.mjs";
7
6
  import "../../chunk-27Y6K5NK.mjs";
7
+ import "../../chunk-E3G5QXSH.mjs";
8
8
  import "../../chunk-AC6TWLRT.mjs";
9
9
  export {
10
10
  textarea_default as Textarea
@@ -1,5 +1,6 @@
1
1
  "use client";
2
2
  "use strict";
3
+ "use client";
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -92,17 +93,20 @@ var import_jsx_runtime = require("react/jsx-runtime");
92
93
  var Textarea = (0, import_react.forwardRef)((originalProps, ref) => {
93
94
  var _a, _b;
94
95
  const [props, variantProps] = mapPropsVariants(originalProps, textareaStyle.variantKeys);
95
- const { classNames, label, helperMessage, errorMessage, ...textareaProps } = props;
96
+ const { classNames, label, helperMessage, errorMessage, rows = 3, ...textareaProps } = props;
96
97
  const [length, setLength] = (0, import_react.useState)(((_b = (_a = originalProps.value) == null ? void 0 : _a.toString()) != null ? _b : "").length);
97
98
  const innerRef = (0, import_react.useRef)(null);
98
99
  (0, import_react.useImperativeHandle)(ref, () => innerRef.current);
99
100
  const autoResize = (0, import_react.useCallback)(() => {
100
101
  const el = innerRef.current;
101
- if (el) {
102
- el.style.height = "auto";
103
- el.style.height = el.scrollHeight + "px";
104
- }
105
- }, []);
102
+ if (!el) return;
103
+ el.style.height = "auto";
104
+ const computed = window.getComputedStyle(el);
105
+ const lineHeight = parseFloat(computed.lineHeight);
106
+ const minRows = el.rows || rows || 1;
107
+ const minHeight = lineHeight * minRows;
108
+ el.style.height = Math.max(el.scrollHeight, minHeight) + "px";
109
+ }, [rows]);
106
110
  const handleChange = (0, import_react.useCallback)(
107
111
  (e) => {
108
112
  var _a2;
@@ -138,13 +142,14 @@ var Textarea = (0, import_react.forwardRef)((originalProps, ref) => {
138
142
  {
139
143
  ref: innerRef,
140
144
  ...textareaProps,
145
+ rows,
141
146
  readOnly: props.readOnly,
142
147
  onChange: handleChange,
143
148
  className: slots.textarea({ class: classNames == null ? void 0 : classNames.textarea })
144
149
  }
145
150
  ),
146
151
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex justify-between", children: [
147
- helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
152
+ helperMessage && errorMessage === void 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
148
153
  "p",
149
154
  {
150
155
  className: clsx(
@@ -154,7 +159,8 @@ var Textarea = (0, import_react.forwardRef)((originalProps, ref) => {
154
159
  children: helperMessage
155
160
  }
156
161
  ),
157
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage }),
162
+ errorMessage && errorMessage.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage }),
163
+ errorMessage === "" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: clsx("error", "sr-only"), "aria-hidden": "true" }),
158
164
  textareaProps.maxLength !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
159
165
  "p",
160
166
  {
@@ -189,7 +195,6 @@ var textareaStyle = (0, import_tailwind_variants.tv)({
189
195
  wrapper: ["flex", "flex-col"],
190
196
  textarea: [
191
197
  "w-full",
192
- "h-full",
193
198
  "bg-transparent",
194
199
  "text-neutral-main",
195
200
  "placeholder:!text-neutral-main",
@@ -257,7 +262,7 @@ var textareaStyle = (0, import_tailwind_variants.tv)({
257
262
  base: ["text-sm", "gap-[4px]"],
258
263
  label: ["text-sm"],
259
264
  wrapper: ["gap-[4px]"],
260
- textarea: ["w-[240px]", "h-[24px]", "rounded-sm", "p-[8px]", "gap-[4px]"],
265
+ textarea: ["w-[240px]", "rounded-sm", "p-[8px]"],
261
266
  helperMessage: ["text-sm"],
262
267
  errorMessage: ["text-sm"]
263
268
  },
@@ -265,7 +270,7 @@ var textareaStyle = (0, import_tailwind_variants.tv)({
265
270
  base: ["text-md", "gap-[6px]"],
266
271
  label: ["text-md"],
267
272
  wrapper: ["gap-[6px]"],
268
- textarea: ["w-[240px]", "h-[32px]", "rounded-md", "p-[8px]", "gap-[6px]"],
273
+ textarea: ["w-[240px]", "rounded-md", "p-[8px]"],
269
274
  helperMessage: ["text-sm"],
270
275
  errorMessage: ["text-sm"]
271
276
  },
@@ -273,7 +278,7 @@ var textareaStyle = (0, import_tailwind_variants.tv)({
273
278
  base: ["text-lg", "gap-[8px]"],
274
279
  label: ["text-lg"],
275
280
  wrapper: ["gap-[8px]"],
276
- textarea: ["w-[240px]", "h-[40px]", "rounded-lg", "p-[10px]", "gap-[8px]"],
281
+ textarea: ["w-[240px]", "rounded-lg", "p-[10px]"],
277
282
  helperMessage: ["text-md"],
278
283
  errorMessage: ["text-md"]
279
284
  },
@@ -281,7 +286,7 @@ var textareaStyle = (0, import_tailwind_variants.tv)({
281
286
  base: ["text-xl", "gap-[10px]"],
282
287
  label: ["text-xl"],
283
288
  wrapper: ["gap-[10px]"],
284
- textarea: ["w-[240px]", "h-[50px]", "rounded-lg", "p-[10px]", "gap-[10px]"],
289
+ textarea: ["w-[240px]", "rounded-lg", "p-[10px]"],
285
290
  helperMessage: ["text-md"],
286
291
  errorMessage: ["text-md"]
287
292
  }
@@ -1,9 +1,10 @@
1
1
  "use client";
2
+ "use client";
2
3
  import {
3
4
  textarea_default
4
- } from "../../chunk-Q22PRT24.mjs";
5
- import "../../chunk-E3G5QXSH.mjs";
5
+ } from "../../chunk-44FMPRHV.mjs";
6
6
  import "../../chunk-27Y6K5NK.mjs";
7
+ import "../../chunk-E3G5QXSH.mjs";
7
8
  import "../../chunk-AC6TWLRT.mjs";
8
9
  export {
9
10
  textarea_default as default
@@ -7,10 +7,10 @@ import "../../chunk-ZYIIXWVY.mjs";
7
7
  import {
8
8
  Icon_default
9
9
  } from "../../chunk-AXWICOKO.mjs";
10
+ import "../../chunk-JYW3GEH6.mjs";
10
11
  import {
11
12
  mapPropsVariants
12
13
  } from "../../chunk-E3G5QXSH.mjs";
13
- import "../../chunk-JYW3GEH6.mjs";
14
14
  import {
15
15
  tv
16
16
  } from "../../chunk-U4DJHAM5.mjs";
@@ -3,17 +3,17 @@ import "../../chunk-LUWGOKLG.mjs";
3
3
  import {
4
4
  ToastProvider,
5
5
  useToast
6
- } from "../../chunk-AOS4SCXB.mjs";
6
+ } from "../../chunk-5UCNLY2A.mjs";
7
7
  import "../../chunk-ZOTHPHXA.mjs";
8
8
  import {
9
9
  toast_default
10
- } from "../../chunk-2NUDDLY4.mjs";
10
+ } from "../../chunk-3HANNN76.mjs";
11
11
  import "../../chunk-ZYIIXWVY.mjs";
12
12
  import "../../chunk-AXWICOKO.mjs";
13
- import "../../chunk-E3G5QXSH.mjs";
14
13
  import "../../chunk-JYW3GEH6.mjs";
15
- import "../../chunk-U4DJHAM5.mjs";
16
14
  import "../../chunk-27Y6K5NK.mjs";
15
+ import "../../chunk-E3G5QXSH.mjs";
16
+ import "../../chunk-U4DJHAM5.mjs";
17
17
  import "../../chunk-AC6TWLRT.mjs";
18
18
  export {
19
19
  toast_default as Toast,
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  toast_default
4
- } from "../../chunk-2NUDDLY4.mjs";
4
+ } from "../../chunk-3HANNN76.mjs";
5
5
  import "../../chunk-ZYIIXWVY.mjs";
6
6
  import "../../chunk-AXWICOKO.mjs";
7
- import "../../chunk-E3G5QXSH.mjs";
8
7
  import "../../chunk-JYW3GEH6.mjs";
9
- import "../../chunk-U4DJHAM5.mjs";
10
8
  import "../../chunk-27Y6K5NK.mjs";
9
+ import "../../chunk-E3G5QXSH.mjs";
10
+ import "../../chunk-U4DJHAM5.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
12
12
  export {
13
13
  toast_default as default
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  ToastProvider,
4
4
  useToast
5
- } from "../../chunk-AOS4SCXB.mjs";
5
+ } from "../../chunk-5UCNLY2A.mjs";
6
6
  import "../../chunk-ZOTHPHXA.mjs";
7
- import "../../chunk-2NUDDLY4.mjs";
7
+ import "../../chunk-3HANNN76.mjs";
8
8
  import "../../chunk-ZYIIXWVY.mjs";
9
9
  import "../../chunk-AXWICOKO.mjs";
10
- import "../../chunk-E3G5QXSH.mjs";
11
10
  import "../../chunk-JYW3GEH6.mjs";
12
- import "../../chunk-U4DJHAM5.mjs";
13
11
  import "../../chunk-27Y6K5NK.mjs";
12
+ import "../../chunk-E3G5QXSH.mjs";
13
+ import "../../chunk-U4DJHAM5.mjs";
14
14
  import "../../chunk-AC6TWLRT.mjs";
15
15
  export {
16
16
  ToastProvider,
@@ -2,12 +2,12 @@
2
2
  import "../../chunk-MBLZYQCN.mjs";
3
3
  import {
4
4
  tree_default
5
- } from "../../chunk-PP76VNOE.mjs";
5
+ } from "../../chunk-G4G6YXZH.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
7
  import "../../chunk-AXWICOKO.mjs";
8
8
  import "../../chunk-JYW3GEH6.mjs";
9
- import "../../chunk-U4DJHAM5.mjs";
10
9
  import "../../chunk-27Y6K5NK.mjs";
10
+ import "../../chunk-U4DJHAM5.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
12
12
  export {
13
13
  tree_default as Tree
@@ -3,12 +3,12 @@ import {
3
3
  Tree,
4
4
  TreeNodeItem,
5
5
  tree_default
6
- } from "../../chunk-PP76VNOE.mjs";
6
+ } from "../../chunk-G4G6YXZH.mjs";
7
7
  import "../../chunk-ZYIIXWVY.mjs";
8
8
  import "../../chunk-AXWICOKO.mjs";
9
9
  import "../../chunk-JYW3GEH6.mjs";
10
- import "../../chunk-U4DJHAM5.mjs";
11
10
  import "../../chunk-27Y6K5NK.mjs";
11
+ import "../../chunk-U4DJHAM5.mjs";
12
12
  import "../../chunk-AC6TWLRT.mjs";
13
13
  export {
14
14
  Tree,
package/dist/index.js CHANGED
@@ -7763,17 +7763,20 @@ var import_jsx_runtime15 = require("react/jsx-runtime");
7763
7763
  var Textarea = (0, import_react13.forwardRef)((originalProps, ref) => {
7764
7764
  var _a, _b;
7765
7765
  const [props, variantProps] = mapPropsVariants(originalProps, textareaStyle.variantKeys);
7766
- const { classNames, label, helperMessage, errorMessage, ...textareaProps } = props;
7766
+ const { classNames, label, helperMessage, errorMessage, rows = 3, ...textareaProps } = props;
7767
7767
  const [length, setLength] = (0, import_react13.useState)(((_b = (_a = originalProps.value) == null ? void 0 : _a.toString()) != null ? _b : "").length);
7768
7768
  const innerRef = (0, import_react13.useRef)(null);
7769
7769
  (0, import_react13.useImperativeHandle)(ref, () => innerRef.current);
7770
7770
  const autoResize = (0, import_react13.useCallback)(() => {
7771
7771
  const el = innerRef.current;
7772
- if (el) {
7773
- el.style.height = "auto";
7774
- el.style.height = el.scrollHeight + "px";
7775
- }
7776
- }, []);
7772
+ if (!el) return;
7773
+ el.style.height = "auto";
7774
+ const computed = window.getComputedStyle(el);
7775
+ const lineHeight = parseFloat(computed.lineHeight);
7776
+ const minRows = el.rows || rows || 1;
7777
+ const minHeight = lineHeight * minRows;
7778
+ el.style.height = Math.max(el.scrollHeight, minHeight) + "px";
7779
+ }, [rows]);
7777
7780
  const handleChange = (0, import_react13.useCallback)(
7778
7781
  (e) => {
7779
7782
  var _a2;
@@ -7809,13 +7812,14 @@ var Textarea = (0, import_react13.forwardRef)((originalProps, ref) => {
7809
7812
  {
7810
7813
  ref: innerRef,
7811
7814
  ...textareaProps,
7815
+ rows,
7812
7816
  readOnly: props.readOnly,
7813
7817
  onChange: handleChange,
7814
7818
  className: slots.textarea({ class: classNames == null ? void 0 : classNames.textarea })
7815
7819
  }
7816
7820
  ),
7817
7821
  /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex justify-between", children: [
7818
- helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
7822
+ helperMessage && errorMessage === void 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
7819
7823
  "p",
7820
7824
  {
7821
7825
  className: clsx(
@@ -7825,7 +7829,8 @@ var Textarea = (0, import_react13.forwardRef)((originalProps, ref) => {
7825
7829
  children: helperMessage
7826
7830
  }
7827
7831
  ),
7828
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage }),
7832
+ errorMessage && errorMessage.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage }),
7833
+ errorMessage === "" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: clsx("error", "sr-only"), "aria-hidden": "true" }),
7829
7834
  textareaProps.maxLength !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
7830
7835
  "p",
7831
7836
  {
@@ -7860,7 +7865,6 @@ var textareaStyle = (0, import_tailwind_variants13.tv)({
7860
7865
  wrapper: ["flex", "flex-col"],
7861
7866
  textarea: [
7862
7867
  "w-full",
7863
- "h-full",
7864
7868
  "bg-transparent",
7865
7869
  "text-neutral-main",
7866
7870
  "placeholder:!text-neutral-main",
@@ -7928,7 +7932,7 @@ var textareaStyle = (0, import_tailwind_variants13.tv)({
7928
7932
  base: ["text-sm", "gap-[4px]"],
7929
7933
  label: ["text-sm"],
7930
7934
  wrapper: ["gap-[4px]"],
7931
- textarea: ["w-[240px]", "h-[24px]", "rounded-sm", "p-[8px]", "gap-[4px]"],
7935
+ textarea: ["w-[240px]", "rounded-sm", "p-[8px]"],
7932
7936
  helperMessage: ["text-sm"],
7933
7937
  errorMessage: ["text-sm"]
7934
7938
  },
@@ -7936,7 +7940,7 @@ var textareaStyle = (0, import_tailwind_variants13.tv)({
7936
7940
  base: ["text-md", "gap-[6px]"],
7937
7941
  label: ["text-md"],
7938
7942
  wrapper: ["gap-[6px]"],
7939
- textarea: ["w-[240px]", "h-[32px]", "rounded-md", "p-[8px]", "gap-[6px]"],
7943
+ textarea: ["w-[240px]", "rounded-md", "p-[8px]"],
7940
7944
  helperMessage: ["text-sm"],
7941
7945
  errorMessage: ["text-sm"]
7942
7946
  },
@@ -7944,7 +7948,7 @@ var textareaStyle = (0, import_tailwind_variants13.tv)({
7944
7948
  base: ["text-lg", "gap-[8px]"],
7945
7949
  label: ["text-lg"],
7946
7950
  wrapper: ["gap-[8px]"],
7947
- textarea: ["w-[240px]", "h-[40px]", "rounded-lg", "p-[10px]", "gap-[8px]"],
7951
+ textarea: ["w-[240px]", "rounded-lg", "p-[10px]"],
7948
7952
  helperMessage: ["text-md"],
7949
7953
  errorMessage: ["text-md"]
7950
7954
  },
@@ -7952,7 +7956,7 @@ var textareaStyle = (0, import_tailwind_variants13.tv)({
7952
7956
  base: ["text-xl", "gap-[10px]"],
7953
7957
  label: ["text-xl"],
7954
7958
  wrapper: ["gap-[10px]"],
7955
- textarea: ["w-[240px]", "h-[50px]", "rounded-lg", "p-[10px]", "gap-[10px]"],
7959
+ textarea: ["w-[240px]", "rounded-lg", "p-[10px]"],
7956
7960
  helperMessage: ["text-md"],
7957
7961
  errorMessage: ["text-md"]
7958
7962
  }
package/dist/index.mjs CHANGED
@@ -1,115 +1,122 @@
1
1
  "use client";
2
+ import "./chunk-MBLZYQCN.mjs";
3
+ import {
4
+ tree_default
5
+ } from "./chunk-G4G6YXZH.mjs";
2
6
  import "./chunk-HIE2YRGA.mjs";
3
7
  import {
4
8
  tooltip_default
5
9
  } from "./chunk-5KC3IFNR.mjs";
6
10
  import "./chunk-ZMOAFSYE.mjs";
7
11
  import "./chunk-WSIADHVC.mjs";
8
- import "./chunk-MBLZYQCN.mjs";
9
- import {
10
- tree_default
11
- } from "./chunk-PP76VNOE.mjs";
12
- import "./chunk-3MY6LO7N.mjs";
12
+ import "./chunk-MZ76AA76.mjs";
13
13
  import {
14
- tabs_default
15
- } from "./chunk-DW3BX4M2.mjs";
14
+ skeleton_default
15
+ } from "./chunk-6PN3DGOE.mjs";
16
16
  import "./chunk-RRAZM5D3.mjs";
17
17
  import {
18
18
  textarea_default
19
- } from "./chunk-Q22PRT24.mjs";
19
+ } from "./chunk-44FMPRHV.mjs";
20
20
  import "./chunk-LUWGOKLG.mjs";
21
21
  import {
22
22
  ToastProvider,
23
23
  useToast
24
- } from "./chunk-AOS4SCXB.mjs";
24
+ } from "./chunk-5UCNLY2A.mjs";
25
25
  import "./chunk-ZOTHPHXA.mjs";
26
26
  import {
27
27
  toast_default
28
- } from "./chunk-2NUDDLY4.mjs";
28
+ } from "./chunk-3HANNN76.mjs";
29
29
  import "./chunk-DX3KXNP6.mjs";
30
30
  import {
31
31
  definition_table_default
32
- } from "./chunk-DS5CGU2X.mjs";
32
+ } from "./chunk-BH3I4LIZ.mjs";
33
33
  import {
34
34
  table_default
35
- } from "./chunk-A5YU7ZB5.mjs";
36
- import "./chunk-LVFI2NOH.mjs";
35
+ } from "./chunk-54FDYAUN.mjs";
36
+ import "./chunk-3MY6LO7N.mjs";
37
37
  import {
38
- switch_default
39
- } from "./chunk-AGE57VDD.mjs";
38
+ tabs_default
39
+ } from "./chunk-DW3BX4M2.mjs";
40
40
  import "./chunk-QCEKPS7U.mjs";
41
41
  import {
42
42
  select_default
43
- } from "./chunk-LL2AJFUA.mjs";
43
+ } from "./chunk-APQE3TRN.mjs";
44
+ import "./chunk-LVFI2NOH.mjs";
45
+ import {
46
+ switch_default
47
+ } from "./chunk-AGE57VDD.mjs";
44
48
  import "./chunk-OLQOLLKG.mjs";
45
49
  import {
46
50
  starRating_default
47
51
  } from "./chunk-AZYWRRZY.mjs";
48
- import "./chunk-MZ76AA76.mjs";
49
- import {
50
- skeleton_default
51
- } from "./chunk-6PN3DGOE.mjs";
52
- import "./chunk-4VWG4726.mjs";
53
- import {
54
- timePicker_default
55
- } from "./chunk-LYNIPIBI.mjs";
56
- import "./chunk-HYLTIUH3.mjs";
57
- import "./chunk-RKHH3CUS.mjs";
58
52
  import "./chunk-TPFN22HR.mjs";
59
53
  import {
60
54
  radio_default
61
- } from "./chunk-RNMD44IQ.mjs";
55
+ } from "./chunk-H6ZQDMYU.mjs";
62
56
  import "./chunk-NNVGYR5T.mjs";
63
57
  import {
64
58
  useGlobalModal
65
- } from "./chunk-EHCMZC7V.mjs";
66
- import "./chunk-7B7LRG5J.mjs";
59
+ } from "./chunk-QPEZ7SFU.mjs";
67
60
  import {
68
- pagination_default
69
- } from "./chunk-5TDQTKOE.mjs";
70
- import "./chunk-F3HENRVM.mjs";
61
+ GlobalModalProvider
62
+ } from "./chunk-Q5MFMWG7.mjs";
63
+ import {
64
+ modal_default
65
+ } from "./chunk-I4LNWIIV.mjs";
66
+ import "./chunk-4VWG4726.mjs";
67
+ import {
68
+ timePicker_default
69
+ } from "./chunk-74MC7B4K.mjs";
70
+ import "./chunk-FZYZSMSS.mjs";
71
+ import "./chunk-RKHH3CUS.mjs";
71
72
  import {
72
73
  datePicker_default
73
- } from "./chunk-NQYSF5SG.mjs";
74
- import "./chunk-3IBJXQTJ.mjs";
74
+ } from "./chunk-SNXIHIQG.mjs";
75
75
  import {
76
76
  day_default
77
77
  } from "./chunk-XZYQFBCT.mjs";
78
+ import "./chunk-3IBJXQTJ.mjs";
78
79
  import "./chunk-7MVEAQ7Z.mjs";
79
80
  import {
80
81
  list_default
81
82
  } from "./chunk-NGRGAY42.mjs";
82
83
  import {
83
84
  listItem_default
84
- } from "./chunk-CIV3TYSL.mjs";
85
- import {
86
- GlobalModalProvider
87
- } from "./chunk-7ODWIPFY.mjs";
88
- import {
89
- modal_default
90
- } from "./chunk-2PNSKMWG.mjs";
91
- import "./chunk-QZ3LVYJW.mjs";
92
- import "./chunk-MGEWSREV.mjs";
85
+ } from "./chunk-US5NY7UP.mjs";
86
+ import "./chunk-7B7LRG5J.mjs";
93
87
  import {
94
- chip_default
95
- } from "./chunk-MYUAX3Z5.mjs";
88
+ pagination_default
89
+ } from "./chunk-VSVBYQF4.mjs";
90
+ import "./chunk-F3HENRVM.mjs";
96
91
  import "./chunk-32GA3YW4.mjs";
97
92
  import {
98
93
  drawer_default
99
- } from "./chunk-45Y7ANPK.mjs";
94
+ } from "./chunk-ZFC5O2V3.mjs";
95
+ import "./chunk-KYIODWXL.mjs";
96
+ import {
97
+ breadcrumb_default
98
+ } from "./chunk-6CTMLHLK.mjs";
100
99
  import "./chunk-RLXOHILK.mjs";
101
100
  import {
102
101
  fileUpload_default
103
- } from "./chunk-KEBKZ5KW.mjs";
102
+ } from "./chunk-QECR6VMW.mjs";
104
103
  import "./chunk-7VOQKIIK.mjs";
105
104
  import {
106
105
  progress_default
107
- } from "./chunk-KH63CD55.mjs";
106
+ } from "./chunk-ACZ3DQVT.mjs";
108
107
  import "./chunk-2GCSFWHD.mjs";
109
108
  import {
110
109
  input_default
111
- } from "./chunk-JDPLDAWR.mjs";
110
+ } from "./chunk-JI3WAAZV.mjs";
111
+ import "./chunk-MGEWSREV.mjs";
112
+ import "./chunk-QZ3LVYJW.mjs";
113
+ import {
114
+ checkbox_default
115
+ } from "./chunk-3DCUMRYP.mjs";
112
116
  import "./chunk-3OCNT22V.mjs";
117
+ import {
118
+ simpleBarChart_default
119
+ } from "./chunk-6WD32ERF.mjs";
113
120
  import {
114
121
  areaChart_default
115
122
  } from "./chunk-LH6Z7SDZ.mjs";
@@ -127,24 +134,11 @@ import {
127
134
  import {
128
135
  radarChart_default
129
136
  } from "./chunk-U7SYKG2C.mjs";
130
- import {
131
- simpleBarChart_default
132
- } from "./chunk-6WD32ERF.mjs";
133
- import {
134
- checkbox_default
135
- } from "./chunk-OEIEALIP.mjs";
136
137
  import "./chunk-SE5TU755.mjs";
137
138
  import {
138
139
  backdrop_default
139
- } from "./chunk-IH3BJRTV.mjs";
140
- import "./chunk-KYIODWXL.mjs";
141
- import {
142
- breadcrumb_default
143
- } from "./chunk-FPHVFN6F.mjs";
140
+ } from "./chunk-4X35QQTI.mjs";
144
141
  import "./chunk-MY5U63QO.mjs";
145
- import {
146
- text_button_default
147
- } from "./chunk-4LUASWAN.mjs";
148
142
  import {
149
143
  button_group_default
150
144
  } from "./chunk-5VTYO3RF.mjs";
@@ -157,6 +151,12 @@ import {
157
151
  import "./chunk-6WSACUIB.mjs";
158
152
  import "./chunk-LXHUO6VM.mjs";
159
153
  import "./chunk-SZL743JC.mjs";
154
+ import {
155
+ text_button_default
156
+ } from "./chunk-NDNIAALB.mjs";
157
+ import {
158
+ chip_default
159
+ } from "./chunk-MYUAX3Z5.mjs";
160
160
  import "./chunk-ZYIIXWVY.mjs";
161
161
  import {
162
162
  Icon_default,
@@ -169,18 +169,18 @@ import {
169
169
  import {
170
170
  accordionItem_default
171
171
  } from "./chunk-NTNF5T5I.mjs";
172
- import "./chunk-E3G5QXSH.mjs";
173
172
  import "./chunk-7DLOYKVC.mjs";
174
173
  import {
175
174
  avatar_default
176
175
  } from "./chunk-QAXRJ3EH.mjs";
177
176
  import "./chunk-JYW3GEH6.mjs";
177
+ import "./chunk-3V4HT2K5.mjs";
178
+ import "./chunk-27Y6K5NK.mjs";
179
+ import "./chunk-E3G5QXSH.mjs";
178
180
  import {
179
181
  deepnoidUi,
180
182
  tv
181
183
  } from "./chunk-U4DJHAM5.mjs";
182
- import "./chunk-3V4HT2K5.mjs";
183
- import "./chunk-27Y6K5NK.mjs";
184
184
  import "./chunk-AC6TWLRT.mjs";
185
185
  export {
186
186
  accordion_default as Accordion,