laif-ds 0.1.76 → 0.1.79

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 (112) hide show
  1. package/dist/_virtual/prism-cpp.js +3 -0
  2. package/dist/_virtual/prism-cpp2.js +5 -0
  3. package/dist/_virtual/prism-java.js +3 -0
  4. package/dist/_virtual/prism-java2.js +5 -0
  5. package/dist/_virtual/prism-python.js +3 -0
  6. package/dist/_virtual/prism-python2.js +5 -0
  7. package/dist/_virtual/prism-rust.js +3 -0
  8. package/dist/_virtual/prism-rust2.js +5 -0
  9. package/dist/_virtual/prism-typescript.js +3 -0
  10. package/dist/_virtual/prism-typescript2.js +5 -0
  11. package/dist/_virtual/prism.js +3 -0
  12. package/dist/_virtual/prism2.js +5 -0
  13. package/dist/components/editor/context/toolbar-context.js +42 -0
  14. package/dist/components/editor/editor-hooks/use-modal.js +30 -0
  15. package/dist/components/editor/editor-hooks/use-update-toolbar.js +24 -0
  16. package/dist/components/editor/editor-ui/content-editable.js +26 -0
  17. package/dist/components/editor/plugins/actions/actions-plugin.js +7 -0
  18. package/dist/components/editor/plugins/actions/clear-editor-plugin.js +39 -0
  19. package/dist/components/editor/plugins/actions/counter-character-plugin.js +53 -0
  20. package/dist/components/editor/plugins/toolbar/block-format/block-format-data.js +52 -0
  21. package/dist/components/editor/plugins/toolbar/block-format/format-bulleted-list.js +26 -0
  22. package/dist/components/editor/plugins/toolbar/block-format/format-check-list.js +26 -0
  23. package/dist/components/editor/plugins/toolbar/block-format/format-heading.js +31 -0
  24. package/dist/components/editor/plugins/toolbar/block-format/format-numbered-list.js +26 -0
  25. package/dist/components/editor/plugins/toolbar/block-format/format-paragraph.js +23 -0
  26. package/dist/components/editor/plugins/toolbar/block-format/format-quote.js +24 -0
  27. package/dist/components/editor/plugins/toolbar/block-format-toolbar-plugin.js +56 -0
  28. package/dist/components/editor/plugins/toolbar/font-format-toolbar-plugin.js +50 -0
  29. package/dist/components/editor/plugins/toolbar/history-toolbar-plugin.js +69 -0
  30. package/dist/components/editor/plugins/toolbar/toolbar-plugin.js +34 -0
  31. package/dist/components/editor/themes/editor-theme.js +112 -0
  32. package/dist/components/ui/accordion.js +1 -1
  33. package/dist/components/ui/alert-dialog.js +3 -3
  34. package/dist/components/ui/alert.js +3 -3
  35. package/dist/components/ui/app-editor.js +150 -0
  36. package/dist/components/ui/app-multiple-select-dropdown.js +13 -13
  37. package/dist/components/ui/async-select.js +18 -18
  38. package/dist/components/ui/button.js +25 -24
  39. package/dist/components/ui/calendar.js +9 -9
  40. package/dist/components/ui/card.js +26 -26
  41. package/dist/components/ui/chat-message.js +6 -6
  42. package/dist/components/ui/chat.js +44 -44
  43. package/dist/components/ui/context-menu.js +2 -2
  44. package/dist/components/ui/dialog.js +46 -40
  45. package/dist/components/ui/drawer.js +33 -33
  46. package/dist/components/ui/dropdown-menu.js +20 -20
  47. package/dist/components/ui/file-preview.js +51 -51
  48. package/dist/components/ui/gantt/components/Controls/Controls.js +51 -60
  49. package/dist/components/ui/hover-card.js +5 -5
  50. package/dist/components/ui/input-selector.js +19 -19
  51. package/dist/components/ui/interrupt-prompt.js +6 -6
  52. package/dist/components/ui/markdown-renderer.js +16 -16
  53. package/dist/components/ui/menubar.js +26 -26
  54. package/dist/components/ui/message-input.js +9 -9
  55. package/dist/components/ui/multiple-selector.js +20 -20
  56. package/dist/components/ui/navigation-menu.js +5 -5
  57. package/dist/components/ui/popover.js +4 -4
  58. package/dist/components/ui/prompt-suggestions.js +11 -11
  59. package/dist/components/ui/resizable.js +2 -2
  60. package/dist/components/ui/sheet.js +16 -16
  61. package/dist/components/ui/sidebar.js +24 -23
  62. package/dist/components/ui/table-skeleton.js +36 -36
  63. package/dist/components/ui/table.js +25 -25
  64. package/dist/components/ui/toggle-group.js +15 -15
  65. package/dist/components/ui/weekly-calendar/appointment-card.js +24 -24
  66. package/dist/index.d.ts +23 -1
  67. package/dist/index.js +48 -44
  68. package/dist/laif-ds.css +1 -0
  69. package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +159 -0
  70. package/dist/node_modules/@lexical/code/LexicalCode.prod.js +236 -0
  71. package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +46 -0
  72. package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +89 -0
  73. package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +108 -0
  74. package/dist/node_modules/@lexical/link/LexicalLink.prod.js +187 -0
  75. package/dist/node_modules/@lexical/list/LexicalList.prod.js +729 -0
  76. package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +367 -0
  77. package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +11 -0
  78. package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +17 -0
  79. package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +45 -0
  80. package/dist/node_modules/@lexical/react/LexicalComposerContext.prod.js +22 -0
  81. package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +55 -0
  82. package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +49 -0
  83. package/dist/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +15 -0
  84. package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +17 -0
  85. package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +16 -0
  86. package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +56 -0
  87. package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +21 -0
  88. package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +376 -0
  89. package/dist/node_modules/@lexical/selection/LexicalSelection.prod.js +107 -0
  90. package/dist/node_modules/@lexical/table/LexicalTable.prod.js +661 -0
  91. package/dist/node_modules/@lexical/text/LexicalText.prod.js +37 -0
  92. package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +102 -0
  93. package/dist/node_modules/lexical/Lexical.prod.js +4901 -0
  94. package/dist/node_modules/prismjs/components/prism-c.js +77 -0
  95. package/dist/node_modules/prismjs/components/prism-clike.js +32 -0
  96. package/dist/node_modules/prismjs/components/prism-cpp.js +93 -0
  97. package/dist/node_modules/prismjs/components/prism-css.js +56 -0
  98. package/dist/node_modules/prismjs/components/prism-java.js +122 -0
  99. package/dist/node_modules/prismjs/components/prism-javascript.js +138 -0
  100. package/dist/node_modules/prismjs/components/prism-markdown.js +301 -0
  101. package/dist/node_modules/prismjs/components/prism-markup.js +174 -0
  102. package/dist/node_modules/prismjs/components/prism-objectivec.js +11 -0
  103. package/dist/node_modules/prismjs/components/prism-powershell.js +56 -0
  104. package/dist/node_modules/prismjs/components/prism-python.js +69 -0
  105. package/dist/node_modules/prismjs/components/prism-rust.js +124 -0
  106. package/dist/node_modules/prismjs/components/prism-sql.js +34 -0
  107. package/dist/node_modules/prismjs/components/prism-swift.js +114 -0
  108. package/dist/node_modules/prismjs/components/prism-typescript.js +53 -0
  109. package/dist/node_modules/prismjs/prism.js +1165 -0
  110. package/dist/styles.css +1 -1
  111. package/dist/styles.v3.css +1 -1
  112. package/package.json +12 -1
