laif-ds 0.2.69 → 0.2.70

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.
@@ -1,35 +1,36 @@
1
1
  "use client";
2
- import { jsxs as c, jsx as r } from "react/jsx-runtime";
3
- import { designTokens as t } from "../design-tokens.js";
4
- import { Label as m } from "./label.js";
5
- import { cn as s } from "../../lib/utils.js";
6
- function b({
2
+ import { jsxs as m, jsx as r } from "react/jsx-runtime";
3
+ import { designTokens as e } from "../design-tokens.js";
4
+ import { Label as x } from "./label.js";
5
+ import { cn as a } from "../../lib/utils.js";
6
+ function h({
7
7
  wrpClassName: o,
8
- className: a,
9
- label: e,
8
+ className: s,
9
+ label: t,
10
10
  labelClassName: n,
11
11
  id: d,
12
12
  ...l
13
13
  }) {
14
- const i = d || (e ? `textarea-${Math.random().toString(36).substring(2, 9)}` : void 0);
15
- return /* @__PURE__ */ c("div", { className: s("space-y-1.5", o), children: [
16
- e && /* @__PURE__ */ r(m, { htmlFor: i, className: n, children: e }),
14
+ const i = d || (t ? `textarea-${Math.random().toString(36).substring(2, 9)}` : void 0);
15
+ return /* @__PURE__ */ m("div", { className: a("space-y-1.5", o), children: [
16
+ t && /* @__PURE__ */ r(x, { htmlFor: i, className: n, children: t }),
17
17
  /* @__PURE__ */ r(
18
18
  "textarea",
19
19
  {
20
20
  id: i,
21
21
  "data-slot": "textarea",
22
- className: s(
23
- t.input.base,
24
- t.radius.default,
25
- t.text.base,
26
- t.text.placeholder,
27
- t.interaction.disabled,
28
- "flex field-sizing-content min-h-16 w-full px-3 py-2 shadow-xs transition-[color,box-shadow] outline-none md:text-sm",
22
+ className: a(
23
+ e.input.base,
24
+ e.radius.default,
25
+ e.text.base,
26
+ e.text.placeholder,
27
+ e.interaction.disabled,
28
+ "flex min-h-16 w-full min-w-0 max-w-full px-3 py-2 shadow-xs transition-[color,box-shadow] outline-none md:text-sm",
29
+ "whitespace-pre-wrap break-words overflow-x-hidden",
29
30
  // Focus states
30
31
  "focus-visible:ring-d-ring/50 focus-visible:border-d-ring focus-visible:ring-[3px]",
31
- t.input.invalid,
32
- a
32
+ e.input.invalid,
33
+ s
33
34
  ),
34
35
  ...l
35
36
  }
@@ -37,5 +38,5 @@ function b({
37
38
  ] });
38
39
  }
39
40
  export {
40
- b as Textarea
41
+ h as Textarea
41
42
  };
package/dist/index.d.ts CHANGED
@@ -264,6 +264,7 @@ export declare function AppKanban<T = any>({ columns, initialTasks, onTaskMove,
264
264
  export declare type AppKanbanColumn = {
265
265
  id: string;
266
266
  label: string;
267
+ disabled?: boolean;
267
268
  };
268
269
 
269
270
  export declare type AppKanbanConfig<T = any> = {