laif-ds 0.1.32 → 0.1.34

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 (52) hide show
  1. package/dist/components/ui/accordion.js +2 -7
  2. package/dist/components/ui/alert-dialog.js +10 -37
  3. package/dist/components/ui/alert.js +1 -5
  4. package/dist/components/ui/app-multiple-select-dropdown.js +120 -116
  5. package/dist/components/ui/app-select.js +9 -1
  6. package/dist/components/ui/app-sidebar.js +9 -23
  7. package/dist/components/ui/aspect-ratio.js +1 -3
  8. package/dist/components/ui/async-select.js +80 -64
  9. package/dist/components/ui/audio-visualizer.js +3 -2
  10. package/dist/components/ui/button.js +45 -5
  11. package/dist/components/ui/card.js +7 -2
  12. package/dist/components/ui/charts/circular.js +1 -1
  13. package/dist/components/ui/chat-message.js +34 -16
  14. package/dist/components/ui/chat.js +4 -4
  15. package/dist/components/ui/command.js +1 -1
  16. package/dist/components/ui/data-cross-table.js +33 -9
  17. package/dist/components/ui/data-table.js +4 -4
  18. package/dist/components/ui/date-picker.js +2 -2
  19. package/dist/components/ui/dropdown-menu.js +7 -7
  20. package/dist/components/ui/file-preview.js +9 -9
  21. package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +25 -3
  22. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +32 -13
  23. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +7 -1
  24. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +6 -1
  25. package/dist/components/ui/gantt/components/Chart/Chart.js +19 -3
  26. package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +80 -71
  27. package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +72 -54
  28. package/dist/components/ui/gantt/components/Controls/Controls.js +4 -2
  29. package/dist/components/ui/gantt/hooks/useGanttCalculate.js +11 -1
  30. package/dist/components/ui/gantt/utils/getWholeWidth.js +4 -1
  31. package/dist/components/ui/gantt/utils/transformData.js +7 -4
  32. package/dist/components/ui/input-selector.js +5 -2
  33. package/dist/components/ui/input.js +41 -46
  34. package/dist/components/ui/interrupt-prompt.js +2 -2
  35. package/dist/components/ui/markdown-renderer.js +2 -2
  36. package/dist/components/ui/message-input.js +12 -10
  37. package/dist/components/ui/multiple-selector.js +44 -31
  38. package/dist/components/ui/prompt-suggestions.js +2 -2
  39. package/dist/components/ui/resizable.js +1 -1
  40. package/dist/components/ui/select.js +6 -10
  41. package/dist/components/ui/sidebar.js +27 -19
  42. package/dist/components/ui/slider.js +103 -89
  43. package/dist/components/ui/table-skeleton.js +29 -11
  44. package/dist/components/ui/table.js +4 -1
  45. package/dist/components/ui/tabs.js +1 -1
  46. package/dist/components/ui/theme-switcher.js +2 -7
  47. package/dist/components/ui/typing-indicator.js +4 -4
  48. package/dist/components/ui/typo.js +1 -8
  49. package/dist/hooks/use-mobile.js +3 -1
  50. package/dist/index.d.ts +9 -8
  51. package/dist/styles.css +1 -1
  52. package/package.json +3 -1
@@ -52,7 +52,15 @@ const X = d.forwardRef(
52
52
  setOpenMobile: u,
53
53
  toggleSidebar: S
54
54
  }),
55
- [y, h, w, c, p, u, S]
55
+ [
56
+ y,
57
+ h,
58
+ w,
59
+ c,
60
+ p,
61
+ u,
62
+ S
63
+ ]
56
64
  );