@@ -2,19 +2,19 @@
2
2
  import { jsx as o, jsxs as L, Fragment as K } from "react/jsx-runtime";
3
3
  import { Command as ie, useCommandState as ae } from "../../node_modules/cmdk/dist/index.js";
4
4
  import * as a from "react";
5
- import { useEffect as C, forwardRef as de } from "react";
6
- import { CommandPortal as ue } from "./command-portal.js";
5
+ import { useEffect as C, forwardRef as ue } from "react";
6
+ import { CommandPortal as de } from "./command-portal.js";
7
7
  import { Badge as ce } from "./badge.js";
8
8
  import { CommandItem as V, Command as fe, CommandList as me, CommandGroup as ge } from "./command.js";
9
9
  import { cn as h } from "../../lib/utils.js";
10
10
  import { Label as he } from "./label.js";
11
11
  import q from "../../node_modules/lucide-react/dist/esm/icons/x.js";
12
12
  function ve(r, s) {
13
- const [l, u] = a.useState(r);
13
+ const [l, d] = a.useState(r);
14
14
  return C(() => {
15
- const d = setTimeout(() => u(r), s);
15
+ const u = setTimeout(() => d(r), s);
16
16
  return () => {
17
- clearTimeout(d);
17
+ clearTimeout(u);
18
18
  };
19
19
  }, [r, s]), l;
20
20
  }
