laif-ds 0.2.74 → 0.2.76

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 (155) hide show
  1. package/dist/CHANGELOG.md +446 -0
  2. package/dist/agent-docs/adoption-report.json +615 -0
  3. package/dist/agent-docs/components/Accordion.md +46 -16
  4. package/dist/agent-docs/components/Alert.md +90 -95
  5. package/dist/agent-docs/components/AlertDialog.md +132 -126
  6. package/dist/agent-docs/components/AppEditor.md +90 -90
  7. package/dist/agent-docs/components/AppRadioGroup.md +18 -18
  8. package/dist/agent-docs/components/AppSidebar.md +129 -122
  9. package/dist/agent-docs/components/AppStepper.md +81 -77
  10. package/dist/agent-docs/components/AspectRatio.md +70 -62
  11. package/dist/agent-docs/components/AudioVisualizer.md +5 -5
  12. package/dist/agent-docs/components/Avatar.md +112 -113
  13. package/dist/agent-docs/components/Badge.md +123 -118
  14. package/dist/agent-docs/components/Breadcrumb.md +8 -1
  15. package/dist/agent-docs/components/Button.md +131 -129
  16. package/dist/agent-docs/components/Card.md +172 -147
  17. package/dist/agent-docs/components/Carousel.md +148 -129
  18. package/dist/agent-docs/components/Chat.md +121 -109
  19. package/dist/agent-docs/components/ChatMessage.md +72 -61
  20. package/dist/agent-docs/components/Checkbox.md +150 -135
  21. package/dist/agent-docs/components/CircularProgress.md +53 -49
  22. package/dist/agent-docs/components/CodeHighlighter.md +4 -4
  23. package/dist/agent-docs/components/Collapsible.md +114 -95
  24. package/dist/agent-docs/components/Command.md +141 -142
  25. package/dist/agent-docs/components/Confirmer.md +182 -175
  26. package/dist/agent-docs/components/ContextMenu.md +196 -191
  27. package/dist/agent-docs/components/DataCrossTable.md +114 -94
  28. package/dist/agent-docs/components/DataTable.md +32 -24
  29. package/dist/agent-docs/components/Dialog.md +130 -125
  30. package/dist/agent-docs/components/Drawer.md +141 -127
  31. package/dist/agent-docs/components/FilePreviewer.md +138 -139
  32. package/dist/agent-docs/components/FileUploader.md +149 -129
  33. package/dist/agent-docs/components/Form.md +3 -1
  34. package/dist/agent-docs/components/FormComposer.md +163 -137
  35. package/dist/agent-docs/components/GanttChart.md +125 -122
  36. package/dist/agent-docs/components/HoverCard.md +1 -1
  37. package/dist/agent-docs/components/Icon.md +98 -99
  38. package/dist/agent-docs/components/Input.md +173 -138
  39. package/dist/agent-docs/components/InputOtp.md +6 -1
  40. package/dist/agent-docs/components/InputSelector.md +94 -97
  41. package/dist/agent-docs/components/InterruptPrompt.md +4 -4
  42. package/dist/agent-docs/components/MarkdownRenderer.md +5 -2
  43. package/dist/agent-docs/components/Menubar.md +60 -57
  44. package/dist/agent-docs/components/MessageInput.md +134 -131
  45. package/dist/agent-docs/components/MessageList.md +110 -96
  46. package/dist/agent-docs/components/MultipleSelector.md +147 -146
  47. package/dist/agent-docs/components/NavigationMenu.md +6 -2
  48. package/dist/agent-docs/components/Popover.md +112 -103
  49. package/dist/agent-docs/components/PromptSuggestions.md +5 -5
  50. package/dist/agent-docs/components/RadioGroup.md +97 -90
  51. package/dist/agent-docs/components/Resizable.md +4 -1
  52. package/dist/agent-docs/components/ResizePrompt.md +12 -13
  53. package/dist/agent-docs/components/ScrollArea.md +6 -2
  54. package/dist/agent-docs/components/SecurePdfViewer.md +10 -6
  55. package/dist/agent-docs/components/Select.md +131 -132
  56. package/dist/agent-docs/components/Sheet.md +8 -1
  57. package/dist/agent-docs/components/ShikiHighlighter.md +5 -5
  58. package/dist/agent-docs/components/Sidebar.md +94 -85
  59. package/dist/agent-docs/components/Slider.md +62 -58
  60. package/dist/agent-docs/components/Sonner.md +1 -0
  61. package/dist/agent-docs/components/Spinner.md +14 -14
  62. package/dist/agent-docs/components/Stepper.md +93 -67
  63. package/dist/agent-docs/components/Switch.md +41 -42
  64. package/dist/agent-docs/components/TableSkeleton.md +8 -8
  65. package/dist/agent-docs/components/Tabs.md +106 -86
  66. package/dist/agent-docs/components/TextArea.md +51 -52
  67. package/dist/agent-docs/components/ThemeSwitcher.md +72 -69
  68. package/dist/agent-docs/components/Toaster.md +1 -0
  69. package/dist/agent-docs/components/Tooltip.md +102 -91
  70. package/dist/agent-docs/components/Typo.md +68 -65
  71. package/dist/agent-docs/components/WeeklyCalendar.md +63 -64
  72. package/dist/agent-docs/components-list.md +1 -0
  73. package/dist/agent-docs/manifest.json +5981 -0
  74. package/dist/agent-docs/truncated-cell.md +342 -0
  75. package/dist/components/editor/editor-hooks/use-update-toolbar.js +6 -6
  76. package/dist/components/editor/plugins/actions/counter-character-plugin.js +6 -6
  77. package/dist/components/editor/plugins/toolbar/font-format-toolbar-plugin.js +18 -18
  78. package/dist/components/editor/plugins/toolbar/history-toolbar-plugin.js +10 -10
  79. package/dist/components/editor/plugins/toolbar/toolbar-plugin.js +9 -9
  80. package/dist/components/ui/app-checkbox.js +1 -1
  81. package/dist/components/ui/app-dialog.js +70 -64
  82. package/dist/components/ui/app-editor.js +51 -51
  83. package/dist/components/ui/app-form.js +81 -81
  84. package/dist/components/ui/app-multiple-select-dropdown.js +36 -36
  85. package/dist/components/ui/app-select.js +109 -104
  86. package/dist/components/ui/app-sidebar.js +41 -41
  87. package/dist/components/ui/app-stepper.js +1 -1
  88. package/dist/components/ui/app-time-picker.js +18 -18
  89. package/dist/components/ui/app-tooltip.js +1 -1
  90. package/dist/components/ui/async-select.js +5 -5
  91. package/dist/components/ui/audio-visualizer.js +61 -58
  92. package/dist/components/ui/card.js +1 -1
  93. package/dist/components/ui/carousel.js +2 -2
  94. package/dist/components/ui/chart.js +1 -1
  95. package/dist/components/ui/chat-message.js +8 -8
  96. package/dist/components/ui/chat.js +86 -88
  97. package/dist/components/ui/command.js +2 -2
  98. package/dist/components/ui/copy-button.js +4 -4
  99. package/dist/components/ui/date-picker.js +20 -20
  100. package/dist/components/ui/file-preview/index.js +13 -13
  101. package/dist/components/ui/file-previewer.js +12 -11
  102. package/dist/components/ui/file-uploader.js +86 -78
  103. package/dist/components/ui/form.js +2 -2
  104. package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +56 -56
  105. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +12 -12
  106. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +1 -1
  107. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +4 -4
  108. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/RepeteadBars/RepeteadBars.js +2 -2
  109. package/dist/components/ui/gantt/components/Chart/Chart.js +23 -23
  110. package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +1 -1
  111. package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +34 -34
  112. package/dist/components/ui/gantt/components/Controls/Controls.js +5 -5
  113. package/dist/components/ui/gantt/components/Gantt/Gantt.js +4 -4
  114. package/dist/components/ui/gantt/hooks/useGanttCalculate.js +25 -18
  115. package/dist/components/ui/input-selector.js +1 -1
  116. package/dist/components/ui/input.js +23 -23
  117. package/dist/components/ui/kanban.js +8 -9
  118. package/dist/components/ui/markdown-renderer.js +41 -35
  119. package/dist/components/ui/message-input.js +45 -44
  120. package/dist/components/ui/multiple-selector.js +91 -82
  121. package/dist/components/ui/secure-pdf-viewer.js +19 -7
  122. package/dist/components/ui/sidebar.js +1 -1
  123. package/dist/components/ui/slider.js +1 -1
  124. package/dist/components/ui/spinner.js +4 -4
  125. package/dist/components/ui/stepper.js +157 -138
  126. package/dist/components/ui/tables/data-cross-table/data-cross-table-buttons.js +29 -29
  127. package/dist/components/ui/tables/data-cross-table/data-cross-table.js +258 -246
  128. package/dist/components/ui/tables/data-table/components/data-table-advanced-filter.js +4 -1
  129. package/dist/components/ui/tables/data-table/components/data-table-body.js +211 -367
  130. package/dist/components/ui/tables/data-table/components/data-table-filter-inputs.js +114 -112
  131. package/dist/components/ui/tables/data-table/components/data-table-filters.js +116 -96
  132. package/dist/components/ui/tables/data-table/components/data-table-header.js +211 -0
  133. package/dist/components/ui/tables/data-table/components/data-table-searchbar.js +8 -8
  134. package/dist/components/ui/tables/data-table/components/data-table-skeleton-rows.js +33 -0
  135. package/dist/components/ui/tables/data-table/data-table.js +258 -250
  136. package/dist/components/ui/tables/data-table/data-table.service.js +112 -97
  137. package/dist/components/ui/tables/data-table/data-table.utils.js +25 -15
  138. package/dist/components/ui/textarea.js +2 -2
  139. package/dist/components/ui/theme-switcher.js +1 -1
  140. package/dist/components/ui/toggle-group.js +2 -2
  141. package/dist/components/ui/truncated-cell.js +100 -0
  142. package/dist/components/ui/weekly-calendar/appointment-card.js +16 -16
  143. package/dist/components/ui/weekly-calendar/calendar-context.js +6 -6
  144. package/dist/components/ui/weekly-calendar/calendar-header.js +12 -12
  145. package/dist/components/ui/weekly-calendar/day-column.js +16 -16
  146. package/dist/components/ui/weekly-calendar/time-column.js +4 -4
  147. package/dist/components/ui/weekly-calendar/weekly-calendar.js +4 -4
  148. package/dist/hooks/use-audio-recording.js +1 -1
  149. package/dist/hooks/use-auto-scroll.js +18 -18
  150. package/dist/hooks/use-autosize-textarea.js +12 -13
  151. package/dist/index.d.ts +100 -45
  152. package/dist/index.js +362 -360
  153. package/dist/lib/utils.js +6 -6
  154. package/dist/styles.v3.css +1 -1
  155. package/package.json +14 -4