57
65
  return /* @__PURE__ */ r(M.Provider, { value: C, children: /* @__PURE__ */ r(L, { delayDuration: 0, children: /* @__PURE__ */ r(
58
66
  "div",
@@ -63,7 +71,7 @@ const X = d.forwardRef(
63
71
  ...n
64
72
  },
65
73
  className: i(
66
- "group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-d-sidebar",
74
+ "group/sidebar-wrapper has-[[data-variant=inset]]:bg-d-sidebar flex min-h-svh w-full",
67
75
  o
68
76
  ),
69
77
  ref: g,
@@ -88,7 +96,7 @@ const Y = d.forwardRef(
88
96
  "div",
89
97
  {
90
98
  className: i(
91
- "flex h-full w-[--sidebar-width] flex-col bg-d-sidebar text-d-sidebar-foreground",
99
+ "bg-d-sidebar text-d-sidebar-foreground flex h-full w-[--sidebar-width] flex-col",
92
100
  o
93
101
  ),
94
102
  ref: f,
@@ -100,7 +108,7 @@ const Y = d.forwardRef(
100
108
  {
101
109
  "data-sidebar": "sidebar",
102
110
  "data-mobile": "true",
103
- className: "w-[--sidebar-width] bg-d-sidebar p-0 text-d-sidebar-foreground [&>button]:hidden",
111
+ className: "bg-d-sidebar text-d-sidebar-foreground w-[--sidebar-width] p-0 [&>button]:hidden",
104
112
  style: {
105
113
  "--sidebar-width": q
106
114
  },
@@ -117,7 +125,7 @@ const Y = d.forwardRef(
117
125
  "div",
118
126
  {
119
127
  ref: f,
120
- className: "group peer hidden text-d-sidebar-foreground md:block",
128
+ className: "group peer text-d-sidebar-foreground hidden md:block",
121
129
  "data-state": c,
122
130
  "data-collapsible": c === "collapsed" ? t : "",
123
131
  "data-variant": e,
@@ -149,7 +157,7 @@ const Y = d.forwardRef(
149
157
  "div",
150
158
  {
151
159
  "data-sidebar": "sidebar",
152
- className: "flex h-full w-full flex-col bg-d-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-d-sidebar-border group-data-[variant=floating]:shadow",
160
+ className: "bg-d-sidebar group-data-[variant=floating]:border-d-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow",
153
161
  children: n
154
162
  }
155
163
  )
@@ -195,10 +203,10 @@ const Q = d.forwardRef(({ className: a, ...e }, t) => {
195
203
  onClick: o,
196
204
  title: "Toggle Sidebar",
197
205
  className: i(
198
- "absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-d-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
206
+ "hover:after:bg-d-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
199
207
  "[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
200
208
  "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
201
- "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-d-sidebar",
209
+ "group-data-[collapsible=offcanvas]:hover:bg-d-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",
202
210
  "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
203
211
  "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
204
212
  a
@@ -213,8 +221,8 @@ const Z = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
213
221
  {
214
222
  ref: t,
215
223
  className: i(
216
- "relative flex w-full flex-1 flex-col bg-d-background",
217
- "md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
224
+ "bg-d-background relative flex w-full flex-1 flex-col",
225
+ "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2",
218
226
  a
219
227
  ),
220
228
  ...e
@@ -227,7 +235,7 @@ const ee = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
227
235
  ref: t,
228
236
  "data-sidebar": "input",
229
237
  className: i(
230
- "h-8 w-full bg-d-background shadow-none focus-visible:ring-2 focus-visible:ring-d-sidebar-ring",
238
+ "bg-d-background focus-visible:ring-d-sidebar-ring h-8 w-full shadow-none focus-visible:ring-2",
231
239
  a
232
240
  ),
233
241
  ...e
@@ -259,7 +267,7 @@ const re = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
259
267
  {
260
268
  ref: t,
261
269
  "data-sidebar": "separator",
262
- className: i("mx-2 w-auto bg-d-sidebar-border", a),
270
+ className: i("bg-d-sidebar-border mx-2 w-auto", a),
263
271
  ...e
264
272
  }
265
273
  ));
@@ -293,7 +301,7 @@ const oe = d.forwardRef(({ className: a, asChild: e = !1, ...t }, o) => /* @__PU
293
301
  ref: o,
294
302
  "data-sidebar": "group-label",
295
303
  className: i(
296
- "flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-d-sidebar-foreground/70 outline-none ring-d-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
304
+ "text-d-sidebar-foreground/70 ring-d-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
297
305
  "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
298
306
  a
299
307
  ),
@@ -307,7 +315,7 @@ const ne = d.forwardRef(({ className: a, asChild: e = !1, ...t }, o) => /* @__PU
307
315
  ref: o,
308
316
  "data-sidebar": "group-action",
309
317
  className: i(
310
- "absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-d-sidebar-foreground outline-none ring-d-sidebar-ring transition-transform hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
318
+ "text-d-sidebar-foreground ring-d-sidebar-ring hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
311
319
  // Increases the hit area of the button on mobile.
312
320
  "after:absolute after:-inset-2 after:md:hidden",
313
321
  "group-data-[collapsible=icon]:hidden",
@@ -410,14 +418,14 @@ const fe = d.forwardRef(({ className: a, asChild: e = !1, showOnHover: t = !1, .
410
418
  ref: n,
411
419
  "data-sidebar": "menu-action",
412
420
  className: i(
413
- "absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-d-sidebar-foreground outline-none ring-d-sidebar-ring transition-transform hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-d-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
421
+ "text-d-sidebar-foreground ring-d-sidebar-ring hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground peer-hover/menu-button:text-d-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
414
422
  // Increases the hit area of the button on mobile.
415
423
  "after:absolute after:-inset-2 after:md:hidden",
416
424
  "peer-data-[size=sm]/menu-button:top-1",
417
425
  "peer-data-[size=default]/menu-button:top-1.5",
418
426
  "peer-data-[size=lg]/menu-button:top-2.5",
419
427
  "group-data-[collapsible=icon]:hidden",
420
- t && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-d-sidebar-accent-foreground md:opacity-0",
428
+ t && "peer-data-[active=true]/menu-button:text-d-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",
421
429
  a
422
430
  ),
423
431
  ...o
@@ -430,7 +438,7 @@ const pe = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
430
438
  ref: t,
431
439
  "data-sidebar": "menu-badge",
432
440
  className: i(
433
- "pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-d-sidebar-foreground",
441
+ "text-d-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
434
442
  "peer-hover/menu-button:text-d-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-d-sidebar-accent-foreground",
435
443
  "peer-data-[size=sm]/menu-button:top-1",
436
444
  "peer-data-[size=default]/menu-button:top-1.5",
@@ -480,7 +488,7 @@ const ge = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
480
488
  ref: t,
481
489
  "data-sidebar": "menu-sub",
482
490
  className: i(
483
- "mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-d-sidebar-border px-2.5 py-0.5",
491
+ "border-d-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5",
484
492
  "group-data-[collapsible=icon]:hidden",
485
493
  a
486
494
  ),
@@ -498,7 +506,7 @@ const ve = d.forwardRef(({ asChild: a = !1, size: e = "md", isActive: t, classNa
498
506
  "data-size": e,
499
507
  "data-active": t,
500
508
  className: i(
501
- "flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-d-sidebar-foreground outline-none ring-d-sidebar-ring hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground focus-visible:ring-2 active:bg-d-sidebar-accent active:text-d-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-d-sidebar-accent-foreground",
509
+ "text-d-sidebar-foreground ring-d-sidebar-ring hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground active:bg-d-sidebar-accent active:text-d-sidebar-accent-foreground [&>svg]:text-d-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
502
510
  "data-[active=true]:bg-d-sidebar-accent data-[active=true]:text-d-sidebar-accent-foreground data-[active=true]:font-bold",
503
511
  e === "sm" && "text-xs",
504
512
  e === "md" && "text-sm",
@@ -33,99 +33,113 @@ const S = w(
33
33
  size: "base"
34
34
  }
35
35
  }
36
- ), B = F.forwardRef(({
37
- className: C,
38
- size: m,
39
- formatValue: i,
40
- showValues: $ = !1,
41
- showStickyLabel: r = !1,
42
- stickyLabelSuffix: h = "",
43
- fillOffset: o = !1,
44
- offsetValue: v,
45
- steps: d,
46
- showStepMarkers: z = !1,
47
- ...e
48
- }, R) => {
49
- const s = v !== void 0 ? v : e.min !== void 0 && e.max !== void 0 ? (e.min + e.max) / 2 : 50, f = () => {
50
- if (!o) return 0;
51
- const a = e.min || 0, t = (e.max || 100) - a;
52
- return (s - a) / t * 100;
53
- }, g = (a) => d ? d.reduce((n, t) => Math.abs(t - a) < Math.abs(n - a) ? t : n) : a, T = (a) => {
54
- if (!d || !e.onValueChange) {
55
- e.onValueChange && e.onValueChange(a);
56
- return;
57
- }
58
- const n = g(a[0]), t = a.length > 1 ? [n, g(a[1])] : [n];
59
- e.onValueChange(t);
60
- }, j = (a) => {
61
- const n = e.min || 0, t = e.max || 100;
62
- return (a - n) / (t - n) * 100;
63
- };
64
- return /* @__PURE__ */ u("div", { className: "flex flex-col w-full gap-1", children: [
65
- /* @__PURE__ */ u(
66
- y,
67
- {
68
- ref: R,
69
- className: c(
70
- "relative flex w-full touch-none select-none items-center",
71
- C
72
- ),
73
- ...e,
74
- onValueChange: void 0,
75
- onValueChange: d ? T : e.onValueChange,
76
- children: [
77
- /* @__PURE__ */ u(M, { className: c(S({ size: m })), children: [
78
- d && z && /* @__PURE__ */ l("div", { className: "absolute w-full h-full", children: d.map((a, n) => /* @__PURE__ */ l(
79
- "div",
80
- {
81
- className: "absolute w-1 h-4 -mt-1.5 bg-d-muted-foreground/50 rounded-full",
82
- style: {
83
- left: `calc(${j(a)}% - 2px)`,
84
- top: "50%",
85
- transform: "translateY(-50%)"
86
- }
87
- },
88
- n
89
- )) }),
90
- o && e.value ? /* @__PURE__ */ u(k, { children: [
91
- /* @__PURE__ */ l("div", { className: "absolute h-full w-full bg-d-muted/30" }),
92
- /* @__PURE__ */ l(
36
+ ), B = F.forwardRef(
37
+ ({
38
+ className: C,
39
+ size: m,
40
+ formatValue: i,
41
+ showValues: $ = !1,
42
+ showStickyLabel: r = !1,
43
+ stickyLabelSuffix: h = "",
44
+ fillOffset: o = !1,
45
+ offsetValue: v,
46
+ steps: d,
47
+ showStepMarkers: z = !1,
48
+ ...e
49
+ }, R) => {
50
+ const s = v !== void 0 ? v : e.min !== void 0 && e.max !== void 0 ? (e.min + e.max) / 2 : 50, f = () => {
51
+ if (!o) return 0;
52
+ const a = e.min || 0, t = (e.max || 100) - a;
53
+ return (s - a) / t * 100;
54
+ }, g = (a) => d ? d.reduce((n, t) => Math.abs(t - a) < Math.abs(n - a) ? t : n) : a, T = (a) => {
55
+ if (!d || !e.onValueChange) {
56
+ e.onValueChange && e.onValueChange(a);
57
+ return;
58
+ }
59
+ const n = g(a[0]), t = a.length > 1 ? [n, g(a[1])] : [n];
60
+ e.onValueChange(t);
61
+ }, j = (a) => {
62
+ const n = e.min || 0, t = e.max || 100;
63
+ return (a - n) / (t - n) * 100;
64
+ };
65
+ return /* @__PURE__ */ u("div", { className: "flex w-full flex-col gap-1", children: [
66
+ /* @__PURE__ */ u(
67
+ y,
68
+ {
69
+ ref: R,
70
+ className: c(
71
+ "relative flex w-full touch-none items-center select-none",
72
+ C
73
+ ),
74
+ ...e,
75
+ onValueChange: void 0,
76
+ onValueChange: d ? T : e.onValueChange,
77
+ children: [
78
+ /* @__PURE__ */ u(M, { className: c(S({ size: m })), children: [
79
+ d && z && /* @__PURE__ */ l("div", { className: "absolute h-full w-full", children: d.map((a, n) => /* @__PURE__ */ l(
93
80
  "div",
94
81
  {
95
- className: "absolute h-full bg-d-primary",
82
+ className: "bg-d-muted-foreground/50 absolute -mt-1.5 h-4 w-1 rounded-full",
96
83
  style: {
97
- left: e.value[0] < s ? `${(e.value[0] - (e.min || 0)) / ((e.max || 100) - (e.min || 0)) * 100}%` : `${f()}%`,
98
- right: e.value[0] > s ? `${100 - (e.value[0] - (e.min || 0)) / ((e.max || 100) - (e.min || 0)) * 100}%` : `${100 - f()}%`
84
+ left: `calc(${j(a)}% - 2px)`,
85
+ top: "50%",
86
+ transform: "translateY(-50%)"
99
87
  }
100
- }
101
- )
102
- ] }) : /* @__PURE__ */ l(P, { className: "absolute h-full bg-d-primary" })
103
- ] }),
104
- /* @__PURE__ */ l(b, { className: c(N({ size: m }), "relative"), children: r && e.value && /* @__PURE__ */ l(
105
- x,
106
- {
107
- variant: "default",
108
- className: "absolute left-1/2 -translate-x-1/2 -translate-y-1/2 -top-5 z-10",
109
- children: i ? i(e.value[0]) : `${e.value[0]}${h}`
110
- }
111
- ) }),
112
- e.value && e.value.length > 1 && /* @__PURE__ */ l(b, { className: c(N({ size: m }), "relative"), children: r && /* @__PURE__ */ l(
113
- x,
114
- {
115
- variant: "default",
116
- className: "absolute left-1/2 -translate-x-1/2 -translate-y-1/2 -top-5 z-10",
117
- children: i ? i(e.value[1]) : `${e.value[1]}${h}`
118
- }
119
- ) })
120
- ]
121
- }
122
- ),
123
- $ && e.value && /* @__PURE__ */ u("div", { className: "flex justify-between text-xs font-medium text-d-muted-foreground", children: [
124
- /* @__PURE__ */ l("span", { children: i ? i(e.value[0]) : e.value[0] }),
125
- e.value.length > 1 ? /* @__PURE__ */ l("span", { children: i ? i(e.value[1]) : e.value[1] }) : e.max !== void 0 ? /* @__PURE__ */ l("span", { children: i ? i(e.max) : e.max }) : null
126
- ] })
127
- ] });
128
- });
88
+ },
89
+ n
90
+ )) }),
91
+ o && e.value ? /* @__PURE__ */ u(k, { children: [
92
+ /* @__PURE__ */ l("div", { className: "bg-d-muted/30 absolute h-full w-full" }),
93
+ /* @__PURE__ */ l(
94
+ "div",
95
+ {
96
+ className: "bg-d-primary absolute h-full",
97
+ style: {
98
+ left: e.value[0] < s ? `${(e.value[0] - (e.min || 0)) / ((e.max || 100) - (e.min || 0)) * 100}%` : `${f()}%`,
99
+ right: e.value[0] > s ? `${100 - (e.value[0] - (e.min || 0)) / ((e.max || 100) - (e.min || 0)) * 100}%` : `${100 - f()}%`
100
+ }
101
+ }
102
+ )
103
+ ] }) : /* @__PURE__ */ l(P, { className: "bg-d-primary absolute h-full" })
104
+ ] }),
105
+ /* @__PURE__ */ l(
106
+ b,
107
+ {
108
+ className: c(N({ size: m }), "relative"),
109
+ children: r && e.value && /* @__PURE__ */ l(
110
+ x,
111
+ {
112
+ variant: "default",
113
+ className: "absolute -top-5 left-1/2 z-10 -translate-x-1/2 -translate-y-1/2",
114
+ children: i ? i(e.value[0]) : `${e.value[0]}${h}`
115
+ }
116
+ )
117
+ }
118
+ ),
119
+ e.value && e.value.length > 1 && /* @__PURE__ */ l(
120
+ b,
121
+ {
122
+ className: c(N({ size: m }), "relative"),
123
+ children: r && /* @__PURE__ */ l(
124
+ x,
125
+ {
126
+ variant: "default",
127
+ className: "absolute -top-5 left-1/2 z-10 -translate-x-1/2 -translate-y-1/2",
128
+ children: i ? i(e.value[1]) : `${e.value[1]}${h}`
129
+ }
130
+ )
131
+ }
132
+ )
133
+ ]
134
+ }
135
+ ),
136
+ $ && e.value && /* @__PURE__ */ u("div", { className: "text-d-muted-foreground flex justify-between text-xs font-medium", children: [
137
+ /* @__PURE__ */ l("span", { children: i ? i(e.value[0]) : e.value[0] }),
138
+ e.value.length > 1 ? /* @__PURE__ */ l("span", { children: i ? i(e.value[1]) : e.value[1] }) : e.max !== void 0 ? /* @__PURE__ */ l("span", { children: i ? i(e.max) : e.max }) : null
139
+ ] })
140
+ ] });
141
+ }
142
+ );
129
143
  B.displayName = y.displayName;
130
144
  export {
131
145
  B as Slider
@@ -17,20 +17,38 @@ function S({
17
17
  /* @__PURE__ */ l(g, { children: /* @__PURE__ */ a(c, { children: [
18
18
  /* @__PURE__ */ l(n, { className: "relative min-h-[50px] min-w-[50px] border-r", children: o && s && /* @__PURE__ */ a(p, { children: [
19
19
  /* @__PURE__ */ l("div", { className: "absolute top-2 left-2 text-xs", children: o }),
20
- /* @__PURE__ */ l("div", { className: "absolute bottom-2 right-2 text-xs", children: s })
20
+ /* @__PURE__ */ l("div", { className: "absolute right-2 bottom-2 text-xs", children: s })
21
21
  ] }) }),
22
- r.length > 0 ? r.map((t, e) => /* @__PURE__ */ l(n, { className: "border-r min-w-[100px] w-auto", children: t }, `header-col-${e}`)) : Array.from({ length: i }).map((t, e) => /* @__PURE__ */ l(n, { className: "border-r min-w-[100px] w-auto", children: /* @__PURE__ */ l(m, { className: "h-6 w-full mx-auto" }) }, `skeleton-header-${e}`))
23
- ] }) }),
24
- /* @__PURE__ */ l(v, { children: Array.from({ length: h }).map((t, e) => /* @__PURE__ */ a(c, { children: [
25
- /* @__PURE__ */ l(d, { className: "min-w-[100px] w-auto", children: /* @__PURE__ */ l(m, { className: "h-6 w-full" }) }),
26
- Array.from({ length: i }).map((T, b) => /* @__PURE__ */ l(
27
- d,
22
+ r.length > 0 ? r.map((t, e) => /* @__PURE__ */ l(
23
+ n,
28
24
  {
29
- className: "text-center border-l min-w-[100px] w-auto",
30
- children: /* @__PURE__ */ l(m, { className: "h-6 w-full mx-auto" })
25
+ className: "w-auto min-w-[100px] border-r",
26
+ children: t
31
27
  },
32
- `skeleton-cell-${e}-${b}`
33
- ))
28
+ `header-col-${e}`
29
+ )) : Array.from({ length: i }).map(
30
+ (t, e) => /* @__PURE__ */ l(
31
+ n,
32
+ {
33
+ className: "w-auto min-w-[100px] border-r",
34
+ children: /* @__PURE__ */ l(m, { className: "mx-auto h-6 w-full" })
35
+ },
36
+ `skeleton-header-${e}`
37
+ )
38
+ )
39
+ ] }) }),
40
+ /* @__PURE__ */ l(v, { children: Array.from({ length: h }).map((t, e) => /* @__PURE__ */ a(c, { children: [
41
+ /* @__PURE__ */ l(d, { className: "w-auto min-w-[100px]", children: /* @__PURE__ */ l(m, { className: "h-6 w-full" }) }),
42
+ Array.from({ length: i }).map(
43
+ (T, b) => /* @__PURE__ */ l(
44
+ d,
45
+ {
46
+ className: "w-auto min-w-[100px] border-l text-center",
47
+ children: /* @__PURE__ */ l(m, { className: "mx-auto h-6 w-full" })
48
+ },
49
+ `skeleton-cell-${e}-${b}`
50
+ )
51
+ )
34
52
  ] }, `skeleton-row-${e}`)) })
35
53
  ] }),
36
54
  /* @__PURE__ */ l(N, { orientation: "horizontal" })
@@ -6,7 +6,10 @@ function n({ className: t, ...e }) {
6
6
  "table",
7
7
  {
8
8
  "data-slot": "table-container",
9
- className: o("w-full caption-bottom text-sm relative w-full overflow-x-auto ", t),
9
+ className: o(
10
+ "relative w-full caption-bottom overflow-x-auto text-sm",
11
+ t
12
+ ),
10
13
  ...e
11
14
  }
12
15
  );
@@ -40,7 +40,7 @@ function g({
40
40
  {
41
41
  "data-slot": "tabs-trigger",
42
42
  className: s(
43
- "data-[state=active]:bg-d-background dark:data-[state=active]:text-d-foreground focus-visible:border-d-ring focus-visible:ring-d-ring/50 focus-visible:outline-d-ring dark:data-[state=active]:border-d-input dark:data-[state=active]:bg-d-background text-d-foreground dark:text-d-secondary-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md d-border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
43
+ "data-[state=active]:bg-d-background dark:data-[state=active]:text-d-foreground focus-visible:border-d-ring focus-visible:ring-d-ring/50 focus-visible:outline-d-ring dark:data-[state=active]:border-d-input dark:data-[state=active]:bg-d-background text-d-foreground dark:text-d-secondary-foreground d-border inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
44
44
  t
45
45
  ),
46
46
  ...e
@@ -39,7 +39,7 @@ const k = [
39
39
  "div",
40
40
  {
41
41
  className: r(
42
- "relative isolate flex h-8 rounded-full bg-d-background p-1 ring-1 ring-d-border",
42
+ "bg-d-background ring-d-border relative isolate flex h-8 rounded-full p-1 ring-1",
43
43
  i
44
44
  ),
45
45
  children: k.map(({ key: e, icon: c, label: f }) => {
@@ -52,12 +52,7 @@ const k = [
52
52
  onClick: () => a(e),
53
53
  "aria-label": f,
54
54
  children: [
55
- o && /* @__PURE__ */ t(
56
- "div",
57
- {
58
- className: "absolute inset-0 rounded-full bg-d-secondary"
59
- }
60
- ),
55
+ o && /* @__PURE__ */ t("div", { className: "bg-d-secondary absolute inset-0 rounded-full" }),
61
56
  /* @__PURE__ */ t(
62
57
  c,
63
58
  {
@@ -2,10 +2,10 @@
2
2
  import { jsx as a, jsxs as n } from "react/jsx-runtime";
3
3
  import e from "../../node_modules/lucide-react/dist/esm/icons/dot.js";
4
4
  function t() {
5
- return /* @__PURE__ */ a("div", { className: "justify-left flex space-x-1", children: /* @__PURE__ */ a("div", { className: "rounded-lg bg-d-secondary p-3", children: /* @__PURE__ */ n("div", { className: "flex -space-x-2.5", children: [
6
- /* @__PURE__ */ a(e, { className: "h-5 w-5 animate-typing-dot-bounce" }),
7
- /* @__PURE__ */ a(e, { className: "h-5 w-5 animate-typing-dot-bounce [animation-delay:90ms]" }),
8
- /* @__PURE__ */ a(e, { className: "h-5 w-5 animate-typing-dot-bounce [animation-delay:180ms]" })
5
+ return /* @__PURE__ */ a("div", { className: "justify-left flex space-x-1", children: /* @__PURE__ */ a("div", { className: "bg-d-secondary rounded-lg p-3", children: /* @__PURE__ */ n("div", { className: "flex -space-x-2.5", children: [
6
+ /* @__PURE__ */ a(e, { className: "animate-typing-dot-bounce h-5 w-5" }),
7
+ /* @__PURE__ */ a(e, { className: "animate-typing-dot-bounce h-5 w-5 [animation-delay:90ms]" }),
8
+ /* @__PURE__ */ a(e, { className: "animate-typing-dot-bounce h-5 w-5 [animation-delay:180ms]" })
9
9
  ] }) }) });
10
10
  }
11
11
  export {
@@ -39,14 +39,7 @@ const i = {
39
39
  ...o
40
40
  }) => {
41
41
  const d = e || s[t] || "span";
42
- return /* @__PURE__ */ x(
43
- d,
44
- {
45
- className: a(i[t], n),
46
- ...o,
47
- children: l
48
- }
49
- );
42
+ return /* @__PURE__ */ x(d, { className: a(i[t], n), ...o, children: l });
50
43
  };
51
44
  export {
52
45
  r as Typo
@@ -2,7 +2,9 @@
2
2
  import * as o from "react";
3
3
  const e = 768;
4
4
  function r() {
5
- const [s, n] = o.useState(void 0);
5
+ const [s, n] = o.useState(
6
+ void 0
7
+ );
6
8
  return o.useEffect(() => {
7
9
  if (typeof window > "u")
8
10
  return;
package/dist/index.d.ts CHANGED
@@ -124,7 +124,7 @@ declare const alertVariants: (props?: ({
124
124
 
125
125
  declare type Animation_2 = VariantProps<typeof chatBubbleVariants>["animation"];
126
126
 
127
- export declare function AppMultipleSelectDropdown({ options, value, onChange, placeholder, disabled, size, label, labelClassName, emptyMessage, className, filterPlaceholder, cancelLabel, cancelButtonLabel, maxSelectedItems }: MultipleSelectDropdownProps): JSX.Element;
127
+ export declare function AppMultipleSelectDropdown({ options, value, onChange, placeholder, disabled, size, label, labelClassName, emptyMessage, className, filterPlaceholder, cancelLabel, cancelButtonLabel, maxSelectedItems, }: MultipleSelectDropdownProps): JSX.Element;
128
128
 
129
129
  export declare interface AppMultipleSelectOption {
130
130
  value: string;
@@ -552,11 +552,12 @@ declare type CopyButtonProps = {
552
552
  };
553
553
 
554
554
  export declare interface CrossTableCell {
555
- render?: (fromId: string, toId: string) => ReactNode;
555
+ render?: (fromId: string, toId: string, id?: string) => ReactNode;
556
556
  value?: number | string | null;
557
557
  color?: string;
558
558
  fromId: string;
559
559
  toId: string;
560
+ id?: string;
560
561
  }
561
562
 
562
563
  declare interface CrossTableData {
@@ -587,7 +588,7 @@ export declare enum DataRepeatTypes {
587
588
  MONTH = "MONTH"
588
589
  }
589
590
 
590
- export declare function DataTable<TData, TValue>({ columns, data, loading, emptyComponent, className, rowSelection, onRowSelectionChange, checkable, onCheckedRowsChange, notFoundMessage, clientFilter, clientFilterPlaceholder }: DataTableProps<TData, TValue>): JSX.Element;
591
+ export declare function DataTable<TData, TValue>({ columns, data, loading, emptyComponent, className, rowSelection, onRowSelectionChange, checkable, onCheckedRowsChange, notFoundMessage, clientFilter, clientFilterPlaceholder, }: DataTableProps<TData, TValue>): JSX.Element;
591
592
 
592
593
  declare interface DataTableProps<TData, TValue> {
593
594
  columns: ColumnDef<TData, TValue>[];
@@ -1006,7 +1007,7 @@ declare interface MultipleSelectorProps {
1006
1007
  /** Props of `Command` */
1007
1008
  commandProps?: React_2.ComponentPropsWithoutRef<typeof Command>;
1008
1009
  /** Props of `CommandInput` */
1009
- inputProps?: Omit<React_2.ComponentPropsWithoutRef<typeof Command_2.Input>, 'value' | 'placeholder' | 'disabled'>;
1010
+ inputProps?: Omit<React_2.ComponentPropsWithoutRef<typeof Command_2.Input>, "value" | "placeholder" | "disabled">;
1010
1011
  label?: string | React_2.ReactNode;
1011
1012
  /** hide the clear all button. */
1012
1013
  hideClearAllButton?: boolean;
@@ -1416,9 +1417,9 @@ declare const THEMES: {
1416
1417
  export declare const ThemeSwitcher: ({ value, onChange, defaultValue, className, }: ThemeSwitcherProps) => JSX.Element | null;
1417
1418
 
1418
1419
  declare type ThemeSwitcherProps = {
1419
- value?: 'light' | 'dark' | 'system';
1420
- onChange?: (theme: 'light' | 'dark' | 'system') => void;
1421
- defaultValue?: 'light' | 'dark' | 'system';
1420
+ value?: "light" | "dark" | "system";
1421
+ onChange?: (theme: "light" | "dark" | "system") => void;
1422
+ defaultValue?: "light" | "dark" | "system";
1422
1423
  className?: string;
1423
1424
  };
1424
1425
 
@@ -1469,7 +1470,7 @@ export declare function TooltipProvider({ delayDuration, ...props }: React_2.Com
1469
1470
  export declare function TooltipTrigger({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Trigger>): JSX.Element;
1470
1471
 
1471
1472
  declare type TransformedDataType<T> = {
1472
- [P in keyof T as Exclude<P, 'children'>]: T[P];
1473
+ [P in keyof T as Exclude<P, "children">]: T[P];
1473
1474
  };
1474
1475
 
1475
1476
  export declare function TypingIndicator(): JSX.Element;
package/dist/styles.css CHANGED
@@ -1 +1 @@
1
- @import "tailwindcss";@import "tw-animate-css";@import "./gantt.css";:root{--d-radius:6px;--d-background:#fafafa;--d-foreground:#2e2e2e;--d-card:#fafafa;--d-card-foreground:#2e2e2e;--d-popover:#fafafa;--d-popover-foreground:#2e2e2e;--d-primary:#64c2d1;--d-primary-foreground:#1f1f1f;--d-secondary:#f5f5f5;--d-secondary-foreground:#2e2e2e;--d-muted:#e0e0e0;--d-muted-foreground:#7a7a7a;--d-accent:#e0e0e0;--d-accent-foreground:#2e2e2e;--d-destructive:#ec2842;--d-destructive-foreground:#85202d;--d-border:#e0e0e0;--d-input:#e0e0e0;--d-ring:#64c2d1;--d-chart-1:#64c2d1;--d-chart-2:#39f283;--d-chart-3:orange;--d-chart-4:orange;--d-chart-5:#eb576a;--d-sidebar:#f5f5f5;--d-sidebar-foreground:#2e2e2e;--d-sidebar-primary:#64c2d1;--d-sidebar-primary-foreground:#1f1f1f;--d-sidebar-accent:#e0e0e066;--d-sidebar-accent-foreground:#2e2e2e;--d-sidebar-border:#e0e0e0;--d-sidebar-ring:#64c2d1}.dark{--d-radius:6px;--d-background:#1f1f1f;--d-foreground:#e0e0e0;--d-card:#1f1f1f;--d-card-foreground:#e0e0e0;--d-popover:#1f1f1f;--d-popover-foreground:#e0e0e0;--d-primary:#64c2d1;--d-primary-foreground:#1f1f1f;--d-secondary:#2e2e2e;--d-secondary-foreground:#e0e0e0;--d-muted:#474747;--d-muted-foreground:#7a7a7a;--d-accent:#474747;--d-accent-foreground:#e0e0e0;--d-destructive:#85202d;--d-destructive-foreground:#e0e0e0;--d-border:#2e2e2e;--d-input:#2e2e2e;--d-ring:#64c2d1;--d-chart-1:#64c2d1;--d-chart-2:#39f283;--d-chart-3:orange;--d-chart-4:orange;--d-chart-5:#eb576a;--d-sidebar:#141414;--d-sidebar-foreground:#e0e0e0;--d-sidebar-primary:#64c2d1;--d-sidebar-primary-foreground:#1f1f1f;--d-sidebar-accent:#47474766;--d-sidebar-accent-foreground:#e0e0e0;--d-sidebar-border:#2e2e2e;--d-sidebar-ring:#64c2d1}.tangerine{--d-background:oklch(0.26 0.03 262.67);--d-foreground:oklch(0.92 0 0);--d-card:oklch(0.31 0.03 268.64);--d-card-foreground:oklch(0.92 0 0);--d-popover:oklch(0.29 0.02 268.40);--d-popover-foreground:oklch(0.92 0 0);--d-primary:oklch(0.64 0.17 36.44);--d-primary-foreground:oklch(1.00 0 0);--d-secondary:oklch(0.31 0.03 266.71);--d-secondary-foreground:oklch(0.92 0 0);--d-muted:oklch(0.31 0.03 266.71);--d-muted-foreground:oklch(0.72 0 0);--d-accent:oklch(0.34 0.06 267.59);--d-accent-foreground:oklch(0.88 0.06 254.13);--d-destructive:oklch(0.64 0.21 25.33);--d-destructive-foreground:oklch(1.00 0 0);--d-border:oklch(0.38 0.03 269.73);--d-input:oklch(0.38 0.03 269.73);--d-ring:oklch(0.64 0.17 36.44);--d-chart-1:oklch(0.72 0.06 248.68);--d-chart-2:oklch(0.77 0.09 34.19);--d-chart-3:oklch(0.58 0.08 254.16);--d-chart-4:oklch(0.50 0.08 259.49);--d-chart-5:oklch(0.42 0.10 264.03);--d-sidebar:oklch(0.31 0.03 267.74);--d-sidebar-foreground:oklch(0.92 0 0);--d-sidebar-primary:oklch(0.64 0.17 36.44);--d-sidebar-primary-foreground:oklch(1.00 0 0);--d-sidebar-accent:oklch(0.34 0.06 267.59);--d-sidebar-accent-foreground:oklch(0.88 0.06 254.13);--d-sidebar-border:oklch(0.38 0.03 269.73);--d-sidebar-ring:oklch(0.64 0.17 36.44);--d-font-sans:Inter,sans-serif;--d-font-serif:Source Serif 4,serif;--d-font-mono:JetBrains Mono,monospace;--d-radius:0.75rem;--d-shadow-2xs:0px 1px 3px 0px #0000000d;--d-shadow-xs:0px 1px 3px 0px #0000000d;--d-shadow-sm:0px 1px 3px 0px #0000001a,0px 1px 2px -1px #0000001a;--d-shadow:0px 1px 3px 0px #0000001a,0px 1px 2px -1px #0000001a;--d-shadow-md:0px 1px 3px 0px #0000001a,0px 2px 4px -1px #0000001a;--d-shadow-lg:0px 1px 3px 0px #0000001a,0px 4px 6px -1px #0000001a;--d-shadow-xl:0px 1px 3px 0px #0000001a,0px 8px 10px -1px #0000001a;--d-shadow-2xl:0px 1px 3px 0px #00000040}.claymorphism{--d-background:#1e1b18;--d-foreground:#e2e8f0;--d-card:#2c2825;--d-card-foreground:#e2e8f0;--d-popover:#2c2825;--d-popover-foreground:#e2e8f0;--d-primary:#818cf8;--d-primary-foreground:#1e1b18;--d-secondary:#3a3633;--d-secondary-foreground:#d1d5db;--d-muted:#2c2825;--d-muted-foreground:#9ca3af;--d-accent:#484441;--d-accent-foreground:#d1d5db;--d-destructive:#ef4444;--d-destructive-foreground:#1e1b18;--d-border:#3a3633;--d-input:#3a3633;--d-ring:#818cf8;--d-chart-1:#818cf8;--d-chart-2:#6366f1;--d-chart-3:#4f46e5;--d-chart-4:#4338ca;--d-chart-5:#3730a3;--d-sidebar:#3a3633;--d-sidebar-foreground:#e2e8f0;--d-sidebar-primary:#818cf8;--d-sidebar-primary-foreground:#1e1b18;--d-sidebar-accent:#484441;--d-sidebar-accent-foreground:#d1d5db;--d-sidebar-border:#3a3633;--d-sidebar-ring:#818cf8;--d-font-sans:Plus Jakarta Sans,sans-serif;--d-font-serif:Lora,serif;--d-font-mono:Roboto Mono,monospace;--d-radius:1.25rem;--d-shadow-2xs:2px 2px 10px 4px #00000017;--d-shadow-xs:2px 2px 10px 4px #00000017;--d-shadow-sm:2px 2px 10px 4px #0000002e,2px 1px 2px 3px #0000002e;--d-shadow:2px 2px 10px 4px #0000002e,2px 1px 2px 3px #0000002e;--d-shadow-md:2px 2px 10px 4px #0000002e,2px 2px 4px 3px #0000002e;--d-shadow-lg:2px 2px 10px 4px #0000002e,2px 4px 6px 3px #0000002e;--d-shadow-xl:2px 2px 10px 4px #0000002e,2px 8px 10px 3px #0000002e;--d-shadow-2xl:2px 2px 10px 4px #00000073}@theme inline{--radius-d-sm:calc(var(--d-radius) - 4px);--radius-d-md:calc(var(--d-radius) - 2px);--radius-d-lg:var(--d-radius);--radius-d-xl:calc(var(--d-radius) + 4px);--color-d-background:var(--d-background);--color-d-foreground:var(--d-foreground);--color-d-card:var(--d-card);--color-d-card-foreground:var(--d-card-foreground);--color-d-popover:var(--d-popover);--color-d-popover-foreground:var(--d-popover-foreground);--color-d-primary:var(--d-primary);--color-d-primary-foreground:var(--d-primary-foreground);--color-d-secondary:var(--d-secondary);--color-d-secondary-foreground:var(--d-secondary-foreground);--color-d-muted:var(--d-muted);--color-d-muted-foreground:var(--d-muted-foreground);--color-d-accent:var(--d-accent);--color-d-accent-foreground:var(--d-accent-foreground);--color-d-destructive:var(--d-destructive);--color-d-border:var(--d-border);--color-d-input:var(--d-input);--color-d-ring:var(--d-ring);--color-d-chart-1:var(--d-chart-1);--color-d-chart-2:var(--d-chart-2);--color-d-chart-3:var(--d-chart-3);--color-d-chart-4:var(--d-chart-4);--color-d-chart-5:var(--d-chart-5);--color-d-sidebar:var(--d-sidebar);--color-d-sidebar-foreground:var(--d-sidebar-foreground);--color-d-sidebar-primary:var(--d-sidebar-primary);--color-d-sidebar-primary-foreground:var(--d-sidebar-primary-foreground);--color-d-sidebar-accent:var(--d-sidebar-accent);--color-d-sidebar-accent-foreground:var(--d-sidebar-accent-foreground);--color-d-sidebar-border:var(--d-sidebar-border);--color-d-sidebar-ring:var(--d-sidebar-ring)}*{border-color:var(--d-border);outline-color:color-mix(in oklab,var(--d-ring) 50%,#0000)}body{background-color:var(--d-background);color:var(--d-foreground)}
1
+ @import "tailwindcss";@import "tw-animate-css";@import "./gantt.css";:root{--d-radius:6px;--d-background:#fafafa;--d-foreground:#2e2e2e;--d-card:#fafafa;--d-card-foreground:#2e2e2e;--d-popover:#fafafa;--d-popover-foreground:#2e2e2e;--d-primary:#64c2d1;--d-primary-foreground:#1f1f1f;--d-secondary:#f5f5f5;--d-secondary-foreground:#2e2e2e;--d-muted:#e0e0e0;--d-muted-foreground:#7a7a7a;--d-accent:#e0e0e0;--d-accent-foreground:#2e2e2e;--d-destructive:#ec2842;--d-destructive-foreground:#85202d;--d-border:#e0e0e0;--d-input:#e0e0e0;--d-ring:#64c2d1;--d-chart-1:#64c2d1;--d-chart-2:#39f283;--d-chart-3:orange;--d-chart-4:orange;--d-chart-5:#eb576a;--d-sidebar:#f5f5f5;--d-sidebar-foreground:#2e2e2e;--d-sidebar-primary:#64c2d1;--d-sidebar-primary-foreground:#1f1f1f;--d-sidebar-accent:#e0e0e066;--d-sidebar-accent-foreground:#2e2e2e;--d-sidebar-border:#e0e0e0;--d-sidebar-ring:#64c2d1}.dark{--d-radius:6px;--d-background:#1f1f1f;--d-foreground:#e0e0e0;--d-card:#1f1f1f;--d-card-foreground:#e0e0e0;--d-popover:#1f1f1f;--d-popover-foreground:#e0e0e0;--d-primary:#64c2d1;--d-primary-foreground:#1f1f1f;--d-secondary:#2e2e2e;--d-secondary-foreground:#e0e0e0;--d-muted:#474747;--d-muted-foreground:#7a7a7a;--d-accent:#474747;--d-accent-foreground:#e0e0e0;--d-destructive:#85202d;--d-destructive-foreground:#e0e0e0;--d-border:#2e2e2e;--d-input:#2e2e2e;--d-ring:#64c2d1;--d-chart-1:#64c2d1;--d-chart-2:#39f283;--d-chart-3:orange;--d-chart-4:orange;--d-chart-5:#eb576a;--d-sidebar:#141414;--d-sidebar-foreground:#e0e0e0;--d-sidebar-primary:#64c2d1;--d-sidebar-primary-foreground:#1f1f1f;--d-sidebar-accent:#47474766;--d-sidebar-accent-foreground:#e0e0e0;--d-sidebar-border:#2e2e2e;--d-sidebar-ring:#64c2d1}.tangerine{--d-background:oklch(0.26 0.03 262.67);--d-foreground:oklch(0.92 0 0);--d-card:oklch(0.31 0.03 268.64);--d-card-foreground:oklch(0.92 0 0);--d-popover:oklch(0.29 0.02 268.4);--d-popover-foreground:oklch(0.92 0 0);--d-primary:oklch(0.64 0.17 36.44);--d-primary-foreground:oklch(1 0 0);--d-secondary:oklch(0.31 0.03 266.71);--d-secondary-foreground:oklch(0.92 0 0);--d-muted:oklch(0.31 0.03 266.71);--d-muted-foreground:oklch(0.72 0 0);--d-accent:oklch(0.34 0.06 267.59);--d-accent-foreground:oklch(0.88 0.06 254.13);--d-destructive:oklch(0.64 0.21 25.33);--d-destructive-foreground:oklch(1 0 0);--d-border:oklch(0.38 0.03 269.73);--d-input:oklch(0.38 0.03 269.73);--d-ring:oklch(0.64 0.17 36.44);--d-chart-1:oklch(0.72 0.06 248.68);--d-chart-2:oklch(0.77 0.09 34.19);--d-chart-3:oklch(0.58 0.08 254.16);--d-chart-4:oklch(0.5 0.08 259.49);--d-chart-5:oklch(0.42 0.1 264.03);--d-sidebar:oklch(0.31 0.03 267.74);--d-sidebar-foreground:oklch(0.92 0 0);--d-sidebar-primary:oklch(0.64 0.17 36.44);--d-sidebar-primary-foreground:oklch(1 0 0);--d-sidebar-accent:oklch(0.34 0.06 267.59);--d-sidebar-accent-foreground:oklch(0.88 0.06 254.13);--d-sidebar-border:oklch(0.38 0.03 269.73);--d-sidebar-ring:oklch(0.64 0.17 36.44);--d-font-sans:Inter,sans-serif;--d-font-serif:Source Serif 4,serif;--d-font-mono:JetBrains Mono,monospace;--d-radius:0.75rem;--d-shadow-2xs:0px 1px 3px 0px #0000000d;--d-shadow-xs:0px 1px 3px 0px #0000000d;--d-shadow-sm:0px 1px 3px 0px #0000001a,0px 1px 2px -1px #0000001a;--d-shadow:0px 1px 3px 0px #0000001a,0px 1px 2px -1px #0000001a;--d-shadow-md:0px 1px 3px 0px #0000001a,0px 2px 4px -1px #0000001a;--d-shadow-lg:0px 1px 3px 0px #0000001a,0px 4px 6px -1px #0000001a;--d-shadow-xl:0px 1px 3px 0px #0000001a,0px 8px 10px -1px #0000001a;--d-shadow-2xl:0px 1px 3px 0px #00000040}.claymorphism{--d-background:#1e1b18;--d-foreground:#e2e8f0;--d-card:#2c2825;--d-card-foreground:#e2e8f0;--d-popover:#2c2825;--d-popover-foreground:#e2e8f0;--d-primary:#818cf8;--d-primary-foreground:#1e1b18;--d-secondary:#3a3633;--d-secondary-foreground:#d1d5db;--d-muted:#2c2825;--d-muted-foreground:#9ca3af;--d-accent:#484441;--d-accent-foreground:#d1d5db;--d-destructive:#ef4444;--d-destructive-foreground:#1e1b18;--d-border:#3a3633;--d-input:#3a3633;--d-ring:#818cf8;--d-chart-1:#818cf8;--d-chart-2:#6366f1;--d-chart-3:#4f46e5;--d-chart-4:#4338ca;--d-chart-5:#3730a3;--d-sidebar:#3a3633;--d-sidebar-foreground:#e2e8f0;--d-sidebar-primary:#818cf8;--d-sidebar-primary-foreground:#1e1b18;--d-sidebar-accent:#484441;--d-sidebar-accent-foreground:#d1d5db;--d-sidebar-border:#3a3633;--d-sidebar-ring:#818cf8;--d-font-sans:Plus Jakarta Sans,sans-serif;--d-font-serif:Lora,serif;--d-font-mono:Roboto Mono,monospace;--d-radius:1.25rem;--d-shadow-2xs:2px 2px 10px 4px #00000017;--d-shadow-xs:2px 2px 10px 4px #00000017;--d-shadow-sm:2px 2px 10px 4px #0000002e,2px 1px 2px 3px #0000002e;--d-shadow:2px 2px 10px 4px #0000002e,2px 1px 2px 3px #0000002e;--d-shadow-md:2px 2px 10px 4px #0000002e,2px 2px 4px 3px #0000002e;--d-shadow-lg:2px 2px 10px 4px #0000002e,2px 4px 6px 3px #0000002e;--d-shadow-xl:2px 2px 10px 4px #0000002e,2px 8px 10px 3px #0000002e;--d-shadow-2xl:2px 2px 10px 4px #00000073}@theme inline{--radius-d-sm:calc(var(--d-radius) - 4px);--radius-d-md:calc(var(--d-radius) - 2px);--radius-d-lg:var(--d-radius);--radius-d-xl:calc(var(--d-radius) + 4px);--color-d-background:var(--d-background);--color-d-foreground:var(--d-foreground);--color-d-card:var(--d-card);--color-d-card-foreground:var(--d-card-foreground);--color-d-popover:var(--d-popover);--color-d-popover-foreground:var(--d-popover-foreground);--color-d-primary:var(--d-primary);--color-d-primary-foreground:var(--d-primary-foreground);--color-d-secondary:var(--d-secondary);--color-d-secondary-foreground:var(--d-secondary-foreground);--color-d-muted:var(--d-muted);--color-d-muted-foreground:var(--d-muted-foreground);--color-d-accent:var(--d-accent);--color-d-accent-foreground:var(--d-accent-foreground);--color-d-destructive:var(--d-destructive);--color-d-border:var(--d-border);--color-d-input:var(--d-input);--color-d-ring:var(--d-ring);--color-d-chart-1:var(--d-chart-1);--color-d-chart-2:var(--d-chart-2);--color-d-chart-3:var(--d-chart-3);--color-d-chart-4:var(--d-chart-4);--color-d-chart-5:var(--d-chart-5);--color-d-sidebar:var(--d-sidebar);--color-d-sidebar-foreground:var(--d-sidebar-foreground);--color-d-sidebar-primary:var(--d-sidebar-primary);--color-d-sidebar-primary-foreground:var(--d-sidebar-primary-foreground);--color-d-sidebar-accent:var(--d-sidebar-accent);--color-d-sidebar-accent-foreground:var(--d-sidebar-accent-foreground);--color-d-sidebar-border:var(--d-sidebar-border);--color-d-sidebar-ring:var(--d-sidebar-ring)}*{border-color:var(--d-border);outline-color:color-mix(in oklab,var(--d-ring) 50%,#0000)}body{background-color:var(--d-background);color:var(--d-foreground)}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "laif-ds",
3
3
  "private": false,
4
- "version": "0.1.32",
4
+ "version": "0.1.34",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
@@ -76,6 +76,8 @@
76
76
  "eslint-plugin-react-hooks": "^5.2.0",
77
77
  "eslint-plugin-react-refresh": "^0.4.19",
78
78
  "eslint-plugin-storybook": "^0.12.0",
79
+ "prettier": "^3.5.3",
80
+ "prettier-plugin-tailwindcss": "^0.6.11",
79
81
  "storybook": "^8.6.12",
80
82
  "storybook-addon-themes": "^6.1.0",
81
83
  "tailwindcss-v3": "npm:tailwindcss@3.4.1",