@@ -26,26 +26,26 @@ function I(r, s) {
26
26
  "": r
27
27
  };
28
28
  const l = {};
29
- return r.forEach((u) => {
30
- const d = u[s] || "";
31
- l[d] || (l[d] = []), l[d].push(u);
29
+ return r.forEach((d) => {
30
+ const u = d[s] || "";
31
+ l[u] || (l[u] = []), l[u].push(d);
32
32
  }), l;
33
33
  }
34
34
  function pe(r, s) {
35
35
  const l = JSON.parse(JSON.stringify(r));
36
- for (const [u, d] of Object.entries(l))
37
- l[u] = d.filter(
36
+ for (const [d, u] of Object.entries(l))
37
+ l[d] = u.filter(
38
38
  (F) => !s.find((c) => c.value === F.value)
39
39
  );
40
40
  return l;
41
41
  }
42
42
  function be(r, s) {
43
43
  for (const [, l] of Object.entries(r))
44
- if (l.some((u) => s.find((d) => d.value === u.value)))
44
+ if (l.some((d) => s.find((u) => u.value === d.value)))
45
45
  return !0;
46
46
  return !1;
47
47
  }
48
- const Q = de(({ className: r, ...s }, l) => ae((d) => d.filtered.count === 0) ? /* @__PURE__ */ o(
48
+ const Q = ue(({ className: r, ...s }, l) => ae((u) => u.filtered.count === 0) ? /* @__PURE__ */ o(
49
49
  "div",
50
50
  {
51
51
  ref: l,
@@ -61,8 +61,8 @@ const xe = a.forwardRef(
61
61
  value: r,
62
62
  onChange: s,
63
63
  placeholder: l,
64
- defaultOptions: u = [],
65
- options: d,
64
+ defaultOptions: d = [],
65
+ options: u,
66
66
  delay: F,
67
67
  onSearch: c,
68
68
  onSearchSync: G,
@@ -84,7 +84,7 @@ const xe = a.forwardRef(
84
84
  label: U
85
85
  }, ee) => {
86
86
  const f = a.useRef(null), [b, M] = a.useState(!1), [te, X] = a.useState(!1), [H, $] = a.useState(!1), R = a.useRef(null), [t, N] = a.useState(r || []), [x, T] = a.useState(
87
- I(u, p)
87
+ I(d, p)
88
88
  ), [g, J] = a.useState(""), w = ve(g, F || 500);
89
89
  a.useImperativeHandle(
90
90
  ee,
@@ -119,11 +119,11 @@ const xe = a.forwardRef(
119
119
  }, [b, y]), C(() => {
120
120
  r && N(r);
121
121
  }, [r]), C(() => {
122
- if (!d || c)
122
+ if (!u || c)
123
123
  return;
124
- const e = I(d || [], p);
124
+ const e = I(u || [], p);
125
125
  JSON.stringify(e) !== JSON.stringify(x) && T(e);
126
- }, [u, d, p, c, x]), C(() => {
126
+ }, [d, u, p, c, x]), C(() => {
127
127
  const e = () => {
128
128
  const i = G?.(w);
129
129
  T(I(i || [], p));
@@ -291,7 +291,7 @@ const xe = a.forwardRef(
291
291
  }
292
292
  ),
293
293
  /* @__PURE__ */ o(
294
- ue,
294
+ de,
295
295
  {
296
296
  open: b,
297
297
  triggerRef: R,
@@ -301,7 +301,7 @@ const xe = a.forwardRef(
301
301
  children: /* @__PURE__ */ o(
302
302
  me,
303
303
  {
304
- className: "bg-d-popover text-d-popover-foreground animate-in border-d-border w-full rounded-md border shadow-md outline-none",
304
+ className: "bg-d-popover text-d-popover-foreground animate-in w-full rounded-md border shadow-md outline-none",
305
305
  onMouseLeave: () => {
306
306
  X(!1);
307
307
  },
@@ -22,7 +22,7 @@ function M({
22
22
  ...r,
23
23
  children: [
24
24
  a,
25
- n && /* @__PURE__ */ e(b, {})
25
+ n && /* @__PURE__ */ e(x, {})
26
26
  ]
27
27
  }
28
28
  );
@@ -94,14 +94,14 @@ function L({
94
94
  "data-slot": "navigation-menu-content",
95
95
  className: o(
96
96
  "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
97
- "group-data-[viewport=false]/navigation-menu:bg-d-popover group-data-[viewport=false]/navigation-menu:text-d-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 border-d-border group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
97
+ "group-data-[viewport=false]/navigation-menu:bg-d-popover group-data-[viewport=false]/navigation-menu:text-d-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
98
98
  t
99
99
  ),
100
100
  ...a
101
101
  }
102
102
  );
103
103
  }
104
- function b({
104
+ function x({
105
105
  className: t,
106
106
  ...a
107
107
  }) {
@@ -116,7 +116,7 @@ function b({
116
116
  {
117
117
  "data-slot": "navigation-menu-viewport",
118
118
  className: o(
119
- "origin-top-center bg-d-popover text-d-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 border-d-border relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
119
+ "origin-top-center bg-d-popover text-d-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
120
120
  t
121
121
  ),
122
122
  ...a
@@ -166,6 +166,6 @@ export {
166
166
  C as NavigationMenuLink,
167
167
  j as NavigationMenuList,
168
168
  I as NavigationMenuTrigger,
169
- b as NavigationMenuViewport,
169
+ x as NavigationMenuViewport,
170
170
  w as navigationMenuTriggerStyle
171
171
  };
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- import { Root as d, Trigger as n, Portal as i, Content as s } from "../../node_modules/@radix-ui/react-popover/dist/index.js";
3
+ import { Root as n, Trigger as d, Portal as i, Content as s } from "../../node_modules/@radix-ui/react-popover/dist/index.js";
4
4
  import { cn as p } from "../../lib/utils.js";
5
5
  function c({
6
6
  ...o
7
7
  }) {
8
- return /* @__PURE__ */ t(d, { "data-slot": "popover", ...o });
8
+ return /* @__PURE__ */ t(n, { "data-slot": "popover", ...o });
9
9
  }
10
10
  function u({
11
11
  ...o
12
12
  }) {
13
- return /* @__PURE__ */ t(n, { "data-slot": "popover-trigger", ...o });
13
+ return /* @__PURE__ */ t(d, { "data-slot": "popover-trigger", ...o });
14
14
  }
15
15
  function g({
16
16
  className: o,
@@ -25,7 +25,7 @@ function g({
25
25
  align: e,
26
26
  sideOffset: r,
27
27
  className: p(
28
- "bg-d-popover text-d-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border-d-border z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
28
+ "bg-d-popover text-d-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
29
29
  o
30
30
  ),
31
31
  ...a
@@ -1,17 +1,17 @@
1
1
  "use client";
2
- import { jsxs as l, jsx as e } from "react/jsx-runtime";
3
- function t({
4
- label: d,
5
- append: o,
6
- suggestions: c
2
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
3
+ function d({
4
+ label: c,
5
+ append: l,
6
+ suggestions: n
7
7
  }) {
8
- return /* @__PURE__ */ l("div", { className: "grow space-y-6", children: [
9
- /* @__PURE__ */ e("h2", { className: "text-center text-2xl font-bold", children: d }),
10
- /* @__PURE__ */ e("div", { className: "flex gap-6 text-sm", children: c.map((r) => /* @__PURE__ */ e(
8
+ return /* @__PURE__ */ t("div", { className: "grow space-y-6", children: [
9
+ /* @__PURE__ */ e("h2", { className: "text-center text-2xl font-bold", children: c }),
10
+ /* @__PURE__ */ e("div", { className: "flex gap-6 text-sm", children: n.map((r) => /* @__PURE__ */ e(
11
11
  "button",
12
12
  {
13
- onClick: () => o({ role: "user", content: r }),
14
- className: "bg-d-background hover:bg-d-secondary border-d-border h-max flex-1 rounded-xl border p-4",
13
+ onClick: () => l({ role: "user", content: r }),
14
+ className: "bg-d-background hover:bg-d-secondary h-max flex-1 rounded-xl border p-4",
15
15
  children: /* @__PURE__ */ e("p", { children: r })
16
16
  },
17
17
  r
@@ -19,5 +19,5 @@ function t({
19
19
  ] });
20
20
  }
21
21
  export {
22
- t as PromptSuggestions
22
+ d as PromptSuggestions
23
23
  };
@@ -2,7 +2,7 @@
2
2
  import { jsx as a } from "react/jsx-runtime";
3
3
  import { PanelResizeHandle as i, Panel as n, PanelGroup as o } from "../../node_modules/react-resizable-panels/dist/react-resizable-panels.browser.js";
4
4
  import { cn as t } from "../../lib/utils.js";
5
- import d from "../../node_modules/lucide-react/dist/esm/icons/grip-vertical.js";
5
+ import s from "../../node_modules/lucide-react/dist/esm/icons/grip-vertical.js";
6
6
  function p({
7
7
  className: e,
8
8
  ...r
@@ -38,7 +38,7 @@ function g({
38
38
  r
39
39
  ),
40
40
  ...l,
41
- children: e && /* @__PURE__ */ a("div", { className: "bg-d-border border-d-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a(d, { className: "size-2.5" }) })
41
+ children: e && /* @__PURE__ */ a("div", { className: "bg-d-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a(s, { className: "size-2.5" }) })
42
42
  }
43
43
  );
44
44
  }
@@ -1,22 +1,22 @@
1
1
  "use client";
2
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
3
- import { Root as d, Trigger as i, Content as l, Close as c, Title as f, Description as u, Portal as m, Overlay as h } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
2
+ import { jsx as o, jsxs as n } from "react/jsx-runtime";
3
+ import { Root as i, Trigger as d, Content as l, Close as c, Title as f, Description as u, Portal as m, Overlay as h } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
4
4
  import { cn as a } from "../../lib/utils.js";
5
5
  import p from "../../node_modules/lucide-react/dist/esm/icons/x.js";
6
6
  function v({ ...t }) {
7
- return /* @__PURE__ */ o(d, { "data-slot": "sheet", ...t });
7
+ return /* @__PURE__ */ o(i, { "data-slot": "sheet", ...t });
8
8
  }
9
9
  function w({
10
10
  ...t
11
11
  }) {
12
- return /* @__PURE__ */ o(i, { "data-slot": "sheet-trigger", ...t });
12
+ return /* @__PURE__ */ o(d, { "data-slot": "sheet-trigger", ...t });
13
13
  }
14
14
  function g({
15
15
  ...t
16
16
  }) {
17
17
  return /* @__PURE__ */ o(m, { "data-slot": "sheet-portal", ...t });
18
18
  }
19
- function b({
19
+ function x({
20
20
  className: t,
21
21
  ...e
22
22
  }) {
@@ -35,27 +35,27 @@ function b({
35
35
  function C({
36
36
  className: t,
37
37
  children: e,
38
- side: r = "right",
39
- ...n
38
+ side: s = "right",
39
+ ...r
40
40
  }) {
41
- return /* @__PURE__ */ s(g, { children: [
42
- /* @__PURE__ */ o(b, {}),
43
- /* @__PURE__ */ s(
41
+ return /* @__PURE__ */ n(g, { children: [
42
+ /* @__PURE__ */ o(x, {}),
43
+ /* @__PURE__ */ n(
44
44
  l,
45
45
  {
46
46
  "data-slot": "sheet-content",
47
47
  className: a(
48
48
  "bg-d-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
49
- r === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right border-d-border inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
50
- r === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left border-d-border inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
51
- r === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top border-d-border inset-x-0 top-0 h-auto border-b",
52
- r === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom border-d-border inset-x-0 bottom-0 h-auto border-t",
49
+ s === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
50
+ s === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
51
+ s === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
52
+ s === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
53
53
  t
54
54
  ),
55
- ...n,
55
+ ...r,
56
56
  children: [
57
57
  e,
58
- /* @__PURE__ */ s(c, { className: "ring-offset-d-background focus:ring-d-ring data-[state=open]:bg-d-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
58
+ /* @__PURE__ */ n(c, { className: "ring-offset-d-background focus:ring-d-ring data-[state=open]:bg-d-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
59
59
  /* @__PURE__ */ o(p, { className: "size-4" }),
60
60
  /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
61
61
  ] })
@@ -29,16 +29,16 @@ const X = d.forwardRef(
29
29
  children: s,
30
30
  ...f
31
31
  }, g) => {
32
- const c = j(), [p, b] = d.useState(!1), [x, _] = d.useState(a), h = e ?? x, w = d.useCallback(
32
+ const c = j(), [p, u] = d.useState(!1), [x, _] = d.useState(a), h = e ?? x, w = d.useCallback(
33
33
  (l) => {
34
- const u = typeof l == "function" ? l(h) : l;
35
- t ? t(u) : _(u), document.cookie = `${$}=${u}; path=/; max-age=${V}`;
34
+ const b = typeof l == "function" ? l(h) : l;
35
+ t ? t(b) : _(b), document.cookie = `${$}=${b}; path=/; max-age=${V}`;
36
36
  },
37
37
  [t, h]
38
- ), S = d.useCallback(() => c ? b((l) => !l) : w((l) => !l), [c, w, b]);
38
+ ), S = d.useCallback(() => c ? u((l) => !l) : w((l) => !l), [c, w, u]);
39
39
  d.useEffect(() => {
40
- const l = (u) => {
41
- u.key === U && (u.metaKey || u.ctrlKey) && (u.preventDefault(), S());
40
+ const l = (b) => {
41
+ b.key === U && (b.metaKey || b.ctrlKey) && (b.preventDefault(), S());
42
42
  };
43
43
  return window.addEventListener("keydown", l), () => window.removeEventListener("keydown", l);
44
44
  }, [S]);
@@ -49,7 +49,7 @@ const X = d.forwardRef(
49
49
  setOpen: w,
50
50
  isMobile: c,
51
51
  openMobile: p,
52
- setOpenMobile: b,
52
+ setOpenMobile: u,
53
53
  toggleSidebar: S
54
54
  }),
55
55
  [
@@ -58,7 +58,7 @@ const X = d.forwardRef(
58
58
  w,
59
59
  c,
60
60
  p,
61
- b,
61
+ u,
62
62
  S
63
63
  ]
64
64
  );
@@ -91,24 +91,24 @@ const Y = d.forwardRef(
91
91
  children: n,
92
92
  ...s
93
93
  }, f) => {
94
- const { isMobile: g, state: c, openMobile: p, setOpenMobile: b } = N();
94
+ const { isMobile: g, state: c, openMobile: p, setOpenMobile: u } = N();
95
95
  return t === "none" ? /* @__PURE__ */ r(
96
96
  "div",
97
97
  {
98
98
  className: i(
99
- "bg-d-sidebar text-d-sidebar-foreground flex h-full w-[var(--sidebar-width)] flex-col",
99
+ "bg-d-sidebar text-d-sidebar-foreground flex h-full w-[--sidebar-width] flex-col",
100
100
  o
101
101
  ),
102
102
  ref: f,
103
103
  ...s,
104
104
  children: n
105
105
  }
106
- ) : g ? /* @__PURE__ */ r(E, { open: p, onOpenChange: b, ...s, children: /* @__PURE__ */ m(
106
+ ) : g ? /* @__PURE__ */ r(E, { open: p, onOpenChange: u, ...s, children: /* @__PURE__ */ m(
107
107
  T,
108
108
  {
109
109
  "data-sidebar": "sidebar",
110
110
  "data-mobile": "true",
111
- className: "bg-d-sidebar text-d-sidebar-foreground w-[var(--sidebar-width)] p-0 [&>button]:hidden",
111
+ className: "bg-d-sidebar text-d-sidebar-foreground w-[--sidebar-width] p-0 [&>button]:hidden",
112
112
  style: {
113
113
  "--sidebar-width": q
114
114
  },
@@ -135,10 +135,10 @@ const Y = d.forwardRef(
135
135
  "div",
136
136
  {
137
137
  className: i(
138
- "relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear",
138
+ "relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear",
139
139
  "group-data-[collapsible=offcanvas]:w-0",
140
140
  "group-data-[side=right]:rotate-180",
141
- e === "floating" || e === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]"
141
+ e === "floating" || e === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
142
142
  )
143
143
  }
144
144
  ),
@@ -146,9 +146,10 @@ const Y = d.forwardRef(
146
146
  "div",
147
147
  {
148
148
  className: i(
149
- "fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] transition-[left,right,width] duration-200 ease-linear md:flex",
149
+ "fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",
150
150
  a === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
151
- e === "floating" || e === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "border-d-border group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l",
151
+ // Adjust the padding for floating and inset variants.
152
+ e === "floating" || e === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
152
153
  o
153
154
  ),
154
155
  ...s,
@@ -354,7 +355,7 @@ const ce = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
354
355
  }
355
356
  ));
356
357
  ce.displayName = "SidebarMenuItem";
357
- const be = k(
358
+ const ue = k(
358
359
  "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-d-sidebar-ring transition-[width,height,padding] 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 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-d-sidebar-accent data-[active=true]:font-bold data-[active=true]:text-d-sidebar-accent-foreground data-[state=open]:hover:bg-d-sidebar-accent data-[state=open]:hover:text-d-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
359
360
  {
360
361
  variants: {
@@ -373,7 +374,7 @@ const be = k(
373
374
  size: "default"
374
375
  }
375
376
  }
376
- ), ue = d.forwardRef(
377
+ ), be = d.forwardRef(
377
378
  ({
378
379
  asChild: a = !1,
379
380
  isActive: e = !1,
@@ -383,14 +384,14 @@ const be = k(
383
384
  className: s,
384
385
  ...f
385
386
  }, g) => {
386
- const c = a ? v : "button", { isMobile: p, state: b } = N(), x = /* @__PURE__ */ r(
387
+ const c = a ? v : "button", { isMobile: p, state: u } = N(), x = /* @__PURE__ */ r(
387
388
  c,
388
389
  {
389
390
  ref: g,
390
391
  "data-sidebar": "menu-button",
391
392
  "data-size": o,
392
393
  "data-active": e,
393
- className: i(be({ variant: t, size: o }), s),
394
+ className: i(ue({ variant: t, size: o }), s),
394
395
  ...f
395
396
  }
396
397
  );
@@ -403,14 +404,14 @@ const be = k(
403
404
  {
404
405
  side: "right",
405
406
  align: "center",
406
- hidden: b !== "collapsed" || p,
407
+ hidden: u !== "collapsed" || p,
407
408
  ...n
408
409
  }
409
410
  )
410
411
  ] })) : x;
411
412
  }
412
413
  );
413
- ue.displayName = "SidebarMenuButton";
414
+ be.displayName = "SidebarMenuButton";
414
415
  const fe = d.forwardRef(({ className: a, asChild: e = !1, showOnHover: t = !1, ...o }, n) => /* @__PURE__ */ r(
415
416
  e ? v : "button",
416
417
  {
@@ -530,7 +531,7 @@ export {
530
531
  le as SidebarMenu,
531
532
  fe as SidebarMenuAction,
532
533
  pe as SidebarMenuBadge,
533
- ue as SidebarMenuButton,
534
+ be as SidebarMenuButton,
534
535
  ce as SidebarMenuItem,
535
536
  me as SidebarMenuSkeleton,
536
537
  ge as SidebarMenuSub,
@@ -1,57 +1,57 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as r, Fragment as p } from "react/jsx-runtime";
2
+ import { jsx as l, jsxs as a, Fragment as p } from "react/jsx-runtime";
3
3
  import { ScrollArea as x, ScrollBar as N } from "./scroll-area.js";
4
- import { Table as w, TableHeader as g, TableRow as i, TableHead as t, TableBody as v, TableCell as c } from "./table.js";
5
- import { Skeleton as d } from "./skeleton.js";
4
+ import { Table as w, TableHeader as g, TableRow as c, TableHead as n, TableBody as v, TableCell as d } from "./table.js";
5
+ import { Skeleton as m } from "./skeleton.js";
6
6
  function S({
7
- headerRow: a = [],
7
+ headerRow: r = [],
8
8
  rowCount: h = 5,
9
- columnCount: b = 5,
10
- className: u,
11
- cornerHeaderFrom: n,
12
- cornerHeaderTo: m
9
+ columnCount: u = 5,
10
+ className: f,
11
+ cornerHeaderFrom: o,
12
+ cornerHeaderTo: s
13
13
  }) {
14
- const s = a.length > 0 ? a.length : b;
15
- return /* @__PURE__ */ e("div", { className: `w-full ${u || ""}`, children: /* @__PURE__ */ e("div", { className: "border-d-border rounded-md border", children: /* @__PURE__ */ r(x, { className: "h-full w-full", children: [
16
- /* @__PURE__ */ r(w, { className: "w-full table-fixed", children: [
17
- /* @__PURE__ */ e(g, { children: /* @__PURE__ */ r(i, { children: [
18
- /* @__PURE__ */ e(t, { className: "border-d-border relative min-h-[50px] min-w-[50px] border-r", children: n && m && /* @__PURE__ */ r(p, { children: [
19
- /* @__PURE__ */ e("div", { className: "absolute top-2 left-2 text-xs", children: n }),
20
- /* @__PURE__ */ e("div", { className: "absolute right-2 bottom-2 text-xs", children: m })
14
+ const i = r.length > 0 ? r.length : u;
15
+ return /* @__PURE__ */ l("div", { className: `w-full ${f || ""}`, children: /* @__PURE__ */ l("div", { className: "rounded-md border", children: /* @__PURE__ */ a(x, { className: "h-full w-full", children: [
16
+ /* @__PURE__ */ a(w, { className: "w-full table-fixed", children: [
17
+ /* @__PURE__ */ l(g, { children: /* @__PURE__ */ a(c, { children: [
18
+ /* @__PURE__ */ l(n, { className: "relative min-h-[50px] min-w-[50px] border-r", children: o && s && /* @__PURE__ */ a(p, { children: [
19
+ /* @__PURE__ */ l("div", { className: "absolute top-2 left-2 text-xs", children: o }),
20
+ /* @__PURE__ */ l("div", { className: "absolute right-2 bottom-2 text-xs", children: s })
21
21
  ] }) }),
22
- a.length > 0 ? a.map((o, l) => /* @__PURE__ */ e(
23
- t,
22
+ r.length > 0 ? r.map((t, e) => /* @__PURE__ */ l(
23
+ n,
24
24
  {
25
- className: "border-d-border w-auto min-w-[100px] border-r",
26
- children: o
25
+ className: "w-auto min-w-[100px] border-r",
26
+ children: t
27
27
  },
28
- `header-col-${l}`
29
- )) : Array.from({ length: s }).map(
30
- (o, l) => /* @__PURE__ */ e(
31
- t,
28
+ `header-col-${e}`
29
+ )) : Array.from({ length: i }).map(
30
+ (t, e) => /* @__PURE__ */ l(
31
+ n,
32
32
  {
33
- className: "border-d-border w-auto min-w-[100px] border-r",
34
- children: /* @__PURE__ */ e(d, { className: "mx-auto h-6 w-full" })
33
+ className: "w-auto min-w-[100px] border-r",
34
+ children: /* @__PURE__ */ l(m, { className: "mx-auto h-6 w-full" })
35
35
  },
36
- `skeleton-header-${l}`
36
+ `skeleton-header-${e}`
37
37
  )
38
38
  )
39
39
  ] }) }),
40
- /* @__PURE__ */ e(v, { children: Array.from({ length: h }).map((o, l) => /* @__PURE__ */ r(i, { children: [
41
- /* @__PURE__ */ e(c, { className: "w-auto min-w-[100px]", children: /* @__PURE__ */ e(d, { className: "h-6 w-full" }) }),
42
- Array.from({ length: s }).map(
43
- (T, f) => /* @__PURE__ */ e(
44
- c,
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
45
  {
46
- className: "border-d-border w-auto min-w-[100px] border-l text-center",
47
- children: /* @__PURE__ */ e(d, { className: "mx-auto h-6 w-full" })
46
+ className: "w-auto min-w-[100px] border-l text-center",
47
+ children: /* @__PURE__ */ l(m, { className: "mx-auto h-6 w-full" })
48
48
  },
49
- `skeleton-cell-${l}-${f}`
49
+ `skeleton-cell-${e}-${b}`
50
50
  )
51
51
  )
52
- ] }, `skeleton-row-${l}`)) })
52
+ ] }, `skeleton-row-${e}`)) })
53
53
  ] }),
54
- /* @__PURE__ */ e(N, { orientation: "horizontal" })
54
+ /* @__PURE__ */ l(N, { orientation: "horizontal" })
55
55
  ] }) }) });
56
56
  }
57
57
  export {