@@ -1,145 +1,150 @@
1
1
  "use client";
2
2
  import { jsxs as o, jsx as l } from "react/jsx-runtime";
3
+ import { useState as v, useRef as T, useCallback as B, useMemo as S, useEffect as de, useLayoutEffect as ce } from "react";
3
4
  import { designTokens as i } from "../design-tokens.js";
4
- import { Badge as ie } from "./badge.js";
5
- import { Command as de, CommandInput as ce, CommandList as ue, CommandEmpty as me, CommandGroup as M, CommandItem as R } from "./command.js";
6
- import { Label as fe } from "./label.js";
7
- import { cn as I } from "../../lib/utils.js";
8
- import { useState as v, useRef as T, useMemo as P, useCallback as pe, useEffect as he, useLayoutEffect as ge } from "react";
5
+ import { Badge as ue } from "./badge.js";
6
+ import { Command as me, CommandInput as fe, CommandList as pe, CommandEmpty as he, CommandGroup as E, CommandItem as F } from "./command.js";
7
+ import { Label as ge } from "./label.js";
8
+ import { cn as z } from "../../lib/utils.js";
9
9
  import { Checkbox as ve } from "./checkbox.js";
10
- import { Icon as S } from "./icon.js";
10
+ import { Icon as A } from "./icon.js";
11
11
  import { Popover as be, PopoverTrigger as Ce, PopoverContent as xe } from "./popover.js";
12
- import we from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
12
+ import ye from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
13
13
  const Ne = {
14
14
  sm: i.sizes.sm,
15
15
  default: i.sizes.default,
16
16
  lg: i.sizes.lg
17
17
  };
18
- function Ae(z) {
18
+ function Ve(O) {
19
19
  const {
20
- multiple: n = !1,
20
+ multiple: t = !1,
21
21
  options: m,
22
- value: B,
23
- defaultValue: E,
22
+ value: G,
23
+ defaultValue: W,
24
24
  renderValue: g,
25
- onValueChange: F,
26
- onClear: b,
27
- placeholder: G = "Seleziona...",
28
- emptyPlaceholder: W = "Nessun risultato",
29
- searchPlaceholder: X = "Cerca...",
30
- addItemPlaceholder: $ = "Aggiungi",
31
- itemCountMessage: q = (e) => `${e} elementi selezionati`,
32
- maxSelectedMessage: _ = (e) => `Puoi selezionare fino a ${e} elementi`,
33
- label: V,
34
- className: H = "",
35
- labelClassName: J = "",
36
- wrpClassName: K = "",
37
- searchable: k = !1,
38
- creatable: Q = !1,
39
- noGroupLabel: U = "Nessun gruppo",
25
+ onValueChange: b,
26
+ onClear: C,
27
+ placeholder: X = "Seleziona...",
28
+ emptyPlaceholder: $ = "Nessun risultato",
29
+ searchPlaceholder: q = "Cerca...",
30
+ addItemPlaceholder: H = "Aggiungi",
31
+ itemCountMessage: J = (e) => `${e} elementi selezionati`,
32
+ maxSelectedMessage: K = (e) => `Puoi selezionare fino a ${e} elementi`,
33
+ label: k,
34
+ className: Q = "",
35
+ labelClassName: U = "",
36
+ wrpClassName: Y = "",
37
+ searchable: D = !1,
38
+ creatable: Z = !1,
39
+ noGroupLabel: L = "Nessun gruppo",
40
40
  maxSelected: c,
41
- showChipsInsteadOfCount: Y = !1,
42
- disabled: C,
43
- size: Z = "default",
44
- isSingleSelectClearable: ee = !1,
45
- id: le,
46
- "data-testid": re
47
- } = z, [h, x] = v(!1), [f, w] = v(""), N = T(null), y = T(null), [D, ae] = v(0), O = z.hasOwnProperty("value"), [ne, te] = v(E), d = O ? B : ne, p = (e) => {
48
- O || te(e), F?.(e);
49
- }, t = P(() => n ? Array.isArray(d) ? d : [] : d != null ? [d] : [], [d, n]), u = P(() => {
50
- const e = m.filter((a) => t.includes(a.value));
51
- if (n) {
52
- const a = t.filter((r) => !e.find((s) => s.value === r)).map((r) => ({ value: r, label: r }));
41
+ showChipsInsteadOfCount: _ = !1,
42
+ disabled: x,
43
+ size: ee = "default",
44
+ isSingleSelectClearable: le = !1,
45
+ id: re,
46
+ "data-testid": ae
47
+ } = O, [h, y] = v(!1), [f, N] = v(""), w = T(null), I = T(null), [j, te] = v(0), P = Object.prototype.hasOwnProperty.call(O, "value"), [ne, se] = v(W), d = P ? G : ne, p = B(
48
+ (e) => {
49
+ P || se(e), b?.(
50
+ t ? Array.isArray(e) ? e : [] : Array.isArray(e) ? e[0] : e
51
+ );
52
+ },
53
+ [P, t, b]
54
+ ), n = S(() => t ? Array.isArray(d) ? d : [] : d != null ? [d] : [], [d, t]), u = S(() => {
55
+ const e = m.filter((a) => n.includes(a.value));
56
+ if (t) {
57
+ const a = n.filter((r) => !e.find((s) => s.value === r)).map((r) => ({ value: r, label: r }));
53
58
  return [...e, ...a];
54
- } else if (t.length && !e.length)
55
- return [{ value: t[0], label: t[0] }];
59
+ } else if (n.length && !e.length)
60
+ return [{ value: n[0], label: n[0] }];
56
61
  return e;
57
- }, [m, t, n]), L = (e) => {
62
+ }, [m, n, t]), V = (e) => {
58
63
  if (!e.disabled)
59
- if (n) {
60
- const a = t.includes(e.value);
61
- if (!a && c !== void 0 && t.length >= c)
64
+ if (t) {
65
+ const a = n.includes(e.value);
66
+ if (!a && c !== void 0 && n.length >= c)
62
67
  return;
63
68
  p(
64
- a ? t.filter((r) => r !== e.value) : [...t, e.value]
69
+ a ? n.filter((r) => r !== e.value) : [...n, e.value]
65
70
  );
66
71
  } else
67
- p(e.value), x(!1);
68
- }, j = pe(() => {
69
- p(n ? [] : void 0), w(""), b && b();
70
- }, [p, b, n]), se = P(() => {
72
+ p(e.value), y(!1);
73
+ }, M = B(() => {
74
+ p(t ? [] : void 0), N(""), C && C();
75
+ }, [p, C, t]), oe = S(() => {
71
76
  const e = m.some((a) => a.group);
72
77
  return m.reduce((a, r) => {
73
- const s = e ? r.group || U : "";
78
+ const s = e ? r.group || L : "";
74
79
  return a[s] = a[s] || [], a[s].push(r), a;
75
80
  }, {});
76
- }, [m]);
77
- return he(() => {
78
- N.current && ae(N.current.getBoundingClientRect().width);
79
- }, [h, t, m]), ge(() => {
81
+ }, [m, L]);
82
+ return de(() => {
83
+ w.current && te(w.current.getBoundingClientRect().width);
84
+ }, [h, n, m]), ce(() => {
80
85
  if (!h) return;
81
86
  const e = requestAnimationFrame(() => {
82
- y.current && y.current?.scrollIntoView({
87
+ I.current && I.current?.scrollIntoView({
83
88
  behavior: "instant",
84
89
  block: "center"
85
90
  });
86
91
  });
87
92
  return () => cancelAnimationFrame(e);
88
- }, [h]), /* @__PURE__ */ o("div", { className: I("flex flex-col gap-1.5", K), children: [
89
- V && /* @__PURE__ */ l(fe, { className: J, children: V }),
93
+ }, [h]), /* @__PURE__ */ o("div", { className: z("flex flex-col gap-1.5", Y), children: [
94
+ k && /* @__PURE__ */ l(ge, { className: U, children: k }),
90
95
  /* @__PURE__ */ o(
91
96
  be,
92
97
  {
93
- open: C ? !1 : h,
94
- onOpenChange: (e) => !C && x(e),
98
+ open: x ? !1 : h,
99
+ onOpenChange: (e) => !x && y(e),
95
100
  modal: !0,
96
101
  children: [
97
102
  /* @__PURE__ */ l(Ce, { asChild: !0, children: /* @__PURE__ */ o(
98
103
  "div",
99
104
  {
100
- ref: N,
101
- id: le,
102
- "data-testid": re,
103
- className: I(
105
+ ref: w,
106
+ id: re,
107
+ "data-testid": ae,
108
+ className: z(
104
109
  i.input.base,
105
110
  i.radius.default,
106
111
  i.focusRingWithin,
107
112
  "flex w-full min-w-[100px] cursor-pointer items-center justify-between gap-2",
108
113
  h && i.activeRing,
109
- Ne[Z],
110
- C && "cursor-not-allowed opacity-50",
111
- H
114
+ Ne[ee],
115
+ x && "cursor-not-allowed opacity-50",
116
+ Q
112
117
  ),
113
118
  children: [
114
- u.length === 0 ? /* @__PURE__ */ l("span", { className: "text-d-muted-foreground", children: G }) : n ? /* @__PURE__ */ o("div", { className: "flex h-full w-full min-w-0 items-center justify-between gap-2", children: [
115
- /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-nowrap gap-1 overflow-auto", children: Y ? u.map(
119
+ u.length === 0 ? /* @__PURE__ */ l("span", { className: "text-d-muted-foreground", children: X }) : t ? /* @__PURE__ */ o("div", { className: "flex h-full w-full min-w-0 items-center justify-between gap-2", children: [
120
+ /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-nowrap gap-1 overflow-auto", children: _ ? u.map(
116
121
  (e) => g ? g(e) : /* @__PURE__ */ o(
117
- ie,
122
+ ue,
118
123
  {
119
124
  variant: "secondary",
120
125
  className: "hover:bg-d-secondary/100 bg-d-secondary/50 border-d-border flex cursor-pointer items-center gap-1 border",
121
126
  onClick: (a) => {
122
- a.stopPropagation(), L(e);
127
+ a.stopPropagation(), V(e);
123
128
  },
124
129
  children: [
125
130
  e.label,
126
- !e.fixed && /* @__PURE__ */ l(S, { name: "X", size: "xs" })
131
+ !e.fixed && /* @__PURE__ */ l(A, { name: "X", size: "xs" })
127
132
  ]
128
133
  },
129
134
  e.value
130
135
  )
131
- ) : /* @__PURE__ */ l("div", { children: q(u.length) }) }),
132
- n && /* @__PURE__ */ l(
136
+ ) : /* @__PURE__ */ l("div", { children: J(u.length) }) }),
137
+ t && /* @__PURE__ */ l(
133
138
  "div",
134
139
  {
135
140
  className: "border-d-input bg-d-accent cursor-pointer rounded-full p-1",
136
141
  onClick: (e) => {
137
- e.stopPropagation(), e.preventDefault(), j();
142
+ e.stopPropagation(), e.preventDefault(), M();
138
143
  },
139
144
  onMouseDown: (e) => e.preventDefault(),
140
145
  "aria-label": "Clear selection",
141
146
  children: /* @__PURE__ */ l(
142
- S,
147
+ A,
143
148
  {
144
149
  name: "X",
145
150
  size: "xs",
@@ -150,18 +155,18 @@ function Ae(z) {
150
155
  )
151
156
  ] }) : /* @__PURE__ */ o("div", { className: "flex h-full w-full min-w-0 items-center justify-between gap-2", children: [
152
157
  /* @__PURE__ */ l("div", { className: "min-w-0 flex-1 truncate", children: g ? g(u[0]) : typeof u[0]?.label == "string" ? /* @__PURE__ */ l("span", { children: u[0]?.label }) : u[0]?.label }),
153
- ee && d !== void 0 && d !== null && /* @__PURE__ */ l(
158
+ le && d !== void 0 && d !== null && /* @__PURE__ */ l(
154
159
  "div",
155
160
  {
156
161
  role: "button",
157
162
  className: "border-d-input bg-d-accent cursor-pointer rounded-full p-1",
158
163
  onClick: (e) => {
159
- e.stopPropagation(), e.preventDefault(), j();
164
+ e.stopPropagation(), e.preventDefault(), M();
160
165
  },
161
166
  onMouseDown: (e) => e.preventDefault(),
162
167
  "aria-label": "Clear selection",
163
168
  children: /* @__PURE__ */ l(
164
- S,
169
+ A,
165
170
  {
166
171
  name: "X",
167
172
  size: "xs",
@@ -171,7 +176,7 @@ function Ae(z) {
171
176
  }
172
177
  )
173
178
  ] }),
174
- /* @__PURE__ */ l(we, { className: "h-4 w-4 opacity-50" })
179
+ /* @__PURE__ */ l(ye, { className: "h-4 w-4 opacity-50" })
175
180
  ]
176
181
  }
177
182
  ) }),
@@ -179,60 +184,60 @@ function Ae(z) {
179
184
  xe,
180
185
  {
181
186
  className: "p-0",
182
- style: { width: D > 0 ? D : "auto" },
187
+ style: { width: j > 0 ? j : "auto" },
183
188
  align: "start",
184
189
  sideOffset: 4,
185
190
  avoidCollisions: !0,
186
191
  collisionPadding: 8,
187
192
  children: /* @__PURE__ */ o(
188
- de,
193
+ me,
189
194
  {
190
- shouldFilter: k,
191
- filter: (e, a, r) => e.toLocaleLowerCase().includes(a.toLocaleLowerCase()) ? 1 : 0,
195
+ shouldFilter: D,
196
+ filter: (e, a) => e.toLocaleLowerCase().includes(a.toLocaleLowerCase()) ? 1 : 0,
192
197
  className: "w-full",
193
198
  children: [
194
- k && /* @__PURE__ */ l(
195
- ce,
199
+ D && /* @__PURE__ */ l(
200
+ fe,
196
201
  {
197
- placeholder: X,
202
+ placeholder: q,
198
203
  className: "placeholder:text-d-muted-foreground",
199
204
  value: f,
200
- onValueChange: w
205
+ onValueChange: N
201
206
  }
202
207
  ),
203
- /* @__PURE__ */ o(ue, { className: "max-h-60 overflow-auto overscroll-contain", children: [
204
- /* @__PURE__ */ l(me, { children: W }),
205
- Q && f && /* @__PURE__ */ l(M, { children: /* @__PURE__ */ l(
206
- R,
208
+ /* @__PURE__ */ o(pe, { className: "max-h-60 overflow-auto overscroll-contain", children: [
209
+ /* @__PURE__ */ l(he, { children: $ }),
210
+ Z && f && /* @__PURE__ */ l(E, { children: /* @__PURE__ */ l(
211
+ F,
207
212
  {
208
213
  className: "cursor-pointer",
209
214
  onSelect: () => {
210
- f && (p(n ? [...t, f] : f), w(""), !n && x(!1));
215
+ f && (p(t ? [...n, f] : f), N(""), t || y(!1));
211
216
  },
212
217
  children: /* @__PURE__ */ o("div", { className: "text-d-foreground text-xs", children: [
213
- $,
218
+ H,
214
219
  " “",
215
220
  f,
216
221
  "”"
217
222
  ] })
218
223
  }
219
224
  ) }),
220
- Object.entries(se).map(([e, a]) => /* @__PURE__ */ l(M, { heading: e || void 0, children: a.map((r) => {
221
- const s = t.includes(r.value), oe = n && c !== void 0 && !s && t.length >= c, A = r.disabled || oe;
225
+ Object.entries(oe).map(([e, a]) => /* @__PURE__ */ l(E, { heading: e || void 0, children: a.map((r) => {
226
+ const s = n.includes(r.value), ie = t && c !== void 0 && !s && n.length >= c, R = r.disabled || ie;
222
227
  return /* @__PURE__ */ o(
223
- R,
228
+ F,
224
229
  {
225
- ref: s ? y : null,
230
+ ref: s ? I : null,
226
231
  value: typeof r.label == "string" ? r.label : String(r.value),
227
- onSelect: () => !A && L(r),
228
- className: I(
232
+ onSelect: () => !R && V(r),
233
+ className: z(
229
234
  "cursor-pointer",
230
235
  i.dropdownItem.hover,
231
- A && "cursor-not-allowed opacity-50",
232
- !n && s && i.dropdownItem.selected
236
+ R && "cursor-not-allowed opacity-50",
237
+ !t && s && i.dropdownItem.selected
233
238
  ),
234
239
  children: [
235
- n && /* @__PURE__ */ l(ve, { checked: s, className: "mr-1" }),
240
+ t && /* @__PURE__ */ l(ve, { checked: s, className: "mr-1" }),
236
241
  typeof r.label == "string" ? /* @__PURE__ */ l("span", { children: r.label }) : r.label
237
242
  ]
238
243
  },
@@ -240,7 +245,7 @@ function Ae(z) {
240
245
  );
241
246
  }) }, e))
242
247
  ] }),
243
- n && c !== void 0 && t.length >= c && /* @__PURE__ */ l("div", { className: "border-d-border text-d-muted-foreground border-t px-2 py-1 text-xs", children: _(c) })
248
+ t && c !== void 0 && n.length >= c && /* @__PURE__ */ l("div", { className: "border-d-border text-d-muted-foreground border-t px-2 py-1 text-xs", children: K(c) })
244
249
  ]
245
250
  }
246
251
  )
@@ -252,5 +257,5 @@ function Ae(z) {
252
257
  ] });
253
258
  }
254
259
  export {
255
- Ae as AppSelect
260
+ Ve as AppSelect
256
261
  };
@@ -1,32 +1,32 @@
1
1
  "use client";
2
- import { jsxs as r, jsx as t, Fragment as I } from "react/jsx-runtime";
2
+ import { jsxs as c, jsx as t, Fragment as I } from "react/jsx-runtime";
3
3
  import * as v from "react";
4
- import { Sidebar as y, SidebarHeader as z, SidebarContent as B, SidebarGroup as x, SidebarGroupLabel as A, SidebarGroupContent as N, SidebarMenu as w, SidebarMenuItem as C, SidebarMenuSub as E, SidebarMenuSubItem as M, SidebarRail as F, SidebarMenuButton as j, SidebarMenuSubButton as D } from "./sidebar.js";
5
4
  import { Icon as h } from "./icon.js";
6
- function O({
5
+ import { Sidebar as y, SidebarHeader as z, SidebarContent as B, SidebarGroup as x, SidebarGroupLabel as A, SidebarGroupContent as N, SidebarMenu as C, SidebarMenuItem as w, SidebarMenuSub as M, SidebarMenuSubItem as E, SidebarRail as F, SidebarMenuButton as j, SidebarMenuSubButton as D } from "./sidebar.js";
6
+ function K({
7
7
  navigation: u,
8
8
  navigationFooter: G,
9
- versions: H,
10
- defaultVersion: V,
11
- headerContent: m,
9
+ headerContent: f,
12
10
  footerContent: R,
13
11
  showRail: g = !0,
14
12
  linkComponent: d,
15
- linkProps: b = {},
13
+ linkProps: m = {},
16
14
  ...k
17
15
  }) {
18
- const [o, f] = v.useState({});
16
+ const [b, o] = v.useState({});
19
17
  v.useEffect(() => {
20
- const e = { ...o };
21
- u.forEach((n) => {
22
- n.items.some(
23
- (i) => i.isActive || i.subItems && i.subItems.some((c) => c.isActive)
24
- ) && (e[n.title] = !0);
25
- }), f(e);
18
+ o((e) => {
19
+ const n = { ...e };
20
+ return u.forEach((l) => {
21
+ l.items.some(
22
+ (r) => r.isActive || r.subItems && r.subItems.some((s) => s.isActive)
23
+ ) && (n[l.title] = !0);
24
+ }), n;
25
+ });
26
26
  }, [u]);
27
- const S = (e, n, s) => {
28
- const i = e.subItems && e.subItems.length > 0, c = /* @__PURE__ */ r(I, { children: [
29
- /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
27
+ const S = (e, n, l) => {
28
+ const i = e.subItems && e.subItems.length > 0, r = /* @__PURE__ */ c(I, { children: [
29
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
30
30
  e.iconName && /* @__PURE__ */ t(h, { name: e.iconName, size: "sm" }),
31
31
  /* @__PURE__ */ t("span", { children: e.title })
32
32
  ] }),
@@ -37,21 +37,21 @@ function O({
37
37
  {
38
38
  href: i ? "#" : e.url,
39
39
  className: "flex w-full items-center justify-between gap-2",
40
- onClick: i ? s : void 0,
41
- ...b,
42
- children: c
40
+ onClick: i ? l : void 0,
41
+ ...m,
42
+ children: r
43
43
  }
44
44
  ) }) : /* @__PURE__ */ t(j, { isActive: e.isActive, children: /* @__PURE__ */ t(
45
45
  "a",
46
46
  {
47
47
  href: i ? "#" : e.url,
48
48
  className: "flex w-full items-center justify-between gap-2",
49
- onClick: i ? s : void 0,
50
- children: c
49
+ onClick: i ? l : void 0,
50
+ children: r
51
51
  }
52
52
  ) });
53
53
  }, p = (e) => {
54
- const n = /* @__PURE__ */ r(I, { children: [
54
+ const n = /* @__PURE__ */ c(I, { children: [
55
55
  e.iconName && /* @__PURE__ */ t(h, { name: e.iconName, size: "xs" }),
56
56
  /* @__PURE__ */ t("span", { children: e.title })
57
57
  ] });
@@ -60,40 +60,40 @@ function O({
60
60
  {
61
61
  href: e.url,
62
62
  className: "flex w-full items-center gap-2",
63
- ...b,
63
+ ...m,
64
64
  children: n
65
65
  }
66
66
  ) }) : /* @__PURE__ */ t(D, { isActive: e.isActive, asChild: !0, children: /* @__PURE__ */ t("a", { href: e.url, className: "flex w-full items-center gap-2", children: n }) });
67
67
  };
68
- return /* @__PURE__ */ r(y, { ...k, children: [
69
- m && /* @__PURE__ */ t(z, { children: m }),
70
- /* @__PURE__ */ t(B, { children: u.map((e) => /* @__PURE__ */ r(x, { children: [
68
+ return /* @__PURE__ */ c(y, { ...k, children: [
69
+ f && /* @__PURE__ */ t(z, { children: f }),
70
+ /* @__PURE__ */ t(B, { children: u.map((e) => /* @__PURE__ */ c(x, { children: [
71
71
  e.title && /* @__PURE__ */ t(A, { children: e.title }),
72
- /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(w, { children: e.items.map((n) => {
73
- const s = n.subItems && n.subItems.length > 0, i = o[n.title] || !1;
74
- return /* @__PURE__ */ r(C, { children: [
75
- S(n, i, (l) => {
76
- s && (l.preventDefault(), f((a) => ({
72
+ /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(C, { children: e.items.map((n) => {
73
+ const l = n.subItems && n.subItems.length > 0, i = b[n.title] || !1;
74
+ return /* @__PURE__ */ c(w, { children: [
75
+ S(n, i, (s) => {
76
+ l && (s.preventDefault(), o((a) => ({
77
77
  ...a,
78
78
  [n.title]: !a[n.title]
79
79
  })));
80
80
  }),
81
- s && i && /* @__PURE__ */ t(E, { children: n.subItems.map((l) => /* @__PURE__ */ t(M, { children: p(l) }, l.title)) })
81
+ l && i && /* @__PURE__ */ t(M, { children: n.subItems.map((s) => /* @__PURE__ */ t(E, { children: p(s) }, s.title)) })
82
82
  ] }, n.title);
83
83
  }) }) })
84
84
  ] }, e.title)) }),
85
- G?.map((e) => /* @__PURE__ */ r(x, { children: [
85
+ G?.map((e) => /* @__PURE__ */ c(x, { children: [
86
86
  e.title && /* @__PURE__ */ t(A, { children: e.title }),
87
- /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(w, { children: e.items.map((n) => {
88
- const s = n.subItems && n.subItems.length > 0, i = o[n.title] || !1;
89
- return /* @__PURE__ */ r(C, { children: [
90
- S(n, i, (l) => {
91
- s && (l.preventDefault(), f((a) => ({
87
+ /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(C, { children: e.items.map((n) => {
88
+ const l = n.subItems && n.subItems.length > 0, i = b[n.title] || !1;
89
+ return /* @__PURE__ */ c(w, { children: [
90
+ S(n, i, (s) => {
91
+ l && (s.preventDefault(), o((a) => ({
92
92
  ...a,
93
93
  [n.title]: !a[n.title]
94
94
  })));
95
95
  }),
96
- s && i && /* @__PURE__ */ t(E, { children: n.subItems.map((l) => /* @__PURE__ */ t(M, { children: p(l) }, l.title)) })
96
+ l && i && /* @__PURE__ */ t(M, { children: n.subItems.map((s) => /* @__PURE__ */ t(E, { children: p(s) }, s.title)) })
97
97
  ] }, n.title);
98
98
  }) }) })
99
99
  ] }, e.title)),
@@ -102,5 +102,5 @@ function O({
102
102
  ] });
103
103
  }
104
104
  export {
105
- O as AppSidebar
105
+ K as AppSidebar
106
106
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as l, jsxs as s } from "react/jsx-runtime";
3
- import { Stepper as V, StepperNav as S, StepperItem as b, StepperTrigger as N, StepperIndicator as w, StepperTitle as C, StepperSeparator as I, StepperPanel as T, StepperContent as j } from "./stepper.js";
4
3
  import { cva as t } from "../../node_modules/class-variance-authority/dist/index.js";
4
+ import { Stepper as V, StepperNav as S, StepperItem as b, StepperTrigger as N, StepperIndicator as w, StepperTitle as C, StepperSeparator as I, StepperPanel as T, StepperContent as j } from "./stepper.js";
5
5
  const k = t("", {
6
6
  variants: {
7
7
  align: {
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsxs as u, jsx as a } from "react/jsx-runtime";
3
+ import { useState as B, useRef as W, useCallback as k, useMemo as b, useLayoutEffect as de } from "react";
3
4
  import { designTokens as f } from "../design-tokens.js";
4
- import { Icon as B } from "./icon.js";
5
- import { Label as de } from "./label.js";
6
- import { Popover as le, PopoverTrigger as ce, PopoverContent as ue } from "./popover.js";
5
+ import { Icon as E } from "./icon.js";
6
+ import { Label as le } from "./label.js";
7
+ import { Popover as ce, PopoverTrigger as ue, PopoverContent as me } from "./popover.js";
7
8
  import { cn as V } from "../../lib/utils.js";
8
- import { useState as E, useRef as W, useCallback as k, useMemo as b, useLayoutEffect as me } from "react";
9
9
  import { Button as X } from "./button.js";
10
10
  const fe = {
11
11
  sm: f.sizes.sm,
@@ -32,7 +32,7 @@ function D({
32
32
  disabledValues: w
33
33
  }) {
34
34
  const m = W(null);
35
- return me(() => {
35
+ return de(() => {
36
36
  m.current && l !== void 0 && m.current.scrollIntoView({
37
37
  behavior: "instant",
38
38
  block: "center"
@@ -81,13 +81,13 @@ function Ne(r) {
81
81
  variant: K = "default",
82
82
  useUtc: d = !1,
83
83
  withSeconds: M = !1,
84
- minuteStep: P = 1,
85
- secondStep: O = 1,
84
+ minuteStep: O = 1,
85
+ secondStep: P = 1,
86
86
  id: Q,
87
87
  "data-testid": Y
88
- } = r, [Z, j] = E(
88
+ } = r, [Z, j] = B(
89
89
  void 0
90
- ), [R, $] = E(!1), ee = W(null), v = r.hasOwnProperty("value"), s = v ? l : Z, A = k(() => {
90
+ ), [R, $] = B(!1), ee = W(null), v = Object.prototype.hasOwnProperty.call(r, "value"), s = v ? l : Z, A = k(() => {
91
91
  v || j(void 0), g?.(void 0), p?.();
92
92
  }, [v, g, p]), I = k(() => {
93
93
  if (!s) return "";
@@ -105,11 +105,11 @@ function Ne(r) {
105
105
  },
106
106
  [s, g, d, v]
107
107
  ), h = d ? s?.getUTCHours() : s?.getHours(), x = d ? s?.getUTCMinutes() : s?.getMinutes(), te = d ? s?.getUTCSeconds() : s?.getSeconds(), y = b(
108
- () => F(P),
109
- [P]
110
- ), U = b(
111
108
  () => F(O),
112
109
  [O]
110
+ ), U = b(
111
+ () => F(P),
112
+ [P]
113
113
  ), se = b(
114
114
  () => Array.from({ length: 24 }, (e, n) => n),
115
115
  []
@@ -148,15 +148,15 @@ function Ne(r) {
148
148
  return { disabledHours: e, disabledMinutes: n, disabledSeconds: o };
149
149
  }, [r.minTime, r.maxTime, h, x, d]);
150
150
  return /* @__PURE__ */ u("div", { className: V("flex flex-col gap-1.5", G), children: [
151
- T && /* @__PURE__ */ a(de, { className: q, children: T }),
151
+ T && /* @__PURE__ */ a(le, { className: q, children: T }),
152
152
  /* @__PURE__ */ u(
153
- le,
153
+ ce,
154
154
  {
155
155
  open: m ? !1 : R,
156
156
  onOpenChange: (e) => !m && $(e),
157
157
  modal: !0,
158
158
  children: [
159
- /* @__PURE__ */ a(ce, { asChild: !0, children: /* @__PURE__ */ u(
159
+ /* @__PURE__ */ a(ue, { asChild: !0, children: /* @__PURE__ */ u(
160
160
  "div",
161
161
  {
162
162
  ref: ee,
@@ -175,7 +175,7 @@ function Ne(r) {
175
175
  ),
176
176
  children: [
177
177
  /* @__PURE__ */ u("div", { className: "flex items-center gap-2 overflow-hidden", children: [
178
- /* @__PURE__ */ a(B, { name: "Clock", size: "xs", className: "opacity-50" }),
178
+ /* @__PURE__ */ a(E, { name: "Clock", size: "xs", className: "opacity-50" }),
179
179
  I ? /* @__PURE__ */ a("span", { className: "text-d-foreground truncate font-medium tabular-nums", children: I }) : /* @__PURE__ */ a("span", { className: "text-d-muted-foreground whitespace-nowrap", children: w })
180
180
  ] }),
181
181
  /* @__PURE__ */ u("div", { className: "text-d-muted-foreground/30 flex items-center gap-1.5", children: [
@@ -190,7 +190,7 @@ function Ne(r) {
190
190
  onMouseDown: (e) => e.preventDefault(),
191
191
  "aria-label": "Clear selection",
192
192
  children: /* @__PURE__ */ a(
193
- B,
193
+ E,
194
194
  {
195
195
  name: "X",
196
196
  size: "xs",
@@ -204,7 +204,7 @@ function Ne(r) {
204
204
  ]
205
205
  }
206
206
  ) }),
207
- /* @__PURE__ */ u(ue, { className: "flex w-auto flex-col p-0", align: "start", children: [
207
+ /* @__PURE__ */ u(me, { className: "flex w-auto flex-col p-0", align: "start", children: [
208
208
  /* @__PURE__ */ u("div", { className: "divide-d-border flex min-h-0 flex-1 items-start divide-x", children: [
209
209
  /* @__PURE__ */ a(
210
210
  D,
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
3
- import { cn as t } from "../../lib/utils.js";
4
3
  import { cva as A } from "../../node_modules/class-variance-authority/dist/index.js";
5
4
  import * as d from "react";
5
+ import { cn as t } from "../../lib/utils.js";
6
6
  import { Label as g } from "./label.js";
7
7
  import { Tooltip as B, TooltipTrigger as E, TooltipContent as L } from "./tooltip.js";
8
8
  const v = A(